comparison spandsp-0.0.6pre17/configure @ 4:26cd8f1ef0b1

import spandsp-0.0.6pre17
author Peter Meerwald <pmeerw@cosy.sbg.ac.at>
date Fri, 25 Jun 2010 15:50:58 +0200
parents
children
comparison
equal deleted inserted replaced
3:c6c5a16ce2f2 4:26cd8f1ef0b1
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization. ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14 emulate sh
15 NULLCMD=:
16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17 # is contrary to our usage. Disable this feature.
18 alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20 set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26 as_unset=unset
27 else
28 as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42 LC_TELEPHONE LC_TIME
43 do
44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45 eval $as_var=C; export $as_var
46 else
47 $as_unset $as_var
48 fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53 as_expr=expr
54 else
55 as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59 as_basename=basename
60 else
61 as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68 X"$0" : 'X\(//\)$' \| \
69 X"$0" : 'X\(/\)$' \| \
70 . : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73 /^X\/\(\/\/\)$/{ s//\1/; q; }
74 /^X\/\(\/\).*/{ s//\1/; q; }
75 s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88 echo "#! /bin/sh" >conf$$.sh
89 echo "exit 0" >>conf$$.sh
90 chmod +x conf$$.sh
91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92 PATH_SEPARATOR=';'
93 else
94 PATH_SEPARATOR=:
95 fi
96 rm -f conf$$.sh
97 fi
98
99
100 as_lineno_1=$LINENO
101 as_lineno_2=$LINENO
102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103 test "x$as_lineno_1" != "x$as_lineno_2" &&
104 test "x$as_lineno_3" = "x$as_lineno_2" || {
105 # Find who we are. Look in the path if we contain no path at all
106 # relative or not.
107 case $0 in
108 *[\\/]* ) as_myself=$0 ;;
109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112 IFS=$as_save_IFS
113 test -z "$as_dir" && as_dir=.
114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117 ;;
118 esac
119 # We did not find ourselves, most probably we were run as `sh COMMAND'
120 # in which case we are not to be found in the path.
121 if test "x$as_myself" = x; then
122 as_myself=$0
123 fi
124 if test ! -f "$as_myself"; then
125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126 { (exit 1); exit 1; }; }
127 fi
128 case $CONFIG_SHELL in
129 '')
130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133 IFS=$as_save_IFS
134 test -z "$as_dir" && as_dir=.
135 for as_base in sh bash ksh sh5; do
136 case $as_dir in
137 /*)
138 if ("$as_dir/$as_base" -c '
139 as_lineno_1=$LINENO
140 as_lineno_2=$LINENO
141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142 test "x$as_lineno_1" != "x$as_lineno_2" &&
143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146 CONFIG_SHELL=$as_dir/$as_base
147 export CONFIG_SHELL
148 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149 fi;;
150 esac
151 done
152 done
153 ;;
154 esac
155
156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157 # uniformly replaced by the line number. The first 'sed' inserts a
158 # line-number line before each line; the second 'sed' does the real
159 # work. The second script uses 'N' to pair each line-number line
160 # with the numbered line, and appends trailing '-' during
161 # substitution so that $LINENO is not a special case at line end.
162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
164 sed '=' <$as_myself |
165 sed '
166 N
167 s,$,-,
168 : loop
169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170 t loop
171 s,-$,,
172 s,^['$as_cr_digits']*\n,,
173 ' >$as_me.lineno &&
174 chmod +x $as_me.lineno ||
175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176 { (exit 1); exit 1; }; }
177
178 # Don't try to exec as it changes $[0], causing all sort of problems
179 # (the dirname of $[0] is not the place where we might find the
180 # original and so on. Autoconf is especially sensible to this).
181 . ./$as_me.lineno
182 # Exit status is that of the last command.
183 exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188 *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T=' ' ;;
190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195 as_expr=expr
196 else
197 as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203 # We could just check for DJGPP; but this test a) works b) is more generic
204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205 if test -f conf$$.exe; then
206 # Don't use ln at all; we don't have any links
207 as_ln_s='cp -p'
208 else
209 as_ln_s='ln -s'
210 fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212 as_ln_s=ln
213 else
214 as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219 as_mkdir_p=:
220 else
221 test -d ./-p && rmdir ./-p
222 as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS=" $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244
245 # Check that we are running under the correct shell.
246 SHELL=${CONFIG_SHELL-/bin/sh}
247
248 case X$ECHO in
249 X*--fallback-echo)
250 # Remove one level of quotation (which was required for Make).
251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
252 ;;
253 esac
254
255 echo=${ECHO-echo}
256 if test "X$1" = X--no-reexec; then
257 # Discard the --no-reexec flag, and continue.
258 shift
259 elif test "X$1" = X--fallback-echo; then
260 # Avoid inline document here, it may be left over
261 :
262 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
263 # Yippee, $echo works!
264 :
265 else
266 # Restart under the correct shell.
267 exec $SHELL "$0" --no-reexec ${1+"$@"}
268 fi
269
270 if test "X$1" = X--fallback-echo; then
271 # used as fallback echo
272 shift
273 cat <<EOF
274 $*
275 EOF
276 exit 0
277 fi
278
279 # The HP-UX ksh and POSIX shell print the target directory to stdout
280 # if CDPATH is set.
281 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
282
283 if test -z "$ECHO"; then
284 if test "X${echo_test_string+set}" != Xset; then
285 # find a string as large as possible, as long as the shell can cope with it
286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
288 if (echo_test_string=`eval $cmd`) 2>/dev/null &&
289 echo_test_string=`eval $cmd` &&
290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
291 then
292 break
293 fi
294 done
295 fi
296
297 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
299 test "X$echo_testing_string" = "X$echo_test_string"; then
300 :
301 else
302 # The Solaris, AIX, and Digital Unix default echo programs unquote
303 # backslashes. This makes it impossible to quote backslashes using
304 # echo "$something" | sed 's/\\/\\\\/g'
305 #
306 # So, first we look for a working echo in the user's PATH.
307
308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
309 for dir in $PATH /usr/ucb; do
310 IFS="$lt_save_ifs"
311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
314 test "X$echo_testing_string" = "X$echo_test_string"; then
315 echo="$dir/echo"
316 break
317 fi
318 done
319 IFS="$lt_save_ifs"
320
321 if test "X$echo" = Xecho; then
322 # We didn't find a better echo, so look for alternatives.
323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # This shell has a builtin print -r that does the trick.
327 echo='print -r'
328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
329 test "X$CONFIG_SHELL" != X/bin/ksh; then
330 # If we have ksh, try running configure again with it.
331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
332 export ORIGINAL_CONFIG_SHELL
333 CONFIG_SHELL=/bin/ksh
334 export CONFIG_SHELL
335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
336 else
337 # Try using printf.
338 echo='printf %s\n'
339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
341 test "X$echo_testing_string" = "X$echo_test_string"; then
342 # Cool, printf works
343 :
344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
345 test "X$echo_testing_string" = 'X\t' &&
346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
347 test "X$echo_testing_string" = "X$echo_test_string"; then
348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
349 export CONFIG_SHELL
350 SHELL="$CONFIG_SHELL"
351 export SHELL
352 echo="$CONFIG_SHELL $0 --fallback-echo"
353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
354 test "X$echo_testing_string" = 'X\t' &&
355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
356 test "X$echo_testing_string" = "X$echo_test_string"; then
357 echo="$CONFIG_SHELL $0 --fallback-echo"
358 else
359 # maybe with a smaller string...
360 prev=:
361
362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
364 then
365 break
366 fi
367 prev="$cmd"
368 done
369
370 if test "$prev" != 'sed 50q "$0"'; then
371 echo_test_string=`eval $prev`
372 export echo_test_string
373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
374 else
375 # Oops. We lost completely, so just stick with echo.
376 echo=echo
377 fi
378 fi
379 fi
380 fi
381 fi
382 fi
383
384 # Copy echo and quote the copy suitably for passing to libtool from
385 # the Makefile, instead of quoting the original, which is used later.
386 ECHO=$echo
387 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
389 fi
390
391
392
393
394 tagnames=${tagnames+${tagnames},}CXX
395
396 tagnames=${tagnames+${tagnames},}F77
397
398 # Name of the host.
399 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
400 # so uname gets run too.
401 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
402
403 exec 6>&1
404
405 #
406 # Initializations.
407 #
408 ac_default_prefix=/usr/local
409 ac_config_libobj_dir=.
410 cross_compiling=no
411 subdirs=
412 MFLAGS=
413 MAKEFLAGS=
414 SHELL=${CONFIG_SHELL-/bin/sh}
415
416 # Maximum number of lines to put in a shell here document.
417 # This variable seems obsolete. It should probably be removed, and
418 # only ac_max_sed_lines should be used.
419 : ${ac_max_here_lines=38}
420
421 # Identity of this package.
422 PACKAGE_NAME=
423 PACKAGE_TARNAME=
424 PACKAGE_VERSION=
425 PACKAGE_STRING=
426 PACKAGE_BUGREPORT=
427
428 ac_unique_file="src/tone_generate.c"
429 # Factoring default headers for most tests.
430 ac_includes_default="\
431 #include <stdio.h>
432 #if HAVE_SYS_TYPES_H
433 # include <sys/types.h>
434 #endif
435 #if HAVE_SYS_STAT_H
436 # include <sys/stat.h>
437 #endif
438 #if STDC_HEADERS
439 # include <stdlib.h>
440 # include <stddef.h>
441 #else
442 # if HAVE_STDLIB_H
443 # include <stdlib.h>
444 # endif
445 #endif
446 #if HAVE_STRING_H
447 # if !STDC_HEADERS && HAVE_MEMORY_H
448 # include <memory.h>
449 # endif
450 # include <string.h>
451 #endif
452 #if HAVE_STRINGS_H
453 # include <strings.h>
454 #endif
455 #if HAVE_INTTYPES_H
456 # include <inttypes.h>
457 #else
458 # if HAVE_STDINT_H
459 # include <stdint.h>
460 # endif
461 #endif
462 #if HAVE_UNISTD_H
463 # include <unistd.h>
464 #endif"
465
466 ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS SPANDSP_LT_CURRENT SPANDSP_LT_REVISION SPANDSP_LT_AGE INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CPP EGREP SED LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB DSYMUTIL ac_ct_DSYMUTIL NMEDIT ac_ct_NMEDIT CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS COND_DOC_TRUE COND_DOC_FALSE COND_TESTS_TRUE COND_TESTS_FALSE COND_TESTDATA_TRUE COND_TESTDATA_FALSE COND_MMX_TRUE COND_MMX_FALSE COND_SSE_TRUE COND_SSE_FALSE COND_SSE2_TRUE COND_SSE2_FALSE COND_SSE3_TRUE COND_SSE3_FALSE COND_SSSE3_TRUE COND_SSSE3_FALSE COND_SSE4_1_TRUE COND_SSE4_1_FALSE COND_SSE4_2_TRUE COND_SSE4_2_FALSE COND_SSE4A_TRUE COND_SSE4A_FALSE COND_SSE5_TRUE COND_SSE5_FALSE CC_FOR_BUILD CPPFLAGS_FOR_BUILD COMP_VENDOR_CFLAGS COMP_VENDOR_LDFLAGS SIMLIBS TESTLIBS SPANDSP_USE_FIXED_POINT SPANDSP_MISALIGNED_ACCESS_FAILS SPANDSP_USE_EXPORT_CAPABILITY INSERT_INTTYPES_HEADER INSERT_STDINT_HEADER INSERT_TGMATH_HEADER INSERT_MATH_HEADER LTLIBOBJS'
467 ac_subst_files=''
468
469 # Initialize some variables set by options.
470 ac_init_help=
471 ac_init_version=false
472 # The variables have the same names as the options, with
473 # dashes changed to underlines.
474 cache_file=/dev/null
475 exec_prefix=NONE
476 no_create=
477 no_recursion=
478 prefix=NONE
479 program_prefix=NONE
480 program_suffix=NONE
481 program_transform_name=s,x,x,
482 silent=
483 site=
484 srcdir=
485 verbose=
486 x_includes=NONE
487 x_libraries=NONE
488
489 # Installation directory options.
490 # These are left unexpanded so users can "make install exec_prefix=/foo"
491 # and all the variables that are supposed to be based on exec_prefix
492 # by default will actually change.
493 # Use braces instead of parens because sh, perl, etc. also accept them.
494 bindir='${exec_prefix}/bin'
495 sbindir='${exec_prefix}/sbin'
496 libexecdir='${exec_prefix}/libexec'
497 datadir='${prefix}/share'
498 sysconfdir='${prefix}/etc'
499 sharedstatedir='${prefix}/com'
500 localstatedir='${prefix}/var'
501 libdir='${exec_prefix}/lib'
502 includedir='${prefix}/include'
503 oldincludedir='/usr/include'
504 infodir='${prefix}/info'
505 mandir='${prefix}/man'
506
507 ac_prev=
508 for ac_option
509 do
510 # If the previous option needs an argument, assign it.
511 if test -n "$ac_prev"; then
512 eval "$ac_prev=\$ac_option"
513 ac_prev=
514 continue
515 fi
516
517 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
518
519 # Accept the important Cygnus configure options, so we can diagnose typos.
520
521 case $ac_option in
522
523 -bindir | --bindir | --bindi | --bind | --bin | --bi)
524 ac_prev=bindir ;;
525 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
526 bindir=$ac_optarg ;;
527
528 -build | --build | --buil | --bui | --bu)
529 ac_prev=build_alias ;;
530 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
531 build_alias=$ac_optarg ;;
532
533 -cache-file | --cache-file | --cache-fil | --cache-fi \
534 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
535 ac_prev=cache_file ;;
536 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
537 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
538 cache_file=$ac_optarg ;;
539
540 --config-cache | -C)
541 cache_file=config.cache ;;
542
543 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
544 ac_prev=datadir ;;
545 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
546 | --da=*)
547 datadir=$ac_optarg ;;
548
549 -disable-* | --disable-*)
550 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
551 # Reject names that are not valid shell variable names.
552 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
553 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
554 { (exit 1); exit 1; }; }
555 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
556 eval "enable_$ac_feature=no" ;;
557
558 -enable-* | --enable-*)
559 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
560 # Reject names that are not valid shell variable names.
561 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
562 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
563 { (exit 1); exit 1; }; }
564 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
565 case $ac_option in
566 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
567 *) ac_optarg=yes ;;
568 esac
569 eval "enable_$ac_feature='$ac_optarg'" ;;
570
571 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
572 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
573 | --exec | --exe | --ex)
574 ac_prev=exec_prefix ;;
575 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
576 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
577 | --exec=* | --exe=* | --ex=*)
578 exec_prefix=$ac_optarg ;;
579
580 -gas | --gas | --ga | --g)
581 # Obsolete; use --with-gas.
582 with_gas=yes ;;
583
584 -help | --help | --hel | --he | -h)
585 ac_init_help=long ;;
586 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
587 ac_init_help=recursive ;;
588 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
589 ac_init_help=short ;;
590
591 -host | --host | --hos | --ho)
592 ac_prev=host_alias ;;
593 -host=* | --host=* | --hos=* | --ho=*)
594 host_alias=$ac_optarg ;;
595
596 -includedir | --includedir | --includedi | --included | --include \
597 | --includ | --inclu | --incl | --inc)
598 ac_prev=includedir ;;
599 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
600 | --includ=* | --inclu=* | --incl=* | --inc=*)
601 includedir=$ac_optarg ;;
602
603 -infodir | --infodir | --infodi | --infod | --info | --inf)
604 ac_prev=infodir ;;
605 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
606 infodir=$ac_optarg ;;
607
608 -libdir | --libdir | --libdi | --libd)
609 ac_prev=libdir ;;
610 -libdir=* | --libdir=* | --libdi=* | --libd=*)
611 libdir=$ac_optarg ;;
612
613 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
614 | --libexe | --libex | --libe)
615 ac_prev=libexecdir ;;
616 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
617 | --libexe=* | --libex=* | --libe=*)
618 libexecdir=$ac_optarg ;;
619
620 -localstatedir | --localstatedir | --localstatedi | --localstated \
621 | --localstate | --localstat | --localsta | --localst \
622 | --locals | --local | --loca | --loc | --lo)
623 ac_prev=localstatedir ;;
624 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
625 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
626 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
627 localstatedir=$ac_optarg ;;
628
629 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
630 ac_prev=mandir ;;
631 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
632 mandir=$ac_optarg ;;
633
634 -nfp | --nfp | --nf)
635 # Obsolete; use --without-fp.
636 with_fp=no ;;
637
638 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
639 | --no-cr | --no-c | -n)
640 no_create=yes ;;
641
642 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
643 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
644 no_recursion=yes ;;
645
646 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
647 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
648 | --oldin | --oldi | --old | --ol | --o)
649 ac_prev=oldincludedir ;;
650 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
651 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
652 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
653 oldincludedir=$ac_optarg ;;
654
655 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
656 ac_prev=prefix ;;
657 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
658 prefix=$ac_optarg ;;
659
660 -program-prefix | --program-prefix | --program-prefi | --program-pref \
661 | --program-pre | --program-pr | --program-p)
662 ac_prev=program_prefix ;;
663 -program-prefix=* | --program-prefix=* | --program-prefi=* \
664 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
665 program_prefix=$ac_optarg ;;
666
667 -program-suffix | --program-suffix | --program-suffi | --program-suff \
668 | --program-suf | --program-su | --program-s)
669 ac_prev=program_suffix ;;
670 -program-suffix=* | --program-suffix=* | --program-suffi=* \
671 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
672 program_suffix=$ac_optarg ;;
673
674 -program-transform-name | --program-transform-name \
675 | --program-transform-nam | --program-transform-na \
676 | --program-transform-n | --program-transform- \
677 | --program-transform | --program-transfor \
678 | --program-transfo | --program-transf \
679 | --program-trans | --program-tran \
680 | --progr-tra | --program-tr | --program-t)
681 ac_prev=program_transform_name ;;
682 -program-transform-name=* | --program-transform-name=* \
683 | --program-transform-nam=* | --program-transform-na=* \
684 | --program-transform-n=* | --program-transform-=* \
685 | --program-transform=* | --program-transfor=* \
686 | --program-transfo=* | --program-transf=* \
687 | --program-trans=* | --program-tran=* \
688 | --progr-tra=* | --program-tr=* | --program-t=*)
689 program_transform_name=$ac_optarg ;;
690
691 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
692 | -silent | --silent | --silen | --sile | --sil)
693 silent=yes ;;
694
695 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
696 ac_prev=sbindir ;;
697 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
698 | --sbi=* | --sb=*)
699 sbindir=$ac_optarg ;;
700
701 -sharedstatedir | --sharedstatedir | --sharedstatedi \
702 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
703 | --sharedst | --shareds | --shared | --share | --shar \
704 | --sha | --sh)
705 ac_prev=sharedstatedir ;;
706 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
707 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
708 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
709 | --sha=* | --sh=*)
710 sharedstatedir=$ac_optarg ;;
711
712 -site | --site | --sit)
713 ac_prev=site ;;
714 -site=* | --site=* | --sit=*)
715 site=$ac_optarg ;;
716
717 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
718 ac_prev=srcdir ;;
719 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
720 srcdir=$ac_optarg ;;
721
722 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
723 | --syscon | --sysco | --sysc | --sys | --sy)
724 ac_prev=sysconfdir ;;
725 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
726 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
727 sysconfdir=$ac_optarg ;;
728
729 -target | --target | --targe | --targ | --tar | --ta | --t)
730 ac_prev=target_alias ;;
731 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
732 target_alias=$ac_optarg ;;
733
734 -v | -verbose | --verbose | --verbos | --verbo | --verb)
735 verbose=yes ;;
736
737 -version | --version | --versio | --versi | --vers | -V)
738 ac_init_version=: ;;
739
740 -with-* | --with-*)
741 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
742 # Reject names that are not valid shell variable names.
743 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
744 { echo "$as_me: error: invalid package name: $ac_package" >&2
745 { (exit 1); exit 1; }; }
746 ac_package=`echo $ac_package| sed 's/-/_/g'`
747 case $ac_option in
748 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
749 *) ac_optarg=yes ;;
750 esac
751 eval "with_$ac_package='$ac_optarg'" ;;
752
753 -without-* | --without-*)
754 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
755 # Reject names that are not valid shell variable names.
756 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
757 { echo "$as_me: error: invalid package name: $ac_package" >&2
758 { (exit 1); exit 1; }; }
759 ac_package=`echo $ac_package | sed 's/-/_/g'`
760 eval "with_$ac_package=no" ;;
761
762 --x)
763 # Obsolete; use --with-x.
764 with_x=yes ;;
765
766 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
767 | --x-incl | --x-inc | --x-in | --x-i)
768 ac_prev=x_includes ;;
769 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
770 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
771 x_includes=$ac_optarg ;;
772
773 -x-libraries | --x-libraries | --x-librarie | --x-librari \
774 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
775 ac_prev=x_libraries ;;
776 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
777 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
778 x_libraries=$ac_optarg ;;
779
780 -*) { echo "$as_me: error: unrecognized option: $ac_option
781 Try \`$0 --help' for more information." >&2
782 { (exit 1); exit 1; }; }
783 ;;
784
785 *=*)
786 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
787 # Reject names that are not valid shell variable names.
788 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
789 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
790 { (exit 1); exit 1; }; }
791 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
792 eval "$ac_envvar='$ac_optarg'"
793 export $ac_envvar ;;
794
795 *)
796 # FIXME: should be removed in autoconf 3.0.
797 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
798 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
799 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
800 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
801 ;;
802
803 esac
804 done
805
806 if test -n "$ac_prev"; then
807 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
808 { echo "$as_me: error: missing argument to $ac_option" >&2
809 { (exit 1); exit 1; }; }
810 fi
811
812 # Be sure to have absolute paths.
813 for ac_var in exec_prefix prefix
814 do
815 eval ac_val=$`echo $ac_var`
816 case $ac_val in
817 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
818 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
819 { (exit 1); exit 1; }; };;
820 esac
821 done
822
823 # Be sure to have absolute paths.
824 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
825 localstatedir libdir includedir oldincludedir infodir mandir
826 do
827 eval ac_val=$`echo $ac_var`
828 case $ac_val in
829 [\\/$]* | ?:[\\/]* ) ;;
830 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
831 { (exit 1); exit 1; }; };;
832 esac
833 done
834
835 # There might be people who depend on the old broken behavior: `$host'
836 # used to hold the argument of --host etc.
837 # FIXME: To remove some day.
838 build=$build_alias
839 host=$host_alias
840 target=$target_alias
841
842 # FIXME: To remove some day.
843 if test "x$host_alias" != x; then
844 if test "x$build_alias" = x; then
845 cross_compiling=maybe
846 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
847 If a cross compiler is detected then cross compile mode will be used." >&2
848 elif test "x$build_alias" != "x$host_alias"; then
849 cross_compiling=yes
850 fi
851 fi
852
853 ac_tool_prefix=
854 test -n "$host_alias" && ac_tool_prefix=$host_alias-
855
856 test "$silent" = yes && exec 6>/dev/null
857
858
859 # Find the source files, if location was not specified.
860 if test -z "$srcdir"; then
861 ac_srcdir_defaulted=yes
862 # Try the directory containing this script, then its parent.
863 ac_confdir=`(dirname "$0") 2>/dev/null ||
864 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
865 X"$0" : 'X\(//\)[^/]' \| \
866 X"$0" : 'X\(//\)$' \| \
867 X"$0" : 'X\(/\)' \| \
868 . : '\(.\)' 2>/dev/null ||
869 echo X"$0" |
870 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
871 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
872 /^X\(\/\/\)$/{ s//\1/; q; }
873 /^X\(\/\).*/{ s//\1/; q; }
874 s/.*/./; q'`
875 srcdir=$ac_confdir
876 if test ! -r $srcdir/$ac_unique_file; then
877 srcdir=..
878 fi
879 else
880 ac_srcdir_defaulted=no
881 fi
882 if test ! -r $srcdir/$ac_unique_file; then
883 if test "$ac_srcdir_defaulted" = yes; then
884 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
885 { (exit 1); exit 1; }; }
886 else
887 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
888 { (exit 1); exit 1; }; }
889 fi
890 fi
891 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
892 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
893 { (exit 1); exit 1; }; }
894 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
895 ac_env_build_alias_set=${build_alias+set}
896 ac_env_build_alias_value=$build_alias
897 ac_cv_env_build_alias_set=${build_alias+set}
898 ac_cv_env_build_alias_value=$build_alias
899 ac_env_host_alias_set=${host_alias+set}
900 ac_env_host_alias_value=$host_alias
901 ac_cv_env_host_alias_set=${host_alias+set}
902 ac_cv_env_host_alias_value=$host_alias
903 ac_env_target_alias_set=${target_alias+set}
904 ac_env_target_alias_value=$target_alias
905 ac_cv_env_target_alias_set=${target_alias+set}
906 ac_cv_env_target_alias_value=$target_alias
907 ac_env_CC_set=${CC+set}
908 ac_env_CC_value=$CC
909 ac_cv_env_CC_set=${CC+set}
910 ac_cv_env_CC_value=$CC
911 ac_env_CFLAGS_set=${CFLAGS+set}
912 ac_env_CFLAGS_value=$CFLAGS
913 ac_cv_env_CFLAGS_set=${CFLAGS+set}
914 ac_cv_env_CFLAGS_value=$CFLAGS
915 ac_env_LDFLAGS_set=${LDFLAGS+set}
916 ac_env_LDFLAGS_value=$LDFLAGS
917 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
918 ac_cv_env_LDFLAGS_value=$LDFLAGS
919 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
920 ac_env_CPPFLAGS_value=$CPPFLAGS
921 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
922 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
923 ac_env_CXX_set=${CXX+set}
924 ac_env_CXX_value=$CXX
925 ac_cv_env_CXX_set=${CXX+set}
926 ac_cv_env_CXX_value=$CXX
927 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
928 ac_env_CXXFLAGS_value=$CXXFLAGS
929 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
930 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
931 ac_env_CPP_set=${CPP+set}
932 ac_env_CPP_value=$CPP
933 ac_cv_env_CPP_set=${CPP+set}
934 ac_cv_env_CPP_value=$CPP
935 ac_env_CXXCPP_set=${CXXCPP+set}
936 ac_env_CXXCPP_value=$CXXCPP
937 ac_cv_env_CXXCPP_set=${CXXCPP+set}
938 ac_cv_env_CXXCPP_value=$CXXCPP
939 ac_env_F77_set=${F77+set}
940 ac_env_F77_value=$F77
941 ac_cv_env_F77_set=${F77+set}
942 ac_cv_env_F77_value=$F77
943 ac_env_FFLAGS_set=${FFLAGS+set}
944 ac_env_FFLAGS_value=$FFLAGS
945 ac_cv_env_FFLAGS_set=${FFLAGS+set}
946 ac_cv_env_FFLAGS_value=$FFLAGS
947
948 #
949 # Report the --help message.
950 #
951 if test "$ac_init_help" = "long"; then
952 # Omit some internal or obsolete options to make the list less imposing.
953 # This message is too long to be a string in the A/UX 3.1 sh.
954 cat <<_ACEOF
955 \`configure' configures this package to adapt to many kinds of systems.
956
957 Usage: $0 [OPTION]... [VAR=VALUE]...
958
959 To assign environment variables (e.g., CC, CFLAGS...), specify them as
960 VAR=VALUE. See below for descriptions of some of the useful variables.
961
962 Defaults for the options are specified in brackets.
963
964 Configuration:
965 -h, --help display this help and exit
966 --help=short display options specific to this package
967 --help=recursive display the short help of all the included packages
968 -V, --version display version information and exit
969 -q, --quiet, --silent do not print \`checking...' messages
970 --cache-file=FILE cache test results in FILE [disabled]
971 -C, --config-cache alias for \`--cache-file=config.cache'
972 -n, --no-create do not create output files
973 --srcdir=DIR find the sources in DIR [configure dir or \`..']
974
975 _ACEOF
976
977 cat <<_ACEOF
978 Installation directories:
979 --prefix=PREFIX install architecture-independent files in PREFIX
980 [$ac_default_prefix]
981 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
982 [PREFIX]
983
984 By default, \`make install' will install all the files in
985 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
986 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
987 for instance \`--prefix=\$HOME'.
988
989 For better control, use the options below.
990
991 Fine tuning of the installation directories:
992 --bindir=DIR user executables [EPREFIX/bin]
993 --sbindir=DIR system admin executables [EPREFIX/sbin]
994 --libexecdir=DIR program executables [EPREFIX/libexec]
995 --datadir=DIR read-only architecture-independent data [PREFIX/share]
996 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
997 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
998 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
999 --libdir=DIR object code libraries [EPREFIX/lib]
1000 --includedir=DIR C header files [PREFIX/include]
1001 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1002 --infodir=DIR info documentation [PREFIX/info]
1003 --mandir=DIR man documentation [PREFIX/man]
1004 _ACEOF
1005
1006 cat <<\_ACEOF
1007
1008 Program names:
1009 --program-prefix=PREFIX prepend PREFIX to installed program names
1010 --program-suffix=SUFFIX append SUFFIX to installed program names
1011 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1012
1013 System types:
1014 --build=BUILD configure for building on BUILD [guessed]
1015 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1016 _ACEOF
1017 fi
1018
1019 if test -n "$ac_init_help"; then
1020
1021 cat <<\_ACEOF
1022
1023 Optional Features:
1024 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1025 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1026 --disable-dependency-tracking speeds up one-time build
1027 --enable-dependency-tracking do not reject slow dependency extractors
1028 --enable-shared[=PKGS]
1029 build shared libraries [default=yes]
1030 --enable-static[=PKGS]
1031 build static libraries [default=yes]
1032 --enable-fast-install[=PKGS]
1033 optimize for fast installation [default=yes]
1034 --disable-libtool-lock avoid locking (might break parallel builds)
1035 --enable-doc Build the documentation
1036 --enable-tests Build the test programs
1037 --enable-test-data Build TIFF test files for some ITU test images
1038 --enable-mmx Enable MMX support
1039 --enable-sse Enable SSE support
1040 --enable-sse2 Enable SSE2 support
1041 --enable-sse3 Enable SSE3 support
1042 --enable-ssse3 Enable SSSE3 support
1043 --enable-sse4-1 Enable SSE4.1 support
1044 --enable-sse4-2 Enable SSE4.2 support
1045 --enable-sse4a Enable SSE4A support
1046 --enable-sse5 Enable SSE5 support
1047 --enable-fixed-point Enable fixed point support
1048 --enable-builtin-tiff build with builtin libtiff
1049
1050 Optional Packages:
1051 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1052 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1053 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1054 --with-pic try to use only PIC/non-PIC objects [default=use
1055 both]
1056 --with-tags[=TAGS]
1057 include additional configurations [automatic]
1058
1059 Some influential environment variables:
1060 CC C compiler command
1061 CFLAGS C compiler flags
1062 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1063 nonstandard directory <lib dir>
1064 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1065 headers in a nonstandard directory <include dir>
1066 CXX C++ compiler command
1067 CXXFLAGS C++ compiler flags
1068 CPP C preprocessor
1069 CXXCPP C++ preprocessor
1070 F77 Fortran 77 compiler command
1071 FFLAGS Fortran 77 compiler flags
1072
1073 Use these variables to override the choices made by `configure' or to help
1074 it to find libraries and programs with nonstandard names/locations.
1075
1076 _ACEOF
1077 fi
1078
1079 if test "$ac_init_help" = "recursive"; then
1080 # If there are subdirs, report their specific --help.
1081 ac_popdir=`pwd`
1082 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1083 test -d $ac_dir || continue
1084 ac_builddir=.
1085
1086 if test "$ac_dir" != .; then
1087 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1088 # A "../" for each directory in $ac_dir_suffix.
1089 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1090 else
1091 ac_dir_suffix= ac_top_builddir=
1092 fi
1093
1094 case $srcdir in
1095 .) # No --srcdir option. We are building in place.
1096 ac_srcdir=.
1097 if test -z "$ac_top_builddir"; then
1098 ac_top_srcdir=.
1099 else
1100 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1101 fi ;;
1102 [\\/]* | ?:[\\/]* ) # Absolute path.
1103 ac_srcdir=$srcdir$ac_dir_suffix;
1104 ac_top_srcdir=$srcdir ;;
1105 *) # Relative path.
1106 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1107 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1108 esac
1109
1110 # Do not use `cd foo && pwd` to compute absolute paths, because
1111 # the directories may not exist.
1112 case `pwd` in
1113 .) ac_abs_builddir="$ac_dir";;
1114 *)
1115 case "$ac_dir" in
1116 .) ac_abs_builddir=`pwd`;;
1117 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1118 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1119 esac;;
1120 esac
1121 case $ac_abs_builddir in
1122 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1123 *)
1124 case ${ac_top_builddir}. in
1125 .) ac_abs_top_builddir=$ac_abs_builddir;;
1126 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1127 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1128 esac;;
1129 esac
1130 case $ac_abs_builddir in
1131 .) ac_abs_srcdir=$ac_srcdir;;
1132 *)
1133 case $ac_srcdir in
1134 .) ac_abs_srcdir=$ac_abs_builddir;;
1135 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1136 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1137 esac;;
1138 esac
1139 case $ac_abs_builddir in
1140 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1141 *)
1142 case $ac_top_srcdir in
1143 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1144 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1145 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1146 esac;;
1147 esac
1148
1149 cd $ac_dir
1150 # Check for guested configure; otherwise get Cygnus style configure.
1151 if test -f $ac_srcdir/configure.gnu; then
1152 echo
1153 $SHELL $ac_srcdir/configure.gnu --help=recursive
1154 elif test -f $ac_srcdir/configure; then
1155 echo
1156 $SHELL $ac_srcdir/configure --help=recursive
1157 elif test -f $ac_srcdir/configure.ac ||
1158 test -f $ac_srcdir/configure.in; then
1159 echo
1160 $ac_configure --help
1161 else
1162 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1163 fi
1164 cd $ac_popdir
1165 done
1166 fi
1167
1168 test -n "$ac_init_help" && exit 0
1169 if $ac_init_version; then
1170 cat <<\_ACEOF
1171
1172 Copyright (C) 2003 Free Software Foundation, Inc.
1173 This configure script is free software; the Free Software Foundation
1174 gives unlimited permission to copy, distribute and modify it.
1175 _ACEOF
1176 exit 0
1177 fi
1178 exec 5>config.log
1179 cat >&5 <<_ACEOF
1180 This file contains any messages produced by compilers while
1181 running configure, to aid debugging if configure makes a mistake.
1182
1183 It was created by $as_me, which was
1184 generated by GNU Autoconf 2.59. Invocation command line was
1185
1186 $ $0 $@
1187
1188 _ACEOF
1189 {
1190 cat <<_ASUNAME
1191 ## --------- ##
1192 ## Platform. ##
1193 ## --------- ##
1194
1195 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1196 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1197 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1198 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1199 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1200
1201 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1202 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1203
1204 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1205 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1206 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1207 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1208 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1209 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1210 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1211
1212 _ASUNAME
1213
1214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1215 for as_dir in $PATH
1216 do
1217 IFS=$as_save_IFS
1218 test -z "$as_dir" && as_dir=.
1219 echo "PATH: $as_dir"
1220 done
1221
1222 } >&5
1223
1224 cat >&5 <<_ACEOF
1225
1226
1227 ## ----------- ##
1228 ## Core tests. ##
1229 ## ----------- ##
1230
1231 _ACEOF
1232
1233
1234 # Keep a trace of the command line.
1235 # Strip out --no-create and --no-recursion so they do not pile up.
1236 # Strip out --silent because we don't want to record it for future runs.
1237 # Also quote any args containing shell meta-characters.
1238 # Make two passes to allow for proper duplicate-argument suppression.
1239 ac_configure_args=
1240 ac_configure_args0=
1241 ac_configure_args1=
1242 ac_sep=
1243 ac_must_keep_next=false
1244 for ac_pass in 1 2
1245 do
1246 for ac_arg
1247 do
1248 case $ac_arg in
1249 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1250 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1251 | -silent | --silent | --silen | --sile | --sil)
1252 continue ;;
1253 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1254 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1255 esac
1256 case $ac_pass in
1257 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1258 2)
1259 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1260 if test $ac_must_keep_next = true; then
1261 ac_must_keep_next=false # Got value, back to normal.
1262 else
1263 case $ac_arg in
1264 *=* | --config-cache | -C | -disable-* | --disable-* \
1265 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1266 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1267 | -with-* | --with-* | -without-* | --without-* | --x)
1268 case "$ac_configure_args0 " in
1269 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1270 esac
1271 ;;
1272 -* ) ac_must_keep_next=true ;;
1273 esac
1274 fi
1275 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1276 # Get rid of the leading space.
1277 ac_sep=" "
1278 ;;
1279 esac
1280 done
1281 done
1282 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1283 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1284
1285 # When interrupted or exit'd, cleanup temporary files, and complete
1286 # config.log. We remove comments because anyway the quotes in there
1287 # would cause problems or look ugly.
1288 # WARNING: Be sure not to use single quotes in there, as some shells,
1289 # such as our DU 5.0 friend, will then `close' the trap.
1290 trap 'exit_status=$?
1291 # Save into config.log some information that might help in debugging.
1292 {
1293 echo
1294
1295 cat <<\_ASBOX
1296 ## ---------------- ##
1297 ## Cache variables. ##
1298 ## ---------------- ##
1299 _ASBOX
1300 echo
1301 # The following way of writing the cache mishandles newlines in values,
1302 {
1303 (set) 2>&1 |
1304 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1305 *ac_space=\ *)
1306 sed -n \
1307 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1308 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1309 ;;
1310 *)
1311 sed -n \
1312 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1313 ;;
1314 esac;
1315 }
1316 echo
1317
1318 cat <<\_ASBOX
1319 ## ----------------- ##
1320 ## Output variables. ##
1321 ## ----------------- ##
1322 _ASBOX
1323 echo
1324 for ac_var in $ac_subst_vars
1325 do
1326 eval ac_val=$`echo $ac_var`
1327 echo "$ac_var='"'"'$ac_val'"'"'"
1328 done | sort
1329 echo
1330
1331 if test -n "$ac_subst_files"; then
1332 cat <<\_ASBOX
1333 ## ------------- ##
1334 ## Output files. ##
1335 ## ------------- ##
1336 _ASBOX
1337 echo
1338 for ac_var in $ac_subst_files
1339 do
1340 eval ac_val=$`echo $ac_var`
1341 echo "$ac_var='"'"'$ac_val'"'"'"
1342 done | sort
1343 echo
1344 fi
1345
1346 if test -s confdefs.h; then
1347 cat <<\_ASBOX
1348 ## ----------- ##
1349 ## confdefs.h. ##
1350 ## ----------- ##
1351 _ASBOX
1352 echo
1353 sed "/^$/d" confdefs.h | sort
1354 echo
1355 fi
1356 test "$ac_signal" != 0 &&
1357 echo "$as_me: caught signal $ac_signal"
1358 echo "$as_me: exit $exit_status"
1359 } >&5
1360 rm -f core *.core &&
1361 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1362 exit $exit_status
1363 ' 0
1364 for ac_signal in 1 2 13 15; do
1365 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1366 done
1367 ac_signal=0
1368
1369 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1370 rm -rf conftest* confdefs.h
1371 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1372 echo >confdefs.h
1373
1374 # Predefined preprocessor variables.
1375
1376 cat >>confdefs.h <<_ACEOF
1377 #define PACKAGE_NAME "$PACKAGE_NAME"
1378 _ACEOF
1379
1380
1381 cat >>confdefs.h <<_ACEOF
1382 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1383 _ACEOF
1384
1385
1386 cat >>confdefs.h <<_ACEOF
1387 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1388 _ACEOF
1389
1390
1391 cat >>confdefs.h <<_ACEOF
1392 #define PACKAGE_STRING "$PACKAGE_STRING"
1393 _ACEOF
1394
1395
1396 cat >>confdefs.h <<_ACEOF
1397 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1398 _ACEOF
1399
1400
1401 # Let the site file select an alternate cache file if it wants to.
1402 # Prefer explicitly selected file to automatically selected ones.
1403 if test -z "$CONFIG_SITE"; then
1404 if test "x$prefix" != xNONE; then
1405 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1406 else
1407 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1408 fi
1409 fi
1410 for ac_site_file in $CONFIG_SITE; do
1411 if test -r "$ac_site_file"; then
1412 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1413 echo "$as_me: loading site script $ac_site_file" >&6;}
1414 sed 's/^/| /' "$ac_site_file" >&5
1415 . "$ac_site_file"
1416 fi
1417 done
1418
1419 if test -r "$cache_file"; then
1420 # Some versions of bash will fail to source /dev/null (special
1421 # files actually), so we avoid doing that.
1422 if test -f "$cache_file"; then
1423 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1424 echo "$as_me: loading cache $cache_file" >&6;}
1425 case $cache_file in
1426 [\\/]* | ?:[\\/]* ) . $cache_file;;
1427 *) . ./$cache_file;;
1428 esac
1429 fi
1430 else
1431 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1432 echo "$as_me: creating cache $cache_file" >&6;}
1433 >$cache_file
1434 fi
1435
1436 # Check that the precious variables saved in the cache have kept the same
1437 # value.
1438 ac_cache_corrupted=false
1439 for ac_var in `(set) 2>&1 |
1440 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1441 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1442 eval ac_new_set=\$ac_env_${ac_var}_set
1443 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1444 eval ac_new_val="\$ac_env_${ac_var}_value"
1445 case $ac_old_set,$ac_new_set in
1446 set,)
1447 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1448 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1449 ac_cache_corrupted=: ;;
1450 ,set)
1451 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1452 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1453 ac_cache_corrupted=: ;;
1454 ,);;
1455 *)
1456 if test "x$ac_old_val" != "x$ac_new_val"; then
1457 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1458 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1459 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1460 echo "$as_me: former value: $ac_old_val" >&2;}
1461 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1462 echo "$as_me: current value: $ac_new_val" >&2;}
1463 ac_cache_corrupted=:
1464 fi;;
1465 esac
1466 # Pass precious variables to config.status.
1467 if test "$ac_new_set" = set; then
1468 case $ac_new_val in
1469 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1470 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1471 *) ac_arg=$ac_var=$ac_new_val ;;
1472 esac
1473 case " $ac_configure_args " in
1474 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1475 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1476 esac
1477 fi
1478 done
1479 if $ac_cache_corrupted; then
1480 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1481 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1482 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1483 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1484 { (exit 1); exit 1; }; }
1485 fi
1486
1487 ac_ext=c
1488 ac_cpp='$CPP $CPPFLAGS'
1489 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1490 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1491 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511
1512 # ===========================================================================
1513 # http://autoconf-archive.cryp.to/ax_compiler_vendor.html
1514 # ===========================================================================
1515 #
1516 # SYNOPSIS
1517 #
1518 # AX_COMPILER_VENDOR
1519 #
1520 # DESCRIPTION
1521 #
1522 # Determine the vendor of the C/C++ compiler, e.g., gnu, intel, ibm, sun,
1523 # hp, borland, comeau, dec, cray, kai, lcc, metrowerks, sgi, microsoft,
1524 # watcom, etc. The vendor is returned in the cache variable
1525 # $ax_cv_c_compiler_vendor for C and $ax_cv_cxx_compiler_vendor for C++.
1526 #
1527 # LAST MODIFICATION
1528 #
1529 # 2008-04-12
1530 #
1531 # COPYLEFT
1532 #
1533 # Copyright (c) 2008 Steven G. Johnson <stevenj@alum.mit.edu>
1534 # Copyright (c) 2008 Matteo Frigo
1535 #
1536 # This program is free software: you can redistribute it and/or modify it
1537 # under the terms of the GNU General Public License as published by the
1538 # Free Software Foundation, either version 3 of the License, or (at your
1539 # option) any later version.
1540 #
1541 # This program is distributed in the hope that it will be useful, but
1542 # WITHOUT ANY WARRANTY; without even the implied warranty of
1543 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
1544 # Public License for more details.
1545 #
1546 # You should have received a copy of the GNU General Public License along
1547 # with this program. If not, see <http://www.gnu.org/licenses/>.
1548 #
1549 # As a special exception, the respective Autoconf Macro's copyright owner
1550 # gives unlimited permission to copy, distribute and modify the configure
1551 # scripts that are the output of Autoconf when processing the Macro. You
1552 # need not follow the terms of the GNU General Public License when using
1553 # or distributing such scripts, even though portions of the text of the
1554 # Macro appear in them. The GNU General Public License (GPL) does govern
1555 # all other use of the material that constitutes the Autoconf Macro.
1556 #
1557 # This special exception to the GPL applies to versions of the Autoconf
1558 # Macro released by the Autoconf Macro Archive. When you make and
1559 # distribute a modified version of the Autoconf Macro, you may extend this
1560 # special exception to the GPL to apply to your modified version as well.
1561
1562
1563
1564 # AX_CHECK_REAL_FILE(FILE, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND])
1565 # ------------------------------------------------------------------
1566 #
1567 # Check for the existence of FILE, and make sure it is a real file or
1568 # directory, and not a symbolic link.
1569 #
1570 # AX_CHECK_REAL_FILE
1571
1572 # AX_FIXED_POINT_MACHINE(MACHINE, [ACTION-IF-FIXED-POINT], [ACTION-IF-NOT-FIXED-POINT])
1573 # -------------------------------------------------------------------------------------
1574 #
1575 # Check if a specified machine type is a fixed point only machine. That is, if it lacks
1576 # fast floating point support.
1577 #
1578 # This is a simple lookup amongst machines known to the current autotools. So far we deal
1579 # with the embedded ARM, Blackfin, MIPS, TI DSP and XScale processors as things which lack
1580 # fast hardware floating point.
1581 #
1582 # Other candidates would be the small embedded Power PCs.
1583 #
1584 # AX_FIXED_POINT_MACHINE
1585
1586 # AX_MISALIGNED_ACCESS_FAILS(MACHINE, [ACTION-IF-MISALIGNED-FAILS], [ACTION-IF-MISALIGNED-OK])
1587 # -------------------------------------------------------------------------------------
1588 #
1589 # Check if a specified machine type cannot handle misaligned data. That is, multi-byte data
1590 # types which are not properly aligned in memory fail. Many machines are happy to work with
1591 # misaligned data, but slowing down a bit. Other machines just won't tolerate such data.
1592 #
1593 # This is a simple lookup amongst machines known to the current autotools. So far we only deal
1594 # with the ARM and sparc.
1595 # A lookup is used, as many of the devices which cannot handled misaligned access are embedded
1596 # processors, for which the code normally be cross-compiled.
1597 #
1598 # MISALIGNED_ACCESS_FAILS
1599
1600 # @synopsis AX_C99_FLEXIBLE_ARRAY
1601 #
1602 # Does the compiler support the 1999 ISO C Standard "struct hack".
1603 # @version 1.1 Mar 15 2004
1604 # @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
1605 #
1606 # Permission to use, copy, modify, distribute, and sell this file for any
1607 # purpose is hereby granted without fee, provided that the above copyright
1608 # and this permission notice appear in all copies. No representations are
1609 # made about the suitability of this software for any purpose. It is
1610 # provided "as is" without express or implied warranty.
1611
1612 # AX_C99_FLEXIBLE_ARRAY
1613
1614 # @synopsis AX_C99_FUNC_LRINT
1615 #
1616 # Check whether C99's lrint function is available.
1617 # @version 1.3 Feb 12 2002
1618 # @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
1619 #
1620 # Permission to use, copy, modify, distribute, and sell this file for any
1621 # purpose is hereby granted without fee, provided that the above copyright
1622 # and this permission notice appear in all copies. No representations are
1623 # made about the suitability of this software for any purpose. It is
1624 # provided "as is" without express or implied warranty.
1625 #
1626 # AX_C99_FUNC_LRINT
1627
1628 # @synopsis AX_C99_FUNC_LRINTF
1629 #
1630 # Check whether C99's lrintf function is available.
1631 # @version 1.3 Feb 12 2002
1632 # @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
1633 #
1634 # Permission to use, copy, modify, distribute, and sell this file for any
1635 # purpose is hereby granted without fee, provided that the above copyright
1636 # and this permission notice appear in all copies. No representations are
1637 # made about the suitability of this software for any purpose. It is
1638 # provided "as is" without express or implied warranty.
1639 #
1640 # AX_C99_FUNC_LRINTF
1641
1642 # @synopsis AX_C99_FUNC_LLRINT
1643 #
1644 # Check whether C99's llrint function is available.
1645 # @version 1.1 Sep 30 2002
1646 # @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
1647 #
1648 # Permission to use, copy, modify, distribute, and sell this file for any
1649 # purpose is hereby granted without fee, provided that the above copyright
1650 # and this permission notice appear in all copies. No representations are
1651 # made about the suitability of this software for any purpose. It is
1652 # provided "as is" without express or implied warranty.
1653 #
1654 # AX_C99_FUNC_LLRINT
1655
1656
1657 # @synopsis AX_C99_FUNC_LLRINTF
1658 #
1659 # Check whether C99's llrintf function is available.
1660 # @version 1.1 Sep 30 2002
1661 # @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
1662 #
1663 # Permission to use, copy, modify, distribute, and sell this file for any
1664 # purpose is hereby granted without fee, provided that the above copyright
1665 # and this permission notice appear in all copies. No representations are
1666 # made about the suitability of this software for any purpose. It is
1667 # provided "as is" without express or implied warranty.
1668 #
1669 # AX_C99_FUNC_LLRINTF
1670
1671 # @synopsis AX_CHECK_EXPORT_CAPABILITY
1672 #
1673 # Does the compiler support the exporting of library symbols?
1674 # @version 1.0 Jan 31 2009
1675 # @author Steve Underwood
1676 #
1677 # Permission to use, copy, modify, distribute, and sell this file for any
1678 # purpose is hereby granted without fee, provided that the above copyright
1679 # and this permission notice appear in all copies. No representations are
1680 # made about the suitability of this software for any purpose. It is
1681 # provided "as is" without express or implied warranty.
1682
1683 # AX_CHECK_EXPORT_CAPABILITY
1684
1685
1686 SPANDSP_MAJOR_VERSION=0
1687 SPANDSP_MINOR_VERSION=0
1688 SPANDSP_MICRO_VERSION=6
1689
1690 SPANDSP_LT_CURRENT=2
1691 SPANDSP_LT_REVISION=0
1692 SPANDSP_LT_AGE=0
1693
1694 VERSION=$SPANDSP_MAJOR_VERSION.$SPANDSP_MINOR_VERSION.$SPANDSP_MICRO_VERSION
1695 PACKAGE=spandsp
1696
1697
1698
1699
1700
1701
1702 ac_aux_dir=
1703 for ac_dir in config $srcdir/config; do
1704 if test -f $ac_dir/install-sh; then
1705 ac_aux_dir=$ac_dir
1706 ac_install_sh="$ac_aux_dir/install-sh -c"
1707 break
1708 elif test -f $ac_dir/install.sh; then
1709 ac_aux_dir=$ac_dir
1710 ac_install_sh="$ac_aux_dir/install.sh -c"
1711 break
1712 elif test -f $ac_dir/shtool; then
1713 ac_aux_dir=$ac_dir
1714 ac_install_sh="$ac_aux_dir/shtool install -c"
1715 break
1716 fi
1717 done
1718 if test -z "$ac_aux_dir"; then
1719 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in config $srcdir/config" >&5
1720 echo "$as_me: error: cannot find install-sh or install.sh in config $srcdir/config" >&2;}
1721 { (exit 1); exit 1; }; }
1722 fi
1723 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1724 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1725 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1726
1727 ac_config_headers="$ac_config_headers src/config.h:config-h.in"
1728
1729 am__api_version="1.9"
1730 # Find a good install program. We prefer a C program (faster),
1731 # so one script is as good as another. But avoid the broken or
1732 # incompatible versions:
1733 # SysV /etc/install, /usr/sbin/install
1734 # SunOS /usr/etc/install
1735 # IRIX /sbin/install
1736 # AIX /bin/install
1737 # AmigaOS /C/install, which installs bootblocks on floppy discs
1738 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1739 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1740 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1741 # OS/2's system install, which has a completely different semantic
1742 # ./install, which can be erroneously created by make from ./install.sh.
1743 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1744 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1745 if test -z "$INSTALL"; then
1746 if test "${ac_cv_path_install+set}" = set; then
1747 echo $ECHO_N "(cached) $ECHO_C" >&6
1748 else
1749 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1750 for as_dir in $PATH
1751 do
1752 IFS=$as_save_IFS
1753 test -z "$as_dir" && as_dir=.
1754 # Account for people who put trailing slashes in PATH elements.
1755 case $as_dir/ in
1756 ./ | .// | /cC/* | \
1757 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1758 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1759 /usr/ucb/* ) ;;
1760 *)
1761 # OSF1 and SCO ODT 3.0 have their own names for install.
1762 # Don't use installbsd from OSF since it installs stuff as root
1763 # by default.
1764 for ac_prog in ginstall scoinst install; do
1765 for ac_exec_ext in '' $ac_executable_extensions; do
1766 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1767 if test $ac_prog = install &&
1768 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1769 # AIX install. It has an incompatible calling convention.
1770 :
1771 elif test $ac_prog = install &&
1772 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1773 # program-specific install script used by HP pwplus--don't use.
1774 :
1775 else
1776 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1777 break 3
1778 fi
1779 fi
1780 done
1781 done
1782 ;;
1783 esac
1784 done
1785
1786
1787 fi
1788 if test "${ac_cv_path_install+set}" = set; then
1789 INSTALL=$ac_cv_path_install
1790 else
1791 # As a last resort, use the slow shell script. We don't cache a
1792 # path for INSTALL within a source directory, because that will
1793 # break other packages using the cache if that directory is
1794 # removed, or if the path is relative.
1795 INSTALL=$ac_install_sh
1796 fi
1797 fi
1798 echo "$as_me:$LINENO: result: $INSTALL" >&5
1799 echo "${ECHO_T}$INSTALL" >&6
1800
1801 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1802 # It thinks the first close brace ends the variable substitution.
1803 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1804
1805 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1806
1807 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1808
1809 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1810 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1811 # Just in case
1812 sleep 1
1813 echo timestamp > conftest.file
1814 # Do `set' in a subshell so we don't clobber the current shell's
1815 # arguments. Must try -L first in case configure is actually a
1816 # symlink; some systems play weird games with the mod time of symlinks
1817 # (eg FreeBSD returns the mod time of the symlink's containing
1818 # directory).
1819 if (
1820 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1821 if test "$*" = "X"; then
1822 # -L didn't work.
1823 set X `ls -t $srcdir/configure conftest.file`
1824 fi
1825 rm -f conftest.file
1826 if test "$*" != "X $srcdir/configure conftest.file" \
1827 && test "$*" != "X conftest.file $srcdir/configure"; then
1828
1829 # If neither matched, then we have a broken ls. This can happen
1830 # if, for instance, CONFIG_SHELL is bash and it inherits a
1831 # broken ls alias from the environment. This has actually
1832 # happened. Such a system could not be considered "sane".
1833 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1834 alias in your environment" >&5
1835 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1836 alias in your environment" >&2;}
1837 { (exit 1); exit 1; }; }
1838 fi
1839
1840 test "$2" = conftest.file
1841 )
1842 then
1843 # Ok.
1844 :
1845 else
1846 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1847 Check your system clock" >&5
1848 echo "$as_me: error: newly created file is older than distributed files!
1849 Check your system clock" >&2;}
1850 { (exit 1); exit 1; }; }
1851 fi
1852 echo "$as_me:$LINENO: result: yes" >&5
1853 echo "${ECHO_T}yes" >&6
1854 test "$program_prefix" != NONE &&
1855 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1856 # Use a double $ so make ignores it.
1857 test "$program_suffix" != NONE &&
1858 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1859 # Double any \ or $. echo might interpret backslashes.
1860 # By default was `s,x,x', remove it if useless.
1861 cat <<\_ACEOF >conftest.sed
1862 s/[\\$]/&&/g;s/;s,x,x,$//
1863 _ACEOF
1864 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1865 rm conftest.sed
1866
1867 # expand $ac_aux_dir to an absolute path
1868 am_aux_dir=`cd $ac_aux_dir && pwd`
1869
1870 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1871 # Use eval to expand $SHELL
1872 if eval "$MISSING --run true"; then
1873 am_missing_run="$MISSING --run "
1874 else
1875 am_missing_run=
1876 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1877 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1878 fi
1879
1880 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1881 # We used to keeping the `.' as first argument, in order to
1882 # allow $(mkdir_p) to be used without argument. As in
1883 # $(mkdir_p) $(somedir)
1884 # where $(somedir) is conditionally defined. However this is wrong
1885 # for two reasons:
1886 # 1. if the package is installed by a user who cannot write `.'
1887 # make install will fail,
1888 # 2. the above comment should most certainly read
1889 # $(mkdir_p) $(DESTDIR)$(somedir)
1890 # so it does not work when $(somedir) is undefined and
1891 # $(DESTDIR) is not.
1892 # To support the latter case, we have to write
1893 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
1894 # so the `.' trick is pointless.
1895 mkdir_p='mkdir -p --'
1896 else
1897 # On NextStep and OpenStep, the `mkdir' command does not
1898 # recognize any option. It will interpret all options as
1899 # directories to create, and then abort because `.' already
1900 # exists.
1901 for d in ./-p ./--version;
1902 do
1903 test -d $d && rmdir $d
1904 done
1905 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1906 if test -f "$ac_aux_dir/mkinstalldirs"; then
1907 mkdir_p='$(mkinstalldirs)'
1908 else
1909 mkdir_p='$(install_sh) -d'
1910 fi
1911 fi
1912
1913 for ac_prog in gawk mawk nawk awk
1914 do
1915 # Extract the first word of "$ac_prog", so it can be a program name with args.
1916 set dummy $ac_prog; ac_word=$2
1917 echo "$as_me:$LINENO: checking for $ac_word" >&5
1918 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1919 if test "${ac_cv_prog_AWK+set}" = set; then
1920 echo $ECHO_N "(cached) $ECHO_C" >&6
1921 else
1922 if test -n "$AWK"; then
1923 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1924 else
1925 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1926 for as_dir in $PATH
1927 do
1928 IFS=$as_save_IFS
1929 test -z "$as_dir" && as_dir=.
1930 for ac_exec_ext in '' $ac_executable_extensions; do
1931 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1932 ac_cv_prog_AWK="$ac_prog"
1933 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1934 break 2
1935 fi
1936 done
1937 done
1938
1939 fi
1940 fi
1941 AWK=$ac_cv_prog_AWK
1942 if test -n "$AWK"; then
1943 echo "$as_me:$LINENO: result: $AWK" >&5
1944 echo "${ECHO_T}$AWK" >&6
1945 else
1946 echo "$as_me:$LINENO: result: no" >&5
1947 echo "${ECHO_T}no" >&6
1948 fi
1949
1950 test -n "$AWK" && break
1951 done
1952
1953 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1954 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1955 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1956 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1957 echo $ECHO_N "(cached) $ECHO_C" >&6
1958 else
1959 cat >conftest.make <<\_ACEOF
1960 all:
1961 @echo 'ac_maketemp="$(MAKE)"'
1962 _ACEOF
1963 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1964 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1965 if test -n "$ac_maketemp"; then
1966 eval ac_cv_prog_make_${ac_make}_set=yes
1967 else
1968 eval ac_cv_prog_make_${ac_make}_set=no
1969 fi
1970 rm -f conftest.make
1971 fi
1972 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1973 echo "$as_me:$LINENO: result: yes" >&5
1974 echo "${ECHO_T}yes" >&6
1975 SET_MAKE=
1976 else
1977 echo "$as_me:$LINENO: result: no" >&5
1978 echo "${ECHO_T}no" >&6
1979 SET_MAKE="MAKE=${MAKE-make}"
1980 fi
1981
1982 rm -rf .tst 2>/dev/null
1983 mkdir .tst 2>/dev/null
1984 if test -d .tst; then
1985 am__leading_dot=.
1986 else
1987 am__leading_dot=_
1988 fi
1989 rmdir .tst 2>/dev/null
1990
1991 # test to see if srcdir already configured
1992 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1993 test -f $srcdir/config.status; then
1994 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1995 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1996 { (exit 1); exit 1; }; }
1997 fi
1998
1999 # test whether we have cygpath
2000 if test -z "$CYGPATH_W"; then
2001 if (cygpath --version) >/dev/null 2>/dev/null; then
2002 CYGPATH_W='cygpath -w'
2003 else
2004 CYGPATH_W=echo
2005 fi
2006 fi
2007
2008
2009 # Define the identity of the package.
2010 PACKAGE=$PACKAGE
2011 VERSION=$VERSION
2012
2013
2014 cat >>confdefs.h <<_ACEOF
2015 #define PACKAGE "$PACKAGE"
2016 _ACEOF
2017
2018
2019 cat >>confdefs.h <<_ACEOF
2020 #define VERSION "$VERSION"
2021 _ACEOF
2022
2023 # Some tools Automake needs.
2024
2025 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2026
2027
2028 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2029
2030
2031 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2032
2033
2034 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2035
2036
2037 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2038
2039 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2040
2041 # Installed binaries are usually stripped using `strip' when the user
2042 # run `make install-strip'. However `strip' might not be the right
2043 # tool to use in cross-compilation environments, therefore Automake
2044 # will honor the `STRIP' environment variable to overrule this program.
2045 if test "$cross_compiling" != no; then
2046 if test -n "$ac_tool_prefix"; then
2047 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2048 set dummy ${ac_tool_prefix}strip; ac_word=$2
2049 echo "$as_me:$LINENO: checking for $ac_word" >&5
2050 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2051 if test "${ac_cv_prog_STRIP+set}" = set; then
2052 echo $ECHO_N "(cached) $ECHO_C" >&6
2053 else
2054 if test -n "$STRIP"; then
2055 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2056 else
2057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2058 for as_dir in $PATH
2059 do
2060 IFS=$as_save_IFS
2061 test -z "$as_dir" && as_dir=.
2062 for ac_exec_ext in '' $ac_executable_extensions; do
2063 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2064 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2065 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2066 break 2
2067 fi
2068 done
2069 done
2070
2071 fi
2072 fi
2073 STRIP=$ac_cv_prog_STRIP
2074 if test -n "$STRIP"; then
2075 echo "$as_me:$LINENO: result: $STRIP" >&5
2076 echo "${ECHO_T}$STRIP" >&6
2077 else
2078 echo "$as_me:$LINENO: result: no" >&5
2079 echo "${ECHO_T}no" >&6
2080 fi
2081
2082 fi
2083 if test -z "$ac_cv_prog_STRIP"; then
2084 ac_ct_STRIP=$STRIP
2085 # Extract the first word of "strip", so it can be a program name with args.
2086 set dummy strip; ac_word=$2
2087 echo "$as_me:$LINENO: checking for $ac_word" >&5
2088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2089 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2090 echo $ECHO_N "(cached) $ECHO_C" >&6
2091 else
2092 if test -n "$ac_ct_STRIP"; then
2093 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2094 else
2095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2096 for as_dir in $PATH
2097 do
2098 IFS=$as_save_IFS
2099 test -z "$as_dir" && as_dir=.
2100 for ac_exec_ext in '' $ac_executable_extensions; do
2101 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2102 ac_cv_prog_ac_ct_STRIP="strip"
2103 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2104 break 2
2105 fi
2106 done
2107 done
2108
2109 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2110 fi
2111 fi
2112 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2113 if test -n "$ac_ct_STRIP"; then
2114 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2115 echo "${ECHO_T}$ac_ct_STRIP" >&6
2116 else
2117 echo "$as_me:$LINENO: result: no" >&5
2118 echo "${ECHO_T}no" >&6
2119 fi
2120
2121 STRIP=$ac_ct_STRIP
2122 else
2123 STRIP="$ac_cv_prog_STRIP"
2124 fi
2125
2126 fi
2127 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2128
2129 # We need awk for the "check" target. The system "awk" is bad on
2130 # some platforms.
2131 # Always define AMTAR for backward compatibility.
2132
2133 AMTAR=${AMTAR-"${am_missing_run}tar"}
2134
2135 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2136
2137
2138
2139
2140
2141
2142 # Make sure we can run config.sub.
2143 $ac_config_sub sun4 >/dev/null 2>&1 ||
2144 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
2145 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
2146 { (exit 1); exit 1; }; }
2147
2148 echo "$as_me:$LINENO: checking build system type" >&5
2149 echo $ECHO_N "checking build system type... $ECHO_C" >&6
2150 if test "${ac_cv_build+set}" = set; then
2151 echo $ECHO_N "(cached) $ECHO_C" >&6
2152 else
2153 ac_cv_build_alias=$build_alias
2154 test -z "$ac_cv_build_alias" &&
2155 ac_cv_build_alias=`$ac_config_guess`
2156 test -z "$ac_cv_build_alias" &&
2157 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2158 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2159 { (exit 1); exit 1; }; }
2160 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
2161 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
2162 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
2163 { (exit 1); exit 1; }; }
2164
2165 fi
2166 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2167 echo "${ECHO_T}$ac_cv_build" >&6
2168 build=$ac_cv_build
2169 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2170 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2171 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2172
2173
2174 echo "$as_me:$LINENO: checking host system type" >&5
2175 echo $ECHO_N "checking host system type... $ECHO_C" >&6
2176 if test "${ac_cv_host+set}" = set; then
2177 echo $ECHO_N "(cached) $ECHO_C" >&6
2178 else
2179 ac_cv_host_alias=$host_alias
2180 test -z "$ac_cv_host_alias" &&
2181 ac_cv_host_alias=$ac_cv_build_alias
2182 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
2183 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
2184 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
2185 { (exit 1); exit 1; }; }
2186
2187 fi
2188 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2189 echo "${ECHO_T}$ac_cv_host" >&6
2190 host=$ac_cv_host
2191 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
2192 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
2193 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
2194
2195
2196 #AC_CANONICAL_BUILD
2197 ac_ext=c
2198 ac_cpp='$CPP $CPPFLAGS'
2199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2202 if test -n "$ac_tool_prefix"; then
2203 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2204 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2205 echo "$as_me:$LINENO: checking for $ac_word" >&5
2206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2207 if test "${ac_cv_prog_CC+set}" = set; then
2208 echo $ECHO_N "(cached) $ECHO_C" >&6
2209 else
2210 if test -n "$CC"; then
2211 ac_cv_prog_CC="$CC" # Let the user override the test.
2212 else
2213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2214 for as_dir in $PATH
2215 do
2216 IFS=$as_save_IFS
2217 test -z "$as_dir" && as_dir=.
2218 for ac_exec_ext in '' $ac_executable_extensions; do
2219 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2220 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2221 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2222 break 2
2223 fi
2224 done
2225 done
2226
2227 fi
2228 fi
2229 CC=$ac_cv_prog_CC
2230 if test -n "$CC"; then
2231 echo "$as_me:$LINENO: result: $CC" >&5
2232 echo "${ECHO_T}$CC" >&6
2233 else
2234 echo "$as_me:$LINENO: result: no" >&5
2235 echo "${ECHO_T}no" >&6
2236 fi
2237
2238 fi
2239 if test -z "$ac_cv_prog_CC"; then
2240 ac_ct_CC=$CC
2241 # Extract the first word of "gcc", so it can be a program name with args.
2242 set dummy gcc; ac_word=$2
2243 echo "$as_me:$LINENO: checking for $ac_word" >&5
2244 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2245 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2246 echo $ECHO_N "(cached) $ECHO_C" >&6
2247 else
2248 if test -n "$ac_ct_CC"; then
2249 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2250 else
2251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 for as_dir in $PATH
2253 do
2254 IFS=$as_save_IFS
2255 test -z "$as_dir" && as_dir=.
2256 for ac_exec_ext in '' $ac_executable_extensions; do
2257 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2258 ac_cv_prog_ac_ct_CC="gcc"
2259 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2260 break 2
2261 fi
2262 done
2263 done
2264
2265 fi
2266 fi
2267 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2268 if test -n "$ac_ct_CC"; then
2269 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2270 echo "${ECHO_T}$ac_ct_CC" >&6
2271 else
2272 echo "$as_me:$LINENO: result: no" >&5
2273 echo "${ECHO_T}no" >&6
2274 fi
2275
2276 CC=$ac_ct_CC
2277 else
2278 CC="$ac_cv_prog_CC"
2279 fi
2280
2281 if test -z "$CC"; then
2282 if test -n "$ac_tool_prefix"; then
2283 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2284 set dummy ${ac_tool_prefix}cc; ac_word=$2
2285 echo "$as_me:$LINENO: checking for $ac_word" >&5
2286 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2287 if test "${ac_cv_prog_CC+set}" = set; then
2288 echo $ECHO_N "(cached) $ECHO_C" >&6
2289 else
2290 if test -n "$CC"; then
2291 ac_cv_prog_CC="$CC" # Let the user override the test.
2292 else
2293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2294 for as_dir in $PATH
2295 do
2296 IFS=$as_save_IFS
2297 test -z "$as_dir" && as_dir=.
2298 for ac_exec_ext in '' $ac_executable_extensions; do
2299 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2300 ac_cv_prog_CC="${ac_tool_prefix}cc"
2301 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2302 break 2
2303 fi
2304 done
2305 done
2306
2307 fi
2308 fi
2309 CC=$ac_cv_prog_CC
2310 if test -n "$CC"; then
2311 echo "$as_me:$LINENO: result: $CC" >&5
2312 echo "${ECHO_T}$CC" >&6
2313 else
2314 echo "$as_me:$LINENO: result: no" >&5
2315 echo "${ECHO_T}no" >&6
2316 fi
2317
2318 fi
2319 if test -z "$ac_cv_prog_CC"; then
2320 ac_ct_CC=$CC
2321 # Extract the first word of "cc", so it can be a program name with args.
2322 set dummy cc; ac_word=$2
2323 echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2325 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328 if test -n "$ac_ct_CC"; then
2329 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2330 else
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 for as_dir in $PATH
2333 do
2334 IFS=$as_save_IFS
2335 test -z "$as_dir" && as_dir=.
2336 for ac_exec_ext in '' $ac_executable_extensions; do
2337 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2338 ac_cv_prog_ac_ct_CC="cc"
2339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340 break 2
2341 fi
2342 done
2343 done
2344
2345 fi
2346 fi
2347 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2348 if test -n "$ac_ct_CC"; then
2349 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2350 echo "${ECHO_T}$ac_ct_CC" >&6
2351 else
2352 echo "$as_me:$LINENO: result: no" >&5
2353 echo "${ECHO_T}no" >&6
2354 fi
2355
2356 CC=$ac_ct_CC
2357 else
2358 CC="$ac_cv_prog_CC"
2359 fi
2360
2361 fi
2362 if test -z "$CC"; then
2363 # Extract the first word of "cc", so it can be a program name with args.
2364 set dummy cc; ac_word=$2
2365 echo "$as_me:$LINENO: checking for $ac_word" >&5
2366 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2367 if test "${ac_cv_prog_CC+set}" = set; then
2368 echo $ECHO_N "(cached) $ECHO_C" >&6
2369 else
2370 if test -n "$CC"; then
2371 ac_cv_prog_CC="$CC" # Let the user override the test.
2372 else
2373 ac_prog_rejected=no
2374 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2375 for as_dir in $PATH
2376 do
2377 IFS=$as_save_IFS
2378 test -z "$as_dir" && as_dir=.
2379 for ac_exec_ext in '' $ac_executable_extensions; do
2380 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2381 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2382 ac_prog_rejected=yes
2383 continue
2384 fi
2385 ac_cv_prog_CC="cc"
2386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2387 break 2
2388 fi
2389 done
2390 done
2391
2392 if test $ac_prog_rejected = yes; then
2393 # We found a bogon in the path, so make sure we never use it.
2394 set dummy $ac_cv_prog_CC
2395 shift
2396 if test $# != 0; then
2397 # We chose a different compiler from the bogus one.
2398 # However, it has the same basename, so the bogon will be chosen
2399 # first if we set CC to just the basename; use the full file name.
2400 shift
2401 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2402 fi
2403 fi
2404 fi
2405 fi
2406 CC=$ac_cv_prog_CC
2407 if test -n "$CC"; then
2408 echo "$as_me:$LINENO: result: $CC" >&5
2409 echo "${ECHO_T}$CC" >&6
2410 else
2411 echo "$as_me:$LINENO: result: no" >&5
2412 echo "${ECHO_T}no" >&6
2413 fi
2414
2415 fi
2416 if test -z "$CC"; then
2417 if test -n "$ac_tool_prefix"; then
2418 for ac_prog in cl
2419 do
2420 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2421 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2422 echo "$as_me:$LINENO: checking for $ac_word" >&5
2423 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2424 if test "${ac_cv_prog_CC+set}" = set; then
2425 echo $ECHO_N "(cached) $ECHO_C" >&6
2426 else
2427 if test -n "$CC"; then
2428 ac_cv_prog_CC="$CC" # Let the user override the test.
2429 else
2430 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2431 for as_dir in $PATH
2432 do
2433 IFS=$as_save_IFS
2434 test -z "$as_dir" && as_dir=.
2435 for ac_exec_ext in '' $ac_executable_extensions; do
2436 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2437 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2438 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2439 break 2
2440 fi
2441 done
2442 done
2443
2444 fi
2445 fi
2446 CC=$ac_cv_prog_CC
2447 if test -n "$CC"; then
2448 echo "$as_me:$LINENO: result: $CC" >&5
2449 echo "${ECHO_T}$CC" >&6
2450 else
2451 echo "$as_me:$LINENO: result: no" >&5
2452 echo "${ECHO_T}no" >&6
2453 fi
2454
2455 test -n "$CC" && break
2456 done
2457 fi
2458 if test -z "$CC"; then
2459 ac_ct_CC=$CC
2460 for ac_prog in cl
2461 do
2462 # Extract the first word of "$ac_prog", so it can be a program name with args.
2463 set dummy $ac_prog; ac_word=$2
2464 echo "$as_me:$LINENO: checking for $ac_word" >&5
2465 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2466 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2467 echo $ECHO_N "(cached) $ECHO_C" >&6
2468 else
2469 if test -n "$ac_ct_CC"; then
2470 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2471 else
2472 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2473 for as_dir in $PATH
2474 do
2475 IFS=$as_save_IFS
2476 test -z "$as_dir" && as_dir=.
2477 for ac_exec_ext in '' $ac_executable_extensions; do
2478 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2479 ac_cv_prog_ac_ct_CC="$ac_prog"
2480 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2481 break 2
2482 fi
2483 done
2484 done
2485
2486 fi
2487 fi
2488 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2489 if test -n "$ac_ct_CC"; then
2490 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2491 echo "${ECHO_T}$ac_ct_CC" >&6
2492 else
2493 echo "$as_me:$LINENO: result: no" >&5
2494 echo "${ECHO_T}no" >&6
2495 fi
2496
2497 test -n "$ac_ct_CC" && break
2498 done
2499
2500 CC=$ac_ct_CC
2501 fi
2502
2503 fi
2504
2505
2506 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2507 See \`config.log' for more details." >&5
2508 echo "$as_me: error: no acceptable C compiler found in \$PATH
2509 See \`config.log' for more details." >&2;}
2510 { (exit 1); exit 1; }; }
2511
2512 # Provide some information about the compiler.
2513 echo "$as_me:$LINENO:" \
2514 "checking for C compiler version" >&5
2515 ac_compiler=`set X $ac_compile; echo $2`
2516 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
2517 (eval $ac_compiler --version </dev/null >&5) 2>&5
2518 ac_status=$?
2519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2520 (exit $ac_status); }
2521 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
2522 (eval $ac_compiler -v </dev/null >&5) 2>&5
2523 ac_status=$?
2524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2525 (exit $ac_status); }
2526 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
2527 (eval $ac_compiler -V </dev/null >&5) 2>&5
2528 ac_status=$?
2529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2530 (exit $ac_status); }
2531
2532 cat >conftest.$ac_ext <<_ACEOF
2533 /* confdefs.h. */
2534 _ACEOF
2535 cat confdefs.h >>conftest.$ac_ext
2536 cat >>conftest.$ac_ext <<_ACEOF
2537 /* end confdefs.h. */
2538
2539 int
2540 main ()
2541 {
2542
2543 ;
2544 return 0;
2545 }
2546 _ACEOF
2547 ac_clean_files_save=$ac_clean_files
2548 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2549 # Try to create an executable without -o first, disregard a.out.
2550 # It will help us diagnose broken compilers, and finding out an intuition
2551 # of exeext.
2552 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2553 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
2554 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2555 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
2556 (eval $ac_link_default) 2>&5
2557 ac_status=$?
2558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2559 (exit $ac_status); }; then
2560 # Find the output, starting from the most likely. This scheme is
2561 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
2562 # resort.
2563
2564 # Be careful to initialize this variable, since it used to be cached.
2565 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
2566 ac_cv_exeext=
2567 # b.out is created by i960 compilers.
2568 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
2569 do
2570 test -f "$ac_file" || continue
2571 case $ac_file in
2572 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
2573 ;;
2574 conftest.$ac_ext )
2575 # This is the source file.
2576 ;;
2577 [ab].out )
2578 # We found the default executable, but exeext='' is most
2579 # certainly right.
2580 break;;
2581 *.* )
2582 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2583 # FIXME: I believe we export ac_cv_exeext for Libtool,
2584 # but it would be cool to find out if it's true. Does anybody
2585 # maintain Libtool? --akim.
2586 export ac_cv_exeext
2587 break;;
2588 * )
2589 break;;
2590 esac
2591 done
2592 else
2593 echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2595
2596 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2597 See \`config.log' for more details." >&5
2598 echo "$as_me: error: C compiler cannot create executables
2599 See \`config.log' for more details." >&2;}
2600 { (exit 77); exit 77; }; }
2601 fi
2602
2603 ac_exeext=$ac_cv_exeext
2604 echo "$as_me:$LINENO: result: $ac_file" >&5
2605 echo "${ECHO_T}$ac_file" >&6
2606
2607 # Check the compiler produces executables we can run. If not, either
2608 # the compiler is broken, or we cross compile.
2609 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2610 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2611 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2612 # If not cross compiling, check that we can run a simple program.
2613 if test "$cross_compiling" != yes; then
2614 if { ac_try='./$ac_file'
2615 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2616 (eval $ac_try) 2>&5
2617 ac_status=$?
2618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2619 (exit $ac_status); }; }; then
2620 cross_compiling=no
2621 else
2622 if test "$cross_compiling" = maybe; then
2623 cross_compiling=yes
2624 else
2625 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2626 If you meant to cross compile, use \`--host'.
2627 See \`config.log' for more details." >&5
2628 echo "$as_me: error: cannot run C compiled programs.
2629 If you meant to cross compile, use \`--host'.
2630 See \`config.log' for more details." >&2;}
2631 { (exit 1); exit 1; }; }
2632 fi
2633 fi
2634 fi
2635 echo "$as_me:$LINENO: result: yes" >&5
2636 echo "${ECHO_T}yes" >&6
2637
2638 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2639 ac_clean_files=$ac_clean_files_save
2640 # Check the compiler produces executables we can run. If not, either
2641 # the compiler is broken, or we cross compile.
2642 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2643 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2644 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2645 echo "${ECHO_T}$cross_compiling" >&6
2646
2647 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2648 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2649 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2650 (eval $ac_link) 2>&5
2651 ac_status=$?
2652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2653 (exit $ac_status); }; then
2654 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2655 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2656 # work properly (i.e., refer to `conftest.exe'), while it won't with
2657 # `rm'.
2658 for ac_file in conftest.exe conftest conftest.*; do
2659 test -f "$ac_file" || continue
2660 case $ac_file in
2661 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2662 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2663 export ac_cv_exeext
2664 break;;
2665 * ) break;;
2666 esac
2667 done
2668 else
2669 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2670 See \`config.log' for more details." >&5
2671 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2672 See \`config.log' for more details." >&2;}
2673 { (exit 1); exit 1; }; }
2674 fi
2675
2676 rm -f conftest$ac_cv_exeext
2677 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2678 echo "${ECHO_T}$ac_cv_exeext" >&6
2679
2680 rm -f conftest.$ac_ext
2681 EXEEXT=$ac_cv_exeext
2682 ac_exeext=$EXEEXT
2683 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2684 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2685 if test "${ac_cv_objext+set}" = set; then
2686 echo $ECHO_N "(cached) $ECHO_C" >&6
2687 else
2688 cat >conftest.$ac_ext <<_ACEOF
2689 /* confdefs.h. */
2690 _ACEOF
2691 cat confdefs.h >>conftest.$ac_ext
2692 cat >>conftest.$ac_ext <<_ACEOF
2693 /* end confdefs.h. */
2694
2695 int
2696 main ()
2697 {
2698
2699 ;
2700 return 0;
2701 }
2702 _ACEOF
2703 rm -f conftest.o conftest.obj
2704 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2705 (eval $ac_compile) 2>&5
2706 ac_status=$?
2707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2708 (exit $ac_status); }; then
2709 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2710 case $ac_file in
2711 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2712 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2713 break;;
2714 esac
2715 done
2716 else
2717 echo "$as_me: failed program was:" >&5
2718 sed 's/^/| /' conftest.$ac_ext >&5
2719
2720 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2721 See \`config.log' for more details." >&5
2722 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2723 See \`config.log' for more details." >&2;}
2724 { (exit 1); exit 1; }; }
2725 fi
2726
2727 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2728 fi
2729 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2730 echo "${ECHO_T}$ac_cv_objext" >&6
2731 OBJEXT=$ac_cv_objext
2732 ac_objext=$OBJEXT
2733 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2734 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2735 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2736 echo $ECHO_N "(cached) $ECHO_C" >&6
2737 else
2738 cat >conftest.$ac_ext <<_ACEOF
2739 /* confdefs.h. */
2740 _ACEOF
2741 cat confdefs.h >>conftest.$ac_ext
2742 cat >>conftest.$ac_ext <<_ACEOF
2743 /* end confdefs.h. */
2744
2745 int
2746 main ()
2747 {
2748 #ifndef __GNUC__
2749 choke me
2750 #endif
2751
2752 ;
2753 return 0;
2754 }
2755 _ACEOF
2756 rm -f conftest.$ac_objext
2757 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2758 (eval $ac_compile) 2>conftest.er1
2759 ac_status=$?
2760 grep -v '^ *+' conftest.er1 >conftest.err
2761 rm -f conftest.er1
2762 cat conftest.err >&5
2763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2764 (exit $ac_status); } &&
2765 { ac_try='test -z "$ac_c_werror_flag"
2766 || test ! -s conftest.err'
2767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2768 (eval $ac_try) 2>&5
2769 ac_status=$?
2770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2771 (exit $ac_status); }; } &&
2772 { ac_try='test -s conftest.$ac_objext'
2773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2774 (eval $ac_try) 2>&5
2775 ac_status=$?
2776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2777 (exit $ac_status); }; }; then
2778 ac_compiler_gnu=yes
2779 else
2780 echo "$as_me: failed program was:" >&5
2781 sed 's/^/| /' conftest.$ac_ext >&5
2782
2783 ac_compiler_gnu=no
2784 fi
2785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2786 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2787
2788 fi
2789 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2790 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2791 GCC=`test $ac_compiler_gnu = yes && echo yes`
2792 ac_test_CFLAGS=${CFLAGS+set}
2793 ac_save_CFLAGS=$CFLAGS
2794 CFLAGS="-g"
2795 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2796 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2797 if test "${ac_cv_prog_cc_g+set}" = set; then
2798 echo $ECHO_N "(cached) $ECHO_C" >&6
2799 else
2800 cat >conftest.$ac_ext <<_ACEOF
2801 /* confdefs.h. */
2802 _ACEOF
2803 cat confdefs.h >>conftest.$ac_ext
2804 cat >>conftest.$ac_ext <<_ACEOF
2805 /* end confdefs.h. */
2806
2807 int
2808 main ()
2809 {
2810
2811 ;
2812 return 0;
2813 }
2814 _ACEOF
2815 rm -f conftest.$ac_objext
2816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2817 (eval $ac_compile) 2>conftest.er1
2818 ac_status=$?
2819 grep -v '^ *+' conftest.er1 >conftest.err
2820 rm -f conftest.er1
2821 cat conftest.err >&5
2822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2823 (exit $ac_status); } &&
2824 { ac_try='test -z "$ac_c_werror_flag"
2825 || test ! -s conftest.err'
2826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2827 (eval $ac_try) 2>&5
2828 ac_status=$?
2829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2830 (exit $ac_status); }; } &&
2831 { ac_try='test -s conftest.$ac_objext'
2832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2833 (eval $ac_try) 2>&5
2834 ac_status=$?
2835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2836 (exit $ac_status); }; }; then
2837 ac_cv_prog_cc_g=yes
2838 else
2839 echo "$as_me: failed program was:" >&5
2840 sed 's/^/| /' conftest.$ac_ext >&5
2841
2842 ac_cv_prog_cc_g=no
2843 fi
2844 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2845 fi
2846 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2847 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2848 if test "$ac_test_CFLAGS" = set; then
2849 CFLAGS=$ac_save_CFLAGS
2850 elif test $ac_cv_prog_cc_g = yes; then
2851 if test "$GCC" = yes; then
2852 CFLAGS="-g -O2"
2853 else
2854 CFLAGS="-g"
2855 fi
2856 else
2857 if test "$GCC" = yes; then
2858 CFLAGS="-O2"
2859 else
2860 CFLAGS=
2861 fi
2862 fi
2863 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2864 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2865 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2866 echo $ECHO_N "(cached) $ECHO_C" >&6
2867 else
2868 ac_cv_prog_cc_stdc=no
2869 ac_save_CC=$CC
2870 cat >conftest.$ac_ext <<_ACEOF
2871 /* confdefs.h. */
2872 _ACEOF
2873 cat confdefs.h >>conftest.$ac_ext
2874 cat >>conftest.$ac_ext <<_ACEOF
2875 /* end confdefs.h. */
2876 #include <stdarg.h>
2877 #include <stdio.h>
2878 #include <sys/types.h>
2879 #include <sys/stat.h>
2880 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2881 struct buf { int x; };
2882 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2883 static char *e (p, i)
2884 char **p;
2885 int i;
2886 {
2887 return p[i];
2888 }
2889 static char *f (char * (*g) (char **, int), char **p, ...)
2890 {
2891 char *s;
2892 va_list v;
2893 va_start (v,p);
2894 s = g (p, va_arg (v,int));
2895 va_end (v);
2896 return s;
2897 }
2898
2899 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2900 function prototypes and stuff, but not '\xHH' hex character constants.
2901 These don't provoke an error unfortunately, instead are silently treated
2902 as 'x'. The following induces an error, until -std1 is added to get
2903 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2904 array size at least. It's necessary to write '\x00'==0 to get something
2905 that's true only with -std1. */
2906 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2907
2908 int test (int i, double x);
2909 struct s1 {int (*f) (int a);};
2910 struct s2 {int (*f) (double a);};
2911 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2912 int argc;
2913 char **argv;
2914 int
2915 main ()
2916 {
2917 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2918 ;
2919 return 0;
2920 }
2921 _ACEOF
2922 # Don't try gcc -ansi; that turns off useful extensions and
2923 # breaks some systems' header files.
2924 # AIX -qlanglvl=ansi
2925 # Ultrix and OSF/1 -std1
2926 # HP-UX 10.20 and later -Ae
2927 # HP-UX older versions -Aa -D_HPUX_SOURCE
2928 # SVR4 -Xc -D__EXTENSIONS__
2929 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2930 do
2931 CC="$ac_save_CC $ac_arg"
2932 rm -f conftest.$ac_objext
2933 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2934 (eval $ac_compile) 2>conftest.er1
2935 ac_status=$?
2936 grep -v '^ *+' conftest.er1 >conftest.err
2937 rm -f conftest.er1
2938 cat conftest.err >&5
2939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940 (exit $ac_status); } &&
2941 { ac_try='test -z "$ac_c_werror_flag"
2942 || test ! -s conftest.err'
2943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2944 (eval $ac_try) 2>&5
2945 ac_status=$?
2946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2947 (exit $ac_status); }; } &&
2948 { ac_try='test -s conftest.$ac_objext'
2949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2950 (eval $ac_try) 2>&5
2951 ac_status=$?
2952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2953 (exit $ac_status); }; }; then
2954 ac_cv_prog_cc_stdc=$ac_arg
2955 break
2956 else
2957 echo "$as_me: failed program was:" >&5
2958 sed 's/^/| /' conftest.$ac_ext >&5
2959
2960 fi
2961 rm -f conftest.err conftest.$ac_objext
2962 done
2963 rm -f conftest.$ac_ext conftest.$ac_objext
2964 CC=$ac_save_CC
2965
2966 fi
2967
2968 case "x$ac_cv_prog_cc_stdc" in
2969 x|xno)
2970 echo "$as_me:$LINENO: result: none needed" >&5
2971 echo "${ECHO_T}none needed" >&6 ;;
2972 *)
2973 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2974 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2975 CC="$CC $ac_cv_prog_cc_stdc" ;;
2976 esac
2977
2978 # Some people use a C++ compiler to compile C. Since we use `exit',
2979 # in C++ we need to declare it. In case someone uses the same compiler
2980 # for both compiling C and C++ we need to have the C++ compiler decide
2981 # the declaration of exit, since it's the most demanding environment.
2982 cat >conftest.$ac_ext <<_ACEOF
2983 #ifndef __cplusplus
2984 choke me
2985 #endif
2986 _ACEOF
2987 rm -f conftest.$ac_objext
2988 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2989 (eval $ac_compile) 2>conftest.er1
2990 ac_status=$?
2991 grep -v '^ *+' conftest.er1 >conftest.err
2992 rm -f conftest.er1
2993 cat conftest.err >&5
2994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2995 (exit $ac_status); } &&
2996 { ac_try='test -z "$ac_c_werror_flag"
2997 || test ! -s conftest.err'
2998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2999 (eval $ac_try) 2>&5
3000 ac_status=$?
3001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3002 (exit $ac_status); }; } &&
3003 { ac_try='test -s conftest.$ac_objext'
3004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3005 (eval $ac_try) 2>&5
3006 ac_status=$?
3007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3008 (exit $ac_status); }; }; then
3009 for ac_declaration in \
3010 '' \
3011 'extern "C" void std::exit (int) throw (); using std::exit;' \
3012 'extern "C" void std::exit (int); using std::exit;' \
3013 'extern "C" void exit (int) throw ();' \
3014 'extern "C" void exit (int);' \
3015 'void exit (int);'
3016 do
3017 cat >conftest.$ac_ext <<_ACEOF
3018 /* confdefs.h. */
3019 _ACEOF
3020 cat confdefs.h >>conftest.$ac_ext
3021 cat >>conftest.$ac_ext <<_ACEOF
3022 /* end confdefs.h. */
3023 $ac_declaration
3024 #include <stdlib.h>
3025 int
3026 main ()
3027 {
3028 exit (42);
3029 ;
3030 return 0;
3031 }
3032 _ACEOF
3033 rm -f conftest.$ac_objext
3034 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3035 (eval $ac_compile) 2>conftest.er1
3036 ac_status=$?
3037 grep -v '^ *+' conftest.er1 >conftest.err
3038 rm -f conftest.er1
3039 cat conftest.err >&5
3040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3041 (exit $ac_status); } &&
3042 { ac_try='test -z "$ac_c_werror_flag"
3043 || test ! -s conftest.err'
3044 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3045 (eval $ac_try) 2>&5
3046 ac_status=$?
3047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3048 (exit $ac_status); }; } &&
3049 { ac_try='test -s conftest.$ac_objext'
3050 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3051 (eval $ac_try) 2>&5
3052 ac_status=$?
3053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3054 (exit $ac_status); }; }; then
3055 :
3056 else
3057 echo "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3059
3060 continue
3061 fi
3062 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3063 cat >conftest.$ac_ext <<_ACEOF
3064 /* confdefs.h. */
3065 _ACEOF
3066 cat confdefs.h >>conftest.$ac_ext
3067 cat >>conftest.$ac_ext <<_ACEOF
3068 /* end confdefs.h. */
3069 $ac_declaration
3070 int
3071 main ()
3072 {
3073 exit (42);
3074 ;
3075 return 0;
3076 }
3077 _ACEOF
3078 rm -f conftest.$ac_objext
3079 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3080 (eval $ac_compile) 2>conftest.er1
3081 ac_status=$?
3082 grep -v '^ *+' conftest.er1 >conftest.err
3083 rm -f conftest.er1
3084 cat conftest.err >&5
3085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3086 (exit $ac_status); } &&
3087 { ac_try='test -z "$ac_c_werror_flag"
3088 || test ! -s conftest.err'
3089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3090 (eval $ac_try) 2>&5
3091 ac_status=$?
3092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3093 (exit $ac_status); }; } &&
3094 { ac_try='test -s conftest.$ac_objext'
3095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3096 (eval $ac_try) 2>&5
3097 ac_status=$?
3098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3099 (exit $ac_status); }; }; then
3100 break
3101 else
3102 echo "$as_me: failed program was:" >&5
3103 sed 's/^/| /' conftest.$ac_ext >&5
3104
3105 fi
3106 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3107 done
3108 rm -f conftest*
3109 if test -n "$ac_declaration"; then
3110 echo '#ifdef __cplusplus' >>confdefs.h
3111 echo $ac_declaration >>confdefs.h
3112 echo '#endif' >>confdefs.h
3113 fi
3114
3115 else
3116 echo "$as_me: failed program was:" >&5
3117 sed 's/^/| /' conftest.$ac_ext >&5
3118
3119 fi
3120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3121 ac_ext=c
3122 ac_cpp='$CPP $CPPFLAGS'
3123 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3124 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3125 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3126 DEPDIR="${am__leading_dot}deps"
3127
3128 ac_config_commands="$ac_config_commands depfiles"
3129
3130
3131 am_make=${MAKE-make}
3132 cat > confinc << 'END'
3133 am__doit:
3134 @echo done
3135 .PHONY: am__doit
3136 END
3137 # If we don't find an include directive, just comment out the code.
3138 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3139 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3140 am__include="#"
3141 am__quote=
3142 _am_result=none
3143 # First try GNU make style include.
3144 echo "include confinc" > confmf
3145 # We grep out `Entering directory' and `Leaving directory'
3146 # messages which can occur if `w' ends up in MAKEFLAGS.
3147 # In particular we don't look at `^make:' because GNU make might
3148 # be invoked under some other name (usually "gmake"), in which
3149 # case it prints its new name instead of `make'.
3150 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3151 am__include=include
3152 am__quote=
3153 _am_result=GNU
3154 fi
3155 # Now try BSD make style include.
3156 if test "$am__include" = "#"; then
3157 echo '.include "confinc"' > confmf
3158 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3159 am__include=.include
3160 am__quote="\""
3161 _am_result=BSD
3162 fi
3163 fi
3164
3165
3166 echo "$as_me:$LINENO: result: $_am_result" >&5
3167 echo "${ECHO_T}$_am_result" >&6
3168 rm -f confinc confmf
3169
3170 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3171 if test "${enable_dependency_tracking+set}" = set; then
3172 enableval="$enable_dependency_tracking"
3173
3174 fi;
3175 if test "x$enable_dependency_tracking" != xno; then
3176 am_depcomp="$ac_aux_dir/depcomp"
3177 AMDEPBACKSLASH='\'
3178 fi
3179
3180
3181 if test "x$enable_dependency_tracking" != xno; then
3182 AMDEP_TRUE=
3183 AMDEP_FALSE='#'
3184 else
3185 AMDEP_TRUE='#'
3186 AMDEP_FALSE=
3187 fi
3188
3189
3190
3191
3192 depcc="$CC" am_compiler_list=
3193
3194 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3195 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3196 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3197 echo $ECHO_N "(cached) $ECHO_C" >&6
3198 else
3199 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3200 # We make a subdir and do the tests there. Otherwise we can end up
3201 # making bogus files that we don't know about and never remove. For
3202 # instance it was reported that on HP-UX the gcc test will end up
3203 # making a dummy file named `D' -- because `-MD' means `put the output
3204 # in D'.
3205 mkdir conftest.dir
3206 # Copy depcomp to subdir because otherwise we won't find it if we're
3207 # using a relative directory.
3208 cp "$am_depcomp" conftest.dir
3209 cd conftest.dir
3210 # We will build objects and dependencies in a subdirectory because
3211 # it helps to detect inapplicable dependency modes. For instance
3212 # both Tru64's cc and ICC support -MD to output dependencies as a
3213 # side effect of compilation, but ICC will put the dependencies in
3214 # the current directory while Tru64 will put them in the object
3215 # directory.
3216 mkdir sub
3217
3218 am_cv_CC_dependencies_compiler_type=none
3219 if test "$am_compiler_list" = ""; then
3220 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3221 fi
3222 for depmode in $am_compiler_list; do
3223 # Setup a source with many dependencies, because some compilers
3224 # like to wrap large dependency lists on column 80 (with \), and
3225 # we should not choose a depcomp mode which is confused by this.
3226 #
3227 # We need to recreate these files for each test, as the compiler may
3228 # overwrite some of them when testing with obscure command lines.
3229 # This happens at least with the AIX C compiler.
3230 : > sub/conftest.c
3231 for i in 1 2 3 4 5 6; do
3232 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3233 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3234 # Solaris 8's {/usr,}/bin/sh.
3235 touch sub/conftst$i.h
3236 done
3237 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3238
3239 case $depmode in
3240 nosideeffect)
3241 # after this tag, mechanisms are not by side-effect, so they'll
3242 # only be used when explicitly requested
3243 if test "x$enable_dependency_tracking" = xyes; then
3244 continue
3245 else
3246 break
3247 fi
3248 ;;
3249 none) break ;;
3250 esac
3251 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3252 # mode. It turns out that the SunPro C++ compiler does not properly
3253 # handle `-M -o', and we need to detect this.
3254 if depmode=$depmode \
3255 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3256 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3257 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3258 >/dev/null 2>conftest.err &&
3259 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3260 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3261 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3262 # icc doesn't choke on unknown options, it will just issue warnings
3263 # or remarks (even with -Werror). So we grep stderr for any message
3264 # that says an option was ignored or not supported.
3265 # When given -MP, icc 7.0 and 7.1 complain thusly:
3266 # icc: Command line warning: ignoring option '-M'; no argument required
3267 # The diagnosis changed in icc 8.0:
3268 # icc: Command line remark: option '-MP' not supported
3269 if (grep 'ignoring option' conftest.err ||
3270 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3271 am_cv_CC_dependencies_compiler_type=$depmode
3272 break
3273 fi
3274 fi
3275 done
3276
3277 cd ..
3278 rm -rf conftest.dir
3279 else
3280 am_cv_CC_dependencies_compiler_type=none
3281 fi
3282
3283 fi
3284 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3285 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3286 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3287
3288
3289
3290 if
3291 test "x$enable_dependency_tracking" != xno \
3292 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3293 am__fastdepCC_TRUE=
3294 am__fastdepCC_FALSE='#'
3295 else
3296 am__fastdepCC_TRUE='#'
3297 am__fastdepCC_FALSE=
3298 fi
3299
3300
3301 ac_ext=cc
3302 ac_cpp='$CXXCPP $CPPFLAGS'
3303 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3304 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3305 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3306 if test -n "$ac_tool_prefix"; then
3307 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3308 do
3309 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3310 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3311 echo "$as_me:$LINENO: checking for $ac_word" >&5
3312 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3313 if test "${ac_cv_prog_CXX+set}" = set; then
3314 echo $ECHO_N "(cached) $ECHO_C" >&6
3315 else
3316 if test -n "$CXX"; then
3317 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3318 else
3319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3320 for as_dir in $PATH
3321 do
3322 IFS=$as_save_IFS
3323 test -z "$as_dir" && as_dir=.
3324 for ac_exec_ext in '' $ac_executable_extensions; do
3325 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3326 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3327 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3328 break 2
3329 fi
3330 done
3331 done
3332
3333 fi
3334 fi
3335 CXX=$ac_cv_prog_CXX
3336 if test -n "$CXX"; then
3337 echo "$as_me:$LINENO: result: $CXX" >&5
3338 echo "${ECHO_T}$CXX" >&6
3339 else
3340 echo "$as_me:$LINENO: result: no" >&5
3341 echo "${ECHO_T}no" >&6
3342 fi
3343
3344 test -n "$CXX" && break
3345 done
3346 fi
3347 if test -z "$CXX"; then
3348 ac_ct_CXX=$CXX
3349 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
3350 do
3351 # Extract the first word of "$ac_prog", so it can be a program name with args.
3352 set dummy $ac_prog; ac_word=$2
3353 echo "$as_me:$LINENO: checking for $ac_word" >&5
3354 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3355 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
3356 echo $ECHO_N "(cached) $ECHO_C" >&6
3357 else
3358 if test -n "$ac_ct_CXX"; then
3359 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3360 else
3361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3362 for as_dir in $PATH
3363 do
3364 IFS=$as_save_IFS
3365 test -z "$as_dir" && as_dir=.
3366 for ac_exec_ext in '' $ac_executable_extensions; do
3367 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3368 ac_cv_prog_ac_ct_CXX="$ac_prog"
3369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 break 2
3371 fi
3372 done
3373 done
3374
3375 fi
3376 fi
3377 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3378 if test -n "$ac_ct_CXX"; then
3379 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
3380 echo "${ECHO_T}$ac_ct_CXX" >&6
3381 else
3382 echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6
3384 fi
3385
3386 test -n "$ac_ct_CXX" && break
3387 done
3388 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
3389
3390 CXX=$ac_ct_CXX
3391 fi
3392
3393
3394 # Provide some information about the compiler.
3395 echo "$as_me:$LINENO:" \
3396 "checking for C++ compiler version" >&5
3397 ac_compiler=`set X $ac_compile; echo $2`
3398 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
3399 (eval $ac_compiler --version </dev/null >&5) 2>&5
3400 ac_status=$?
3401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402 (exit $ac_status); }
3403 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
3404 (eval $ac_compiler -v </dev/null >&5) 2>&5
3405 ac_status=$?
3406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3407 (exit $ac_status); }
3408 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
3409 (eval $ac_compiler -V </dev/null >&5) 2>&5
3410 ac_status=$?
3411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3412 (exit $ac_status); }
3413
3414 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
3415 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
3416 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
3417 echo $ECHO_N "(cached) $ECHO_C" >&6
3418 else
3419 cat >conftest.$ac_ext <<_ACEOF
3420 /* confdefs.h. */
3421 _ACEOF
3422 cat confdefs.h >>conftest.$ac_ext
3423 cat >>conftest.$ac_ext <<_ACEOF
3424 /* end confdefs.h. */
3425
3426 int
3427 main ()
3428 {
3429 #ifndef __GNUC__
3430 choke me
3431 #endif
3432
3433 ;
3434 return 0;
3435 }
3436 _ACEOF
3437 rm -f conftest.$ac_objext
3438 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3439 (eval $ac_compile) 2>conftest.er1
3440 ac_status=$?
3441 grep -v '^ *+' conftest.er1 >conftest.err
3442 rm -f conftest.er1
3443 cat conftest.err >&5
3444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3445 (exit $ac_status); } &&
3446 { ac_try='test -z "$ac_cxx_werror_flag"
3447 || test ! -s conftest.err'
3448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3449 (eval $ac_try) 2>&5
3450 ac_status=$?
3451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3452 (exit $ac_status); }; } &&
3453 { ac_try='test -s conftest.$ac_objext'
3454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3455 (eval $ac_try) 2>&5
3456 ac_status=$?
3457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3458 (exit $ac_status); }; }; then
3459 ac_compiler_gnu=yes
3460 else
3461 echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3463
3464 ac_compiler_gnu=no
3465 fi
3466 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3467 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3468
3469 fi
3470 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
3471 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
3472 GXX=`test $ac_compiler_gnu = yes && echo yes`
3473 ac_test_CXXFLAGS=${CXXFLAGS+set}
3474 ac_save_CXXFLAGS=$CXXFLAGS
3475 CXXFLAGS="-g"
3476 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
3477 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
3478 if test "${ac_cv_prog_cxx_g+set}" = set; then
3479 echo $ECHO_N "(cached) $ECHO_C" >&6
3480 else
3481 cat >conftest.$ac_ext <<_ACEOF
3482 /* confdefs.h. */
3483 _ACEOF
3484 cat confdefs.h >>conftest.$ac_ext
3485 cat >>conftest.$ac_ext <<_ACEOF
3486 /* end confdefs.h. */
3487
3488 int
3489 main ()
3490 {
3491
3492 ;
3493 return 0;
3494 }
3495 _ACEOF
3496 rm -f conftest.$ac_objext
3497 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3498 (eval $ac_compile) 2>conftest.er1
3499 ac_status=$?
3500 grep -v '^ *+' conftest.er1 >conftest.err
3501 rm -f conftest.er1
3502 cat conftest.err >&5
3503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3504 (exit $ac_status); } &&
3505 { ac_try='test -z "$ac_cxx_werror_flag"
3506 || test ! -s conftest.err'
3507 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3508 (eval $ac_try) 2>&5
3509 ac_status=$?
3510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3511 (exit $ac_status); }; } &&
3512 { ac_try='test -s conftest.$ac_objext'
3513 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3514 (eval $ac_try) 2>&5
3515 ac_status=$?
3516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3517 (exit $ac_status); }; }; then
3518 ac_cv_prog_cxx_g=yes
3519 else
3520 echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3522
3523 ac_cv_prog_cxx_g=no
3524 fi
3525 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3526 fi
3527 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
3528 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
3529 if test "$ac_test_CXXFLAGS" = set; then
3530 CXXFLAGS=$ac_save_CXXFLAGS
3531 elif test $ac_cv_prog_cxx_g = yes; then
3532 if test "$GXX" = yes; then
3533 CXXFLAGS="-g -O2"
3534 else
3535 CXXFLAGS="-g"
3536 fi
3537 else
3538 if test "$GXX" = yes; then
3539 CXXFLAGS="-O2"
3540 else
3541 CXXFLAGS=
3542 fi
3543 fi
3544 for ac_declaration in \
3545 '' \
3546 'extern "C" void std::exit (int) throw (); using std::exit;' \
3547 'extern "C" void std::exit (int); using std::exit;' \
3548 'extern "C" void exit (int) throw ();' \
3549 'extern "C" void exit (int);' \
3550 'void exit (int);'
3551 do
3552 cat >conftest.$ac_ext <<_ACEOF
3553 /* confdefs.h. */
3554 _ACEOF
3555 cat confdefs.h >>conftest.$ac_ext
3556 cat >>conftest.$ac_ext <<_ACEOF
3557 /* end confdefs.h. */
3558 $ac_declaration
3559 #include <stdlib.h>
3560 int
3561 main ()
3562 {
3563 exit (42);
3564 ;
3565 return 0;
3566 }
3567 _ACEOF
3568 rm -f conftest.$ac_objext
3569 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3570 (eval $ac_compile) 2>conftest.er1
3571 ac_status=$?
3572 grep -v '^ *+' conftest.er1 >conftest.err
3573 rm -f conftest.er1
3574 cat conftest.err >&5
3575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3576 (exit $ac_status); } &&
3577 { ac_try='test -z "$ac_cxx_werror_flag"
3578 || test ! -s conftest.err'
3579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3580 (eval $ac_try) 2>&5
3581 ac_status=$?
3582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3583 (exit $ac_status); }; } &&
3584 { ac_try='test -s conftest.$ac_objext'
3585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3586 (eval $ac_try) 2>&5
3587 ac_status=$?
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }; }; then
3590 :
3591 else
3592 echo "$as_me: failed program was:" >&5
3593 sed 's/^/| /' conftest.$ac_ext >&5
3594
3595 continue
3596 fi
3597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3598 cat >conftest.$ac_ext <<_ACEOF
3599 /* confdefs.h. */
3600 _ACEOF
3601 cat confdefs.h >>conftest.$ac_ext
3602 cat >>conftest.$ac_ext <<_ACEOF
3603 /* end confdefs.h. */
3604 $ac_declaration
3605 int
3606 main ()
3607 {
3608 exit (42);
3609 ;
3610 return 0;
3611 }
3612 _ACEOF
3613 rm -f conftest.$ac_objext
3614 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3615 (eval $ac_compile) 2>conftest.er1
3616 ac_status=$?
3617 grep -v '^ *+' conftest.er1 >conftest.err
3618 rm -f conftest.er1
3619 cat conftest.err >&5
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); } &&
3622 { ac_try='test -z "$ac_cxx_werror_flag"
3623 || test ! -s conftest.err'
3624 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3625 (eval $ac_try) 2>&5
3626 ac_status=$?
3627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3628 (exit $ac_status); }; } &&
3629 { ac_try='test -s conftest.$ac_objext'
3630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3631 (eval $ac_try) 2>&5
3632 ac_status=$?
3633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3634 (exit $ac_status); }; }; then
3635 break
3636 else
3637 echo "$as_me: failed program was:" >&5
3638 sed 's/^/| /' conftest.$ac_ext >&5
3639
3640 fi
3641 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3642 done
3643 rm -f conftest*
3644 if test -n "$ac_declaration"; then
3645 echo '#ifdef __cplusplus' >>confdefs.h
3646 echo $ac_declaration >>confdefs.h
3647 echo '#endif' >>confdefs.h
3648 fi
3649
3650 ac_ext=c
3651 ac_cpp='$CPP $CPPFLAGS'
3652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3655
3656 depcc="$CXX" am_compiler_list=
3657
3658 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3659 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3660 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3664 # We make a subdir and do the tests there. Otherwise we can end up
3665 # making bogus files that we don't know about and never remove. For
3666 # instance it was reported that on HP-UX the gcc test will end up
3667 # making a dummy file named `D' -- because `-MD' means `put the output
3668 # in D'.
3669 mkdir conftest.dir
3670 # Copy depcomp to subdir because otherwise we won't find it if we're
3671 # using a relative directory.
3672 cp "$am_depcomp" conftest.dir
3673 cd conftest.dir
3674 # We will build objects and dependencies in a subdirectory because
3675 # it helps to detect inapplicable dependency modes. For instance
3676 # both Tru64's cc and ICC support -MD to output dependencies as a
3677 # side effect of compilation, but ICC will put the dependencies in
3678 # the current directory while Tru64 will put them in the object
3679 # directory.
3680 mkdir sub
3681
3682 am_cv_CXX_dependencies_compiler_type=none
3683 if test "$am_compiler_list" = ""; then
3684 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3685 fi
3686 for depmode in $am_compiler_list; do
3687 # Setup a source with many dependencies, because some compilers
3688 # like to wrap large dependency lists on column 80 (with \), and
3689 # we should not choose a depcomp mode which is confused by this.
3690 #
3691 # We need to recreate these files for each test, as the compiler may
3692 # overwrite some of them when testing with obscure command lines.
3693 # This happens at least with the AIX C compiler.
3694 : > sub/conftest.c
3695 for i in 1 2 3 4 5 6; do
3696 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3697 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3698 # Solaris 8's {/usr,}/bin/sh.
3699 touch sub/conftst$i.h
3700 done
3701 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3702
3703 case $depmode in
3704 nosideeffect)
3705 # after this tag, mechanisms are not by side-effect, so they'll
3706 # only be used when explicitly requested
3707 if test "x$enable_dependency_tracking" = xyes; then
3708 continue
3709 else
3710 break
3711 fi
3712 ;;
3713 none) break ;;
3714 esac
3715 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3716 # mode. It turns out that the SunPro C++ compiler does not properly
3717 # handle `-M -o', and we need to detect this.
3718 if depmode=$depmode \
3719 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3720 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3721 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3722 >/dev/null 2>conftest.err &&
3723 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3724 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3725 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3726 # icc doesn't choke on unknown options, it will just issue warnings
3727 # or remarks (even with -Werror). So we grep stderr for any message
3728 # that says an option was ignored or not supported.
3729 # When given -MP, icc 7.0 and 7.1 complain thusly:
3730 # icc: Command line warning: ignoring option '-M'; no argument required
3731 # The diagnosis changed in icc 8.0:
3732 # icc: Command line remark: option '-MP' not supported
3733 if (grep 'ignoring option' conftest.err ||
3734 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3735 am_cv_CXX_dependencies_compiler_type=$depmode
3736 break
3737 fi
3738 fi
3739 done
3740
3741 cd ..
3742 rm -rf conftest.dir
3743 else
3744 am_cv_CXX_dependencies_compiler_type=none
3745 fi
3746
3747 fi
3748 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3749 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
3750 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3751
3752
3753
3754 if
3755 test "x$enable_dependency_tracking" != xno \
3756 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3757 am__fastdepCXX_TRUE=
3758 am__fastdepCXX_FALSE='#'
3759 else
3760 am__fastdepCXX_TRUE='#'
3761 am__fastdepCXX_FALSE=
3762 fi
3763
3764
3765
3766 ac_ext=c
3767 ac_cpp='$CPP $CPPFLAGS'
3768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3771 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3772 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
3773 # On Suns, sometimes $CPP names a directory.
3774 if test -n "$CPP" && test -d "$CPP"; then
3775 CPP=
3776 fi
3777 if test -z "$CPP"; then
3778 if test "${ac_cv_prog_CPP+set}" = set; then
3779 echo $ECHO_N "(cached) $ECHO_C" >&6
3780 else
3781 # Double quotes because CPP needs to be expanded
3782 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3783 do
3784 ac_preproc_ok=false
3785 for ac_c_preproc_warn_flag in '' yes
3786 do
3787 # Use a header file that comes with gcc, so configuring glibc
3788 # with a fresh cross-compiler works.
3789 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3790 # <limits.h> exists even on freestanding compilers.
3791 # On the NeXT, cc -E runs the code through the compiler's parser,
3792 # not just through cpp. "Syntax error" is here to catch this case.
3793 cat >conftest.$ac_ext <<_ACEOF
3794 /* confdefs.h. */
3795 _ACEOF
3796 cat confdefs.h >>conftest.$ac_ext
3797 cat >>conftest.$ac_ext <<_ACEOF
3798 /* end confdefs.h. */
3799 #ifdef __STDC__
3800 # include <limits.h>
3801 #else
3802 # include <assert.h>
3803 #endif
3804 Syntax error
3805 _ACEOF
3806 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3807 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3808 ac_status=$?
3809 grep -v '^ *+' conftest.er1 >conftest.err
3810 rm -f conftest.er1
3811 cat conftest.err >&5
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); } >/dev/null; then
3814 if test -s conftest.err; then
3815 ac_cpp_err=$ac_c_preproc_warn_flag
3816 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3817 else
3818 ac_cpp_err=
3819 fi
3820 else
3821 ac_cpp_err=yes
3822 fi
3823 if test -z "$ac_cpp_err"; then
3824 :
3825 else
3826 echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3828
3829 # Broken: fails on valid input.
3830 continue
3831 fi
3832 rm -f conftest.err conftest.$ac_ext
3833
3834 # OK, works on sane cases. Now check whether non-existent headers
3835 # can be detected and how.
3836 cat >conftest.$ac_ext <<_ACEOF
3837 /* confdefs.h. */
3838 _ACEOF
3839 cat confdefs.h >>conftest.$ac_ext
3840 cat >>conftest.$ac_ext <<_ACEOF
3841 /* end confdefs.h. */
3842 #include <ac_nonexistent.h>
3843 _ACEOF
3844 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3845 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3846 ac_status=$?
3847 grep -v '^ *+' conftest.er1 >conftest.err
3848 rm -f conftest.er1
3849 cat conftest.err >&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); } >/dev/null; then
3852 if test -s conftest.err; then
3853 ac_cpp_err=$ac_c_preproc_warn_flag
3854 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3855 else
3856 ac_cpp_err=
3857 fi
3858 else
3859 ac_cpp_err=yes
3860 fi
3861 if test -z "$ac_cpp_err"; then
3862 # Broken: success on invalid input.
3863 continue
3864 else
3865 echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.$ac_ext >&5
3867
3868 # Passes both tests.
3869 ac_preproc_ok=:
3870 break
3871 fi
3872 rm -f conftest.err conftest.$ac_ext
3873
3874 done
3875 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3876 rm -f conftest.err conftest.$ac_ext
3877 if $ac_preproc_ok; then
3878 break
3879 fi
3880
3881 done
3882 ac_cv_prog_CPP=$CPP
3883
3884 fi
3885 CPP=$ac_cv_prog_CPP
3886 else
3887 ac_cv_prog_CPP=$CPP
3888 fi
3889 echo "$as_me:$LINENO: result: $CPP" >&5
3890 echo "${ECHO_T}$CPP" >&6
3891 ac_preproc_ok=false
3892 for ac_c_preproc_warn_flag in '' yes
3893 do
3894 # Use a header file that comes with gcc, so configuring glibc
3895 # with a fresh cross-compiler works.
3896 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3897 # <limits.h> exists even on freestanding compilers.
3898 # On the NeXT, cc -E runs the code through the compiler's parser,
3899 # not just through cpp. "Syntax error" is here to catch this case.
3900 cat >conftest.$ac_ext <<_ACEOF
3901 /* confdefs.h. */
3902 _ACEOF
3903 cat confdefs.h >>conftest.$ac_ext
3904 cat >>conftest.$ac_ext <<_ACEOF
3905 /* end confdefs.h. */
3906 #ifdef __STDC__
3907 # include <limits.h>
3908 #else
3909 # include <assert.h>
3910 #endif
3911 Syntax error
3912 _ACEOF
3913 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3914 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3915 ac_status=$?
3916 grep -v '^ *+' conftest.er1 >conftest.err
3917 rm -f conftest.er1
3918 cat conftest.err >&5
3919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3920 (exit $ac_status); } >/dev/null; then
3921 if test -s conftest.err; then
3922 ac_cpp_err=$ac_c_preproc_warn_flag
3923 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3924 else
3925 ac_cpp_err=
3926 fi
3927 else
3928 ac_cpp_err=yes
3929 fi
3930 if test -z "$ac_cpp_err"; then
3931 :
3932 else
3933 echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3935
3936 # Broken: fails on valid input.
3937 continue
3938 fi
3939 rm -f conftest.err conftest.$ac_ext
3940
3941 # OK, works on sane cases. Now check whether non-existent headers
3942 # can be detected and how.
3943 cat >conftest.$ac_ext <<_ACEOF
3944 /* confdefs.h. */
3945 _ACEOF
3946 cat confdefs.h >>conftest.$ac_ext
3947 cat >>conftest.$ac_ext <<_ACEOF
3948 /* end confdefs.h. */
3949 #include <ac_nonexistent.h>
3950 _ACEOF
3951 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3952 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3953 ac_status=$?
3954 grep -v '^ *+' conftest.er1 >conftest.err
3955 rm -f conftest.er1
3956 cat conftest.err >&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); } >/dev/null; then
3959 if test -s conftest.err; then
3960 ac_cpp_err=$ac_c_preproc_warn_flag
3961 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3962 else
3963 ac_cpp_err=
3964 fi
3965 else
3966 ac_cpp_err=yes
3967 fi
3968 if test -z "$ac_cpp_err"; then
3969 # Broken: success on invalid input.
3970 continue
3971 else
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3974
3975 # Passes both tests.
3976 ac_preproc_ok=:
3977 break
3978 fi
3979 rm -f conftest.err conftest.$ac_ext
3980
3981 done
3982 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3983 rm -f conftest.err conftest.$ac_ext
3984 if $ac_preproc_ok; then
3985 :
3986 else
3987 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3988 See \`config.log' for more details." >&5
3989 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3990 See \`config.log' for more details." >&2;}
3991 { (exit 1); exit 1; }; }
3992 fi
3993
3994 ac_ext=c
3995 ac_cpp='$CPP $CPPFLAGS'
3996 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3997 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3998 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3999
4000
4001 echo "$as_me:$LINENO: checking for egrep" >&5
4002 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
4003 if test "${ac_cv_prog_egrep+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
4007 then ac_cv_prog_egrep='grep -E'
4008 else ac_cv_prog_egrep='egrep'
4009 fi
4010 fi
4011 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
4012 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
4013 EGREP=$ac_cv_prog_egrep
4014
4015
4016 if test $ac_cv_c_compiler_gnu = yes; then
4017 echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
4018 echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
4019 if test "${ac_cv_prog_gcc_traditional+set}" = set; then
4020 echo $ECHO_N "(cached) $ECHO_C" >&6
4021 else
4022 ac_pattern="Autoconf.*'x'"
4023 cat >conftest.$ac_ext <<_ACEOF
4024 /* confdefs.h. */
4025 _ACEOF
4026 cat confdefs.h >>conftest.$ac_ext
4027 cat >>conftest.$ac_ext <<_ACEOF
4028 /* end confdefs.h. */
4029 #include <sgtty.h>
4030 Autoconf TIOCGETP
4031 _ACEOF
4032 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4033 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4034 ac_cv_prog_gcc_traditional=yes
4035 else
4036 ac_cv_prog_gcc_traditional=no
4037 fi
4038 rm -f conftest*
4039
4040
4041 if test $ac_cv_prog_gcc_traditional = no; then
4042 cat >conftest.$ac_ext <<_ACEOF
4043 /* confdefs.h. */
4044 _ACEOF
4045 cat confdefs.h >>conftest.$ac_ext
4046 cat >>conftest.$ac_ext <<_ACEOF
4047 /* end confdefs.h. */
4048 #include <termio.h>
4049 Autoconf TCGETA
4050 _ACEOF
4051 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4052 $EGREP "$ac_pattern" >/dev/null 2>&1; then
4053 ac_cv_prog_gcc_traditional=yes
4054 fi
4055 rm -f conftest*
4056
4057 fi
4058 fi
4059 echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
4060 echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
4061 if test $ac_cv_prog_gcc_traditional = yes; then
4062 CC="$CC -traditional"
4063 fi
4064 fi
4065
4066 # Check whether --enable-shared or --disable-shared was given.
4067 if test "${enable_shared+set}" = set; then
4068 enableval="$enable_shared"
4069 p=${PACKAGE-default}
4070 case $enableval in
4071 yes) enable_shared=yes ;;
4072 no) enable_shared=no ;;
4073 *)
4074 enable_shared=no
4075 # Look at the argument we got. We use all the common list separators.
4076 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4077 for pkg in $enableval; do
4078 IFS="$lt_save_ifs"
4079 if test "X$pkg" = "X$p"; then
4080 enable_shared=yes
4081 fi
4082 done
4083 IFS="$lt_save_ifs"
4084 ;;
4085 esac
4086 else
4087 enable_shared=yes
4088 fi;
4089
4090 # Check whether --enable-static or --disable-static was given.
4091 if test "${enable_static+set}" = set; then
4092 enableval="$enable_static"
4093 p=${PACKAGE-default}
4094 case $enableval in
4095 yes) enable_static=yes ;;
4096 no) enable_static=no ;;
4097 *)
4098 enable_static=no
4099 # Look at the argument we got. We use all the common list separators.
4100 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4101 for pkg in $enableval; do
4102 IFS="$lt_save_ifs"
4103 if test "X$pkg" = "X$p"; then
4104 enable_static=yes
4105 fi
4106 done
4107 IFS="$lt_save_ifs"
4108 ;;
4109 esac
4110 else
4111 enable_static=yes
4112 fi;
4113
4114 # Check whether --enable-fast-install or --disable-fast-install was given.
4115 if test "${enable_fast_install+set}" = set; then
4116 enableval="$enable_fast_install"
4117 p=${PACKAGE-default}
4118 case $enableval in
4119 yes) enable_fast_install=yes ;;
4120 no) enable_fast_install=no ;;
4121 *)
4122 enable_fast_install=no
4123 # Look at the argument we got. We use all the common list separators.
4124 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
4125 for pkg in $enableval; do
4126 IFS="$lt_save_ifs"
4127 if test "X$pkg" = "X$p"; then
4128 enable_fast_install=yes
4129 fi
4130 done
4131 IFS="$lt_save_ifs"
4132 ;;
4133 esac
4134 else
4135 enable_fast_install=yes
4136 fi;
4137
4138 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
4139 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
4140 if test "${lt_cv_path_SED+set}" = set; then
4141 echo $ECHO_N "(cached) $ECHO_C" >&6
4142 else
4143 # Loop through the user's path and test for sed and gsed.
4144 # Then use that list of sed's as ones to test for truncation.
4145 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4146 for as_dir in $PATH
4147 do
4148 IFS=$as_save_IFS
4149 test -z "$as_dir" && as_dir=.
4150 for lt_ac_prog in sed gsed; do
4151 for ac_exec_ext in '' $ac_executable_extensions; do
4152 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
4153 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
4154 fi
4155 done
4156 done
4157 done
4158 IFS=$as_save_IFS
4159 lt_ac_max=0
4160 lt_ac_count=0
4161 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
4162 # along with /bin/sed that truncates output.
4163 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
4164 test ! -f $lt_ac_sed && continue
4165 cat /dev/null > conftest.in
4166 lt_ac_count=0
4167 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
4168 # Check for GNU sed and select it if it is found.
4169 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
4170 lt_cv_path_SED=$lt_ac_sed
4171 break
4172 fi
4173 while true; do
4174 cat conftest.in conftest.in >conftest.tmp
4175 mv conftest.tmp conftest.in
4176 cp conftest.in conftest.nl
4177 echo >>conftest.nl
4178 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
4179 cmp -s conftest.out conftest.nl || break
4180 # 10000 chars as input seems more than enough
4181 test $lt_ac_count -gt 10 && break
4182 lt_ac_count=`expr $lt_ac_count + 1`
4183 if test $lt_ac_count -gt $lt_ac_max; then
4184 lt_ac_max=$lt_ac_count
4185 lt_cv_path_SED=$lt_ac_sed
4186 fi
4187 done
4188 done
4189
4190 fi
4191
4192 SED=$lt_cv_path_SED
4193
4194 echo "$as_me:$LINENO: result: $SED" >&5
4195 echo "${ECHO_T}$SED" >&6
4196
4197
4198 # Check whether --with-gnu-ld or --without-gnu-ld was given.
4199 if test "${with_gnu_ld+set}" = set; then
4200 withval="$with_gnu_ld"
4201 test "$withval" = no || with_gnu_ld=yes
4202 else
4203 with_gnu_ld=no
4204 fi;
4205 ac_prog=ld
4206 if test "$GCC" = yes; then
4207 # Check if gcc -print-prog-name=ld gives a path.
4208 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
4209 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
4210 case $host in
4211 *-*-mingw*)
4212 # gcc leaves a trailing carriage return which upsets mingw
4213 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4214 *)
4215 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4216 esac
4217 case $ac_prog in
4218 # Accept absolute paths.
4219 [\\/]* | ?:[\\/]*)
4220 re_direlt='/[^/][^/]*/\.\./'
4221 # Canonicalize the pathname of ld
4222 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
4223 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
4224 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
4225 done
4226 test -z "$LD" && LD="$ac_prog"
4227 ;;
4228 "")
4229 # If it fails, then pretend we aren't using GCC.
4230 ac_prog=ld
4231 ;;
4232 *)
4233 # If it is relative, then search for the first ld in PATH.
4234 with_gnu_ld=unknown
4235 ;;
4236 esac
4237 elif test "$with_gnu_ld" = yes; then
4238 echo "$as_me:$LINENO: checking for GNU ld" >&5
4239 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
4240 else
4241 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
4242 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
4243 fi
4244 if test "${lt_cv_path_LD+set}" = set; then
4245 echo $ECHO_N "(cached) $ECHO_C" >&6
4246 else
4247 if test -z "$LD"; then
4248 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4249 for ac_dir in $PATH; do
4250 IFS="$lt_save_ifs"
4251 test -z "$ac_dir" && ac_dir=.
4252 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4253 lt_cv_path_LD="$ac_dir/$ac_prog"
4254 # Check to see if the program is GNU ld. I'd rather use --version,
4255 # but apparently some variants of GNU ld only accept -v.
4256 # Break only if it was the GNU/non-GNU ld that we prefer.
4257 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4258 *GNU* | *'with BFD'*)
4259 test "$with_gnu_ld" != no && break
4260 ;;
4261 *)
4262 test "$with_gnu_ld" != yes && break
4263 ;;
4264 esac
4265 fi
4266 done
4267 IFS="$lt_save_ifs"
4268 else
4269 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4270 fi
4271 fi
4272
4273 LD="$lt_cv_path_LD"
4274 if test -n "$LD"; then
4275 echo "$as_me:$LINENO: result: $LD" >&5
4276 echo "${ECHO_T}$LD" >&6
4277 else
4278 echo "$as_me:$LINENO: result: no" >&5
4279 echo "${ECHO_T}no" >&6
4280 fi
4281 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
4282 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
4283 { (exit 1); exit 1; }; }
4284 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
4285 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
4286 if test "${lt_cv_prog_gnu_ld+set}" = set; then
4287 echo $ECHO_N "(cached) $ECHO_C" >&6
4288 else
4289 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4290 case `$LD -v 2>&1 </dev/null` in
4291 *GNU* | *'with BFD'*)
4292 lt_cv_prog_gnu_ld=yes
4293 ;;
4294 *)
4295 lt_cv_prog_gnu_ld=no
4296 ;;
4297 esac
4298 fi
4299 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
4300 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
4301 with_gnu_ld=$lt_cv_prog_gnu_ld
4302
4303
4304 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
4305 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
4306 if test "${lt_cv_ld_reload_flag+set}" = set; then
4307 echo $ECHO_N "(cached) $ECHO_C" >&6
4308 else
4309 lt_cv_ld_reload_flag='-r'
4310 fi
4311 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
4312 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
4313 reload_flag=$lt_cv_ld_reload_flag
4314 case $reload_flag in
4315 "" | " "*) ;;
4316 *) reload_flag=" $reload_flag" ;;
4317 esac
4318 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4319 case $host_os in
4320 darwin*)
4321 if test "$GCC" = yes; then
4322 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
4323 else
4324 reload_cmds='$LD$reload_flag -o $output$reload_objs'
4325 fi
4326 ;;
4327 esac
4328
4329 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
4330 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
4331 if test "${lt_cv_path_NM+set}" = set; then
4332 echo $ECHO_N "(cached) $ECHO_C" >&6
4333 else
4334 if test -n "$NM"; then
4335 # Let the user override the test.
4336 lt_cv_path_NM="$NM"
4337 else
4338 lt_nm_to_check="${ac_tool_prefix}nm"
4339 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4340 lt_nm_to_check="$lt_nm_to_check nm"
4341 fi
4342 for lt_tmp_nm in $lt_nm_to_check; do
4343 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4344 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4345 IFS="$lt_save_ifs"
4346 test -z "$ac_dir" && ac_dir=.
4347 tmp_nm="$ac_dir/$lt_tmp_nm"
4348 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4349 # Check to see if the nm accepts a BSD-compat flag.
4350 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4351 # nm: unknown option "B" ignored
4352 # Tru64's nm complains that /dev/null is an invalid object file
4353 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4354 */dev/null* | *'Invalid file or object type'*)
4355 lt_cv_path_NM="$tmp_nm -B"
4356 break
4357 ;;
4358 *)
4359 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4360 */dev/null*)
4361 lt_cv_path_NM="$tmp_nm -p"
4362 break
4363 ;;
4364 *)
4365 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4366 continue # so that we can try to find one that supports BSD flags
4367 ;;
4368 esac
4369 ;;
4370 esac
4371 fi
4372 done
4373 IFS="$lt_save_ifs"
4374 done
4375 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
4376 fi
4377 fi
4378 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
4379 echo "${ECHO_T}$lt_cv_path_NM" >&6
4380 NM="$lt_cv_path_NM"
4381
4382 echo "$as_me:$LINENO: checking whether ln -s works" >&5
4383 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
4384 LN_S=$as_ln_s
4385 if test "$LN_S" = "ln -s"; then
4386 echo "$as_me:$LINENO: result: yes" >&5
4387 echo "${ECHO_T}yes" >&6
4388 else
4389 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4390 echo "${ECHO_T}no, using $LN_S" >&6
4391 fi
4392
4393 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
4394 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
4395 if test "${lt_cv_deplibs_check_method+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398 lt_cv_file_magic_cmd='$MAGIC_CMD'
4399 lt_cv_file_magic_test_file=
4400 lt_cv_deplibs_check_method='unknown'
4401 # Need to set the preceding variable on all platforms that support
4402 # interlibrary dependencies.
4403 # 'none' -- dependencies not supported.
4404 # `unknown' -- same as none, but documents that we really don't know.
4405 # 'pass_all' -- all dependencies passed with no checks.
4406 # 'test_compile' -- check by making test program.
4407 # 'file_magic [[regex]]' -- check by looking for files in library path
4408 # which responds to the $file_magic_cmd with a given extended regex.
4409 # If you have `file' or equivalent on your system and you're not sure
4410 # whether `pass_all' will *always* work, you probably want this one.
4411
4412 case $host_os in
4413 aix[4-9]*)
4414 lt_cv_deplibs_check_method=pass_all
4415 ;;
4416
4417 beos*)
4418 lt_cv_deplibs_check_method=pass_all
4419 ;;
4420
4421 bsdi[45]*)
4422 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
4423 lt_cv_file_magic_cmd='/usr/bin/file -L'
4424 lt_cv_file_magic_test_file=/shlib/libc.so
4425 ;;
4426
4427 cygwin*)
4428 # func_win32_libid is a shell function defined in ltmain.sh
4429 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4430 lt_cv_file_magic_cmd='func_win32_libid'
4431 ;;
4432
4433 mingw* | pw32*)
4434 # Base MSYS/MinGW do not provide the 'file' command needed by
4435 # func_win32_libid shell function, so use a weaker test based on 'objdump',
4436 # unless we find 'file', for example because we are cross-compiling.
4437 if ( file / ) >/dev/null 2>&1; then
4438 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
4439 lt_cv_file_magic_cmd='func_win32_libid'
4440 else
4441 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
4442 lt_cv_file_magic_cmd='$OBJDUMP -f'
4443 fi
4444 ;;
4445
4446 darwin* | rhapsody*)
4447 lt_cv_deplibs_check_method=pass_all
4448 ;;
4449
4450 freebsd* | dragonfly*)
4451 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4452 case $host_cpu in
4453 i*86 )
4454 # Not sure whether the presence of OpenBSD here was a mistake.
4455 # Let's accept both of them until this is cleared up.
4456 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
4457 lt_cv_file_magic_cmd=/usr/bin/file
4458 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
4459 ;;
4460 esac
4461 else
4462 lt_cv_deplibs_check_method=pass_all
4463 fi
4464 ;;
4465
4466 gnu*)
4467 lt_cv_deplibs_check_method=pass_all
4468 ;;
4469
4470 hpux10.20* | hpux11*)
4471 lt_cv_file_magic_cmd=/usr/bin/file
4472 case $host_cpu in
4473 ia64*)
4474 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
4475 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
4476 ;;
4477 hppa*64*)
4478 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
4479 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
4480 ;;
4481 *)
4482 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
4483 lt_cv_file_magic_test_file=/usr/lib/libc.sl
4484 ;;
4485 esac
4486 ;;
4487
4488 interix[3-9]*)
4489 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
4490 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
4491 ;;
4492
4493 irix5* | irix6* | nonstopux*)
4494 case $LD in
4495 *-32|*"-32 ") libmagic=32-bit;;
4496 *-n32|*"-n32 ") libmagic=N32;;
4497 *-64|*"-64 ") libmagic=64-bit;;
4498 *) libmagic=never-match;;
4499 esac
4500 lt_cv_deplibs_check_method=pass_all
4501 ;;
4502
4503 # This must be Linux ELF.
4504 linux* | k*bsd*-gnu)
4505 lt_cv_deplibs_check_method=pass_all
4506 ;;
4507
4508 netbsd*)
4509 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
4510 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4511 else
4512 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
4513 fi
4514 ;;
4515
4516 newos6*)
4517 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
4518 lt_cv_file_magic_cmd=/usr/bin/file
4519 lt_cv_file_magic_test_file=/usr/lib/libnls.so
4520 ;;
4521
4522 nto-qnx*)
4523 lt_cv_deplibs_check_method=unknown
4524 ;;
4525
4526 openbsd*)
4527 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
4528 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
4529 else
4530 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
4531 fi
4532 ;;
4533
4534 osf3* | osf4* | osf5*)
4535 lt_cv_deplibs_check_method=pass_all
4536 ;;
4537
4538 rdos*)
4539 lt_cv_deplibs_check_method=pass_all
4540 ;;
4541
4542 solaris*)
4543 lt_cv_deplibs_check_method=pass_all
4544 ;;
4545
4546 sysv4 | sysv4.3*)
4547 case $host_vendor in
4548 motorola)
4549 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]'
4550 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
4551 ;;
4552 ncr)
4553 lt_cv_deplibs_check_method=pass_all
4554 ;;
4555 sequent)
4556 lt_cv_file_magic_cmd='/bin/file'
4557 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
4558 ;;
4559 sni)
4560 lt_cv_file_magic_cmd='/bin/file'
4561 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
4562 lt_cv_file_magic_test_file=/lib/libc.so
4563 ;;
4564 siemens)
4565 lt_cv_deplibs_check_method=pass_all
4566 ;;
4567 pc)
4568 lt_cv_deplibs_check_method=pass_all
4569 ;;
4570 esac
4571 ;;
4572
4573 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
4574 lt_cv_deplibs_check_method=pass_all
4575 ;;
4576 esac
4577
4578 fi
4579 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
4580 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
4581 file_magic_cmd=$lt_cv_file_magic_cmd
4582 deplibs_check_method=$lt_cv_deplibs_check_method
4583 test -z "$deplibs_check_method" && deplibs_check_method=unknown
4584
4585
4586
4587
4588 # If no C compiler was specified, use CC.
4589 LTCC=${LTCC-"$CC"}
4590
4591 # If no C compiler flags were specified, use CFLAGS.
4592 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
4593
4594 # Allow CC to be a program name with arguments.
4595 compiler=$CC
4596
4597 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
4598 if test "${enable_libtool_lock+set}" = set; then
4599 enableval="$enable_libtool_lock"
4600
4601 fi;
4602 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
4603
4604 # Some flags need to be propagated to the compiler or linker for good
4605 # libtool support.
4606 case $host in
4607 ia64-*-hpux*)
4608 # Find out which ABI we are using.
4609 echo 'int i;' > conftest.$ac_ext
4610 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4611 (eval $ac_compile) 2>&5
4612 ac_status=$?
4613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4614 (exit $ac_status); }; then
4615 case `/usr/bin/file conftest.$ac_objext` in
4616 *ELF-32*)
4617 HPUX_IA64_MODE="32"
4618 ;;
4619 *ELF-64*)
4620 HPUX_IA64_MODE="64"
4621 ;;
4622 esac
4623 fi
4624 rm -rf conftest*
4625 ;;
4626 *-*-irix6*)
4627 # Find out which ABI we are using.
4628 echo '#line 4628 "configure"' > conftest.$ac_ext
4629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4630 (eval $ac_compile) 2>&5
4631 ac_status=$?
4632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4633 (exit $ac_status); }; then
4634 if test "$lt_cv_prog_gnu_ld" = yes; then
4635 case `/usr/bin/file conftest.$ac_objext` in
4636 *32-bit*)
4637 LD="${LD-ld} -melf32bsmip"
4638 ;;
4639 *N32*)
4640 LD="${LD-ld} -melf32bmipn32"
4641 ;;
4642 *64-bit*)
4643 LD="${LD-ld} -melf64bmip"
4644 ;;
4645 esac
4646 else
4647 case `/usr/bin/file conftest.$ac_objext` in
4648 *32-bit*)
4649 LD="${LD-ld} -32"
4650 ;;
4651 *N32*)
4652 LD="${LD-ld} -n32"
4653 ;;
4654 *64-bit*)
4655 LD="${LD-ld} -64"
4656 ;;
4657 esac
4658 fi
4659 fi
4660 rm -rf conftest*
4661 ;;
4662
4663 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
4664 s390*-*linux*|sparc*-*linux*)
4665 # Find out which ABI we are using.
4666 echo 'int i;' > conftest.$ac_ext
4667 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4668 (eval $ac_compile) 2>&5
4669 ac_status=$?
4670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4671 (exit $ac_status); }; then
4672 case `/usr/bin/file conftest.o` in
4673 *32-bit*)
4674 case $host in
4675 x86_64-*kfreebsd*-gnu)
4676 LD="${LD-ld} -m elf_i386_fbsd"
4677 ;;
4678 x86_64-*linux*)
4679 LD="${LD-ld} -m elf_i386"
4680 ;;
4681 ppc64-*linux*|powerpc64-*linux*)
4682 LD="${LD-ld} -m elf32ppclinux"
4683 ;;
4684 s390x-*linux*)
4685 LD="${LD-ld} -m elf_s390"
4686 ;;
4687 sparc64-*linux*)
4688 LD="${LD-ld} -m elf32_sparc"
4689 ;;
4690 esac
4691 ;;
4692 *64-bit*)
4693 libsuff=64
4694 case $host in
4695 x86_64-*kfreebsd*-gnu)
4696 LD="${LD-ld} -m elf_x86_64_fbsd"
4697 ;;
4698 x86_64-*linux*)
4699 LD="${LD-ld} -m elf_x86_64"
4700 ;;
4701 ppc*-*linux*|powerpc*-*linux*)
4702 LD="${LD-ld} -m elf64ppc"
4703 ;;
4704 s390*-*linux*)
4705 LD="${LD-ld} -m elf64_s390"
4706 ;;
4707 sparc*-*linux*)
4708 LD="${LD-ld} -m elf64_sparc"
4709 ;;
4710 esac
4711 ;;
4712 esac
4713 fi
4714 rm -rf conftest*
4715 ;;
4716
4717 *-*-sco3.2v5*)
4718 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
4719 SAVE_CFLAGS="$CFLAGS"
4720 CFLAGS="$CFLAGS -belf"
4721 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
4722 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
4723 if test "${lt_cv_cc_needs_belf+set}" = set; then
4724 echo $ECHO_N "(cached) $ECHO_C" >&6
4725 else
4726 ac_ext=c
4727 ac_cpp='$CPP $CPPFLAGS'
4728 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4729 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4730 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4731
4732 cat >conftest.$ac_ext <<_ACEOF
4733 /* confdefs.h. */
4734 _ACEOF
4735 cat confdefs.h >>conftest.$ac_ext
4736 cat >>conftest.$ac_ext <<_ACEOF
4737 /* end confdefs.h. */
4738
4739 int
4740 main ()
4741 {
4742
4743 ;
4744 return 0;
4745 }
4746 _ACEOF
4747 rm -f conftest.$ac_objext conftest$ac_exeext
4748 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4749 (eval $ac_link) 2>conftest.er1
4750 ac_status=$?
4751 grep -v '^ *+' conftest.er1 >conftest.err
4752 rm -f conftest.er1
4753 cat conftest.err >&5
4754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4755 (exit $ac_status); } &&
4756 { ac_try='test -z "$ac_c_werror_flag"
4757 || test ! -s conftest.err'
4758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4759 (eval $ac_try) 2>&5
4760 ac_status=$?
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; } &&
4763 { ac_try='test -s conftest$ac_exeext'
4764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4765 (eval $ac_try) 2>&5
4766 ac_status=$?
4767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4768 (exit $ac_status); }; }; then
4769 lt_cv_cc_needs_belf=yes
4770 else
4771 echo "$as_me: failed program was:" >&5
4772 sed 's/^/| /' conftest.$ac_ext >&5
4773
4774 lt_cv_cc_needs_belf=no
4775 fi
4776 rm -f conftest.err conftest.$ac_objext \
4777 conftest$ac_exeext conftest.$ac_ext
4778 ac_ext=c
4779 ac_cpp='$CPP $CPPFLAGS'
4780 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4781 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4782 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4783
4784 fi
4785 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
4786 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
4787 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
4788 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
4789 CFLAGS="$SAVE_CFLAGS"
4790 fi
4791 ;;
4792 sparc*-*solaris*)
4793 # Find out which ABI we are using.
4794 echo 'int i;' > conftest.$ac_ext
4795 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4796 (eval $ac_compile) 2>&5
4797 ac_status=$?
4798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4799 (exit $ac_status); }; then
4800 case `/usr/bin/file conftest.o` in
4801 *64-bit*)
4802 case $lt_cv_prog_gnu_ld in
4803 yes*) LD="${LD-ld} -m elf64_sparc" ;;
4804 *)
4805 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
4806 LD="${LD-ld} -64"
4807 fi
4808 ;;
4809 esac
4810 ;;
4811 esac
4812 fi
4813 rm -rf conftest*
4814 ;;
4815
4816
4817 esac
4818
4819 need_locks="$enable_libtool_lock"
4820
4821
4822 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4823 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
4824 if test "${ac_cv_header_stdc+set}" = set; then
4825 echo $ECHO_N "(cached) $ECHO_C" >&6
4826 else
4827 cat >conftest.$ac_ext <<_ACEOF
4828 /* confdefs.h. */
4829 _ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h. */
4833 #include <stdlib.h>
4834 #include <stdarg.h>
4835 #include <string.h>
4836 #include <float.h>
4837
4838 int
4839 main ()
4840 {
4841
4842 ;
4843 return 0;
4844 }
4845 _ACEOF
4846 rm -f conftest.$ac_objext
4847 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4848 (eval $ac_compile) 2>conftest.er1
4849 ac_status=$?
4850 grep -v '^ *+' conftest.er1 >conftest.err
4851 rm -f conftest.er1
4852 cat conftest.err >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } &&
4855 { ac_try='test -z "$ac_c_werror_flag"
4856 || test ! -s conftest.err'
4857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4858 (eval $ac_try) 2>&5
4859 ac_status=$?
4860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4861 (exit $ac_status); }; } &&
4862 { ac_try='test -s conftest.$ac_objext'
4863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4864 (eval $ac_try) 2>&5
4865 ac_status=$?
4866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4867 (exit $ac_status); }; }; then
4868 ac_cv_header_stdc=yes
4869 else
4870 echo "$as_me: failed program was:" >&5
4871 sed 's/^/| /' conftest.$ac_ext >&5
4872
4873 ac_cv_header_stdc=no
4874 fi
4875 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4876
4877 if test $ac_cv_header_stdc = yes; then
4878 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4879 cat >conftest.$ac_ext <<_ACEOF
4880 /* confdefs.h. */
4881 _ACEOF
4882 cat confdefs.h >>conftest.$ac_ext
4883 cat >>conftest.$ac_ext <<_ACEOF
4884 /* end confdefs.h. */
4885 #include <string.h>
4886
4887 _ACEOF
4888 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4889 $EGREP "memchr" >/dev/null 2>&1; then
4890 :
4891 else
4892 ac_cv_header_stdc=no
4893 fi
4894 rm -f conftest*
4895
4896 fi
4897
4898 if test $ac_cv_header_stdc = yes; then
4899 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4900 cat >conftest.$ac_ext <<_ACEOF
4901 /* confdefs.h. */
4902 _ACEOF
4903 cat confdefs.h >>conftest.$ac_ext
4904 cat >>conftest.$ac_ext <<_ACEOF
4905 /* end confdefs.h. */
4906 #include <stdlib.h>
4907
4908 _ACEOF
4909 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4910 $EGREP "free" >/dev/null 2>&1; then
4911 :
4912 else
4913 ac_cv_header_stdc=no
4914 fi
4915 rm -f conftest*
4916
4917 fi
4918
4919 if test $ac_cv_header_stdc = yes; then
4920 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4921 if test "$cross_compiling" = yes; then
4922 :
4923 else
4924 cat >conftest.$ac_ext <<_ACEOF
4925 /* confdefs.h. */
4926 _ACEOF
4927 cat confdefs.h >>conftest.$ac_ext
4928 cat >>conftest.$ac_ext <<_ACEOF
4929 /* end confdefs.h. */
4930 #include <ctype.h>
4931 #if ((' ' & 0x0FF) == 0x020)
4932 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4933 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4934 #else
4935 # define ISLOWER(c) \
4936 (('a' <= (c) && (c) <= 'i') \
4937 || ('j' <= (c) && (c) <= 'r') \
4938 || ('s' <= (c) && (c) <= 'z'))
4939 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4940 #endif
4941
4942 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4943 int
4944 main ()
4945 {
4946 int i;
4947 for (i = 0; i < 256; i++)
4948 if (XOR (islower (i), ISLOWER (i))
4949 || toupper (i) != TOUPPER (i))
4950 exit(2);
4951 exit (0);
4952 }
4953 _ACEOF
4954 rm -f conftest$ac_exeext
4955 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4956 (eval $ac_link) 2>&5
4957 ac_status=$?
4958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4959 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4960 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4961 (eval $ac_try) 2>&5
4962 ac_status=$?
4963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4964 (exit $ac_status); }; }; then
4965 :
4966 else
4967 echo "$as_me: program exited with status $ac_status" >&5
4968 echo "$as_me: failed program was:" >&5
4969 sed 's/^/| /' conftest.$ac_ext >&5
4970
4971 ( exit $ac_status )
4972 ac_cv_header_stdc=no
4973 fi
4974 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4975 fi
4976 fi
4977 fi
4978 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4979 echo "${ECHO_T}$ac_cv_header_stdc" >&6
4980 if test $ac_cv_header_stdc = yes; then
4981
4982 cat >>confdefs.h <<\_ACEOF
4983 #define STDC_HEADERS 1
4984 _ACEOF
4985
4986 fi
4987
4988 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4989
4990
4991
4992
4993
4994
4995
4996
4997
4998 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4999 inttypes.h stdint.h unistd.h
5000 do
5001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5002 echo "$as_me:$LINENO: checking for $ac_header" >&5
5003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5004 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5005 echo $ECHO_N "(cached) $ECHO_C" >&6
5006 else
5007 cat >conftest.$ac_ext <<_ACEOF
5008 /* confdefs.h. */
5009 _ACEOF
5010 cat confdefs.h >>conftest.$ac_ext
5011 cat >>conftest.$ac_ext <<_ACEOF
5012 /* end confdefs.h. */
5013 $ac_includes_default
5014
5015 #include <$ac_header>
5016 _ACEOF
5017 rm -f conftest.$ac_objext
5018 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5019 (eval $ac_compile) 2>conftest.er1
5020 ac_status=$?
5021 grep -v '^ *+' conftest.er1 >conftest.err
5022 rm -f conftest.er1
5023 cat conftest.err >&5
5024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5025 (exit $ac_status); } &&
5026 { ac_try='test -z "$ac_c_werror_flag"
5027 || test ! -s conftest.err'
5028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5029 (eval $ac_try) 2>&5
5030 ac_status=$?
5031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5032 (exit $ac_status); }; } &&
5033 { ac_try='test -s conftest.$ac_objext'
5034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5035 (eval $ac_try) 2>&5
5036 ac_status=$?
5037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5038 (exit $ac_status); }; }; then
5039 eval "$as_ac_Header=yes"
5040 else
5041 echo "$as_me: failed program was:" >&5
5042 sed 's/^/| /' conftest.$ac_ext >&5
5043
5044 eval "$as_ac_Header=no"
5045 fi
5046 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5047 fi
5048 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5049 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5051 cat >>confdefs.h <<_ACEOF
5052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5053 _ACEOF
5054
5055 fi
5056
5057 done
5058
5059
5060
5061 for ac_header in dlfcn.h
5062 do
5063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5064 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5065 echo "$as_me:$LINENO: checking for $ac_header" >&5
5066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5067 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5068 echo $ECHO_N "(cached) $ECHO_C" >&6
5069 fi
5070 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5071 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5072 else
5073 # Is the header compilable?
5074 echo "$as_me:$LINENO: checking $ac_header usability" >&5
5075 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
5076 cat >conftest.$ac_ext <<_ACEOF
5077 /* confdefs.h. */
5078 _ACEOF
5079 cat confdefs.h >>conftest.$ac_ext
5080 cat >>conftest.$ac_ext <<_ACEOF
5081 /* end confdefs.h. */
5082 $ac_includes_default
5083 #include <$ac_header>
5084 _ACEOF
5085 rm -f conftest.$ac_objext
5086 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5087 (eval $ac_compile) 2>conftest.er1
5088 ac_status=$?
5089 grep -v '^ *+' conftest.er1 >conftest.err
5090 rm -f conftest.er1
5091 cat conftest.err >&5
5092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5093 (exit $ac_status); } &&
5094 { ac_try='test -z "$ac_c_werror_flag"
5095 || test ! -s conftest.err'
5096 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5097 (eval $ac_try) 2>&5
5098 ac_status=$?
5099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5100 (exit $ac_status); }; } &&
5101 { ac_try='test -s conftest.$ac_objext'
5102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5103 (eval $ac_try) 2>&5
5104 ac_status=$?
5105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5106 (exit $ac_status); }; }; then
5107 ac_header_compiler=yes
5108 else
5109 echo "$as_me: failed program was:" >&5
5110 sed 's/^/| /' conftest.$ac_ext >&5
5111
5112 ac_header_compiler=no
5113 fi
5114 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5115 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5116 echo "${ECHO_T}$ac_header_compiler" >&6
5117
5118 # Is the header present?
5119 echo "$as_me:$LINENO: checking $ac_header presence" >&5
5120 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
5121 cat >conftest.$ac_ext <<_ACEOF
5122 /* confdefs.h. */
5123 _ACEOF
5124 cat confdefs.h >>conftest.$ac_ext
5125 cat >>conftest.$ac_ext <<_ACEOF
5126 /* end confdefs.h. */
5127 #include <$ac_header>
5128 _ACEOF
5129 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5130 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5131 ac_status=$?
5132 grep -v '^ *+' conftest.er1 >conftest.err
5133 rm -f conftest.er1
5134 cat conftest.err >&5
5135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5136 (exit $ac_status); } >/dev/null; then
5137 if test -s conftest.err; then
5138 ac_cpp_err=$ac_c_preproc_warn_flag
5139 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5140 else
5141 ac_cpp_err=
5142 fi
5143 else
5144 ac_cpp_err=yes
5145 fi
5146 if test -z "$ac_cpp_err"; then
5147 ac_header_preproc=yes
5148 else
5149 echo "$as_me: failed program was:" >&5
5150 sed 's/^/| /' conftest.$ac_ext >&5
5151
5152 ac_header_preproc=no
5153 fi
5154 rm -f conftest.err conftest.$ac_ext
5155 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5156 echo "${ECHO_T}$ac_header_preproc" >&6
5157
5158 # So? What about this header?
5159 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5160 yes:no: )
5161 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5162 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5163 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5164 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5165 ac_header_preproc=yes
5166 ;;
5167 no:yes:* )
5168 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5169 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5170 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5171 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5172 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5173 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5174 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5175 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5176 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5177 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5178 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5179 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5180 (
5181 cat <<\_ASBOX
5182 ## ------------------------------------------ ##
5183 ## Report this to the AC_PACKAGE_NAME lists. ##
5184 ## ------------------------------------------ ##
5185 _ASBOX
5186 ) |
5187 sed "s/^/$as_me: WARNING: /" >&2
5188 ;;
5189 esac
5190 echo "$as_me:$LINENO: checking for $ac_header" >&5
5191 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
5192 if eval "test \"\${$as_ac_Header+set}\" = set"; then
5193 echo $ECHO_N "(cached) $ECHO_C" >&6
5194 else
5195 eval "$as_ac_Header=\$ac_header_preproc"
5196 fi
5197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
5198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
5199
5200 fi
5201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5202 cat >>confdefs.h <<_ACEOF
5203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5204 _ACEOF
5205
5206 fi
5207
5208 done
5209
5210
5211
5212 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
5213 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
5214 (test "X$CXX" != "Xg++"))) ; then
5215 ac_ext=cc
5216 ac_cpp='$CXXCPP $CPPFLAGS'
5217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5220 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
5221 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
5222 if test -z "$CXXCPP"; then
5223 if test "${ac_cv_prog_CXXCPP+set}" = set; then
5224 echo $ECHO_N "(cached) $ECHO_C" >&6
5225 else
5226 # Double quotes because CXXCPP needs to be expanded
5227 for CXXCPP in "$CXX -E" "/lib/cpp"
5228 do
5229 ac_preproc_ok=false
5230 for ac_cxx_preproc_warn_flag in '' yes
5231 do
5232 # Use a header file that comes with gcc, so configuring glibc
5233 # with a fresh cross-compiler works.
5234 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5235 # <limits.h> exists even on freestanding compilers.
5236 # On the NeXT, cc -E runs the code through the compiler's parser,
5237 # not just through cpp. "Syntax error" is here to catch this case.
5238 cat >conftest.$ac_ext <<_ACEOF
5239 /* confdefs.h. */
5240 _ACEOF
5241 cat confdefs.h >>conftest.$ac_ext
5242 cat >>conftest.$ac_ext <<_ACEOF
5243 /* end confdefs.h. */
5244 #ifdef __STDC__
5245 # include <limits.h>
5246 #else
5247 # include <assert.h>
5248 #endif
5249 Syntax error
5250 _ACEOF
5251 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5252 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5253 ac_status=$?
5254 grep -v '^ *+' conftest.er1 >conftest.err
5255 rm -f conftest.er1
5256 cat conftest.err >&5
5257 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5258 (exit $ac_status); } >/dev/null; then
5259 if test -s conftest.err; then
5260 ac_cpp_err=$ac_cxx_preproc_warn_flag
5261 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5262 else
5263 ac_cpp_err=
5264 fi
5265 else
5266 ac_cpp_err=yes
5267 fi
5268 if test -z "$ac_cpp_err"; then
5269 :
5270 else
5271 echo "$as_me: failed program was:" >&5
5272 sed 's/^/| /' conftest.$ac_ext >&5
5273
5274 # Broken: fails on valid input.
5275 continue
5276 fi
5277 rm -f conftest.err conftest.$ac_ext
5278
5279 # OK, works on sane cases. Now check whether non-existent headers
5280 # can be detected and how.
5281 cat >conftest.$ac_ext <<_ACEOF
5282 /* confdefs.h. */
5283 _ACEOF
5284 cat confdefs.h >>conftest.$ac_ext
5285 cat >>conftest.$ac_ext <<_ACEOF
5286 /* end confdefs.h. */
5287 #include <ac_nonexistent.h>
5288 _ACEOF
5289 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5290 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5291 ac_status=$?
5292 grep -v '^ *+' conftest.er1 >conftest.err
5293 rm -f conftest.er1
5294 cat conftest.err >&5
5295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5296 (exit $ac_status); } >/dev/null; then
5297 if test -s conftest.err; then
5298 ac_cpp_err=$ac_cxx_preproc_warn_flag
5299 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5300 else
5301 ac_cpp_err=
5302 fi
5303 else
5304 ac_cpp_err=yes
5305 fi
5306 if test -z "$ac_cpp_err"; then
5307 # Broken: success on invalid input.
5308 continue
5309 else
5310 echo "$as_me: failed program was:" >&5
5311 sed 's/^/| /' conftest.$ac_ext >&5
5312
5313 # Passes both tests.
5314 ac_preproc_ok=:
5315 break
5316 fi
5317 rm -f conftest.err conftest.$ac_ext
5318
5319 done
5320 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5321 rm -f conftest.err conftest.$ac_ext
5322 if $ac_preproc_ok; then
5323 break
5324 fi
5325
5326 done
5327 ac_cv_prog_CXXCPP=$CXXCPP
5328
5329 fi
5330 CXXCPP=$ac_cv_prog_CXXCPP
5331 else
5332 ac_cv_prog_CXXCPP=$CXXCPP
5333 fi
5334 echo "$as_me:$LINENO: result: $CXXCPP" >&5
5335 echo "${ECHO_T}$CXXCPP" >&6
5336 ac_preproc_ok=false
5337 for ac_cxx_preproc_warn_flag in '' yes
5338 do
5339 # Use a header file that comes with gcc, so configuring glibc
5340 # with a fresh cross-compiler works.
5341 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5342 # <limits.h> exists even on freestanding compilers.
5343 # On the NeXT, cc -E runs the code through the compiler's parser,
5344 # not just through cpp. "Syntax error" is here to catch this case.
5345 cat >conftest.$ac_ext <<_ACEOF
5346 /* confdefs.h. */
5347 _ACEOF
5348 cat confdefs.h >>conftest.$ac_ext
5349 cat >>conftest.$ac_ext <<_ACEOF
5350 /* end confdefs.h. */
5351 #ifdef __STDC__
5352 # include <limits.h>
5353 #else
5354 # include <assert.h>
5355 #endif
5356 Syntax error
5357 _ACEOF
5358 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5359 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5360 ac_status=$?
5361 grep -v '^ *+' conftest.er1 >conftest.err
5362 rm -f conftest.er1
5363 cat conftest.err >&5
5364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5365 (exit $ac_status); } >/dev/null; then
5366 if test -s conftest.err; then
5367 ac_cpp_err=$ac_cxx_preproc_warn_flag
5368 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5369 else
5370 ac_cpp_err=
5371 fi
5372 else
5373 ac_cpp_err=yes
5374 fi
5375 if test -z "$ac_cpp_err"; then
5376 :
5377 else
5378 echo "$as_me: failed program was:" >&5
5379 sed 's/^/| /' conftest.$ac_ext >&5
5380
5381 # Broken: fails on valid input.
5382 continue
5383 fi
5384 rm -f conftest.err conftest.$ac_ext
5385
5386 # OK, works on sane cases. Now check whether non-existent headers
5387 # can be detected and how.
5388 cat >conftest.$ac_ext <<_ACEOF
5389 /* confdefs.h. */
5390 _ACEOF
5391 cat confdefs.h >>conftest.$ac_ext
5392 cat >>conftest.$ac_ext <<_ACEOF
5393 /* end confdefs.h. */
5394 #include <ac_nonexistent.h>
5395 _ACEOF
5396 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
5397 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
5398 ac_status=$?
5399 grep -v '^ *+' conftest.er1 >conftest.err
5400 rm -f conftest.er1
5401 cat conftest.err >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } >/dev/null; then
5404 if test -s conftest.err; then
5405 ac_cpp_err=$ac_cxx_preproc_warn_flag
5406 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5407 else
5408 ac_cpp_err=
5409 fi
5410 else
5411 ac_cpp_err=yes
5412 fi
5413 if test -z "$ac_cpp_err"; then
5414 # Broken: success on invalid input.
5415 continue
5416 else
5417 echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5419
5420 # Passes both tests.
5421 ac_preproc_ok=:
5422 break
5423 fi
5424 rm -f conftest.err conftest.$ac_ext
5425
5426 done
5427 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5428 rm -f conftest.err conftest.$ac_ext
5429 if $ac_preproc_ok; then
5430 :
5431 else
5432 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5433 See \`config.log' for more details." >&5
5434 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
5435 See \`config.log' for more details." >&2;}
5436 { (exit 1); exit 1; }; }
5437 fi
5438
5439 ac_ext=cc
5440 ac_cpp='$CXXCPP $CPPFLAGS'
5441 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5442 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5443 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5444
5445 fi
5446
5447
5448 ac_ext=f
5449 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
5450 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5451 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
5452 if test -n "$ac_tool_prefix"; then
5453 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5454 do
5455 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5456 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5457 echo "$as_me:$LINENO: checking for $ac_word" >&5
5458 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5459 if test "${ac_cv_prog_F77+set}" = set; then
5460 echo $ECHO_N "(cached) $ECHO_C" >&6
5461 else
5462 if test -n "$F77"; then
5463 ac_cv_prog_F77="$F77" # Let the user override the test.
5464 else
5465 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5466 for as_dir in $PATH
5467 do
5468 IFS=$as_save_IFS
5469 test -z "$as_dir" && as_dir=.
5470 for ac_exec_ext in '' $ac_executable_extensions; do
5471 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5472 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
5473 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5474 break 2
5475 fi
5476 done
5477 done
5478
5479 fi
5480 fi
5481 F77=$ac_cv_prog_F77
5482 if test -n "$F77"; then
5483 echo "$as_me:$LINENO: result: $F77" >&5
5484 echo "${ECHO_T}$F77" >&6
5485 else
5486 echo "$as_me:$LINENO: result: no" >&5
5487 echo "${ECHO_T}no" >&6
5488 fi
5489
5490 test -n "$F77" && break
5491 done
5492 fi
5493 if test -z "$F77"; then
5494 ac_ct_F77=$F77
5495 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
5496 do
5497 # Extract the first word of "$ac_prog", so it can be a program name with args.
5498 set dummy $ac_prog; ac_word=$2
5499 echo "$as_me:$LINENO: checking for $ac_word" >&5
5500 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5501 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504 if test -n "$ac_ct_F77"; then
5505 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
5506 else
5507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5508 for as_dir in $PATH
5509 do
5510 IFS=$as_save_IFS
5511 test -z "$as_dir" && as_dir=.
5512 for ac_exec_ext in '' $ac_executable_extensions; do
5513 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5514 ac_cv_prog_ac_ct_F77="$ac_prog"
5515 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5516 break 2
5517 fi
5518 done
5519 done
5520
5521 fi
5522 fi
5523 ac_ct_F77=$ac_cv_prog_ac_ct_F77
5524 if test -n "$ac_ct_F77"; then
5525 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
5526 echo "${ECHO_T}$ac_ct_F77" >&6
5527 else
5528 echo "$as_me:$LINENO: result: no" >&5
5529 echo "${ECHO_T}no" >&6
5530 fi
5531
5532 test -n "$ac_ct_F77" && break
5533 done
5534
5535 F77=$ac_ct_F77
5536 fi
5537
5538
5539 # Provide some information about the compiler.
5540 echo "$as_me:5540:" \
5541 "checking for Fortran 77 compiler version" >&5
5542 ac_compiler=`set X $ac_compile; echo $2`
5543 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5544 (eval $ac_compiler --version </dev/null >&5) 2>&5
5545 ac_status=$?
5546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5547 (exit $ac_status); }
5548 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5549 (eval $ac_compiler -v </dev/null >&5) 2>&5
5550 ac_status=$?
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); }
5553 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5554 (eval $ac_compiler -V </dev/null >&5) 2>&5
5555 ac_status=$?
5556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5557 (exit $ac_status); }
5558 rm -f a.out
5559
5560 # If we don't use `.F' as extension, the preprocessor is not run on the
5561 # input file. (Note that this only needs to work for GNU compilers.)
5562 ac_save_ext=$ac_ext
5563 ac_ext=F
5564 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
5565 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
5566 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
5567 echo $ECHO_N "(cached) $ECHO_C" >&6
5568 else
5569 cat >conftest.$ac_ext <<_ACEOF
5570 program main
5571 #ifndef __GNUC__
5572 choke me
5573 #endif
5574
5575 end
5576 _ACEOF
5577 rm -f conftest.$ac_objext
5578 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5579 (eval $ac_compile) 2>conftest.er1
5580 ac_status=$?
5581 grep -v '^ *+' conftest.er1 >conftest.err
5582 rm -f conftest.er1
5583 cat conftest.err >&5
5584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5585 (exit $ac_status); } &&
5586 { ac_try='test -z "$ac_f77_werror_flag"
5587 || test ! -s conftest.err'
5588 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5589 (eval $ac_try) 2>&5
5590 ac_status=$?
5591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5592 (exit $ac_status); }; } &&
5593 { ac_try='test -s conftest.$ac_objext'
5594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5595 (eval $ac_try) 2>&5
5596 ac_status=$?
5597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5598 (exit $ac_status); }; }; then
5599 ac_compiler_gnu=yes
5600 else
5601 echo "$as_me: failed program was:" >&5
5602 sed 's/^/| /' conftest.$ac_ext >&5
5603
5604 ac_compiler_gnu=no
5605 fi
5606 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5607 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
5608
5609 fi
5610 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
5611 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
5612 ac_ext=$ac_save_ext
5613 ac_test_FFLAGS=${FFLAGS+set}
5614 ac_save_FFLAGS=$FFLAGS
5615 FFLAGS=
5616 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
5617 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
5618 if test "${ac_cv_prog_f77_g+set}" = set; then
5619 echo $ECHO_N "(cached) $ECHO_C" >&6
5620 else
5621 FFLAGS=-g
5622 cat >conftest.$ac_ext <<_ACEOF
5623 program main
5624
5625 end
5626 _ACEOF
5627 rm -f conftest.$ac_objext
5628 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5629 (eval $ac_compile) 2>conftest.er1
5630 ac_status=$?
5631 grep -v '^ *+' conftest.er1 >conftest.err
5632 rm -f conftest.er1
5633 cat conftest.err >&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); } &&
5636 { ac_try='test -z "$ac_f77_werror_flag"
5637 || test ! -s conftest.err'
5638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5639 (eval $ac_try) 2>&5
5640 ac_status=$?
5641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5642 (exit $ac_status); }; } &&
5643 { ac_try='test -s conftest.$ac_objext'
5644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5645 (eval $ac_try) 2>&5
5646 ac_status=$?
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); }; }; then
5649 ac_cv_prog_f77_g=yes
5650 else
5651 echo "$as_me: failed program was:" >&5
5652 sed 's/^/| /' conftest.$ac_ext >&5
5653
5654 ac_cv_prog_f77_g=no
5655 fi
5656 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5657
5658 fi
5659 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
5660 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
5661 if test "$ac_test_FFLAGS" = set; then
5662 FFLAGS=$ac_save_FFLAGS
5663 elif test $ac_cv_prog_f77_g = yes; then
5664 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5665 FFLAGS="-g -O2"
5666 else
5667 FFLAGS="-g"
5668 fi
5669 else
5670 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
5671 FFLAGS="-O2"
5672 else
5673 FFLAGS=
5674 fi
5675 fi
5676
5677 G77=`test $ac_compiler_gnu = yes && echo yes`
5678 ac_ext=c
5679 ac_cpp='$CPP $CPPFLAGS'
5680 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5681 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5682 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5683
5684
5685
5686 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
5687 # find the maximum length of command line arguments
5688 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
5689 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
5690 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
5691 echo $ECHO_N "(cached) $ECHO_C" >&6
5692 else
5693 i=0
5694 teststring="ABCD"
5695
5696 case $build_os in
5697 msdosdjgpp*)
5698 # On DJGPP, this test can blow up pretty badly due to problems in libc
5699 # (any single argument exceeding 2000 bytes causes a buffer overrun
5700 # during glob expansion). Even if it were fixed, the result of this
5701 # check would be larger than it should be.
5702 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5703 ;;
5704
5705 gnu*)
5706 # Under GNU Hurd, this test is not required because there is
5707 # no limit to the length of command line arguments.
5708 # Libtool will interpret -1 as no limit whatsoever
5709 lt_cv_sys_max_cmd_len=-1;
5710 ;;
5711
5712 cygwin* | mingw*)
5713 # On Win9x/ME, this test blows up -- it succeeds, but takes
5714 # about 5 minutes as the teststring grows exponentially.
5715 # Worse, since 9x/ME are not pre-emptively multitasking,
5716 # you end up with a "frozen" computer, even though with patience
5717 # the test eventually succeeds (with a max line length of 256k).
5718 # Instead, let's just punt: use the minimum linelength reported by
5719 # all of the supported platforms: 8192 (on NT/2K/XP).
5720 lt_cv_sys_max_cmd_len=8192;
5721 ;;
5722
5723 amigaos*)
5724 # On AmigaOS with pdksh, this test takes hours, literally.
5725 # So we just punt and use a minimum line length of 8192.
5726 lt_cv_sys_max_cmd_len=8192;
5727 ;;
5728
5729 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5730 # This has been around since 386BSD, at least. Likely further.
5731 if test -x /sbin/sysctl; then
5732 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5733 elif test -x /usr/sbin/sysctl; then
5734 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5735 else
5736 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5737 fi
5738 # And add a safety zone
5739 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5740 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5741 ;;
5742
5743 interix*)
5744 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5745 lt_cv_sys_max_cmd_len=196608
5746 ;;
5747
5748 osf*)
5749 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5750 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5751 # nice to cause kernel panics so lets avoid the loop below.
5752 # First set a reasonable default.
5753 lt_cv_sys_max_cmd_len=16384
5754 #
5755 if test -x /sbin/sysconfig; then
5756 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5757 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5758 esac
5759 fi
5760 ;;
5761 sco3.2v5*)
5762 lt_cv_sys_max_cmd_len=102400
5763 ;;
5764 sysv5* | sco5v6* | sysv4.2uw2*)
5765 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5766 if test -n "$kargmax"; then
5767 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5768 else
5769 lt_cv_sys_max_cmd_len=32768
5770 fi
5771 ;;
5772 *)
5773 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5774 if test -n "$lt_cv_sys_max_cmd_len"; then
5775 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5776 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5777 else
5778 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5779 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
5780 = "XX$teststring") >/dev/null 2>&1 &&
5781 new_result=`expr "X$teststring" : ".*" 2>&1` &&
5782 lt_cv_sys_max_cmd_len=$new_result &&
5783 test $i != 17 # 1/2 MB should be enough
5784 do
5785 i=`expr $i + 1`
5786 teststring=$teststring$teststring
5787 done
5788 teststring=
5789 # Add a significant safety factor because C++ compilers can tack on massive
5790 # amounts of additional arguments before passing them to the linker.
5791 # It appears as though 1/2 is a usable value.
5792 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5793 fi
5794 ;;
5795 esac
5796
5797 fi
5798
5799 if test -n $lt_cv_sys_max_cmd_len ; then
5800 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
5801 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
5802 else
5803 echo "$as_me:$LINENO: result: none" >&5
5804 echo "${ECHO_T}none" >&6
5805 fi
5806
5807
5808
5809
5810
5811 # Check for command to grab the raw symbol name followed by C symbol from nm.
5812 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
5813 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
5814 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
5815 echo $ECHO_N "(cached) $ECHO_C" >&6
5816 else
5817
5818 # These are sane defaults that work on at least a few old systems.
5819 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
5820
5821 # Character class describing NM global symbol codes.
5822 symcode='[BCDEGRST]'
5823
5824 # Regexp to match symbols that can be accessed directly from C.
5825 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
5826
5827 # Transform an extracted symbol line into a proper C declaration
5828 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
5829
5830 # Transform an extracted symbol line into symbol name and symbol address
5831 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5832
5833 # Define system-specific variables.
5834 case $host_os in
5835 aix*)
5836 symcode='[BCDT]'
5837 ;;
5838 cygwin* | mingw* | pw32*)
5839 symcode='[ABCDGISTW]'
5840 ;;
5841 hpux*) # Its linker distinguishes data from code symbols
5842 if test "$host_cpu" = ia64; then
5843 symcode='[ABCDEGRST]'
5844 fi
5845 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5846 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5847 ;;
5848 linux* | k*bsd*-gnu)
5849 if test "$host_cpu" = ia64; then
5850 symcode='[ABCDGIRSTW]'
5851 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
5852 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
5853 fi
5854 ;;
5855 irix* | nonstopux*)
5856 symcode='[BCDEGRST]'
5857 ;;
5858 osf*)
5859 symcode='[BCDEGQRST]'
5860 ;;
5861 solaris*)
5862 symcode='[BDRT]'
5863 ;;
5864 sco3.2v5*)
5865 symcode='[DT]'
5866 ;;
5867 sysv4.2uw2*)
5868 symcode='[DT]'
5869 ;;
5870 sysv5* | sco5v6* | unixware* | OpenUNIX*)
5871 symcode='[ABDT]'
5872 ;;
5873 sysv4)
5874 symcode='[DFNSTU]'
5875 ;;
5876 esac
5877
5878 # Handle CRLF in mingw tool chain
5879 opt_cr=
5880 case $build_os in
5881 mingw*)
5882 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
5883 ;;
5884 esac
5885
5886 # If we're using GNU nm, then use its standard symbol codes.
5887 case `$NM -V 2>&1` in
5888 *GNU* | *'with BFD'*)
5889 symcode='[ABCDGIRSTW]' ;;
5890 esac
5891
5892 # Try without a prefix undercore, then with it.
5893 for ac_symprfx in "" "_"; do
5894
5895 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
5896 symxfrm="\\1 $ac_symprfx\\2 \\2"
5897
5898 # Write the raw and C identifiers.
5899 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
5900
5901 # Check to see that the pipe works correctly.
5902 pipe_works=no
5903
5904 rm -f conftest*
5905 cat > conftest.$ac_ext <<EOF
5906 #ifdef __cplusplus
5907 extern "C" {
5908 #endif
5909 char nm_test_var;
5910 void nm_test_func(){}
5911 #ifdef __cplusplus
5912 }
5913 #endif
5914 int main(){nm_test_var='a';nm_test_func();return(0);}
5915 EOF
5916
5917 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5918 (eval $ac_compile) 2>&5
5919 ac_status=$?
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; then
5922 # Now try to grab the symbols.
5923 nlist=conftest.nm
5924 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
5925 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
5926 ac_status=$?
5927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928 (exit $ac_status); } && test -s "$nlist"; then
5929 # Try sorting and uniquifying the output.
5930 if sort "$nlist" | uniq > "$nlist"T; then
5931 mv -f "$nlist"T "$nlist"
5932 else
5933 rm -f "$nlist"T
5934 fi
5935
5936 # Make sure that we snagged all the symbols we need.
5937 if grep ' nm_test_var$' "$nlist" >/dev/null; then
5938 if grep ' nm_test_func$' "$nlist" >/dev/null; then
5939 cat <<EOF > conftest.$ac_ext
5940 #ifdef __cplusplus
5941 extern "C" {
5942 #endif
5943
5944 EOF
5945 # Now generate the symbol file.
5946 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
5947
5948 cat <<EOF >> conftest.$ac_ext
5949 #if defined (__STDC__) && __STDC__
5950 # define lt_ptr_t void *
5951 #else
5952 # define lt_ptr_t char *
5953 # define const
5954 #endif
5955
5956 /* The mapping between symbol names and symbols. */
5957 const struct {
5958 const char *name;
5959 lt_ptr_t address;
5960 }
5961 lt_preloaded_symbols[] =
5962 {
5963 EOF
5964 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
5965 cat <<\EOF >> conftest.$ac_ext
5966 {0, (lt_ptr_t) 0}
5967 };
5968
5969 #ifdef __cplusplus
5970 }
5971 #endif
5972 EOF
5973 # Now try linking the two files.
5974 mv conftest.$ac_objext conftstm.$ac_objext
5975 lt_save_LIBS="$LIBS"
5976 lt_save_CFLAGS="$CFLAGS"
5977 LIBS="conftstm.$ac_objext"
5978 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
5979 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
5980 (eval $ac_link) 2>&5
5981 ac_status=$?
5982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983 (exit $ac_status); } && test -s conftest${ac_exeext}; then
5984 pipe_works=yes
5985 fi
5986 LIBS="$lt_save_LIBS"
5987 CFLAGS="$lt_save_CFLAGS"
5988 else
5989 echo "cannot find nm_test_func in $nlist" >&5
5990 fi
5991 else
5992 echo "cannot find nm_test_var in $nlist" >&5
5993 fi
5994 else
5995 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
5996 fi
5997 else
5998 echo "$progname: failed program was:" >&5
5999 cat conftest.$ac_ext >&5
6000 fi
6001 rm -rf conftest* conftst*
6002
6003 # Do not use the global_symbol_pipe unless it works.
6004 if test "$pipe_works" = yes; then
6005 break
6006 else
6007 lt_cv_sys_global_symbol_pipe=
6008 fi
6009 done
6010
6011 fi
6012
6013 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6014 lt_cv_sys_global_symbol_to_cdecl=
6015 fi
6016 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6017 echo "$as_me:$LINENO: result: failed" >&5
6018 echo "${ECHO_T}failed" >&6
6019 else
6020 echo "$as_me:$LINENO: result: ok" >&5
6021 echo "${ECHO_T}ok" >&6
6022 fi
6023
6024 echo "$as_me:$LINENO: checking for objdir" >&5
6025 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
6026 if test "${lt_cv_objdir+set}" = set; then
6027 echo $ECHO_N "(cached) $ECHO_C" >&6
6028 else
6029 rm -f .libs 2>/dev/null
6030 mkdir .libs 2>/dev/null
6031 if test -d .libs; then
6032 lt_cv_objdir=.libs
6033 else
6034 # MS-DOS does not allow filenames that begin with a dot.
6035 lt_cv_objdir=_libs
6036 fi
6037 rmdir .libs 2>/dev/null
6038 fi
6039 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
6040 echo "${ECHO_T}$lt_cv_objdir" >&6
6041 objdir=$lt_cv_objdir
6042
6043
6044
6045
6046
6047 case $host_os in
6048 aix3*)
6049 # AIX sometimes has problems with the GCC collect2 program. For some
6050 # reason, if we set the COLLECT_NAMES environment variable, the problems
6051 # vanish in a puff of smoke.
6052 if test "X${COLLECT_NAMES+set}" != Xset; then
6053 COLLECT_NAMES=
6054 export COLLECT_NAMES
6055 fi
6056 ;;
6057 esac
6058
6059 # Sed substitution that helps us do robust quoting. It backslashifies
6060 # metacharacters that are still active within double-quoted strings.
6061 Xsed='sed -e 1s/^X//'
6062 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
6063
6064 # Same as above, but do not quote variable references.
6065 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
6066
6067 # Sed substitution to delay expansion of an escaped shell variable in a
6068 # double_quote_subst'ed string.
6069 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6070
6071 # Sed substitution to avoid accidental globbing in evaled expressions
6072 no_glob_subst='s/\*/\\\*/g'
6073
6074 # Constants:
6075 rm="rm -f"
6076
6077 # Global variables:
6078 default_ofile=libtool
6079 can_build_shared=yes
6080
6081 # All known linkers require a `.a' archive for static linking (except MSVC,
6082 # which needs '.lib').
6083 libext=a
6084 ltmain="$ac_aux_dir/ltmain.sh"
6085 ofile="$default_ofile"
6086 with_gnu_ld="$lt_cv_prog_gnu_ld"
6087
6088 if test -n "$ac_tool_prefix"; then
6089 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6090 set dummy ${ac_tool_prefix}ar; ac_word=$2
6091 echo "$as_me:$LINENO: checking for $ac_word" >&5
6092 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6093 if test "${ac_cv_prog_AR+set}" = set; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 else
6096 if test -n "$AR"; then
6097 ac_cv_prog_AR="$AR" # Let the user override the test.
6098 else
6099 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6100 for as_dir in $PATH
6101 do
6102 IFS=$as_save_IFS
6103 test -z "$as_dir" && as_dir=.
6104 for ac_exec_ext in '' $ac_executable_extensions; do
6105 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6106 ac_cv_prog_AR="${ac_tool_prefix}ar"
6107 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6108 break 2
6109 fi
6110 done
6111 done
6112
6113 fi
6114 fi
6115 AR=$ac_cv_prog_AR
6116 if test -n "$AR"; then
6117 echo "$as_me:$LINENO: result: $AR" >&5
6118 echo "${ECHO_T}$AR" >&6
6119 else
6120 echo "$as_me:$LINENO: result: no" >&5
6121 echo "${ECHO_T}no" >&6
6122 fi
6123
6124 fi
6125 if test -z "$ac_cv_prog_AR"; then
6126 ac_ct_AR=$AR
6127 # Extract the first word of "ar", so it can be a program name with args.
6128 set dummy ar; ac_word=$2
6129 echo "$as_me:$LINENO: checking for $ac_word" >&5
6130 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6131 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
6132 echo $ECHO_N "(cached) $ECHO_C" >&6
6133 else
6134 if test -n "$ac_ct_AR"; then
6135 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6136 else
6137 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6138 for as_dir in $PATH
6139 do
6140 IFS=$as_save_IFS
6141 test -z "$as_dir" && as_dir=.
6142 for ac_exec_ext in '' $ac_executable_extensions; do
6143 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6144 ac_cv_prog_ac_ct_AR="ar"
6145 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6146 break 2
6147 fi
6148 done
6149 done
6150
6151 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
6152 fi
6153 fi
6154 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6155 if test -n "$ac_ct_AR"; then
6156 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
6157 echo "${ECHO_T}$ac_ct_AR" >&6
6158 else
6159 echo "$as_me:$LINENO: result: no" >&5
6160 echo "${ECHO_T}no" >&6
6161 fi
6162
6163 AR=$ac_ct_AR
6164 else
6165 AR="$ac_cv_prog_AR"
6166 fi
6167
6168 if test -n "$ac_tool_prefix"; then
6169 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6170 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6171 echo "$as_me:$LINENO: checking for $ac_word" >&5
6172 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6173 if test "${ac_cv_prog_RANLIB+set}" = set; then
6174 echo $ECHO_N "(cached) $ECHO_C" >&6
6175 else
6176 if test -n "$RANLIB"; then
6177 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6178 else
6179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6180 for as_dir in $PATH
6181 do
6182 IFS=$as_save_IFS
6183 test -z "$as_dir" && as_dir=.
6184 for ac_exec_ext in '' $ac_executable_extensions; do
6185 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6186 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6187 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6188 break 2
6189 fi
6190 done
6191 done
6192
6193 fi
6194 fi
6195 RANLIB=$ac_cv_prog_RANLIB
6196 if test -n "$RANLIB"; then
6197 echo "$as_me:$LINENO: result: $RANLIB" >&5
6198 echo "${ECHO_T}$RANLIB" >&6
6199 else
6200 echo "$as_me:$LINENO: result: no" >&5
6201 echo "${ECHO_T}no" >&6
6202 fi
6203
6204 fi
6205 if test -z "$ac_cv_prog_RANLIB"; then
6206 ac_ct_RANLIB=$RANLIB
6207 # Extract the first word of "ranlib", so it can be a program name with args.
6208 set dummy ranlib; ac_word=$2
6209 echo "$as_me:$LINENO: checking for $ac_word" >&5
6210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6211 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
6212 echo $ECHO_N "(cached) $ECHO_C" >&6
6213 else
6214 if test -n "$ac_ct_RANLIB"; then
6215 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6216 else
6217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6218 for as_dir in $PATH
6219 do
6220 IFS=$as_save_IFS
6221 test -z "$as_dir" && as_dir=.
6222 for ac_exec_ext in '' $ac_executable_extensions; do
6223 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6224 ac_cv_prog_ac_ct_RANLIB="ranlib"
6225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6226 break 2
6227 fi
6228 done
6229 done
6230
6231 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
6232 fi
6233 fi
6234 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6235 if test -n "$ac_ct_RANLIB"; then
6236 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
6237 echo "${ECHO_T}$ac_ct_RANLIB" >&6
6238 else
6239 echo "$as_me:$LINENO: result: no" >&5
6240 echo "${ECHO_T}no" >&6
6241 fi
6242
6243 RANLIB=$ac_ct_RANLIB
6244 else
6245 RANLIB="$ac_cv_prog_RANLIB"
6246 fi
6247
6248 if test -n "$ac_tool_prefix"; then
6249 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6250 set dummy ${ac_tool_prefix}strip; ac_word=$2
6251 echo "$as_me:$LINENO: checking for $ac_word" >&5
6252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6253 if test "${ac_cv_prog_STRIP+set}" = set; then
6254 echo $ECHO_N "(cached) $ECHO_C" >&6
6255 else
6256 if test -n "$STRIP"; then
6257 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6258 else
6259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6260 for as_dir in $PATH
6261 do
6262 IFS=$as_save_IFS
6263 test -z "$as_dir" && as_dir=.
6264 for ac_exec_ext in '' $ac_executable_extensions; do
6265 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6266 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6268 break 2
6269 fi
6270 done
6271 done
6272
6273 fi
6274 fi
6275 STRIP=$ac_cv_prog_STRIP
6276 if test -n "$STRIP"; then
6277 echo "$as_me:$LINENO: result: $STRIP" >&5
6278 echo "${ECHO_T}$STRIP" >&6
6279 else
6280 echo "$as_me:$LINENO: result: no" >&5
6281 echo "${ECHO_T}no" >&6
6282 fi
6283
6284 fi
6285 if test -z "$ac_cv_prog_STRIP"; then
6286 ac_ct_STRIP=$STRIP
6287 # Extract the first word of "strip", so it can be a program name with args.
6288 set dummy strip; ac_word=$2
6289 echo "$as_me:$LINENO: checking for $ac_word" >&5
6290 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6291 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
6292 echo $ECHO_N "(cached) $ECHO_C" >&6
6293 else
6294 if test -n "$ac_ct_STRIP"; then
6295 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6296 else
6297 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6298 for as_dir in $PATH
6299 do
6300 IFS=$as_save_IFS
6301 test -z "$as_dir" && as_dir=.
6302 for ac_exec_ext in '' $ac_executable_extensions; do
6303 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6304 ac_cv_prog_ac_ct_STRIP="strip"
6305 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6306 break 2
6307 fi
6308 done
6309 done
6310
6311 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
6312 fi
6313 fi
6314 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6315 if test -n "$ac_ct_STRIP"; then
6316 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
6317 echo "${ECHO_T}$ac_ct_STRIP" >&6
6318 else
6319 echo "$as_me:$LINENO: result: no" >&5
6320 echo "${ECHO_T}no" >&6
6321 fi
6322
6323 STRIP=$ac_ct_STRIP
6324 else
6325 STRIP="$ac_cv_prog_STRIP"
6326 fi
6327
6328
6329 old_CC="$CC"
6330 old_CFLAGS="$CFLAGS"
6331
6332 # Set sane defaults for various variables
6333 test -z "$AR" && AR=ar
6334 test -z "$AR_FLAGS" && AR_FLAGS=cru
6335 test -z "$AS" && AS=as
6336 test -z "$CC" && CC=cc
6337 test -z "$LTCC" && LTCC=$CC
6338 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
6339 test -z "$DLLTOOL" && DLLTOOL=dlltool
6340 test -z "$LD" && LD=ld
6341 test -z "$LN_S" && LN_S="ln -s"
6342 test -z "$MAGIC_CMD" && MAGIC_CMD=file
6343 test -z "$NM" && NM=nm
6344 test -z "$SED" && SED=sed
6345 test -z "$OBJDUMP" && OBJDUMP=objdump
6346 test -z "$RANLIB" && RANLIB=:
6347 test -z "$STRIP" && STRIP=:
6348 test -z "$ac_objext" && ac_objext=o
6349
6350 # Determine commands to create old-style static archives.
6351 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6352 old_postinstall_cmds='chmod 644 $oldlib'
6353 old_postuninstall_cmds=
6354
6355 if test -n "$RANLIB"; then
6356 case $host_os in
6357 openbsd*)
6358 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
6359 ;;
6360 *)
6361 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
6362 ;;
6363 esac
6364 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
6365 fi
6366
6367 for cc_temp in $compiler""; do
6368 case $cc_temp in
6369 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
6370 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
6371 \-*) ;;
6372 *) break;;
6373 esac
6374 done
6375 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
6376
6377
6378 # Only perform the check for file, if the check method requires it
6379 case $deplibs_check_method in
6380 file_magic*)
6381 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
6382 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
6383 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
6384 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 else
6387 case $MAGIC_CMD in
6388 [\\/*] | ?:[\\/]*)
6389 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6390 ;;
6391 *)
6392 lt_save_MAGIC_CMD="$MAGIC_CMD"
6393 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6394 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6395 for ac_dir in $ac_dummy; do
6396 IFS="$lt_save_ifs"
6397 test -z "$ac_dir" && ac_dir=.
6398 if test -f $ac_dir/${ac_tool_prefix}file; then
6399 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
6400 if test -n "$file_magic_test_file"; then
6401 case $deplibs_check_method in
6402 "file_magic "*)
6403 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6404 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6405 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6406 $EGREP "$file_magic_regex" > /dev/null; then
6407 :
6408 else
6409 cat <<EOF 1>&2
6410
6411 *** Warning: the command libtool uses to detect shared libraries,
6412 *** $file_magic_cmd, produces output that libtool cannot recognize.
6413 *** The result is that libtool may fail to recognize shared libraries
6414 *** as such. This will affect the creation of libtool libraries that
6415 *** depend on shared libraries, but programs linked with such libtool
6416 *** libraries will work regardless of this problem. Nevertheless, you
6417 *** may want to report the problem to your system manager and/or to
6418 *** bug-libtool@gnu.org
6419
6420 EOF
6421 fi ;;
6422 esac
6423 fi
6424 break
6425 fi
6426 done
6427 IFS="$lt_save_ifs"
6428 MAGIC_CMD="$lt_save_MAGIC_CMD"
6429 ;;
6430 esac
6431 fi
6432
6433 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6434 if test -n "$MAGIC_CMD"; then
6435 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6436 echo "${ECHO_T}$MAGIC_CMD" >&6
6437 else
6438 echo "$as_me:$LINENO: result: no" >&5
6439 echo "${ECHO_T}no" >&6
6440 fi
6441
6442 if test -z "$lt_cv_path_MAGIC_CMD"; then
6443 if test -n "$ac_tool_prefix"; then
6444 echo "$as_me:$LINENO: checking for file" >&5
6445 echo $ECHO_N "checking for file... $ECHO_C" >&6
6446 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
6447 echo $ECHO_N "(cached) $ECHO_C" >&6
6448 else
6449 case $MAGIC_CMD in
6450 [\\/*] | ?:[\\/]*)
6451 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
6452 ;;
6453 *)
6454 lt_save_MAGIC_CMD="$MAGIC_CMD"
6455 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6456 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
6457 for ac_dir in $ac_dummy; do
6458 IFS="$lt_save_ifs"
6459 test -z "$ac_dir" && ac_dir=.
6460 if test -f $ac_dir/file; then
6461 lt_cv_path_MAGIC_CMD="$ac_dir/file"
6462 if test -n "$file_magic_test_file"; then
6463 case $deplibs_check_method in
6464 "file_magic "*)
6465 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
6466 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6467 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
6468 $EGREP "$file_magic_regex" > /dev/null; then
6469 :
6470 else
6471 cat <<EOF 1>&2
6472
6473 *** Warning: the command libtool uses to detect shared libraries,
6474 *** $file_magic_cmd, produces output that libtool cannot recognize.
6475 *** The result is that libtool may fail to recognize shared libraries
6476 *** as such. This will affect the creation of libtool libraries that
6477 *** depend on shared libraries, but programs linked with such libtool
6478 *** libraries will work regardless of this problem. Nevertheless, you
6479 *** may want to report the problem to your system manager and/or to
6480 *** bug-libtool@gnu.org
6481
6482 EOF
6483 fi ;;
6484 esac
6485 fi
6486 break
6487 fi
6488 done
6489 IFS="$lt_save_ifs"
6490 MAGIC_CMD="$lt_save_MAGIC_CMD"
6491 ;;
6492 esac
6493 fi
6494
6495 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
6496 if test -n "$MAGIC_CMD"; then
6497 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
6498 echo "${ECHO_T}$MAGIC_CMD" >&6
6499 else
6500 echo "$as_me:$LINENO: result: no" >&5
6501 echo "${ECHO_T}no" >&6
6502 fi
6503
6504 else
6505 MAGIC_CMD=:
6506 fi
6507 fi
6508
6509 fi
6510 ;;
6511 esac
6512
6513
6514 case $host_os in
6515 rhapsody* | darwin*)
6516 if test -n "$ac_tool_prefix"; then
6517 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
6518 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
6519 echo "$as_me:$LINENO: checking for $ac_word" >&5
6520 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6521 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then
6522 echo $ECHO_N "(cached) $ECHO_C" >&6
6523 else
6524 if test -n "$DSYMUTIL"; then
6525 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
6526 else
6527 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6528 for as_dir in $PATH
6529 do
6530 IFS=$as_save_IFS
6531 test -z "$as_dir" && as_dir=.
6532 for ac_exec_ext in '' $ac_executable_extensions; do
6533 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6534 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
6535 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6536 break 2
6537 fi
6538 done
6539 done
6540
6541 fi
6542 fi
6543 DSYMUTIL=$ac_cv_prog_DSYMUTIL
6544 if test -n "$DSYMUTIL"; then
6545 echo "$as_me:$LINENO: result: $DSYMUTIL" >&5
6546 echo "${ECHO_T}$DSYMUTIL" >&6
6547 else
6548 echo "$as_me:$LINENO: result: no" >&5
6549 echo "${ECHO_T}no" >&6
6550 fi
6551
6552 fi
6553 if test -z "$ac_cv_prog_DSYMUTIL"; then
6554 ac_ct_DSYMUTIL=$DSYMUTIL
6555 # Extract the first word of "dsymutil", so it can be a program name with args.
6556 set dummy dsymutil; ac_word=$2
6557 echo "$as_me:$LINENO: checking for $ac_word" >&5
6558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6559 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then
6560 echo $ECHO_N "(cached) $ECHO_C" >&6
6561 else
6562 if test -n "$ac_ct_DSYMUTIL"; then
6563 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
6564 else
6565 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6566 for as_dir in $PATH
6567 do
6568 IFS=$as_save_IFS
6569 test -z "$as_dir" && as_dir=.
6570 for ac_exec_ext in '' $ac_executable_extensions; do
6571 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6572 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
6573 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6574 break 2
6575 fi
6576 done
6577 done
6578
6579 test -z "$ac_cv_prog_ac_ct_DSYMUTIL" && ac_cv_prog_ac_ct_DSYMUTIL=":"
6580 fi
6581 fi
6582 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
6583 if test -n "$ac_ct_DSYMUTIL"; then
6584 echo "$as_me:$LINENO: result: $ac_ct_DSYMUTIL" >&5
6585 echo "${ECHO_T}$ac_ct_DSYMUTIL" >&6
6586 else
6587 echo "$as_me:$LINENO: result: no" >&5
6588 echo "${ECHO_T}no" >&6
6589 fi
6590
6591 DSYMUTIL=$ac_ct_DSYMUTIL
6592 else
6593 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
6594 fi
6595
6596 if test -n "$ac_tool_prefix"; then
6597 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
6598 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
6599 echo "$as_me:$LINENO: checking for $ac_word" >&5
6600 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6601 if test "${ac_cv_prog_NMEDIT+set}" = set; then
6602 echo $ECHO_N "(cached) $ECHO_C" >&6
6603 else
6604 if test -n "$NMEDIT"; then
6605 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
6606 else
6607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6608 for as_dir in $PATH
6609 do
6610 IFS=$as_save_IFS
6611 test -z "$as_dir" && as_dir=.
6612 for ac_exec_ext in '' $ac_executable_extensions; do
6613 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6614 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
6615 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6616 break 2
6617 fi
6618 done
6619 done
6620
6621 fi
6622 fi
6623 NMEDIT=$ac_cv_prog_NMEDIT
6624 if test -n "$NMEDIT"; then
6625 echo "$as_me:$LINENO: result: $NMEDIT" >&5
6626 echo "${ECHO_T}$NMEDIT" >&6
6627 else
6628 echo "$as_me:$LINENO: result: no" >&5
6629 echo "${ECHO_T}no" >&6
6630 fi
6631
6632 fi
6633 if test -z "$ac_cv_prog_NMEDIT"; then
6634 ac_ct_NMEDIT=$NMEDIT
6635 # Extract the first word of "nmedit", so it can be a program name with args.
6636 set dummy nmedit; ac_word=$2
6637 echo "$as_me:$LINENO: checking for $ac_word" >&5
6638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6639 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then
6640 echo $ECHO_N "(cached) $ECHO_C" >&6
6641 else
6642 if test -n "$ac_ct_NMEDIT"; then
6643 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
6644 else
6645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6646 for as_dir in $PATH
6647 do
6648 IFS=$as_save_IFS
6649 test -z "$as_dir" && as_dir=.
6650 for ac_exec_ext in '' $ac_executable_extensions; do
6651 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6652 ac_cv_prog_ac_ct_NMEDIT="nmedit"
6653 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6654 break 2
6655 fi
6656 done
6657 done
6658
6659 test -z "$ac_cv_prog_ac_ct_NMEDIT" && ac_cv_prog_ac_ct_NMEDIT=":"
6660 fi
6661 fi
6662 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
6663 if test -n "$ac_ct_NMEDIT"; then
6664 echo "$as_me:$LINENO: result: $ac_ct_NMEDIT" >&5
6665 echo "${ECHO_T}$ac_ct_NMEDIT" >&6
6666 else
6667 echo "$as_me:$LINENO: result: no" >&5
6668 echo "${ECHO_T}no" >&6
6669 fi
6670
6671 NMEDIT=$ac_ct_NMEDIT
6672 else
6673 NMEDIT="$ac_cv_prog_NMEDIT"
6674 fi
6675
6676
6677 echo "$as_me:$LINENO: checking for -single_module linker flag" >&5
6678 echo $ECHO_N "checking for -single_module linker flag... $ECHO_C" >&6
6679 if test "${lt_cv_apple_cc_single_mod+set}" = set; then
6680 echo $ECHO_N "(cached) $ECHO_C" >&6
6681 else
6682 lt_cv_apple_cc_single_mod=no
6683 if test -z "${LT_MULTI_MODULE}"; then
6684 # By default we will add the -single_module flag. You can override
6685 # by either setting the environment variable LT_MULTI_MODULE
6686 # non-empty at configure time, or by adding -multi_module to the
6687 # link flags.
6688 echo "int foo(void){return 1;}" > conftest.c
6689 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
6690 -dynamiclib ${wl}-single_module conftest.c
6691 if test -f libconftest.dylib; then
6692 lt_cv_apple_cc_single_mod=yes
6693 rm -rf libconftest.dylib*
6694 fi
6695 rm conftest.c
6696 fi
6697 fi
6698 echo "$as_me:$LINENO: result: $lt_cv_apple_cc_single_mod" >&5
6699 echo "${ECHO_T}$lt_cv_apple_cc_single_mod" >&6
6700 echo "$as_me:$LINENO: checking for -exported_symbols_list linker flag" >&5
6701 echo $ECHO_N "checking for -exported_symbols_list linker flag... $ECHO_C" >&6
6702 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then
6703 echo $ECHO_N "(cached) $ECHO_C" >&6
6704 else
6705 lt_cv_ld_exported_symbols_list=no
6706 save_LDFLAGS=$LDFLAGS
6707 echo "_main" > conftest.sym
6708 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
6709 cat >conftest.$ac_ext <<_ACEOF
6710 /* confdefs.h. */
6711 _ACEOF
6712 cat confdefs.h >>conftest.$ac_ext
6713 cat >>conftest.$ac_ext <<_ACEOF
6714 /* end confdefs.h. */
6715
6716 int
6717 main ()
6718 {
6719
6720 ;
6721 return 0;
6722 }
6723 _ACEOF
6724 rm -f conftest.$ac_objext conftest$ac_exeext
6725 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6726 (eval $ac_link) 2>conftest.er1
6727 ac_status=$?
6728 grep -v '^ *+' conftest.er1 >conftest.err
6729 rm -f conftest.er1
6730 cat conftest.err >&5
6731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6732 (exit $ac_status); } &&
6733 { ac_try='test -z "$ac_c_werror_flag"
6734 || test ! -s conftest.err'
6735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6736 (eval $ac_try) 2>&5
6737 ac_status=$?
6738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6739 (exit $ac_status); }; } &&
6740 { ac_try='test -s conftest$ac_exeext'
6741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6742 (eval $ac_try) 2>&5
6743 ac_status=$?
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); }; }; then
6746 lt_cv_ld_exported_symbols_list=yes
6747 else
6748 echo "$as_me: failed program was:" >&5
6749 sed 's/^/| /' conftest.$ac_ext >&5
6750
6751 lt_cv_ld_exported_symbols_list=no
6752 fi
6753 rm -f conftest.err conftest.$ac_objext \
6754 conftest$ac_exeext conftest.$ac_ext
6755 LDFLAGS="$save_LDFLAGS"
6756
6757 fi
6758 echo "$as_me:$LINENO: result: $lt_cv_ld_exported_symbols_list" >&5
6759 echo "${ECHO_T}$lt_cv_ld_exported_symbols_list" >&6
6760 case $host_os in
6761 rhapsody* | darwin1.[0123])
6762 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
6763 darwin1.*)
6764 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6765 darwin*)
6766 # if running on 10.5 or later, the deployment target defaults
6767 # to the OS version, if on x86, and 10.4, the deployment
6768 # target defaults to 10.4. Don't you love it?
6769 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
6770 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
6771 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6772 10.[012]*)
6773 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
6774 10.*)
6775 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
6776 esac
6777 ;;
6778 esac
6779 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
6780 _lt_dar_single_mod='$single_module'
6781 fi
6782 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
6783 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
6784 else
6785 _lt_dar_export_syms="~$NMEDIT -s \$output_objdir/\${libname}-symbols.expsym \${lib}"
6786 fi
6787 if test "$DSYMUTIL" != ":"; then
6788 _lt_dsymutil="~$DSYMUTIL \$lib || :"
6789 else
6790 _lt_dsymutil=
6791 fi
6792 ;;
6793 esac
6794
6795
6796 enable_dlopen=no
6797 enable_win32_dll=no
6798
6799 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6800 if test "${enable_libtool_lock+set}" = set; then
6801 enableval="$enable_libtool_lock"
6802
6803 fi;
6804 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6805
6806
6807 # Check whether --with-pic or --without-pic was given.
6808 if test "${with_pic+set}" = set; then
6809 withval="$with_pic"
6810 pic_mode="$withval"
6811 else
6812 pic_mode=default
6813 fi;
6814 test -z "$pic_mode" && pic_mode=default
6815
6816 # Use C for the default configuration in the libtool script
6817 tagname=
6818 lt_save_CC="$CC"
6819 ac_ext=c
6820 ac_cpp='$CPP $CPPFLAGS'
6821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6824
6825
6826 # Source file extension for C test sources.
6827 ac_ext=c
6828
6829 # Object file extension for compiled C test sources.
6830 objext=o
6831 objext=$objext
6832
6833 # Code to be used in simple compile tests
6834 lt_simple_compile_test_code="int some_variable = 0;"
6835
6836 # Code to be used in simple link tests
6837 lt_simple_link_test_code='int main(){return(0);}'
6838
6839
6840 # If no C compiler was specified, use CC.
6841 LTCC=${LTCC-"$CC"}
6842
6843 # If no C compiler flags were specified, use CFLAGS.
6844 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6845
6846 # Allow CC to be a program name with arguments.
6847 compiler=$CC
6848
6849
6850 # save warnings/boilerplate of simple test code
6851 ac_outfile=conftest.$ac_objext
6852 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
6853 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6854 _lt_compiler_boilerplate=`cat conftest.err`
6855 $rm conftest*
6856
6857 ac_outfile=conftest.$ac_objext
6858 echo "$lt_simple_link_test_code" >conftest.$ac_ext
6859 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
6860 _lt_linker_boilerplate=`cat conftest.err`
6861 $rm -r conftest*
6862
6863
6864
6865 lt_prog_compiler_no_builtin_flag=
6866
6867 if test "$GCC" = yes; then
6868 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
6869
6870
6871 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
6872 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
6873 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
6874 echo $ECHO_N "(cached) $ECHO_C" >&6
6875 else
6876 lt_cv_prog_compiler_rtti_exceptions=no
6877 ac_outfile=conftest.$ac_objext
6878 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
6879 lt_compiler_flag="-fno-rtti -fno-exceptions"
6880 # Insert the option either (1) after the last *FLAGS variable, or
6881 # (2) before a word containing "conftest.", or (3) at the end.
6882 # Note that $ac_compile itself does not contain backslashes and begins
6883 # with a dollar sign (not a hyphen), so the echo should work correctly.
6884 # The option is referenced via a variable to avoid confusing sed.
6885 lt_compile=`echo "$ac_compile" | $SED \
6886 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
6887 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
6888 -e 's:$: $lt_compiler_flag:'`
6889 (eval echo "\"\$as_me:6889: $lt_compile\"" >&5)
6890 (eval "$lt_compile" 2>conftest.err)
6891 ac_status=$?
6892 cat conftest.err >&5
6893 echo "$as_me:6893: \$? = $ac_status" >&5
6894 if (exit $ac_status) && test -s "$ac_outfile"; then
6895 # The compiler can only warn and ignore the option if not recognized
6896 # So say no if there are warnings other than the usual output.
6897 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
6898 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
6899 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
6900 lt_cv_prog_compiler_rtti_exceptions=yes
6901 fi
6902 fi
6903 $rm conftest*
6904
6905 fi
6906 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
6907 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
6908
6909 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
6910 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
6911 else
6912 :
6913 fi
6914
6915 fi
6916
6917 lt_prog_compiler_wl=
6918 lt_prog_compiler_pic=
6919 lt_prog_compiler_static=
6920
6921 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
6922 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
6923
6924 if test "$GCC" = yes; then
6925 lt_prog_compiler_wl='-Wl,'
6926 lt_prog_compiler_static='-static'
6927
6928 case $host_os in
6929 aix*)
6930 # All AIX code is PIC.
6931 if test "$host_cpu" = ia64; then
6932 # AIX 5 now supports IA64 processor
6933 lt_prog_compiler_static='-Bstatic'
6934 fi
6935 ;;
6936
6937 amigaos*)
6938 # FIXME: we need at least 68020 code to build shared libraries, but
6939 # adding the `-m68020' flag to GCC prevents building anything better,
6940 # like `-m68040'.
6941 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
6942 ;;
6943
6944 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
6945 # PIC is the default for these OSes.
6946 ;;
6947
6948 mingw* | cygwin* | pw32* | os2*)
6949 # This hack is so that the source file can tell whether it is being
6950 # built for inclusion in a dll (and should export symbols for example).
6951 # Although the cygwin gcc ignores -fPIC, still need this for old-style
6952 # (--disable-auto-import) libraries
6953 lt_prog_compiler_pic='-DDLL_EXPORT'
6954 ;;
6955
6956 darwin* | rhapsody*)
6957 # PIC is the default on this platform
6958 # Common symbols not allowed in MH_DYLIB files
6959 lt_prog_compiler_pic='-fno-common'
6960 ;;
6961
6962 interix[3-9]*)
6963 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
6964 # Instead, we relocate shared libraries at runtime.
6965 ;;
6966
6967 msdosdjgpp*)
6968 # Just because we use GCC doesn't mean we suddenly get shared libraries
6969 # on systems that don't support them.
6970 lt_prog_compiler_can_build_shared=no
6971 enable_shared=no
6972 ;;
6973
6974 sysv4*MP*)
6975 if test -d /usr/nec; then
6976 lt_prog_compiler_pic=-Kconform_pic
6977 fi
6978 ;;
6979
6980 hpux*)
6981 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
6982 # not for PA HP-UX.
6983 case $host_cpu in
6984 hppa*64*|ia64*)
6985 # +Z the default
6986 ;;
6987 *)
6988 lt_prog_compiler_pic='-fPIC'
6989 ;;
6990 esac
6991 ;;
6992
6993 *)
6994 lt_prog_compiler_pic='-fPIC'
6995 ;;
6996 esac
6997 else
6998 # PORTME Check for flag to pass linker flags through the system compiler.
6999 case $host_os in
7000 aix*)
7001 lt_prog_compiler_wl='-Wl,'
7002 if test "$host_cpu" = ia64; then
7003 # AIX 5 now supports IA64 processor
7004 lt_prog_compiler_static='-Bstatic'
7005 else
7006 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
7007 fi
7008 ;;
7009 darwin*)
7010 # PIC is the default on this platform
7011 # Common symbols not allowed in MH_DYLIB files
7012 case $cc_basename in
7013 xlc*)
7014 lt_prog_compiler_pic='-qnocommon'
7015 lt_prog_compiler_wl='-Wl,'
7016 ;;
7017 esac
7018 ;;
7019
7020 mingw* | cygwin* | pw32* | os2*)
7021 # This hack is so that the source file can tell whether it is being
7022 # built for inclusion in a dll (and should export symbols for example).
7023 lt_prog_compiler_pic='-DDLL_EXPORT'
7024 ;;
7025
7026 hpux9* | hpux10* | hpux11*)
7027 lt_prog_compiler_wl='-Wl,'
7028 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
7029 # not for PA HP-UX.
7030 case $host_cpu in
7031 hppa*64*|ia64*)
7032 # +Z the default
7033 ;;
7034 *)
7035 lt_prog_compiler_pic='+Z'
7036 ;;
7037 esac
7038 # Is there a better lt_prog_compiler_static that works with the bundled CC?
7039 lt_prog_compiler_static='${wl}-a ${wl}archive'
7040 ;;
7041
7042 irix5* | irix6* | nonstopux*)
7043 lt_prog_compiler_wl='-Wl,'
7044 # PIC (with -KPIC) is the default.
7045 lt_prog_compiler_static='-non_shared'
7046 ;;
7047
7048 newsos6)
7049 lt_prog_compiler_pic='-KPIC'
7050 lt_prog_compiler_static='-Bstatic'
7051 ;;
7052
7053 linux* | k*bsd*-gnu)
7054 case $cc_basename in
7055 icc* | ecc*)
7056 lt_prog_compiler_wl='-Wl,'
7057 lt_prog_compiler_pic='-KPIC'
7058 lt_prog_compiler_static='-static'
7059 ;;
7060 pgcc* | pgf77* | pgf90* | pgf95*)
7061 # Portland Group compilers (*not* the Pentium gcc compiler,
7062 # which looks to be a dead project)
7063 lt_prog_compiler_wl='-Wl,'
7064 lt_prog_compiler_pic='-fpic'
7065 lt_prog_compiler_static='-Bstatic'
7066 ;;
7067 ccc*)
7068 lt_prog_compiler_wl='-Wl,'
7069 # All Alpha code is PIC.
7070 lt_prog_compiler_static='-non_shared'
7071 ;;
7072 *)
7073 case `$CC -V 2>&1 | sed 5q` in
7074 *Sun\ C*)
7075 # Sun C 5.9
7076 lt_prog_compiler_pic='-KPIC'
7077 lt_prog_compiler_static='-Bstatic'
7078 lt_prog_compiler_wl='-Wl,'
7079 ;;
7080 *Sun\ F*)
7081 # Sun Fortran 8.3 passes all unrecognized flags to the linker
7082 lt_prog_compiler_pic='-KPIC'
7083 lt_prog_compiler_static='-Bstatic'
7084 lt_prog_compiler_wl=''
7085 ;;
7086 esac
7087 ;;
7088 esac
7089 ;;
7090
7091 osf3* | osf4* | osf5*)
7092 lt_prog_compiler_wl='-Wl,'
7093 # All OSF/1 code is PIC.
7094 lt_prog_compiler_static='-non_shared'
7095 ;;
7096
7097 rdos*)
7098 lt_prog_compiler_static='-non_shared'
7099 ;;
7100
7101 solaris*)
7102 lt_prog_compiler_pic='-KPIC'
7103 lt_prog_compiler_static='-Bstatic'
7104 case $cc_basename in
7105 f77* | f90* | f95*)
7106 lt_prog_compiler_wl='-Qoption ld ';;
7107 *)
7108 lt_prog_compiler_wl='-Wl,';;
7109 esac
7110 ;;
7111
7112 sunos4*)
7113 lt_prog_compiler_wl='-Qoption ld '
7114 lt_prog_compiler_pic='-PIC'
7115 lt_prog_compiler_static='-Bstatic'
7116 ;;
7117
7118 sysv4 | sysv4.2uw2* | sysv4.3*)
7119 lt_prog_compiler_wl='-Wl,'
7120 lt_prog_compiler_pic='-KPIC'
7121 lt_prog_compiler_static='-Bstatic'
7122 ;;
7123
7124 sysv4*MP*)
7125 if test -d /usr/nec ;then
7126 lt_prog_compiler_pic='-Kconform_pic'
7127 lt_prog_compiler_static='-Bstatic'
7128 fi
7129 ;;
7130
7131 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
7132 lt_prog_compiler_wl='-Wl,'
7133 lt_prog_compiler_pic='-KPIC'
7134 lt_prog_compiler_static='-Bstatic'
7135 ;;
7136
7137 unicos*)
7138 lt_prog_compiler_wl='-Wl,'
7139 lt_prog_compiler_can_build_shared=no
7140 ;;
7141
7142 uts4*)
7143 lt_prog_compiler_pic='-pic'
7144 lt_prog_compiler_static='-Bstatic'
7145 ;;
7146
7147 *)
7148 lt_prog_compiler_can_build_shared=no
7149 ;;
7150 esac
7151 fi
7152
7153 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
7154 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
7155
7156 #
7157 # Check to make sure the PIC flag actually works.
7158 #
7159 if test -n "$lt_prog_compiler_pic"; then
7160
7161 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
7162 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
7163 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166 lt_cv_prog_compiler_pic_works=no
7167 ac_outfile=conftest.$ac_objext
7168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7169 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
7170 # Insert the option either (1) after the last *FLAGS variable, or
7171 # (2) before a word containing "conftest.", or (3) at the end.
7172 # Note that $ac_compile itself does not contain backslashes and begins
7173 # with a dollar sign (not a hyphen), so the echo should work correctly.
7174 # The option is referenced via a variable to avoid confusing sed.
7175 lt_compile=`echo "$ac_compile" | $SED \
7176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7178 -e 's:$: $lt_compiler_flag:'`
7179 (eval echo "\"\$as_me:7179: $lt_compile\"" >&5)
7180 (eval "$lt_compile" 2>conftest.err)
7181 ac_status=$?
7182 cat conftest.err >&5
7183 echo "$as_me:7183: \$? = $ac_status" >&5
7184 if (exit $ac_status) && test -s "$ac_outfile"; then
7185 # The compiler can only warn and ignore the option if not recognized
7186 # So say no if there are warnings other than the usual output.
7187 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
7188 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7189 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
7190 lt_cv_prog_compiler_pic_works=yes
7191 fi
7192 fi
7193 $rm conftest*
7194
7195 fi
7196 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works" >&5
7197 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works" >&6
7198
7199 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
7200 case $lt_prog_compiler_pic in
7201 "" | " "*) ;;
7202 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
7203 esac
7204 else
7205 lt_prog_compiler_pic=
7206 lt_prog_compiler_can_build_shared=no
7207 fi
7208
7209 fi
7210 case $host_os in
7211 # For platforms which do not support PIC, -DPIC is meaningless:
7212 *djgpp*)
7213 lt_prog_compiler_pic=
7214 ;;
7215 *)
7216 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
7217 ;;
7218 esac
7219
7220 #
7221 # Check to make sure the static flag actually works.
7222 #
7223 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
7224 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
7225 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
7226 if test "${lt_cv_prog_compiler_static_works+set}" = set; then
7227 echo $ECHO_N "(cached) $ECHO_C" >&6
7228 else
7229 lt_cv_prog_compiler_static_works=no
7230 save_LDFLAGS="$LDFLAGS"
7231 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
7232 echo "$lt_simple_link_test_code" > conftest.$ac_ext
7233 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
7234 # The linker can only warn and ignore the option if not recognized
7235 # So say no if there are warnings
7236 if test -s conftest.err; then
7237 # Append any errors to the config.log.
7238 cat conftest.err 1>&5
7239 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
7240 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
7241 if diff conftest.exp conftest.er2 >/dev/null; then
7242 lt_cv_prog_compiler_static_works=yes
7243 fi
7244 else
7245 lt_cv_prog_compiler_static_works=yes
7246 fi
7247 fi
7248 $rm -r conftest*
7249 LDFLAGS="$save_LDFLAGS"
7250
7251 fi
7252 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works" >&5
7253 echo "${ECHO_T}$lt_cv_prog_compiler_static_works" >&6
7254
7255 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
7256 :
7257 else
7258 lt_prog_compiler_static=
7259 fi
7260
7261
7262 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
7263 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
7264 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
7265 echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267 lt_cv_prog_compiler_c_o=no
7268 $rm -r conftest 2>/dev/null
7269 mkdir conftest
7270 cd conftest
7271 mkdir out
7272 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
7273
7274 lt_compiler_flag="-o out/conftest2.$ac_objext"
7275 # Insert the option either (1) after the last *FLAGS variable, or
7276 # (2) before a word containing "conftest.", or (3) at the end.
7277 # Note that $ac_compile itself does not contain backslashes and begins
7278 # with a dollar sign (not a hyphen), so the echo should work correctly.
7279 lt_compile=`echo "$ac_compile" | $SED \
7280 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
7281 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
7282 -e 's:$: $lt_compiler_flag:'`
7283 (eval echo "\"\$as_me:7283: $lt_compile\"" >&5)
7284 (eval "$lt_compile" 2>out/conftest.err)
7285 ac_status=$?
7286 cat out/conftest.err >&5
7287 echo "$as_me:7287: \$? = $ac_status" >&5
7288 if (exit $ac_status) && test -s out/conftest2.$ac_objext
7289 then
7290 # The compiler can only warn and ignore the option if not recognized
7291 # So say no if there are warnings
7292 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
7293 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
7294 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
7295 lt_cv_prog_compiler_c_o=yes
7296 fi
7297 fi
7298 chmod u+w . 2>&5
7299 $rm conftest*
7300 # SGI C++ compiler will create directory out/ii_files/ for
7301 # template instantiation
7302 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
7303 $rm out/* && rmdir out
7304 cd ..
7305 rmdir conftest
7306 $rm conftest*
7307
7308 fi
7309 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
7310 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
7311
7312
7313 hard_links="nottested"
7314 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
7315 # do not overwrite the value of need_locks provided by the user
7316 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
7317 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
7318 hard_links=yes
7319 $rm conftest*
7320 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7321 touch conftest.a
7322 ln conftest.a conftest.b 2>&5 || hard_links=no
7323 ln conftest.a conftest.b 2>/dev/null && hard_links=no
7324 echo "$as_me:$LINENO: result: $hard_links" >&5
7325 echo "${ECHO_T}$hard_links" >&6
7326 if test "$hard_links" = no; then
7327 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
7328 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
7329 need_locks=warn
7330 fi
7331 else
7332 need_locks=no
7333 fi
7334
7335 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
7336 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
7337
7338 runpath_var=
7339 allow_undefined_flag=
7340 enable_shared_with_static_runtimes=no
7341 archive_cmds=
7342 archive_expsym_cmds=
7343 old_archive_From_new_cmds=
7344 old_archive_from_expsyms_cmds=
7345 export_dynamic_flag_spec=
7346 whole_archive_flag_spec=
7347 thread_safe_flag_spec=
7348 hardcode_libdir_flag_spec=
7349 hardcode_libdir_flag_spec_ld=
7350 hardcode_libdir_separator=
7351 hardcode_direct=no
7352 hardcode_minus_L=no
7353 hardcode_shlibpath_var=unsupported
7354 link_all_deplibs=unknown
7355 hardcode_automatic=no
7356 module_cmds=
7357 module_expsym_cmds=
7358 always_export_symbols=no
7359 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
7360 # include_expsyms should be a list of space-separated symbols to be *always*
7361 # included in the symbol list
7362 include_expsyms=
7363 # exclude_expsyms can be an extended regexp of symbols to exclude
7364 # it will be wrapped by ` (' and `)$', so one must not match beginning or
7365 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
7366 # as well as any symbol that contains `d'.
7367 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
7368 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
7369 # platforms (ab)use it in PIC code, but their linkers get confused if
7370 # the symbol is explicitly referenced. Since portable code cannot
7371 # rely on this symbol name, it's probably fine to never include it in
7372 # preloaded symbol tables.
7373 # Exclude shared library initialization/finalization symbols.
7374 extract_expsyms_cmds=
7375 # Just being paranoid about ensuring that cc_basename is set.
7376 for cc_temp in $compiler""; do
7377 case $cc_temp in
7378 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
7379 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
7380 \-*) ;;
7381 *) break;;
7382 esac
7383 done
7384 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
7385
7386 case $host_os in
7387 cygwin* | mingw* | pw32*)
7388 # FIXME: the MSVC++ port hasn't been tested in a loooong time
7389 # When not using gcc, we currently assume that we are using
7390 # Microsoft Visual C++.
7391 if test "$GCC" != yes; then
7392 with_gnu_ld=no
7393 fi
7394 ;;
7395 interix*)
7396 # we just hope/assume this is gcc and not c89 (= MSVC++)
7397 with_gnu_ld=yes
7398 ;;
7399 openbsd*)
7400 with_gnu_ld=no
7401 ;;
7402 esac
7403
7404 ld_shlibs=yes
7405 if test "$with_gnu_ld" = yes; then
7406 # If archive_cmds runs LD, not CC, wlarc should be empty
7407 wlarc='${wl}'
7408
7409 # Set some defaults for GNU ld with shared library support. These
7410 # are reset later if shared libraries are not supported. Putting them
7411 # here allows them to be overridden if necessary.
7412 runpath_var=LD_RUN_PATH
7413 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
7414 export_dynamic_flag_spec='${wl}--export-dynamic'
7415 # ancient GNU ld didn't support --whole-archive et. al.
7416 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
7417 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
7418 else
7419 whole_archive_flag_spec=
7420 fi
7421 supports_anon_versioning=no
7422 case `$LD -v 2>/dev/null` in
7423 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
7424 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
7425 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
7426 *\ 2.11.*) ;; # other 2.11 versions
7427 *) supports_anon_versioning=yes ;;
7428 esac
7429
7430 # See if GNU ld supports shared libraries.
7431 case $host_os in
7432 aix[3-9]*)
7433 # On AIX/PPC, the GNU linker is very broken
7434 if test "$host_cpu" != ia64; then
7435 ld_shlibs=no
7436 cat <<EOF 1>&2
7437
7438 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
7439 *** to be unable to reliably create shared libraries on AIX.
7440 *** Therefore, libtool is disabling shared libraries support. If you
7441 *** really care for shared libraries, you may want to modify your PATH
7442 *** so that a non-GNU linker is found, and then restart.
7443
7444 EOF
7445 fi
7446 ;;
7447
7448 amigaos*)
7449 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)'
7450 hardcode_libdir_flag_spec='-L$libdir'
7451 hardcode_minus_L=yes
7452
7453 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
7454 # that the semantics of dynamic libraries on AmigaOS, at least up
7455 # to version 4, is to share data among multiple programs linked
7456 # with the same dynamic library. Since this doesn't match the
7457 # behavior of shared libraries on other platforms, we can't use
7458 # them.
7459 ld_shlibs=no
7460 ;;
7461
7462 beos*)
7463 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7464 allow_undefined_flag=unsupported
7465 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
7466 # support --undefined. This deserves some investigation. FIXME
7467 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7468 else
7469 ld_shlibs=no
7470 fi
7471 ;;
7472
7473 cygwin* | mingw* | pw32*)
7474 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
7475 # as there is no search path for DLLs.
7476 hardcode_libdir_flag_spec='-L$libdir'
7477 allow_undefined_flag=unsupported
7478 always_export_symbols=no
7479 enable_shared_with_static_runtimes=yes
7480 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
7481
7482 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
7483 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7484 # If the export-symbols file already is a .def file (1st line
7485 # is EXPORTS), use it as is; otherwise, prepend...
7486 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
7487 cp $export_symbols $output_objdir/$soname.def;
7488 else
7489 echo EXPORTS > $output_objdir/$soname.def;
7490 cat $export_symbols >> $output_objdir/$soname.def;
7491 fi~
7492 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
7493 else
7494 ld_shlibs=no
7495 fi
7496 ;;
7497
7498 interix[3-9]*)
7499 hardcode_direct=no
7500 hardcode_shlibpath_var=no
7501 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
7502 export_dynamic_flag_spec='${wl}-E'
7503 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
7504 # Instead, shared libraries are loaded at an image base (0x10000000 by
7505 # default) and relocated if they conflict, which is a slow very memory
7506 # consuming and fragmenting process. To avoid this, we pick a random,
7507 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
7508 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
7509 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7510 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
7511 ;;
7512
7513 gnu* | linux* | k*bsd*-gnu)
7514 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7515 tmp_addflag=
7516 case $cc_basename,$host_cpu in
7517 pgcc*) # Portland Group C compiler
7518 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7519 tmp_addflag=' $pic_flag'
7520 ;;
7521 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
7522 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7523 tmp_addflag=' $pic_flag -Mnomain' ;;
7524 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
7525 tmp_addflag=' -i_dynamic' ;;
7526 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
7527 tmp_addflag=' -i_dynamic -nofor_main' ;;
7528 ifc* | ifort*) # Intel Fortran compiler
7529 tmp_addflag=' -nofor_main' ;;
7530 esac
7531 case `$CC -V 2>&1 | sed 5q` in
7532 *Sun\ C*) # Sun C 5.9
7533 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
7534 tmp_sharedflag='-G' ;;
7535 *Sun\ F*) # Sun Fortran 8.3
7536 tmp_sharedflag='-G' ;;
7537 *)
7538 tmp_sharedflag='-shared' ;;
7539 esac
7540 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7541
7542 if test $supports_anon_versioning = yes; then
7543 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
7544 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
7545 $echo "local: *; };" >> $output_objdir/$libname.ver~
7546 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
7547 fi
7548 else
7549 ld_shlibs=no
7550 fi
7551 ;;
7552
7553 netbsd*)
7554 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
7555 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
7556 wlarc=
7557 else
7558 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7559 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7560 fi
7561 ;;
7562
7563 solaris*)
7564 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
7565 ld_shlibs=no
7566 cat <<EOF 1>&2
7567
7568 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
7569 *** create shared libraries on Solaris systems. Therefore, libtool
7570 *** is disabling shared libraries support. We urge you to upgrade GNU
7571 *** binutils to release 2.9.1 or newer. Another option is to modify
7572 *** your PATH or compiler configuration so that the native linker is
7573 *** used, and then restart.
7574
7575 EOF
7576 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7577 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7578 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7579 else
7580 ld_shlibs=no
7581 fi
7582 ;;
7583
7584 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
7585 case `$LD -v 2>&1` in
7586 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
7587 ld_shlibs=no
7588 cat <<_LT_EOF 1>&2
7589
7590 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
7591 *** reliably create shared libraries on SCO systems. Therefore, libtool
7592 *** is disabling shared libraries support. We urge you to upgrade GNU
7593 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
7594 *** your PATH or compiler configuration so that the native linker is
7595 *** used, and then restart.
7596
7597 _LT_EOF
7598 ;;
7599 *)
7600 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7601 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
7602 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
7603 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
7604 else
7605 ld_shlibs=no
7606 fi
7607 ;;
7608 esac
7609 ;;
7610
7611 sunos4*)
7612 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7613 wlarc=
7614 hardcode_direct=yes
7615 hardcode_shlibpath_var=no
7616 ;;
7617
7618 *)
7619 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
7620 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
7621 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
7622 else
7623 ld_shlibs=no
7624 fi
7625 ;;
7626 esac
7627
7628 if test "$ld_shlibs" = no; then
7629 runpath_var=
7630 hardcode_libdir_flag_spec=
7631 export_dynamic_flag_spec=
7632 whole_archive_flag_spec=
7633 fi
7634 else
7635 # PORTME fill in a description of your system's linker (not GNU ld)
7636 case $host_os in
7637 aix3*)
7638 allow_undefined_flag=unsupported
7639 always_export_symbols=yes
7640 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'
7641 # Note: this linker hardcodes the directories in LIBPATH if there
7642 # are no directories specified by -L.
7643 hardcode_minus_L=yes
7644 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
7645 # Neither direct hardcoding nor static linking is supported with a
7646 # broken collect2.
7647 hardcode_direct=unsupported
7648 fi
7649 ;;
7650
7651 aix[4-9]*)
7652 if test "$host_cpu" = ia64; then
7653 # On IA64, the linker does run time linking by default, so we don't
7654 # have to do anything special.
7655 aix_use_runtimelinking=no
7656 exp_sym_flag='-Bexport'
7657 no_entry_flag=""
7658 else
7659 # If we're using GNU nm, then we don't want the "-C" option.
7660 # -C means demangle to AIX nm, but means don't demangle with GNU nm
7661 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
7662 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7663 else
7664 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
7665 fi
7666 aix_use_runtimelinking=no
7667
7668 # Test if we are trying to use run time linking or normal
7669 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
7670 # need to do runtime linking.
7671 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
7672 for ld_flag in $LDFLAGS; do
7673 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
7674 aix_use_runtimelinking=yes
7675 break
7676 fi
7677 done
7678 ;;
7679 esac
7680
7681 exp_sym_flag='-bexport'
7682 no_entry_flag='-bnoentry'
7683 fi
7684
7685 # When large executables or shared objects are built, AIX ld can
7686 # have problems creating the table of contents. If linking a library
7687 # or program results in "error TOC overflow" add -mminimal-toc to
7688 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
7689 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
7690
7691 archive_cmds=''
7692 hardcode_direct=yes
7693 hardcode_libdir_separator=':'
7694 link_all_deplibs=yes
7695
7696 if test "$GCC" = yes; then
7697 case $host_os in aix4.[012]|aix4.[012].*)
7698 # We only want to do this on AIX 4.2 and lower, the check
7699 # below for broken collect2 doesn't work under 4.3+
7700 collect2name=`${CC} -print-prog-name=collect2`
7701 if test -f "$collect2name" && \
7702 strings "$collect2name" | grep resolve_lib_name >/dev/null
7703 then
7704 # We have reworked collect2
7705 :
7706 else
7707 # We have old collect2
7708 hardcode_direct=unsupported
7709 # It fails to find uninstalled libraries when the uninstalled
7710 # path is not listed in the libpath. Setting hardcode_minus_L
7711 # to unsupported forces relinking
7712 hardcode_minus_L=yes
7713 hardcode_libdir_flag_spec='-L$libdir'
7714 hardcode_libdir_separator=
7715 fi
7716 ;;
7717 esac
7718 shared_flag='-shared'
7719 if test "$aix_use_runtimelinking" = yes; then
7720 shared_flag="$shared_flag "'${wl}-G'
7721 fi
7722 else
7723 # not using gcc
7724 if test "$host_cpu" = ia64; then
7725 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
7726 # chokes on -Wl,-G. The following line is correct:
7727 shared_flag='-G'
7728 else
7729 if test "$aix_use_runtimelinking" = yes; then
7730 shared_flag='${wl}-G'
7731 else
7732 shared_flag='${wl}-bM:SRE'
7733 fi
7734 fi
7735 fi
7736
7737 # It seems that -bexpall does not export symbols beginning with
7738 # underscore (_), so it is better to generate a list of symbols to export.
7739 always_export_symbols=yes
7740 if test "$aix_use_runtimelinking" = yes; then
7741 # Warning - without using the other runtime loading flags (-brtl),
7742 # -berok will link without error, but may produce a broken library.
7743 allow_undefined_flag='-berok'
7744 # Determine the default libpath from the value encoded in an empty executable.
7745 cat >conftest.$ac_ext <<_ACEOF
7746 /* confdefs.h. */
7747 _ACEOF
7748 cat confdefs.h >>conftest.$ac_ext
7749 cat >>conftest.$ac_ext <<_ACEOF
7750 /* end confdefs.h. */
7751
7752 int
7753 main ()
7754 {
7755
7756 ;
7757 return 0;
7758 }
7759 _ACEOF
7760 rm -f conftest.$ac_objext conftest$ac_exeext
7761 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7762 (eval $ac_link) 2>conftest.er1
7763 ac_status=$?
7764 grep -v '^ *+' conftest.er1 >conftest.err
7765 rm -f conftest.er1
7766 cat conftest.err >&5
7767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7768 (exit $ac_status); } &&
7769 { ac_try='test -z "$ac_c_werror_flag"
7770 || test ! -s conftest.err'
7771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7772 (eval $ac_try) 2>&5
7773 ac_status=$?
7774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7775 (exit $ac_status); }; } &&
7776 { ac_try='test -s conftest$ac_exeext'
7777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7778 (eval $ac_try) 2>&5
7779 ac_status=$?
7780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7781 (exit $ac_status); }; }; then
7782
7783 lt_aix_libpath_sed='
7784 /Import File Strings/,/^$/ {
7785 /^0/ {
7786 s/^0 *\(.*\)$/\1/
7787 p
7788 }
7789 }'
7790 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7791 # Check for a 64-bit object if we didn't find anything.
7792 if test -z "$aix_libpath"; then
7793 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7794 fi
7795 else
7796 echo "$as_me: failed program was:" >&5
7797 sed 's/^/| /' conftest.$ac_ext >&5
7798
7799 fi
7800 rm -f conftest.err conftest.$ac_objext \
7801 conftest$ac_exeext conftest.$ac_ext
7802 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7803
7804 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7805 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
7806 else
7807 if test "$host_cpu" = ia64; then
7808 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
7809 allow_undefined_flag="-z nodefs"
7810 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
7811 else
7812 # Determine the default libpath from the value encoded in an empty executable.
7813 cat >conftest.$ac_ext <<_ACEOF
7814 /* confdefs.h. */
7815 _ACEOF
7816 cat confdefs.h >>conftest.$ac_ext
7817 cat >>conftest.$ac_ext <<_ACEOF
7818 /* end confdefs.h. */
7819
7820 int
7821 main ()
7822 {
7823
7824 ;
7825 return 0;
7826 }
7827 _ACEOF
7828 rm -f conftest.$ac_objext conftest$ac_exeext
7829 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7830 (eval $ac_link) 2>conftest.er1
7831 ac_status=$?
7832 grep -v '^ *+' conftest.er1 >conftest.err
7833 rm -f conftest.er1
7834 cat conftest.err >&5
7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7836 (exit $ac_status); } &&
7837 { ac_try='test -z "$ac_c_werror_flag"
7838 || test ! -s conftest.err'
7839 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7840 (eval $ac_try) 2>&5
7841 ac_status=$?
7842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7843 (exit $ac_status); }; } &&
7844 { ac_try='test -s conftest$ac_exeext'
7845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7846 (eval $ac_try) 2>&5
7847 ac_status=$?
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); }; }; then
7850
7851 lt_aix_libpath_sed='
7852 /Import File Strings/,/^$/ {
7853 /^0/ {
7854 s/^0 *\(.*\)$/\1/
7855 p
7856 }
7857 }'
7858 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7859 # Check for a 64-bit object if we didn't find anything.
7860 if test -z "$aix_libpath"; then
7861 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
7862 fi
7863 else
7864 echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7866
7867 fi
7868 rm -f conftest.err conftest.$ac_objext \
7869 conftest$ac_exeext conftest.$ac_ext
7870 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
7871
7872 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
7873 # Warning - without using the other run time loading flags,
7874 # -berok will link without error, but may produce a broken library.
7875 no_undefined_flag=' ${wl}-bernotok'
7876 allow_undefined_flag=' ${wl}-berok'
7877 # Exported symbols can be pulled into shared objects from archives
7878 whole_archive_flag_spec='$convenience'
7879 archive_cmds_need_lc=yes
7880 # This is similar to how AIX traditionally builds its shared libraries.
7881 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
7882 fi
7883 fi
7884 ;;
7885
7886 amigaos*)
7887 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)'
7888 hardcode_libdir_flag_spec='-L$libdir'
7889 hardcode_minus_L=yes
7890 # see comment about different semantics on the GNU ld section
7891 ld_shlibs=no
7892 ;;
7893
7894 bsdi[45]*)
7895 export_dynamic_flag_spec=-rdynamic
7896 ;;
7897
7898 cygwin* | mingw* | pw32*)
7899 # When not using gcc, we currently assume that we are using
7900 # Microsoft Visual C++.
7901 # hardcode_libdir_flag_spec is actually meaningless, as there is
7902 # no search path for DLLs.
7903 hardcode_libdir_flag_spec=' '
7904 allow_undefined_flag=unsupported
7905 # Tell ltmain to make .lib files, not .a files.
7906 libext=lib
7907 # Tell ltmain to make .dll files, not .so files.
7908 shrext_cmds=".dll"
7909 # FIXME: Setting linknames here is a bad hack.
7910 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
7911 # The linker will automatically build a .lib file if we build a DLL.
7912 old_archive_From_new_cmds='true'
7913 # FIXME: Should let the user specify the lib program.
7914 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
7915 fix_srcfile_path='`cygpath -w "$srcfile"`'
7916 enable_shared_with_static_runtimes=yes
7917 ;;
7918
7919 darwin* | rhapsody*)
7920 case $host_os in
7921 rhapsody* | darwin1.[012])
7922 allow_undefined_flag='${wl}-undefined ${wl}suppress'
7923 ;;
7924 *) # Darwin 1.3 on
7925 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
7926 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7927 else
7928 case ${MACOSX_DEPLOYMENT_TARGET} in
7929 10.[012])
7930 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
7931 ;;
7932 10.*)
7933 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
7934 ;;
7935 esac
7936 fi
7937 ;;
7938 esac
7939 archive_cmds_need_lc=no
7940 hardcode_direct=no
7941 hardcode_automatic=yes
7942 hardcode_shlibpath_var=unsupported
7943 whole_archive_flag_spec=''
7944 link_all_deplibs=yes
7945 if test "$GCC" = yes ; then
7946 output_verbose_link_cmd='echo'
7947 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
7948 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
7949 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
7950 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
7951 else
7952 case $cc_basename in
7953 xlc*)
7954 output_verbose_link_cmd='echo'
7955 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
7956 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
7957 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
7958 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7959 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
7960 ;;
7961 *)
7962 ld_shlibs=no
7963 ;;
7964 esac
7965 fi
7966 ;;
7967
7968 dgux*)
7969 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
7970 hardcode_libdir_flag_spec='-L$libdir'
7971 hardcode_shlibpath_var=no
7972 ;;
7973
7974 freebsd1*)
7975 ld_shlibs=no
7976 ;;
7977
7978 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
7979 # support. Future versions do this automatically, but an explicit c++rt0.o
7980 # does not break anything, and helps significantly (at the cost of a little
7981 # extra space).
7982 freebsd2.2*)
7983 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
7984 hardcode_libdir_flag_spec='-R$libdir'
7985 hardcode_direct=yes
7986 hardcode_shlibpath_var=no
7987 ;;
7988
7989 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
7990 freebsd2*)
7991 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
7992 hardcode_direct=yes
7993 hardcode_minus_L=yes
7994 hardcode_shlibpath_var=no
7995 ;;
7996
7997 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
7998 freebsd* | dragonfly*)
7999 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
8000 hardcode_libdir_flag_spec='-R$libdir'
8001 hardcode_direct=yes
8002 hardcode_shlibpath_var=no
8003 ;;
8004
8005 hpux9*)
8006 if test "$GCC" = yes; then
8007 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
8008 else
8009 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'
8010 fi
8011 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8012 hardcode_libdir_separator=:
8013 hardcode_direct=yes
8014
8015 # hardcode_minus_L: Not really in the search PATH,
8016 # but as the default location of the library.
8017 hardcode_minus_L=yes
8018 export_dynamic_flag_spec='${wl}-E'
8019 ;;
8020
8021 hpux10*)
8022 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8023 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8024 else
8025 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
8026 fi
8027 if test "$with_gnu_ld" = no; then
8028 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8029 hardcode_libdir_separator=:
8030
8031 hardcode_direct=yes
8032 export_dynamic_flag_spec='${wl}-E'
8033
8034 # hardcode_minus_L: Not really in the search PATH,
8035 # but as the default location of the library.
8036 hardcode_minus_L=yes
8037 fi
8038 ;;
8039
8040 hpux11*)
8041 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
8042 case $host_cpu in
8043 hppa*64*)
8044 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8045 ;;
8046 ia64*)
8047 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8048 ;;
8049 *)
8050 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8051 ;;
8052 esac
8053 else
8054 case $host_cpu in
8055 hppa*64*)
8056 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8057 ;;
8058 ia64*)
8059 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
8060 ;;
8061 *)
8062 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
8063 ;;
8064 esac
8065 fi
8066 if test "$with_gnu_ld" = no; then
8067 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
8068 hardcode_libdir_separator=:
8069
8070 case $host_cpu in
8071 hppa*64*|ia64*)
8072 hardcode_libdir_flag_spec_ld='+b $libdir'
8073 hardcode_direct=no
8074 hardcode_shlibpath_var=no
8075 ;;
8076 *)
8077 hardcode_direct=yes
8078 export_dynamic_flag_spec='${wl}-E'
8079
8080 # hardcode_minus_L: Not really in the search PATH,
8081 # but as the default location of the library.
8082 hardcode_minus_L=yes
8083 ;;
8084 esac
8085 fi
8086 ;;
8087
8088 irix5* | irix6* | nonstopux*)
8089 if test "$GCC" = yes; then
8090 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'
8091 else
8092 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'
8093 hardcode_libdir_flag_spec_ld='-rpath $libdir'
8094 fi
8095 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8096 hardcode_libdir_separator=:
8097 link_all_deplibs=yes
8098 ;;
8099
8100 netbsd*)
8101 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8102 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
8103 else
8104 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
8105 fi
8106 hardcode_libdir_flag_spec='-R$libdir'
8107 hardcode_direct=yes
8108 hardcode_shlibpath_var=no
8109 ;;
8110
8111 newsos6)
8112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8113 hardcode_direct=yes
8114 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8115 hardcode_libdir_separator=:
8116 hardcode_shlibpath_var=no
8117 ;;
8118
8119 openbsd*)
8120 if test -f /usr/libexec/ld.so; then
8121 hardcode_direct=yes
8122 hardcode_shlibpath_var=no
8123 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8124 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8125 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
8126 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8127 export_dynamic_flag_spec='${wl}-E'
8128 else
8129 case $host_os in
8130 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
8131 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8132 hardcode_libdir_flag_spec='-R$libdir'
8133 ;;
8134 *)
8135 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
8136 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
8137 ;;
8138 esac
8139 fi
8140 else
8141 ld_shlibs=no
8142 fi
8143 ;;
8144
8145 os2*)
8146 hardcode_libdir_flag_spec='-L$libdir'
8147 hardcode_minus_L=yes
8148 allow_undefined_flag=unsupported
8149 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'
8150 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
8151 ;;
8152
8153 osf3*)
8154 if test "$GCC" = yes; then
8155 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8156 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'
8157 else
8158 allow_undefined_flag=' -expect_unresolved \*'
8159 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'
8160 fi
8161 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8162 hardcode_libdir_separator=:
8163 ;;
8164
8165 osf4* | osf5*) # as osf3* with the addition of -msym flag
8166 if test "$GCC" = yes; then
8167 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
8168 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'
8169 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
8170 else
8171 allow_undefined_flag=' -expect_unresolved \*'
8172 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'
8173 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
8174 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
8175
8176 # Both c and cxx compiler support -rpath directly
8177 hardcode_libdir_flag_spec='-rpath $libdir'
8178 fi
8179 hardcode_libdir_separator=:
8180 ;;
8181
8182 solaris*)
8183 no_undefined_flag=' -z text'
8184 if test "$GCC" = yes; then
8185 wlarc='${wl}'
8186 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
8187 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8188 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
8189 else
8190 wlarc=''
8191 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
8192 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
8193 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
8194 fi
8195 hardcode_libdir_flag_spec='-R$libdir'
8196 hardcode_shlibpath_var=no
8197 case $host_os in
8198 solaris2.[0-5] | solaris2.[0-5].*) ;;
8199 *)
8200 # The compiler driver will combine and reorder linker options,
8201 # but understands `-z linker_flag'. GCC discards it without `$wl',
8202 # but is careful enough not to reorder.
8203 # Supported since Solaris 2.6 (maybe 2.5.1?)
8204 if test "$GCC" = yes; then
8205 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
8206 else
8207 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
8208 fi
8209 ;;
8210 esac
8211 link_all_deplibs=yes
8212 ;;
8213
8214 sunos4*)
8215 if test "x$host_vendor" = xsequent; then
8216 # Use $CC to link under sequent, because it throws in some extra .o
8217 # files that make .init and .fini sections work.
8218 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
8219 else
8220 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
8221 fi
8222 hardcode_libdir_flag_spec='-L$libdir'
8223 hardcode_direct=yes
8224 hardcode_minus_L=yes
8225 hardcode_shlibpath_var=no
8226 ;;
8227
8228 sysv4)
8229 case $host_vendor in
8230 sni)
8231 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8232 hardcode_direct=yes # is this really true???
8233 ;;
8234 siemens)
8235 ## LD is ld it makes a PLAMLIB
8236 ## CC just makes a GrossModule.
8237 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
8238 reload_cmds='$CC -r -o $output$reload_objs'
8239 hardcode_direct=no
8240 ;;
8241 motorola)
8242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8243 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
8244 ;;
8245 esac
8246 runpath_var='LD_RUN_PATH'
8247 hardcode_shlibpath_var=no
8248 ;;
8249
8250 sysv4.3*)
8251 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8252 hardcode_shlibpath_var=no
8253 export_dynamic_flag_spec='-Bexport'
8254 ;;
8255
8256 sysv4*MP*)
8257 if test -d /usr/nec; then
8258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8259 hardcode_shlibpath_var=no
8260 runpath_var=LD_RUN_PATH
8261 hardcode_runpath_var=yes
8262 ld_shlibs=yes
8263 fi
8264 ;;
8265
8266 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
8267 no_undefined_flag='${wl}-z,text'
8268 archive_cmds_need_lc=no
8269 hardcode_shlibpath_var=no
8270 runpath_var='LD_RUN_PATH'
8271
8272 if test "$GCC" = yes; then
8273 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8274 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8275 else
8276 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8277 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
8278 fi
8279 ;;
8280
8281 sysv5* | sco3.2v5* | sco5v6*)
8282 # Note: We can NOT use -z defs as we might desire, because we do not
8283 # link with -lc, and that would cause any symbols used from libc to
8284 # always be unresolved, which means just about no library would
8285 # ever link correctly. If we're not using GNU ld we use -z text
8286 # though, which does catch some bad symbols but isn't as heavy-handed
8287 # as -z defs.
8288 no_undefined_flag='${wl}-z,text'
8289 allow_undefined_flag='${wl}-z,nodefs'
8290 archive_cmds_need_lc=no
8291 hardcode_shlibpath_var=no
8292 hardcode_libdir_flag_spec='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
8293 hardcode_libdir_separator=':'
8294 link_all_deplibs=yes
8295 export_dynamic_flag_spec='${wl}-Bexport'
8296 runpath_var='LD_RUN_PATH'
8297
8298 if test "$GCC" = yes; then
8299 archive_cmds='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8300 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8301 else
8302 archive_cmds='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8303 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
8304 fi
8305 ;;
8306
8307 uts4*)
8308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
8309 hardcode_libdir_flag_spec='-L$libdir'
8310 hardcode_shlibpath_var=no
8311 ;;
8312
8313 *)
8314 ld_shlibs=no
8315 ;;
8316 esac
8317 fi
8318
8319 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
8320 echo "${ECHO_T}$ld_shlibs" >&6
8321 test "$ld_shlibs" = no && can_build_shared=no
8322
8323 #
8324 # Do we need to explicitly link libc?
8325 #
8326 case "x$archive_cmds_need_lc" in
8327 x|xyes)
8328 # Assume -lc should be added
8329 archive_cmds_need_lc=yes
8330
8331 if test "$enable_shared" = yes && test "$GCC" = yes; then
8332 case $archive_cmds in
8333 *'~'*)
8334 # FIXME: we may have to deal with multi-command sequences.
8335 ;;
8336 '$CC '*)
8337 # Test whether the compiler implicitly links with -lc since on some
8338 # systems, -lgcc has to come before -lc. If gcc already passes -lc
8339 # to ld, don't add -lc before -lgcc.
8340 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
8341 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
8342 $rm conftest*
8343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8344
8345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8346 (eval $ac_compile) 2>&5
8347 ac_status=$?
8348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8349 (exit $ac_status); } 2>conftest.err; then
8350 soname=conftest
8351 lib=conftest
8352 libobjs=conftest.$ac_objext
8353 deplibs=
8354 wl=$lt_prog_compiler_wl
8355 pic_flag=$lt_prog_compiler_pic
8356 compiler_flags=-v
8357 linker_flags=-v
8358 verstring=
8359 output_objdir=.
8360 libname=conftest
8361 lt_save_allow_undefined_flag=$allow_undefined_flag
8362 allow_undefined_flag=
8363 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
8364 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
8365 ac_status=$?
8366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8367 (exit $ac_status); }
8368 then
8369 archive_cmds_need_lc=no
8370 else
8371 archive_cmds_need_lc=yes
8372 fi
8373 allow_undefined_flag=$lt_save_allow_undefined_flag
8374 else
8375 cat conftest.err 1>&5
8376 fi
8377 $rm conftest*
8378 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
8379 echo "${ECHO_T}$archive_cmds_need_lc" >&6
8380 ;;
8381 esac
8382 fi
8383 ;;
8384 esac
8385
8386 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
8387 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
8388 library_names_spec=
8389 libname_spec='lib$name'
8390 soname_spec=
8391 shrext_cmds=".so"
8392 postinstall_cmds=
8393 postuninstall_cmds=
8394 finish_cmds=
8395 finish_eval=
8396 shlibpath_var=
8397 shlibpath_overrides_runpath=unknown
8398 version_type=none
8399 dynamic_linker="$host_os ld.so"
8400 sys_lib_dlsearch_path_spec="/lib /usr/lib"
8401
8402 if test "$GCC" = yes; then
8403 case $host_os in
8404 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
8405 *) lt_awk_arg="/^libraries:/" ;;
8406 esac
8407 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8408 if echo "$lt_search_path_spec" | grep ';' >/dev/null ; then
8409 # if the path contains ";" then we assume it to be the separator
8410 # otherwise default to the standard path separator (i.e. ":") - it is
8411 # assumed that no part of a normal pathname contains ";" but that should
8412 # okay in the real world where ";" in dirpaths is itself problematic.
8413 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
8414 else
8415 lt_search_path_spec=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8416 fi
8417 # Ok, now we have the path, separated by spaces, we can step through it
8418 # and add multilib dir if necessary.
8419 lt_tmp_lt_search_path_spec=
8420 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
8421 for lt_sys_path in $lt_search_path_spec; do
8422 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
8423 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
8424 else
8425 test -d "$lt_sys_path" && \
8426 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
8427 fi
8428 done
8429 lt_search_path_spec=`echo $lt_tmp_lt_search_path_spec | awk '
8430 BEGIN {RS=" "; FS="/|\n";} {
8431 lt_foo="";
8432 lt_count=0;
8433 for (lt_i = NF; lt_i > 0; lt_i--) {
8434 if ($lt_i != "" && $lt_i != ".") {
8435 if ($lt_i == "..") {
8436 lt_count++;
8437 } else {
8438 if (lt_count == 0) {
8439 lt_foo="/" $lt_i lt_foo;
8440 } else {
8441 lt_count--;
8442 }
8443 }
8444 }
8445 }
8446 if (lt_foo != "") { lt_freq[lt_foo]++; }
8447 if (lt_freq[lt_foo] == 1) { print lt_foo; }
8448 }'`
8449 sys_lib_search_path_spec=`echo $lt_search_path_spec`
8450 else
8451 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
8452 fi
8453 need_lib_prefix=unknown
8454 hardcode_into_libs=no
8455
8456 # when you set need_version to no, make sure it does not cause -set_version
8457 # flags to be left without arguments
8458 need_version=unknown
8459
8460 case $host_os in
8461 aix3*)
8462 version_type=linux
8463 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
8464 shlibpath_var=LIBPATH
8465
8466 # AIX 3 has no versioning support, so we append a major version to the name.
8467 soname_spec='${libname}${release}${shared_ext}$major'
8468 ;;
8469
8470 aix[4-9]*)
8471 version_type=linux
8472 need_lib_prefix=no
8473 need_version=no
8474 hardcode_into_libs=yes
8475 if test "$host_cpu" = ia64; then
8476 # AIX 5 supports IA64
8477 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
8478 shlibpath_var=LD_LIBRARY_PATH
8479 else
8480 # With GCC up to 2.95.x, collect2 would create an import file
8481 # for dependence libraries. The import file would start with
8482 # the line `#! .'. This would cause the generated library to
8483 # depend on `.', always an invalid library. This was fixed in
8484 # development snapshots of GCC prior to 3.0.
8485 case $host_os in
8486 aix4 | aix4.[01] | aix4.[01].*)
8487 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
8488 echo ' yes '
8489 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
8490 :
8491 else
8492 can_build_shared=no
8493 fi
8494 ;;
8495 esac
8496 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
8497 # soname into executable. Probably we can add versioning support to
8498 # collect2, so additional links can be useful in future.
8499 if test "$aix_use_runtimelinking" = yes; then
8500 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
8501 # instead of lib<name>.a to let people know that these are not
8502 # typical AIX shared libraries.
8503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8504 else
8505 # We preserve .a as extension for shared libraries through AIX4.2
8506 # and later when we are not doing run time linking.
8507 library_names_spec='${libname}${release}.a $libname.a'
8508 soname_spec='${libname}${release}${shared_ext}$major'
8509 fi
8510 shlibpath_var=LIBPATH
8511 fi
8512 ;;
8513
8514 amigaos*)
8515 library_names_spec='$libname.ixlibrary $libname.a'
8516 # Create ${libname}_ixlibrary.a entries in /sys/libs.
8517 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'
8518 ;;
8519
8520 beos*)
8521 library_names_spec='${libname}${shared_ext}'
8522 dynamic_linker="$host_os ld.so"
8523 shlibpath_var=LIBRARY_PATH
8524 ;;
8525
8526 bsdi[45]*)
8527 version_type=linux
8528 need_version=no
8529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8530 soname_spec='${libname}${release}${shared_ext}$major'
8531 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
8532 shlibpath_var=LD_LIBRARY_PATH
8533 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
8534 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
8535 # the default ld.so.conf also contains /usr/contrib/lib and
8536 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
8537 # libtool to hard-code these into programs
8538 ;;
8539
8540 cygwin* | mingw* | pw32*)
8541 version_type=windows
8542 shrext_cmds=".dll"
8543 need_version=no
8544 need_lib_prefix=no
8545
8546 case $GCC,$host_os in
8547 yes,cygwin* | yes,mingw* | yes,pw32*)
8548 library_names_spec='$libname.dll.a'
8549 # DLL is installed to $(libdir)/../bin by postinstall_cmds
8550 postinstall_cmds='base_file=`basename \${file}`~
8551 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
8552 dldir=$destdir/`dirname \$dlpath`~
8553 test -d \$dldir || mkdir -p \$dldir~
8554 $install_prog $dir/$dlname \$dldir/$dlname~
8555 chmod a+x \$dldir/$dlname'
8556 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
8557 dlpath=$dir/\$dldll~
8558 $rm \$dlpath'
8559 shlibpath_overrides_runpath=yes
8560
8561 case $host_os in
8562 cygwin*)
8563 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
8564 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8565 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
8566 ;;
8567 mingw*)
8568 # MinGW DLLs use traditional 'lib' prefix
8569 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8570 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
8571 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
8572 # It is most probably a Windows format PATH printed by
8573 # mingw gcc, but we are running on Cygwin. Gcc prints its search
8574 # path with ; separators, and with drive letters. We can handle the
8575 # drive letters (cygwin fileutils understands them), so leave them,
8576 # especially as we might pass files found there to a mingw objdump,
8577 # which wouldn't understand a cygwinified path. Ahh.
8578 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
8579 else
8580 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
8581 fi
8582 ;;
8583 pw32*)
8584 # pw32 DLLs use 'pw' prefix rather than 'lib'
8585 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
8586 ;;
8587 esac
8588 ;;
8589
8590 *)
8591 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
8592 ;;
8593 esac
8594 dynamic_linker='Win32 ld.exe'
8595 # FIXME: first we should search . and the directory the executable is in
8596 shlibpath_var=PATH
8597 ;;
8598
8599 darwin* | rhapsody*)
8600 dynamic_linker="$host_os dyld"
8601 version_type=darwin
8602 need_lib_prefix=no
8603 need_version=no
8604 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
8605 soname_spec='${libname}${release}${major}$shared_ext'
8606 shlibpath_overrides_runpath=yes
8607 shlibpath_var=DYLD_LIBRARY_PATH
8608 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
8609
8610 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
8611 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
8612 ;;
8613
8614 dgux*)
8615 version_type=linux
8616 need_lib_prefix=no
8617 need_version=no
8618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
8619 soname_spec='${libname}${release}${shared_ext}$major'
8620 shlibpath_var=LD_LIBRARY_PATH
8621 ;;
8622
8623 freebsd1*)
8624 dynamic_linker=no
8625 ;;
8626
8627 freebsd* | dragonfly*)
8628 # DragonFly does not have aout. When/if they implement a new
8629 # versioning mechanism, adjust this.
8630 if test -x /usr/bin/objformat; then
8631 objformat=`/usr/bin/objformat`
8632 else
8633 case $host_os in
8634 freebsd[123]*) objformat=aout ;;
8635 *) objformat=elf ;;
8636 esac
8637 fi
8638 version_type=freebsd-$objformat
8639 case $version_type in
8640 freebsd-elf*)
8641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8642 need_version=no
8643 need_lib_prefix=no
8644 ;;
8645 freebsd-*)
8646 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
8647 need_version=yes
8648 ;;
8649 esac
8650 shlibpath_var=LD_LIBRARY_PATH
8651 case $host_os in
8652 freebsd2*)
8653 shlibpath_overrides_runpath=yes
8654 ;;
8655 freebsd3.[01]* | freebsdelf3.[01]*)
8656 shlibpath_overrides_runpath=yes
8657 hardcode_into_libs=yes
8658 ;;
8659 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
8660 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
8661 shlibpath_overrides_runpath=no
8662 hardcode_into_libs=yes
8663 ;;
8664 *) # from 4.6 on, and DragonFly
8665 shlibpath_overrides_runpath=yes
8666 hardcode_into_libs=yes
8667 ;;
8668 esac
8669 ;;
8670
8671 gnu*)
8672 version_type=linux
8673 need_lib_prefix=no
8674 need_version=no
8675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
8676 soname_spec='${libname}${release}${shared_ext}$major'
8677 shlibpath_var=LD_LIBRARY_PATH
8678 hardcode_into_libs=yes
8679 ;;
8680
8681 hpux9* | hpux10* | hpux11*)
8682 # Give a soname corresponding to the major version so that dld.sl refuses to
8683 # link against other versions.
8684 version_type=sunos
8685 need_lib_prefix=no
8686 need_version=no
8687 case $host_cpu in
8688 ia64*)
8689 shrext_cmds='.so'
8690 hardcode_into_libs=yes
8691 dynamic_linker="$host_os dld.so"
8692 shlibpath_var=LD_LIBRARY_PATH
8693 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8695 soname_spec='${libname}${release}${shared_ext}$major'
8696 if test "X$HPUX_IA64_MODE" = X32; then
8697 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
8698 else
8699 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
8700 fi
8701 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8702 ;;
8703 hppa*64*)
8704 shrext_cmds='.sl'
8705 hardcode_into_libs=yes
8706 dynamic_linker="$host_os dld.sl"
8707 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
8708 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
8709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8710 soname_spec='${libname}${release}${shared_ext}$major'
8711 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
8712 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
8713 ;;
8714 *)
8715 shrext_cmds='.sl'
8716 dynamic_linker="$host_os dld.sl"
8717 shlibpath_var=SHLIB_PATH
8718 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
8719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8720 soname_spec='${libname}${release}${shared_ext}$major'
8721 ;;
8722 esac
8723 # HP-UX runs *really* slowly unless shared libraries are mode 555.
8724 postinstall_cmds='chmod 555 $lib'
8725 ;;
8726
8727 interix[3-9]*)
8728 version_type=linux
8729 need_lib_prefix=no
8730 need_version=no
8731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8732 soname_spec='${libname}${release}${shared_ext}$major'
8733 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
8734 shlibpath_var=LD_LIBRARY_PATH
8735 shlibpath_overrides_runpath=no
8736 hardcode_into_libs=yes
8737 ;;
8738
8739 irix5* | irix6* | nonstopux*)
8740 case $host_os in
8741 nonstopux*) version_type=nonstopux ;;
8742 *)
8743 if test "$lt_cv_prog_gnu_ld" = yes; then
8744 version_type=linux
8745 else
8746 version_type=irix
8747 fi ;;
8748 esac
8749 need_lib_prefix=no
8750 need_version=no
8751 soname_spec='${libname}${release}${shared_ext}$major'
8752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
8753 case $host_os in
8754 irix5* | nonstopux*)
8755 libsuff= shlibsuff=
8756 ;;
8757 *)
8758 case $LD in # libtool.m4 will add one of these switches to LD
8759 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
8760 libsuff= shlibsuff= libmagic=32-bit;;
8761 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
8762 libsuff=32 shlibsuff=N32 libmagic=N32;;
8763 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
8764 libsuff=64 shlibsuff=64 libmagic=64-bit;;
8765 *) libsuff= shlibsuff= libmagic=never-match;;
8766 esac
8767 ;;
8768 esac
8769 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
8770 shlibpath_overrides_runpath=no
8771 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8772 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8773 hardcode_into_libs=yes
8774 ;;
8775
8776 # No shared lib support for Linux oldld, aout, or coff.
8777 linux*oldld* | linux*aout* | linux*coff*)
8778 dynamic_linker=no
8779 ;;
8780
8781 # This must be Linux ELF.
8782 linux* | k*bsd*-gnu)
8783 version_type=linux
8784 need_lib_prefix=no
8785 need_version=no
8786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8787 soname_spec='${libname}${release}${shared_ext}$major'
8788 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
8789 shlibpath_var=LD_LIBRARY_PATH
8790 shlibpath_overrides_runpath=no
8791 # This implies no fast_install, which is unacceptable.
8792 # Some rework will be needed to allow for fast_install
8793 # before this can be enabled.
8794 hardcode_into_libs=yes
8795 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
8796 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
8797
8798 # Append ld.so.conf contents to the search path
8799 if test -f /etc/ld.so.conf; then
8800 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
8801 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
8802 fi
8803
8804 # We used to test for /lib/ld.so.1 and disable shared libraries on
8805 # powerpc, because MkLinux only supported shared libraries with the
8806 # GNU dynamic linker. Since this was broken with cross compilers,
8807 # most powerpc-linux boxes support dynamic linking these days and
8808 # people can always --disable-shared, the test was removed, and we
8809 # assume the GNU/Linux dynamic linker is in use.
8810 dynamic_linker='GNU/Linux ld.so'
8811 ;;
8812
8813 netbsd*)
8814 version_type=sunos
8815 need_lib_prefix=no
8816 need_version=no
8817 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8819 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8820 dynamic_linker='NetBSD (a.out) ld.so'
8821 else
8822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
8823 soname_spec='${libname}${release}${shared_ext}$major'
8824 dynamic_linker='NetBSD ld.elf_so'
8825 fi
8826 shlibpath_var=LD_LIBRARY_PATH
8827 shlibpath_overrides_runpath=yes
8828 hardcode_into_libs=yes
8829 ;;
8830
8831 newsos6)
8832 version_type=linux
8833 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8834 shlibpath_var=LD_LIBRARY_PATH
8835 shlibpath_overrides_runpath=yes
8836 ;;
8837
8838 nto-qnx*)
8839 version_type=linux
8840 need_lib_prefix=no
8841 need_version=no
8842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8843 soname_spec='${libname}${release}${shared_ext}$major'
8844 shlibpath_var=LD_LIBRARY_PATH
8845 shlibpath_overrides_runpath=yes
8846 ;;
8847
8848 openbsd*)
8849 version_type=sunos
8850 sys_lib_dlsearch_path_spec="/usr/lib"
8851 need_lib_prefix=no
8852 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
8853 case $host_os in
8854 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
8855 *) need_version=no ;;
8856 esac
8857 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8858 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
8859 shlibpath_var=LD_LIBRARY_PATH
8860 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8861 case $host_os in
8862 openbsd2.[89] | openbsd2.[89].*)
8863 shlibpath_overrides_runpath=no
8864 ;;
8865 *)
8866 shlibpath_overrides_runpath=yes
8867 ;;
8868 esac
8869 else
8870 shlibpath_overrides_runpath=yes
8871 fi
8872 ;;
8873
8874 os2*)
8875 libname_spec='$name'
8876 shrext_cmds=".dll"
8877 need_lib_prefix=no
8878 library_names_spec='$libname${shared_ext} $libname.a'
8879 dynamic_linker='OS/2 ld.exe'
8880 shlibpath_var=LIBPATH
8881 ;;
8882
8883 osf3* | osf4* | osf5*)
8884 version_type=osf
8885 need_lib_prefix=no
8886 need_version=no
8887 soname_spec='${libname}${release}${shared_ext}$major'
8888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8889 shlibpath_var=LD_LIBRARY_PATH
8890 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
8891 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
8892 ;;
8893
8894 rdos*)
8895 dynamic_linker=no
8896 ;;
8897
8898 solaris*)
8899 version_type=linux
8900 need_lib_prefix=no
8901 need_version=no
8902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8903 soname_spec='${libname}${release}${shared_ext}$major'
8904 shlibpath_var=LD_LIBRARY_PATH
8905 shlibpath_overrides_runpath=yes
8906 hardcode_into_libs=yes
8907 # ldd complains unless libraries are executable
8908 postinstall_cmds='chmod +x $lib'
8909 ;;
8910
8911 sunos4*)
8912 version_type=sunos
8913 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
8914 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
8915 shlibpath_var=LD_LIBRARY_PATH
8916 shlibpath_overrides_runpath=yes
8917 if test "$with_gnu_ld" = yes; then
8918 need_lib_prefix=no
8919 fi
8920 need_version=yes
8921 ;;
8922
8923 sysv4 | sysv4.3*)
8924 version_type=linux
8925 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8926 soname_spec='${libname}${release}${shared_ext}$major'
8927 shlibpath_var=LD_LIBRARY_PATH
8928 case $host_vendor in
8929 sni)
8930 shlibpath_overrides_runpath=no
8931 need_lib_prefix=no
8932 export_dynamic_flag_spec='${wl}-Blargedynsym'
8933 runpath_var=LD_RUN_PATH
8934 ;;
8935 siemens)
8936 need_lib_prefix=no
8937 ;;
8938 motorola)
8939 need_lib_prefix=no
8940 need_version=no
8941 shlibpath_overrides_runpath=no
8942 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
8943 ;;
8944 esac
8945 ;;
8946
8947 sysv4*MP*)
8948 if test -d /usr/nec ;then
8949 version_type=linux
8950 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
8951 soname_spec='$libname${shared_ext}.$major'
8952 shlibpath_var=LD_LIBRARY_PATH
8953 fi
8954 ;;
8955
8956 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8957 version_type=freebsd-elf
8958 need_lib_prefix=no
8959 need_version=no
8960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
8961 soname_spec='${libname}${release}${shared_ext}$major'
8962 shlibpath_var=LD_LIBRARY_PATH
8963 hardcode_into_libs=yes
8964 if test "$with_gnu_ld" = yes; then
8965 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
8966 shlibpath_overrides_runpath=no
8967 else
8968 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
8969 shlibpath_overrides_runpath=yes
8970 case $host_os in
8971 sco3.2v5*)
8972 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
8973 ;;
8974 esac
8975 fi
8976 sys_lib_dlsearch_path_spec='/usr/lib'
8977 ;;
8978
8979 uts4*)
8980 version_type=linux
8981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
8982 soname_spec='${libname}${release}${shared_ext}$major'
8983 shlibpath_var=LD_LIBRARY_PATH
8984 ;;
8985
8986 *)
8987 dynamic_linker=no
8988 ;;
8989 esac
8990 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
8991 echo "${ECHO_T}$dynamic_linker" >&6
8992 test "$dynamic_linker" = no && can_build_shared=no
8993
8994 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
8995 echo $ECHO_N "(cached) $ECHO_C" >&6
8996 else
8997 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
8998 fi
8999
9000 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
9001 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
9002 echo $ECHO_N "(cached) $ECHO_C" >&6
9003 else
9004 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
9005 fi
9006
9007 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
9008
9009 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9010 if test "$GCC" = yes; then
9011 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9012 fi
9013
9014 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
9015 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
9016 hardcode_action=
9017 if test -n "$hardcode_libdir_flag_spec" || \
9018 test -n "$runpath_var" || \
9019 test "X$hardcode_automatic" = "Xyes" ; then
9020
9021 # We can hardcode non-existant directories.
9022 if test "$hardcode_direct" != no &&
9023 # If the only mechanism to avoid hardcoding is shlibpath_var, we
9024 # have to relink, otherwise we might link with an installed library
9025 # when we should be linking with a yet-to-be-installed one
9026 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
9027 test "$hardcode_minus_L" != no; then
9028 # Linking always hardcodes the temporary library directory.
9029 hardcode_action=relink
9030 else
9031 # We can link without hardcoding, and we can hardcode nonexisting dirs.
9032 hardcode_action=immediate
9033 fi
9034 else
9035 # We cannot hardcode anything, or else we can only hardcode existing
9036 # directories.
9037 hardcode_action=unsupported
9038 fi
9039 echo "$as_me:$LINENO: result: $hardcode_action" >&5
9040 echo "${ECHO_T}$hardcode_action" >&6
9041
9042 if test "$hardcode_action" = relink; then
9043 # Fast installation is not supported
9044 enable_fast_install=no
9045 elif test "$shlibpath_overrides_runpath" = yes ||
9046 test "$enable_shared" = no; then
9047 # Fast installation is not necessary
9048 enable_fast_install=needless
9049 fi
9050
9051 striplib=
9052 old_striplib=
9053 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
9054 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
9055 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
9056 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
9057 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
9058 echo "$as_me:$LINENO: result: yes" >&5
9059 echo "${ECHO_T}yes" >&6
9060 else
9061 # FIXME - insert some real tests, host_os isn't really good enough
9062 case $host_os in
9063 darwin*)
9064 if test -n "$STRIP" ; then
9065 striplib="$STRIP -x"
9066 old_striplib="$STRIP -S"
9067 echo "$as_me:$LINENO: result: yes" >&5
9068 echo "${ECHO_T}yes" >&6
9069 else
9070 echo "$as_me:$LINENO: result: no" >&5
9071 echo "${ECHO_T}no" >&6
9072 fi
9073 ;;
9074 *)
9075 echo "$as_me:$LINENO: result: no" >&5
9076 echo "${ECHO_T}no" >&6
9077 ;;
9078 esac
9079 fi
9080
9081 if test "x$enable_dlopen" != xyes; then
9082 enable_dlopen=unknown
9083 enable_dlopen_self=unknown
9084 enable_dlopen_self_static=unknown
9085 else
9086 lt_cv_dlopen=no
9087 lt_cv_dlopen_libs=
9088
9089 case $host_os in
9090 beos*)
9091 lt_cv_dlopen="load_add_on"
9092 lt_cv_dlopen_libs=
9093 lt_cv_dlopen_self=yes
9094 ;;
9095
9096 mingw* | pw32*)
9097 lt_cv_dlopen="LoadLibrary"
9098 lt_cv_dlopen_libs=
9099 ;;
9100
9101 cygwin*)
9102 lt_cv_dlopen="dlopen"
9103 lt_cv_dlopen_libs=
9104 ;;
9105
9106 darwin*)
9107 # if libdl is installed we need to link against it
9108 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9109 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9110 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9111 echo $ECHO_N "(cached) $ECHO_C" >&6
9112 else
9113 ac_check_lib_save_LIBS=$LIBS
9114 LIBS="-ldl $LIBS"
9115 cat >conftest.$ac_ext <<_ACEOF
9116 /* confdefs.h. */
9117 _ACEOF
9118 cat confdefs.h >>conftest.$ac_ext
9119 cat >>conftest.$ac_ext <<_ACEOF
9120 /* end confdefs.h. */
9121
9122 /* Override any gcc2 internal prototype to avoid an error. */
9123 #ifdef __cplusplus
9124 extern "C"
9125 #endif
9126 /* We use char because int might match the return type of a gcc2
9127 builtin and then its argument prototype would still apply. */
9128 char dlopen ();
9129 int
9130 main ()
9131 {
9132 dlopen ();
9133 ;
9134 return 0;
9135 }
9136 _ACEOF
9137 rm -f conftest.$ac_objext conftest$ac_exeext
9138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9139 (eval $ac_link) 2>conftest.er1
9140 ac_status=$?
9141 grep -v '^ *+' conftest.er1 >conftest.err
9142 rm -f conftest.er1
9143 cat conftest.err >&5
9144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9145 (exit $ac_status); } &&
9146 { ac_try='test -z "$ac_c_werror_flag"
9147 || test ! -s conftest.err'
9148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9149 (eval $ac_try) 2>&5
9150 ac_status=$?
9151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9152 (exit $ac_status); }; } &&
9153 { ac_try='test -s conftest$ac_exeext'
9154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9155 (eval $ac_try) 2>&5
9156 ac_status=$?
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); }; }; then
9159 ac_cv_lib_dl_dlopen=yes
9160 else
9161 echo "$as_me: failed program was:" >&5
9162 sed 's/^/| /' conftest.$ac_ext >&5
9163
9164 ac_cv_lib_dl_dlopen=no
9165 fi
9166 rm -f conftest.err conftest.$ac_objext \
9167 conftest$ac_exeext conftest.$ac_ext
9168 LIBS=$ac_check_lib_save_LIBS
9169 fi
9170 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9171 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9172 if test $ac_cv_lib_dl_dlopen = yes; then
9173 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9174 else
9175
9176 lt_cv_dlopen="dyld"
9177 lt_cv_dlopen_libs=
9178 lt_cv_dlopen_self=yes
9179
9180 fi
9181
9182 ;;
9183
9184 *)
9185 echo "$as_me:$LINENO: checking for shl_load" >&5
9186 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
9187 if test "${ac_cv_func_shl_load+set}" = set; then
9188 echo $ECHO_N "(cached) $ECHO_C" >&6
9189 else
9190 cat >conftest.$ac_ext <<_ACEOF
9191 /* confdefs.h. */
9192 _ACEOF
9193 cat confdefs.h >>conftest.$ac_ext
9194 cat >>conftest.$ac_ext <<_ACEOF
9195 /* end confdefs.h. */
9196 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
9197 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9198 #define shl_load innocuous_shl_load
9199
9200 /* System header to define __stub macros and hopefully few prototypes,
9201 which can conflict with char shl_load (); below.
9202 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9203 <limits.h> exists even on freestanding compilers. */
9204
9205 #ifdef __STDC__
9206 # include <limits.h>
9207 #else
9208 # include <assert.h>
9209 #endif
9210
9211 #undef shl_load
9212
9213 /* Override any gcc2 internal prototype to avoid an error. */
9214 #ifdef __cplusplus
9215 extern "C"
9216 {
9217 #endif
9218 /* We use char because int might match the return type of a gcc2
9219 builtin and then its argument prototype would still apply. */
9220 char shl_load ();
9221 /* The GNU C library defines this for functions which it implements
9222 to always fail with ENOSYS. Some functions are actually named
9223 something starting with __ and the normal name is an alias. */
9224 #if defined (__stub_shl_load) || defined (__stub___shl_load)
9225 choke me
9226 #else
9227 char (*f) () = shl_load;
9228 #endif
9229 #ifdef __cplusplus
9230 }
9231 #endif
9232
9233 int
9234 main ()
9235 {
9236 return f != shl_load;
9237 ;
9238 return 0;
9239 }
9240 _ACEOF
9241 rm -f conftest.$ac_objext conftest$ac_exeext
9242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9243 (eval $ac_link) 2>conftest.er1
9244 ac_status=$?
9245 grep -v '^ *+' conftest.er1 >conftest.err
9246 rm -f conftest.er1
9247 cat conftest.err >&5
9248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9249 (exit $ac_status); } &&
9250 { ac_try='test -z "$ac_c_werror_flag"
9251 || test ! -s conftest.err'
9252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9253 (eval $ac_try) 2>&5
9254 ac_status=$?
9255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9256 (exit $ac_status); }; } &&
9257 { ac_try='test -s conftest$ac_exeext'
9258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9259 (eval $ac_try) 2>&5
9260 ac_status=$?
9261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9262 (exit $ac_status); }; }; then
9263 ac_cv_func_shl_load=yes
9264 else
9265 echo "$as_me: failed program was:" >&5
9266 sed 's/^/| /' conftest.$ac_ext >&5
9267
9268 ac_cv_func_shl_load=no
9269 fi
9270 rm -f conftest.err conftest.$ac_objext \
9271 conftest$ac_exeext conftest.$ac_ext
9272 fi
9273 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
9274 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
9275 if test $ac_cv_func_shl_load = yes; then
9276 lt_cv_dlopen="shl_load"
9277 else
9278 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
9279 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
9280 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
9281 echo $ECHO_N "(cached) $ECHO_C" >&6
9282 else
9283 ac_check_lib_save_LIBS=$LIBS
9284 LIBS="-ldld $LIBS"
9285 cat >conftest.$ac_ext <<_ACEOF
9286 /* confdefs.h. */
9287 _ACEOF
9288 cat confdefs.h >>conftest.$ac_ext
9289 cat >>conftest.$ac_ext <<_ACEOF
9290 /* end confdefs.h. */
9291
9292 /* Override any gcc2 internal prototype to avoid an error. */
9293 #ifdef __cplusplus
9294 extern "C"
9295 #endif
9296 /* We use char because int might match the return type of a gcc2
9297 builtin and then its argument prototype would still apply. */
9298 char shl_load ();
9299 int
9300 main ()
9301 {
9302 shl_load ();
9303 ;
9304 return 0;
9305 }
9306 _ACEOF
9307 rm -f conftest.$ac_objext conftest$ac_exeext
9308 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9309 (eval $ac_link) 2>conftest.er1
9310 ac_status=$?
9311 grep -v '^ *+' conftest.er1 >conftest.err
9312 rm -f conftest.er1
9313 cat conftest.err >&5
9314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9315 (exit $ac_status); } &&
9316 { ac_try='test -z "$ac_c_werror_flag"
9317 || test ! -s conftest.err'
9318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9319 (eval $ac_try) 2>&5
9320 ac_status=$?
9321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9322 (exit $ac_status); }; } &&
9323 { ac_try='test -s conftest$ac_exeext'
9324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9325 (eval $ac_try) 2>&5
9326 ac_status=$?
9327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9328 (exit $ac_status); }; }; then
9329 ac_cv_lib_dld_shl_load=yes
9330 else
9331 echo "$as_me: failed program was:" >&5
9332 sed 's/^/| /' conftest.$ac_ext >&5
9333
9334 ac_cv_lib_dld_shl_load=no
9335 fi
9336 rm -f conftest.err conftest.$ac_objext \
9337 conftest$ac_exeext conftest.$ac_ext
9338 LIBS=$ac_check_lib_save_LIBS
9339 fi
9340 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
9341 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
9342 if test $ac_cv_lib_dld_shl_load = yes; then
9343 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
9344 else
9345 echo "$as_me:$LINENO: checking for dlopen" >&5
9346 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
9347 if test "${ac_cv_func_dlopen+set}" = set; then
9348 echo $ECHO_N "(cached) $ECHO_C" >&6
9349 else
9350 cat >conftest.$ac_ext <<_ACEOF
9351 /* confdefs.h. */
9352 _ACEOF
9353 cat confdefs.h >>conftest.$ac_ext
9354 cat >>conftest.$ac_ext <<_ACEOF
9355 /* end confdefs.h. */
9356 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
9357 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9358 #define dlopen innocuous_dlopen
9359
9360 /* System header to define __stub macros and hopefully few prototypes,
9361 which can conflict with char dlopen (); below.
9362 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9363 <limits.h> exists even on freestanding compilers. */
9364
9365 #ifdef __STDC__
9366 # include <limits.h>
9367 #else
9368 # include <assert.h>
9369 #endif
9370
9371 #undef dlopen
9372
9373 /* Override any gcc2 internal prototype to avoid an error. */
9374 #ifdef __cplusplus
9375 extern "C"
9376 {
9377 #endif
9378 /* We use char because int might match the return type of a gcc2
9379 builtin and then its argument prototype would still apply. */
9380 char dlopen ();
9381 /* The GNU C library defines this for functions which it implements
9382 to always fail with ENOSYS. Some functions are actually named
9383 something starting with __ and the normal name is an alias. */
9384 #if defined (__stub_dlopen) || defined (__stub___dlopen)
9385 choke me
9386 #else
9387 char (*f) () = dlopen;
9388 #endif
9389 #ifdef __cplusplus
9390 }
9391 #endif
9392
9393 int
9394 main ()
9395 {
9396 return f != dlopen;
9397 ;
9398 return 0;
9399 }
9400 _ACEOF
9401 rm -f conftest.$ac_objext conftest$ac_exeext
9402 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9403 (eval $ac_link) 2>conftest.er1
9404 ac_status=$?
9405 grep -v '^ *+' conftest.er1 >conftest.err
9406 rm -f conftest.er1
9407 cat conftest.err >&5
9408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9409 (exit $ac_status); } &&
9410 { ac_try='test -z "$ac_c_werror_flag"
9411 || test ! -s conftest.err'
9412 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9413 (eval $ac_try) 2>&5
9414 ac_status=$?
9415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9416 (exit $ac_status); }; } &&
9417 { ac_try='test -s conftest$ac_exeext'
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 ac_cv_func_dlopen=yes
9424 else
9425 echo "$as_me: failed program was:" >&5
9426 sed 's/^/| /' conftest.$ac_ext >&5
9427
9428 ac_cv_func_dlopen=no
9429 fi
9430 rm -f conftest.err conftest.$ac_objext \
9431 conftest$ac_exeext conftest.$ac_ext
9432 fi
9433 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
9434 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
9435 if test $ac_cv_func_dlopen = yes; then
9436 lt_cv_dlopen="dlopen"
9437 else
9438 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
9439 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
9440 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
9441 echo $ECHO_N "(cached) $ECHO_C" >&6
9442 else
9443 ac_check_lib_save_LIBS=$LIBS
9444 LIBS="-ldl $LIBS"
9445 cat >conftest.$ac_ext <<_ACEOF
9446 /* confdefs.h. */
9447 _ACEOF
9448 cat confdefs.h >>conftest.$ac_ext
9449 cat >>conftest.$ac_ext <<_ACEOF
9450 /* end confdefs.h. */
9451
9452 /* Override any gcc2 internal prototype to avoid an error. */
9453 #ifdef __cplusplus
9454 extern "C"
9455 #endif
9456 /* We use char because int might match the return type of a gcc2
9457 builtin and then its argument prototype would still apply. */
9458 char dlopen ();
9459 int
9460 main ()
9461 {
9462 dlopen ();
9463 ;
9464 return 0;
9465 }
9466 _ACEOF
9467 rm -f conftest.$ac_objext conftest$ac_exeext
9468 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9469 (eval $ac_link) 2>conftest.er1
9470 ac_status=$?
9471 grep -v '^ *+' conftest.er1 >conftest.err
9472 rm -f conftest.er1
9473 cat conftest.err >&5
9474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9475 (exit $ac_status); } &&
9476 { ac_try='test -z "$ac_c_werror_flag"
9477 || test ! -s conftest.err'
9478 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9479 (eval $ac_try) 2>&5
9480 ac_status=$?
9481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9482 (exit $ac_status); }; } &&
9483 { ac_try='test -s conftest$ac_exeext'
9484 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9485 (eval $ac_try) 2>&5
9486 ac_status=$?
9487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9488 (exit $ac_status); }; }; then
9489 ac_cv_lib_dl_dlopen=yes
9490 else
9491 echo "$as_me: failed program was:" >&5
9492 sed 's/^/| /' conftest.$ac_ext >&5
9493
9494 ac_cv_lib_dl_dlopen=no
9495 fi
9496 rm -f conftest.err conftest.$ac_objext \
9497 conftest$ac_exeext conftest.$ac_ext
9498 LIBS=$ac_check_lib_save_LIBS
9499 fi
9500 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
9501 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
9502 if test $ac_cv_lib_dl_dlopen = yes; then
9503 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
9504 else
9505 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
9506 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
9507 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
9508 echo $ECHO_N "(cached) $ECHO_C" >&6
9509 else
9510 ac_check_lib_save_LIBS=$LIBS
9511 LIBS="-lsvld $LIBS"
9512 cat >conftest.$ac_ext <<_ACEOF
9513 /* confdefs.h. */
9514 _ACEOF
9515 cat confdefs.h >>conftest.$ac_ext
9516 cat >>conftest.$ac_ext <<_ACEOF
9517 /* end confdefs.h. */
9518
9519 /* Override any gcc2 internal prototype to avoid an error. */
9520 #ifdef __cplusplus
9521 extern "C"
9522 #endif
9523 /* We use char because int might match the return type of a gcc2
9524 builtin and then its argument prototype would still apply. */
9525 char dlopen ();
9526 int
9527 main ()
9528 {
9529 dlopen ();
9530 ;
9531 return 0;
9532 }
9533 _ACEOF
9534 rm -f conftest.$ac_objext conftest$ac_exeext
9535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9536 (eval $ac_link) 2>conftest.er1
9537 ac_status=$?
9538 grep -v '^ *+' conftest.er1 >conftest.err
9539 rm -f conftest.er1
9540 cat conftest.err >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } &&
9543 { ac_try='test -z "$ac_c_werror_flag"
9544 || test ! -s conftest.err'
9545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9546 (eval $ac_try) 2>&5
9547 ac_status=$?
9548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9549 (exit $ac_status); }; } &&
9550 { ac_try='test -s conftest$ac_exeext'
9551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9552 (eval $ac_try) 2>&5
9553 ac_status=$?
9554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555 (exit $ac_status); }; }; then
9556 ac_cv_lib_svld_dlopen=yes
9557 else
9558 echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9560
9561 ac_cv_lib_svld_dlopen=no
9562 fi
9563 rm -f conftest.err conftest.$ac_objext \
9564 conftest$ac_exeext conftest.$ac_ext
9565 LIBS=$ac_check_lib_save_LIBS
9566 fi
9567 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
9568 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
9569 if test $ac_cv_lib_svld_dlopen = yes; then
9570 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
9571 else
9572 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
9573 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
9574 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9576 else
9577 ac_check_lib_save_LIBS=$LIBS
9578 LIBS="-ldld $LIBS"
9579 cat >conftest.$ac_ext <<_ACEOF
9580 /* confdefs.h. */
9581 _ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9585
9586 /* Override any gcc2 internal prototype to avoid an error. */
9587 #ifdef __cplusplus
9588 extern "C"
9589 #endif
9590 /* We use char because int might match the return type of a gcc2
9591 builtin and then its argument prototype would still apply. */
9592 char dld_link ();
9593 int
9594 main ()
9595 {
9596 dld_link ();
9597 ;
9598 return 0;
9599 }
9600 _ACEOF
9601 rm -f conftest.$ac_objext conftest$ac_exeext
9602 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9603 (eval $ac_link) 2>conftest.er1
9604 ac_status=$?
9605 grep -v '^ *+' conftest.er1 >conftest.err
9606 rm -f conftest.er1
9607 cat conftest.err >&5
9608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9609 (exit $ac_status); } &&
9610 { ac_try='test -z "$ac_c_werror_flag"
9611 || test ! -s conftest.err'
9612 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9613 (eval $ac_try) 2>&5
9614 ac_status=$?
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); }; } &&
9617 { ac_try='test -s conftest$ac_exeext'
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_lib_dld_dld_link=yes
9624 else
9625 echo "$as_me: failed program was:" >&5
9626 sed 's/^/| /' conftest.$ac_ext >&5
9627
9628 ac_cv_lib_dld_dld_link=no
9629 fi
9630 rm -f conftest.err conftest.$ac_objext \
9631 conftest$ac_exeext conftest.$ac_ext
9632 LIBS=$ac_check_lib_save_LIBS
9633 fi
9634 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
9635 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
9636 if test $ac_cv_lib_dld_dld_link = yes; then
9637 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
9638 fi
9639
9640
9641 fi
9642
9643
9644 fi
9645
9646
9647 fi
9648
9649
9650 fi
9651
9652
9653 fi
9654
9655 ;;
9656 esac
9657
9658 if test "x$lt_cv_dlopen" != xno; then
9659 enable_dlopen=yes
9660 else
9661 enable_dlopen=no
9662 fi
9663
9664 case $lt_cv_dlopen in
9665 dlopen)
9666 save_CPPFLAGS="$CPPFLAGS"
9667 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
9668
9669 save_LDFLAGS="$LDFLAGS"
9670 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
9671
9672 save_LIBS="$LIBS"
9673 LIBS="$lt_cv_dlopen_libs $LIBS"
9674
9675 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
9676 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
9677 if test "${lt_cv_dlopen_self+set}" = set; then
9678 echo $ECHO_N "(cached) $ECHO_C" >&6
9679 else
9680 if test "$cross_compiling" = yes; then :
9681 lt_cv_dlopen_self=cross
9682 else
9683 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9684 lt_status=$lt_dlunknown
9685 cat > conftest.$ac_ext <<EOF
9686 #line 9686 "configure"
9687 #include "confdefs.h"
9688
9689 #if HAVE_DLFCN_H
9690 #include <dlfcn.h>
9691 #endif
9692
9693 #include <stdio.h>
9694
9695 #ifdef RTLD_GLOBAL
9696 # define LT_DLGLOBAL RTLD_GLOBAL
9697 #else
9698 # ifdef DL_GLOBAL
9699 # define LT_DLGLOBAL DL_GLOBAL
9700 # else
9701 # define LT_DLGLOBAL 0
9702 # endif
9703 #endif
9704
9705 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9706 find out it does not work in some platform. */
9707 #ifndef LT_DLLAZY_OR_NOW
9708 # ifdef RTLD_LAZY
9709 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9710 # else
9711 # ifdef DL_LAZY
9712 # define LT_DLLAZY_OR_NOW DL_LAZY
9713 # else
9714 # ifdef RTLD_NOW
9715 # define LT_DLLAZY_OR_NOW RTLD_NOW
9716 # else
9717 # ifdef DL_NOW
9718 # define LT_DLLAZY_OR_NOW DL_NOW
9719 # else
9720 # define LT_DLLAZY_OR_NOW 0
9721 # endif
9722 # endif
9723 # endif
9724 # endif
9725 #endif
9726
9727 #ifdef __cplusplus
9728 extern "C" void exit (int);
9729 #endif
9730
9731 void fnord() { int i=42;}
9732 int main ()
9733 {
9734 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9735 int status = $lt_dlunknown;
9736
9737 if (self)
9738 {
9739 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9740 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9741 /* dlclose (self); */
9742 }
9743 else
9744 puts (dlerror ());
9745
9746 exit (status);
9747 }
9748 EOF
9749 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9750 (eval $ac_link) 2>&5
9751 ac_status=$?
9752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9753 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9754 (./conftest; exit; ) >&5 2>/dev/null
9755 lt_status=$?
9756 case x$lt_status in
9757 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
9758 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
9759 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
9760 esac
9761 else :
9762 # compilation failed
9763 lt_cv_dlopen_self=no
9764 fi
9765 fi
9766 rm -fr conftest*
9767
9768
9769 fi
9770 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
9771 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
9772
9773 if test "x$lt_cv_dlopen_self" = xyes; then
9774 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
9775 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
9776 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
9777 if test "${lt_cv_dlopen_self_static+set}" = set; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 else
9780 if test "$cross_compiling" = yes; then :
9781 lt_cv_dlopen_self_static=cross
9782 else
9783 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
9784 lt_status=$lt_dlunknown
9785 cat > conftest.$ac_ext <<EOF
9786 #line 9786 "configure"
9787 #include "confdefs.h"
9788
9789 #if HAVE_DLFCN_H
9790 #include <dlfcn.h>
9791 #endif
9792
9793 #include <stdio.h>
9794
9795 #ifdef RTLD_GLOBAL
9796 # define LT_DLGLOBAL RTLD_GLOBAL
9797 #else
9798 # ifdef DL_GLOBAL
9799 # define LT_DLGLOBAL DL_GLOBAL
9800 # else
9801 # define LT_DLGLOBAL 0
9802 # endif
9803 #endif
9804
9805 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
9806 find out it does not work in some platform. */
9807 #ifndef LT_DLLAZY_OR_NOW
9808 # ifdef RTLD_LAZY
9809 # define LT_DLLAZY_OR_NOW RTLD_LAZY
9810 # else
9811 # ifdef DL_LAZY
9812 # define LT_DLLAZY_OR_NOW DL_LAZY
9813 # else
9814 # ifdef RTLD_NOW
9815 # define LT_DLLAZY_OR_NOW RTLD_NOW
9816 # else
9817 # ifdef DL_NOW
9818 # define LT_DLLAZY_OR_NOW DL_NOW
9819 # else
9820 # define LT_DLLAZY_OR_NOW 0
9821 # endif
9822 # endif
9823 # endif
9824 # endif
9825 #endif
9826
9827 #ifdef __cplusplus
9828 extern "C" void exit (int);
9829 #endif
9830
9831 void fnord() { int i=42;}
9832 int main ()
9833 {
9834 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
9835 int status = $lt_dlunknown;
9836
9837 if (self)
9838 {
9839 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
9840 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
9841 /* dlclose (self); */
9842 }
9843 else
9844 puts (dlerror ());
9845
9846 exit (status);
9847 }
9848 EOF
9849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9850 (eval $ac_link) 2>&5
9851 ac_status=$?
9852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9853 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
9854 (./conftest; exit; ) >&5 2>/dev/null
9855 lt_status=$?
9856 case x$lt_status in
9857 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
9858 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
9859 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
9860 esac
9861 else :
9862 # compilation failed
9863 lt_cv_dlopen_self_static=no
9864 fi
9865 fi
9866 rm -fr conftest*
9867
9868
9869 fi
9870 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
9871 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
9872 fi
9873
9874 CPPFLAGS="$save_CPPFLAGS"
9875 LDFLAGS="$save_LDFLAGS"
9876 LIBS="$save_LIBS"
9877 ;;
9878 esac
9879
9880 case $lt_cv_dlopen_self in
9881 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
9882 *) enable_dlopen_self=unknown ;;
9883 esac
9884
9885 case $lt_cv_dlopen_self_static in
9886 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
9887 *) enable_dlopen_self_static=unknown ;;
9888 esac
9889 fi
9890
9891
9892 # Report which library types will actually be built
9893 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
9894 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
9895 echo "$as_me:$LINENO: result: $can_build_shared" >&5
9896 echo "${ECHO_T}$can_build_shared" >&6
9897
9898 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
9899 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
9900 test "$can_build_shared" = "no" && enable_shared=no
9901
9902 # On AIX, shared libraries and static libraries use the same namespace, and
9903 # are all built from PIC.
9904 case $host_os in
9905 aix3*)
9906 test "$enable_shared" = yes && enable_static=no
9907 if test -n "$RANLIB"; then
9908 archive_cmds="$archive_cmds~\$RANLIB \$lib"
9909 postinstall_cmds='$RANLIB $lib'
9910 fi
9911 ;;
9912
9913 aix[4-9]*)
9914 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
9915 test "$enable_shared" = yes && enable_static=no
9916 fi
9917 ;;
9918 esac
9919 echo "$as_me:$LINENO: result: $enable_shared" >&5
9920 echo "${ECHO_T}$enable_shared" >&6
9921
9922 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
9923 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
9924 # Make sure either enable_shared or enable_static is yes.
9925 test "$enable_shared" = yes || enable_static=yes
9926 echo "$as_me:$LINENO: result: $enable_static" >&5
9927 echo "${ECHO_T}$enable_static" >&6
9928
9929 # The else clause should only fire when bootstrapping the
9930 # libtool distribution, otherwise you forgot to ship ltmain.sh
9931 # with your package, and you will get complaints that there are
9932 # no rules to generate ltmain.sh.
9933 if test -f "$ltmain"; then
9934 # See if we are running on zsh, and set the options which allow our commands through
9935 # without removal of \ escapes.
9936 if test -n "${ZSH_VERSION+set}" ; then
9937 setopt NO_GLOB_SUBST
9938 fi
9939 # Now quote all the things that may contain metacharacters while being
9940 # careful not to overquote the AC_SUBSTed values. We take copies of the
9941 # variables and quote the copies for generation of the libtool script.
9942 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
9943 SED SHELL STRIP \
9944 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
9945 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
9946 deplibs_check_method reload_flag reload_cmds need_locks \
9947 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
9948 lt_cv_sys_global_symbol_to_c_name_address \
9949 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
9950 old_postinstall_cmds old_postuninstall_cmds \
9951 compiler \
9952 CC \
9953 LD \
9954 lt_prog_compiler_wl \
9955 lt_prog_compiler_pic \
9956 lt_prog_compiler_static \
9957 lt_prog_compiler_no_builtin_flag \
9958 export_dynamic_flag_spec \
9959 thread_safe_flag_spec \
9960 whole_archive_flag_spec \
9961 enable_shared_with_static_runtimes \
9962 old_archive_cmds \
9963 old_archive_from_new_cmds \
9964 predep_objects \
9965 postdep_objects \
9966 predeps \
9967 postdeps \
9968 compiler_lib_search_path \
9969 compiler_lib_search_dirs \
9970 archive_cmds \
9971 archive_expsym_cmds \
9972 postinstall_cmds \
9973 postuninstall_cmds \
9974 old_archive_from_expsyms_cmds \
9975 allow_undefined_flag \
9976 no_undefined_flag \
9977 export_symbols_cmds \
9978 hardcode_libdir_flag_spec \
9979 hardcode_libdir_flag_spec_ld \
9980 hardcode_libdir_separator \
9981 hardcode_automatic \
9982 module_cmds \
9983 module_expsym_cmds \
9984 lt_cv_prog_compiler_c_o \
9985 fix_srcfile_path \
9986 exclude_expsyms \
9987 include_expsyms; do
9988
9989 case $var in
9990 old_archive_cmds | \
9991 old_archive_from_new_cmds | \
9992 archive_cmds | \
9993 archive_expsym_cmds | \
9994 module_cmds | \
9995 module_expsym_cmds | \
9996 old_archive_from_expsyms_cmds | \
9997 export_symbols_cmds | \
9998 extract_expsyms_cmds | reload_cmds | finish_cmds | \
9999 postinstall_cmds | postuninstall_cmds | \
10000 old_postinstall_cmds | old_postuninstall_cmds | \
10001 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
10002 # Double-quote double-evaled strings.
10003 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
10004 ;;
10005 *)
10006 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
10007 ;;
10008 esac
10009 done
10010
10011 case $lt_echo in
10012 *'\$0 --fallback-echo"')
10013 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
10014 ;;
10015 esac
10016
10017 cfgfile="${ofile}T"
10018 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
10019 $rm -f "$cfgfile"
10020 { echo "$as_me:$LINENO: creating $ofile" >&5
10021 echo "$as_me: creating $ofile" >&6;}
10022
10023 cat <<__EOF__ >> "$cfgfile"
10024 #! $SHELL
10025
10026 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
10027 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
10028 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
10029 #
10030 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008
10031 # Free Software Foundation, Inc.
10032 #
10033 # This file is part of GNU Libtool:
10034 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
10035 #
10036 # This program is free software; you can redistribute it and/or modify
10037 # it under the terms of the GNU General Public License as published by
10038 # the Free Software Foundation; either version 2 of the License, or
10039 # (at your option) any later version.
10040 #
10041 # This program is distributed in the hope that it will be useful, but
10042 # WITHOUT ANY WARRANTY; without even the implied warranty of
10043 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
10044 # General Public License for more details.
10045 #
10046 # You should have received a copy of the GNU General Public License
10047 # along with this program; if not, write to the Free Software
10048 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
10049 #
10050 # As a special exception to the GNU General Public License, if you
10051 # distribute this file as part of a program that contains a
10052 # configuration script generated by Autoconf, you may include it under
10053 # the same distribution terms that you use for the rest of that program.
10054
10055 # A sed program that does not truncate output.
10056 SED=$lt_SED
10057
10058 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
10059 Xsed="$SED -e 1s/^X//"
10060
10061 # The HP-UX ksh and POSIX shell print the target directory to stdout
10062 # if CDPATH is set.
10063 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
10064
10065 # The names of the tagged configurations supported by this script.
10066 available_tags=
10067
10068 # ### BEGIN LIBTOOL CONFIG
10069
10070 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
10071
10072 # Shell to use when invoking shell scripts.
10073 SHELL=$lt_SHELL
10074
10075 # Whether or not to build shared libraries.
10076 build_libtool_libs=$enable_shared
10077
10078 # Whether or not to build static libraries.
10079 build_old_libs=$enable_static
10080
10081 # Whether or not to add -lc for building shared libraries.
10082 build_libtool_need_lc=$archive_cmds_need_lc
10083
10084 # Whether or not to disallow shared libs when runtime libs are static
10085 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
10086
10087 # Whether or not to optimize for fast installation.
10088 fast_install=$enable_fast_install
10089
10090 # The host system.
10091 host_alias=$host_alias
10092 host=$host
10093 host_os=$host_os
10094
10095 # The build system.
10096 build_alias=$build_alias
10097 build=$build
10098 build_os=$build_os
10099
10100 # An echo program that does not interpret backslashes.
10101 echo=$lt_echo
10102
10103 # The archiver.
10104 AR=$lt_AR
10105 AR_FLAGS=$lt_AR_FLAGS
10106
10107 # A C compiler.
10108 LTCC=$lt_LTCC
10109
10110 # LTCC compiler flags.
10111 LTCFLAGS=$lt_LTCFLAGS
10112
10113 # A language-specific compiler.
10114 CC=$lt_compiler
10115
10116 # Is the compiler the GNU C compiler?
10117 with_gcc=$GCC
10118
10119 # An ERE matcher.
10120 EGREP=$lt_EGREP
10121
10122 # The linker used to build libraries.
10123 LD=$lt_LD
10124
10125 # Whether we need hard or soft links.
10126 LN_S=$lt_LN_S
10127
10128 # A BSD-compatible nm program.
10129 NM=$lt_NM
10130
10131 # A symbol stripping program
10132 STRIP=$lt_STRIP
10133
10134 # Used to examine libraries when file_magic_cmd begins "file"
10135 MAGIC_CMD=$MAGIC_CMD
10136
10137 # Used on cygwin: DLL creation program.
10138 DLLTOOL="$DLLTOOL"
10139
10140 # Used on cygwin: object dumper.
10141 OBJDUMP="$OBJDUMP"
10142
10143 # Used on cygwin: assembler.
10144 AS="$AS"
10145
10146 # The name of the directory that contains temporary libtool files.
10147 objdir=$objdir
10148
10149 # How to create reloadable object files.
10150 reload_flag=$lt_reload_flag
10151 reload_cmds=$lt_reload_cmds
10152
10153 # How to pass a linker flag through the compiler.
10154 wl=$lt_lt_prog_compiler_wl
10155
10156 # Object file suffix (normally "o").
10157 objext="$ac_objext"
10158
10159 # Old archive suffix (normally "a").
10160 libext="$libext"
10161
10162 # Shared library suffix (normally ".so").
10163 shrext_cmds='$shrext_cmds'
10164
10165 # Executable file suffix (normally "").
10166 exeext="$exeext"
10167
10168 # Additional compiler flags for building library objects.
10169 pic_flag=$lt_lt_prog_compiler_pic
10170 pic_mode=$pic_mode
10171
10172 # What is the maximum length of a command?
10173 max_cmd_len=$lt_cv_sys_max_cmd_len
10174
10175 # Does compiler simultaneously support -c and -o options?
10176 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
10177
10178 # Must we lock files when doing compilation?
10179 need_locks=$lt_need_locks
10180
10181 # Do we need the lib prefix for modules?
10182 need_lib_prefix=$need_lib_prefix
10183
10184 # Do we need a version for libraries?
10185 need_version=$need_version
10186
10187 # Whether dlopen is supported.
10188 dlopen_support=$enable_dlopen
10189
10190 # Whether dlopen of programs is supported.
10191 dlopen_self=$enable_dlopen_self
10192
10193 # Whether dlopen of statically linked programs is supported.
10194 dlopen_self_static=$enable_dlopen_self_static
10195
10196 # Compiler flag to prevent dynamic linking.
10197 link_static_flag=$lt_lt_prog_compiler_static
10198
10199 # Compiler flag to turn off builtin functions.
10200 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
10201
10202 # Compiler flag to allow reflexive dlopens.
10203 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
10204
10205 # Compiler flag to generate shared objects directly from archives.
10206 whole_archive_flag_spec=$lt_whole_archive_flag_spec
10207
10208 # Compiler flag to generate thread-safe objects.
10209 thread_safe_flag_spec=$lt_thread_safe_flag_spec
10210
10211 # Library versioning type.
10212 version_type=$version_type
10213
10214 # Format of library name prefix.
10215 libname_spec=$lt_libname_spec
10216
10217 # List of archive names. First name is the real one, the rest are links.
10218 # The last name is the one that the linker finds with -lNAME.
10219 library_names_spec=$lt_library_names_spec
10220
10221 # The coded name of the library, if different from the real name.
10222 soname_spec=$lt_soname_spec
10223
10224 # Commands used to build and install an old-style archive.
10225 RANLIB=$lt_RANLIB
10226 old_archive_cmds=$lt_old_archive_cmds
10227 old_postinstall_cmds=$lt_old_postinstall_cmds
10228 old_postuninstall_cmds=$lt_old_postuninstall_cmds
10229
10230 # Create an old-style archive from a shared archive.
10231 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
10232
10233 # Create a temporary old-style archive to link instead of a shared archive.
10234 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
10235
10236 # Commands used to build and install a shared archive.
10237 archive_cmds=$lt_archive_cmds
10238 archive_expsym_cmds=$lt_archive_expsym_cmds
10239 postinstall_cmds=$lt_postinstall_cmds
10240 postuninstall_cmds=$lt_postuninstall_cmds
10241
10242 # Commands used to build a loadable module (assumed same as above if empty)
10243 module_cmds=$lt_module_cmds
10244 module_expsym_cmds=$lt_module_expsym_cmds
10245
10246 # Commands to strip libraries.
10247 old_striplib=$lt_old_striplib
10248 striplib=$lt_striplib
10249
10250 # Dependencies to place before the objects being linked to create a
10251 # shared library.
10252 predep_objects=$lt_predep_objects
10253
10254 # Dependencies to place after the objects being linked to create a
10255 # shared library.
10256 postdep_objects=$lt_postdep_objects
10257
10258 # Dependencies to place before the objects being linked to create a
10259 # shared library.
10260 predeps=$lt_predeps
10261
10262 # Dependencies to place after the objects being linked to create a
10263 # shared library.
10264 postdeps=$lt_postdeps
10265
10266 # The directories searched by this compiler when creating a shared
10267 # library
10268 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
10269
10270 # The library search path used internally by the compiler when linking
10271 # a shared library.
10272 compiler_lib_search_path=$lt_compiler_lib_search_path
10273
10274 # Method to check whether dependent libraries are shared objects.
10275 deplibs_check_method=$lt_deplibs_check_method
10276
10277 # Command to use when deplibs_check_method == file_magic.
10278 file_magic_cmd=$lt_file_magic_cmd
10279
10280 # Flag that allows shared libraries with undefined symbols to be built.
10281 allow_undefined_flag=$lt_allow_undefined_flag
10282
10283 # Flag that forces no undefined symbols.
10284 no_undefined_flag=$lt_no_undefined_flag
10285
10286 # Commands used to finish a libtool library installation in a directory.
10287 finish_cmds=$lt_finish_cmds
10288
10289 # Same as above, but a single script fragment to be evaled but not shown.
10290 finish_eval=$lt_finish_eval
10291
10292 # Take the output of nm and produce a listing of raw symbols and C names.
10293 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
10294
10295 # Transform the output of nm in a proper C declaration
10296 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
10297
10298 # Transform the output of nm in a C name address pair
10299 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
10300
10301 # This is the shared library runtime path variable.
10302 runpath_var=$runpath_var
10303
10304 # This is the shared library path variable.
10305 shlibpath_var=$shlibpath_var
10306
10307 # Is shlibpath searched before the hard-coded library search path?
10308 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
10309
10310 # How to hardcode a shared library path into an executable.
10311 hardcode_action=$hardcode_action
10312
10313 # Whether we should hardcode library paths into libraries.
10314 hardcode_into_libs=$hardcode_into_libs
10315
10316 # Flag to hardcode \$libdir into a binary during linking.
10317 # This must work even if \$libdir does not exist.
10318 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
10319
10320 # If ld is used when linking, flag to hardcode \$libdir into
10321 # a binary during linking. This must work even if \$libdir does
10322 # not exist.
10323 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
10324
10325 # Whether we need a single -rpath flag with a separated argument.
10326 hardcode_libdir_separator=$lt_hardcode_libdir_separator
10327
10328 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
10329 # resulting binary.
10330 hardcode_direct=$hardcode_direct
10331
10332 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
10333 # resulting binary.
10334 hardcode_minus_L=$hardcode_minus_L
10335
10336 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
10337 # the resulting binary.
10338 hardcode_shlibpath_var=$hardcode_shlibpath_var
10339
10340 # Set to yes if building a shared library automatically hardcodes DIR into the library
10341 # and all subsequent libraries and executables linked against it.
10342 hardcode_automatic=$hardcode_automatic
10343
10344 # Variables whose values should be saved in libtool wrapper scripts and
10345 # restored at relink time.
10346 variables_saved_for_relink="$variables_saved_for_relink"
10347
10348 # Whether libtool must link a program against all its dependency libraries.
10349 link_all_deplibs=$link_all_deplibs
10350
10351 # Compile-time system search path for libraries
10352 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
10353
10354 # Run-time system search path for libraries
10355 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
10356
10357 # Fix the shell variable \$srcfile for the compiler.
10358 fix_srcfile_path=$lt_fix_srcfile_path
10359
10360 # Set to yes if exported symbols are required.
10361 always_export_symbols=$always_export_symbols
10362
10363 # The commands to list exported symbols.
10364 export_symbols_cmds=$lt_export_symbols_cmds
10365
10366 # The commands to extract the exported symbol list from a shared archive.
10367 extract_expsyms_cmds=$lt_extract_expsyms_cmds
10368
10369 # Symbols that should not be listed in the preloaded symbols.
10370 exclude_expsyms=$lt_exclude_expsyms
10371
10372 # Symbols that must always be exported.
10373 include_expsyms=$lt_include_expsyms
10374
10375 # ### END LIBTOOL CONFIG
10376
10377 __EOF__
10378
10379
10380 case $host_os in
10381 aix3*)
10382 cat <<\EOF >> "$cfgfile"
10383
10384 # AIX sometimes has problems with the GCC collect2 program. For some
10385 # reason, if we set the COLLECT_NAMES environment variable, the problems
10386 # vanish in a puff of smoke.
10387 if test "X${COLLECT_NAMES+set}" != Xset; then
10388 COLLECT_NAMES=
10389 export COLLECT_NAMES
10390 fi
10391 EOF
10392 ;;
10393 esac
10394
10395 # We use sed instead of cat because bash on DJGPP gets confused if
10396 # if finds mixed CR/LF and LF-only lines. Since sed operates in
10397 # text mode, it properly converts lines to CR/LF. This bash problem
10398 # is reportedly fixed, but why not run on old versions too?
10399 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
10400
10401 mv -f "$cfgfile" "$ofile" || \
10402 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
10403 chmod +x "$ofile"
10404
10405 else
10406 # If there is no Makefile yet, we rely on a make rule to execute
10407 # `config.status --recheck' to rerun these tests and create the
10408 # libtool script then.
10409 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
10410 if test -f "$ltmain_in"; then
10411 test -f Makefile && make "$ltmain"
10412 fi
10413 fi
10414
10415
10416 ac_ext=c
10417 ac_cpp='$CPP $CPPFLAGS'
10418 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10419 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10420 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10421
10422 CC="$lt_save_CC"
10423
10424
10425 # Check whether --with-tags or --without-tags was given.
10426 if test "${with_tags+set}" = set; then
10427 withval="$with_tags"
10428 tagnames="$withval"
10429 fi;
10430
10431 if test -f "$ltmain" && test -n "$tagnames"; then
10432 if test ! -f "${ofile}"; then
10433 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
10434 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
10435 fi
10436
10437 if test -z "$LTCC"; then
10438 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
10439 if test -z "$LTCC"; then
10440 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
10441 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
10442 else
10443 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
10444 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
10445 fi
10446 fi
10447 if test -z "$LTCFLAGS"; then
10448 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
10449 fi
10450
10451 # Extract list of available tagged configurations in $ofile.
10452 # Note that this assumes the entire list is on one line.
10453 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
10454
10455 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10456 for tagname in $tagnames; do
10457 IFS="$lt_save_ifs"
10458 # Check whether tagname contains only valid characters
10459 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
10460 "") ;;
10461 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
10462 echo "$as_me: error: invalid tag name: $tagname" >&2;}
10463 { (exit 1); exit 1; }; }
10464 ;;
10465 esac
10466
10467 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
10468 then
10469 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
10470 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
10471 { (exit 1); exit 1; }; }
10472 fi
10473
10474 # Update the list of available tags.
10475 if test -n "$tagname"; then
10476 echo appending configuration tag \"$tagname\" to $ofile
10477
10478 case $tagname in
10479 CXX)
10480 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10481 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10482 (test "X$CXX" != "Xg++"))) ; then
10483 ac_ext=cc
10484 ac_cpp='$CXXCPP $CPPFLAGS'
10485 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10486 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10487 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10488
10489
10490
10491
10492 archive_cmds_need_lc_CXX=no
10493 allow_undefined_flag_CXX=
10494 always_export_symbols_CXX=no
10495 archive_expsym_cmds_CXX=
10496 export_dynamic_flag_spec_CXX=
10497 hardcode_direct_CXX=no
10498 hardcode_libdir_flag_spec_CXX=
10499 hardcode_libdir_flag_spec_ld_CXX=
10500 hardcode_libdir_separator_CXX=
10501 hardcode_minus_L_CXX=no
10502 hardcode_shlibpath_var_CXX=unsupported
10503 hardcode_automatic_CXX=no
10504 module_cmds_CXX=
10505 module_expsym_cmds_CXX=
10506 link_all_deplibs_CXX=unknown
10507 old_archive_cmds_CXX=$old_archive_cmds
10508 no_undefined_flag_CXX=
10509 whole_archive_flag_spec_CXX=
10510 enable_shared_with_static_runtimes_CXX=no
10511
10512 # Dependencies to place before and after the object being linked:
10513 predep_objects_CXX=
10514 postdep_objects_CXX=
10515 predeps_CXX=
10516 postdeps_CXX=
10517 compiler_lib_search_path_CXX=
10518 compiler_lib_search_dirs_CXX=
10519
10520 # Source file extension for C++ test sources.
10521 ac_ext=cpp
10522
10523 # Object file extension for compiled C++ test sources.
10524 objext=o
10525 objext_CXX=$objext
10526
10527 # Code to be used in simple compile tests
10528 lt_simple_compile_test_code="int some_variable = 0;"
10529
10530 # Code to be used in simple link tests
10531 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
10532
10533 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
10534
10535 # If no C compiler was specified, use CC.
10536 LTCC=${LTCC-"$CC"}
10537
10538 # If no C compiler flags were specified, use CFLAGS.
10539 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
10540
10541 # Allow CC to be a program name with arguments.
10542 compiler=$CC
10543
10544
10545 # save warnings/boilerplate of simple test code
10546 ac_outfile=conftest.$ac_objext
10547 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
10548 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10549 _lt_compiler_boilerplate=`cat conftest.err`
10550 $rm conftest*
10551
10552 ac_outfile=conftest.$ac_objext
10553 echo "$lt_simple_link_test_code" >conftest.$ac_ext
10554 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
10555 _lt_linker_boilerplate=`cat conftest.err`
10556 $rm -r conftest*
10557
10558
10559 # Allow CC to be a program name with arguments.
10560 lt_save_CC=$CC
10561 lt_save_LD=$LD
10562 lt_save_GCC=$GCC
10563 GCC=$GXX
10564 lt_save_with_gnu_ld=$with_gnu_ld
10565 lt_save_path_LD=$lt_cv_path_LD
10566 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
10567 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
10568 else
10569 $as_unset lt_cv_prog_gnu_ld
10570 fi
10571 if test -n "${lt_cv_path_LDCXX+set}"; then
10572 lt_cv_path_LD=$lt_cv_path_LDCXX
10573 else
10574 $as_unset lt_cv_path_LD
10575 fi
10576 test -z "${LDCXX+set}" || LD=$LDCXX
10577 CC=${CXX-"c++"}
10578 compiler=$CC
10579 compiler_CXX=$CC
10580 for cc_temp in $compiler""; do
10581 case $cc_temp in
10582 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
10583 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
10584 \-*) ;;
10585 *) break;;
10586 esac
10587 done
10588 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
10589
10590
10591 # We don't want -fno-exception wen compiling C++ code, so set the
10592 # no_builtin_flag separately
10593 if test "$GXX" = yes; then
10594 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
10595 else
10596 lt_prog_compiler_no_builtin_flag_CXX=
10597 fi
10598
10599 if test "$GXX" = yes; then
10600 # Set up default GNU C++ configuration
10601
10602
10603 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10604 if test "${with_gnu_ld+set}" = set; then
10605 withval="$with_gnu_ld"
10606 test "$withval" = no || with_gnu_ld=yes
10607 else
10608 with_gnu_ld=no
10609 fi;
10610 ac_prog=ld
10611 if test "$GCC" = yes; then
10612 # Check if gcc -print-prog-name=ld gives a path.
10613 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10614 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10615 case $host in
10616 *-*-mingw*)
10617 # gcc leaves a trailing carriage return which upsets mingw
10618 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10619 *)
10620 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
10621 esac
10622 case $ac_prog in
10623 # Accept absolute paths.
10624 [\\/]* | ?:[\\/]*)
10625 re_direlt='/[^/][^/]*/\.\./'
10626 # Canonicalize the pathname of ld
10627 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
10628 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
10629 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10630 done
10631 test -z "$LD" && LD="$ac_prog"
10632 ;;
10633 "")
10634 # If it fails, then pretend we aren't using GCC.
10635 ac_prog=ld
10636 ;;
10637 *)
10638 # If it is relative, then search for the first ld in PATH.
10639 with_gnu_ld=unknown
10640 ;;
10641 esac
10642 elif test "$with_gnu_ld" = yes; then
10643 echo "$as_me:$LINENO: checking for GNU ld" >&5
10644 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10645 else
10646 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10647 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10648 fi
10649 if test "${lt_cv_path_LD+set}" = set; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10651 else
10652 if test -z "$LD"; then
10653 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
10654 for ac_dir in $PATH; do
10655 IFS="$lt_save_ifs"
10656 test -z "$ac_dir" && ac_dir=.
10657 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
10658 lt_cv_path_LD="$ac_dir/$ac_prog"
10659 # Check to see if the program is GNU ld. I'd rather use --version,
10660 # but apparently some variants of GNU ld only accept -v.
10661 # Break only if it was the GNU/non-GNU ld that we prefer.
10662 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10663 *GNU* | *'with BFD'*)
10664 test "$with_gnu_ld" != no && break
10665 ;;
10666 *)
10667 test "$with_gnu_ld" != yes && break
10668 ;;
10669 esac
10670 fi
10671 done
10672 IFS="$lt_save_ifs"
10673 else
10674 lt_cv_path_LD="$LD" # Let the user override the test with a path.
10675 fi
10676 fi
10677
10678 LD="$lt_cv_path_LD"
10679 if test -n "$LD"; then
10680 echo "$as_me:$LINENO: result: $LD" >&5
10681 echo "${ECHO_T}$LD" >&6
10682 else
10683 echo "$as_me:$LINENO: result: no" >&5
10684 echo "${ECHO_T}no" >&6
10685 fi
10686 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10687 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10688 { (exit 1); exit 1; }; }
10689 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10690 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10691 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10692 echo $ECHO_N "(cached) $ECHO_C" >&6
10693 else
10694 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10695 case `$LD -v 2>&1 </dev/null` in
10696 *GNU* | *'with BFD'*)
10697 lt_cv_prog_gnu_ld=yes
10698 ;;
10699 *)
10700 lt_cv_prog_gnu_ld=no
10701 ;;
10702 esac
10703 fi
10704 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10705 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10706 with_gnu_ld=$lt_cv_prog_gnu_ld
10707
10708
10709
10710 # Check if GNU C++ uses GNU ld as the underlying linker, since the
10711 # archiving commands below assume that GNU ld is being used.
10712 if test "$with_gnu_ld" = yes; then
10713 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
10714 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10715
10716 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
10717 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
10718
10719 # If archive_cmds runs LD, not CC, wlarc should be empty
10720 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
10721 # investigate it a little bit more. (MM)
10722 wlarc='${wl}'
10723
10724 # ancient GNU ld didn't support --whole-archive et. al.
10725 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
10726 grep 'no-whole-archive' > /dev/null; then
10727 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10728 else
10729 whole_archive_flag_spec_CXX=
10730 fi
10731 else
10732 with_gnu_ld=no
10733 wlarc=
10734
10735 # A generic and very simple default shared library creation
10736 # command for GNU C++ for the case where it uses the native
10737 # linker, instead of GNU ld. If possible, this setting should
10738 # overridden to take advantage of the native linker features on
10739 # the platform it is being used on.
10740 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
10741 fi
10742
10743 # Commands to make compiler produce verbose output that lists
10744 # what "hidden" libraries, object files and flags are used when
10745 # linking a shared library.
10746 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
10747
10748 else
10749 GXX=no
10750 with_gnu_ld=no
10751 wlarc=
10752 fi
10753
10754 # PORTME: fill in a description of your system's C++ link characteristics
10755 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10756 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
10757 ld_shlibs_CXX=yes
10758 case $host_os in
10759 aix3*)
10760 # FIXME: insert proper C++ library support
10761 ld_shlibs_CXX=no
10762 ;;
10763 aix[4-9]*)
10764 if test "$host_cpu" = ia64; then
10765 # On IA64, the linker does run time linking by default, so we don't
10766 # have to do anything special.
10767 aix_use_runtimelinking=no
10768 exp_sym_flag='-Bexport'
10769 no_entry_flag=""
10770 else
10771 aix_use_runtimelinking=no
10772
10773 # Test if we are trying to use run time linking or normal
10774 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10775 # need to do runtime linking.
10776 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10777 for ld_flag in $LDFLAGS; do
10778 case $ld_flag in
10779 *-brtl*)
10780 aix_use_runtimelinking=yes
10781 break
10782 ;;
10783 esac
10784 done
10785 ;;
10786 esac
10787
10788 exp_sym_flag='-bexport'
10789 no_entry_flag='-bnoentry'
10790 fi
10791
10792 # When large executables or shared objects are built, AIX ld can
10793 # have problems creating the table of contents. If linking a library
10794 # or program results in "error TOC overflow" add -mminimal-toc to
10795 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10796 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10797
10798 archive_cmds_CXX=''
10799 hardcode_direct_CXX=yes
10800 hardcode_libdir_separator_CXX=':'
10801 link_all_deplibs_CXX=yes
10802
10803 if test "$GXX" = yes; then
10804 case $host_os in aix4.[012]|aix4.[012].*)
10805 # We only want to do this on AIX 4.2 and lower, the check
10806 # below for broken collect2 doesn't work under 4.3+
10807 collect2name=`${CC} -print-prog-name=collect2`
10808 if test -f "$collect2name" && \
10809 strings "$collect2name" | grep resolve_lib_name >/dev/null
10810 then
10811 # We have reworked collect2
10812 :
10813 else
10814 # We have old collect2
10815 hardcode_direct_CXX=unsupported
10816 # It fails to find uninstalled libraries when the uninstalled
10817 # path is not listed in the libpath. Setting hardcode_minus_L
10818 # to unsupported forces relinking
10819 hardcode_minus_L_CXX=yes
10820 hardcode_libdir_flag_spec_CXX='-L$libdir'
10821 hardcode_libdir_separator_CXX=
10822 fi
10823 ;;
10824 esac
10825 shared_flag='-shared'
10826 if test "$aix_use_runtimelinking" = yes; then
10827 shared_flag="$shared_flag "'${wl}-G'
10828 fi
10829 else
10830 # not using gcc
10831 if test "$host_cpu" = ia64; then
10832 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10833 # chokes on -Wl,-G. The following line is correct:
10834 shared_flag='-G'
10835 else
10836 if test "$aix_use_runtimelinking" = yes; then
10837 shared_flag='${wl}-G'
10838 else
10839 shared_flag='${wl}-bM:SRE'
10840 fi
10841 fi
10842 fi
10843
10844 # It seems that -bexpall does not export symbols beginning with
10845 # underscore (_), so it is better to generate a list of symbols to export.
10846 always_export_symbols_CXX=yes
10847 if test "$aix_use_runtimelinking" = yes; then
10848 # Warning - without using the other runtime loading flags (-brtl),
10849 # -berok will link without error, but may produce a broken library.
10850 allow_undefined_flag_CXX='-berok'
10851 # Determine the default libpath from the value encoded in an empty executable.
10852 cat >conftest.$ac_ext <<_ACEOF
10853 /* confdefs.h. */
10854 _ACEOF
10855 cat confdefs.h >>conftest.$ac_ext
10856 cat >>conftest.$ac_ext <<_ACEOF
10857 /* end confdefs.h. */
10858
10859 int
10860 main ()
10861 {
10862
10863 ;
10864 return 0;
10865 }
10866 _ACEOF
10867 rm -f conftest.$ac_objext conftest$ac_exeext
10868 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10869 (eval $ac_link) 2>conftest.er1
10870 ac_status=$?
10871 grep -v '^ *+' conftest.er1 >conftest.err
10872 rm -f conftest.er1
10873 cat conftest.err >&5
10874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10875 (exit $ac_status); } &&
10876 { ac_try='test -z "$ac_cxx_werror_flag"
10877 || test ! -s conftest.err'
10878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10879 (eval $ac_try) 2>&5
10880 ac_status=$?
10881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10882 (exit $ac_status); }; } &&
10883 { ac_try='test -s conftest$ac_exeext'
10884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10885 (eval $ac_try) 2>&5
10886 ac_status=$?
10887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10888 (exit $ac_status); }; }; then
10889
10890 lt_aix_libpath_sed='
10891 /Import File Strings/,/^$/ {
10892 /^0/ {
10893 s/^0 *\(.*\)$/\1/
10894 p
10895 }
10896 }'
10897 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10898 # Check for a 64-bit object if we didn't find anything.
10899 if test -z "$aix_libpath"; then
10900 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10901 fi
10902 else
10903 echo "$as_me: failed program was:" >&5
10904 sed 's/^/| /' conftest.$ac_ext >&5
10905
10906 fi
10907 rm -f conftest.err conftest.$ac_objext \
10908 conftest$ac_exeext conftest.$ac_ext
10909 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10910
10911 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10912
10913 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
10914 else
10915 if test "$host_cpu" = ia64; then
10916 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
10917 allow_undefined_flag_CXX="-z nodefs"
10918 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
10919 else
10920 # Determine the default libpath from the value encoded in an empty executable.
10921 cat >conftest.$ac_ext <<_ACEOF
10922 /* confdefs.h. */
10923 _ACEOF
10924 cat confdefs.h >>conftest.$ac_ext
10925 cat >>conftest.$ac_ext <<_ACEOF
10926 /* end confdefs.h. */
10927
10928 int
10929 main ()
10930 {
10931
10932 ;
10933 return 0;
10934 }
10935 _ACEOF
10936 rm -f conftest.$ac_objext conftest$ac_exeext
10937 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10938 (eval $ac_link) 2>conftest.er1
10939 ac_status=$?
10940 grep -v '^ *+' conftest.er1 >conftest.err
10941 rm -f conftest.er1
10942 cat conftest.err >&5
10943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10944 (exit $ac_status); } &&
10945 { ac_try='test -z "$ac_cxx_werror_flag"
10946 || test ! -s conftest.err'
10947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10948 (eval $ac_try) 2>&5
10949 ac_status=$?
10950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10951 (exit $ac_status); }; } &&
10952 { ac_try='test -s conftest$ac_exeext'
10953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10954 (eval $ac_try) 2>&5
10955 ac_status=$?
10956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957 (exit $ac_status); }; }; then
10958
10959 lt_aix_libpath_sed='
10960 /Import File Strings/,/^$/ {
10961 /^0/ {
10962 s/^0 *\(.*\)$/\1/
10963 p
10964 }
10965 }'
10966 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10967 # Check for a 64-bit object if we didn't find anything.
10968 if test -z "$aix_libpath"; then
10969 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10970 fi
10971 else
10972 echo "$as_me: failed program was:" >&5
10973 sed 's/^/| /' conftest.$ac_ext >&5
10974
10975 fi
10976 rm -f conftest.err conftest.$ac_objext \
10977 conftest$ac_exeext conftest.$ac_ext
10978 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10979
10980 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
10981 # Warning - without using the other run time loading flags,
10982 # -berok will link without error, but may produce a broken library.
10983 no_undefined_flag_CXX=' ${wl}-bernotok'
10984 allow_undefined_flag_CXX=' ${wl}-berok'
10985 # Exported symbols can be pulled into shared objects from archives
10986 whole_archive_flag_spec_CXX='$convenience'
10987 archive_cmds_need_lc_CXX=yes
10988 # This is similar to how AIX traditionally builds its shared libraries.
10989 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
10990 fi
10991 fi
10992 ;;
10993
10994 beos*)
10995 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
10996 allow_undefined_flag_CXX=unsupported
10997 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10998 # support --undefined. This deserves some investigation. FIXME
10999 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11000 else
11001 ld_shlibs_CXX=no
11002 fi
11003 ;;
11004
11005 chorus*)
11006 case $cc_basename in
11007 *)
11008 # FIXME: insert proper C++ library support
11009 ld_shlibs_CXX=no
11010 ;;
11011 esac
11012 ;;
11013
11014 cygwin* | mingw* | pw32*)
11015 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
11016 # as there is no search path for DLLs.
11017 hardcode_libdir_flag_spec_CXX='-L$libdir'
11018 allow_undefined_flag_CXX=unsupported
11019 always_export_symbols_CXX=no
11020 enable_shared_with_static_runtimes_CXX=yes
11021
11022 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
11023 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11024 # If the export-symbols file already is a .def file (1st line
11025 # is EXPORTS), use it as is; otherwise, prepend...
11026 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
11027 cp $export_symbols $output_objdir/$soname.def;
11028 else
11029 echo EXPORTS > $output_objdir/$soname.def;
11030 cat $export_symbols >> $output_objdir/$soname.def;
11031 fi~
11032 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
11033 else
11034 ld_shlibs_CXX=no
11035 fi
11036 ;;
11037 darwin* | rhapsody*)
11038 archive_cmds_need_lc_CXX=no
11039 hardcode_direct_CXX=no
11040 hardcode_automatic_CXX=yes
11041 hardcode_shlibpath_var_CXX=unsupported
11042 whole_archive_flag_spec_CXX=''
11043 link_all_deplibs_CXX=yes
11044 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
11045 if test "$GXX" = yes ; then
11046 output_verbose_link_cmd='echo'
11047 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
11048 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
11049 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
11050 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
11051 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
11052 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
11053 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
11054 fi
11055 else
11056 case $cc_basename in
11057 xlc*)
11058 output_verbose_link_cmd='echo'
11059 archive_cmds_CXX='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
11060 module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11061 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
11062 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11063 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11064 ;;
11065 *)
11066 ld_shlibs_CXX=no
11067 ;;
11068 esac
11069 fi
11070 ;;
11071
11072 dgux*)
11073 case $cc_basename in
11074 ec++*)
11075 # FIXME: insert proper C++ library support
11076 ld_shlibs_CXX=no
11077 ;;
11078 ghcx*)
11079 # Green Hills C++ Compiler
11080 # FIXME: insert proper C++ library support
11081 ld_shlibs_CXX=no
11082 ;;
11083 *)
11084 # FIXME: insert proper C++ library support
11085 ld_shlibs_CXX=no
11086 ;;
11087 esac
11088 ;;
11089 freebsd[12]*)
11090 # C++ shared libraries reported to be fairly broken before switch to ELF
11091 ld_shlibs_CXX=no
11092 ;;
11093 freebsd-elf*)
11094 archive_cmds_need_lc_CXX=no
11095 ;;
11096 freebsd* | dragonfly*)
11097 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
11098 # conventions
11099 ld_shlibs_CXX=yes
11100 ;;
11101 gnu*)
11102 ;;
11103 hpux9*)
11104 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11105 hardcode_libdir_separator_CXX=:
11106 export_dynamic_flag_spec_CXX='${wl}-E'
11107 hardcode_direct_CXX=yes
11108 hardcode_minus_L_CXX=yes # Not in the search PATH,
11109 # but as the default
11110 # location of the library.
11111
11112 case $cc_basename in
11113 CC*)
11114 # FIXME: insert proper C++ library support
11115 ld_shlibs_CXX=no
11116 ;;
11117 aCC*)
11118 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11119 # Commands to make compiler produce verbose output that lists
11120 # what "hidden" libraries, object files and flags are used when
11121 # linking a shared library.
11122 #
11123 # There doesn't appear to be a way to prevent this compiler from
11124 # explicitly linking system object files so we need to strip them
11125 # from the output so that they don't get included in the library
11126 # dependencies.
11127 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "[-]L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11128 ;;
11129 *)
11130 if test "$GXX" = yes; then
11131 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
11132 else
11133 # FIXME: insert proper C++ library support
11134 ld_shlibs_CXX=no
11135 fi
11136 ;;
11137 esac
11138 ;;
11139 hpux10*|hpux11*)
11140 if test $with_gnu_ld = no; then
11141 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
11142 hardcode_libdir_separator_CXX=:
11143
11144 case $host_cpu in
11145 hppa*64*|ia64*) ;;
11146 *)
11147 export_dynamic_flag_spec_CXX='${wl}-E'
11148 ;;
11149 esac
11150 fi
11151 case $host_cpu in
11152 hppa*64*|ia64*)
11153 hardcode_direct_CXX=no
11154 hardcode_shlibpath_var_CXX=no
11155 ;;
11156 *)
11157 hardcode_direct_CXX=yes
11158 hardcode_minus_L_CXX=yes # Not in the search PATH,
11159 # but as the default
11160 # location of the library.
11161 ;;
11162 esac
11163
11164 case $cc_basename in
11165 CC*)
11166 # FIXME: insert proper C++ library support
11167 ld_shlibs_CXX=no
11168 ;;
11169 aCC*)
11170 case $host_cpu in
11171 hppa*64*)
11172 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11173 ;;
11174 ia64*)
11175 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11176 ;;
11177 *)
11178 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11179 ;;
11180 esac
11181 # Commands to make compiler produce verbose output that lists
11182 # what "hidden" libraries, object files and flags are used when
11183 # linking a shared library.
11184 #
11185 # There doesn't appear to be a way to prevent this compiler from
11186 # explicitly linking system object files so we need to strip them
11187 # from the output so that they don't get included in the library
11188 # dependencies.
11189 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11190 ;;
11191 *)
11192 if test "$GXX" = yes; then
11193 if test $with_gnu_ld = no; then
11194 case $host_cpu in
11195 hppa*64*)
11196 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11197 ;;
11198 ia64*)
11199 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11200 ;;
11201 *)
11202 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11203 ;;
11204 esac
11205 fi
11206 else
11207 # FIXME: insert proper C++ library support
11208 ld_shlibs_CXX=no
11209 fi
11210 ;;
11211 esac
11212 ;;
11213 interix[3-9]*)
11214 hardcode_direct_CXX=no
11215 hardcode_shlibpath_var_CXX=no
11216 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11217 export_dynamic_flag_spec_CXX='${wl}-E'
11218 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
11219 # Instead, shared libraries are loaded at an image base (0x10000000 by
11220 # default) and relocated if they conflict, which is a slow very memory
11221 # consuming and fragmenting process. To avoid this, we pick a random,
11222 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
11223 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
11224 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11225 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
11226 ;;
11227 irix5* | irix6*)
11228 case $cc_basename in
11229 CC*)
11230 # SGI C++
11231 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11232
11233 # Archives containing C++ object files must be created using
11234 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
11235 # necessary to make sure instantiated templates are included
11236 # in the archive.
11237 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
11238 ;;
11239 *)
11240 if test "$GXX" = yes; then
11241 if test "$with_gnu_ld" = no; then
11242 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
11243 else
11244 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
11245 fi
11246 fi
11247 link_all_deplibs_CXX=yes
11248 ;;
11249 esac
11250 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11251 hardcode_libdir_separator_CXX=:
11252 ;;
11253 linux* | k*bsd*-gnu)
11254 case $cc_basename in
11255 KCC*)
11256 # Kuck and Associates, Inc. (KAI) C++ Compiler
11257
11258 # KCC will only create a shared library if the output file
11259 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11260 # to its proper name (with version) after linking.
11261 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11262 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
11263 # Commands to make compiler produce verbose output that lists
11264 # what "hidden" libraries, object files and flags are used when
11265 # linking a shared library.
11266 #
11267 # There doesn't appear to be a way to prevent this compiler from
11268 # explicitly linking system object files so we need to strip them
11269 # from the output so that they don't get included in the library
11270 # dependencies.
11271 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11272
11273 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
11274 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11275
11276 # Archives containing C++ object files must be created using
11277 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11278 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11279 ;;
11280 icpc*)
11281 # Intel C++
11282 with_gnu_ld=yes
11283 # version 8.0 and above of icpc choke on multiply defined symbols
11284 # if we add $predep_objects and $postdep_objects, however 7.1 and
11285 # earlier do not add the objects themselves.
11286 case `$CC -V 2>&1` in
11287 *"Version 7."*)
11288 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11289 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11290 ;;
11291 *) # Version 8.0 or newer
11292 tmp_idyn=
11293 case $host_cpu in
11294 ia64*) tmp_idyn=' -i_dynamic';;
11295 esac
11296 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
11297 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
11298 ;;
11299 esac
11300 archive_cmds_need_lc_CXX=no
11301 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11302 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11303 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
11304 ;;
11305 pgCC* | pgcpp*)
11306 # Portland Group C++ compiler
11307 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
11308 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
11309
11310 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11311 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11312 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11313 ;;
11314 cxx*)
11315 # Compaq C++
11316 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11317 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
11318
11319 runpath_var=LD_RUN_PATH
11320 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11321 hardcode_libdir_separator_CXX=:
11322
11323 # Commands to make compiler produce verbose output that lists
11324 # what "hidden" libraries, object files and flags are used when
11325 # linking a shared library.
11326 #
11327 # There doesn't appear to be a way to prevent this compiler from
11328 # explicitly linking system object files so we need to strip them
11329 # from the output so that they don't get included in the library
11330 # dependencies.
11331 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11332 ;;
11333 *)
11334 case `$CC -V 2>&1 | sed 5q` in
11335 *Sun\ C*)
11336 # Sun C++ 5.9
11337 no_undefined_flag_CXX=' -zdefs'
11338 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11339 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
11340 hardcode_libdir_flag_spec_CXX='-R$libdir'
11341 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
11342
11343 # Not sure whether something based on
11344 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
11345 # would be better.
11346 output_verbose_link_cmd='echo'
11347
11348 # Archives containing C++ object files must be created using
11349 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11350 # necessary to make sure instantiated templates are included
11351 # in the archive.
11352 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11353 ;;
11354 esac
11355 ;;
11356 esac
11357 ;;
11358 lynxos*)
11359 # FIXME: insert proper C++ library support
11360 ld_shlibs_CXX=no
11361 ;;
11362 m88k*)
11363 # FIXME: insert proper C++ library support
11364 ld_shlibs_CXX=no
11365 ;;
11366 mvs*)
11367 case $cc_basename in
11368 cxx*)
11369 # FIXME: insert proper C++ library support
11370 ld_shlibs_CXX=no
11371 ;;
11372 *)
11373 # FIXME: insert proper C++ library support
11374 ld_shlibs_CXX=no
11375 ;;
11376 esac
11377 ;;
11378 netbsd*)
11379 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
11380 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
11381 wlarc=
11382 hardcode_libdir_flag_spec_CXX='-R$libdir'
11383 hardcode_direct_CXX=yes
11384 hardcode_shlibpath_var_CXX=no
11385 fi
11386 # Workaround some broken pre-1.5 toolchains
11387 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
11388 ;;
11389 openbsd2*)
11390 # C++ shared libraries are fairly broken
11391 ld_shlibs_CXX=no
11392 ;;
11393 openbsd*)
11394 if test -f /usr/libexec/ld.so; then
11395 hardcode_direct_CXX=yes
11396 hardcode_shlibpath_var_CXX=no
11397 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11398 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11399 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11400 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
11401 export_dynamic_flag_spec_CXX='${wl}-E'
11402 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11403 fi
11404 output_verbose_link_cmd='echo'
11405 else
11406 ld_shlibs_CXX=no
11407 fi
11408 ;;
11409 osf3*)
11410 case $cc_basename in
11411 KCC*)
11412 # Kuck and Associates, Inc. (KAI) C++ Compiler
11413
11414 # KCC will only create a shared library if the output file
11415 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11416 # to its proper name (with version) after linking.
11417 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11418
11419 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11420 hardcode_libdir_separator_CXX=:
11421
11422 # Archives containing C++ object files must be created using
11423 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
11424 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
11425
11426 ;;
11427 RCC*)
11428 # Rational C++ 2.4.1
11429 # FIXME: insert proper C++ library support
11430 ld_shlibs_CXX=no
11431 ;;
11432 cxx*)
11433 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11434 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11435
11436 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11437 hardcode_libdir_separator_CXX=:
11438
11439 # Commands to make compiler produce verbose output that lists
11440 # what "hidden" libraries, object files and flags are used when
11441 # linking a shared library.
11442 #
11443 # There doesn't appear to be a way to prevent this compiler from
11444 # explicitly linking system object files so we need to strip them
11445 # from the output so that they don't get included in the library
11446 # dependencies.
11447 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11448 ;;
11449 *)
11450 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11451 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11452 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
11453
11454 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11455 hardcode_libdir_separator_CXX=:
11456
11457 # Commands to make compiler produce verbose output that lists
11458 # what "hidden" libraries, object files and flags are used when
11459 # linking a shared library.
11460 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11461
11462 else
11463 # FIXME: insert proper C++ library support
11464 ld_shlibs_CXX=no
11465 fi
11466 ;;
11467 esac
11468 ;;
11469 osf4* | osf5*)
11470 case $cc_basename in
11471 KCC*)
11472 # Kuck and Associates, Inc. (KAI) C++ Compiler
11473
11474 # KCC will only create a shared library if the output file
11475 # ends with ".so" (or ".sl" for HP-UX), so rename the library
11476 # to its proper name (with version) after linking.
11477 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
11478
11479 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
11480 hardcode_libdir_separator_CXX=:
11481
11482 # Archives containing C++ object files must be created using
11483 # the KAI C++ compiler.
11484 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
11485 ;;
11486 RCC*)
11487 # Rational C++ 2.4.1
11488 # FIXME: insert proper C++ library support
11489 ld_shlibs_CXX=no
11490 ;;
11491 cxx*)
11492 allow_undefined_flag_CXX=' -expect_unresolved \*'
11493 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
11494 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
11495 echo "-hidden">> $lib.exp~
11496 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
11497 $rm $lib.exp'
11498
11499 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
11500 hardcode_libdir_separator_CXX=:
11501
11502 # Commands to make compiler produce verbose output that lists
11503 # what "hidden" libraries, object files and flags are used when
11504 # linking a shared library.
11505 #
11506 # There doesn't appear to be a way to prevent this compiler from
11507 # explicitly linking system object files so we need to strip them
11508 # from the output so that they don't get included in the library
11509 # dependencies.
11510 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
11511 ;;
11512 *)
11513 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11514 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
11515 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
11516
11517 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
11518 hardcode_libdir_separator_CXX=:
11519
11520 # Commands to make compiler produce verbose output that lists
11521 # what "hidden" libraries, object files and flags are used when
11522 # linking a shared library.
11523 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11524
11525 else
11526 # FIXME: insert proper C++ library support
11527 ld_shlibs_CXX=no
11528 fi
11529 ;;
11530 esac
11531 ;;
11532 psos*)
11533 # FIXME: insert proper C++ library support
11534 ld_shlibs_CXX=no
11535 ;;
11536 sunos4*)
11537 case $cc_basename in
11538 CC*)
11539 # Sun C++ 4.x
11540 # FIXME: insert proper C++ library support
11541 ld_shlibs_CXX=no
11542 ;;
11543 lcc*)
11544 # Lucid
11545 # FIXME: insert proper C++ library support
11546 ld_shlibs_CXX=no
11547 ;;
11548 *)
11549 # FIXME: insert proper C++ library support
11550 ld_shlibs_CXX=no
11551 ;;
11552 esac
11553 ;;
11554 solaris*)
11555 case $cc_basename in
11556 CC*)
11557 # Sun C++ 4.2, 5.x and Centerline C++
11558 archive_cmds_need_lc_CXX=yes
11559 no_undefined_flag_CXX=' -zdefs'
11560 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
11561 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11562 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11563
11564 hardcode_libdir_flag_spec_CXX='-R$libdir'
11565 hardcode_shlibpath_var_CXX=no
11566 case $host_os in
11567 solaris2.[0-5] | solaris2.[0-5].*) ;;
11568 *)
11569 # The compiler driver will combine and reorder linker options,
11570 # but understands `-z linker_flag'.
11571 # Supported since Solaris 2.6 (maybe 2.5.1?)
11572 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
11573 ;;
11574 esac
11575 link_all_deplibs_CXX=yes
11576
11577 output_verbose_link_cmd='echo'
11578
11579 # Archives containing C++ object files must be created using
11580 # "CC -xar", where "CC" is the Sun C++ compiler. This is
11581 # necessary to make sure instantiated templates are included
11582 # in the archive.
11583 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
11584 ;;
11585 gcx*)
11586 # Green Hills C++ Compiler
11587 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11588
11589 # The C++ compiler must be used to create the archive.
11590 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
11591 ;;
11592 *)
11593 # GNU C++ compiler with Solaris linker
11594 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
11595 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
11596 if $CC --version | grep -v '^2\.7' > /dev/null; then
11597 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11598 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11599 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11600
11601 # Commands to make compiler produce verbose output that lists
11602 # what "hidden" libraries, object files and flags are used when
11603 # linking a shared library.
11604 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11605 else
11606 # g++ 2.7 appears to require `-G' NOT `-shared' on this
11607 # platform.
11608 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
11609 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
11610 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
11611
11612 # Commands to make compiler produce verbose output that lists
11613 # what "hidden" libraries, object files and flags are used when
11614 # linking a shared library.
11615 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
11616 fi
11617
11618 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
11619 case $host_os in
11620 solaris2.[0-5] | solaris2.[0-5].*) ;;
11621 *)
11622 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11623 ;;
11624 esac
11625 fi
11626 ;;
11627 esac
11628 ;;
11629 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11630 no_undefined_flag_CXX='${wl}-z,text'
11631 archive_cmds_need_lc_CXX=no
11632 hardcode_shlibpath_var_CXX=no
11633 runpath_var='LD_RUN_PATH'
11634
11635 case $cc_basename in
11636 CC*)
11637 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11638 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11639 ;;
11640 *)
11641 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11642 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11643 ;;
11644 esac
11645 ;;
11646 sysv5* | sco3.2v5* | sco5v6*)
11647 # Note: We can NOT use -z defs as we might desire, because we do not
11648 # link with -lc, and that would cause any symbols used from libc to
11649 # always be unresolved, which means just about no library would
11650 # ever link correctly. If we're not using GNU ld we use -z text
11651 # though, which does catch some bad symbols but isn't as heavy-handed
11652 # as -z defs.
11653 # For security reasons, it is highly recommended that you always
11654 # use absolute paths for naming shared libraries, and exclude the
11655 # DT_RUNPATH tag from executables and libraries. But doing so
11656 # requires that you compile everything twice, which is a pain.
11657 # So that behaviour is only enabled if SCOABSPATH is set to a
11658 # non-empty value in the environment. Most likely only useful for
11659 # creating official distributions of packages.
11660 # This is a hack until libtool officially supports absolute path
11661 # names for shared libraries.
11662 no_undefined_flag_CXX='${wl}-z,text'
11663 allow_undefined_flag_CXX='${wl}-z,nodefs'
11664 archive_cmds_need_lc_CXX=no
11665 hardcode_shlibpath_var_CXX=no
11666 hardcode_libdir_flag_spec_CXX='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
11667 hardcode_libdir_separator_CXX=':'
11668 link_all_deplibs_CXX=yes
11669 export_dynamic_flag_spec_CXX='${wl}-Bexport'
11670 runpath_var='LD_RUN_PATH'
11671
11672 case $cc_basename in
11673 CC*)
11674 archive_cmds_CXX='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11675 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11676 ;;
11677 *)
11678 archive_cmds_CXX='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11679 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
11680 ;;
11681 esac
11682 ;;
11683 tandem*)
11684 case $cc_basename in
11685 NCC*)
11686 # NonStop-UX NCC 3.20
11687 # FIXME: insert proper C++ library support
11688 ld_shlibs_CXX=no
11689 ;;
11690 *)
11691 # FIXME: insert proper C++ library support
11692 ld_shlibs_CXX=no
11693 ;;
11694 esac
11695 ;;
11696 vxworks*)
11697 # FIXME: insert proper C++ library support
11698 ld_shlibs_CXX=no
11699 ;;
11700 *)
11701 # FIXME: insert proper C++ library support
11702 ld_shlibs_CXX=no
11703 ;;
11704 esac
11705 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
11706 echo "${ECHO_T}$ld_shlibs_CXX" >&6
11707 test "$ld_shlibs_CXX" = no && can_build_shared=no
11708
11709 GCC_CXX="$GXX"
11710 LD_CXX="$LD"
11711
11712 cat > conftest.$ac_ext <<EOF
11713 class Foo
11714 {
11715 public:
11716 Foo (void) { a = 0; }
11717 private:
11718 int a;
11719 };
11720 EOF
11721
11722 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11723 (eval $ac_compile) 2>&5
11724 ac_status=$?
11725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11726 (exit $ac_status); }; then
11727 # Parse the compiler output and extract the necessary
11728 # objects, libraries and library flags.
11729
11730 # Sentinel used to keep track of whether or not we are before
11731 # the conftest object file.
11732 pre_test_object_deps_done=no
11733
11734 # The `*' in the case matches for architectures that use `case' in
11735 # $output_verbose_cmd can trigger glob expansion during the loop
11736 # eval without this substitution.
11737 output_verbose_link_cmd=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
11738
11739 for p in `eval $output_verbose_link_cmd`; do
11740 case $p in
11741
11742 -L* | -R* | -l*)
11743 # Some compilers place space between "-{L,R}" and the path.
11744 # Remove the space.
11745 if test $p = "-L" \
11746 || test $p = "-R"; then
11747 prev=$p
11748 continue
11749 else
11750 prev=
11751 fi
11752
11753 if test "$pre_test_object_deps_done" = no; then
11754 case $p in
11755 -L* | -R*)
11756 # Internal compiler library paths should come after those
11757 # provided the user. The postdeps already come after the
11758 # user supplied libs so there is no need to process them.
11759 if test -z "$compiler_lib_search_path_CXX"; then
11760 compiler_lib_search_path_CXX="${prev}${p}"
11761 else
11762 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
11763 fi
11764 ;;
11765 # The "-l" case would never come before the object being
11766 # linked, so don't bother handling this case.
11767 esac
11768 else
11769 if test -z "$postdeps_CXX"; then
11770 postdeps_CXX="${prev}${p}"
11771 else
11772 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
11773 fi
11774 fi
11775 ;;
11776
11777 *.$objext)
11778 # This assumes that the test object file only shows up
11779 # once in the compiler output.
11780 if test "$p" = "conftest.$objext"; then
11781 pre_test_object_deps_done=yes
11782 continue
11783 fi
11784
11785 if test "$pre_test_object_deps_done" = no; then
11786 if test -z "$predep_objects_CXX"; then
11787 predep_objects_CXX="$p"
11788 else
11789 predep_objects_CXX="$predep_objects_CXX $p"
11790 fi
11791 else
11792 if test -z "$postdep_objects_CXX"; then
11793 postdep_objects_CXX="$p"
11794 else
11795 postdep_objects_CXX="$postdep_objects_CXX $p"
11796 fi
11797 fi
11798 ;;
11799
11800 *) ;; # Ignore the rest.
11801
11802 esac
11803 done
11804
11805 # Clean up.
11806 rm -f a.out a.exe
11807 else
11808 echo "libtool.m4: error: problem compiling CXX test program"
11809 fi
11810
11811 $rm -f confest.$objext
11812
11813 compiler_lib_search_dirs_CXX=
11814 if test -n "$compiler_lib_search_path_CXX"; then
11815 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
11816 fi
11817
11818 # PORTME: override above test on systems where it is broken
11819 case $host_os in
11820 interix[3-9]*)
11821 # Interix 3.5 installs completely hosed .la files for C++, so rather than
11822 # hack all around it, let's just trust "g++" to DTRT.
11823 predep_objects_CXX=
11824 postdep_objects_CXX=
11825 postdeps_CXX=
11826 ;;
11827
11828 linux*)
11829 case `$CC -V 2>&1 | sed 5q` in
11830 *Sun\ C*)
11831 # Sun C++ 5.9
11832 #
11833 # The more standards-conforming stlport4 library is
11834 # incompatible with the Cstd library. Avoid specifying
11835 # it if it's in CXXFLAGS. Ignore libCrun as
11836 # -library=stlport4 depends on it.
11837 case " $CXX $CXXFLAGS " in
11838 *" -library=stlport4 "*)
11839 solaris_use_stlport4=yes
11840 ;;
11841 esac
11842 if test "$solaris_use_stlport4" != yes; then
11843 postdeps_CXX='-library=Cstd -library=Crun'
11844 fi
11845 ;;
11846 esac
11847 ;;
11848
11849 solaris*)
11850 case $cc_basename in
11851 CC*)
11852 # The more standards-conforming stlport4 library is
11853 # incompatible with the Cstd library. Avoid specifying
11854 # it if it's in CXXFLAGS. Ignore libCrun as
11855 # -library=stlport4 depends on it.
11856 case " $CXX $CXXFLAGS " in
11857 *" -library=stlport4 "*)
11858 solaris_use_stlport4=yes
11859 ;;
11860 esac
11861
11862 # Adding this requires a known-good setup of shared libraries for
11863 # Sun compiler versions before 5.6, else PIC objects from an old
11864 # archive will be linked into the output, leading to subtle bugs.
11865 if test "$solaris_use_stlport4" != yes; then
11866 postdeps_CXX='-library=Cstd -library=Crun'
11867 fi
11868 ;;
11869 esac
11870 ;;
11871 esac
11872
11873 case " $postdeps_CXX " in
11874 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
11875 esac
11876
11877 lt_prog_compiler_wl_CXX=
11878 lt_prog_compiler_pic_CXX=
11879 lt_prog_compiler_static_CXX=
11880
11881 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11882 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11883
11884 # C++ specific cases for pic, static, wl, etc.
11885 if test "$GXX" = yes; then
11886 lt_prog_compiler_wl_CXX='-Wl,'
11887 lt_prog_compiler_static_CXX='-static'
11888
11889 case $host_os in
11890 aix*)
11891 # All AIX code is PIC.
11892 if test "$host_cpu" = ia64; then
11893 # AIX 5 now supports IA64 processor
11894 lt_prog_compiler_static_CXX='-Bstatic'
11895 fi
11896 ;;
11897 amigaos*)
11898 # FIXME: we need at least 68020 code to build shared libraries, but
11899 # adding the `-m68020' flag to GCC prevents building anything better,
11900 # like `-m68040'.
11901 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
11902 ;;
11903 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11904 # PIC is the default for these OSes.
11905 ;;
11906 mingw* | cygwin* | os2* | pw32*)
11907 # This hack is so that the source file can tell whether it is being
11908 # built for inclusion in a dll (and should export symbols for example).
11909 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11910 # (--disable-auto-import) libraries
11911 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
11912 ;;
11913 darwin* | rhapsody*)
11914 # PIC is the default on this platform
11915 # Common symbols not allowed in MH_DYLIB files
11916 lt_prog_compiler_pic_CXX='-fno-common'
11917 ;;
11918 *djgpp*)
11919 # DJGPP does not support shared libraries at all
11920 lt_prog_compiler_pic_CXX=
11921 ;;
11922 interix[3-9]*)
11923 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11924 # Instead, we relocate shared libraries at runtime.
11925 ;;
11926 sysv4*MP*)
11927 if test -d /usr/nec; then
11928 lt_prog_compiler_pic_CXX=-Kconform_pic
11929 fi
11930 ;;
11931 hpux*)
11932 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11933 # not for PA HP-UX.
11934 case $host_cpu in
11935 hppa*64*|ia64*)
11936 ;;
11937 *)
11938 lt_prog_compiler_pic_CXX='-fPIC'
11939 ;;
11940 esac
11941 ;;
11942 *)
11943 lt_prog_compiler_pic_CXX='-fPIC'
11944 ;;
11945 esac
11946 else
11947 case $host_os in
11948 aix[4-9]*)
11949 # All AIX code is PIC.
11950 if test "$host_cpu" = ia64; then
11951 # AIX 5 now supports IA64 processor
11952 lt_prog_compiler_static_CXX='-Bstatic'
11953 else
11954 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
11955 fi
11956 ;;
11957 chorus*)
11958 case $cc_basename in
11959 cxch68*)
11960 # Green Hills C++ Compiler
11961 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
11962 ;;
11963 esac
11964 ;;
11965 darwin*)
11966 # PIC is the default on this platform
11967 # Common symbols not allowed in MH_DYLIB files
11968 case $cc_basename in
11969 xlc*)
11970 lt_prog_compiler_pic_CXX='-qnocommon'
11971 lt_prog_compiler_wl_CXX='-Wl,'
11972 ;;
11973 esac
11974 ;;
11975 dgux*)
11976 case $cc_basename in
11977 ec++*)
11978 lt_prog_compiler_pic_CXX='-KPIC'
11979 ;;
11980 ghcx*)
11981 # Green Hills C++ Compiler
11982 lt_prog_compiler_pic_CXX='-pic'
11983 ;;
11984 *)
11985 ;;
11986 esac
11987 ;;
11988 freebsd* | dragonfly*)
11989 # FreeBSD uses GNU C++
11990 ;;
11991 hpux9* | hpux10* | hpux11*)
11992 case $cc_basename in
11993 CC*)
11994 lt_prog_compiler_wl_CXX='-Wl,'
11995 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
11996 if test "$host_cpu" != ia64; then
11997 lt_prog_compiler_pic_CXX='+Z'
11998 fi
11999 ;;
12000 aCC*)
12001 lt_prog_compiler_wl_CXX='-Wl,'
12002 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
12003 case $host_cpu in
12004 hppa*64*|ia64*)
12005 # +Z the default
12006 ;;
12007 *)
12008 lt_prog_compiler_pic_CXX='+Z'
12009 ;;
12010 esac
12011 ;;
12012 *)
12013 ;;
12014 esac
12015 ;;
12016 interix*)
12017 # This is c89, which is MS Visual C++ (no shared libs)
12018 # Anyone wants to do a port?
12019 ;;
12020 irix5* | irix6* | nonstopux*)
12021 case $cc_basename in
12022 CC*)
12023 lt_prog_compiler_wl_CXX='-Wl,'
12024 lt_prog_compiler_static_CXX='-non_shared'
12025 # CC pic flag -KPIC is the default.
12026 ;;
12027 *)
12028 ;;
12029 esac
12030 ;;
12031 linux* | k*bsd*-gnu)
12032 case $cc_basename in
12033 KCC*)
12034 # KAI C++ Compiler
12035 lt_prog_compiler_wl_CXX='--backend -Wl,'
12036 lt_prog_compiler_pic_CXX='-fPIC'
12037 ;;
12038 icpc* | ecpc*)
12039 # Intel C++
12040 lt_prog_compiler_wl_CXX='-Wl,'
12041 lt_prog_compiler_pic_CXX='-KPIC'
12042 lt_prog_compiler_static_CXX='-static'
12043 ;;
12044 pgCC* | pgcpp*)
12045 # Portland Group C++ compiler.
12046 lt_prog_compiler_wl_CXX='-Wl,'
12047 lt_prog_compiler_pic_CXX='-fpic'
12048 lt_prog_compiler_static_CXX='-Bstatic'
12049 ;;
12050 cxx*)
12051 # Compaq C++
12052 # Make sure the PIC flag is empty. It appears that all Alpha
12053 # Linux and Compaq Tru64 Unix objects are PIC.
12054 lt_prog_compiler_pic_CXX=
12055 lt_prog_compiler_static_CXX='-non_shared'
12056 ;;
12057 *)
12058 case `$CC -V 2>&1 | sed 5q` in
12059 *Sun\ C*)
12060 # Sun C++ 5.9
12061 lt_prog_compiler_pic_CXX='-KPIC'
12062 lt_prog_compiler_static_CXX='-Bstatic'
12063 lt_prog_compiler_wl_CXX='-Qoption ld '
12064 ;;
12065 esac
12066 ;;
12067 esac
12068 ;;
12069 lynxos*)
12070 ;;
12071 m88k*)
12072 ;;
12073 mvs*)
12074 case $cc_basename in
12075 cxx*)
12076 lt_prog_compiler_pic_CXX='-W c,exportall'
12077 ;;
12078 *)
12079 ;;
12080 esac
12081 ;;
12082 netbsd*)
12083 ;;
12084 osf3* | osf4* | osf5*)
12085 case $cc_basename in
12086 KCC*)
12087 lt_prog_compiler_wl_CXX='--backend -Wl,'
12088 ;;
12089 RCC*)
12090 # Rational C++ 2.4.1
12091 lt_prog_compiler_pic_CXX='-pic'
12092 ;;
12093 cxx*)
12094 # Digital/Compaq C++
12095 lt_prog_compiler_wl_CXX='-Wl,'
12096 # Make sure the PIC flag is empty. It appears that all Alpha
12097 # Linux and Compaq Tru64 Unix objects are PIC.
12098 lt_prog_compiler_pic_CXX=
12099 lt_prog_compiler_static_CXX='-non_shared'
12100 ;;
12101 *)
12102 ;;
12103 esac
12104 ;;
12105 psos*)
12106 ;;
12107 solaris*)
12108 case $cc_basename in
12109 CC*)
12110 # Sun C++ 4.2, 5.x and Centerline C++
12111 lt_prog_compiler_pic_CXX='-KPIC'
12112 lt_prog_compiler_static_CXX='-Bstatic'
12113 lt_prog_compiler_wl_CXX='-Qoption ld '
12114 ;;
12115 gcx*)
12116 # Green Hills C++ Compiler
12117 lt_prog_compiler_pic_CXX='-PIC'
12118 ;;
12119 *)
12120 ;;
12121 esac
12122 ;;
12123 sunos4*)
12124 case $cc_basename in
12125 CC*)
12126 # Sun C++ 4.x
12127 lt_prog_compiler_pic_CXX='-pic'
12128 lt_prog_compiler_static_CXX='-Bstatic'
12129 ;;
12130 lcc*)
12131 # Lucid
12132 lt_prog_compiler_pic_CXX='-pic'
12133 ;;
12134 *)
12135 ;;
12136 esac
12137 ;;
12138 tandem*)
12139 case $cc_basename in
12140 NCC*)
12141 # NonStop-UX NCC 3.20
12142 lt_prog_compiler_pic_CXX='-KPIC'
12143 ;;
12144 *)
12145 ;;
12146 esac
12147 ;;
12148 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
12149 case $cc_basename in
12150 CC*)
12151 lt_prog_compiler_wl_CXX='-Wl,'
12152 lt_prog_compiler_pic_CXX='-KPIC'
12153 lt_prog_compiler_static_CXX='-Bstatic'
12154 ;;
12155 esac
12156 ;;
12157 vxworks*)
12158 ;;
12159 *)
12160 lt_prog_compiler_can_build_shared_CXX=no
12161 ;;
12162 esac
12163 fi
12164
12165 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
12166 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
12167
12168 #
12169 # Check to make sure the PIC flag actually works.
12170 #
12171 if test -n "$lt_prog_compiler_pic_CXX"; then
12172
12173 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
12174 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
12175 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then
12176 echo $ECHO_N "(cached) $ECHO_C" >&6
12177 else
12178 lt_cv_prog_compiler_pic_works_CXX=no
12179 ac_outfile=conftest.$ac_objext
12180 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12181 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
12182 # Insert the option either (1) after the last *FLAGS variable, or
12183 # (2) before a word containing "conftest.", or (3) at the end.
12184 # Note that $ac_compile itself does not contain backslashes and begins
12185 # with a dollar sign (not a hyphen), so the echo should work correctly.
12186 # The option is referenced via a variable to avoid confusing sed.
12187 lt_compile=`echo "$ac_compile" | $SED \
12188 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12189 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12190 -e 's:$: $lt_compiler_flag:'`
12191 (eval echo "\"\$as_me:12191: $lt_compile\"" >&5)
12192 (eval "$lt_compile" 2>conftest.err)
12193 ac_status=$?
12194 cat conftest.err >&5
12195 echo "$as_me:12195: \$? = $ac_status" >&5
12196 if (exit $ac_status) && test -s "$ac_outfile"; then
12197 # The compiler can only warn and ignore the option if not recognized
12198 # So say no if there are warnings other than the usual output.
12199 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
12200 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12201 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
12202 lt_cv_prog_compiler_pic_works_CXX=yes
12203 fi
12204 fi
12205 $rm conftest*
12206
12207 fi
12208 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
12209 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_CXX" >&6
12210
12211 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
12212 case $lt_prog_compiler_pic_CXX in
12213 "" | " "*) ;;
12214 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
12215 esac
12216 else
12217 lt_prog_compiler_pic_CXX=
12218 lt_prog_compiler_can_build_shared_CXX=no
12219 fi
12220
12221 fi
12222 case $host_os in
12223 # For platforms which do not support PIC, -DPIC is meaningless:
12224 *djgpp*)
12225 lt_prog_compiler_pic_CXX=
12226 ;;
12227 *)
12228 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
12229 ;;
12230 esac
12231
12232 #
12233 # Check to make sure the static flag actually works.
12234 #
12235 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
12236 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12237 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12238 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then
12239 echo $ECHO_N "(cached) $ECHO_C" >&6
12240 else
12241 lt_cv_prog_compiler_static_works_CXX=no
12242 save_LDFLAGS="$LDFLAGS"
12243 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12244 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12245 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12246 # The linker can only warn and ignore the option if not recognized
12247 # So say no if there are warnings
12248 if test -s conftest.err; then
12249 # Append any errors to the config.log.
12250 cat conftest.err 1>&5
12251 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12252 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12253 if diff conftest.exp conftest.er2 >/dev/null; then
12254 lt_cv_prog_compiler_static_works_CXX=yes
12255 fi
12256 else
12257 lt_cv_prog_compiler_static_works_CXX=yes
12258 fi
12259 fi
12260 $rm -r conftest*
12261 LDFLAGS="$save_LDFLAGS"
12262
12263 fi
12264 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_CXX" >&5
12265 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_CXX" >&6
12266
12267 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
12268 :
12269 else
12270 lt_prog_compiler_static_CXX=
12271 fi
12272
12273
12274 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12275 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12276 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12278 else
12279 lt_cv_prog_compiler_c_o_CXX=no
12280 $rm -r conftest 2>/dev/null
12281 mkdir conftest
12282 cd conftest
12283 mkdir out
12284 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12285
12286 lt_compiler_flag="-o out/conftest2.$ac_objext"
12287 # Insert the option either (1) after the last *FLAGS variable, or
12288 # (2) before a word containing "conftest.", or (3) at the end.
12289 # Note that $ac_compile itself does not contain backslashes and begins
12290 # with a dollar sign (not a hyphen), so the echo should work correctly.
12291 lt_compile=`echo "$ac_compile" | $SED \
12292 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12293 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12294 -e 's:$: $lt_compiler_flag:'`
12295 (eval echo "\"\$as_me:12295: $lt_compile\"" >&5)
12296 (eval "$lt_compile" 2>out/conftest.err)
12297 ac_status=$?
12298 cat out/conftest.err >&5
12299 echo "$as_me:12299: \$? = $ac_status" >&5
12300 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12301 then
12302 # The compiler can only warn and ignore the option if not recognized
12303 # So say no if there are warnings
12304 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12305 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12306 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12307 lt_cv_prog_compiler_c_o_CXX=yes
12308 fi
12309 fi
12310 chmod u+w . 2>&5
12311 $rm conftest*
12312 # SGI C++ compiler will create directory out/ii_files/ for
12313 # template instantiation
12314 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12315 $rm out/* && rmdir out
12316 cd ..
12317 rmdir conftest
12318 $rm conftest*
12319
12320 fi
12321 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
12322 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
12323
12324
12325 hard_links="nottested"
12326 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
12327 # do not overwrite the value of need_locks provided by the user
12328 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12329 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12330 hard_links=yes
12331 $rm conftest*
12332 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12333 touch conftest.a
12334 ln conftest.a conftest.b 2>&5 || hard_links=no
12335 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12336 echo "$as_me:$LINENO: result: $hard_links" >&5
12337 echo "${ECHO_T}$hard_links" >&6
12338 if test "$hard_links" = no; then
12339 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12340 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12341 need_locks=warn
12342 fi
12343 else
12344 need_locks=no
12345 fi
12346
12347 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12348 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12349
12350 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12351 case $host_os in
12352 aix[4-9]*)
12353 # If we're using GNU nm, then we don't want the "-C" option.
12354 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12355 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12356 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12357 else
12358 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
12359 fi
12360 ;;
12361 pw32*)
12362 export_symbols_cmds_CXX="$ltdll_cmds"
12363 ;;
12364 cygwin* | mingw*)
12365 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12366 ;;
12367 *)
12368 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12369 ;;
12370 esac
12371 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12372
12373 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12374 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12375 test "$ld_shlibs_CXX" = no && can_build_shared=no
12376
12377 #
12378 # Do we need to explicitly link libc?
12379 #
12380 case "x$archive_cmds_need_lc_CXX" in
12381 x|xyes)
12382 # Assume -lc should be added
12383 archive_cmds_need_lc_CXX=yes
12384
12385 if test "$enable_shared" = yes && test "$GCC" = yes; then
12386 case $archive_cmds_CXX in
12387 *'~'*)
12388 # FIXME: we may have to deal with multi-command sequences.
12389 ;;
12390 '$CC '*)
12391 # Test whether the compiler implicitly links with -lc since on some
12392 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12393 # to ld, don't add -lc before -lgcc.
12394 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12395 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12396 $rm conftest*
12397 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12398
12399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12400 (eval $ac_compile) 2>&5
12401 ac_status=$?
12402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12403 (exit $ac_status); } 2>conftest.err; then
12404 soname=conftest
12405 lib=conftest
12406 libobjs=conftest.$ac_objext
12407 deplibs=
12408 wl=$lt_prog_compiler_wl_CXX
12409 pic_flag=$lt_prog_compiler_pic_CXX
12410 compiler_flags=-v
12411 linker_flags=-v
12412 verstring=
12413 output_objdir=.
12414 libname=conftest
12415 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
12416 allow_undefined_flag_CXX=
12417 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12418 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12419 ac_status=$?
12420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12421 (exit $ac_status); }
12422 then
12423 archive_cmds_need_lc_CXX=no
12424 else
12425 archive_cmds_need_lc_CXX=yes
12426 fi
12427 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
12428 else
12429 cat conftest.err 1>&5
12430 fi
12431 $rm conftest*
12432 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
12433 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
12434 ;;
12435 esac
12436 fi
12437 ;;
12438 esac
12439
12440 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12441 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12442 library_names_spec=
12443 libname_spec='lib$name'
12444 soname_spec=
12445 shrext_cmds=".so"
12446 postinstall_cmds=
12447 postuninstall_cmds=
12448 finish_cmds=
12449 finish_eval=
12450 shlibpath_var=
12451 shlibpath_overrides_runpath=unknown
12452 version_type=none
12453 dynamic_linker="$host_os ld.so"
12454 sys_lib_dlsearch_path_spec="/lib /usr/lib"
12455
12456 need_lib_prefix=unknown
12457 hardcode_into_libs=no
12458
12459 # when you set need_version to no, make sure it does not cause -set_version
12460 # flags to be left without arguments
12461 need_version=unknown
12462
12463 case $host_os in
12464 aix3*)
12465 version_type=linux
12466 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
12467 shlibpath_var=LIBPATH
12468
12469 # AIX 3 has no versioning support, so we append a major version to the name.
12470 soname_spec='${libname}${release}${shared_ext}$major'
12471 ;;
12472
12473 aix[4-9]*)
12474 version_type=linux
12475 need_lib_prefix=no
12476 need_version=no
12477 hardcode_into_libs=yes
12478 if test "$host_cpu" = ia64; then
12479 # AIX 5 supports IA64
12480 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
12481 shlibpath_var=LD_LIBRARY_PATH
12482 else
12483 # With GCC up to 2.95.x, collect2 would create an import file
12484 # for dependence libraries. The import file would start with
12485 # the line `#! .'. This would cause the generated library to
12486 # depend on `.', always an invalid library. This was fixed in
12487 # development snapshots of GCC prior to 3.0.
12488 case $host_os in
12489 aix4 | aix4.[01] | aix4.[01].*)
12490 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
12491 echo ' yes '
12492 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
12493 :
12494 else
12495 can_build_shared=no
12496 fi
12497 ;;
12498 esac
12499 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
12500 # soname into executable. Probably we can add versioning support to
12501 # collect2, so additional links can be useful in future.
12502 if test "$aix_use_runtimelinking" = yes; then
12503 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
12504 # instead of lib<name>.a to let people know that these are not
12505 # typical AIX shared libraries.
12506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12507 else
12508 # We preserve .a as extension for shared libraries through AIX4.2
12509 # and later when we are not doing run time linking.
12510 library_names_spec='${libname}${release}.a $libname.a'
12511 soname_spec='${libname}${release}${shared_ext}$major'
12512 fi
12513 shlibpath_var=LIBPATH
12514 fi
12515 ;;
12516
12517 amigaos*)
12518 library_names_spec='$libname.ixlibrary $libname.a'
12519 # Create ${libname}_ixlibrary.a entries in /sys/libs.
12520 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'
12521 ;;
12522
12523 beos*)
12524 library_names_spec='${libname}${shared_ext}'
12525 dynamic_linker="$host_os ld.so"
12526 shlibpath_var=LIBRARY_PATH
12527 ;;
12528
12529 bsdi[45]*)
12530 version_type=linux
12531 need_version=no
12532 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12533 soname_spec='${libname}${release}${shared_ext}$major'
12534 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
12535 shlibpath_var=LD_LIBRARY_PATH
12536 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
12537 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
12538 # the default ld.so.conf also contains /usr/contrib/lib and
12539 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
12540 # libtool to hard-code these into programs
12541 ;;
12542
12543 cygwin* | mingw* | pw32*)
12544 version_type=windows
12545 shrext_cmds=".dll"
12546 need_version=no
12547 need_lib_prefix=no
12548
12549 case $GCC,$host_os in
12550 yes,cygwin* | yes,mingw* | yes,pw32*)
12551 library_names_spec='$libname.dll.a'
12552 # DLL is installed to $(libdir)/../bin by postinstall_cmds
12553 postinstall_cmds='base_file=`basename \${file}`~
12554 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
12555 dldir=$destdir/`dirname \$dlpath`~
12556 test -d \$dldir || mkdir -p \$dldir~
12557 $install_prog $dir/$dlname \$dldir/$dlname~
12558 chmod a+x \$dldir/$dlname'
12559 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
12560 dlpath=$dir/\$dldll~
12561 $rm \$dlpath'
12562 shlibpath_overrides_runpath=yes
12563
12564 case $host_os in
12565 cygwin*)
12566 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
12567 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12568 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
12569 ;;
12570 mingw*)
12571 # MinGW DLLs use traditional 'lib' prefix
12572 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12573 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
12574 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
12575 # It is most probably a Windows format PATH printed by
12576 # mingw gcc, but we are running on Cygwin. Gcc prints its search
12577 # path with ; separators, and with drive letters. We can handle the
12578 # drive letters (cygwin fileutils understands them), so leave them,
12579 # especially as we might pass files found there to a mingw objdump,
12580 # which wouldn't understand a cygwinified path. Ahh.
12581 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
12582 else
12583 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
12584 fi
12585 ;;
12586 pw32*)
12587 # pw32 DLLs use 'pw' prefix rather than 'lib'
12588 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
12589 ;;
12590 esac
12591 ;;
12592
12593 *)
12594 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
12595 ;;
12596 esac
12597 dynamic_linker='Win32 ld.exe'
12598 # FIXME: first we should search . and the directory the executable is in
12599 shlibpath_var=PATH
12600 ;;
12601
12602 darwin* | rhapsody*)
12603 dynamic_linker="$host_os dyld"
12604 version_type=darwin
12605 need_lib_prefix=no
12606 need_version=no
12607 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
12608 soname_spec='${libname}${release}${major}$shared_ext'
12609 shlibpath_overrides_runpath=yes
12610 shlibpath_var=DYLD_LIBRARY_PATH
12611 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
12612
12613 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
12614 ;;
12615
12616 dgux*)
12617 version_type=linux
12618 need_lib_prefix=no
12619 need_version=no
12620 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
12621 soname_spec='${libname}${release}${shared_ext}$major'
12622 shlibpath_var=LD_LIBRARY_PATH
12623 ;;
12624
12625 freebsd1*)
12626 dynamic_linker=no
12627 ;;
12628
12629 freebsd* | dragonfly*)
12630 # DragonFly does not have aout. When/if they implement a new
12631 # versioning mechanism, adjust this.
12632 if test -x /usr/bin/objformat; then
12633 objformat=`/usr/bin/objformat`
12634 else
12635 case $host_os in
12636 freebsd[123]*) objformat=aout ;;
12637 *) objformat=elf ;;
12638 esac
12639 fi
12640 version_type=freebsd-$objformat
12641 case $version_type in
12642 freebsd-elf*)
12643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12644 need_version=no
12645 need_lib_prefix=no
12646 ;;
12647 freebsd-*)
12648 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
12649 need_version=yes
12650 ;;
12651 esac
12652 shlibpath_var=LD_LIBRARY_PATH
12653 case $host_os in
12654 freebsd2*)
12655 shlibpath_overrides_runpath=yes
12656 ;;
12657 freebsd3.[01]* | freebsdelf3.[01]*)
12658 shlibpath_overrides_runpath=yes
12659 hardcode_into_libs=yes
12660 ;;
12661 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
12662 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
12663 shlibpath_overrides_runpath=no
12664 hardcode_into_libs=yes
12665 ;;
12666 *) # from 4.6 on, and DragonFly
12667 shlibpath_overrides_runpath=yes
12668 hardcode_into_libs=yes
12669 ;;
12670 esac
12671 ;;
12672
12673 gnu*)
12674 version_type=linux
12675 need_lib_prefix=no
12676 need_version=no
12677 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
12678 soname_spec='${libname}${release}${shared_ext}$major'
12679 shlibpath_var=LD_LIBRARY_PATH
12680 hardcode_into_libs=yes
12681 ;;
12682
12683 hpux9* | hpux10* | hpux11*)
12684 # Give a soname corresponding to the major version so that dld.sl refuses to
12685 # link against other versions.
12686 version_type=sunos
12687 need_lib_prefix=no
12688 need_version=no
12689 case $host_cpu in
12690 ia64*)
12691 shrext_cmds='.so'
12692 hardcode_into_libs=yes
12693 dynamic_linker="$host_os dld.so"
12694 shlibpath_var=LD_LIBRARY_PATH
12695 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12697 soname_spec='${libname}${release}${shared_ext}$major'
12698 if test "X$HPUX_IA64_MODE" = X32; then
12699 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
12700 else
12701 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
12702 fi
12703 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12704 ;;
12705 hppa*64*)
12706 shrext_cmds='.sl'
12707 hardcode_into_libs=yes
12708 dynamic_linker="$host_os dld.sl"
12709 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
12710 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
12711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12712 soname_spec='${libname}${release}${shared_ext}$major'
12713 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
12714 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
12715 ;;
12716 *)
12717 shrext_cmds='.sl'
12718 dynamic_linker="$host_os dld.sl"
12719 shlibpath_var=SHLIB_PATH
12720 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
12721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12722 soname_spec='${libname}${release}${shared_ext}$major'
12723 ;;
12724 esac
12725 # HP-UX runs *really* slowly unless shared libraries are mode 555.
12726 postinstall_cmds='chmod 555 $lib'
12727 ;;
12728
12729 interix[3-9]*)
12730 version_type=linux
12731 need_lib_prefix=no
12732 need_version=no
12733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12734 soname_spec='${libname}${release}${shared_ext}$major'
12735 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12736 shlibpath_var=LD_LIBRARY_PATH
12737 shlibpath_overrides_runpath=no
12738 hardcode_into_libs=yes
12739 ;;
12740
12741 irix5* | irix6* | nonstopux*)
12742 case $host_os in
12743 nonstopux*) version_type=nonstopux ;;
12744 *)
12745 if test "$lt_cv_prog_gnu_ld" = yes; then
12746 version_type=linux
12747 else
12748 version_type=irix
12749 fi ;;
12750 esac
12751 need_lib_prefix=no
12752 need_version=no
12753 soname_spec='${libname}${release}${shared_ext}$major'
12754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12755 case $host_os in
12756 irix5* | nonstopux*)
12757 libsuff= shlibsuff=
12758 ;;
12759 *)
12760 case $LD in # libtool.m4 will add one of these switches to LD
12761 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12762 libsuff= shlibsuff= libmagic=32-bit;;
12763 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12764 libsuff=32 shlibsuff=N32 libmagic=N32;;
12765 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12766 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12767 *) libsuff= shlibsuff= libmagic=never-match;;
12768 esac
12769 ;;
12770 esac
12771 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12772 shlibpath_overrides_runpath=no
12773 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12774 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12775 hardcode_into_libs=yes
12776 ;;
12777
12778 # No shared lib support for Linux oldld, aout, or coff.
12779 linux*oldld* | linux*aout* | linux*coff*)
12780 dynamic_linker=no
12781 ;;
12782
12783 # This must be Linux ELF.
12784 linux* | k*bsd*-gnu)
12785 version_type=linux
12786 need_lib_prefix=no
12787 need_version=no
12788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12789 soname_spec='${libname}${release}${shared_ext}$major'
12790 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12791 shlibpath_var=LD_LIBRARY_PATH
12792 shlibpath_overrides_runpath=no
12793 # This implies no fast_install, which is unacceptable.
12794 # Some rework will be needed to allow for fast_install
12795 # before this can be enabled.
12796 hardcode_into_libs=yes
12797 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12798 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12799
12800 # Append ld.so.conf contents to the search path
12801 if test -f /etc/ld.so.conf; then
12802 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
12803 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
12804 fi
12805
12806 # We used to test for /lib/ld.so.1 and disable shared libraries on
12807 # powerpc, because MkLinux only supported shared libraries with the
12808 # GNU dynamic linker. Since this was broken with cross compilers,
12809 # most powerpc-linux boxes support dynamic linking these days and
12810 # people can always --disable-shared, the test was removed, and we
12811 # assume the GNU/Linux dynamic linker is in use.
12812 dynamic_linker='GNU/Linux ld.so'
12813 ;;
12814
12815 netbsd*)
12816 version_type=sunos
12817 need_lib_prefix=no
12818 need_version=no
12819 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12821 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12822 dynamic_linker='NetBSD (a.out) ld.so'
12823 else
12824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12825 soname_spec='${libname}${release}${shared_ext}$major'
12826 dynamic_linker='NetBSD ld.elf_so'
12827 fi
12828 shlibpath_var=LD_LIBRARY_PATH
12829 shlibpath_overrides_runpath=yes
12830 hardcode_into_libs=yes
12831 ;;
12832
12833 newsos6)
12834 version_type=linux
12835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12836 shlibpath_var=LD_LIBRARY_PATH
12837 shlibpath_overrides_runpath=yes
12838 ;;
12839
12840 nto-qnx*)
12841 version_type=linux
12842 need_lib_prefix=no
12843 need_version=no
12844 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12845 soname_spec='${libname}${release}${shared_ext}$major'
12846 shlibpath_var=LD_LIBRARY_PATH
12847 shlibpath_overrides_runpath=yes
12848 ;;
12849
12850 openbsd*)
12851 version_type=sunos
12852 sys_lib_dlsearch_path_spec="/usr/lib"
12853 need_lib_prefix=no
12854 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12855 case $host_os in
12856 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12857 *) need_version=no ;;
12858 esac
12859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12860 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12861 shlibpath_var=LD_LIBRARY_PATH
12862 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12863 case $host_os in
12864 openbsd2.[89] | openbsd2.[89].*)
12865 shlibpath_overrides_runpath=no
12866 ;;
12867 *)
12868 shlibpath_overrides_runpath=yes
12869 ;;
12870 esac
12871 else
12872 shlibpath_overrides_runpath=yes
12873 fi
12874 ;;
12875
12876 os2*)
12877 libname_spec='$name'
12878 shrext_cmds=".dll"
12879 need_lib_prefix=no
12880 library_names_spec='$libname${shared_ext} $libname.a'
12881 dynamic_linker='OS/2 ld.exe'
12882 shlibpath_var=LIBPATH
12883 ;;
12884
12885 osf3* | osf4* | osf5*)
12886 version_type=osf
12887 need_lib_prefix=no
12888 need_version=no
12889 soname_spec='${libname}${release}${shared_ext}$major'
12890 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12891 shlibpath_var=LD_LIBRARY_PATH
12892 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12893 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12894 ;;
12895
12896 rdos*)
12897 dynamic_linker=no
12898 ;;
12899
12900 solaris*)
12901 version_type=linux
12902 need_lib_prefix=no
12903 need_version=no
12904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12905 soname_spec='${libname}${release}${shared_ext}$major'
12906 shlibpath_var=LD_LIBRARY_PATH
12907 shlibpath_overrides_runpath=yes
12908 hardcode_into_libs=yes
12909 # ldd complains unless libraries are executable
12910 postinstall_cmds='chmod +x $lib'
12911 ;;
12912
12913 sunos4*)
12914 version_type=sunos
12915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12916 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12917 shlibpath_var=LD_LIBRARY_PATH
12918 shlibpath_overrides_runpath=yes
12919 if test "$with_gnu_ld" = yes; then
12920 need_lib_prefix=no
12921 fi
12922 need_version=yes
12923 ;;
12924
12925 sysv4 | sysv4.3*)
12926 version_type=linux
12927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12928 soname_spec='${libname}${release}${shared_ext}$major'
12929 shlibpath_var=LD_LIBRARY_PATH
12930 case $host_vendor in
12931 sni)
12932 shlibpath_overrides_runpath=no
12933 need_lib_prefix=no
12934 export_dynamic_flag_spec='${wl}-Blargedynsym'
12935 runpath_var=LD_RUN_PATH
12936 ;;
12937 siemens)
12938 need_lib_prefix=no
12939 ;;
12940 motorola)
12941 need_lib_prefix=no
12942 need_version=no
12943 shlibpath_overrides_runpath=no
12944 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12945 ;;
12946 esac
12947 ;;
12948
12949 sysv4*MP*)
12950 if test -d /usr/nec ;then
12951 version_type=linux
12952 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12953 soname_spec='$libname${shared_ext}.$major'
12954 shlibpath_var=LD_LIBRARY_PATH
12955 fi
12956 ;;
12957
12958 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12959 version_type=freebsd-elf
12960 need_lib_prefix=no
12961 need_version=no
12962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12963 soname_spec='${libname}${release}${shared_ext}$major'
12964 shlibpath_var=LD_LIBRARY_PATH
12965 hardcode_into_libs=yes
12966 if test "$with_gnu_ld" = yes; then
12967 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12968 shlibpath_overrides_runpath=no
12969 else
12970 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12971 shlibpath_overrides_runpath=yes
12972 case $host_os in
12973 sco3.2v5*)
12974 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12975 ;;
12976 esac
12977 fi
12978 sys_lib_dlsearch_path_spec='/usr/lib'
12979 ;;
12980
12981 uts4*)
12982 version_type=linux
12983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12984 soname_spec='${libname}${release}${shared_ext}$major'
12985 shlibpath_var=LD_LIBRARY_PATH
12986 ;;
12987
12988 *)
12989 dynamic_linker=no
12990 ;;
12991 esac
12992 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
12993 echo "${ECHO_T}$dynamic_linker" >&6
12994 test "$dynamic_linker" = no && can_build_shared=no
12995
12996 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12997 echo $ECHO_N "(cached) $ECHO_C" >&6
12998 else
12999 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
13000 fi
13001
13002 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
13003 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
13004 echo $ECHO_N "(cached) $ECHO_C" >&6
13005 else
13006 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
13007 fi
13008
13009 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
13010
13011 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13012 if test "$GCC" = yes; then
13013 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13014 fi
13015
13016 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13017 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13018 hardcode_action_CXX=
13019 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13020 test -n "$runpath_var_CXX" || \
13021 test "X$hardcode_automatic_CXX" = "Xyes" ; then
13022
13023 # We can hardcode non-existant directories.
13024 if test "$hardcode_direct_CXX" != no &&
13025 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13026 # have to relink, otherwise we might link with an installed library
13027 # when we should be linking with a yet-to-be-installed one
13028 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13029 test "$hardcode_minus_L_CXX" != no; then
13030 # Linking always hardcodes the temporary library directory.
13031 hardcode_action_CXX=relink
13032 else
13033 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13034 hardcode_action_CXX=immediate
13035 fi
13036 else
13037 # We cannot hardcode anything, or else we can only hardcode existing
13038 # directories.
13039 hardcode_action_CXX=unsupported
13040 fi
13041 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13042 echo "${ECHO_T}$hardcode_action_CXX" >&6
13043
13044 if test "$hardcode_action_CXX" = relink; then
13045 # Fast installation is not supported
13046 enable_fast_install=no
13047 elif test "$shlibpath_overrides_runpath" = yes ||
13048 test "$enable_shared" = no; then
13049 # Fast installation is not necessary
13050 enable_fast_install=needless
13051 fi
13052
13053
13054 # The else clause should only fire when bootstrapping the
13055 # libtool distribution, otherwise you forgot to ship ltmain.sh
13056 # with your package, and you will get complaints that there are
13057 # no rules to generate ltmain.sh.
13058 if test -f "$ltmain"; then
13059 # See if we are running on zsh, and set the options which allow our commands through
13060 # without removal of \ escapes.
13061 if test -n "${ZSH_VERSION+set}" ; then
13062 setopt NO_GLOB_SUBST
13063 fi
13064 # Now quote all the things that may contain metacharacters while being
13065 # careful not to overquote the AC_SUBSTed values. We take copies of the
13066 # variables and quote the copies for generation of the libtool script.
13067 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
13068 SED SHELL STRIP \
13069 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
13070 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
13071 deplibs_check_method reload_flag reload_cmds need_locks \
13072 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
13073 lt_cv_sys_global_symbol_to_c_name_address \
13074 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
13075 old_postinstall_cmds old_postuninstall_cmds \
13076 compiler_CXX \
13077 CC_CXX \
13078 LD_CXX \
13079 lt_prog_compiler_wl_CXX \
13080 lt_prog_compiler_pic_CXX \
13081 lt_prog_compiler_static_CXX \
13082 lt_prog_compiler_no_builtin_flag_CXX \
13083 export_dynamic_flag_spec_CXX \
13084 thread_safe_flag_spec_CXX \
13085 whole_archive_flag_spec_CXX \
13086 enable_shared_with_static_runtimes_CXX \
13087 old_archive_cmds_CXX \
13088 old_archive_from_new_cmds_CXX \
13089 predep_objects_CXX \
13090 postdep_objects_CXX \
13091 predeps_CXX \
13092 postdeps_CXX \
13093 compiler_lib_search_path_CXX \
13094 compiler_lib_search_dirs_CXX \
13095 archive_cmds_CXX \
13096 archive_expsym_cmds_CXX \
13097 postinstall_cmds_CXX \
13098 postuninstall_cmds_CXX \
13099 old_archive_from_expsyms_cmds_CXX \
13100 allow_undefined_flag_CXX \
13101 no_undefined_flag_CXX \
13102 export_symbols_cmds_CXX \
13103 hardcode_libdir_flag_spec_CXX \
13104 hardcode_libdir_flag_spec_ld_CXX \
13105 hardcode_libdir_separator_CXX \
13106 hardcode_automatic_CXX \
13107 module_cmds_CXX \
13108 module_expsym_cmds_CXX \
13109 lt_cv_prog_compiler_c_o_CXX \
13110 fix_srcfile_path_CXX \
13111 exclude_expsyms_CXX \
13112 include_expsyms_CXX; do
13113
13114 case $var in
13115 old_archive_cmds_CXX | \
13116 old_archive_from_new_cmds_CXX | \
13117 archive_cmds_CXX | \
13118 archive_expsym_cmds_CXX | \
13119 module_cmds_CXX | \
13120 module_expsym_cmds_CXX | \
13121 old_archive_from_expsyms_cmds_CXX | \
13122 export_symbols_cmds_CXX | \
13123 extract_expsyms_cmds | reload_cmds | finish_cmds | \
13124 postinstall_cmds | postuninstall_cmds | \
13125 old_postinstall_cmds | old_postuninstall_cmds | \
13126 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
13127 # Double-quote double-evaled strings.
13128 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
13129 ;;
13130 *)
13131 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
13132 ;;
13133 esac
13134 done
13135
13136 case $lt_echo in
13137 *'\$0 --fallback-echo"')
13138 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
13139 ;;
13140 esac
13141
13142 cfgfile="$ofile"
13143
13144 cat <<__EOF__ >> "$cfgfile"
13145 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
13146
13147 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
13148
13149 # Shell to use when invoking shell scripts.
13150 SHELL=$lt_SHELL
13151
13152 # Whether or not to build shared libraries.
13153 build_libtool_libs=$enable_shared
13154
13155 # Whether or not to build static libraries.
13156 build_old_libs=$enable_static
13157
13158 # Whether or not to add -lc for building shared libraries.
13159 build_libtool_need_lc=$archive_cmds_need_lc_CXX
13160
13161 # Whether or not to disallow shared libs when runtime libs are static
13162 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
13163
13164 # Whether or not to optimize for fast installation.
13165 fast_install=$enable_fast_install
13166
13167 # The host system.
13168 host_alias=$host_alias
13169 host=$host
13170 host_os=$host_os
13171
13172 # The build system.
13173 build_alias=$build_alias
13174 build=$build
13175 build_os=$build_os
13176
13177 # An echo program that does not interpret backslashes.
13178 echo=$lt_echo
13179
13180 # The archiver.
13181 AR=$lt_AR
13182 AR_FLAGS=$lt_AR_FLAGS
13183
13184 # A C compiler.
13185 LTCC=$lt_LTCC
13186
13187 # LTCC compiler flags.
13188 LTCFLAGS=$lt_LTCFLAGS
13189
13190 # A language-specific compiler.
13191 CC=$lt_compiler_CXX
13192
13193 # Is the compiler the GNU C compiler?
13194 with_gcc=$GCC_CXX
13195
13196 # An ERE matcher.
13197 EGREP=$lt_EGREP
13198
13199 # The linker used to build libraries.
13200 LD=$lt_LD_CXX
13201
13202 # Whether we need hard or soft links.
13203 LN_S=$lt_LN_S
13204
13205 # A BSD-compatible nm program.
13206 NM=$lt_NM
13207
13208 # A symbol stripping program
13209 STRIP=$lt_STRIP
13210
13211 # Used to examine libraries when file_magic_cmd begins "file"
13212 MAGIC_CMD=$MAGIC_CMD
13213
13214 # Used on cygwin: DLL creation program.
13215 DLLTOOL="$DLLTOOL"
13216
13217 # Used on cygwin: object dumper.
13218 OBJDUMP="$OBJDUMP"
13219
13220 # Used on cygwin: assembler.
13221 AS="$AS"
13222
13223 # The name of the directory that contains temporary libtool files.
13224 objdir=$objdir
13225
13226 # How to create reloadable object files.
13227 reload_flag=$lt_reload_flag
13228 reload_cmds=$lt_reload_cmds
13229
13230 # How to pass a linker flag through the compiler.
13231 wl=$lt_lt_prog_compiler_wl_CXX
13232
13233 # Object file suffix (normally "o").
13234 objext="$ac_objext"
13235
13236 # Old archive suffix (normally "a").
13237 libext="$libext"
13238
13239 # Shared library suffix (normally ".so").
13240 shrext_cmds='$shrext_cmds'
13241
13242 # Executable file suffix (normally "").
13243 exeext="$exeext"
13244
13245 # Additional compiler flags for building library objects.
13246 pic_flag=$lt_lt_prog_compiler_pic_CXX
13247 pic_mode=$pic_mode
13248
13249 # What is the maximum length of a command?
13250 max_cmd_len=$lt_cv_sys_max_cmd_len
13251
13252 # Does compiler simultaneously support -c and -o options?
13253 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
13254
13255 # Must we lock files when doing compilation?
13256 need_locks=$lt_need_locks
13257
13258 # Do we need the lib prefix for modules?
13259 need_lib_prefix=$need_lib_prefix
13260
13261 # Do we need a version for libraries?
13262 need_version=$need_version
13263
13264 # Whether dlopen is supported.
13265 dlopen_support=$enable_dlopen
13266
13267 # Whether dlopen of programs is supported.
13268 dlopen_self=$enable_dlopen_self
13269
13270 # Whether dlopen of statically linked programs is supported.
13271 dlopen_self_static=$enable_dlopen_self_static
13272
13273 # Compiler flag to prevent dynamic linking.
13274 link_static_flag=$lt_lt_prog_compiler_static_CXX
13275
13276 # Compiler flag to turn off builtin functions.
13277 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
13278
13279 # Compiler flag to allow reflexive dlopens.
13280 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
13281
13282 # Compiler flag to generate shared objects directly from archives.
13283 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
13284
13285 # Compiler flag to generate thread-safe objects.
13286 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
13287
13288 # Library versioning type.
13289 version_type=$version_type
13290
13291 # Format of library name prefix.
13292 libname_spec=$lt_libname_spec
13293
13294 # List of archive names. First name is the real one, the rest are links.
13295 # The last name is the one that the linker finds with -lNAME.
13296 library_names_spec=$lt_library_names_spec
13297
13298 # The coded name of the library, if different from the real name.
13299 soname_spec=$lt_soname_spec
13300
13301 # Commands used to build and install an old-style archive.
13302 RANLIB=$lt_RANLIB
13303 old_archive_cmds=$lt_old_archive_cmds_CXX
13304 old_postinstall_cmds=$lt_old_postinstall_cmds
13305 old_postuninstall_cmds=$lt_old_postuninstall_cmds
13306
13307 # Create an old-style archive from a shared archive.
13308 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
13309
13310 # Create a temporary old-style archive to link instead of a shared archive.
13311 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
13312
13313 # Commands used to build and install a shared archive.
13314 archive_cmds=$lt_archive_cmds_CXX
13315 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
13316 postinstall_cmds=$lt_postinstall_cmds
13317 postuninstall_cmds=$lt_postuninstall_cmds
13318
13319 # Commands used to build a loadable module (assumed same as above if empty)
13320 module_cmds=$lt_module_cmds_CXX
13321 module_expsym_cmds=$lt_module_expsym_cmds_CXX
13322
13323 # Commands to strip libraries.
13324 old_striplib=$lt_old_striplib
13325 striplib=$lt_striplib
13326
13327 # Dependencies to place before the objects being linked to create a
13328 # shared library.
13329 predep_objects=$lt_predep_objects_CXX
13330
13331 # Dependencies to place after the objects being linked to create a
13332 # shared library.
13333 postdep_objects=$lt_postdep_objects_CXX
13334
13335 # Dependencies to place before the objects being linked to create a
13336 # shared library.
13337 predeps=$lt_predeps_CXX
13338
13339 # Dependencies to place after the objects being linked to create a
13340 # shared library.
13341 postdeps=$lt_postdeps_CXX
13342
13343 # The directories searched by this compiler when creating a shared
13344 # library
13345 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
13346
13347 # The library search path used internally by the compiler when linking
13348 # a shared library.
13349 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
13350
13351 # Method to check whether dependent libraries are shared objects.
13352 deplibs_check_method=$lt_deplibs_check_method
13353
13354 # Command to use when deplibs_check_method == file_magic.
13355 file_magic_cmd=$lt_file_magic_cmd
13356
13357 # Flag that allows shared libraries with undefined symbols to be built.
13358 allow_undefined_flag=$lt_allow_undefined_flag_CXX
13359
13360 # Flag that forces no undefined symbols.
13361 no_undefined_flag=$lt_no_undefined_flag_CXX
13362
13363 # Commands used to finish a libtool library installation in a directory.
13364 finish_cmds=$lt_finish_cmds
13365
13366 # Same as above, but a single script fragment to be evaled but not shown.
13367 finish_eval=$lt_finish_eval
13368
13369 # Take the output of nm and produce a listing of raw symbols and C names.
13370 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
13371
13372 # Transform the output of nm in a proper C declaration
13373 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
13374
13375 # Transform the output of nm in a C name address pair
13376 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
13377
13378 # This is the shared library runtime path variable.
13379 runpath_var=$runpath_var
13380
13381 # This is the shared library path variable.
13382 shlibpath_var=$shlibpath_var
13383
13384 # Is shlibpath searched before the hard-coded library search path?
13385 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
13386
13387 # How to hardcode a shared library path into an executable.
13388 hardcode_action=$hardcode_action_CXX
13389
13390 # Whether we should hardcode library paths into libraries.
13391 hardcode_into_libs=$hardcode_into_libs
13392
13393 # Flag to hardcode \$libdir into a binary during linking.
13394 # This must work even if \$libdir does not exist.
13395 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
13396
13397 # If ld is used when linking, flag to hardcode \$libdir into
13398 # a binary during linking. This must work even if \$libdir does
13399 # not exist.
13400 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
13401
13402 # Whether we need a single -rpath flag with a separated argument.
13403 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
13404
13405 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
13406 # resulting binary.
13407 hardcode_direct=$hardcode_direct_CXX
13408
13409 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
13410 # resulting binary.
13411 hardcode_minus_L=$hardcode_minus_L_CXX
13412
13413 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
13414 # the resulting binary.
13415 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
13416
13417 # Set to yes if building a shared library automatically hardcodes DIR into the library
13418 # and all subsequent libraries and executables linked against it.
13419 hardcode_automatic=$hardcode_automatic_CXX
13420
13421 # Variables whose values should be saved in libtool wrapper scripts and
13422 # restored at relink time.
13423 variables_saved_for_relink="$variables_saved_for_relink"
13424
13425 # Whether libtool must link a program against all its dependency libraries.
13426 link_all_deplibs=$link_all_deplibs_CXX
13427
13428 # Compile-time system search path for libraries
13429 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
13430
13431 # Run-time system search path for libraries
13432 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
13433
13434 # Fix the shell variable \$srcfile for the compiler.
13435 fix_srcfile_path=$lt_fix_srcfile_path
13436
13437 # Set to yes if exported symbols are required.
13438 always_export_symbols=$always_export_symbols_CXX
13439
13440 # The commands to list exported symbols.
13441 export_symbols_cmds=$lt_export_symbols_cmds_CXX
13442
13443 # The commands to extract the exported symbol list from a shared archive.
13444 extract_expsyms_cmds=$lt_extract_expsyms_cmds
13445
13446 # Symbols that should not be listed in the preloaded symbols.
13447 exclude_expsyms=$lt_exclude_expsyms_CXX
13448
13449 # Symbols that must always be exported.
13450 include_expsyms=$lt_include_expsyms_CXX
13451
13452 # ### END LIBTOOL TAG CONFIG: $tagname
13453
13454 __EOF__
13455
13456
13457 else
13458 # If there is no Makefile yet, we rely on a make rule to execute
13459 # `config.status --recheck' to rerun these tests and create the
13460 # libtool script then.
13461 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
13462 if test -f "$ltmain_in"; then
13463 test -f Makefile && make "$ltmain"
13464 fi
13465 fi
13466
13467
13468 ac_ext=c
13469 ac_cpp='$CPP $CPPFLAGS'
13470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13473
13474 CC=$lt_save_CC
13475 LDCXX=$LD
13476 LD=$lt_save_LD
13477 GCC=$lt_save_GCC
13478 with_gnu_ldcxx=$with_gnu_ld
13479 with_gnu_ld=$lt_save_with_gnu_ld
13480 lt_cv_path_LDCXX=$lt_cv_path_LD
13481 lt_cv_path_LD=$lt_save_path_LD
13482 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
13483 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
13484
13485 else
13486 tagname=""
13487 fi
13488 ;;
13489
13490 F77)
13491 if test -n "$F77" && test "X$F77" != "Xno"; then
13492
13493 ac_ext=f
13494 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
13495 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13496 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
13497
13498
13499 archive_cmds_need_lc_F77=no
13500 allow_undefined_flag_F77=
13501 always_export_symbols_F77=no
13502 archive_expsym_cmds_F77=
13503 export_dynamic_flag_spec_F77=
13504 hardcode_direct_F77=no
13505 hardcode_libdir_flag_spec_F77=
13506 hardcode_libdir_flag_spec_ld_F77=
13507 hardcode_libdir_separator_F77=
13508 hardcode_minus_L_F77=no
13509 hardcode_automatic_F77=no
13510 module_cmds_F77=
13511 module_expsym_cmds_F77=
13512 link_all_deplibs_F77=unknown
13513 old_archive_cmds_F77=$old_archive_cmds
13514 no_undefined_flag_F77=
13515 whole_archive_flag_spec_F77=
13516 enable_shared_with_static_runtimes_F77=no
13517
13518 # Source file extension for f77 test sources.
13519 ac_ext=f
13520
13521 # Object file extension for compiled f77 test sources.
13522 objext=o
13523 objext_F77=$objext
13524
13525 # Code to be used in simple compile tests
13526 lt_simple_compile_test_code="\
13527 subroutine t
13528 return
13529 end
13530 "
13531
13532 # Code to be used in simple link tests
13533 lt_simple_link_test_code="\
13534 program t
13535 end
13536 "
13537
13538 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13539
13540 # If no C compiler was specified, use CC.
13541 LTCC=${LTCC-"$CC"}
13542
13543 # If no C compiler flags were specified, use CFLAGS.
13544 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13545
13546 # Allow CC to be a program name with arguments.
13547 compiler=$CC
13548
13549
13550 # save warnings/boilerplate of simple test code
13551 ac_outfile=conftest.$ac_objext
13552 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13553 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13554 _lt_compiler_boilerplate=`cat conftest.err`
13555 $rm conftest*
13556
13557 ac_outfile=conftest.$ac_objext
13558 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13559 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13560 _lt_linker_boilerplate=`cat conftest.err`
13561 $rm -r conftest*
13562
13563
13564 # Allow CC to be a program name with arguments.
13565 lt_save_CC="$CC"
13566 CC=${F77-"f77"}
13567 compiler=$CC
13568 compiler_F77=$CC
13569 for cc_temp in $compiler""; do
13570 case $cc_temp in
13571 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13572 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13573 \-*) ;;
13574 *) break;;
13575 esac
13576 done
13577 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
13578
13579
13580 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
13581 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
13582 echo "$as_me:$LINENO: result: $can_build_shared" >&5
13583 echo "${ECHO_T}$can_build_shared" >&6
13584
13585 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
13586 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
13587 test "$can_build_shared" = "no" && enable_shared=no
13588
13589 # On AIX, shared libraries and static libraries use the same namespace, and
13590 # are all built from PIC.
13591 case $host_os in
13592 aix3*)
13593 test "$enable_shared" = yes && enable_static=no
13594 if test -n "$RANLIB"; then
13595 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13596 postinstall_cmds='$RANLIB $lib'
13597 fi
13598 ;;
13599 aix[4-9]*)
13600 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13601 test "$enable_shared" = yes && enable_static=no
13602 fi
13603 ;;
13604 esac
13605 echo "$as_me:$LINENO: result: $enable_shared" >&5
13606 echo "${ECHO_T}$enable_shared" >&6
13607
13608 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
13609 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
13610 # Make sure either enable_shared or enable_static is yes.
13611 test "$enable_shared" = yes || enable_static=yes
13612 echo "$as_me:$LINENO: result: $enable_static" >&5
13613 echo "${ECHO_T}$enable_static" >&6
13614
13615 GCC_F77="$G77"
13616 LD_F77="$LD"
13617
13618 lt_prog_compiler_wl_F77=
13619 lt_prog_compiler_pic_F77=
13620 lt_prog_compiler_static_F77=
13621
13622 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
13623 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
13624
13625 if test "$GCC" = yes; then
13626 lt_prog_compiler_wl_F77='-Wl,'
13627 lt_prog_compiler_static_F77='-static'
13628
13629 case $host_os in
13630 aix*)
13631 # All AIX code is PIC.
13632 if test "$host_cpu" = ia64; then
13633 # AIX 5 now supports IA64 processor
13634 lt_prog_compiler_static_F77='-Bstatic'
13635 fi
13636 ;;
13637
13638 amigaos*)
13639 # FIXME: we need at least 68020 code to build shared libraries, but
13640 # adding the `-m68020' flag to GCC prevents building anything better,
13641 # like `-m68040'.
13642 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
13643 ;;
13644
13645 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13646 # PIC is the default for these OSes.
13647 ;;
13648
13649 mingw* | cygwin* | pw32* | os2*)
13650 # This hack is so that the source file can tell whether it is being
13651 # built for inclusion in a dll (and should export symbols for example).
13652 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13653 # (--disable-auto-import) libraries
13654 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13655 ;;
13656
13657 darwin* | rhapsody*)
13658 # PIC is the default on this platform
13659 # Common symbols not allowed in MH_DYLIB files
13660 lt_prog_compiler_pic_F77='-fno-common'
13661 ;;
13662
13663 interix[3-9]*)
13664 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13665 # Instead, we relocate shared libraries at runtime.
13666 ;;
13667
13668 msdosdjgpp*)
13669 # Just because we use GCC doesn't mean we suddenly get shared libraries
13670 # on systems that don't support them.
13671 lt_prog_compiler_can_build_shared_F77=no
13672 enable_shared=no
13673 ;;
13674
13675 sysv4*MP*)
13676 if test -d /usr/nec; then
13677 lt_prog_compiler_pic_F77=-Kconform_pic
13678 fi
13679 ;;
13680
13681 hpux*)
13682 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13683 # not for PA HP-UX.
13684 case $host_cpu in
13685 hppa*64*|ia64*)
13686 # +Z the default
13687 ;;
13688 *)
13689 lt_prog_compiler_pic_F77='-fPIC'
13690 ;;
13691 esac
13692 ;;
13693
13694 *)
13695 lt_prog_compiler_pic_F77='-fPIC'
13696 ;;
13697 esac
13698 else
13699 # PORTME Check for flag to pass linker flags through the system compiler.
13700 case $host_os in
13701 aix*)
13702 lt_prog_compiler_wl_F77='-Wl,'
13703 if test "$host_cpu" = ia64; then
13704 # AIX 5 now supports IA64 processor
13705 lt_prog_compiler_static_F77='-Bstatic'
13706 else
13707 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
13708 fi
13709 ;;
13710 darwin*)
13711 # PIC is the default on this platform
13712 # Common symbols not allowed in MH_DYLIB files
13713 case $cc_basename in
13714 xlc*)
13715 lt_prog_compiler_pic_F77='-qnocommon'
13716 lt_prog_compiler_wl_F77='-Wl,'
13717 ;;
13718 esac
13719 ;;
13720
13721 mingw* | cygwin* | pw32* | os2*)
13722 # This hack is so that the source file can tell whether it is being
13723 # built for inclusion in a dll (and should export symbols for example).
13724 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
13725 ;;
13726
13727 hpux9* | hpux10* | hpux11*)
13728 lt_prog_compiler_wl_F77='-Wl,'
13729 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13730 # not for PA HP-UX.
13731 case $host_cpu in
13732 hppa*64*|ia64*)
13733 # +Z the default
13734 ;;
13735 *)
13736 lt_prog_compiler_pic_F77='+Z'
13737 ;;
13738 esac
13739 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13740 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
13741 ;;
13742
13743 irix5* | irix6* | nonstopux*)
13744 lt_prog_compiler_wl_F77='-Wl,'
13745 # PIC (with -KPIC) is the default.
13746 lt_prog_compiler_static_F77='-non_shared'
13747 ;;
13748
13749 newsos6)
13750 lt_prog_compiler_pic_F77='-KPIC'
13751 lt_prog_compiler_static_F77='-Bstatic'
13752 ;;
13753
13754 linux* | k*bsd*-gnu)
13755 case $cc_basename in
13756 icc* | ecc*)
13757 lt_prog_compiler_wl_F77='-Wl,'
13758 lt_prog_compiler_pic_F77='-KPIC'
13759 lt_prog_compiler_static_F77='-static'
13760 ;;
13761 pgcc* | pgf77* | pgf90* | pgf95*)
13762 # Portland Group compilers (*not* the Pentium gcc compiler,
13763 # which looks to be a dead project)
13764 lt_prog_compiler_wl_F77='-Wl,'
13765 lt_prog_compiler_pic_F77='-fpic'
13766 lt_prog_compiler_static_F77='-Bstatic'
13767 ;;
13768 ccc*)
13769 lt_prog_compiler_wl_F77='-Wl,'
13770 # All Alpha code is PIC.
13771 lt_prog_compiler_static_F77='-non_shared'
13772 ;;
13773 *)
13774 case `$CC -V 2>&1 | sed 5q` in
13775 *Sun\ C*)
13776 # Sun C 5.9
13777 lt_prog_compiler_pic_F77='-KPIC'
13778 lt_prog_compiler_static_F77='-Bstatic'
13779 lt_prog_compiler_wl_F77='-Wl,'
13780 ;;
13781 *Sun\ F*)
13782 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13783 lt_prog_compiler_pic_F77='-KPIC'
13784 lt_prog_compiler_static_F77='-Bstatic'
13785 lt_prog_compiler_wl_F77=''
13786 ;;
13787 esac
13788 ;;
13789 esac
13790 ;;
13791
13792 osf3* | osf4* | osf5*)
13793 lt_prog_compiler_wl_F77='-Wl,'
13794 # All OSF/1 code is PIC.
13795 lt_prog_compiler_static_F77='-non_shared'
13796 ;;
13797
13798 rdos*)
13799 lt_prog_compiler_static_F77='-non_shared'
13800 ;;
13801
13802 solaris*)
13803 lt_prog_compiler_pic_F77='-KPIC'
13804 lt_prog_compiler_static_F77='-Bstatic'
13805 case $cc_basename in
13806 f77* | f90* | f95*)
13807 lt_prog_compiler_wl_F77='-Qoption ld ';;
13808 *)
13809 lt_prog_compiler_wl_F77='-Wl,';;
13810 esac
13811 ;;
13812
13813 sunos4*)
13814 lt_prog_compiler_wl_F77='-Qoption ld '
13815 lt_prog_compiler_pic_F77='-PIC'
13816 lt_prog_compiler_static_F77='-Bstatic'
13817 ;;
13818
13819 sysv4 | sysv4.2uw2* | sysv4.3*)
13820 lt_prog_compiler_wl_F77='-Wl,'
13821 lt_prog_compiler_pic_F77='-KPIC'
13822 lt_prog_compiler_static_F77='-Bstatic'
13823 ;;
13824
13825 sysv4*MP*)
13826 if test -d /usr/nec ;then
13827 lt_prog_compiler_pic_F77='-Kconform_pic'
13828 lt_prog_compiler_static_F77='-Bstatic'
13829 fi
13830 ;;
13831
13832 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13833 lt_prog_compiler_wl_F77='-Wl,'
13834 lt_prog_compiler_pic_F77='-KPIC'
13835 lt_prog_compiler_static_F77='-Bstatic'
13836 ;;
13837
13838 unicos*)
13839 lt_prog_compiler_wl_F77='-Wl,'
13840 lt_prog_compiler_can_build_shared_F77=no
13841 ;;
13842
13843 uts4*)
13844 lt_prog_compiler_pic_F77='-pic'
13845 lt_prog_compiler_static_F77='-Bstatic'
13846 ;;
13847
13848 *)
13849 lt_prog_compiler_can_build_shared_F77=no
13850 ;;
13851 esac
13852 fi
13853
13854 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
13855 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
13856
13857 #
13858 # Check to make sure the PIC flag actually works.
13859 #
13860 if test -n "$lt_prog_compiler_pic_F77"; then
13861
13862 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
13863 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
13864 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then
13865 echo $ECHO_N "(cached) $ECHO_C" >&6
13866 else
13867 lt_cv_prog_compiler_pic_works_F77=no
13868 ac_outfile=conftest.$ac_objext
13869 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13870 lt_compiler_flag="$lt_prog_compiler_pic_F77"
13871 # Insert the option either (1) after the last *FLAGS variable, or
13872 # (2) before a word containing "conftest.", or (3) at the end.
13873 # Note that $ac_compile itself does not contain backslashes and begins
13874 # with a dollar sign (not a hyphen), so the echo should work correctly.
13875 # The option is referenced via a variable to avoid confusing sed.
13876 lt_compile=`echo "$ac_compile" | $SED \
13877 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13878 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13879 -e 's:$: $lt_compiler_flag:'`
13880 (eval echo "\"\$as_me:13880: $lt_compile\"" >&5)
13881 (eval "$lt_compile" 2>conftest.err)
13882 ac_status=$?
13883 cat conftest.err >&5
13884 echo "$as_me:13884: \$? = $ac_status" >&5
13885 if (exit $ac_status) && test -s "$ac_outfile"; then
13886 # The compiler can only warn and ignore the option if not recognized
13887 # So say no if there are warnings other than the usual output.
13888 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
13889 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13890 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13891 lt_cv_prog_compiler_pic_works_F77=yes
13892 fi
13893 fi
13894 $rm conftest*
13895
13896 fi
13897 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_F77" >&5
13898 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_F77" >&6
13899
13900 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
13901 case $lt_prog_compiler_pic_F77 in
13902 "" | " "*) ;;
13903 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
13904 esac
13905 else
13906 lt_prog_compiler_pic_F77=
13907 lt_prog_compiler_can_build_shared_F77=no
13908 fi
13909
13910 fi
13911 case $host_os in
13912 # For platforms which do not support PIC, -DPIC is meaningless:
13913 *djgpp*)
13914 lt_prog_compiler_pic_F77=
13915 ;;
13916 *)
13917 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
13918 ;;
13919 esac
13920
13921 #
13922 # Check to make sure the static flag actually works.
13923 #
13924 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
13925 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13926 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
13927 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then
13928 echo $ECHO_N "(cached) $ECHO_C" >&6
13929 else
13930 lt_cv_prog_compiler_static_works_F77=no
13931 save_LDFLAGS="$LDFLAGS"
13932 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13933 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13934 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13935 # The linker can only warn and ignore the option if not recognized
13936 # So say no if there are warnings
13937 if test -s conftest.err; then
13938 # Append any errors to the config.log.
13939 cat conftest.err 1>&5
13940 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
13941 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13942 if diff conftest.exp conftest.er2 >/dev/null; then
13943 lt_cv_prog_compiler_static_works_F77=yes
13944 fi
13945 else
13946 lt_cv_prog_compiler_static_works_F77=yes
13947 fi
13948 fi
13949 $rm -r conftest*
13950 LDFLAGS="$save_LDFLAGS"
13951
13952 fi
13953 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_F77" >&5
13954 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_F77" >&6
13955
13956 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
13957 :
13958 else
13959 lt_prog_compiler_static_F77=
13960 fi
13961
13962
13963 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13964 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13965 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
13966 echo $ECHO_N "(cached) $ECHO_C" >&6
13967 else
13968 lt_cv_prog_compiler_c_o_F77=no
13969 $rm -r conftest 2>/dev/null
13970 mkdir conftest
13971 cd conftest
13972 mkdir out
13973 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13974
13975 lt_compiler_flag="-o out/conftest2.$ac_objext"
13976 # Insert the option either (1) after the last *FLAGS variable, or
13977 # (2) before a word containing "conftest.", or (3) at the end.
13978 # Note that $ac_compile itself does not contain backslashes and begins
13979 # with a dollar sign (not a hyphen), so the echo should work correctly.
13980 lt_compile=`echo "$ac_compile" | $SED \
13981 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13982 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13983 -e 's:$: $lt_compiler_flag:'`
13984 (eval echo "\"\$as_me:13984: $lt_compile\"" >&5)
13985 (eval "$lt_compile" 2>out/conftest.err)
13986 ac_status=$?
13987 cat out/conftest.err >&5
13988 echo "$as_me:13988: \$? = $ac_status" >&5
13989 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13990 then
13991 # The compiler can only warn and ignore the option if not recognized
13992 # So say no if there are warnings
13993 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
13994 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13995 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13996 lt_cv_prog_compiler_c_o_F77=yes
13997 fi
13998 fi
13999 chmod u+w . 2>&5
14000 $rm conftest*
14001 # SGI C++ compiler will create directory out/ii_files/ for
14002 # template instantiation
14003 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
14004 $rm out/* && rmdir out
14005 cd ..
14006 rmdir conftest
14007 $rm conftest*
14008
14009 fi
14010 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
14011 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
14012
14013
14014 hard_links="nottested"
14015 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
14016 # do not overwrite the value of need_locks provided by the user
14017 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
14018 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
14019 hard_links=yes
14020 $rm conftest*
14021 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14022 touch conftest.a
14023 ln conftest.a conftest.b 2>&5 || hard_links=no
14024 ln conftest.a conftest.b 2>/dev/null && hard_links=no
14025 echo "$as_me:$LINENO: result: $hard_links" >&5
14026 echo "${ECHO_T}$hard_links" >&6
14027 if test "$hard_links" = no; then
14028 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
14029 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
14030 need_locks=warn
14031 fi
14032 else
14033 need_locks=no
14034 fi
14035
14036 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
14037 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
14038
14039 runpath_var=
14040 allow_undefined_flag_F77=
14041 enable_shared_with_static_runtimes_F77=no
14042 archive_cmds_F77=
14043 archive_expsym_cmds_F77=
14044 old_archive_From_new_cmds_F77=
14045 old_archive_from_expsyms_cmds_F77=
14046 export_dynamic_flag_spec_F77=
14047 whole_archive_flag_spec_F77=
14048 thread_safe_flag_spec_F77=
14049 hardcode_libdir_flag_spec_F77=
14050 hardcode_libdir_flag_spec_ld_F77=
14051 hardcode_libdir_separator_F77=
14052 hardcode_direct_F77=no
14053 hardcode_minus_L_F77=no
14054 hardcode_shlibpath_var_F77=unsupported
14055 link_all_deplibs_F77=unknown
14056 hardcode_automatic_F77=no
14057 module_cmds_F77=
14058 module_expsym_cmds_F77=
14059 always_export_symbols_F77=no
14060 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
14061 # include_expsyms should be a list of space-separated symbols to be *always*
14062 # included in the symbol list
14063 include_expsyms_F77=
14064 # exclude_expsyms can be an extended regexp of symbols to exclude
14065 # it will be wrapped by ` (' and `)$', so one must not match beginning or
14066 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
14067 # as well as any symbol that contains `d'.
14068 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
14069 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
14070 # platforms (ab)use it in PIC code, but their linkers get confused if
14071 # the symbol is explicitly referenced. Since portable code cannot
14072 # rely on this symbol name, it's probably fine to never include it in
14073 # preloaded symbol tables.
14074 # Exclude shared library initialization/finalization symbols.
14075 extract_expsyms_cmds=
14076 # Just being paranoid about ensuring that cc_basename is set.
14077 for cc_temp in $compiler""; do
14078 case $cc_temp in
14079 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14080 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14081 \-*) ;;
14082 *) break;;
14083 esac
14084 done
14085 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14086
14087 case $host_os in
14088 cygwin* | mingw* | pw32*)
14089 # FIXME: the MSVC++ port hasn't been tested in a loooong time
14090 # When not using gcc, we currently assume that we are using
14091 # Microsoft Visual C++.
14092 if test "$GCC" != yes; then
14093 with_gnu_ld=no
14094 fi
14095 ;;
14096 interix*)
14097 # we just hope/assume this is gcc and not c89 (= MSVC++)
14098 with_gnu_ld=yes
14099 ;;
14100 openbsd*)
14101 with_gnu_ld=no
14102 ;;
14103 esac
14104
14105 ld_shlibs_F77=yes
14106 if test "$with_gnu_ld" = yes; then
14107 # If archive_cmds runs LD, not CC, wlarc should be empty
14108 wlarc='${wl}'
14109
14110 # Set some defaults for GNU ld with shared library support. These
14111 # are reset later if shared libraries are not supported. Putting them
14112 # here allows them to be overridden if necessary.
14113 runpath_var=LD_RUN_PATH
14114 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
14115 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
14116 # ancient GNU ld didn't support --whole-archive et. al.
14117 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
14118 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14119 else
14120 whole_archive_flag_spec_F77=
14121 fi
14122 supports_anon_versioning=no
14123 case `$LD -v 2>/dev/null` in
14124 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
14125 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
14126 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
14127 *\ 2.11.*) ;; # other 2.11 versions
14128 *) supports_anon_versioning=yes ;;
14129 esac
14130
14131 # See if GNU ld supports shared libraries.
14132 case $host_os in
14133 aix[3-9]*)
14134 # On AIX/PPC, the GNU linker is very broken
14135 if test "$host_cpu" != ia64; then
14136 ld_shlibs_F77=no
14137 cat <<EOF 1>&2
14138
14139 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
14140 *** to be unable to reliably create shared libraries on AIX.
14141 *** Therefore, libtool is disabling shared libraries support. If you
14142 *** really care for shared libraries, you may want to modify your PATH
14143 *** so that a non-GNU linker is found, and then restart.
14144
14145 EOF
14146 fi
14147 ;;
14148
14149 amigaos*)
14150 archive_cmds_F77='$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)'
14151 hardcode_libdir_flag_spec_F77='-L$libdir'
14152 hardcode_minus_L_F77=yes
14153
14154 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
14155 # that the semantics of dynamic libraries on AmigaOS, at least up
14156 # to version 4, is to share data among multiple programs linked
14157 # with the same dynamic library. Since this doesn't match the
14158 # behavior of shared libraries on other platforms, we can't use
14159 # them.
14160 ld_shlibs_F77=no
14161 ;;
14162
14163 beos*)
14164 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14165 allow_undefined_flag_F77=unsupported
14166 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
14167 # support --undefined. This deserves some investigation. FIXME
14168 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14169 else
14170 ld_shlibs_F77=no
14171 fi
14172 ;;
14173
14174 cygwin* | mingw* | pw32*)
14175 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
14176 # as there is no search path for DLLs.
14177 hardcode_libdir_flag_spec_F77='-L$libdir'
14178 allow_undefined_flag_F77=unsupported
14179 always_export_symbols_F77=no
14180 enable_shared_with_static_runtimes_F77=yes
14181 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
14182
14183 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
14184 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14185 # If the export-symbols file already is a .def file (1st line
14186 # is EXPORTS), use it as is; otherwise, prepend...
14187 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
14188 cp $export_symbols $output_objdir/$soname.def;
14189 else
14190 echo EXPORTS > $output_objdir/$soname.def;
14191 cat $export_symbols >> $output_objdir/$soname.def;
14192 fi~
14193 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
14194 else
14195 ld_shlibs_F77=no
14196 fi
14197 ;;
14198
14199 interix[3-9]*)
14200 hardcode_direct_F77=no
14201 hardcode_shlibpath_var_F77=no
14202 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14203 export_dynamic_flag_spec_F77='${wl}-E'
14204 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14205 # Instead, shared libraries are loaded at an image base (0x10000000 by
14206 # default) and relocated if they conflict, which is a slow very memory
14207 # consuming and fragmenting process. To avoid this, we pick a random,
14208 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14209 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14210 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14211 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
14212 ;;
14213
14214 gnu* | linux* | k*bsd*-gnu)
14215 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14216 tmp_addflag=
14217 case $cc_basename,$host_cpu in
14218 pgcc*) # Portland Group C compiler
14219 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14220 tmp_addflag=' $pic_flag'
14221 ;;
14222 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
14223 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14224 tmp_addflag=' $pic_flag -Mnomain' ;;
14225 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
14226 tmp_addflag=' -i_dynamic' ;;
14227 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
14228 tmp_addflag=' -i_dynamic -nofor_main' ;;
14229 ifc* | ifort*) # Intel Fortran compiler
14230 tmp_addflag=' -nofor_main' ;;
14231 esac
14232 case `$CC -V 2>&1 | sed 5q` in
14233 *Sun\ C*) # Sun C 5.9
14234 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
14235 tmp_sharedflag='-G' ;;
14236 *Sun\ F*) # Sun Fortran 8.3
14237 tmp_sharedflag='-G' ;;
14238 *)
14239 tmp_sharedflag='-shared' ;;
14240 esac
14241 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14242
14243 if test $supports_anon_versioning = yes; then
14244 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
14245 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14246 $echo "local: *; };" >> $output_objdir/$libname.ver~
14247 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14248 fi
14249 else
14250 ld_shlibs_F77=no
14251 fi
14252 ;;
14253
14254 netbsd*)
14255 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14256 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14257 wlarc=
14258 else
14259 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14260 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14261 fi
14262 ;;
14263
14264 solaris*)
14265 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
14266 ld_shlibs_F77=no
14267 cat <<EOF 1>&2
14268
14269 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14270 *** create shared libraries on Solaris systems. Therefore, libtool
14271 *** is disabling shared libraries support. We urge you to upgrade GNU
14272 *** binutils to release 2.9.1 or newer. Another option is to modify
14273 *** your PATH or compiler configuration so that the native linker is
14274 *** used, and then restart.
14275
14276 EOF
14277 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14278 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14279 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14280 else
14281 ld_shlibs_F77=no
14282 fi
14283 ;;
14284
14285 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14286 case `$LD -v 2>&1` in
14287 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14288 ld_shlibs_F77=no
14289 cat <<_LT_EOF 1>&2
14290
14291 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14292 *** reliably create shared libraries on SCO systems. Therefore, libtool
14293 *** is disabling shared libraries support. We urge you to upgrade GNU
14294 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14295 *** your PATH or compiler configuration so that the native linker is
14296 *** used, and then restart.
14297
14298 _LT_EOF
14299 ;;
14300 *)
14301 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14302 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
14303 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
14304 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
14305 else
14306 ld_shlibs_F77=no
14307 fi
14308 ;;
14309 esac
14310 ;;
14311
14312 sunos4*)
14313 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14314 wlarc=
14315 hardcode_direct_F77=yes
14316 hardcode_shlibpath_var_F77=no
14317 ;;
14318
14319 *)
14320 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
14321 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14322 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14323 else
14324 ld_shlibs_F77=no
14325 fi
14326 ;;
14327 esac
14328
14329 if test "$ld_shlibs_F77" = no; then
14330 runpath_var=
14331 hardcode_libdir_flag_spec_F77=
14332 export_dynamic_flag_spec_F77=
14333 whole_archive_flag_spec_F77=
14334 fi
14335 else
14336 # PORTME fill in a description of your system's linker (not GNU ld)
14337 case $host_os in
14338 aix3*)
14339 allow_undefined_flag_F77=unsupported
14340 always_export_symbols_F77=yes
14341 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
14342 # Note: this linker hardcodes the directories in LIBPATH if there
14343 # are no directories specified by -L.
14344 hardcode_minus_L_F77=yes
14345 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14346 # Neither direct hardcoding nor static linking is supported with a
14347 # broken collect2.
14348 hardcode_direct_F77=unsupported
14349 fi
14350 ;;
14351
14352 aix[4-9]*)
14353 if test "$host_cpu" = ia64; then
14354 # On IA64, the linker does run time linking by default, so we don't
14355 # have to do anything special.
14356 aix_use_runtimelinking=no
14357 exp_sym_flag='-Bexport'
14358 no_entry_flag=""
14359 else
14360 # If we're using GNU nm, then we don't want the "-C" option.
14361 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14362 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
14363 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14364 else
14365 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
14366 fi
14367 aix_use_runtimelinking=no
14368
14369 # Test if we are trying to use run time linking or normal
14370 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14371 # need to do runtime linking.
14372 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14373 for ld_flag in $LDFLAGS; do
14374 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14375 aix_use_runtimelinking=yes
14376 break
14377 fi
14378 done
14379 ;;
14380 esac
14381
14382 exp_sym_flag='-bexport'
14383 no_entry_flag='-bnoentry'
14384 fi
14385
14386 # When large executables or shared objects are built, AIX ld can
14387 # have problems creating the table of contents. If linking a library
14388 # or program results in "error TOC overflow" add -mminimal-toc to
14389 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14390 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14391
14392 archive_cmds_F77=''
14393 hardcode_direct_F77=yes
14394 hardcode_libdir_separator_F77=':'
14395 link_all_deplibs_F77=yes
14396
14397 if test "$GCC" = yes; then
14398 case $host_os in aix4.[012]|aix4.[012].*)
14399 # We only want to do this on AIX 4.2 and lower, the check
14400 # below for broken collect2 doesn't work under 4.3+
14401 collect2name=`${CC} -print-prog-name=collect2`
14402 if test -f "$collect2name" && \
14403 strings "$collect2name" | grep resolve_lib_name >/dev/null
14404 then
14405 # We have reworked collect2
14406 :
14407 else
14408 # We have old collect2
14409 hardcode_direct_F77=unsupported
14410 # It fails to find uninstalled libraries when the uninstalled
14411 # path is not listed in the libpath. Setting hardcode_minus_L
14412 # to unsupported forces relinking
14413 hardcode_minus_L_F77=yes
14414 hardcode_libdir_flag_spec_F77='-L$libdir'
14415 hardcode_libdir_separator_F77=
14416 fi
14417 ;;
14418 esac
14419 shared_flag='-shared'
14420 if test "$aix_use_runtimelinking" = yes; then
14421 shared_flag="$shared_flag "'${wl}-G'
14422 fi
14423 else
14424 # not using gcc
14425 if test "$host_cpu" = ia64; then
14426 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14427 # chokes on -Wl,-G. The following line is correct:
14428 shared_flag='-G'
14429 else
14430 if test "$aix_use_runtimelinking" = yes; then
14431 shared_flag='${wl}-G'
14432 else
14433 shared_flag='${wl}-bM:SRE'
14434 fi
14435 fi
14436 fi
14437
14438 # It seems that -bexpall does not export symbols beginning with
14439 # underscore (_), so it is better to generate a list of symbols to export.
14440 always_export_symbols_F77=yes
14441 if test "$aix_use_runtimelinking" = yes; then
14442 # Warning - without using the other runtime loading flags (-brtl),
14443 # -berok will link without error, but may produce a broken library.
14444 allow_undefined_flag_F77='-berok'
14445 # Determine the default libpath from the value encoded in an empty executable.
14446 cat >conftest.$ac_ext <<_ACEOF
14447 program main
14448
14449 end
14450 _ACEOF
14451 rm -f conftest.$ac_objext conftest$ac_exeext
14452 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14453 (eval $ac_link) 2>conftest.er1
14454 ac_status=$?
14455 grep -v '^ *+' conftest.er1 >conftest.err
14456 rm -f conftest.er1
14457 cat conftest.err >&5
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); } &&
14460 { ac_try='test -z "$ac_f77_werror_flag"
14461 || test ! -s conftest.err'
14462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14463 (eval $ac_try) 2>&5
14464 ac_status=$?
14465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14466 (exit $ac_status); }; } &&
14467 { ac_try='test -s conftest$ac_exeext'
14468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14469 (eval $ac_try) 2>&5
14470 ac_status=$?
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); }; }; then
14473
14474 lt_aix_libpath_sed='
14475 /Import File Strings/,/^$/ {
14476 /^0/ {
14477 s/^0 *\(.*\)$/\1/
14478 p
14479 }
14480 }'
14481 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14482 # Check for a 64-bit object if we didn't find anything.
14483 if test -z "$aix_libpath"; then
14484 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14485 fi
14486 else
14487 echo "$as_me: failed program was:" >&5
14488 sed 's/^/| /' conftest.$ac_ext >&5
14489
14490 fi
14491 rm -f conftest.err conftest.$ac_objext \
14492 conftest$ac_exeext conftest.$ac_ext
14493 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14494
14495 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14496 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
14497 else
14498 if test "$host_cpu" = ia64; then
14499 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
14500 allow_undefined_flag_F77="-z nodefs"
14501 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
14502 else
14503 # Determine the default libpath from the value encoded in an empty executable.
14504 cat >conftest.$ac_ext <<_ACEOF
14505 program main
14506
14507 end
14508 _ACEOF
14509 rm -f conftest.$ac_objext conftest$ac_exeext
14510 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14511 (eval $ac_link) 2>conftest.er1
14512 ac_status=$?
14513 grep -v '^ *+' conftest.er1 >conftest.err
14514 rm -f conftest.er1
14515 cat conftest.err >&5
14516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14517 (exit $ac_status); } &&
14518 { ac_try='test -z "$ac_f77_werror_flag"
14519 || test ! -s conftest.err'
14520 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14521 (eval $ac_try) 2>&5
14522 ac_status=$?
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); }; } &&
14525 { ac_try='test -s conftest$ac_exeext'
14526 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14527 (eval $ac_try) 2>&5
14528 ac_status=$?
14529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14530 (exit $ac_status); }; }; then
14531
14532 lt_aix_libpath_sed='
14533 /Import File Strings/,/^$/ {
14534 /^0/ {
14535 s/^0 *\(.*\)$/\1/
14536 p
14537 }
14538 }'
14539 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14540 # Check for a 64-bit object if we didn't find anything.
14541 if test -z "$aix_libpath"; then
14542 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14543 fi
14544 else
14545 echo "$as_me: failed program was:" >&5
14546 sed 's/^/| /' conftest.$ac_ext >&5
14547
14548 fi
14549 rm -f conftest.err conftest.$ac_objext \
14550 conftest$ac_exeext conftest.$ac_ext
14551 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14552
14553 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
14554 # Warning - without using the other run time loading flags,
14555 # -berok will link without error, but may produce a broken library.
14556 no_undefined_flag_F77=' ${wl}-bernotok'
14557 allow_undefined_flag_F77=' ${wl}-berok'
14558 # Exported symbols can be pulled into shared objects from archives
14559 whole_archive_flag_spec_F77='$convenience'
14560 archive_cmds_need_lc_F77=yes
14561 # This is similar to how AIX traditionally builds its shared libraries.
14562 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
14563 fi
14564 fi
14565 ;;
14566
14567 amigaos*)
14568 archive_cmds_F77='$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)'
14569 hardcode_libdir_flag_spec_F77='-L$libdir'
14570 hardcode_minus_L_F77=yes
14571 # see comment about different semantics on the GNU ld section
14572 ld_shlibs_F77=no
14573 ;;
14574
14575 bsdi[45]*)
14576 export_dynamic_flag_spec_F77=-rdynamic
14577 ;;
14578
14579 cygwin* | mingw* | pw32*)
14580 # When not using gcc, we currently assume that we are using
14581 # Microsoft Visual C++.
14582 # hardcode_libdir_flag_spec is actually meaningless, as there is
14583 # no search path for DLLs.
14584 hardcode_libdir_flag_spec_F77=' '
14585 allow_undefined_flag_F77=unsupported
14586 # Tell ltmain to make .lib files, not .a files.
14587 libext=lib
14588 # Tell ltmain to make .dll files, not .so files.
14589 shrext_cmds=".dll"
14590 # FIXME: Setting linknames here is a bad hack.
14591 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
14592 # The linker will automatically build a .lib file if we build a DLL.
14593 old_archive_From_new_cmds_F77='true'
14594 # FIXME: Should let the user specify the lib program.
14595 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
14596 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
14597 enable_shared_with_static_runtimes_F77=yes
14598 ;;
14599
14600 darwin* | rhapsody*)
14601 case $host_os in
14602 rhapsody* | darwin1.[012])
14603 allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
14604 ;;
14605 *) # Darwin 1.3 on
14606 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14607 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14608 else
14609 case ${MACOSX_DEPLOYMENT_TARGET} in
14610 10.[012])
14611 allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
14612 ;;
14613 10.*)
14614 allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
14615 ;;
14616 esac
14617 fi
14618 ;;
14619 esac
14620 archive_cmds_need_lc_F77=no
14621 hardcode_direct_F77=no
14622 hardcode_automatic_F77=yes
14623 hardcode_shlibpath_var_F77=unsupported
14624 whole_archive_flag_spec_F77=''
14625 link_all_deplibs_F77=yes
14626 if test "$GCC" = yes ; then
14627 output_verbose_link_cmd='echo'
14628 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
14629 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14630 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
14631 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
14632 else
14633 case $cc_basename in
14634 xlc*)
14635 output_verbose_link_cmd='echo'
14636 archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
14637 module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14638 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
14639 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14640 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
14641 ;;
14642 *)
14643 ld_shlibs_F77=no
14644 ;;
14645 esac
14646 fi
14647 ;;
14648
14649 dgux*)
14650 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14651 hardcode_libdir_flag_spec_F77='-L$libdir'
14652 hardcode_shlibpath_var_F77=no
14653 ;;
14654
14655 freebsd1*)
14656 ld_shlibs_F77=no
14657 ;;
14658
14659 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14660 # support. Future versions do this automatically, but an explicit c++rt0.o
14661 # does not break anything, and helps significantly (at the cost of a little
14662 # extra space).
14663 freebsd2.2*)
14664 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14665 hardcode_libdir_flag_spec_F77='-R$libdir'
14666 hardcode_direct_F77=yes
14667 hardcode_shlibpath_var_F77=no
14668 ;;
14669
14670 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14671 freebsd2*)
14672 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14673 hardcode_direct_F77=yes
14674 hardcode_minus_L_F77=yes
14675 hardcode_shlibpath_var_F77=no
14676 ;;
14677
14678 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14679 freebsd* | dragonfly*)
14680 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14681 hardcode_libdir_flag_spec_F77='-R$libdir'
14682 hardcode_direct_F77=yes
14683 hardcode_shlibpath_var_F77=no
14684 ;;
14685
14686 hpux9*)
14687 if test "$GCC" = yes; then
14688 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
14689 else
14690 archive_cmds_F77='$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'
14691 fi
14692 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14693 hardcode_libdir_separator_F77=:
14694 hardcode_direct_F77=yes
14695
14696 # hardcode_minus_L: Not really in the search PATH,
14697 # but as the default location of the library.
14698 hardcode_minus_L_F77=yes
14699 export_dynamic_flag_spec_F77='${wl}-E'
14700 ;;
14701
14702 hpux10*)
14703 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14704 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14705 else
14706 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14707 fi
14708 if test "$with_gnu_ld" = no; then
14709 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14710 hardcode_libdir_separator_F77=:
14711
14712 hardcode_direct_F77=yes
14713 export_dynamic_flag_spec_F77='${wl}-E'
14714
14715 # hardcode_minus_L: Not really in the search PATH,
14716 # but as the default location of the library.
14717 hardcode_minus_L_F77=yes
14718 fi
14719 ;;
14720
14721 hpux11*)
14722 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
14723 case $host_cpu in
14724 hppa*64*)
14725 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14726 ;;
14727 ia64*)
14728 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14729 ;;
14730 *)
14731 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14732 ;;
14733 esac
14734 else
14735 case $host_cpu in
14736 hppa*64*)
14737 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14738 ;;
14739 ia64*)
14740 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14741 ;;
14742 *)
14743 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14744 ;;
14745 esac
14746 fi
14747 if test "$with_gnu_ld" = no; then
14748 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
14749 hardcode_libdir_separator_F77=:
14750
14751 case $host_cpu in
14752 hppa*64*|ia64*)
14753 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
14754 hardcode_direct_F77=no
14755 hardcode_shlibpath_var_F77=no
14756 ;;
14757 *)
14758 hardcode_direct_F77=yes
14759 export_dynamic_flag_spec_F77='${wl}-E'
14760
14761 # hardcode_minus_L: Not really in the search PATH,
14762 # but as the default location of the library.
14763 hardcode_minus_L_F77=yes
14764 ;;
14765 esac
14766 fi
14767 ;;
14768
14769 irix5* | irix6* | nonstopux*)
14770 if test "$GCC" = yes; then
14771 archive_cmds_F77='$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'
14772 else
14773 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
14774 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
14775 fi
14776 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14777 hardcode_libdir_separator_F77=:
14778 link_all_deplibs_F77=yes
14779 ;;
14780
14781 netbsd*)
14782 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
14783 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14784 else
14785 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14786 fi
14787 hardcode_libdir_flag_spec_F77='-R$libdir'
14788 hardcode_direct_F77=yes
14789 hardcode_shlibpath_var_F77=no
14790 ;;
14791
14792 newsos6)
14793 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14794 hardcode_direct_F77=yes
14795 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14796 hardcode_libdir_separator_F77=:
14797 hardcode_shlibpath_var_F77=no
14798 ;;
14799
14800 openbsd*)
14801 if test -f /usr/libexec/ld.so; then
14802 hardcode_direct_F77=yes
14803 hardcode_shlibpath_var_F77=no
14804 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14805 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14806 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14807 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14808 export_dynamic_flag_spec_F77='${wl}-E'
14809 else
14810 case $host_os in
14811 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14812 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14813 hardcode_libdir_flag_spec_F77='-R$libdir'
14814 ;;
14815 *)
14816 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14817 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
14818 ;;
14819 esac
14820 fi
14821 else
14822 ld_shlibs_F77=no
14823 fi
14824 ;;
14825
14826 os2*)
14827 hardcode_libdir_flag_spec_F77='-L$libdir'
14828 hardcode_minus_L_F77=yes
14829 allow_undefined_flag_F77=unsupported
14830 archive_cmds_F77='$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'
14831 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14832 ;;
14833
14834 osf3*)
14835 if test "$GCC" = yes; then
14836 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14837 archive_cmds_F77='$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'
14838 else
14839 allow_undefined_flag_F77=' -expect_unresolved \*'
14840 archive_cmds_F77='$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'
14841 fi
14842 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14843 hardcode_libdir_separator_F77=:
14844 ;;
14845
14846 osf4* | osf5*) # as osf3* with the addition of -msym flag
14847 if test "$GCC" = yes; then
14848 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
14849 archive_cmds_F77='$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'
14850 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
14851 else
14852 allow_undefined_flag_F77=' -expect_unresolved \*'
14853 archive_cmds_F77='$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'
14854 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
14855 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
14856
14857 # Both c and cxx compiler support -rpath directly
14858 hardcode_libdir_flag_spec_F77='-rpath $libdir'
14859 fi
14860 hardcode_libdir_separator_F77=:
14861 ;;
14862
14863 solaris*)
14864 no_undefined_flag_F77=' -z text'
14865 if test "$GCC" = yes; then
14866 wlarc='${wl}'
14867 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14868 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14869 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
14870 else
14871 wlarc=''
14872 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14873 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
14874 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
14875 fi
14876 hardcode_libdir_flag_spec_F77='-R$libdir'
14877 hardcode_shlibpath_var_F77=no
14878 case $host_os in
14879 solaris2.[0-5] | solaris2.[0-5].*) ;;
14880 *)
14881 # The compiler driver will combine and reorder linker options,
14882 # but understands `-z linker_flag'. GCC discards it without `$wl',
14883 # but is careful enough not to reorder.
14884 # Supported since Solaris 2.6 (maybe 2.5.1?)
14885 if test "$GCC" = yes; then
14886 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14887 else
14888 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
14889 fi
14890 ;;
14891 esac
14892 link_all_deplibs_F77=yes
14893 ;;
14894
14895 sunos4*)
14896 if test "x$host_vendor" = xsequent; then
14897 # Use $CC to link under sequent, because it throws in some extra .o
14898 # files that make .init and .fini sections work.
14899 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14900 else
14901 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14902 fi
14903 hardcode_libdir_flag_spec_F77='-L$libdir'
14904 hardcode_direct_F77=yes
14905 hardcode_minus_L_F77=yes
14906 hardcode_shlibpath_var_F77=no
14907 ;;
14908
14909 sysv4)
14910 case $host_vendor in
14911 sni)
14912 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14913 hardcode_direct_F77=yes # is this really true???
14914 ;;
14915 siemens)
14916 ## LD is ld it makes a PLAMLIB
14917 ## CC just makes a GrossModule.
14918 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14919 reload_cmds_F77='$CC -r -o $output$reload_objs'
14920 hardcode_direct_F77=no
14921 ;;
14922 motorola)
14923 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14924 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
14925 ;;
14926 esac
14927 runpath_var='LD_RUN_PATH'
14928 hardcode_shlibpath_var_F77=no
14929 ;;
14930
14931 sysv4.3*)
14932 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14933 hardcode_shlibpath_var_F77=no
14934 export_dynamic_flag_spec_F77='-Bexport'
14935 ;;
14936
14937 sysv4*MP*)
14938 if test -d /usr/nec; then
14939 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14940 hardcode_shlibpath_var_F77=no
14941 runpath_var=LD_RUN_PATH
14942 hardcode_runpath_var=yes
14943 ld_shlibs_F77=yes
14944 fi
14945 ;;
14946
14947 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14948 no_undefined_flag_F77='${wl}-z,text'
14949 archive_cmds_need_lc_F77=no
14950 hardcode_shlibpath_var_F77=no
14951 runpath_var='LD_RUN_PATH'
14952
14953 if test "$GCC" = yes; then
14954 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14955 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14956 else
14957 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14958 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14959 fi
14960 ;;
14961
14962 sysv5* | sco3.2v5* | sco5v6*)
14963 # Note: We can NOT use -z defs as we might desire, because we do not
14964 # link with -lc, and that would cause any symbols used from libc to
14965 # always be unresolved, which means just about no library would
14966 # ever link correctly. If we're not using GNU ld we use -z text
14967 # though, which does catch some bad symbols but isn't as heavy-handed
14968 # as -z defs.
14969 no_undefined_flag_F77='${wl}-z,text'
14970 allow_undefined_flag_F77='${wl}-z,nodefs'
14971 archive_cmds_need_lc_F77=no
14972 hardcode_shlibpath_var_F77=no
14973 hardcode_libdir_flag_spec_F77='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
14974 hardcode_libdir_separator_F77=':'
14975 link_all_deplibs_F77=yes
14976 export_dynamic_flag_spec_F77='${wl}-Bexport'
14977 runpath_var='LD_RUN_PATH'
14978
14979 if test "$GCC" = yes; then
14980 archive_cmds_F77='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14981 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14982 else
14983 archive_cmds_F77='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14984 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
14985 fi
14986 ;;
14987
14988 uts4*)
14989 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14990 hardcode_libdir_flag_spec_F77='-L$libdir'
14991 hardcode_shlibpath_var_F77=no
14992 ;;
14993
14994 *)
14995 ld_shlibs_F77=no
14996 ;;
14997 esac
14998 fi
14999
15000 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
15001 echo "${ECHO_T}$ld_shlibs_F77" >&6
15002 test "$ld_shlibs_F77" = no && can_build_shared=no
15003
15004 #
15005 # Do we need to explicitly link libc?
15006 #
15007 case "x$archive_cmds_need_lc_F77" in
15008 x|xyes)
15009 # Assume -lc should be added
15010 archive_cmds_need_lc_F77=yes
15011
15012 if test "$enable_shared" = yes && test "$GCC" = yes; then
15013 case $archive_cmds_F77 in
15014 *'~'*)
15015 # FIXME: we may have to deal with multi-command sequences.
15016 ;;
15017 '$CC '*)
15018 # Test whether the compiler implicitly links with -lc since on some
15019 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15020 # to ld, don't add -lc before -lgcc.
15021 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
15022 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
15023 $rm conftest*
15024 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15025
15026 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
15027 (eval $ac_compile) 2>&5
15028 ac_status=$?
15029 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15030 (exit $ac_status); } 2>conftest.err; then
15031 soname=conftest
15032 lib=conftest
15033 libobjs=conftest.$ac_objext
15034 deplibs=
15035 wl=$lt_prog_compiler_wl_F77
15036 pic_flag=$lt_prog_compiler_pic_F77
15037 compiler_flags=-v
15038 linker_flags=-v
15039 verstring=
15040 output_objdir=.
15041 libname=conftest
15042 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
15043 allow_undefined_flag_F77=
15044 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
15045 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
15046 ac_status=$?
15047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15048 (exit $ac_status); }
15049 then
15050 archive_cmds_need_lc_F77=no
15051 else
15052 archive_cmds_need_lc_F77=yes
15053 fi
15054 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
15055 else
15056 cat conftest.err 1>&5
15057 fi
15058 $rm conftest*
15059 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
15060 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
15061 ;;
15062 esac
15063 fi
15064 ;;
15065 esac
15066
15067 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
15068 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
15069 library_names_spec=
15070 libname_spec='lib$name'
15071 soname_spec=
15072 shrext_cmds=".so"
15073 postinstall_cmds=
15074 postuninstall_cmds=
15075 finish_cmds=
15076 finish_eval=
15077 shlibpath_var=
15078 shlibpath_overrides_runpath=unknown
15079 version_type=none
15080 dynamic_linker="$host_os ld.so"
15081 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15082
15083 need_lib_prefix=unknown
15084 hardcode_into_libs=no
15085
15086 # when you set need_version to no, make sure it does not cause -set_version
15087 # flags to be left without arguments
15088 need_version=unknown
15089
15090 case $host_os in
15091 aix3*)
15092 version_type=linux
15093 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15094 shlibpath_var=LIBPATH
15095
15096 # AIX 3 has no versioning support, so we append a major version to the name.
15097 soname_spec='${libname}${release}${shared_ext}$major'
15098 ;;
15099
15100 aix[4-9]*)
15101 version_type=linux
15102 need_lib_prefix=no
15103 need_version=no
15104 hardcode_into_libs=yes
15105 if test "$host_cpu" = ia64; then
15106 # AIX 5 supports IA64
15107 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15108 shlibpath_var=LD_LIBRARY_PATH
15109 else
15110 # With GCC up to 2.95.x, collect2 would create an import file
15111 # for dependence libraries. The import file would start with
15112 # the line `#! .'. This would cause the generated library to
15113 # depend on `.', always an invalid library. This was fixed in
15114 # development snapshots of GCC prior to 3.0.
15115 case $host_os in
15116 aix4 | aix4.[01] | aix4.[01].*)
15117 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15118 echo ' yes '
15119 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
15120 :
15121 else
15122 can_build_shared=no
15123 fi
15124 ;;
15125 esac
15126 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15127 # soname into executable. Probably we can add versioning support to
15128 # collect2, so additional links can be useful in future.
15129 if test "$aix_use_runtimelinking" = yes; then
15130 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15131 # instead of lib<name>.a to let people know that these are not
15132 # typical AIX shared libraries.
15133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15134 else
15135 # We preserve .a as extension for shared libraries through AIX4.2
15136 # and later when we are not doing run time linking.
15137 library_names_spec='${libname}${release}.a $libname.a'
15138 soname_spec='${libname}${release}${shared_ext}$major'
15139 fi
15140 shlibpath_var=LIBPATH
15141 fi
15142 ;;
15143
15144 amigaos*)
15145 library_names_spec='$libname.ixlibrary $libname.a'
15146 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15147 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'
15148 ;;
15149
15150 beos*)
15151 library_names_spec='${libname}${shared_ext}'
15152 dynamic_linker="$host_os ld.so"
15153 shlibpath_var=LIBRARY_PATH
15154 ;;
15155
15156 bsdi[45]*)
15157 version_type=linux
15158 need_version=no
15159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15160 soname_spec='${libname}${release}${shared_ext}$major'
15161 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15162 shlibpath_var=LD_LIBRARY_PATH
15163 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15164 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15165 # the default ld.so.conf also contains /usr/contrib/lib and
15166 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15167 # libtool to hard-code these into programs
15168 ;;
15169
15170 cygwin* | mingw* | pw32*)
15171 version_type=windows
15172 shrext_cmds=".dll"
15173 need_version=no
15174 need_lib_prefix=no
15175
15176 case $GCC,$host_os in
15177 yes,cygwin* | yes,mingw* | yes,pw32*)
15178 library_names_spec='$libname.dll.a'
15179 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15180 postinstall_cmds='base_file=`basename \${file}`~
15181 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
15182 dldir=$destdir/`dirname \$dlpath`~
15183 test -d \$dldir || mkdir -p \$dldir~
15184 $install_prog $dir/$dlname \$dldir/$dlname~
15185 chmod a+x \$dldir/$dlname'
15186 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15187 dlpath=$dir/\$dldll~
15188 $rm \$dlpath'
15189 shlibpath_overrides_runpath=yes
15190
15191 case $host_os in
15192 cygwin*)
15193 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15194 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15195 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
15196 ;;
15197 mingw*)
15198 # MinGW DLLs use traditional 'lib' prefix
15199 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15200 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
15201 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
15202 # It is most probably a Windows format PATH printed by
15203 # mingw gcc, but we are running on Cygwin. Gcc prints its search
15204 # path with ; separators, and with drive letters. We can handle the
15205 # drive letters (cygwin fileutils understands them), so leave them,
15206 # especially as we might pass files found there to a mingw objdump,
15207 # which wouldn't understand a cygwinified path. Ahh.
15208 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
15209 else
15210 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
15211 fi
15212 ;;
15213 pw32*)
15214 # pw32 DLLs use 'pw' prefix rather than 'lib'
15215 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15216 ;;
15217 esac
15218 ;;
15219
15220 *)
15221 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15222 ;;
15223 esac
15224 dynamic_linker='Win32 ld.exe'
15225 # FIXME: first we should search . and the directory the executable is in
15226 shlibpath_var=PATH
15227 ;;
15228
15229 darwin* | rhapsody*)
15230 dynamic_linker="$host_os dyld"
15231 version_type=darwin
15232 need_lib_prefix=no
15233 need_version=no
15234 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15235 soname_spec='${libname}${release}${major}$shared_ext'
15236 shlibpath_overrides_runpath=yes
15237 shlibpath_var=DYLD_LIBRARY_PATH
15238 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15239
15240 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15241 ;;
15242
15243 dgux*)
15244 version_type=linux
15245 need_lib_prefix=no
15246 need_version=no
15247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15248 soname_spec='${libname}${release}${shared_ext}$major'
15249 shlibpath_var=LD_LIBRARY_PATH
15250 ;;
15251
15252 freebsd1*)
15253 dynamic_linker=no
15254 ;;
15255
15256 freebsd* | dragonfly*)
15257 # DragonFly does not have aout. When/if they implement a new
15258 # versioning mechanism, adjust this.
15259 if test -x /usr/bin/objformat; then
15260 objformat=`/usr/bin/objformat`
15261 else
15262 case $host_os in
15263 freebsd[123]*) objformat=aout ;;
15264 *) objformat=elf ;;
15265 esac
15266 fi
15267 version_type=freebsd-$objformat
15268 case $version_type in
15269 freebsd-elf*)
15270 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15271 need_version=no
15272 need_lib_prefix=no
15273 ;;
15274 freebsd-*)
15275 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15276 need_version=yes
15277 ;;
15278 esac
15279 shlibpath_var=LD_LIBRARY_PATH
15280 case $host_os in
15281 freebsd2*)
15282 shlibpath_overrides_runpath=yes
15283 ;;
15284 freebsd3.[01]* | freebsdelf3.[01]*)
15285 shlibpath_overrides_runpath=yes
15286 hardcode_into_libs=yes
15287 ;;
15288 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15289 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15290 shlibpath_overrides_runpath=no
15291 hardcode_into_libs=yes
15292 ;;
15293 *) # from 4.6 on, and DragonFly
15294 shlibpath_overrides_runpath=yes
15295 hardcode_into_libs=yes
15296 ;;
15297 esac
15298 ;;
15299
15300 gnu*)
15301 version_type=linux
15302 need_lib_prefix=no
15303 need_version=no
15304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15305 soname_spec='${libname}${release}${shared_ext}$major'
15306 shlibpath_var=LD_LIBRARY_PATH
15307 hardcode_into_libs=yes
15308 ;;
15309
15310 hpux9* | hpux10* | hpux11*)
15311 # Give a soname corresponding to the major version so that dld.sl refuses to
15312 # link against other versions.
15313 version_type=sunos
15314 need_lib_prefix=no
15315 need_version=no
15316 case $host_cpu in
15317 ia64*)
15318 shrext_cmds='.so'
15319 hardcode_into_libs=yes
15320 dynamic_linker="$host_os dld.so"
15321 shlibpath_var=LD_LIBRARY_PATH
15322 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15324 soname_spec='${libname}${release}${shared_ext}$major'
15325 if test "X$HPUX_IA64_MODE" = X32; then
15326 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15327 else
15328 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15329 fi
15330 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15331 ;;
15332 hppa*64*)
15333 shrext_cmds='.sl'
15334 hardcode_into_libs=yes
15335 dynamic_linker="$host_os dld.sl"
15336 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15337 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15338 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15339 soname_spec='${libname}${release}${shared_ext}$major'
15340 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15341 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15342 ;;
15343 *)
15344 shrext_cmds='.sl'
15345 dynamic_linker="$host_os dld.sl"
15346 shlibpath_var=SHLIB_PATH
15347 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15349 soname_spec='${libname}${release}${shared_ext}$major'
15350 ;;
15351 esac
15352 # HP-UX runs *really* slowly unless shared libraries are mode 555.
15353 postinstall_cmds='chmod 555 $lib'
15354 ;;
15355
15356 interix[3-9]*)
15357 version_type=linux
15358 need_lib_prefix=no
15359 need_version=no
15360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15361 soname_spec='${libname}${release}${shared_ext}$major'
15362 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15363 shlibpath_var=LD_LIBRARY_PATH
15364 shlibpath_overrides_runpath=no
15365 hardcode_into_libs=yes
15366 ;;
15367
15368 irix5* | irix6* | nonstopux*)
15369 case $host_os in
15370 nonstopux*) version_type=nonstopux ;;
15371 *)
15372 if test "$lt_cv_prog_gnu_ld" = yes; then
15373 version_type=linux
15374 else
15375 version_type=irix
15376 fi ;;
15377 esac
15378 need_lib_prefix=no
15379 need_version=no
15380 soname_spec='${libname}${release}${shared_ext}$major'
15381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15382 case $host_os in
15383 irix5* | nonstopux*)
15384 libsuff= shlibsuff=
15385 ;;
15386 *)
15387 case $LD in # libtool.m4 will add one of these switches to LD
15388 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15389 libsuff= shlibsuff= libmagic=32-bit;;
15390 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15391 libsuff=32 shlibsuff=N32 libmagic=N32;;
15392 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15393 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15394 *) libsuff= shlibsuff= libmagic=never-match;;
15395 esac
15396 ;;
15397 esac
15398 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15399 shlibpath_overrides_runpath=no
15400 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15401 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15402 hardcode_into_libs=yes
15403 ;;
15404
15405 # No shared lib support for Linux oldld, aout, or coff.
15406 linux*oldld* | linux*aout* | linux*coff*)
15407 dynamic_linker=no
15408 ;;
15409
15410 # This must be Linux ELF.
15411 linux* | k*bsd*-gnu)
15412 version_type=linux
15413 need_lib_prefix=no
15414 need_version=no
15415 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15416 soname_spec='${libname}${release}${shared_ext}$major'
15417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15418 shlibpath_var=LD_LIBRARY_PATH
15419 shlibpath_overrides_runpath=no
15420 # This implies no fast_install, which is unacceptable.
15421 # Some rework will be needed to allow for fast_install
15422 # before this can be enabled.
15423 hardcode_into_libs=yes
15424 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15425 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15426
15427 # Append ld.so.conf contents to the search path
15428 if test -f /etc/ld.so.conf; then
15429 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
15430 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
15431 fi
15432
15433 # We used to test for /lib/ld.so.1 and disable shared libraries on
15434 # powerpc, because MkLinux only supported shared libraries with the
15435 # GNU dynamic linker. Since this was broken with cross compilers,
15436 # most powerpc-linux boxes support dynamic linking these days and
15437 # people can always --disable-shared, the test was removed, and we
15438 # assume the GNU/Linux dynamic linker is in use.
15439 dynamic_linker='GNU/Linux ld.so'
15440 ;;
15441
15442 netbsd*)
15443 version_type=sunos
15444 need_lib_prefix=no
15445 need_version=no
15446 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15448 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15449 dynamic_linker='NetBSD (a.out) ld.so'
15450 else
15451 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15452 soname_spec='${libname}${release}${shared_ext}$major'
15453 dynamic_linker='NetBSD ld.elf_so'
15454 fi
15455 shlibpath_var=LD_LIBRARY_PATH
15456 shlibpath_overrides_runpath=yes
15457 hardcode_into_libs=yes
15458 ;;
15459
15460 newsos6)
15461 version_type=linux
15462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15463 shlibpath_var=LD_LIBRARY_PATH
15464 shlibpath_overrides_runpath=yes
15465 ;;
15466
15467 nto-qnx*)
15468 version_type=linux
15469 need_lib_prefix=no
15470 need_version=no
15471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15472 soname_spec='${libname}${release}${shared_ext}$major'
15473 shlibpath_var=LD_LIBRARY_PATH
15474 shlibpath_overrides_runpath=yes
15475 ;;
15476
15477 openbsd*)
15478 version_type=sunos
15479 sys_lib_dlsearch_path_spec="/usr/lib"
15480 need_lib_prefix=no
15481 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15482 case $host_os in
15483 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15484 *) need_version=no ;;
15485 esac
15486 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15488 shlibpath_var=LD_LIBRARY_PATH
15489 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15490 case $host_os in
15491 openbsd2.[89] | openbsd2.[89].*)
15492 shlibpath_overrides_runpath=no
15493 ;;
15494 *)
15495 shlibpath_overrides_runpath=yes
15496 ;;
15497 esac
15498 else
15499 shlibpath_overrides_runpath=yes
15500 fi
15501 ;;
15502
15503 os2*)
15504 libname_spec='$name'
15505 shrext_cmds=".dll"
15506 need_lib_prefix=no
15507 library_names_spec='$libname${shared_ext} $libname.a'
15508 dynamic_linker='OS/2 ld.exe'
15509 shlibpath_var=LIBPATH
15510 ;;
15511
15512 osf3* | osf4* | osf5*)
15513 version_type=osf
15514 need_lib_prefix=no
15515 need_version=no
15516 soname_spec='${libname}${release}${shared_ext}$major'
15517 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15518 shlibpath_var=LD_LIBRARY_PATH
15519 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15520 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15521 ;;
15522
15523 rdos*)
15524 dynamic_linker=no
15525 ;;
15526
15527 solaris*)
15528 version_type=linux
15529 need_lib_prefix=no
15530 need_version=no
15531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15532 soname_spec='${libname}${release}${shared_ext}$major'
15533 shlibpath_var=LD_LIBRARY_PATH
15534 shlibpath_overrides_runpath=yes
15535 hardcode_into_libs=yes
15536 # ldd complains unless libraries are executable
15537 postinstall_cmds='chmod +x $lib'
15538 ;;
15539
15540 sunos4*)
15541 version_type=sunos
15542 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15543 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15544 shlibpath_var=LD_LIBRARY_PATH
15545 shlibpath_overrides_runpath=yes
15546 if test "$with_gnu_ld" = yes; then
15547 need_lib_prefix=no
15548 fi
15549 need_version=yes
15550 ;;
15551
15552 sysv4 | sysv4.3*)
15553 version_type=linux
15554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15555 soname_spec='${libname}${release}${shared_ext}$major'
15556 shlibpath_var=LD_LIBRARY_PATH
15557 case $host_vendor in
15558 sni)
15559 shlibpath_overrides_runpath=no
15560 need_lib_prefix=no
15561 export_dynamic_flag_spec='${wl}-Blargedynsym'
15562 runpath_var=LD_RUN_PATH
15563 ;;
15564 siemens)
15565 need_lib_prefix=no
15566 ;;
15567 motorola)
15568 need_lib_prefix=no
15569 need_version=no
15570 shlibpath_overrides_runpath=no
15571 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15572 ;;
15573 esac
15574 ;;
15575
15576 sysv4*MP*)
15577 if test -d /usr/nec ;then
15578 version_type=linux
15579 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15580 soname_spec='$libname${shared_ext}.$major'
15581 shlibpath_var=LD_LIBRARY_PATH
15582 fi
15583 ;;
15584
15585 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15586 version_type=freebsd-elf
15587 need_lib_prefix=no
15588 need_version=no
15589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15590 soname_spec='${libname}${release}${shared_ext}$major'
15591 shlibpath_var=LD_LIBRARY_PATH
15592 hardcode_into_libs=yes
15593 if test "$with_gnu_ld" = yes; then
15594 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15595 shlibpath_overrides_runpath=no
15596 else
15597 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15598 shlibpath_overrides_runpath=yes
15599 case $host_os in
15600 sco3.2v5*)
15601 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15602 ;;
15603 esac
15604 fi
15605 sys_lib_dlsearch_path_spec='/usr/lib'
15606 ;;
15607
15608 uts4*)
15609 version_type=linux
15610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15611 soname_spec='${libname}${release}${shared_ext}$major'
15612 shlibpath_var=LD_LIBRARY_PATH
15613 ;;
15614
15615 *)
15616 dynamic_linker=no
15617 ;;
15618 esac
15619 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
15620 echo "${ECHO_T}$dynamic_linker" >&6
15621 test "$dynamic_linker" = no && can_build_shared=no
15622
15623 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15624 echo $ECHO_N "(cached) $ECHO_C" >&6
15625 else
15626 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
15627 fi
15628
15629 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15630 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15631 echo $ECHO_N "(cached) $ECHO_C" >&6
15632 else
15633 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
15634 fi
15635
15636 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15637
15638 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15639 if test "$GCC" = yes; then
15640 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15641 fi
15642
15643 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
15644 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
15645 hardcode_action_F77=
15646 if test -n "$hardcode_libdir_flag_spec_F77" || \
15647 test -n "$runpath_var_F77" || \
15648 test "X$hardcode_automatic_F77" = "Xyes" ; then
15649
15650 # We can hardcode non-existant directories.
15651 if test "$hardcode_direct_F77" != no &&
15652 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15653 # have to relink, otherwise we might link with an installed library
15654 # when we should be linking with a yet-to-be-installed one
15655 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
15656 test "$hardcode_minus_L_F77" != no; then
15657 # Linking always hardcodes the temporary library directory.
15658 hardcode_action_F77=relink
15659 else
15660 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15661 hardcode_action_F77=immediate
15662 fi
15663 else
15664 # We cannot hardcode anything, or else we can only hardcode existing
15665 # directories.
15666 hardcode_action_F77=unsupported
15667 fi
15668 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
15669 echo "${ECHO_T}$hardcode_action_F77" >&6
15670
15671 if test "$hardcode_action_F77" = relink; then
15672 # Fast installation is not supported
15673 enable_fast_install=no
15674 elif test "$shlibpath_overrides_runpath" = yes ||
15675 test "$enable_shared" = no; then
15676 # Fast installation is not necessary
15677 enable_fast_install=needless
15678 fi
15679
15680
15681 # The else clause should only fire when bootstrapping the
15682 # libtool distribution, otherwise you forgot to ship ltmain.sh
15683 # with your package, and you will get complaints that there are
15684 # no rules to generate ltmain.sh.
15685 if test -f "$ltmain"; then
15686 # See if we are running on zsh, and set the options which allow our commands through
15687 # without removal of \ escapes.
15688 if test -n "${ZSH_VERSION+set}" ; then
15689 setopt NO_GLOB_SUBST
15690 fi
15691 # Now quote all the things that may contain metacharacters while being
15692 # careful not to overquote the AC_SUBSTed values. We take copies of the
15693 # variables and quote the copies for generation of the libtool script.
15694 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15695 SED SHELL STRIP \
15696 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15697 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15698 deplibs_check_method reload_flag reload_cmds need_locks \
15699 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15700 lt_cv_sys_global_symbol_to_c_name_address \
15701 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15702 old_postinstall_cmds old_postuninstall_cmds \
15703 compiler_F77 \
15704 CC_F77 \
15705 LD_F77 \
15706 lt_prog_compiler_wl_F77 \
15707 lt_prog_compiler_pic_F77 \
15708 lt_prog_compiler_static_F77 \
15709 lt_prog_compiler_no_builtin_flag_F77 \
15710 export_dynamic_flag_spec_F77 \
15711 thread_safe_flag_spec_F77 \
15712 whole_archive_flag_spec_F77 \
15713 enable_shared_with_static_runtimes_F77 \
15714 old_archive_cmds_F77 \
15715 old_archive_from_new_cmds_F77 \
15716 predep_objects_F77 \
15717 postdep_objects_F77 \
15718 predeps_F77 \
15719 postdeps_F77 \
15720 compiler_lib_search_path_F77 \
15721 compiler_lib_search_dirs_F77 \
15722 archive_cmds_F77 \
15723 archive_expsym_cmds_F77 \
15724 postinstall_cmds_F77 \
15725 postuninstall_cmds_F77 \
15726 old_archive_from_expsyms_cmds_F77 \
15727 allow_undefined_flag_F77 \
15728 no_undefined_flag_F77 \
15729 export_symbols_cmds_F77 \
15730 hardcode_libdir_flag_spec_F77 \
15731 hardcode_libdir_flag_spec_ld_F77 \
15732 hardcode_libdir_separator_F77 \
15733 hardcode_automatic_F77 \
15734 module_cmds_F77 \
15735 module_expsym_cmds_F77 \
15736 lt_cv_prog_compiler_c_o_F77 \
15737 fix_srcfile_path_F77 \
15738 exclude_expsyms_F77 \
15739 include_expsyms_F77; do
15740
15741 case $var in
15742 old_archive_cmds_F77 | \
15743 old_archive_from_new_cmds_F77 | \
15744 archive_cmds_F77 | \
15745 archive_expsym_cmds_F77 | \
15746 module_cmds_F77 | \
15747 module_expsym_cmds_F77 | \
15748 old_archive_from_expsyms_cmds_F77 | \
15749 export_symbols_cmds_F77 | \
15750 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15751 postinstall_cmds | postuninstall_cmds | \
15752 old_postinstall_cmds | old_postuninstall_cmds | \
15753 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
15754 # Double-quote double-evaled strings.
15755 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15756 ;;
15757 *)
15758 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15759 ;;
15760 esac
15761 done
15762
15763 case $lt_echo in
15764 *'\$0 --fallback-echo"')
15765 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15766 ;;
15767 esac
15768
15769 cfgfile="$ofile"
15770
15771 cat <<__EOF__ >> "$cfgfile"
15772 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
15773
15774 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15775
15776 # Shell to use when invoking shell scripts.
15777 SHELL=$lt_SHELL
15778
15779 # Whether or not to build shared libraries.
15780 build_libtool_libs=$enable_shared
15781
15782 # Whether or not to build static libraries.
15783 build_old_libs=$enable_static
15784
15785 # Whether or not to add -lc for building shared libraries.
15786 build_libtool_need_lc=$archive_cmds_need_lc_F77
15787
15788 # Whether or not to disallow shared libs when runtime libs are static
15789 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
15790
15791 # Whether or not to optimize for fast installation.
15792 fast_install=$enable_fast_install
15793
15794 # The host system.
15795 host_alias=$host_alias
15796 host=$host
15797 host_os=$host_os
15798
15799 # The build system.
15800 build_alias=$build_alias
15801 build=$build
15802 build_os=$build_os
15803
15804 # An echo program that does not interpret backslashes.
15805 echo=$lt_echo
15806
15807 # The archiver.
15808 AR=$lt_AR
15809 AR_FLAGS=$lt_AR_FLAGS
15810
15811 # A C compiler.
15812 LTCC=$lt_LTCC
15813
15814 # LTCC compiler flags.
15815 LTCFLAGS=$lt_LTCFLAGS
15816
15817 # A language-specific compiler.
15818 CC=$lt_compiler_F77
15819
15820 # Is the compiler the GNU C compiler?
15821 with_gcc=$GCC_F77
15822
15823 # An ERE matcher.
15824 EGREP=$lt_EGREP
15825
15826 # The linker used to build libraries.
15827 LD=$lt_LD_F77
15828
15829 # Whether we need hard or soft links.
15830 LN_S=$lt_LN_S
15831
15832 # A BSD-compatible nm program.
15833 NM=$lt_NM
15834
15835 # A symbol stripping program
15836 STRIP=$lt_STRIP
15837
15838 # Used to examine libraries when file_magic_cmd begins "file"
15839 MAGIC_CMD=$MAGIC_CMD
15840
15841 # Used on cygwin: DLL creation program.
15842 DLLTOOL="$DLLTOOL"
15843
15844 # Used on cygwin: object dumper.
15845 OBJDUMP="$OBJDUMP"
15846
15847 # Used on cygwin: assembler.
15848 AS="$AS"
15849
15850 # The name of the directory that contains temporary libtool files.
15851 objdir=$objdir
15852
15853 # How to create reloadable object files.
15854 reload_flag=$lt_reload_flag
15855 reload_cmds=$lt_reload_cmds
15856
15857 # How to pass a linker flag through the compiler.
15858 wl=$lt_lt_prog_compiler_wl_F77
15859
15860 # Object file suffix (normally "o").
15861 objext="$ac_objext"
15862
15863 # Old archive suffix (normally "a").
15864 libext="$libext"
15865
15866 # Shared library suffix (normally ".so").
15867 shrext_cmds='$shrext_cmds'
15868
15869 # Executable file suffix (normally "").
15870 exeext="$exeext"
15871
15872 # Additional compiler flags for building library objects.
15873 pic_flag=$lt_lt_prog_compiler_pic_F77
15874 pic_mode=$pic_mode
15875
15876 # What is the maximum length of a command?
15877 max_cmd_len=$lt_cv_sys_max_cmd_len
15878
15879 # Does compiler simultaneously support -c and -o options?
15880 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
15881
15882 # Must we lock files when doing compilation?
15883 need_locks=$lt_need_locks
15884
15885 # Do we need the lib prefix for modules?
15886 need_lib_prefix=$need_lib_prefix
15887
15888 # Do we need a version for libraries?
15889 need_version=$need_version
15890
15891 # Whether dlopen is supported.
15892 dlopen_support=$enable_dlopen
15893
15894 # Whether dlopen of programs is supported.
15895 dlopen_self=$enable_dlopen_self
15896
15897 # Whether dlopen of statically linked programs is supported.
15898 dlopen_self_static=$enable_dlopen_self_static
15899
15900 # Compiler flag to prevent dynamic linking.
15901 link_static_flag=$lt_lt_prog_compiler_static_F77
15902
15903 # Compiler flag to turn off builtin functions.
15904 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
15905
15906 # Compiler flag to allow reflexive dlopens.
15907 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
15908
15909 # Compiler flag to generate shared objects directly from archives.
15910 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
15911
15912 # Compiler flag to generate thread-safe objects.
15913 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
15914
15915 # Library versioning type.
15916 version_type=$version_type
15917
15918 # Format of library name prefix.
15919 libname_spec=$lt_libname_spec
15920
15921 # List of archive names. First name is the real one, the rest are links.
15922 # The last name is the one that the linker finds with -lNAME.
15923 library_names_spec=$lt_library_names_spec
15924
15925 # The coded name of the library, if different from the real name.
15926 soname_spec=$lt_soname_spec
15927
15928 # Commands used to build and install an old-style archive.
15929 RANLIB=$lt_RANLIB
15930 old_archive_cmds=$lt_old_archive_cmds_F77
15931 old_postinstall_cmds=$lt_old_postinstall_cmds
15932 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15933
15934 # Create an old-style archive from a shared archive.
15935 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
15936
15937 # Create a temporary old-style archive to link instead of a shared archive.
15938 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
15939
15940 # Commands used to build and install a shared archive.
15941 archive_cmds=$lt_archive_cmds_F77
15942 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
15943 postinstall_cmds=$lt_postinstall_cmds
15944 postuninstall_cmds=$lt_postuninstall_cmds
15945
15946 # Commands used to build a loadable module (assumed same as above if empty)
15947 module_cmds=$lt_module_cmds_F77
15948 module_expsym_cmds=$lt_module_expsym_cmds_F77
15949
15950 # Commands to strip libraries.
15951 old_striplib=$lt_old_striplib
15952 striplib=$lt_striplib
15953
15954 # Dependencies to place before the objects being linked to create a
15955 # shared library.
15956 predep_objects=$lt_predep_objects_F77
15957
15958 # Dependencies to place after the objects being linked to create a
15959 # shared library.
15960 postdep_objects=$lt_postdep_objects_F77
15961
15962 # Dependencies to place before the objects being linked to create a
15963 # shared library.
15964 predeps=$lt_predeps_F77
15965
15966 # Dependencies to place after the objects being linked to create a
15967 # shared library.
15968 postdeps=$lt_postdeps_F77
15969
15970 # The directories searched by this compiler when creating a shared
15971 # library
15972 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
15973
15974 # The library search path used internally by the compiler when linking
15975 # a shared library.
15976 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
15977
15978 # Method to check whether dependent libraries are shared objects.
15979 deplibs_check_method=$lt_deplibs_check_method
15980
15981 # Command to use when deplibs_check_method == file_magic.
15982 file_magic_cmd=$lt_file_magic_cmd
15983
15984 # Flag that allows shared libraries with undefined symbols to be built.
15985 allow_undefined_flag=$lt_allow_undefined_flag_F77
15986
15987 # Flag that forces no undefined symbols.
15988 no_undefined_flag=$lt_no_undefined_flag_F77
15989
15990 # Commands used to finish a libtool library installation in a directory.
15991 finish_cmds=$lt_finish_cmds
15992
15993 # Same as above, but a single script fragment to be evaled but not shown.
15994 finish_eval=$lt_finish_eval
15995
15996 # Take the output of nm and produce a listing of raw symbols and C names.
15997 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15998
15999 # Transform the output of nm in a proper C declaration
16000 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
16001
16002 # Transform the output of nm in a C name address pair
16003 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
16004
16005 # This is the shared library runtime path variable.
16006 runpath_var=$runpath_var
16007
16008 # This is the shared library path variable.
16009 shlibpath_var=$shlibpath_var
16010
16011 # Is shlibpath searched before the hard-coded library search path?
16012 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
16013
16014 # How to hardcode a shared library path into an executable.
16015 hardcode_action=$hardcode_action_F77
16016
16017 # Whether we should hardcode library paths into libraries.
16018 hardcode_into_libs=$hardcode_into_libs
16019
16020 # Flag to hardcode \$libdir into a binary during linking.
16021 # This must work even if \$libdir does not exist.
16022 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
16023
16024 # If ld is used when linking, flag to hardcode \$libdir into
16025 # a binary during linking. This must work even if \$libdir does
16026 # not exist.
16027 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
16028
16029 # Whether we need a single -rpath flag with a separated argument.
16030 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
16031
16032 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
16033 # resulting binary.
16034 hardcode_direct=$hardcode_direct_F77
16035
16036 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
16037 # resulting binary.
16038 hardcode_minus_L=$hardcode_minus_L_F77
16039
16040 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
16041 # the resulting binary.
16042 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
16043
16044 # Set to yes if building a shared library automatically hardcodes DIR into the library
16045 # and all subsequent libraries and executables linked against it.
16046 hardcode_automatic=$hardcode_automatic_F77
16047
16048 # Variables whose values should be saved in libtool wrapper scripts and
16049 # restored at relink time.
16050 variables_saved_for_relink="$variables_saved_for_relink"
16051
16052 # Whether libtool must link a program against all its dependency libraries.
16053 link_all_deplibs=$link_all_deplibs_F77
16054
16055 # Compile-time system search path for libraries
16056 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
16057
16058 # Run-time system search path for libraries
16059 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
16060
16061 # Fix the shell variable \$srcfile for the compiler.
16062 fix_srcfile_path=$lt_fix_srcfile_path
16063
16064 # Set to yes if exported symbols are required.
16065 always_export_symbols=$always_export_symbols_F77
16066
16067 # The commands to list exported symbols.
16068 export_symbols_cmds=$lt_export_symbols_cmds_F77
16069
16070 # The commands to extract the exported symbol list from a shared archive.
16071 extract_expsyms_cmds=$lt_extract_expsyms_cmds
16072
16073 # Symbols that should not be listed in the preloaded symbols.
16074 exclude_expsyms=$lt_exclude_expsyms_F77
16075
16076 # Symbols that must always be exported.
16077 include_expsyms=$lt_include_expsyms_F77
16078
16079 # ### END LIBTOOL TAG CONFIG: $tagname
16080
16081 __EOF__
16082
16083
16084 else
16085 # If there is no Makefile yet, we rely on a make rule to execute
16086 # `config.status --recheck' to rerun these tests and create the
16087 # libtool script then.
16088 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
16089 if test -f "$ltmain_in"; then
16090 test -f Makefile && make "$ltmain"
16091 fi
16092 fi
16093
16094
16095 ac_ext=c
16096 ac_cpp='$CPP $CPPFLAGS'
16097 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16098 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16099 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16100
16101 CC="$lt_save_CC"
16102
16103 else
16104 tagname=""
16105 fi
16106 ;;
16107
16108 GCJ)
16109 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
16110
16111
16112
16113 # Source file extension for Java test sources.
16114 ac_ext=java
16115
16116 # Object file extension for compiled Java test sources.
16117 objext=o
16118 objext_GCJ=$objext
16119
16120 # Code to be used in simple compile tests
16121 lt_simple_compile_test_code="class foo {}"
16122
16123 # Code to be used in simple link tests
16124 lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }'
16125
16126 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
16127
16128 # If no C compiler was specified, use CC.
16129 LTCC=${LTCC-"$CC"}
16130
16131 # If no C compiler flags were specified, use CFLAGS.
16132 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
16133
16134 # Allow CC to be a program name with arguments.
16135 compiler=$CC
16136
16137
16138 # save warnings/boilerplate of simple test code
16139 ac_outfile=conftest.$ac_objext
16140 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
16141 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16142 _lt_compiler_boilerplate=`cat conftest.err`
16143 $rm conftest*
16144
16145 ac_outfile=conftest.$ac_objext
16146 echo "$lt_simple_link_test_code" >conftest.$ac_ext
16147 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
16148 _lt_linker_boilerplate=`cat conftest.err`
16149 $rm -r conftest*
16150
16151
16152 # Allow CC to be a program name with arguments.
16153 lt_save_CC="$CC"
16154 CC=${GCJ-"gcj"}
16155 compiler=$CC
16156 compiler_GCJ=$CC
16157 for cc_temp in $compiler""; do
16158 case $cc_temp in
16159 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16160 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16161 \-*) ;;
16162 *) break;;
16163 esac
16164 done
16165 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16166
16167
16168 # GCJ did not exist at the time GCC didn't implicitly link libc in.
16169 archive_cmds_need_lc_GCJ=no
16170
16171 old_archive_cmds_GCJ=$old_archive_cmds
16172
16173
16174 lt_prog_compiler_no_builtin_flag_GCJ=
16175
16176 if test "$GCC" = yes; then
16177 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
16178
16179
16180 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
16181 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
16182 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
16183 echo $ECHO_N "(cached) $ECHO_C" >&6
16184 else
16185 lt_cv_prog_compiler_rtti_exceptions=no
16186 ac_outfile=conftest.$ac_objext
16187 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16188 lt_compiler_flag="-fno-rtti -fno-exceptions"
16189 # Insert the option either (1) after the last *FLAGS variable, or
16190 # (2) before a word containing "conftest.", or (3) at the end.
16191 # Note that $ac_compile itself does not contain backslashes and begins
16192 # with a dollar sign (not a hyphen), so the echo should work correctly.
16193 # The option is referenced via a variable to avoid confusing sed.
16194 lt_compile=`echo "$ac_compile" | $SED \
16195 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16196 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16197 -e 's:$: $lt_compiler_flag:'`
16198 (eval echo "\"\$as_me:16198: $lt_compile\"" >&5)
16199 (eval "$lt_compile" 2>conftest.err)
16200 ac_status=$?
16201 cat conftest.err >&5
16202 echo "$as_me:16202: \$? = $ac_status" >&5
16203 if (exit $ac_status) && test -s "$ac_outfile"; then
16204 # The compiler can only warn and ignore the option if not recognized
16205 # So say no if there are warnings other than the usual output.
16206 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16207 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16208 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16209 lt_cv_prog_compiler_rtti_exceptions=yes
16210 fi
16211 fi
16212 $rm conftest*
16213
16214 fi
16215 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
16216 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
16217
16218 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
16219 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
16220 else
16221 :
16222 fi
16223
16224 fi
16225
16226 lt_prog_compiler_wl_GCJ=
16227 lt_prog_compiler_pic_GCJ=
16228 lt_prog_compiler_static_GCJ=
16229
16230 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16231 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16232
16233 if test "$GCC" = yes; then
16234 lt_prog_compiler_wl_GCJ='-Wl,'
16235 lt_prog_compiler_static_GCJ='-static'
16236
16237 case $host_os in
16238 aix*)
16239 # All AIX code is PIC.
16240 if test "$host_cpu" = ia64; then
16241 # AIX 5 now supports IA64 processor
16242 lt_prog_compiler_static_GCJ='-Bstatic'
16243 fi
16244 ;;
16245
16246 amigaos*)
16247 # FIXME: we need at least 68020 code to build shared libraries, but
16248 # adding the `-m68020' flag to GCC prevents building anything better,
16249 # like `-m68040'.
16250 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
16251 ;;
16252
16253 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16254 # PIC is the default for these OSes.
16255 ;;
16256
16257 mingw* | cygwin* | pw32* | os2*)
16258 # This hack is so that the source file can tell whether it is being
16259 # built for inclusion in a dll (and should export symbols for example).
16260 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16261 # (--disable-auto-import) libraries
16262
16263 ;;
16264
16265 darwin* | rhapsody*)
16266 # PIC is the default on this platform
16267 # Common symbols not allowed in MH_DYLIB files
16268 lt_prog_compiler_pic_GCJ='-fno-common'
16269 ;;
16270
16271 interix[3-9]*)
16272 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16273 # Instead, we relocate shared libraries at runtime.
16274 ;;
16275
16276 msdosdjgpp*)
16277 # Just because we use GCC doesn't mean we suddenly get shared libraries
16278 # on systems that don't support them.
16279 lt_prog_compiler_can_build_shared_GCJ=no
16280 enable_shared=no
16281 ;;
16282
16283 sysv4*MP*)
16284 if test -d /usr/nec; then
16285 lt_prog_compiler_pic_GCJ=-Kconform_pic
16286 fi
16287 ;;
16288
16289 hpux*)
16290 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16291 # not for PA HP-UX.
16292 case $host_cpu in
16293 hppa*64*|ia64*)
16294 # +Z the default
16295 ;;
16296 *)
16297 lt_prog_compiler_pic_GCJ='-fPIC'
16298 ;;
16299 esac
16300 ;;
16301
16302 *)
16303 lt_prog_compiler_pic_GCJ='-fPIC'
16304 ;;
16305 esac
16306 else
16307 # PORTME Check for flag to pass linker flags through the system compiler.
16308 case $host_os in
16309 aix*)
16310 lt_prog_compiler_wl_GCJ='-Wl,'
16311 if test "$host_cpu" = ia64; then
16312 # AIX 5 now supports IA64 processor
16313 lt_prog_compiler_static_GCJ='-Bstatic'
16314 else
16315 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
16316 fi
16317 ;;
16318 darwin*)
16319 # PIC is the default on this platform
16320 # Common symbols not allowed in MH_DYLIB files
16321 case $cc_basename in
16322 xlc*)
16323 lt_prog_compiler_pic_GCJ='-qnocommon'
16324 lt_prog_compiler_wl_GCJ='-Wl,'
16325 ;;
16326 esac
16327 ;;
16328
16329 mingw* | cygwin* | pw32* | os2*)
16330 # This hack is so that the source file can tell whether it is being
16331 # built for inclusion in a dll (and should export symbols for example).
16332
16333 ;;
16334
16335 hpux9* | hpux10* | hpux11*)
16336 lt_prog_compiler_wl_GCJ='-Wl,'
16337 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16338 # not for PA HP-UX.
16339 case $host_cpu in
16340 hppa*64*|ia64*)
16341 # +Z the default
16342 ;;
16343 *)
16344 lt_prog_compiler_pic_GCJ='+Z'
16345 ;;
16346 esac
16347 # Is there a better lt_prog_compiler_static that works with the bundled CC?
16348 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
16349 ;;
16350
16351 irix5* | irix6* | nonstopux*)
16352 lt_prog_compiler_wl_GCJ='-Wl,'
16353 # PIC (with -KPIC) is the default.
16354 lt_prog_compiler_static_GCJ='-non_shared'
16355 ;;
16356
16357 newsos6)
16358 lt_prog_compiler_pic_GCJ='-KPIC'
16359 lt_prog_compiler_static_GCJ='-Bstatic'
16360 ;;
16361
16362 linux* | k*bsd*-gnu)
16363 case $cc_basename in
16364 icc* | ecc*)
16365 lt_prog_compiler_wl_GCJ='-Wl,'
16366 lt_prog_compiler_pic_GCJ='-KPIC'
16367 lt_prog_compiler_static_GCJ='-static'
16368 ;;
16369 pgcc* | pgf77* | pgf90* | pgf95*)
16370 # Portland Group compilers (*not* the Pentium gcc compiler,
16371 # which looks to be a dead project)
16372 lt_prog_compiler_wl_GCJ='-Wl,'
16373 lt_prog_compiler_pic_GCJ='-fpic'
16374 lt_prog_compiler_static_GCJ='-Bstatic'
16375 ;;
16376 ccc*)
16377 lt_prog_compiler_wl_GCJ='-Wl,'
16378 # All Alpha code is PIC.
16379 lt_prog_compiler_static_GCJ='-non_shared'
16380 ;;
16381 *)
16382 case `$CC -V 2>&1 | sed 5q` in
16383 *Sun\ C*)
16384 # Sun C 5.9
16385 lt_prog_compiler_pic_GCJ='-KPIC'
16386 lt_prog_compiler_static_GCJ='-Bstatic'
16387 lt_prog_compiler_wl_GCJ='-Wl,'
16388 ;;
16389 *Sun\ F*)
16390 # Sun Fortran 8.3 passes all unrecognized flags to the linker
16391 lt_prog_compiler_pic_GCJ='-KPIC'
16392 lt_prog_compiler_static_GCJ='-Bstatic'
16393 lt_prog_compiler_wl_GCJ=''
16394 ;;
16395 esac
16396 ;;
16397 esac
16398 ;;
16399
16400 osf3* | osf4* | osf5*)
16401 lt_prog_compiler_wl_GCJ='-Wl,'
16402 # All OSF/1 code is PIC.
16403 lt_prog_compiler_static_GCJ='-non_shared'
16404 ;;
16405
16406 rdos*)
16407 lt_prog_compiler_static_GCJ='-non_shared'
16408 ;;
16409
16410 solaris*)
16411 lt_prog_compiler_pic_GCJ='-KPIC'
16412 lt_prog_compiler_static_GCJ='-Bstatic'
16413 case $cc_basename in
16414 f77* | f90* | f95*)
16415 lt_prog_compiler_wl_GCJ='-Qoption ld ';;
16416 *)
16417 lt_prog_compiler_wl_GCJ='-Wl,';;
16418 esac
16419 ;;
16420
16421 sunos4*)
16422 lt_prog_compiler_wl_GCJ='-Qoption ld '
16423 lt_prog_compiler_pic_GCJ='-PIC'
16424 lt_prog_compiler_static_GCJ='-Bstatic'
16425 ;;
16426
16427 sysv4 | sysv4.2uw2* | sysv4.3*)
16428 lt_prog_compiler_wl_GCJ='-Wl,'
16429 lt_prog_compiler_pic_GCJ='-KPIC'
16430 lt_prog_compiler_static_GCJ='-Bstatic'
16431 ;;
16432
16433 sysv4*MP*)
16434 if test -d /usr/nec ;then
16435 lt_prog_compiler_pic_GCJ='-Kconform_pic'
16436 lt_prog_compiler_static_GCJ='-Bstatic'
16437 fi
16438 ;;
16439
16440 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16441 lt_prog_compiler_wl_GCJ='-Wl,'
16442 lt_prog_compiler_pic_GCJ='-KPIC'
16443 lt_prog_compiler_static_GCJ='-Bstatic'
16444 ;;
16445
16446 unicos*)
16447 lt_prog_compiler_wl_GCJ='-Wl,'
16448 lt_prog_compiler_can_build_shared_GCJ=no
16449 ;;
16450
16451 uts4*)
16452 lt_prog_compiler_pic_GCJ='-pic'
16453 lt_prog_compiler_static_GCJ='-Bstatic'
16454 ;;
16455
16456 *)
16457 lt_prog_compiler_can_build_shared_GCJ=no
16458 ;;
16459 esac
16460 fi
16461
16462 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
16463 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
16464
16465 #
16466 # Check to make sure the PIC flag actually works.
16467 #
16468 if test -n "$lt_prog_compiler_pic_GCJ"; then
16469
16470 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
16471 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
16472 if test "${lt_cv_prog_compiler_pic_works_GCJ+set}" = set; then
16473 echo $ECHO_N "(cached) $ECHO_C" >&6
16474 else
16475 lt_cv_prog_compiler_pic_works_GCJ=no
16476 ac_outfile=conftest.$ac_objext
16477 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16478 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
16479 # Insert the option either (1) after the last *FLAGS variable, or
16480 # (2) before a word containing "conftest.", or (3) at the end.
16481 # Note that $ac_compile itself does not contain backslashes and begins
16482 # with a dollar sign (not a hyphen), so the echo should work correctly.
16483 # The option is referenced via a variable to avoid confusing sed.
16484 lt_compile=`echo "$ac_compile" | $SED \
16485 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16486 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16487 -e 's:$: $lt_compiler_flag:'`
16488 (eval echo "\"\$as_me:16488: $lt_compile\"" >&5)
16489 (eval "$lt_compile" 2>conftest.err)
16490 ac_status=$?
16491 cat conftest.err >&5
16492 echo "$as_me:16492: \$? = $ac_status" >&5
16493 if (exit $ac_status) && test -s "$ac_outfile"; then
16494 # The compiler can only warn and ignore the option if not recognized
16495 # So say no if there are warnings other than the usual output.
16496 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16497 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16498 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16499 lt_cv_prog_compiler_pic_works_GCJ=yes
16500 fi
16501 fi
16502 $rm conftest*
16503
16504 fi
16505 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_pic_works_GCJ" >&5
16506 echo "${ECHO_T}$lt_cv_prog_compiler_pic_works_GCJ" >&6
16507
16508 if test x"$lt_cv_prog_compiler_pic_works_GCJ" = xyes; then
16509 case $lt_prog_compiler_pic_GCJ in
16510 "" | " "*) ;;
16511 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
16512 esac
16513 else
16514 lt_prog_compiler_pic_GCJ=
16515 lt_prog_compiler_can_build_shared_GCJ=no
16516 fi
16517
16518 fi
16519 case $host_os in
16520 # For platforms which do not support PIC, -DPIC is meaningless:
16521 *djgpp*)
16522 lt_prog_compiler_pic_GCJ=
16523 ;;
16524 *)
16525 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
16526 ;;
16527 esac
16528
16529 #
16530 # Check to make sure the static flag actually works.
16531 #
16532 wl=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag=\"$lt_prog_compiler_static_GCJ\"
16533 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16534 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
16535 if test "${lt_cv_prog_compiler_static_works_GCJ+set}" = set; then
16536 echo $ECHO_N "(cached) $ECHO_C" >&6
16537 else
16538 lt_cv_prog_compiler_static_works_GCJ=no
16539 save_LDFLAGS="$LDFLAGS"
16540 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16541 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16542 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16543 # The linker can only warn and ignore the option if not recognized
16544 # So say no if there are warnings
16545 if test -s conftest.err; then
16546 # Append any errors to the config.log.
16547 cat conftest.err 1>&5
16548 $echo "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16549 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16550 if diff conftest.exp conftest.er2 >/dev/null; then
16551 lt_cv_prog_compiler_static_works_GCJ=yes
16552 fi
16553 else
16554 lt_cv_prog_compiler_static_works_GCJ=yes
16555 fi
16556 fi
16557 $rm -r conftest*
16558 LDFLAGS="$save_LDFLAGS"
16559
16560 fi
16561 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_static_works_GCJ" >&5
16562 echo "${ECHO_T}$lt_cv_prog_compiler_static_works_GCJ" >&6
16563
16564 if test x"$lt_cv_prog_compiler_static_works_GCJ" = xyes; then
16565 :
16566 else
16567 lt_prog_compiler_static_GCJ=
16568 fi
16569
16570
16571 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16572 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16573 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
16574 echo $ECHO_N "(cached) $ECHO_C" >&6
16575 else
16576 lt_cv_prog_compiler_c_o_GCJ=no
16577 $rm -r conftest 2>/dev/null
16578 mkdir conftest
16579 cd conftest
16580 mkdir out
16581 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16582
16583 lt_compiler_flag="-o out/conftest2.$ac_objext"
16584 # Insert the option either (1) after the last *FLAGS variable, or
16585 # (2) before a word containing "conftest.", or (3) at the end.
16586 # Note that $ac_compile itself does not contain backslashes and begins
16587 # with a dollar sign (not a hyphen), so the echo should work correctly.
16588 lt_compile=`echo "$ac_compile" | $SED \
16589 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16590 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16591 -e 's:$: $lt_compiler_flag:'`
16592 (eval echo "\"\$as_me:16592: $lt_compile\"" >&5)
16593 (eval "$lt_compile" 2>out/conftest.err)
16594 ac_status=$?
16595 cat out/conftest.err >&5
16596 echo "$as_me:16596: \$? = $ac_status" >&5
16597 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16598 then
16599 # The compiler can only warn and ignore the option if not recognized
16600 # So say no if there are warnings
16601 $echo "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16602 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16603 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16604 lt_cv_prog_compiler_c_o_GCJ=yes
16605 fi
16606 fi
16607 chmod u+w . 2>&5
16608 $rm conftest*
16609 # SGI C++ compiler will create directory out/ii_files/ for
16610 # template instantiation
16611 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16612 $rm out/* && rmdir out
16613 cd ..
16614 rmdir conftest
16615 $rm conftest*
16616
16617 fi
16618 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
16619 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
16620
16621
16622 hard_links="nottested"
16623 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
16624 # do not overwrite the value of need_locks provided by the user
16625 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16626 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16627 hard_links=yes
16628 $rm conftest*
16629 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16630 touch conftest.a
16631 ln conftest.a conftest.b 2>&5 || hard_links=no
16632 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16633 echo "$as_me:$LINENO: result: $hard_links" >&5
16634 echo "${ECHO_T}$hard_links" >&6
16635 if test "$hard_links" = no; then
16636 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16637 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16638 need_locks=warn
16639 fi
16640 else
16641 need_locks=no
16642 fi
16643
16644 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16645 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16646
16647 runpath_var=
16648 allow_undefined_flag_GCJ=
16649 enable_shared_with_static_runtimes_GCJ=no
16650 archive_cmds_GCJ=
16651 archive_expsym_cmds_GCJ=
16652 old_archive_From_new_cmds_GCJ=
16653 old_archive_from_expsyms_cmds_GCJ=
16654 export_dynamic_flag_spec_GCJ=
16655 whole_archive_flag_spec_GCJ=
16656 thread_safe_flag_spec_GCJ=
16657 hardcode_libdir_flag_spec_GCJ=
16658 hardcode_libdir_flag_spec_ld_GCJ=
16659 hardcode_libdir_separator_GCJ=
16660 hardcode_direct_GCJ=no
16661 hardcode_minus_L_GCJ=no
16662 hardcode_shlibpath_var_GCJ=unsupported
16663 link_all_deplibs_GCJ=unknown
16664 hardcode_automatic_GCJ=no
16665 module_cmds_GCJ=
16666 module_expsym_cmds_GCJ=
16667 always_export_symbols_GCJ=no
16668 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16669 # include_expsyms should be a list of space-separated symbols to be *always*
16670 # included in the symbol list
16671 include_expsyms_GCJ=
16672 # exclude_expsyms can be an extended regexp of symbols to exclude
16673 # it will be wrapped by ` (' and `)$', so one must not match beginning or
16674 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
16675 # as well as any symbol that contains `d'.
16676 exclude_expsyms_GCJ='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16677 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
16678 # platforms (ab)use it in PIC code, but their linkers get confused if
16679 # the symbol is explicitly referenced. Since portable code cannot
16680 # rely on this symbol name, it's probably fine to never include it in
16681 # preloaded symbol tables.
16682 # Exclude shared library initialization/finalization symbols.
16683 extract_expsyms_cmds=
16684 # Just being paranoid about ensuring that cc_basename is set.
16685 for cc_temp in $compiler""; do
16686 case $cc_temp in
16687 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
16688 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
16689 \-*) ;;
16690 *) break;;
16691 esac
16692 done
16693 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
16694
16695 case $host_os in
16696 cygwin* | mingw* | pw32*)
16697 # FIXME: the MSVC++ port hasn't been tested in a loooong time
16698 # When not using gcc, we currently assume that we are using
16699 # Microsoft Visual C++.
16700 if test "$GCC" != yes; then
16701 with_gnu_ld=no
16702 fi
16703 ;;
16704 interix*)
16705 # we just hope/assume this is gcc and not c89 (= MSVC++)
16706 with_gnu_ld=yes
16707 ;;
16708 openbsd*)
16709 with_gnu_ld=no
16710 ;;
16711 esac
16712
16713 ld_shlibs_GCJ=yes
16714 if test "$with_gnu_ld" = yes; then
16715 # If archive_cmds runs LD, not CC, wlarc should be empty
16716 wlarc='${wl}'
16717
16718 # Set some defaults for GNU ld with shared library support. These
16719 # are reset later if shared libraries are not supported. Putting them
16720 # here allows them to be overridden if necessary.
16721 runpath_var=LD_RUN_PATH
16722 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
16723 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
16724 # ancient GNU ld didn't support --whole-archive et. al.
16725 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
16726 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16727 else
16728 whole_archive_flag_spec_GCJ=
16729 fi
16730 supports_anon_versioning=no
16731 case `$LD -v 2>/dev/null` in
16732 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
16733 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
16734 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
16735 *\ 2.11.*) ;; # other 2.11 versions
16736 *) supports_anon_versioning=yes ;;
16737 esac
16738
16739 # See if GNU ld supports shared libraries.
16740 case $host_os in
16741 aix[3-9]*)
16742 # On AIX/PPC, the GNU linker is very broken
16743 if test "$host_cpu" != ia64; then
16744 ld_shlibs_GCJ=no
16745 cat <<EOF 1>&2
16746
16747 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
16748 *** to be unable to reliably create shared libraries on AIX.
16749 *** Therefore, libtool is disabling shared libraries support. If you
16750 *** really care for shared libraries, you may want to modify your PATH
16751 *** so that a non-GNU linker is found, and then restart.
16752
16753 EOF
16754 fi
16755 ;;
16756
16757 amigaos*)
16758 archive_cmds_GCJ='$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)'
16759 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16760 hardcode_minus_L_GCJ=yes
16761
16762 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
16763 # that the semantics of dynamic libraries on AmigaOS, at least up
16764 # to version 4, is to share data among multiple programs linked
16765 # with the same dynamic library. Since this doesn't match the
16766 # behavior of shared libraries on other platforms, we can't use
16767 # them.
16768 ld_shlibs_GCJ=no
16769 ;;
16770
16771 beos*)
16772 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16773 allow_undefined_flag_GCJ=unsupported
16774 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16775 # support --undefined. This deserves some investigation. FIXME
16776 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16777 else
16778 ld_shlibs_GCJ=no
16779 fi
16780 ;;
16781
16782 cygwin* | mingw* | pw32*)
16783 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
16784 # as there is no search path for DLLs.
16785 hardcode_libdir_flag_spec_GCJ='-L$libdir'
16786 allow_undefined_flag_GCJ=unsupported
16787 always_export_symbols_GCJ=no
16788 enable_shared_with_static_runtimes_GCJ=yes
16789 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
16790
16791 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
16792 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16793 # If the export-symbols file already is a .def file (1st line
16794 # is EXPORTS), use it as is; otherwise, prepend...
16795 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16796 cp $export_symbols $output_objdir/$soname.def;
16797 else
16798 echo EXPORTS > $output_objdir/$soname.def;
16799 cat $export_symbols >> $output_objdir/$soname.def;
16800 fi~
16801 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
16802 else
16803 ld_shlibs_GCJ=no
16804 fi
16805 ;;
16806
16807 interix[3-9]*)
16808 hardcode_direct_GCJ=no
16809 hardcode_shlibpath_var_GCJ=no
16810 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
16811 export_dynamic_flag_spec_GCJ='${wl}-E'
16812 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16813 # Instead, shared libraries are loaded at an image base (0x10000000 by
16814 # default) and relocated if they conflict, which is a slow very memory
16815 # consuming and fragmenting process. To avoid this, we pick a random,
16816 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16817 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16818 archive_cmds_GCJ='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16819 archive_expsym_cmds_GCJ='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
16820 ;;
16821
16822 gnu* | linux* | k*bsd*-gnu)
16823 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16824 tmp_addflag=
16825 case $cc_basename,$host_cpu in
16826 pgcc*) # Portland Group C compiler
16827 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16828 tmp_addflag=' $pic_flag'
16829 ;;
16830 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
16831 whole_archive_flag_spec_GCJ='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16832 tmp_addflag=' $pic_flag -Mnomain' ;;
16833 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
16834 tmp_addflag=' -i_dynamic' ;;
16835 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
16836 tmp_addflag=' -i_dynamic -nofor_main' ;;
16837 ifc* | ifort*) # Intel Fortran compiler
16838 tmp_addflag=' -nofor_main' ;;
16839 esac
16840 case `$CC -V 2>&1 | sed 5q` in
16841 *Sun\ C*) # Sun C 5.9
16842 whole_archive_flag_spec_GCJ='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
16843 tmp_sharedflag='-G' ;;
16844 *Sun\ F*) # Sun Fortran 8.3
16845 tmp_sharedflag='-G' ;;
16846 *)
16847 tmp_sharedflag='-shared' ;;
16848 esac
16849 archive_cmds_GCJ='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16850
16851 if test $supports_anon_versioning = yes; then
16852 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
16853 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16854 $echo "local: *; };" >> $output_objdir/$libname.ver~
16855 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16856 fi
16857 else
16858 ld_shlibs_GCJ=no
16859 fi
16860 ;;
16861
16862 netbsd*)
16863 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16864 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16865 wlarc=
16866 else
16867 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16868 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16869 fi
16870 ;;
16871
16872 solaris*)
16873 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
16874 ld_shlibs_GCJ=no
16875 cat <<EOF 1>&2
16876
16877 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16878 *** create shared libraries on Solaris systems. Therefore, libtool
16879 *** is disabling shared libraries support. We urge you to upgrade GNU
16880 *** binutils to release 2.9.1 or newer. Another option is to modify
16881 *** your PATH or compiler configuration so that the native linker is
16882 *** used, and then restart.
16883
16884 EOF
16885 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16886 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16887 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16888 else
16889 ld_shlibs_GCJ=no
16890 fi
16891 ;;
16892
16893 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16894 case `$LD -v 2>&1` in
16895 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16896 ld_shlibs_GCJ=no
16897 cat <<_LT_EOF 1>&2
16898
16899 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16900 *** reliably create shared libraries on SCO systems. Therefore, libtool
16901 *** is disabling shared libraries support. We urge you to upgrade GNU
16902 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16903 *** your PATH or compiler configuration so that the native linker is
16904 *** used, and then restart.
16905
16906 _LT_EOF
16907 ;;
16908 *)
16909 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16910 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
16911 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
16912 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
16913 else
16914 ld_shlibs_GCJ=no
16915 fi
16916 ;;
16917 esac
16918 ;;
16919
16920 sunos4*)
16921 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16922 wlarc=
16923 hardcode_direct_GCJ=yes
16924 hardcode_shlibpath_var_GCJ=no
16925 ;;
16926
16927 *)
16928 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
16929 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16930 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16931 else
16932 ld_shlibs_GCJ=no
16933 fi
16934 ;;
16935 esac
16936
16937 if test "$ld_shlibs_GCJ" = no; then
16938 runpath_var=
16939 hardcode_libdir_flag_spec_GCJ=
16940 export_dynamic_flag_spec_GCJ=
16941 whole_archive_flag_spec_GCJ=
16942 fi
16943 else
16944 # PORTME fill in a description of your system's linker (not GNU ld)
16945 case $host_os in
16946 aix3*)
16947 allow_undefined_flag_GCJ=unsupported
16948 always_export_symbols_GCJ=yes
16949 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
16950 # Note: this linker hardcodes the directories in LIBPATH if there
16951 # are no directories specified by -L.
16952 hardcode_minus_L_GCJ=yes
16953 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16954 # Neither direct hardcoding nor static linking is supported with a
16955 # broken collect2.
16956 hardcode_direct_GCJ=unsupported
16957 fi
16958 ;;
16959
16960 aix[4-9]*)
16961 if test "$host_cpu" = ia64; then
16962 # On IA64, the linker does run time linking by default, so we don't
16963 # have to do anything special.
16964 aix_use_runtimelinking=no
16965 exp_sym_flag='-Bexport'
16966 no_entry_flag=""
16967 else
16968 # If we're using GNU nm, then we don't want the "-C" option.
16969 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16970 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16971 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16972 else
16973 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
16974 fi
16975 aix_use_runtimelinking=no
16976
16977 # Test if we are trying to use run time linking or normal
16978 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16979 # need to do runtime linking.
16980 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16981 for ld_flag in $LDFLAGS; do
16982 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16983 aix_use_runtimelinking=yes
16984 break
16985 fi
16986 done
16987 ;;
16988 esac
16989
16990 exp_sym_flag='-bexport'
16991 no_entry_flag='-bnoentry'
16992 fi
16993
16994 # When large executables or shared objects are built, AIX ld can
16995 # have problems creating the table of contents. If linking a library
16996 # or program results in "error TOC overflow" add -mminimal-toc to
16997 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16998 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16999
17000 archive_cmds_GCJ=''
17001 hardcode_direct_GCJ=yes
17002 hardcode_libdir_separator_GCJ=':'
17003 link_all_deplibs_GCJ=yes
17004
17005 if test "$GCC" = yes; then
17006 case $host_os in aix4.[012]|aix4.[012].*)
17007 # We only want to do this on AIX 4.2 and lower, the check
17008 # below for broken collect2 doesn't work under 4.3+
17009 collect2name=`${CC} -print-prog-name=collect2`
17010 if test -f "$collect2name" && \
17011 strings "$collect2name" | grep resolve_lib_name >/dev/null
17012 then
17013 # We have reworked collect2
17014 :
17015 else
17016 # We have old collect2
17017 hardcode_direct_GCJ=unsupported
17018 # It fails to find uninstalled libraries when the uninstalled
17019 # path is not listed in the libpath. Setting hardcode_minus_L
17020 # to unsupported forces relinking
17021 hardcode_minus_L_GCJ=yes
17022 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17023 hardcode_libdir_separator_GCJ=
17024 fi
17025 ;;
17026 esac
17027 shared_flag='-shared'
17028 if test "$aix_use_runtimelinking" = yes; then
17029 shared_flag="$shared_flag "'${wl}-G'
17030 fi
17031 else
17032 # not using gcc
17033 if test "$host_cpu" = ia64; then
17034 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
17035 # chokes on -Wl,-G. The following line is correct:
17036 shared_flag='-G'
17037 else
17038 if test "$aix_use_runtimelinking" = yes; then
17039 shared_flag='${wl}-G'
17040 else
17041 shared_flag='${wl}-bM:SRE'
17042 fi
17043 fi
17044 fi
17045
17046 # It seems that -bexpall does not export symbols beginning with
17047 # underscore (_), so it is better to generate a list of symbols to export.
17048 always_export_symbols_GCJ=yes
17049 if test "$aix_use_runtimelinking" = yes; then
17050 # Warning - without using the other runtime loading flags (-brtl),
17051 # -berok will link without error, but may produce a broken library.
17052 allow_undefined_flag_GCJ='-berok'
17053 # Determine the default libpath from the value encoded in an empty executable.
17054 cat >conftest.$ac_ext <<_ACEOF
17055 /* confdefs.h. */
17056 _ACEOF
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h. */
17060
17061 int
17062 main ()
17063 {
17064
17065 ;
17066 return 0;
17067 }
17068 _ACEOF
17069 rm -f conftest.$ac_objext conftest$ac_exeext
17070 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17071 (eval $ac_link) 2>conftest.er1
17072 ac_status=$?
17073 grep -v '^ *+' conftest.er1 >conftest.err
17074 rm -f conftest.er1
17075 cat conftest.err >&5
17076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17077 (exit $ac_status); } &&
17078 { ac_try='test -z "$ac_c_werror_flag"
17079 || test ! -s conftest.err'
17080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17081 (eval $ac_try) 2>&5
17082 ac_status=$?
17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17084 (exit $ac_status); }; } &&
17085 { ac_try='test -s conftest$ac_exeext'
17086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17087 (eval $ac_try) 2>&5
17088 ac_status=$?
17089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17090 (exit $ac_status); }; }; then
17091
17092 lt_aix_libpath_sed='
17093 /Import File Strings/,/^$/ {
17094 /^0/ {
17095 s/^0 *\(.*\)$/\1/
17096 p
17097 }
17098 }'
17099 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17100 # Check for a 64-bit object if we didn't find anything.
17101 if test -z "$aix_libpath"; then
17102 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17103 fi
17104 else
17105 echo "$as_me: failed program was:" >&5
17106 sed 's/^/| /' conftest.$ac_ext >&5
17107
17108 fi
17109 rm -f conftest.err conftest.$ac_objext \
17110 conftest$ac_exeext conftest.$ac_ext
17111 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17112
17113 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17114 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
17115 else
17116 if test "$host_cpu" = ia64; then
17117 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
17118 allow_undefined_flag_GCJ="-z nodefs"
17119 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
17120 else
17121 # Determine the default libpath from the value encoded in an empty executable.
17122 cat >conftest.$ac_ext <<_ACEOF
17123 /* confdefs.h. */
17124 _ACEOF
17125 cat confdefs.h >>conftest.$ac_ext
17126 cat >>conftest.$ac_ext <<_ACEOF
17127 /* end confdefs.h. */
17128
17129 int
17130 main ()
17131 {
17132
17133 ;
17134 return 0;
17135 }
17136 _ACEOF
17137 rm -f conftest.$ac_objext conftest$ac_exeext
17138 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17139 (eval $ac_link) 2>conftest.er1
17140 ac_status=$?
17141 grep -v '^ *+' conftest.er1 >conftest.err
17142 rm -f conftest.er1
17143 cat conftest.err >&5
17144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17145 (exit $ac_status); } &&
17146 { ac_try='test -z "$ac_c_werror_flag"
17147 || test ! -s conftest.err'
17148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17149 (eval $ac_try) 2>&5
17150 ac_status=$?
17151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17152 (exit $ac_status); }; } &&
17153 { ac_try='test -s conftest$ac_exeext'
17154 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17155 (eval $ac_try) 2>&5
17156 ac_status=$?
17157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17158 (exit $ac_status); }; }; then
17159
17160 lt_aix_libpath_sed='
17161 /Import File Strings/,/^$/ {
17162 /^0/ {
17163 s/^0 *\(.*\)$/\1/
17164 p
17165 }
17166 }'
17167 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17168 # Check for a 64-bit object if we didn't find anything.
17169 if test -z "$aix_libpath"; then
17170 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
17171 fi
17172 else
17173 echo "$as_me: failed program was:" >&5
17174 sed 's/^/| /' conftest.$ac_ext >&5
17175
17176 fi
17177 rm -f conftest.err conftest.$ac_objext \
17178 conftest$ac_exeext conftest.$ac_ext
17179 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
17180
17181 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
17182 # Warning - without using the other run time loading flags,
17183 # -berok will link without error, but may produce a broken library.
17184 no_undefined_flag_GCJ=' ${wl}-bernotok'
17185 allow_undefined_flag_GCJ=' ${wl}-berok'
17186 # Exported symbols can be pulled into shared objects from archives
17187 whole_archive_flag_spec_GCJ='$convenience'
17188 archive_cmds_need_lc_GCJ=yes
17189 # This is similar to how AIX traditionally builds its shared libraries.
17190 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
17191 fi
17192 fi
17193 ;;
17194
17195 amigaos*)
17196 archive_cmds_GCJ='$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)'
17197 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17198 hardcode_minus_L_GCJ=yes
17199 # see comment about different semantics on the GNU ld section
17200 ld_shlibs_GCJ=no
17201 ;;
17202
17203 bsdi[45]*)
17204 export_dynamic_flag_spec_GCJ=-rdynamic
17205 ;;
17206
17207 cygwin* | mingw* | pw32*)
17208 # When not using gcc, we currently assume that we are using
17209 # Microsoft Visual C++.
17210 # hardcode_libdir_flag_spec is actually meaningless, as there is
17211 # no search path for DLLs.
17212 hardcode_libdir_flag_spec_GCJ=' '
17213 allow_undefined_flag_GCJ=unsupported
17214 # Tell ltmain to make .lib files, not .a files.
17215 libext=lib
17216 # Tell ltmain to make .dll files, not .so files.
17217 shrext_cmds=".dll"
17218 # FIXME: Setting linknames here is a bad hack.
17219 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
17220 # The linker will automatically build a .lib file if we build a DLL.
17221 old_archive_From_new_cmds_GCJ='true'
17222 # FIXME: Should let the user specify the lib program.
17223 old_archive_cmds_GCJ='lib -OUT:$oldlib$oldobjs$old_deplibs'
17224 fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
17225 enable_shared_with_static_runtimes_GCJ=yes
17226 ;;
17227
17228 darwin* | rhapsody*)
17229 case $host_os in
17230 rhapsody* | darwin1.[012])
17231 allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
17232 ;;
17233 *) # Darwin 1.3 on
17234 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
17235 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17236 else
17237 case ${MACOSX_DEPLOYMENT_TARGET} in
17238 10.[012])
17239 allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
17240 ;;
17241 10.*)
17242 allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
17243 ;;
17244 esac
17245 fi
17246 ;;
17247 esac
17248 archive_cmds_need_lc_GCJ=no
17249 hardcode_direct_GCJ=no
17250 hardcode_automatic_GCJ=yes
17251 hardcode_shlibpath_var_GCJ=unsupported
17252 whole_archive_flag_spec_GCJ=''
17253 link_all_deplibs_GCJ=yes
17254 if test "$GCC" = yes ; then
17255 output_verbose_link_cmd='echo'
17256 archive_cmds_GCJ="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
17257 module_cmds_GCJ="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
17258 archive_expsym_cmds_GCJ="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
17259 module_expsym_cmds_GCJ="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
17260 else
17261 case $cc_basename in
17262 xlc*)
17263 output_verbose_link_cmd='echo'
17264 archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
17265 module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
17266 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
17267 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17268 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
17269 ;;
17270 *)
17271 ld_shlibs_GCJ=no
17272 ;;
17273 esac
17274 fi
17275 ;;
17276
17277 dgux*)
17278 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17279 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17280 hardcode_shlibpath_var_GCJ=no
17281 ;;
17282
17283 freebsd1*)
17284 ld_shlibs_GCJ=no
17285 ;;
17286
17287 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
17288 # support. Future versions do this automatically, but an explicit c++rt0.o
17289 # does not break anything, and helps significantly (at the cost of a little
17290 # extra space).
17291 freebsd2.2*)
17292 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
17293 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17294 hardcode_direct_GCJ=yes
17295 hardcode_shlibpath_var_GCJ=no
17296 ;;
17297
17298 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
17299 freebsd2*)
17300 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17301 hardcode_direct_GCJ=yes
17302 hardcode_minus_L_GCJ=yes
17303 hardcode_shlibpath_var_GCJ=no
17304 ;;
17305
17306 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
17307 freebsd* | dragonfly*)
17308 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
17309 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17310 hardcode_direct_GCJ=yes
17311 hardcode_shlibpath_var_GCJ=no
17312 ;;
17313
17314 hpux9*)
17315 if test "$GCC" = yes; then
17316 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
17317 else
17318 archive_cmds_GCJ='$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'
17319 fi
17320 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17321 hardcode_libdir_separator_GCJ=:
17322 hardcode_direct_GCJ=yes
17323
17324 # hardcode_minus_L: Not really in the search PATH,
17325 # but as the default location of the library.
17326 hardcode_minus_L_GCJ=yes
17327 export_dynamic_flag_spec_GCJ='${wl}-E'
17328 ;;
17329
17330 hpux10*)
17331 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17332 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17333 else
17334 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
17335 fi
17336 if test "$with_gnu_ld" = no; then
17337 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17338 hardcode_libdir_separator_GCJ=:
17339
17340 hardcode_direct_GCJ=yes
17341 export_dynamic_flag_spec_GCJ='${wl}-E'
17342
17343 # hardcode_minus_L: Not really in the search PATH,
17344 # but as the default location of the library.
17345 hardcode_minus_L_GCJ=yes
17346 fi
17347 ;;
17348
17349 hpux11*)
17350 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
17351 case $host_cpu in
17352 hppa*64*)
17353 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17354 ;;
17355 ia64*)
17356 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17357 ;;
17358 *)
17359 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17360 ;;
17361 esac
17362 else
17363 case $host_cpu in
17364 hppa*64*)
17365 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17366 ;;
17367 ia64*)
17368 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
17369 ;;
17370 *)
17371 archive_cmds_GCJ='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
17372 ;;
17373 esac
17374 fi
17375 if test "$with_gnu_ld" = no; then
17376 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
17377 hardcode_libdir_separator_GCJ=:
17378
17379 case $host_cpu in
17380 hppa*64*|ia64*)
17381 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
17382 hardcode_direct_GCJ=no
17383 hardcode_shlibpath_var_GCJ=no
17384 ;;
17385 *)
17386 hardcode_direct_GCJ=yes
17387 export_dynamic_flag_spec_GCJ='${wl}-E'
17388
17389 # hardcode_minus_L: Not really in the search PATH,
17390 # but as the default location of the library.
17391 hardcode_minus_L_GCJ=yes
17392 ;;
17393 esac
17394 fi
17395 ;;
17396
17397 irix5* | irix6* | nonstopux*)
17398 if test "$GCC" = yes; then
17399 archive_cmds_GCJ='$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'
17400 else
17401 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
17402 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
17403 fi
17404 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17405 hardcode_libdir_separator_GCJ=:
17406 link_all_deplibs_GCJ=yes
17407 ;;
17408
17409 netbsd*)
17410 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17411 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
17412 else
17413 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
17414 fi
17415 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17416 hardcode_direct_GCJ=yes
17417 hardcode_shlibpath_var_GCJ=no
17418 ;;
17419
17420 newsos6)
17421 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17422 hardcode_direct_GCJ=yes
17423 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17424 hardcode_libdir_separator_GCJ=:
17425 hardcode_shlibpath_var_GCJ=no
17426 ;;
17427
17428 openbsd*)
17429 if test -f /usr/libexec/ld.so; then
17430 hardcode_direct_GCJ=yes
17431 hardcode_shlibpath_var_GCJ=no
17432 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17433 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17434 archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
17435 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17436 export_dynamic_flag_spec_GCJ='${wl}-E'
17437 else
17438 case $host_os in
17439 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
17440 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
17441 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17442 ;;
17443 *)
17444 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
17445 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
17446 ;;
17447 esac
17448 fi
17449 else
17450 ld_shlibs_GCJ=no
17451 fi
17452 ;;
17453
17454 os2*)
17455 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17456 hardcode_minus_L_GCJ=yes
17457 allow_undefined_flag_GCJ=unsupported
17458 archive_cmds_GCJ='$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'
17459 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
17460 ;;
17461
17462 osf3*)
17463 if test "$GCC" = yes; then
17464 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17465 archive_cmds_GCJ='$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'
17466 else
17467 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17468 archive_cmds_GCJ='$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'
17469 fi
17470 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17471 hardcode_libdir_separator_GCJ=:
17472 ;;
17473
17474 osf4* | osf5*) # as osf3* with the addition of -msym flag
17475 if test "$GCC" = yes; then
17476 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
17477 archive_cmds_GCJ='$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'
17478 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
17479 else
17480 allow_undefined_flag_GCJ=' -expect_unresolved \*'
17481 archive_cmds_GCJ='$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'
17482 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
17483 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
17484
17485 # Both c and cxx compiler support -rpath directly
17486 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
17487 fi
17488 hardcode_libdir_separator_GCJ=:
17489 ;;
17490
17491 solaris*)
17492 no_undefined_flag_GCJ=' -z text'
17493 if test "$GCC" = yes; then
17494 wlarc='${wl}'
17495 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
17496 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17497 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
17498 else
17499 wlarc=''
17500 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
17501 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
17502 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
17503 fi
17504 hardcode_libdir_flag_spec_GCJ='-R$libdir'
17505 hardcode_shlibpath_var_GCJ=no
17506 case $host_os in
17507 solaris2.[0-5] | solaris2.[0-5].*) ;;
17508 *)
17509 # The compiler driver will combine and reorder linker options,
17510 # but understands `-z linker_flag'. GCC discards it without `$wl',
17511 # but is careful enough not to reorder.
17512 # Supported since Solaris 2.6 (maybe 2.5.1?)
17513 if test "$GCC" = yes; then
17514 whole_archive_flag_spec_GCJ='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
17515 else
17516 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract'
17517 fi
17518 ;;
17519 esac
17520 link_all_deplibs_GCJ=yes
17521 ;;
17522
17523 sunos4*)
17524 if test "x$host_vendor" = xsequent; then
17525 # Use $CC to link under sequent, because it throws in some extra .o
17526 # files that make .init and .fini sections work.
17527 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
17528 else
17529 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
17530 fi
17531 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17532 hardcode_direct_GCJ=yes
17533 hardcode_minus_L_GCJ=yes
17534 hardcode_shlibpath_var_GCJ=no
17535 ;;
17536
17537 sysv4)
17538 case $host_vendor in
17539 sni)
17540 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17541 hardcode_direct_GCJ=yes # is this really true???
17542 ;;
17543 siemens)
17544 ## LD is ld it makes a PLAMLIB
17545 ## CC just makes a GrossModule.
17546 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
17547 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
17548 hardcode_direct_GCJ=no
17549 ;;
17550 motorola)
17551 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17552 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
17553 ;;
17554 esac
17555 runpath_var='LD_RUN_PATH'
17556 hardcode_shlibpath_var_GCJ=no
17557 ;;
17558
17559 sysv4.3*)
17560 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17561 hardcode_shlibpath_var_GCJ=no
17562 export_dynamic_flag_spec_GCJ='-Bexport'
17563 ;;
17564
17565 sysv4*MP*)
17566 if test -d /usr/nec; then
17567 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17568 hardcode_shlibpath_var_GCJ=no
17569 runpath_var=LD_RUN_PATH
17570 hardcode_runpath_var=yes
17571 ld_shlibs_GCJ=yes
17572 fi
17573 ;;
17574
17575 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
17576 no_undefined_flag_GCJ='${wl}-z,text'
17577 archive_cmds_need_lc_GCJ=no
17578 hardcode_shlibpath_var_GCJ=no
17579 runpath_var='LD_RUN_PATH'
17580
17581 if test "$GCC" = yes; then
17582 archive_cmds_GCJ='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17583 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17584 else
17585 archive_cmds_GCJ='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17586 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
17587 fi
17588 ;;
17589
17590 sysv5* | sco3.2v5* | sco5v6*)
17591 # Note: We can NOT use -z defs as we might desire, because we do not
17592 # link with -lc, and that would cause any symbols used from libc to
17593 # always be unresolved, which means just about no library would
17594 # ever link correctly. If we're not using GNU ld we use -z text
17595 # though, which does catch some bad symbols but isn't as heavy-handed
17596 # as -z defs.
17597 no_undefined_flag_GCJ='${wl}-z,text'
17598 allow_undefined_flag_GCJ='${wl}-z,nodefs'
17599 archive_cmds_need_lc_GCJ=no
17600 hardcode_shlibpath_var_GCJ=no
17601 hardcode_libdir_flag_spec_GCJ='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
17602 hardcode_libdir_separator_GCJ=':'
17603 link_all_deplibs_GCJ=yes
17604 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
17605 runpath_var='LD_RUN_PATH'
17606
17607 if test "$GCC" = yes; then
17608 archive_cmds_GCJ='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17609 archive_expsym_cmds_GCJ='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17610 else
17611 archive_cmds_GCJ='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17612 archive_expsym_cmds_GCJ='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
17613 fi
17614 ;;
17615
17616 uts4*)
17617 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
17618 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17619 hardcode_shlibpath_var_GCJ=no
17620 ;;
17621
17622 *)
17623 ld_shlibs_GCJ=no
17624 ;;
17625 esac
17626 fi
17627
17628 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
17629 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
17630 test "$ld_shlibs_GCJ" = no && can_build_shared=no
17631
17632 #
17633 # Do we need to explicitly link libc?
17634 #
17635 case "x$archive_cmds_need_lc_GCJ" in
17636 x|xyes)
17637 # Assume -lc should be added
17638 archive_cmds_need_lc_GCJ=yes
17639
17640 if test "$enable_shared" = yes && test "$GCC" = yes; then
17641 case $archive_cmds_GCJ in
17642 *'~'*)
17643 # FIXME: we may have to deal with multi-command sequences.
17644 ;;
17645 '$CC '*)
17646 # Test whether the compiler implicitly links with -lc since on some
17647 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17648 # to ld, don't add -lc before -lgcc.
17649 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17650 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17651 $rm conftest*
17652 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17653
17654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17655 (eval $ac_compile) 2>&5
17656 ac_status=$?
17657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17658 (exit $ac_status); } 2>conftest.err; then
17659 soname=conftest
17660 lib=conftest
17661 libobjs=conftest.$ac_objext
17662 deplibs=
17663 wl=$lt_prog_compiler_wl_GCJ
17664 pic_flag=$lt_prog_compiler_pic_GCJ
17665 compiler_flags=-v
17666 linker_flags=-v
17667 verstring=
17668 output_objdir=.
17669 libname=conftest
17670 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
17671 allow_undefined_flag_GCJ=
17672 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17673 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
17674 ac_status=$?
17675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17676 (exit $ac_status); }
17677 then
17678 archive_cmds_need_lc_GCJ=no
17679 else
17680 archive_cmds_need_lc_GCJ=yes
17681 fi
17682 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
17683 else
17684 cat conftest.err 1>&5
17685 fi
17686 $rm conftest*
17687 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
17688 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
17689 ;;
17690 esac
17691 fi
17692 ;;
17693 esac
17694
17695 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17696 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17697 library_names_spec=
17698 libname_spec='lib$name'
17699 soname_spec=
17700 shrext_cmds=".so"
17701 postinstall_cmds=
17702 postuninstall_cmds=
17703 finish_cmds=
17704 finish_eval=
17705 shlibpath_var=
17706 shlibpath_overrides_runpath=unknown
17707 version_type=none
17708 dynamic_linker="$host_os ld.so"
17709 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17710
17711 need_lib_prefix=unknown
17712 hardcode_into_libs=no
17713
17714 # when you set need_version to no, make sure it does not cause -set_version
17715 # flags to be left without arguments
17716 need_version=unknown
17717
17718 case $host_os in
17719 aix3*)
17720 version_type=linux
17721 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17722 shlibpath_var=LIBPATH
17723
17724 # AIX 3 has no versioning support, so we append a major version to the name.
17725 soname_spec='${libname}${release}${shared_ext}$major'
17726 ;;
17727
17728 aix[4-9]*)
17729 version_type=linux
17730 need_lib_prefix=no
17731 need_version=no
17732 hardcode_into_libs=yes
17733 if test "$host_cpu" = ia64; then
17734 # AIX 5 supports IA64
17735 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17736 shlibpath_var=LD_LIBRARY_PATH
17737 else
17738 # With GCC up to 2.95.x, collect2 would create an import file
17739 # for dependence libraries. The import file would start with
17740 # the line `#! .'. This would cause the generated library to
17741 # depend on `.', always an invalid library. This was fixed in
17742 # development snapshots of GCC prior to 3.0.
17743 case $host_os in
17744 aix4 | aix4.[01] | aix4.[01].*)
17745 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17746 echo ' yes '
17747 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
17748 :
17749 else
17750 can_build_shared=no
17751 fi
17752 ;;
17753 esac
17754 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17755 # soname into executable. Probably we can add versioning support to
17756 # collect2, so additional links can be useful in future.
17757 if test "$aix_use_runtimelinking" = yes; then
17758 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17759 # instead of lib<name>.a to let people know that these are not
17760 # typical AIX shared libraries.
17761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17762 else
17763 # We preserve .a as extension for shared libraries through AIX4.2
17764 # and later when we are not doing run time linking.
17765 library_names_spec='${libname}${release}.a $libname.a'
17766 soname_spec='${libname}${release}${shared_ext}$major'
17767 fi
17768 shlibpath_var=LIBPATH
17769 fi
17770 ;;
17771
17772 amigaos*)
17773 library_names_spec='$libname.ixlibrary $libname.a'
17774 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17775 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'
17776 ;;
17777
17778 beos*)
17779 library_names_spec='${libname}${shared_ext}'
17780 dynamic_linker="$host_os ld.so"
17781 shlibpath_var=LIBRARY_PATH
17782 ;;
17783
17784 bsdi[45]*)
17785 version_type=linux
17786 need_version=no
17787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17788 soname_spec='${libname}${release}${shared_ext}$major'
17789 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17790 shlibpath_var=LD_LIBRARY_PATH
17791 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17792 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17793 # the default ld.so.conf also contains /usr/contrib/lib and
17794 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17795 # libtool to hard-code these into programs
17796 ;;
17797
17798 cygwin* | mingw* | pw32*)
17799 version_type=windows
17800 shrext_cmds=".dll"
17801 need_version=no
17802 need_lib_prefix=no
17803
17804 case $GCC,$host_os in
17805 yes,cygwin* | yes,mingw* | yes,pw32*)
17806 library_names_spec='$libname.dll.a'
17807 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17808 postinstall_cmds='base_file=`basename \${file}`~
17809 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17810 dldir=$destdir/`dirname \$dlpath`~
17811 test -d \$dldir || mkdir -p \$dldir~
17812 $install_prog $dir/$dlname \$dldir/$dlname~
17813 chmod a+x \$dldir/$dlname'
17814 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17815 dlpath=$dir/\$dldll~
17816 $rm \$dlpath'
17817 shlibpath_overrides_runpath=yes
17818
17819 case $host_os in
17820 cygwin*)
17821 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17822 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17823 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17824 ;;
17825 mingw*)
17826 # MinGW DLLs use traditional 'lib' prefix
17827 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17828 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17829 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
17830 # It is most probably a Windows format PATH printed by
17831 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17832 # path with ; separators, and with drive letters. We can handle the
17833 # drive letters (cygwin fileutils understands them), so leave them,
17834 # especially as we might pass files found there to a mingw objdump,
17835 # which wouldn't understand a cygwinified path. Ahh.
17836 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17837 else
17838 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17839 fi
17840 ;;
17841 pw32*)
17842 # pw32 DLLs use 'pw' prefix rather than 'lib'
17843 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17844 ;;
17845 esac
17846 ;;
17847
17848 *)
17849 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17850 ;;
17851 esac
17852 dynamic_linker='Win32 ld.exe'
17853 # FIXME: first we should search . and the directory the executable is in
17854 shlibpath_var=PATH
17855 ;;
17856
17857 darwin* | rhapsody*)
17858 dynamic_linker="$host_os dyld"
17859 version_type=darwin
17860 need_lib_prefix=no
17861 need_version=no
17862 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17863 soname_spec='${libname}${release}${major}$shared_ext'
17864 shlibpath_overrides_runpath=yes
17865 shlibpath_var=DYLD_LIBRARY_PATH
17866 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17867
17868 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17869 ;;
17870
17871 dgux*)
17872 version_type=linux
17873 need_lib_prefix=no
17874 need_version=no
17875 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17876 soname_spec='${libname}${release}${shared_ext}$major'
17877 shlibpath_var=LD_LIBRARY_PATH
17878 ;;
17879
17880 freebsd1*)
17881 dynamic_linker=no
17882 ;;
17883
17884 freebsd* | dragonfly*)
17885 # DragonFly does not have aout. When/if they implement a new
17886 # versioning mechanism, adjust this.
17887 if test -x /usr/bin/objformat; then
17888 objformat=`/usr/bin/objformat`
17889 else
17890 case $host_os in
17891 freebsd[123]*) objformat=aout ;;
17892 *) objformat=elf ;;
17893 esac
17894 fi
17895 version_type=freebsd-$objformat
17896 case $version_type in
17897 freebsd-elf*)
17898 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17899 need_version=no
17900 need_lib_prefix=no
17901 ;;
17902 freebsd-*)
17903 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17904 need_version=yes
17905 ;;
17906 esac
17907 shlibpath_var=LD_LIBRARY_PATH
17908 case $host_os in
17909 freebsd2*)
17910 shlibpath_overrides_runpath=yes
17911 ;;
17912 freebsd3.[01]* | freebsdelf3.[01]*)
17913 shlibpath_overrides_runpath=yes
17914 hardcode_into_libs=yes
17915 ;;
17916 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17917 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17918 shlibpath_overrides_runpath=no
17919 hardcode_into_libs=yes
17920 ;;
17921 *) # from 4.6 on, and DragonFly
17922 shlibpath_overrides_runpath=yes
17923 hardcode_into_libs=yes
17924 ;;
17925 esac
17926 ;;
17927
17928 gnu*)
17929 version_type=linux
17930 need_lib_prefix=no
17931 need_version=no
17932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17933 soname_spec='${libname}${release}${shared_ext}$major'
17934 shlibpath_var=LD_LIBRARY_PATH
17935 hardcode_into_libs=yes
17936 ;;
17937
17938 hpux9* | hpux10* | hpux11*)
17939 # Give a soname corresponding to the major version so that dld.sl refuses to
17940 # link against other versions.
17941 version_type=sunos
17942 need_lib_prefix=no
17943 need_version=no
17944 case $host_cpu in
17945 ia64*)
17946 shrext_cmds='.so'
17947 hardcode_into_libs=yes
17948 dynamic_linker="$host_os dld.so"
17949 shlibpath_var=LD_LIBRARY_PATH
17950 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17952 soname_spec='${libname}${release}${shared_ext}$major'
17953 if test "X$HPUX_IA64_MODE" = X32; then
17954 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17955 else
17956 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17957 fi
17958 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17959 ;;
17960 hppa*64*)
17961 shrext_cmds='.sl'
17962 hardcode_into_libs=yes
17963 dynamic_linker="$host_os dld.sl"
17964 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17965 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17966 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17967 soname_spec='${libname}${release}${shared_ext}$major'
17968 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17969 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17970 ;;
17971 *)
17972 shrext_cmds='.sl'
17973 dynamic_linker="$host_os dld.sl"
17974 shlibpath_var=SHLIB_PATH
17975 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17977 soname_spec='${libname}${release}${shared_ext}$major'
17978 ;;
17979 esac
17980 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17981 postinstall_cmds='chmod 555 $lib'
17982 ;;
17983
17984 interix[3-9]*)
17985 version_type=linux
17986 need_lib_prefix=no
17987 need_version=no
17988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17989 soname_spec='${libname}${release}${shared_ext}$major'
17990 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17991 shlibpath_var=LD_LIBRARY_PATH
17992 shlibpath_overrides_runpath=no
17993 hardcode_into_libs=yes
17994 ;;
17995
17996 irix5* | irix6* | nonstopux*)
17997 case $host_os in
17998 nonstopux*) version_type=nonstopux ;;
17999 *)
18000 if test "$lt_cv_prog_gnu_ld" = yes; then
18001 version_type=linux
18002 else
18003 version_type=irix
18004 fi ;;
18005 esac
18006 need_lib_prefix=no
18007 need_version=no
18008 soname_spec='${libname}${release}${shared_ext}$major'
18009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18010 case $host_os in
18011 irix5* | nonstopux*)
18012 libsuff= shlibsuff=
18013 ;;
18014 *)
18015 case $LD in # libtool.m4 will add one of these switches to LD
18016 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
18017 libsuff= shlibsuff= libmagic=32-bit;;
18018 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
18019 libsuff=32 shlibsuff=N32 libmagic=N32;;
18020 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
18021 libsuff=64 shlibsuff=64 libmagic=64-bit;;
18022 *) libsuff= shlibsuff= libmagic=never-match;;
18023 esac
18024 ;;
18025 esac
18026 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
18027 shlibpath_overrides_runpath=no
18028 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18029 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18030 hardcode_into_libs=yes
18031 ;;
18032
18033 # No shared lib support for Linux oldld, aout, or coff.
18034 linux*oldld* | linux*aout* | linux*coff*)
18035 dynamic_linker=no
18036 ;;
18037
18038 # This must be Linux ELF.
18039 linux* | k*bsd*-gnu)
18040 version_type=linux
18041 need_lib_prefix=no
18042 need_version=no
18043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18044 soname_spec='${libname}${release}${shared_ext}$major'
18045 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18046 shlibpath_var=LD_LIBRARY_PATH
18047 shlibpath_overrides_runpath=no
18048 # This implies no fast_install, which is unacceptable.
18049 # Some rework will be needed to allow for fast_install
18050 # before this can be enabled.
18051 hardcode_into_libs=yes
18052 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18053 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
18054
18055 # Append ld.so.conf contents to the search path
18056 if test -f /etc/ld.so.conf; then
18057 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
18058 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
18059 fi
18060
18061 # We used to test for /lib/ld.so.1 and disable shared libraries on
18062 # powerpc, because MkLinux only supported shared libraries with the
18063 # GNU dynamic linker. Since this was broken with cross compilers,
18064 # most powerpc-linux boxes support dynamic linking these days and
18065 # people can always --disable-shared, the test was removed, and we
18066 # assume the GNU/Linux dynamic linker is in use.
18067 dynamic_linker='GNU/Linux ld.so'
18068 ;;
18069
18070 netbsd*)
18071 version_type=sunos
18072 need_lib_prefix=no
18073 need_version=no
18074 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18076 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18077 dynamic_linker='NetBSD (a.out) ld.so'
18078 else
18079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18080 soname_spec='${libname}${release}${shared_ext}$major'
18081 dynamic_linker='NetBSD ld.elf_so'
18082 fi
18083 shlibpath_var=LD_LIBRARY_PATH
18084 shlibpath_overrides_runpath=yes
18085 hardcode_into_libs=yes
18086 ;;
18087
18088 newsos6)
18089 version_type=linux
18090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18091 shlibpath_var=LD_LIBRARY_PATH
18092 shlibpath_overrides_runpath=yes
18093 ;;
18094
18095 nto-qnx*)
18096 version_type=linux
18097 need_lib_prefix=no
18098 need_version=no
18099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18100 soname_spec='${libname}${release}${shared_ext}$major'
18101 shlibpath_var=LD_LIBRARY_PATH
18102 shlibpath_overrides_runpath=yes
18103 ;;
18104
18105 openbsd*)
18106 version_type=sunos
18107 sys_lib_dlsearch_path_spec="/usr/lib"
18108 need_lib_prefix=no
18109 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18110 case $host_os in
18111 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
18112 *) need_version=no ;;
18113 esac
18114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18116 shlibpath_var=LD_LIBRARY_PATH
18117 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18118 case $host_os in
18119 openbsd2.[89] | openbsd2.[89].*)
18120 shlibpath_overrides_runpath=no
18121 ;;
18122 *)
18123 shlibpath_overrides_runpath=yes
18124 ;;
18125 esac
18126 else
18127 shlibpath_overrides_runpath=yes
18128 fi
18129 ;;
18130
18131 os2*)
18132 libname_spec='$name'
18133 shrext_cmds=".dll"
18134 need_lib_prefix=no
18135 library_names_spec='$libname${shared_ext} $libname.a'
18136 dynamic_linker='OS/2 ld.exe'
18137 shlibpath_var=LIBPATH
18138 ;;
18139
18140 osf3* | osf4* | osf5*)
18141 version_type=osf
18142 need_lib_prefix=no
18143 need_version=no
18144 soname_spec='${libname}${release}${shared_ext}$major'
18145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18146 shlibpath_var=LD_LIBRARY_PATH
18147 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18148 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
18149 ;;
18150
18151 rdos*)
18152 dynamic_linker=no
18153 ;;
18154
18155 solaris*)
18156 version_type=linux
18157 need_lib_prefix=no
18158 need_version=no
18159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18160 soname_spec='${libname}${release}${shared_ext}$major'
18161 shlibpath_var=LD_LIBRARY_PATH
18162 shlibpath_overrides_runpath=yes
18163 hardcode_into_libs=yes
18164 # ldd complains unless libraries are executable
18165 postinstall_cmds='chmod +x $lib'
18166 ;;
18167
18168 sunos4*)
18169 version_type=sunos
18170 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18171 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18172 shlibpath_var=LD_LIBRARY_PATH
18173 shlibpath_overrides_runpath=yes
18174 if test "$with_gnu_ld" = yes; then
18175 need_lib_prefix=no
18176 fi
18177 need_version=yes
18178 ;;
18179
18180 sysv4 | sysv4.3*)
18181 version_type=linux
18182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18183 soname_spec='${libname}${release}${shared_ext}$major'
18184 shlibpath_var=LD_LIBRARY_PATH
18185 case $host_vendor in
18186 sni)
18187 shlibpath_overrides_runpath=no
18188 need_lib_prefix=no
18189 export_dynamic_flag_spec='${wl}-Blargedynsym'
18190 runpath_var=LD_RUN_PATH
18191 ;;
18192 siemens)
18193 need_lib_prefix=no
18194 ;;
18195 motorola)
18196 need_lib_prefix=no
18197 need_version=no
18198 shlibpath_overrides_runpath=no
18199 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
18200 ;;
18201 esac
18202 ;;
18203
18204 sysv4*MP*)
18205 if test -d /usr/nec ;then
18206 version_type=linux
18207 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18208 soname_spec='$libname${shared_ext}.$major'
18209 shlibpath_var=LD_LIBRARY_PATH
18210 fi
18211 ;;
18212
18213 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
18214 version_type=freebsd-elf
18215 need_lib_prefix=no
18216 need_version=no
18217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18218 soname_spec='${libname}${release}${shared_ext}$major'
18219 shlibpath_var=LD_LIBRARY_PATH
18220 hardcode_into_libs=yes
18221 if test "$with_gnu_ld" = yes; then
18222 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18223 shlibpath_overrides_runpath=no
18224 else
18225 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
18226 shlibpath_overrides_runpath=yes
18227 case $host_os in
18228 sco3.2v5*)
18229 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
18230 ;;
18231 esac
18232 fi
18233 sys_lib_dlsearch_path_spec='/usr/lib'
18234 ;;
18235
18236 uts4*)
18237 version_type=linux
18238 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18239 soname_spec='${libname}${release}${shared_ext}$major'
18240 shlibpath_var=LD_LIBRARY_PATH
18241 ;;
18242
18243 *)
18244 dynamic_linker=no
18245 ;;
18246 esac
18247 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18248 echo "${ECHO_T}$dynamic_linker" >&6
18249 test "$dynamic_linker" = no && can_build_shared=no
18250
18251 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
18252 echo $ECHO_N "(cached) $ECHO_C" >&6
18253 else
18254 lt_cv_sys_lib_search_path_spec="$sys_lib_search_path_spec"
18255 fi
18256
18257 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
18258 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
18259 echo $ECHO_N "(cached) $ECHO_C" >&6
18260 else
18261 lt_cv_sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec"
18262 fi
18263
18264 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
18265
18266 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18267 if test "$GCC" = yes; then
18268 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18269 fi
18270
18271 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18272 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18273 hardcode_action_GCJ=
18274 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
18275 test -n "$runpath_var_GCJ" || \
18276 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
18277
18278 # We can hardcode non-existant directories.
18279 if test "$hardcode_direct_GCJ" != no &&
18280 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18281 # have to relink, otherwise we might link with an installed library
18282 # when we should be linking with a yet-to-be-installed one
18283 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
18284 test "$hardcode_minus_L_GCJ" != no; then
18285 # Linking always hardcodes the temporary library directory.
18286 hardcode_action_GCJ=relink
18287 else
18288 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18289 hardcode_action_GCJ=immediate
18290 fi
18291 else
18292 # We cannot hardcode anything, or else we can only hardcode existing
18293 # directories.
18294 hardcode_action_GCJ=unsupported
18295 fi
18296 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
18297 echo "${ECHO_T}$hardcode_action_GCJ" >&6
18298
18299 if test "$hardcode_action_GCJ" = relink; then
18300 # Fast installation is not supported
18301 enable_fast_install=no
18302 elif test "$shlibpath_overrides_runpath" = yes ||
18303 test "$enable_shared" = no; then
18304 # Fast installation is not necessary
18305 enable_fast_install=needless
18306 fi
18307
18308
18309 # The else clause should only fire when bootstrapping the
18310 # libtool distribution, otherwise you forgot to ship ltmain.sh
18311 # with your package, and you will get complaints that there are
18312 # no rules to generate ltmain.sh.
18313 if test -f "$ltmain"; then
18314 # See if we are running on zsh, and set the options which allow our commands through
18315 # without removal of \ escapes.
18316 if test -n "${ZSH_VERSION+set}" ; then
18317 setopt NO_GLOB_SUBST
18318 fi
18319 # Now quote all the things that may contain metacharacters while being
18320 # careful not to overquote the AC_SUBSTed values. We take copies of the
18321 # variables and quote the copies for generation of the libtool script.
18322 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18323 SED SHELL STRIP \
18324 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18325 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18326 deplibs_check_method reload_flag reload_cmds need_locks \
18327 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18328 lt_cv_sys_global_symbol_to_c_name_address \
18329 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18330 old_postinstall_cmds old_postuninstall_cmds \
18331 compiler_GCJ \
18332 CC_GCJ \
18333 LD_GCJ \
18334 lt_prog_compiler_wl_GCJ \
18335 lt_prog_compiler_pic_GCJ \
18336 lt_prog_compiler_static_GCJ \
18337 lt_prog_compiler_no_builtin_flag_GCJ \
18338 export_dynamic_flag_spec_GCJ \
18339 thread_safe_flag_spec_GCJ \
18340 whole_archive_flag_spec_GCJ \
18341 enable_shared_with_static_runtimes_GCJ \
18342 old_archive_cmds_GCJ \
18343 old_archive_from_new_cmds_GCJ \
18344 predep_objects_GCJ \
18345 postdep_objects_GCJ \
18346 predeps_GCJ \
18347 postdeps_GCJ \
18348 compiler_lib_search_path_GCJ \
18349 compiler_lib_search_dirs_GCJ \
18350 archive_cmds_GCJ \
18351 archive_expsym_cmds_GCJ \
18352 postinstall_cmds_GCJ \
18353 postuninstall_cmds_GCJ \
18354 old_archive_from_expsyms_cmds_GCJ \
18355 allow_undefined_flag_GCJ \
18356 no_undefined_flag_GCJ \
18357 export_symbols_cmds_GCJ \
18358 hardcode_libdir_flag_spec_GCJ \
18359 hardcode_libdir_flag_spec_ld_GCJ \
18360 hardcode_libdir_separator_GCJ \
18361 hardcode_automatic_GCJ \
18362 module_cmds_GCJ \
18363 module_expsym_cmds_GCJ \
18364 lt_cv_prog_compiler_c_o_GCJ \
18365 fix_srcfile_path_GCJ \
18366 exclude_expsyms_GCJ \
18367 include_expsyms_GCJ; do
18368
18369 case $var in
18370 old_archive_cmds_GCJ | \
18371 old_archive_from_new_cmds_GCJ | \
18372 archive_cmds_GCJ | \
18373 archive_expsym_cmds_GCJ | \
18374 module_cmds_GCJ | \
18375 module_expsym_cmds_GCJ | \
18376 old_archive_from_expsyms_cmds_GCJ | \
18377 export_symbols_cmds_GCJ | \
18378 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18379 postinstall_cmds | postuninstall_cmds | \
18380 old_postinstall_cmds | old_postuninstall_cmds | \
18381 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18382 # Double-quote double-evaled strings.
18383 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18384 ;;
18385 *)
18386 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18387 ;;
18388 esac
18389 done
18390
18391 case $lt_echo in
18392 *'\$0 --fallback-echo"')
18393 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18394 ;;
18395 esac
18396
18397 cfgfile="$ofile"
18398
18399 cat <<__EOF__ >> "$cfgfile"
18400 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18401
18402 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18403
18404 # Shell to use when invoking shell scripts.
18405 SHELL=$lt_SHELL
18406
18407 # Whether or not to build shared libraries.
18408 build_libtool_libs=$enable_shared
18409
18410 # Whether or not to build static libraries.
18411 build_old_libs=$enable_static
18412
18413 # Whether or not to add -lc for building shared libraries.
18414 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
18415
18416 # Whether or not to disallow shared libs when runtime libs are static
18417 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
18418
18419 # Whether or not to optimize for fast installation.
18420 fast_install=$enable_fast_install
18421
18422 # The host system.
18423 host_alias=$host_alias
18424 host=$host
18425 host_os=$host_os
18426
18427 # The build system.
18428 build_alias=$build_alias
18429 build=$build
18430 build_os=$build_os
18431
18432 # An echo program that does not interpret backslashes.
18433 echo=$lt_echo
18434
18435 # The archiver.
18436 AR=$lt_AR
18437 AR_FLAGS=$lt_AR_FLAGS
18438
18439 # A C compiler.
18440 LTCC=$lt_LTCC
18441
18442 # LTCC compiler flags.
18443 LTCFLAGS=$lt_LTCFLAGS
18444
18445 # A language-specific compiler.
18446 CC=$lt_compiler_GCJ
18447
18448 # Is the compiler the GNU C compiler?
18449 with_gcc=$GCC_GCJ
18450
18451 # An ERE matcher.
18452 EGREP=$lt_EGREP
18453
18454 # The linker used to build libraries.
18455 LD=$lt_LD_GCJ
18456
18457 # Whether we need hard or soft links.
18458 LN_S=$lt_LN_S
18459
18460 # A BSD-compatible nm program.
18461 NM=$lt_NM
18462
18463 # A symbol stripping program
18464 STRIP=$lt_STRIP
18465
18466 # Used to examine libraries when file_magic_cmd begins "file"
18467 MAGIC_CMD=$MAGIC_CMD
18468
18469 # Used on cygwin: DLL creation program.
18470 DLLTOOL="$DLLTOOL"
18471
18472 # Used on cygwin: object dumper.
18473 OBJDUMP="$OBJDUMP"
18474
18475 # Used on cygwin: assembler.
18476 AS="$AS"
18477
18478 # The name of the directory that contains temporary libtool files.
18479 objdir=$objdir
18480
18481 # How to create reloadable object files.
18482 reload_flag=$lt_reload_flag
18483 reload_cmds=$lt_reload_cmds
18484
18485 # How to pass a linker flag through the compiler.
18486 wl=$lt_lt_prog_compiler_wl_GCJ
18487
18488 # Object file suffix (normally "o").
18489 objext="$ac_objext"
18490
18491 # Old archive suffix (normally "a").
18492 libext="$libext"
18493
18494 # Shared library suffix (normally ".so").
18495 shrext_cmds='$shrext_cmds'
18496
18497 # Executable file suffix (normally "").
18498 exeext="$exeext"
18499
18500 # Additional compiler flags for building library objects.
18501 pic_flag=$lt_lt_prog_compiler_pic_GCJ
18502 pic_mode=$pic_mode
18503
18504 # What is the maximum length of a command?
18505 max_cmd_len=$lt_cv_sys_max_cmd_len
18506
18507 # Does compiler simultaneously support -c and -o options?
18508 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
18509
18510 # Must we lock files when doing compilation?
18511 need_locks=$lt_need_locks
18512
18513 # Do we need the lib prefix for modules?
18514 need_lib_prefix=$need_lib_prefix
18515
18516 # Do we need a version for libraries?
18517 need_version=$need_version
18518
18519 # Whether dlopen is supported.
18520 dlopen_support=$enable_dlopen
18521
18522 # Whether dlopen of programs is supported.
18523 dlopen_self=$enable_dlopen_self
18524
18525 # Whether dlopen of statically linked programs is supported.
18526 dlopen_self_static=$enable_dlopen_self_static
18527
18528 # Compiler flag to prevent dynamic linking.
18529 link_static_flag=$lt_lt_prog_compiler_static_GCJ
18530
18531 # Compiler flag to turn off builtin functions.
18532 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
18533
18534 # Compiler flag to allow reflexive dlopens.
18535 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
18536
18537 # Compiler flag to generate shared objects directly from archives.
18538 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
18539
18540 # Compiler flag to generate thread-safe objects.
18541 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
18542
18543 # Library versioning type.
18544 version_type=$version_type
18545
18546 # Format of library name prefix.
18547 libname_spec=$lt_libname_spec
18548
18549 # List of archive names. First name is the real one, the rest are links.
18550 # The last name is the one that the linker finds with -lNAME.
18551 library_names_spec=$lt_library_names_spec
18552
18553 # The coded name of the library, if different from the real name.
18554 soname_spec=$lt_soname_spec
18555
18556 # Commands used to build and install an old-style archive.
18557 RANLIB=$lt_RANLIB
18558 old_archive_cmds=$lt_old_archive_cmds_GCJ
18559 old_postinstall_cmds=$lt_old_postinstall_cmds
18560 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18561
18562 # Create an old-style archive from a shared archive.
18563 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
18564
18565 # Create a temporary old-style archive to link instead of a shared archive.
18566 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
18567
18568 # Commands used to build and install a shared archive.
18569 archive_cmds=$lt_archive_cmds_GCJ
18570 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
18571 postinstall_cmds=$lt_postinstall_cmds
18572 postuninstall_cmds=$lt_postuninstall_cmds
18573
18574 # Commands used to build a loadable module (assumed same as above if empty)
18575 module_cmds=$lt_module_cmds_GCJ
18576 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
18577
18578 # Commands to strip libraries.
18579 old_striplib=$lt_old_striplib
18580 striplib=$lt_striplib
18581
18582 # Dependencies to place before the objects being linked to create a
18583 # shared library.
18584 predep_objects=$lt_predep_objects_GCJ
18585
18586 # Dependencies to place after the objects being linked to create a
18587 # shared library.
18588 postdep_objects=$lt_postdep_objects_GCJ
18589
18590 # Dependencies to place before the objects being linked to create a
18591 # shared library.
18592 predeps=$lt_predeps_GCJ
18593
18594 # Dependencies to place after the objects being linked to create a
18595 # shared library.
18596 postdeps=$lt_postdeps_GCJ
18597
18598 # The directories searched by this compiler when creating a shared
18599 # library
18600 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_GCJ
18601
18602 # The library search path used internally by the compiler when linking
18603 # a shared library.
18604 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
18605
18606 # Method to check whether dependent libraries are shared objects.
18607 deplibs_check_method=$lt_deplibs_check_method
18608
18609 # Command to use when deplibs_check_method == file_magic.
18610 file_magic_cmd=$lt_file_magic_cmd
18611
18612 # Flag that allows shared libraries with undefined symbols to be built.
18613 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
18614
18615 # Flag that forces no undefined symbols.
18616 no_undefined_flag=$lt_no_undefined_flag_GCJ
18617
18618 # Commands used to finish a libtool library installation in a directory.
18619 finish_cmds=$lt_finish_cmds
18620
18621 # Same as above, but a single script fragment to be evaled but not shown.
18622 finish_eval=$lt_finish_eval
18623
18624 # Take the output of nm and produce a listing of raw symbols and C names.
18625 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18626
18627 # Transform the output of nm in a proper C declaration
18628 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18629
18630 # Transform the output of nm in a C name address pair
18631 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18632
18633 # This is the shared library runtime path variable.
18634 runpath_var=$runpath_var
18635
18636 # This is the shared library path variable.
18637 shlibpath_var=$shlibpath_var
18638
18639 # Is shlibpath searched before the hard-coded library search path?
18640 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18641
18642 # How to hardcode a shared library path into an executable.
18643 hardcode_action=$hardcode_action_GCJ
18644
18645 # Whether we should hardcode library paths into libraries.
18646 hardcode_into_libs=$hardcode_into_libs
18647
18648 # Flag to hardcode \$libdir into a binary during linking.
18649 # This must work even if \$libdir does not exist.
18650 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
18651
18652 # If ld is used when linking, flag to hardcode \$libdir into
18653 # a binary during linking. This must work even if \$libdir does
18654 # not exist.
18655 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
18656
18657 # Whether we need a single -rpath flag with a separated argument.
18658 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
18659
18660 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18661 # resulting binary.
18662 hardcode_direct=$hardcode_direct_GCJ
18663
18664 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18665 # resulting binary.
18666 hardcode_minus_L=$hardcode_minus_L_GCJ
18667
18668 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18669 # the resulting binary.
18670 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
18671
18672 # Set to yes if building a shared library automatically hardcodes DIR into the library
18673 # and all subsequent libraries and executables linked against it.
18674 hardcode_automatic=$hardcode_automatic_GCJ
18675
18676 # Variables whose values should be saved in libtool wrapper scripts and
18677 # restored at relink time.
18678 variables_saved_for_relink="$variables_saved_for_relink"
18679
18680 # Whether libtool must link a program against all its dependency libraries.
18681 link_all_deplibs=$link_all_deplibs_GCJ
18682
18683 # Compile-time system search path for libraries
18684 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18685
18686 # Run-time system search path for libraries
18687 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18688
18689 # Fix the shell variable \$srcfile for the compiler.
18690 fix_srcfile_path=$lt_fix_srcfile_path
18691
18692 # Set to yes if exported symbols are required.
18693 always_export_symbols=$always_export_symbols_GCJ
18694
18695 # The commands to list exported symbols.
18696 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
18697
18698 # The commands to extract the exported symbol list from a shared archive.
18699 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18700
18701 # Symbols that should not be listed in the preloaded symbols.
18702 exclude_expsyms=$lt_exclude_expsyms_GCJ
18703
18704 # Symbols that must always be exported.
18705 include_expsyms=$lt_include_expsyms_GCJ
18706
18707 # ### END LIBTOOL TAG CONFIG: $tagname
18708
18709 __EOF__
18710
18711
18712 else
18713 # If there is no Makefile yet, we rely on a make rule to execute
18714 # `config.status --recheck' to rerun these tests and create the
18715 # libtool script then.
18716 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18717 if test -f "$ltmain_in"; then
18718 test -f Makefile && make "$ltmain"
18719 fi
18720 fi
18721
18722
18723 ac_ext=c
18724 ac_cpp='$CPP $CPPFLAGS'
18725 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18726 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18727 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18728
18729 CC="$lt_save_CC"
18730
18731 else
18732 tagname=""
18733 fi
18734 ;;
18735
18736 RC)
18737
18738
18739
18740 # Source file extension for RC test sources.
18741 ac_ext=rc
18742
18743 # Object file extension for compiled RC test sources.
18744 objext=o
18745 objext_RC=$objext
18746
18747 # Code to be used in simple compile tests
18748 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
18749
18750 # Code to be used in simple link tests
18751 lt_simple_link_test_code="$lt_simple_compile_test_code"
18752
18753 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18754
18755 # If no C compiler was specified, use CC.
18756 LTCC=${LTCC-"$CC"}
18757
18758 # If no C compiler flags were specified, use CFLAGS.
18759 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18760
18761 # Allow CC to be a program name with arguments.
18762 compiler=$CC
18763
18764
18765 # save warnings/boilerplate of simple test code
18766 ac_outfile=conftest.$ac_objext
18767 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18768 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18769 _lt_compiler_boilerplate=`cat conftest.err`
18770 $rm conftest*
18771
18772 ac_outfile=conftest.$ac_objext
18773 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18774 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18775 _lt_linker_boilerplate=`cat conftest.err`
18776 $rm -r conftest*
18777
18778
18779 # Allow CC to be a program name with arguments.
18780 lt_save_CC="$CC"
18781 CC=${RC-"windres"}
18782 compiler=$CC
18783 compiler_RC=$CC
18784 for cc_temp in $compiler""; do
18785 case $cc_temp in
18786 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18787 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18788 \-*) ;;
18789 *) break;;
18790 esac
18791 done
18792 cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18793
18794 lt_cv_prog_compiler_c_o_RC=yes
18795
18796 # The else clause should only fire when bootstrapping the
18797 # libtool distribution, otherwise you forgot to ship ltmain.sh
18798 # with your package, and you will get complaints that there are
18799 # no rules to generate ltmain.sh.
18800 if test -f "$ltmain"; then
18801 # See if we are running on zsh, and set the options which allow our commands through
18802 # without removal of \ escapes.
18803 if test -n "${ZSH_VERSION+set}" ; then
18804 setopt NO_GLOB_SUBST
18805 fi
18806 # Now quote all the things that may contain metacharacters while being
18807 # careful not to overquote the AC_SUBSTed values. We take copies of the
18808 # variables and quote the copies for generation of the libtool script.
18809 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18810 SED SHELL STRIP \
18811 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18812 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18813 deplibs_check_method reload_flag reload_cmds need_locks \
18814 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18815 lt_cv_sys_global_symbol_to_c_name_address \
18816 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18817 old_postinstall_cmds old_postuninstall_cmds \
18818 compiler_RC \
18819 CC_RC \
18820 LD_RC \
18821 lt_prog_compiler_wl_RC \
18822 lt_prog_compiler_pic_RC \
18823 lt_prog_compiler_static_RC \
18824 lt_prog_compiler_no_builtin_flag_RC \
18825 export_dynamic_flag_spec_RC \
18826 thread_safe_flag_spec_RC \
18827 whole_archive_flag_spec_RC \
18828 enable_shared_with_static_runtimes_RC \
18829 old_archive_cmds_RC \
18830 old_archive_from_new_cmds_RC \
18831 predep_objects_RC \
18832 postdep_objects_RC \
18833 predeps_RC \
18834 postdeps_RC \
18835 compiler_lib_search_path_RC \
18836 compiler_lib_search_dirs_RC \
18837 archive_cmds_RC \
18838 archive_expsym_cmds_RC \
18839 postinstall_cmds_RC \
18840 postuninstall_cmds_RC \
18841 old_archive_from_expsyms_cmds_RC \
18842 allow_undefined_flag_RC \
18843 no_undefined_flag_RC \
18844 export_symbols_cmds_RC \
18845 hardcode_libdir_flag_spec_RC \
18846 hardcode_libdir_flag_spec_ld_RC \
18847 hardcode_libdir_separator_RC \
18848 hardcode_automatic_RC \
18849 module_cmds_RC \
18850 module_expsym_cmds_RC \
18851 lt_cv_prog_compiler_c_o_RC \
18852 fix_srcfile_path_RC \
18853 exclude_expsyms_RC \
18854 include_expsyms_RC; do
18855
18856 case $var in
18857 old_archive_cmds_RC | \
18858 old_archive_from_new_cmds_RC | \
18859 archive_cmds_RC | \
18860 archive_expsym_cmds_RC | \
18861 module_cmds_RC | \
18862 module_expsym_cmds_RC | \
18863 old_archive_from_expsyms_cmds_RC | \
18864 export_symbols_cmds_RC | \
18865 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18866 postinstall_cmds | postuninstall_cmds | \
18867 old_postinstall_cmds | old_postuninstall_cmds | \
18868 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18869 # Double-quote double-evaled strings.
18870 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18871 ;;
18872 *)
18873 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18874 ;;
18875 esac
18876 done
18877
18878 case $lt_echo in
18879 *'\$0 --fallback-echo"')
18880 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18881 ;;
18882 esac
18883
18884 cfgfile="$ofile"
18885
18886 cat <<__EOF__ >> "$cfgfile"
18887 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18888
18889 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18890
18891 # Shell to use when invoking shell scripts.
18892 SHELL=$lt_SHELL
18893
18894 # Whether or not to build shared libraries.
18895 build_libtool_libs=$enable_shared
18896
18897 # Whether or not to build static libraries.
18898 build_old_libs=$enable_static
18899
18900 # Whether or not to add -lc for building shared libraries.
18901 build_libtool_need_lc=$archive_cmds_need_lc_RC
18902
18903 # Whether or not to disallow shared libs when runtime libs are static
18904 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
18905
18906 # Whether or not to optimize for fast installation.
18907 fast_install=$enable_fast_install
18908
18909 # The host system.
18910 host_alias=$host_alias
18911 host=$host
18912 host_os=$host_os
18913
18914 # The build system.
18915 build_alias=$build_alias
18916 build=$build
18917 build_os=$build_os
18918
18919 # An echo program that does not interpret backslashes.
18920 echo=$lt_echo
18921
18922 # The archiver.
18923 AR=$lt_AR
18924 AR_FLAGS=$lt_AR_FLAGS
18925
18926 # A C compiler.
18927 LTCC=$lt_LTCC
18928
18929 # LTCC compiler flags.
18930 LTCFLAGS=$lt_LTCFLAGS
18931
18932 # A language-specific compiler.
18933 CC=$lt_compiler_RC
18934
18935 # Is the compiler the GNU C compiler?
18936 with_gcc=$GCC_RC
18937
18938 # An ERE matcher.
18939 EGREP=$lt_EGREP
18940
18941 # The linker used to build libraries.
18942 LD=$lt_LD_RC
18943
18944 # Whether we need hard or soft links.
18945 LN_S=$lt_LN_S
18946
18947 # A BSD-compatible nm program.
18948 NM=$lt_NM
18949
18950 # A symbol stripping program
18951 STRIP=$lt_STRIP
18952
18953 # Used to examine libraries when file_magic_cmd begins "file"
18954 MAGIC_CMD=$MAGIC_CMD
18955
18956 # Used on cygwin: DLL creation program.
18957 DLLTOOL="$DLLTOOL"
18958
18959 # Used on cygwin: object dumper.
18960 OBJDUMP="$OBJDUMP"
18961
18962 # Used on cygwin: assembler.
18963 AS="$AS"
18964
18965 # The name of the directory that contains temporary libtool files.
18966 objdir=$objdir
18967
18968 # How to create reloadable object files.
18969 reload_flag=$lt_reload_flag
18970 reload_cmds=$lt_reload_cmds
18971
18972 # How to pass a linker flag through the compiler.
18973 wl=$lt_lt_prog_compiler_wl_RC
18974
18975 # Object file suffix (normally "o").
18976 objext="$ac_objext"
18977
18978 # Old archive suffix (normally "a").
18979 libext="$libext"
18980
18981 # Shared library suffix (normally ".so").
18982 shrext_cmds='$shrext_cmds'
18983
18984 # Executable file suffix (normally "").
18985 exeext="$exeext"
18986
18987 # Additional compiler flags for building library objects.
18988 pic_flag=$lt_lt_prog_compiler_pic_RC
18989 pic_mode=$pic_mode
18990
18991 # What is the maximum length of a command?
18992 max_cmd_len=$lt_cv_sys_max_cmd_len
18993
18994 # Does compiler simultaneously support -c and -o options?
18995 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
18996
18997 # Must we lock files when doing compilation?
18998 need_locks=$lt_need_locks
18999
19000 # Do we need the lib prefix for modules?
19001 need_lib_prefix=$need_lib_prefix
19002
19003 # Do we need a version for libraries?
19004 need_version=$need_version
19005
19006 # Whether dlopen is supported.
19007 dlopen_support=$enable_dlopen
19008
19009 # Whether dlopen of programs is supported.
19010 dlopen_self=$enable_dlopen_self
19011
19012 # Whether dlopen of statically linked programs is supported.
19013 dlopen_self_static=$enable_dlopen_self_static
19014
19015 # Compiler flag to prevent dynamic linking.
19016 link_static_flag=$lt_lt_prog_compiler_static_RC
19017
19018 # Compiler flag to turn off builtin functions.
19019 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
19020
19021 # Compiler flag to allow reflexive dlopens.
19022 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
19023
19024 # Compiler flag to generate shared objects directly from archives.
19025 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
19026
19027 # Compiler flag to generate thread-safe objects.
19028 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
19029
19030 # Library versioning type.
19031 version_type=$version_type
19032
19033 # Format of library name prefix.
19034 libname_spec=$lt_libname_spec
19035
19036 # List of archive names. First name is the real one, the rest are links.
19037 # The last name is the one that the linker finds with -lNAME.
19038 library_names_spec=$lt_library_names_spec
19039
19040 # The coded name of the library, if different from the real name.
19041 soname_spec=$lt_soname_spec
19042
19043 # Commands used to build and install an old-style archive.
19044 RANLIB=$lt_RANLIB
19045 old_archive_cmds=$lt_old_archive_cmds_RC
19046 old_postinstall_cmds=$lt_old_postinstall_cmds
19047 old_postuninstall_cmds=$lt_old_postuninstall_cmds
19048
19049 # Create an old-style archive from a shared archive.
19050 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
19051
19052 # Create a temporary old-style archive to link instead of a shared archive.
19053 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
19054
19055 # Commands used to build and install a shared archive.
19056 archive_cmds=$lt_archive_cmds_RC
19057 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
19058 postinstall_cmds=$lt_postinstall_cmds
19059 postuninstall_cmds=$lt_postuninstall_cmds
19060
19061 # Commands used to build a loadable module (assumed same as above if empty)
19062 module_cmds=$lt_module_cmds_RC
19063 module_expsym_cmds=$lt_module_expsym_cmds_RC
19064
19065 # Commands to strip libraries.
19066 old_striplib=$lt_old_striplib
19067 striplib=$lt_striplib
19068
19069 # Dependencies to place before the objects being linked to create a
19070 # shared library.
19071 predep_objects=$lt_predep_objects_RC
19072
19073 # Dependencies to place after the objects being linked to create a
19074 # shared library.
19075 postdep_objects=$lt_postdep_objects_RC
19076
19077 # Dependencies to place before the objects being linked to create a
19078 # shared library.
19079 predeps=$lt_predeps_RC
19080
19081 # Dependencies to place after the objects being linked to create a
19082 # shared library.
19083 postdeps=$lt_postdeps_RC
19084
19085 # The directories searched by this compiler when creating a shared
19086 # library
19087 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_RC
19088
19089 # The library search path used internally by the compiler when linking
19090 # a shared library.
19091 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
19092
19093 # Method to check whether dependent libraries are shared objects.
19094 deplibs_check_method=$lt_deplibs_check_method
19095
19096 # Command to use when deplibs_check_method == file_magic.
19097 file_magic_cmd=$lt_file_magic_cmd
19098
19099 # Flag that allows shared libraries with undefined symbols to be built.
19100 allow_undefined_flag=$lt_allow_undefined_flag_RC
19101
19102 # Flag that forces no undefined symbols.
19103 no_undefined_flag=$lt_no_undefined_flag_RC
19104
19105 # Commands used to finish a libtool library installation in a directory.
19106 finish_cmds=$lt_finish_cmds
19107
19108 # Same as above, but a single script fragment to be evaled but not shown.
19109 finish_eval=$lt_finish_eval
19110
19111 # Take the output of nm and produce a listing of raw symbols and C names.
19112 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
19113
19114 # Transform the output of nm in a proper C declaration
19115 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
19116
19117 # Transform the output of nm in a C name address pair
19118 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
19119
19120 # This is the shared library runtime path variable.
19121 runpath_var=$runpath_var
19122
19123 # This is the shared library path variable.
19124 shlibpath_var=$shlibpath_var
19125
19126 # Is shlibpath searched before the hard-coded library search path?
19127 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
19128
19129 # How to hardcode a shared library path into an executable.
19130 hardcode_action=$hardcode_action_RC
19131
19132 # Whether we should hardcode library paths into libraries.
19133 hardcode_into_libs=$hardcode_into_libs
19134
19135 # Flag to hardcode \$libdir into a binary during linking.
19136 # This must work even if \$libdir does not exist.
19137 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
19138
19139 # If ld is used when linking, flag to hardcode \$libdir into
19140 # a binary during linking. This must work even if \$libdir does
19141 # not exist.
19142 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
19143
19144 # Whether we need a single -rpath flag with a separated argument.
19145 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
19146
19147 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
19148 # resulting binary.
19149 hardcode_direct=$hardcode_direct_RC
19150
19151 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
19152 # resulting binary.
19153 hardcode_minus_L=$hardcode_minus_L_RC
19154
19155 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
19156 # the resulting binary.
19157 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
19158
19159 # Set to yes if building a shared library automatically hardcodes DIR into the library
19160 # and all subsequent libraries and executables linked against it.
19161 hardcode_automatic=$hardcode_automatic_RC
19162
19163 # Variables whose values should be saved in libtool wrapper scripts and
19164 # restored at relink time.
19165 variables_saved_for_relink="$variables_saved_for_relink"
19166
19167 # Whether libtool must link a program against all its dependency libraries.
19168 link_all_deplibs=$link_all_deplibs_RC
19169
19170 # Compile-time system search path for libraries
19171 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
19172
19173 # Run-time system search path for libraries
19174 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
19175
19176 # Fix the shell variable \$srcfile for the compiler.
19177 fix_srcfile_path=$lt_fix_srcfile_path
19178
19179 # Set to yes if exported symbols are required.
19180 always_export_symbols=$always_export_symbols_RC
19181
19182 # The commands to list exported symbols.
19183 export_symbols_cmds=$lt_export_symbols_cmds_RC
19184
19185 # The commands to extract the exported symbol list from a shared archive.
19186 extract_expsyms_cmds=$lt_extract_expsyms_cmds
19187
19188 # Symbols that should not be listed in the preloaded symbols.
19189 exclude_expsyms=$lt_exclude_expsyms_RC
19190
19191 # Symbols that must always be exported.
19192 include_expsyms=$lt_include_expsyms_RC
19193
19194 # ### END LIBTOOL TAG CONFIG: $tagname
19195
19196 __EOF__
19197
19198
19199 else
19200 # If there is no Makefile yet, we rely on a make rule to execute
19201 # `config.status --recheck' to rerun these tests and create the
19202 # libtool script then.
19203 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
19204 if test -f "$ltmain_in"; then
19205 test -f Makefile && make "$ltmain"
19206 fi
19207 fi
19208
19209
19210 ac_ext=c
19211 ac_cpp='$CPP $CPPFLAGS'
19212 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19213 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19214 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19215
19216 CC="$lt_save_CC"
19217
19218 ;;
19219
19220 *)
19221 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
19222 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
19223 { (exit 1); exit 1; }; }
19224 ;;
19225 esac
19226
19227 # Append the new tag name to the list of available tags.
19228 if test -n "$tagname" ; then
19229 available_tags="$available_tags $tagname"
19230 fi
19231 fi
19232 done
19233 IFS="$lt_save_ifs"
19234
19235 # Now substitute the updated list of available tags.
19236 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
19237 mv "${ofile}T" "$ofile"
19238 chmod +x "$ofile"
19239 else
19240 rm -f "${ofile}T"
19241 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
19242 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
19243 { (exit 1); exit 1; }; }
19244 fi
19245 fi
19246
19247
19248
19249 # This can be used to rebuild libtool when needed
19250 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
19251
19252 # Always use our own libtool.
19253 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
19254
19255 # Prevent multiple expansion
19256
19257
19258
19259
19260
19261
19262
19263
19264
19265
19266
19267
19268
19269
19270
19271
19272
19273
19274
19275
19276 ac_ext=c
19277 ac_cpp='$CPP $CPPFLAGS'
19278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19281
19282
19283 echo "$as_me:$LINENO: checking for C compiler vendor" >&5
19284 echo $ECHO_N "checking for C compiler vendor... $ECHO_C" >&6
19285 if test "${ax_cv_c_compiler_vendor+set}" = set; then
19286 echo $ECHO_N "(cached) $ECHO_C" >&6
19287 else
19288 ax_cv_c_compiler_vendor=unknown
19289 # note: don't check for gcc first since some other compilers define __GNUC__
19290 for ventest in intel:__ICC,__ECC,__INTEL_COMPILER ibm:__xlc__,__xlC__,__IBMC__,__IBMCPP__ pathscale:__PATHCC__,__PATHSCALE__ gnu:__GNUC__ sun:__SUNPRO_C,__SUNPRO_CC hp:__HP_cc,__HP_aCC dec:__DECC,__DECCXX,__DECC_VER,__DECCXX_VER borland:__BORLANDC__,__TURBOC__ comeau:__COMO__ cray:_CRAYC kai:__KCC lcc:__LCC__ metrowerks:__MWERKS__ sgi:__sgi,sgi microsoft:_MSC_VER watcom:__WATCOMC__ portland:__PGI; do
19291 vencpp="defined("`echo $ventest | cut -d: -f2 | sed 's/,/) || defined(/g'`")"
19292 cat >conftest.$ac_ext <<_ACEOF
19293 /* confdefs.h. */
19294 _ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h. */
19298
19299 int
19300 main ()
19301 {
19302
19303 #if !($vencpp)
19304 thisisanerror;
19305 #endif
19306
19307 ;
19308 return 0;
19309 }
19310 _ACEOF
19311 rm -f conftest.$ac_objext
19312 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19313 (eval $ac_compile) 2>conftest.er1
19314 ac_status=$?
19315 grep -v '^ *+' conftest.er1 >conftest.err
19316 rm -f conftest.er1
19317 cat conftest.err >&5
19318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19319 (exit $ac_status); } &&
19320 { ac_try='test -z "$ac_c_werror_flag"
19321 || test ! -s conftest.err'
19322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19323 (eval $ac_try) 2>&5
19324 ac_status=$?
19325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19326 (exit $ac_status); }; } &&
19327 { ac_try='test -s conftest.$ac_objext'
19328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19329 (eval $ac_try) 2>&5
19330 ac_status=$?
19331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19332 (exit $ac_status); }; }; then
19333 ax_cv_c_compiler_vendor=`echo $ventest | cut -d: -f1`; break
19334 else
19335 echo "$as_me: failed program was:" >&5
19336 sed 's/^/| /' conftest.$ac_ext >&5
19337
19338 fi
19339 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19340 done
19341
19342 fi
19343 echo "$as_me:$LINENO: result: $ax_cv_c_compiler_vendor" >&5
19344 echo "${ECHO_T}$ax_cv_c_compiler_vendor" >&6
19345
19346
19347 if test "${build}" != "${host}"
19348 then
19349 # If we are doing a Canadian Cross, in which the host and build systems
19350 # are not the same, we set reasonable default values for the tools.
19351
19352 CC_FOR_BUILD=${CC_FOR_BUILD-gcc}
19353 CPPFLAGS_FOR_BUILD="\$(CPPFLAGS)"
19354 CC=${CC-${host_alias}-gcc}
19355 CFLAGS=${CFLAGS-"-g -O2"}
19356 CXX=${CXX-${host_alias}-c++}
19357 CXXFLAGS=${CXXFLAGS-"-g -O2"}
19358 else
19359 # Set reasonable default values for some tools even if not Canadian.
19360 # Of course, these are different reasonable default values, originally
19361 # specified directly in the Makefile.
19362 # We don't export, so that autoconf can do its job.
19363 # Note that all these settings are above the fragment inclusion point
19364 # in Makefile.in, so can still be overridden by fragments.
19365 # This is all going to change when we autoconfiscate...
19366 CC_FOR_BUILD="\$(CC)"
19367 CPPFLAGS_FOR_BUILD="\$(CPPFLAGS)"
19368 ac_ext=c
19369 ac_cpp='$CPP $CPPFLAGS'
19370 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19371 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19372 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19373 if test -n "$ac_tool_prefix"; then
19374 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
19375 set dummy ${ac_tool_prefix}gcc; ac_word=$2
19376 echo "$as_me:$LINENO: checking for $ac_word" >&5
19377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19378 if test "${ac_cv_prog_CC+set}" = set; then
19379 echo $ECHO_N "(cached) $ECHO_C" >&6
19380 else
19381 if test -n "$CC"; then
19382 ac_cv_prog_CC="$CC" # Let the user override the test.
19383 else
19384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19385 for as_dir in $PATH
19386 do
19387 IFS=$as_save_IFS
19388 test -z "$as_dir" && as_dir=.
19389 for ac_exec_ext in '' $ac_executable_extensions; do
19390 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19391 ac_cv_prog_CC="${ac_tool_prefix}gcc"
19392 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19393 break 2
19394 fi
19395 done
19396 done
19397
19398 fi
19399 fi
19400 CC=$ac_cv_prog_CC
19401 if test -n "$CC"; then
19402 echo "$as_me:$LINENO: result: $CC" >&5
19403 echo "${ECHO_T}$CC" >&6
19404 else
19405 echo "$as_me:$LINENO: result: no" >&5
19406 echo "${ECHO_T}no" >&6
19407 fi
19408
19409 fi
19410 if test -z "$ac_cv_prog_CC"; then
19411 ac_ct_CC=$CC
19412 # Extract the first word of "gcc", so it can be a program name with args.
19413 set dummy gcc; ac_word=$2
19414 echo "$as_me:$LINENO: checking for $ac_word" >&5
19415 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19416 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19417 echo $ECHO_N "(cached) $ECHO_C" >&6
19418 else
19419 if test -n "$ac_ct_CC"; then
19420 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19421 else
19422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19423 for as_dir in $PATH
19424 do
19425 IFS=$as_save_IFS
19426 test -z "$as_dir" && as_dir=.
19427 for ac_exec_ext in '' $ac_executable_extensions; do
19428 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19429 ac_cv_prog_ac_ct_CC="gcc"
19430 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19431 break 2
19432 fi
19433 done
19434 done
19435
19436 fi
19437 fi
19438 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19439 if test -n "$ac_ct_CC"; then
19440 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19441 echo "${ECHO_T}$ac_ct_CC" >&6
19442 else
19443 echo "$as_me:$LINENO: result: no" >&5
19444 echo "${ECHO_T}no" >&6
19445 fi
19446
19447 CC=$ac_ct_CC
19448 else
19449 CC="$ac_cv_prog_CC"
19450 fi
19451
19452 if test -z "$CC"; then
19453 if test -n "$ac_tool_prefix"; then
19454 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
19455 set dummy ${ac_tool_prefix}cc; ac_word=$2
19456 echo "$as_me:$LINENO: checking for $ac_word" >&5
19457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19458 if test "${ac_cv_prog_CC+set}" = set; then
19459 echo $ECHO_N "(cached) $ECHO_C" >&6
19460 else
19461 if test -n "$CC"; then
19462 ac_cv_prog_CC="$CC" # Let the user override the test.
19463 else
19464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19465 for as_dir in $PATH
19466 do
19467 IFS=$as_save_IFS
19468 test -z "$as_dir" && as_dir=.
19469 for ac_exec_ext in '' $ac_executable_extensions; do
19470 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19471 ac_cv_prog_CC="${ac_tool_prefix}cc"
19472 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19473 break 2
19474 fi
19475 done
19476 done
19477
19478 fi
19479 fi
19480 CC=$ac_cv_prog_CC
19481 if test -n "$CC"; then
19482 echo "$as_me:$LINENO: result: $CC" >&5
19483 echo "${ECHO_T}$CC" >&6
19484 else
19485 echo "$as_me:$LINENO: result: no" >&5
19486 echo "${ECHO_T}no" >&6
19487 fi
19488
19489 fi
19490 if test -z "$ac_cv_prog_CC"; then
19491 ac_ct_CC=$CC
19492 # Extract the first word of "cc", so it can be a program name with args.
19493 set dummy cc; ac_word=$2
19494 echo "$as_me:$LINENO: checking for $ac_word" >&5
19495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19496 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19497 echo $ECHO_N "(cached) $ECHO_C" >&6
19498 else
19499 if test -n "$ac_ct_CC"; then
19500 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19501 else
19502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19503 for as_dir in $PATH
19504 do
19505 IFS=$as_save_IFS
19506 test -z "$as_dir" && as_dir=.
19507 for ac_exec_ext in '' $ac_executable_extensions; do
19508 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19509 ac_cv_prog_ac_ct_CC="cc"
19510 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19511 break 2
19512 fi
19513 done
19514 done
19515
19516 fi
19517 fi
19518 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19519 if test -n "$ac_ct_CC"; then
19520 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19521 echo "${ECHO_T}$ac_ct_CC" >&6
19522 else
19523 echo "$as_me:$LINENO: result: no" >&5
19524 echo "${ECHO_T}no" >&6
19525 fi
19526
19527 CC=$ac_ct_CC
19528 else
19529 CC="$ac_cv_prog_CC"
19530 fi
19531
19532 fi
19533 if test -z "$CC"; then
19534 # Extract the first word of "cc", so it can be a program name with args.
19535 set dummy cc; ac_word=$2
19536 echo "$as_me:$LINENO: checking for $ac_word" >&5
19537 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19538 if test "${ac_cv_prog_CC+set}" = set; then
19539 echo $ECHO_N "(cached) $ECHO_C" >&6
19540 else
19541 if test -n "$CC"; then
19542 ac_cv_prog_CC="$CC" # Let the user override the test.
19543 else
19544 ac_prog_rejected=no
19545 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19546 for as_dir in $PATH
19547 do
19548 IFS=$as_save_IFS
19549 test -z "$as_dir" && as_dir=.
19550 for ac_exec_ext in '' $ac_executable_extensions; do
19551 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19552 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
19553 ac_prog_rejected=yes
19554 continue
19555 fi
19556 ac_cv_prog_CC="cc"
19557 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19558 break 2
19559 fi
19560 done
19561 done
19562
19563 if test $ac_prog_rejected = yes; then
19564 # We found a bogon in the path, so make sure we never use it.
19565 set dummy $ac_cv_prog_CC
19566 shift
19567 if test $# != 0; then
19568 # We chose a different compiler from the bogus one.
19569 # However, it has the same basename, so the bogon will be chosen
19570 # first if we set CC to just the basename; use the full file name.
19571 shift
19572 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
19573 fi
19574 fi
19575 fi
19576 fi
19577 CC=$ac_cv_prog_CC
19578 if test -n "$CC"; then
19579 echo "$as_me:$LINENO: result: $CC" >&5
19580 echo "${ECHO_T}$CC" >&6
19581 else
19582 echo "$as_me:$LINENO: result: no" >&5
19583 echo "${ECHO_T}no" >&6
19584 fi
19585
19586 fi
19587 if test -z "$CC"; then
19588 if test -n "$ac_tool_prefix"; then
19589 for ac_prog in cl
19590 do
19591 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
19592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
19593 echo "$as_me:$LINENO: checking for $ac_word" >&5
19594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19595 if test "${ac_cv_prog_CC+set}" = set; then
19596 echo $ECHO_N "(cached) $ECHO_C" >&6
19597 else
19598 if test -n "$CC"; then
19599 ac_cv_prog_CC="$CC" # Let the user override the test.
19600 else
19601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19602 for as_dir in $PATH
19603 do
19604 IFS=$as_save_IFS
19605 test -z "$as_dir" && as_dir=.
19606 for ac_exec_ext in '' $ac_executable_extensions; do
19607 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19608 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
19609 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19610 break 2
19611 fi
19612 done
19613 done
19614
19615 fi
19616 fi
19617 CC=$ac_cv_prog_CC
19618 if test -n "$CC"; then
19619 echo "$as_me:$LINENO: result: $CC" >&5
19620 echo "${ECHO_T}$CC" >&6
19621 else
19622 echo "$as_me:$LINENO: result: no" >&5
19623 echo "${ECHO_T}no" >&6
19624 fi
19625
19626 test -n "$CC" && break
19627 done
19628 fi
19629 if test -z "$CC"; then
19630 ac_ct_CC=$CC
19631 for ac_prog in cl
19632 do
19633 # Extract the first word of "$ac_prog", so it can be a program name with args.
19634 set dummy $ac_prog; ac_word=$2
19635 echo "$as_me:$LINENO: checking for $ac_word" >&5
19636 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
19637 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
19638 echo $ECHO_N "(cached) $ECHO_C" >&6
19639 else
19640 if test -n "$ac_ct_CC"; then
19641 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
19642 else
19643 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
19644 for as_dir in $PATH
19645 do
19646 IFS=$as_save_IFS
19647 test -z "$as_dir" && as_dir=.
19648 for ac_exec_ext in '' $ac_executable_extensions; do
19649 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
19650 ac_cv_prog_ac_ct_CC="$ac_prog"
19651 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
19652 break 2
19653 fi
19654 done
19655 done
19656
19657 fi
19658 fi
19659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
19660 if test -n "$ac_ct_CC"; then
19661 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
19662 echo "${ECHO_T}$ac_ct_CC" >&6
19663 else
19664 echo "$as_me:$LINENO: result: no" >&5
19665 echo "${ECHO_T}no" >&6
19666 fi
19667
19668 test -n "$ac_ct_CC" && break
19669 done
19670
19671 CC=$ac_ct_CC
19672 fi
19673
19674 fi
19675
19676
19677 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
19678 See \`config.log' for more details." >&5
19679 echo "$as_me: error: no acceptable C compiler found in \$PATH
19680 See \`config.log' for more details." >&2;}
19681 { (exit 1); exit 1; }; }
19682
19683 # Provide some information about the compiler.
19684 echo "$as_me:$LINENO:" \
19685 "checking for C compiler version" >&5
19686 ac_compiler=`set X $ac_compile; echo $2`
19687 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
19688 (eval $ac_compiler --version </dev/null >&5) 2>&5
19689 ac_status=$?
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); }
19692 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
19693 (eval $ac_compiler -v </dev/null >&5) 2>&5
19694 ac_status=$?
19695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19696 (exit $ac_status); }
19697 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
19698 (eval $ac_compiler -V </dev/null >&5) 2>&5
19699 ac_status=$?
19700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19701 (exit $ac_status); }
19702
19703 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
19704 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
19705 if test "${ac_cv_c_compiler_gnu+set}" = set; then
19706 echo $ECHO_N "(cached) $ECHO_C" >&6
19707 else
19708 cat >conftest.$ac_ext <<_ACEOF
19709 /* confdefs.h. */
19710 _ACEOF
19711 cat confdefs.h >>conftest.$ac_ext
19712 cat >>conftest.$ac_ext <<_ACEOF
19713 /* end confdefs.h. */
19714
19715 int
19716 main ()
19717 {
19718 #ifndef __GNUC__
19719 choke me
19720 #endif
19721
19722 ;
19723 return 0;
19724 }
19725 _ACEOF
19726 rm -f conftest.$ac_objext
19727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19728 (eval $ac_compile) 2>conftest.er1
19729 ac_status=$?
19730 grep -v '^ *+' conftest.er1 >conftest.err
19731 rm -f conftest.er1
19732 cat conftest.err >&5
19733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19734 (exit $ac_status); } &&
19735 { ac_try='test -z "$ac_c_werror_flag"
19736 || test ! -s conftest.err'
19737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19738 (eval $ac_try) 2>&5
19739 ac_status=$?
19740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19741 (exit $ac_status); }; } &&
19742 { ac_try='test -s conftest.$ac_objext'
19743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19744 (eval $ac_try) 2>&5
19745 ac_status=$?
19746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19747 (exit $ac_status); }; }; then
19748 ac_compiler_gnu=yes
19749 else
19750 echo "$as_me: failed program was:" >&5
19751 sed 's/^/| /' conftest.$ac_ext >&5
19752
19753 ac_compiler_gnu=no
19754 fi
19755 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19756 ac_cv_c_compiler_gnu=$ac_compiler_gnu
19757
19758 fi
19759 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
19760 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
19761 GCC=`test $ac_compiler_gnu = yes && echo yes`
19762 ac_test_CFLAGS=${CFLAGS+set}
19763 ac_save_CFLAGS=$CFLAGS
19764 CFLAGS="-g"
19765 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
19766 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
19767 if test "${ac_cv_prog_cc_g+set}" = set; then
19768 echo $ECHO_N "(cached) $ECHO_C" >&6
19769 else
19770 cat >conftest.$ac_ext <<_ACEOF
19771 /* confdefs.h. */
19772 _ACEOF
19773 cat confdefs.h >>conftest.$ac_ext
19774 cat >>conftest.$ac_ext <<_ACEOF
19775 /* end confdefs.h. */
19776
19777 int
19778 main ()
19779 {
19780
19781 ;
19782 return 0;
19783 }
19784 _ACEOF
19785 rm -f conftest.$ac_objext
19786 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19787 (eval $ac_compile) 2>conftest.er1
19788 ac_status=$?
19789 grep -v '^ *+' conftest.er1 >conftest.err
19790 rm -f conftest.er1
19791 cat conftest.err >&5
19792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19793 (exit $ac_status); } &&
19794 { ac_try='test -z "$ac_c_werror_flag"
19795 || test ! -s conftest.err'
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19798 ac_status=$?
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; } &&
19801 { ac_try='test -s conftest.$ac_objext'
19802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19803 (eval $ac_try) 2>&5
19804 ac_status=$?
19805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19806 (exit $ac_status); }; }; then
19807 ac_cv_prog_cc_g=yes
19808 else
19809 echo "$as_me: failed program was:" >&5
19810 sed 's/^/| /' conftest.$ac_ext >&5
19811
19812 ac_cv_prog_cc_g=no
19813 fi
19814 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
19815 fi
19816 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
19817 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
19818 if test "$ac_test_CFLAGS" = set; then
19819 CFLAGS=$ac_save_CFLAGS
19820 elif test $ac_cv_prog_cc_g = yes; then
19821 if test "$GCC" = yes; then
19822 CFLAGS="-g -O2"
19823 else
19824 CFLAGS="-g"
19825 fi
19826 else
19827 if test "$GCC" = yes; then
19828 CFLAGS="-O2"
19829 else
19830 CFLAGS=
19831 fi
19832 fi
19833 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
19834 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
19835 if test "${ac_cv_prog_cc_stdc+set}" = set; then
19836 echo $ECHO_N "(cached) $ECHO_C" >&6
19837 else
19838 ac_cv_prog_cc_stdc=no
19839 ac_save_CC=$CC
19840 cat >conftest.$ac_ext <<_ACEOF
19841 /* confdefs.h. */
19842 _ACEOF
19843 cat confdefs.h >>conftest.$ac_ext
19844 cat >>conftest.$ac_ext <<_ACEOF
19845 /* end confdefs.h. */
19846 #include <stdarg.h>
19847 #include <stdio.h>
19848 #include <sys/types.h>
19849 #include <sys/stat.h>
19850 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
19851 struct buf { int x; };
19852 FILE * (*rcsopen) (struct buf *, struct stat *, int);
19853 static char *e (p, i)
19854 char **p;
19855 int i;
19856 {
19857 return p[i];
19858 }
19859 static char *f (char * (*g) (char **, int), char **p, ...)
19860 {
19861 char *s;
19862 va_list v;
19863 va_start (v,p);
19864 s = g (p, va_arg (v,int));
19865 va_end (v);
19866 return s;
19867 }
19868
19869 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
19870 function prototypes and stuff, but not '\xHH' hex character constants.
19871 These don't provoke an error unfortunately, instead are silently treated
19872 as 'x'. The following induces an error, until -std1 is added to get
19873 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
19874 array size at least. It's necessary to write '\x00'==0 to get something
19875 that's true only with -std1. */
19876 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
19877
19878 int test (int i, double x);
19879 struct s1 {int (*f) (int a);};
19880 struct s2 {int (*f) (double a);};
19881 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
19882 int argc;
19883 char **argv;
19884 int
19885 main ()
19886 {
19887 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
19888 ;
19889 return 0;
19890 }
19891 _ACEOF
19892 # Don't try gcc -ansi; that turns off useful extensions and
19893 # breaks some systems' header files.
19894 # AIX -qlanglvl=ansi
19895 # Ultrix and OSF/1 -std1
19896 # HP-UX 10.20 and later -Ae
19897 # HP-UX older versions -Aa -D_HPUX_SOURCE
19898 # SVR4 -Xc -D__EXTENSIONS__
19899 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
19900 do
19901 CC="$ac_save_CC $ac_arg"
19902 rm -f conftest.$ac_objext
19903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19904 (eval $ac_compile) 2>conftest.er1
19905 ac_status=$?
19906 grep -v '^ *+' conftest.er1 >conftest.err
19907 rm -f conftest.er1
19908 cat conftest.err >&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); } &&
19911 { ac_try='test -z "$ac_c_werror_flag"
19912 || test ! -s conftest.err'
19913 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19914 (eval $ac_try) 2>&5
19915 ac_status=$?
19916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19917 (exit $ac_status); }; } &&
19918 { ac_try='test -s conftest.$ac_objext'
19919 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19920 (eval $ac_try) 2>&5
19921 ac_status=$?
19922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19923 (exit $ac_status); }; }; then
19924 ac_cv_prog_cc_stdc=$ac_arg
19925 break
19926 else
19927 echo "$as_me: failed program was:" >&5
19928 sed 's/^/| /' conftest.$ac_ext >&5
19929
19930 fi
19931 rm -f conftest.err conftest.$ac_objext
19932 done
19933 rm -f conftest.$ac_ext conftest.$ac_objext
19934 CC=$ac_save_CC
19935
19936 fi
19937
19938 case "x$ac_cv_prog_cc_stdc" in
19939 x|xno)
19940 echo "$as_me:$LINENO: result: none needed" >&5
19941 echo "${ECHO_T}none needed" >&6 ;;
19942 *)
19943 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
19944 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
19945 CC="$CC $ac_cv_prog_cc_stdc" ;;
19946 esac
19947
19948 # Some people use a C++ compiler to compile C. Since we use `exit',
19949 # in C++ we need to declare it. In case someone uses the same compiler
19950 # for both compiling C and C++ we need to have the C++ compiler decide
19951 # the declaration of exit, since it's the most demanding environment.
19952 cat >conftest.$ac_ext <<_ACEOF
19953 #ifndef __cplusplus
19954 choke me
19955 #endif
19956 _ACEOF
19957 rm -f conftest.$ac_objext
19958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19959 (eval $ac_compile) 2>conftest.er1
19960 ac_status=$?
19961 grep -v '^ *+' conftest.er1 >conftest.err
19962 rm -f conftest.er1
19963 cat conftest.err >&5
19964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19965 (exit $ac_status); } &&
19966 { ac_try='test -z "$ac_c_werror_flag"
19967 || test ! -s conftest.err'
19968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19969 (eval $ac_try) 2>&5
19970 ac_status=$?
19971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19972 (exit $ac_status); }; } &&
19973 { ac_try='test -s conftest.$ac_objext'
19974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19975 (eval $ac_try) 2>&5
19976 ac_status=$?
19977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19978 (exit $ac_status); }; }; then
19979 for ac_declaration in \
19980 '' \
19981 'extern "C" void std::exit (int) throw (); using std::exit;' \
19982 'extern "C" void std::exit (int); using std::exit;' \
19983 'extern "C" void exit (int) throw ();' \
19984 'extern "C" void exit (int);' \
19985 'void exit (int);'
19986 do
19987 cat >conftest.$ac_ext <<_ACEOF
19988 /* confdefs.h. */
19989 _ACEOF
19990 cat confdefs.h >>conftest.$ac_ext
19991 cat >>conftest.$ac_ext <<_ACEOF
19992 /* end confdefs.h. */
19993 $ac_declaration
19994 #include <stdlib.h>
19995 int
19996 main ()
19997 {
19998 exit (42);
19999 ;
20000 return 0;
20001 }
20002 _ACEOF
20003 rm -f conftest.$ac_objext
20004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20005 (eval $ac_compile) 2>conftest.er1
20006 ac_status=$?
20007 grep -v '^ *+' conftest.er1 >conftest.err
20008 rm -f conftest.er1
20009 cat conftest.err >&5
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); } &&
20012 { ac_try='test -z "$ac_c_werror_flag"
20013 || test ! -s conftest.err'
20014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20015 (eval $ac_try) 2>&5
20016 ac_status=$?
20017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20018 (exit $ac_status); }; } &&
20019 { ac_try='test -s conftest.$ac_objext'
20020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20021 (eval $ac_try) 2>&5
20022 ac_status=$?
20023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20024 (exit $ac_status); }; }; then
20025 :
20026 else
20027 echo "$as_me: failed program was:" >&5
20028 sed 's/^/| /' conftest.$ac_ext >&5
20029
20030 continue
20031 fi
20032 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20033 cat >conftest.$ac_ext <<_ACEOF
20034 /* confdefs.h. */
20035 _ACEOF
20036 cat confdefs.h >>conftest.$ac_ext
20037 cat >>conftest.$ac_ext <<_ACEOF
20038 /* end confdefs.h. */
20039 $ac_declaration
20040 int
20041 main ()
20042 {
20043 exit (42);
20044 ;
20045 return 0;
20046 }
20047 _ACEOF
20048 rm -f conftest.$ac_objext
20049 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20050 (eval $ac_compile) 2>conftest.er1
20051 ac_status=$?
20052 grep -v '^ *+' conftest.er1 >conftest.err
20053 rm -f conftest.er1
20054 cat conftest.err >&5
20055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20056 (exit $ac_status); } &&
20057 { ac_try='test -z "$ac_c_werror_flag"
20058 || test ! -s conftest.err'
20059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20060 (eval $ac_try) 2>&5
20061 ac_status=$?
20062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063 (exit $ac_status); }; } &&
20064 { ac_try='test -s conftest.$ac_objext'
20065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20066 (eval $ac_try) 2>&5
20067 ac_status=$?
20068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20069 (exit $ac_status); }; }; then
20070 break
20071 else
20072 echo "$as_me: failed program was:" >&5
20073 sed 's/^/| /' conftest.$ac_ext >&5
20074
20075 fi
20076 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20077 done
20078 rm -f conftest*
20079 if test -n "$ac_declaration"; then
20080 echo '#ifdef __cplusplus' >>confdefs.h
20081 echo $ac_declaration >>confdefs.h
20082 echo '#endif' >>confdefs.h
20083 fi
20084
20085 else
20086 echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20088
20089 fi
20090 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20091 ac_ext=c
20092 ac_cpp='$CPP $CPPFLAGS'
20093 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20094 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20095 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20096
20097 depcc="$CC" am_compiler_list=
20098
20099 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
20100 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
20101 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
20102 echo $ECHO_N "(cached) $ECHO_C" >&6
20103 else
20104 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
20105 # We make a subdir and do the tests there. Otherwise we can end up
20106 # making bogus files that we don't know about and never remove. For
20107 # instance it was reported that on HP-UX the gcc test will end up
20108 # making a dummy file named `D' -- because `-MD' means `put the output
20109 # in D'.
20110 mkdir conftest.dir
20111 # Copy depcomp to subdir because otherwise we won't find it if we're
20112 # using a relative directory.
20113 cp "$am_depcomp" conftest.dir
20114 cd conftest.dir
20115 # We will build objects and dependencies in a subdirectory because
20116 # it helps to detect inapplicable dependency modes. For instance
20117 # both Tru64's cc and ICC support -MD to output dependencies as a
20118 # side effect of compilation, but ICC will put the dependencies in
20119 # the current directory while Tru64 will put them in the object
20120 # directory.
20121 mkdir sub
20122
20123 am_cv_CC_dependencies_compiler_type=none
20124 if test "$am_compiler_list" = ""; then
20125 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
20126 fi
20127 for depmode in $am_compiler_list; do
20128 # Setup a source with many dependencies, because some compilers
20129 # like to wrap large dependency lists on column 80 (with \), and
20130 # we should not choose a depcomp mode which is confused by this.
20131 #
20132 # We need to recreate these files for each test, as the compiler may
20133 # overwrite some of them when testing with obscure command lines.
20134 # This happens at least with the AIX C compiler.
20135 : > sub/conftest.c
20136 for i in 1 2 3 4 5 6; do
20137 echo '#include "conftst'$i'.h"' >> sub/conftest.c
20138 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
20139 # Solaris 8's {/usr,}/bin/sh.
20140 touch sub/conftst$i.h
20141 done
20142 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
20143
20144 case $depmode in
20145 nosideeffect)
20146 # after this tag, mechanisms are not by side-effect, so they'll
20147 # only be used when explicitly requested
20148 if test "x$enable_dependency_tracking" = xyes; then
20149 continue
20150 else
20151 break
20152 fi
20153 ;;
20154 none) break ;;
20155 esac
20156 # We check with `-c' and `-o' for the sake of the "dashmstdout"
20157 # mode. It turns out that the SunPro C++ compiler does not properly
20158 # handle `-M -o', and we need to detect this.
20159 if depmode=$depmode \
20160 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
20161 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
20162 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
20163 >/dev/null 2>conftest.err &&
20164 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
20165 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
20166 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
20167 # icc doesn't choke on unknown options, it will just issue warnings
20168 # or remarks (even with -Werror). So we grep stderr for any message
20169 # that says an option was ignored or not supported.
20170 # When given -MP, icc 7.0 and 7.1 complain thusly:
20171 # icc: Command line warning: ignoring option '-M'; no argument required
20172 # The diagnosis changed in icc 8.0:
20173 # icc: Command line remark: option '-MP' not supported
20174 if (grep 'ignoring option' conftest.err ||
20175 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
20176 am_cv_CC_dependencies_compiler_type=$depmode
20177 break
20178 fi
20179 fi
20180 done
20181
20182 cd ..
20183 rm -rf conftest.dir
20184 else
20185 am_cv_CC_dependencies_compiler_type=none
20186 fi
20187
20188 fi
20189 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
20190 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
20191 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
20192
20193
20194
20195 if
20196 test "x$enable_dependency_tracking" != xno \
20197 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
20198 am__fastdepCC_TRUE=
20199 am__fastdepCC_FALSE='#'
20200 else
20201 am__fastdepCC_TRUE='#'
20202 am__fastdepCC_FALSE=
20203 fi
20204
20205
20206
20207 # We must set the default linker to the linker used by gcc for the correct
20208 # operation of libtool. If LD is not defined and we are using gcc, try to
20209 # set the LD default to the ld used by gcc.
20210 if test -z "$LD"
20211 then
20212 if test "$GCC" = yes
20213 then
20214 case $build in
20215 *-*-mingw*)
20216 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1 | tr -d '\015'` ;;
20217 *)
20218 gcc_prog_ld=`$CC -print-prog-name=ld 2>&1` ;;
20219 esac
20220 case $gcc_prog_ld in
20221 # Accept absolute paths.
20222 [\\/]* | [A-Za-z]:[\\/]*)
20223 LD="$gcc_prog_ld" ;;
20224 esac
20225 fi
20226 fi
20227
20228 CXX=${CXX-"c++"}
20229 CFLAGS=${CFLAGS-"-g -O2"}
20230 CXXFLAGS=${CXXFLAGS-"-g -O2"}
20231 fi
20232
20233
20234
20235 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
20236 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
20237 if test "${ac_cv_c_const+set}" = set; then
20238 echo $ECHO_N "(cached) $ECHO_C" >&6
20239 else
20240 cat >conftest.$ac_ext <<_ACEOF
20241 /* confdefs.h. */
20242 _ACEOF
20243 cat confdefs.h >>conftest.$ac_ext
20244 cat >>conftest.$ac_ext <<_ACEOF
20245 /* end confdefs.h. */
20246
20247 int
20248 main ()
20249 {
20250 /* FIXME: Include the comments suggested by Paul. */
20251 #ifndef __cplusplus
20252 /* Ultrix mips cc rejects this. */
20253 typedef int charset[2];
20254 const charset x;
20255 /* SunOS 4.1.1 cc rejects this. */
20256 char const *const *ccp;
20257 char **p;
20258 /* NEC SVR4.0.2 mips cc rejects this. */
20259 struct point {int x, y;};
20260 static struct point const zero = {0,0};
20261 /* AIX XL C 1.02.0.0 rejects this.
20262 It does not let you subtract one const X* pointer from another in
20263 an arm of an if-expression whose if-part is not a constant
20264 expression */
20265 const char *g = "string";
20266 ccp = &g + (g ? g-g : 0);
20267 /* HPUX 7.0 cc rejects these. */
20268 ++ccp;
20269 p = (char**) ccp;
20270 ccp = (char const *const *) p;
20271 { /* SCO 3.2v4 cc rejects this. */
20272 char *t;
20273 char const *s = 0 ? (char *) 0 : (char const *) 0;
20274
20275 *t++ = 0;
20276 }
20277 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
20278 int x[] = {25, 17};
20279 const int *foo = &x[0];
20280 ++foo;
20281 }
20282 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
20283 typedef const int *iptr;
20284 iptr p = 0;
20285 ++p;
20286 }
20287 { /* AIX XL C 1.02.0.0 rejects this saying
20288 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
20289 struct s { int j; const int *ap[3]; };
20290 struct s *b; b->j = 5;
20291 }
20292 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
20293 const int foo = 10;
20294 }
20295 #endif
20296
20297 ;
20298 return 0;
20299 }
20300 _ACEOF
20301 rm -f conftest.$ac_objext
20302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20303 (eval $ac_compile) 2>conftest.er1
20304 ac_status=$?
20305 grep -v '^ *+' conftest.er1 >conftest.err
20306 rm -f conftest.er1
20307 cat conftest.err >&5
20308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20309 (exit $ac_status); } &&
20310 { ac_try='test -z "$ac_c_werror_flag"
20311 || test ! -s conftest.err'
20312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20313 (eval $ac_try) 2>&5
20314 ac_status=$?
20315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20316 (exit $ac_status); }; } &&
20317 { ac_try='test -s conftest.$ac_objext'
20318 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20319 (eval $ac_try) 2>&5
20320 ac_status=$?
20321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20322 (exit $ac_status); }; }; then
20323 ac_cv_c_const=yes
20324 else
20325 echo "$as_me: failed program was:" >&5
20326 sed 's/^/| /' conftest.$ac_ext >&5
20327
20328 ac_cv_c_const=no
20329 fi
20330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20331 fi
20332 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
20333 echo "${ECHO_T}$ac_cv_c_const" >&6
20334 if test $ac_cv_c_const = no; then
20335
20336 cat >>confdefs.h <<\_ACEOF
20337 #define const
20338 _ACEOF
20339
20340 fi
20341
20342 echo "$as_me:$LINENO: checking for inline" >&5
20343 echo $ECHO_N "checking for inline... $ECHO_C" >&6
20344 if test "${ac_cv_c_inline+set}" = set; then
20345 echo $ECHO_N "(cached) $ECHO_C" >&6
20346 else
20347 ac_cv_c_inline=no
20348 for ac_kw in inline __inline__ __inline; do
20349 cat >conftest.$ac_ext <<_ACEOF
20350 /* confdefs.h. */
20351 _ACEOF
20352 cat confdefs.h >>conftest.$ac_ext
20353 cat >>conftest.$ac_ext <<_ACEOF
20354 /* end confdefs.h. */
20355 #ifndef __cplusplus
20356 typedef int foo_t;
20357 static $ac_kw foo_t static_foo () {return 0; }
20358 $ac_kw foo_t foo () {return 0; }
20359 #endif
20360
20361 _ACEOF
20362 rm -f conftest.$ac_objext
20363 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20364 (eval $ac_compile) 2>conftest.er1
20365 ac_status=$?
20366 grep -v '^ *+' conftest.er1 >conftest.err
20367 rm -f conftest.er1
20368 cat conftest.err >&5
20369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20370 (exit $ac_status); } &&
20371 { ac_try='test -z "$ac_c_werror_flag"
20372 || test ! -s conftest.err'
20373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20374 (eval $ac_try) 2>&5
20375 ac_status=$?
20376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377 (exit $ac_status); }; } &&
20378 { ac_try='test -s conftest.$ac_objext'
20379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20380 (eval $ac_try) 2>&5
20381 ac_status=$?
20382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20383 (exit $ac_status); }; }; then
20384 ac_cv_c_inline=$ac_kw; break
20385 else
20386 echo "$as_me: failed program was:" >&5
20387 sed 's/^/| /' conftest.$ac_ext >&5
20388
20389 fi
20390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20391 done
20392
20393 fi
20394 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
20395 echo "${ECHO_T}$ac_cv_c_inline" >&6
20396
20397
20398 case $ac_cv_c_inline in
20399 inline | yes) ;;
20400 *)
20401 case $ac_cv_c_inline in
20402 no) ac_val=;;
20403 *) ac_val=$ac_cv_c_inline;;
20404 esac
20405 cat >>confdefs.h <<_ACEOF
20406 #ifndef __cplusplus
20407 #define inline $ac_val
20408 #endif
20409 _ACEOF
20410 ;;
20411 esac
20412
20413 echo "$as_me:$LINENO: checking for working volatile" >&5
20414 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
20415 if test "${ac_cv_c_volatile+set}" = set; then
20416 echo $ECHO_N "(cached) $ECHO_C" >&6
20417 else
20418 cat >conftest.$ac_ext <<_ACEOF
20419 /* confdefs.h. */
20420 _ACEOF
20421 cat confdefs.h >>conftest.$ac_ext
20422 cat >>conftest.$ac_ext <<_ACEOF
20423 /* end confdefs.h. */
20424
20425 int
20426 main ()
20427 {
20428
20429 volatile int x;
20430 int * volatile y;
20431 ;
20432 return 0;
20433 }
20434 _ACEOF
20435 rm -f conftest.$ac_objext
20436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20437 (eval $ac_compile) 2>conftest.er1
20438 ac_status=$?
20439 grep -v '^ *+' conftest.er1 >conftest.err
20440 rm -f conftest.er1
20441 cat conftest.err >&5
20442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20443 (exit $ac_status); } &&
20444 { ac_try='test -z "$ac_c_werror_flag"
20445 || test ! -s conftest.err'
20446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20447 (eval $ac_try) 2>&5
20448 ac_status=$?
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); }; } &&
20451 { ac_try='test -s conftest.$ac_objext'
20452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20453 (eval $ac_try) 2>&5
20454 ac_status=$?
20455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20456 (exit $ac_status); }; }; then
20457 ac_cv_c_volatile=yes
20458 else
20459 echo "$as_me: failed program was:" >&5
20460 sed 's/^/| /' conftest.$ac_ext >&5
20461
20462 ac_cv_c_volatile=no
20463 fi
20464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20465 fi
20466 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
20467 echo "${ECHO_T}$ac_cv_c_volatile" >&6
20468 if test $ac_cv_c_volatile = no; then
20469
20470 cat >>confdefs.h <<\_ACEOF
20471 #define volatile
20472 _ACEOF
20473
20474 fi
20475
20476
20477 echo "$as_me:$LINENO: checking for long long" >&5
20478 echo $ECHO_N "checking for long long... $ECHO_C" >&6
20479 if test "${ac_cv_type_long_long+set}" = set; then
20480 echo $ECHO_N "(cached) $ECHO_C" >&6
20481 else
20482 cat >conftest.$ac_ext <<_ACEOF
20483 /* confdefs.h. */
20484 _ACEOF
20485 cat confdefs.h >>conftest.$ac_ext
20486 cat >>conftest.$ac_ext <<_ACEOF
20487 /* end confdefs.h. */
20488 $ac_includes_default
20489 int
20490 main ()
20491 {
20492 if ((long long *) 0)
20493 return 0;
20494 if (sizeof (long long))
20495 return 0;
20496 ;
20497 return 0;
20498 }
20499 _ACEOF
20500 rm -f conftest.$ac_objext
20501 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20502 (eval $ac_compile) 2>conftest.er1
20503 ac_status=$?
20504 grep -v '^ *+' conftest.er1 >conftest.err
20505 rm -f conftest.er1
20506 cat conftest.err >&5
20507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508 (exit $ac_status); } &&
20509 { ac_try='test -z "$ac_c_werror_flag"
20510 || test ! -s conftest.err'
20511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20512 (eval $ac_try) 2>&5
20513 ac_status=$?
20514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20515 (exit $ac_status); }; } &&
20516 { ac_try='test -s conftest.$ac_objext'
20517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20518 (eval $ac_try) 2>&5
20519 ac_status=$?
20520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20521 (exit $ac_status); }; }; then
20522 ac_cv_type_long_long=yes
20523 else
20524 echo "$as_me: failed program was:" >&5
20525 sed 's/^/| /' conftest.$ac_ext >&5
20526
20527 ac_cv_type_long_long=no
20528 fi
20529 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20530 fi
20531 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
20532 echo "${ECHO_T}$ac_cv_type_long_long" >&6
20533 if test $ac_cv_type_long_long = yes; then
20534
20535 cat >>confdefs.h <<_ACEOF
20536 #define HAVE_LONG_LONG 1
20537 _ACEOF
20538
20539
20540 fi
20541
20542 echo "$as_me:$LINENO: checking for long double" >&5
20543 echo $ECHO_N "checking for long double... $ECHO_C" >&6
20544 if test "${ac_cv_type_long_double+set}" = set; then
20545 echo $ECHO_N "(cached) $ECHO_C" >&6
20546 else
20547 cat >conftest.$ac_ext <<_ACEOF
20548 /* confdefs.h. */
20549 _ACEOF
20550 cat confdefs.h >>conftest.$ac_ext
20551 cat >>conftest.$ac_ext <<_ACEOF
20552 /* end confdefs.h. */
20553 $ac_includes_default
20554 int
20555 main ()
20556 {
20557 if ((long double *) 0)
20558 return 0;
20559 if (sizeof (long double))
20560 return 0;
20561 ;
20562 return 0;
20563 }
20564 _ACEOF
20565 rm -f conftest.$ac_objext
20566 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20567 (eval $ac_compile) 2>conftest.er1
20568 ac_status=$?
20569 grep -v '^ *+' conftest.er1 >conftest.err
20570 rm -f conftest.er1
20571 cat conftest.err >&5
20572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20573 (exit $ac_status); } &&
20574 { ac_try='test -z "$ac_c_werror_flag"
20575 || test ! -s conftest.err'
20576 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20577 (eval $ac_try) 2>&5
20578 ac_status=$?
20579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20580 (exit $ac_status); }; } &&
20581 { ac_try='test -s conftest.$ac_objext'
20582 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20583 (eval $ac_try) 2>&5
20584 ac_status=$?
20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20586 (exit $ac_status); }; }; then
20587 ac_cv_type_long_double=yes
20588 else
20589 echo "$as_me: failed program was:" >&5
20590 sed 's/^/| /' conftest.$ac_ext >&5
20591
20592 ac_cv_type_long_double=no
20593 fi
20594 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20595 fi
20596 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
20597 echo "${ECHO_T}$ac_cv_type_long_double" >&6
20598 if test $ac_cv_type_long_double = yes; then
20599
20600 cat >>confdefs.h <<_ACEOF
20601 #define HAVE_LONG_DOUBLE 1
20602 _ACEOF
20603
20604
20605 fi
20606
20607
20608 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
20609 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
20610 if test "${ac_cv_type_signal+set}" = set; then
20611 echo $ECHO_N "(cached) $ECHO_C" >&6
20612 else
20613 cat >conftest.$ac_ext <<_ACEOF
20614 /* confdefs.h. */
20615 _ACEOF
20616 cat confdefs.h >>conftest.$ac_ext
20617 cat >>conftest.$ac_ext <<_ACEOF
20618 /* end confdefs.h. */
20619 #include <sys/types.h>
20620 #include <signal.h>
20621 #ifdef signal
20622 # undef signal
20623 #endif
20624 #ifdef __cplusplus
20625 extern "C" void (*signal (int, void (*)(int)))(int);
20626 #else
20627 void (*signal ()) ();
20628 #endif
20629
20630 int
20631 main ()
20632 {
20633 int i;
20634 ;
20635 return 0;
20636 }
20637 _ACEOF
20638 rm -f conftest.$ac_objext
20639 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20640 (eval $ac_compile) 2>conftest.er1
20641 ac_status=$?
20642 grep -v '^ *+' conftest.er1 >conftest.err
20643 rm -f conftest.er1
20644 cat conftest.err >&5
20645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20646 (exit $ac_status); } &&
20647 { ac_try='test -z "$ac_c_werror_flag"
20648 || test ! -s conftest.err'
20649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20650 (eval $ac_try) 2>&5
20651 ac_status=$?
20652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20653 (exit $ac_status); }; } &&
20654 { ac_try='test -s conftest.$ac_objext'
20655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20656 (eval $ac_try) 2>&5
20657 ac_status=$?
20658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20659 (exit $ac_status); }; }; then
20660 ac_cv_type_signal=void
20661 else
20662 echo "$as_me: failed program was:" >&5
20663 sed 's/^/| /' conftest.$ac_ext >&5
20664
20665 ac_cv_type_signal=int
20666 fi
20667 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
20668 fi
20669 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
20670 echo "${ECHO_T}$ac_cv_type_signal" >&6
20671
20672 cat >>confdefs.h <<_ACEOF
20673 #define RETSIGTYPE $ac_cv_type_signal
20674 _ACEOF
20675
20676
20677
20678 # Check whether --enable-doc or --disable-doc was given.
20679 if test "${enable_doc+set}" = set; then
20680 enableval="$enable_doc"
20681
20682 fi;
20683 # Check whether --enable-tests or --disable-tests was given.
20684 if test "${enable_tests+set}" = set; then
20685 enableval="$enable_tests"
20686
20687 fi;
20688 # Check whether --enable-test_data or --disable-test_data was given.
20689 if test "${enable_test_data+set}" = set; then
20690 enableval="$enable_test_data"
20691
20692 fi;
20693 # Check whether --enable-mmx or --disable-mmx was given.
20694 if test "${enable_mmx+set}" = set; then
20695 enableval="$enable_mmx"
20696
20697 fi;
20698 # Check whether --enable-sse or --disable-sse was given.
20699 if test "${enable_sse+set}" = set; then
20700 enableval="$enable_sse"
20701
20702 fi;
20703 # Check whether --enable-sse2 or --disable-sse2 was given.
20704 if test "${enable_sse2+set}" = set; then
20705 enableval="$enable_sse2"
20706
20707 fi;
20708 # Check whether --enable-sse3 or --disable-sse3 was given.
20709 if test "${enable_sse3+set}" = set; then
20710 enableval="$enable_sse3"
20711
20712 fi;
20713 # Check whether --enable-ssse3 or --disable-ssse3 was given.
20714 if test "${enable_ssse3+set}" = set; then
20715 enableval="$enable_ssse3"
20716
20717 fi;
20718 # Check whether --enable-sse4_1 or --disable-sse4_1 was given.
20719 if test "${enable_sse4_1+set}" = set; then
20720 enableval="$enable_sse4_1"
20721
20722 fi;
20723 # Check whether --enable-sse4_2 or --disable-sse4_2 was given.
20724 if test "${enable_sse4_2+set}" = set; then
20725 enableval="$enable_sse4_2"
20726
20727 fi;
20728 # Check whether --enable-sse4a or --disable-sse4a was given.
20729 if test "${enable_sse4a+set}" = set; then
20730 enableval="$enable_sse4a"
20731
20732 fi;
20733 # Check whether --enable-sse5 or --disable-sse5 was given.
20734 if test "${enable_sse5+set}" = set; then
20735 enableval="$enable_sse5"
20736
20737 fi;
20738 # Check whether --enable-fixed_point or --disable-fixed_point was given.
20739 if test "${enable_fixed_point+set}" = set; then
20740 enableval="$enable_fixed_point"
20741
20742 fi;
20743 # The following is for MSVC, where we may be using a local copy of libtiff, built alongside spandsp
20744 # Check whether --enable-builtin_tiff or --disable-builtin_tiff was given.
20745 if test "${enable_builtin_tiff+set}" = set; then
20746 enableval="$enable_builtin_tiff"
20747 enable_builtin_tiff="$enableval"
20748 else
20749 enable_builtin_tiff="no"
20750 fi;
20751
20752 echo "$as_me:$LINENO: checking for error_at_line" >&5
20753 echo $ECHO_N "checking for error_at_line... $ECHO_C" >&6
20754 if test "${ac_cv_lib_error_at_line+set}" = set; then
20755 echo $ECHO_N "(cached) $ECHO_C" >&6
20756 else
20757 cat >conftest.$ac_ext <<_ACEOF
20758 /* confdefs.h. */
20759 _ACEOF
20760 cat confdefs.h >>conftest.$ac_ext
20761 cat >>conftest.$ac_ext <<_ACEOF
20762 /* end confdefs.h. */
20763 $ac_includes_default
20764 int
20765 main ()
20766 {
20767 error_at_line (0, 0, "", 0, "");
20768 ;
20769 return 0;
20770 }
20771 _ACEOF
20772 rm -f conftest.$ac_objext conftest$ac_exeext
20773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20774 (eval $ac_link) 2>conftest.er1
20775 ac_status=$?
20776 grep -v '^ *+' conftest.er1 >conftest.err
20777 rm -f conftest.er1
20778 cat conftest.err >&5
20779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20780 (exit $ac_status); } &&
20781 { ac_try='test -z "$ac_c_werror_flag"
20782 || test ! -s conftest.err'
20783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20784 (eval $ac_try) 2>&5
20785 ac_status=$?
20786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20787 (exit $ac_status); }; } &&
20788 { ac_try='test -s conftest$ac_exeext'
20789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20790 (eval $ac_try) 2>&5
20791 ac_status=$?
20792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20793 (exit $ac_status); }; }; then
20794 ac_cv_lib_error_at_line=yes
20795 else
20796 echo "$as_me: failed program was:" >&5
20797 sed 's/^/| /' conftest.$ac_ext >&5
20798
20799 ac_cv_lib_error_at_line=no
20800 fi
20801 rm -f conftest.err conftest.$ac_objext \
20802 conftest$ac_exeext conftest.$ac_ext
20803 fi
20804 echo "$as_me:$LINENO: result: $ac_cv_lib_error_at_line" >&5
20805 echo "${ECHO_T}$ac_cv_lib_error_at_line" >&6
20806 if test $ac_cv_lib_error_at_line = no; then
20807 case $LIBOBJS in
20808 "error.$ac_objext" | \
20809 *" error.$ac_objext" | \
20810 "error.$ac_objext "* | \
20811 *" error.$ac_objext "* ) ;;
20812 *) LIBOBJS="$LIBOBJS error.$ac_objext" ;;
20813 esac
20814
20815 fi
20816
20817
20818 for ac_func in vprintf
20819 do
20820 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20821 echo "$as_me:$LINENO: checking for $ac_func" >&5
20822 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
20823 if eval "test \"\${$as_ac_var+set}\" = set"; then
20824 echo $ECHO_N "(cached) $ECHO_C" >&6
20825 else
20826 cat >conftest.$ac_ext <<_ACEOF
20827 /* confdefs.h. */
20828 _ACEOF
20829 cat confdefs.h >>conftest.$ac_ext
20830 cat >>conftest.$ac_ext <<_ACEOF
20831 /* end confdefs.h. */
20832 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20833 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20834 #define $ac_func innocuous_$ac_func
20835
20836 /* System header to define __stub macros and hopefully few prototypes,
20837 which can conflict with char $ac_func (); below.
20838 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20839 <limits.h> exists even on freestanding compilers. */
20840
20841 #ifdef __STDC__
20842 # include <limits.h>
20843 #else
20844 # include <assert.h>
20845 #endif
20846
20847 #undef $ac_func
20848
20849 /* Override any gcc2 internal prototype to avoid an error. */
20850 #ifdef __cplusplus
20851 extern "C"
20852 {
20853 #endif
20854 /* We use char because int might match the return type of a gcc2
20855 builtin and then its argument prototype would still apply. */
20856 char $ac_func ();
20857 /* The GNU C library defines this for functions which it implements
20858 to always fail with ENOSYS. Some functions are actually named
20859 something starting with __ and the normal name is an alias. */
20860 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
20861 choke me
20862 #else
20863 char (*f) () = $ac_func;
20864 #endif
20865 #ifdef __cplusplus
20866 }
20867 #endif
20868
20869 int
20870 main ()
20871 {
20872 return f != $ac_func;
20873 ;
20874 return 0;
20875 }
20876 _ACEOF
20877 rm -f conftest.$ac_objext conftest$ac_exeext
20878 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20879 (eval $ac_link) 2>conftest.er1
20880 ac_status=$?
20881 grep -v '^ *+' conftest.er1 >conftest.err
20882 rm -f conftest.er1
20883 cat conftest.err >&5
20884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20885 (exit $ac_status); } &&
20886 { ac_try='test -z "$ac_c_werror_flag"
20887 || test ! -s conftest.err'
20888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20889 (eval $ac_try) 2>&5
20890 ac_status=$?
20891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20892 (exit $ac_status); }; } &&
20893 { ac_try='test -s conftest$ac_exeext'
20894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20895 (eval $ac_try) 2>&5
20896 ac_status=$?
20897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20898 (exit $ac_status); }; }; then
20899 eval "$as_ac_var=yes"
20900 else
20901 echo "$as_me: failed program was:" >&5
20902 sed 's/^/| /' conftest.$ac_ext >&5
20903
20904 eval "$as_ac_var=no"
20905 fi
20906 rm -f conftest.err conftest.$ac_objext \
20907 conftest$ac_exeext conftest.$ac_ext
20908 fi
20909 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
20910 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
20911 if test `eval echo '${'$as_ac_var'}'` = yes; then
20912 cat >>confdefs.h <<_ACEOF
20913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20914 _ACEOF
20915
20916 echo "$as_me:$LINENO: checking for _doprnt" >&5
20917 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
20918 if test "${ac_cv_func__doprnt+set}" = set; then
20919 echo $ECHO_N "(cached) $ECHO_C" >&6
20920 else
20921 cat >conftest.$ac_ext <<_ACEOF
20922 /* confdefs.h. */
20923 _ACEOF
20924 cat confdefs.h >>conftest.$ac_ext
20925 cat >>conftest.$ac_ext <<_ACEOF
20926 /* end confdefs.h. */
20927 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
20928 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20929 #define _doprnt innocuous__doprnt
20930
20931 /* System header to define __stub macros and hopefully few prototypes,
20932 which can conflict with char _doprnt (); below.
20933 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20934 <limits.h> exists even on freestanding compilers. */
20935
20936 #ifdef __STDC__
20937 # include <limits.h>
20938 #else
20939 # include <assert.h>
20940 #endif
20941
20942 #undef _doprnt
20943
20944 /* Override any gcc2 internal prototype to avoid an error. */
20945 #ifdef __cplusplus
20946 extern "C"
20947 {
20948 #endif
20949 /* We use char because int might match the return type of a gcc2
20950 builtin and then its argument prototype would still apply. */
20951 char _doprnt ();
20952 /* The GNU C library defines this for functions which it implements
20953 to always fail with ENOSYS. Some functions are actually named
20954 something starting with __ and the normal name is an alias. */
20955 #if defined (__stub__doprnt) || defined (__stub____doprnt)
20956 choke me
20957 #else
20958 char (*f) () = _doprnt;
20959 #endif
20960 #ifdef __cplusplus
20961 }
20962 #endif
20963
20964 int
20965 main ()
20966 {
20967 return f != _doprnt;
20968 ;
20969 return 0;
20970 }
20971 _ACEOF
20972 rm -f conftest.$ac_objext conftest$ac_exeext
20973 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20974 (eval $ac_link) 2>conftest.er1
20975 ac_status=$?
20976 grep -v '^ *+' conftest.er1 >conftest.err
20977 rm -f conftest.er1
20978 cat conftest.err >&5
20979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20980 (exit $ac_status); } &&
20981 { ac_try='test -z "$ac_c_werror_flag"
20982 || test ! -s conftest.err'
20983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20984 (eval $ac_try) 2>&5
20985 ac_status=$?
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); }; } &&
20988 { ac_try='test -s conftest$ac_exeext'
20989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
20990 (eval $ac_try) 2>&5
20991 ac_status=$?
20992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20993 (exit $ac_status); }; }; then
20994 ac_cv_func__doprnt=yes
20995 else
20996 echo "$as_me: failed program was:" >&5
20997 sed 's/^/| /' conftest.$ac_ext >&5
20998
20999 ac_cv_func__doprnt=no
21000 fi
21001 rm -f conftest.err conftest.$ac_objext \
21002 conftest$ac_exeext conftest.$ac_ext
21003 fi
21004 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
21005 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
21006 if test $ac_cv_func__doprnt = yes; then
21007
21008 cat >>confdefs.h <<\_ACEOF
21009 #define HAVE_DOPRNT 1
21010 _ACEOF
21011
21012 fi
21013
21014 fi
21015 done
21016
21017
21018
21019 for ac_header in stdlib.h
21020 do
21021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21022 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21023 echo "$as_me:$LINENO: checking for $ac_header" >&5
21024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21025 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21026 echo $ECHO_N "(cached) $ECHO_C" >&6
21027 fi
21028 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21029 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21030 else
21031 # Is the header compilable?
21032 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21033 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21034 cat >conftest.$ac_ext <<_ACEOF
21035 /* confdefs.h. */
21036 _ACEOF
21037 cat confdefs.h >>conftest.$ac_ext
21038 cat >>conftest.$ac_ext <<_ACEOF
21039 /* end confdefs.h. */
21040 $ac_includes_default
21041 #include <$ac_header>
21042 _ACEOF
21043 rm -f conftest.$ac_objext
21044 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21045 (eval $ac_compile) 2>conftest.er1
21046 ac_status=$?
21047 grep -v '^ *+' conftest.er1 >conftest.err
21048 rm -f conftest.er1
21049 cat conftest.err >&5
21050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21051 (exit $ac_status); } &&
21052 { ac_try='test -z "$ac_c_werror_flag"
21053 || test ! -s conftest.err'
21054 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21055 (eval $ac_try) 2>&5
21056 ac_status=$?
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); }; } &&
21059 { ac_try='test -s conftest.$ac_objext'
21060 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21061 (eval $ac_try) 2>&5
21062 ac_status=$?
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); }; }; then
21065 ac_header_compiler=yes
21066 else
21067 echo "$as_me: failed program was:" >&5
21068 sed 's/^/| /' conftest.$ac_ext >&5
21069
21070 ac_header_compiler=no
21071 fi
21072 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21073 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21074 echo "${ECHO_T}$ac_header_compiler" >&6
21075
21076 # Is the header present?
21077 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21079 cat >conftest.$ac_ext <<_ACEOF
21080 /* confdefs.h. */
21081 _ACEOF
21082 cat confdefs.h >>conftest.$ac_ext
21083 cat >>conftest.$ac_ext <<_ACEOF
21084 /* end confdefs.h. */
21085 #include <$ac_header>
21086 _ACEOF
21087 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21088 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21089 ac_status=$?
21090 grep -v '^ *+' conftest.er1 >conftest.err
21091 rm -f conftest.er1
21092 cat conftest.err >&5
21093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21094 (exit $ac_status); } >/dev/null; then
21095 if test -s conftest.err; then
21096 ac_cpp_err=$ac_c_preproc_warn_flag
21097 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21098 else
21099 ac_cpp_err=
21100 fi
21101 else
21102 ac_cpp_err=yes
21103 fi
21104 if test -z "$ac_cpp_err"; then
21105 ac_header_preproc=yes
21106 else
21107 echo "$as_me: failed program was:" >&5
21108 sed 's/^/| /' conftest.$ac_ext >&5
21109
21110 ac_header_preproc=no
21111 fi
21112 rm -f conftest.err conftest.$ac_ext
21113 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21114 echo "${ECHO_T}$ac_header_preproc" >&6
21115
21116 # So? What about this header?
21117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21118 yes:no: )
21119 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21121 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21123 ac_header_preproc=yes
21124 ;;
21125 no:yes:* )
21126 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21128 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21129 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21130 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21132 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21133 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21136 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21138 (
21139 cat <<\_ASBOX
21140 ## ------------------------------------------ ##
21141 ## Report this to the AC_PACKAGE_NAME lists. ##
21142 ## ------------------------------------------ ##
21143 _ASBOX
21144 ) |
21145 sed "s/^/$as_me: WARNING: /" >&2
21146 ;;
21147 esac
21148 echo "$as_me:$LINENO: checking for $ac_header" >&5
21149 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21150 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21151 echo $ECHO_N "(cached) $ECHO_C" >&6
21152 else
21153 eval "$as_ac_Header=\$ac_header_preproc"
21154 fi
21155 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21156 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21157
21158 fi
21159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21160 cat >>confdefs.h <<_ACEOF
21161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21162 _ACEOF
21163
21164 fi
21165
21166 done
21167
21168 echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
21169 echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
21170 if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
21171 echo $ECHO_N "(cached) $ECHO_C" >&6
21172 else
21173 if test "$cross_compiling" = yes; then
21174 ac_cv_func_malloc_0_nonnull=no
21175 else
21176 cat >conftest.$ac_ext <<_ACEOF
21177 /* confdefs.h. */
21178 _ACEOF
21179 cat confdefs.h >>conftest.$ac_ext
21180 cat >>conftest.$ac_ext <<_ACEOF
21181 /* end confdefs.h. */
21182 #if STDC_HEADERS || HAVE_STDLIB_H
21183 # include <stdlib.h>
21184 #else
21185 char *malloc ();
21186 #endif
21187
21188 int
21189 main ()
21190 {
21191 exit (malloc (0) ? 0 : 1);
21192 ;
21193 return 0;
21194 }
21195 _ACEOF
21196 rm -f conftest$ac_exeext
21197 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21198 (eval $ac_link) 2>&5
21199 ac_status=$?
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21203 (eval $ac_try) 2>&5
21204 ac_status=$?
21205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21206 (exit $ac_status); }; }; then
21207 ac_cv_func_malloc_0_nonnull=yes
21208 else
21209 echo "$as_me: program exited with status $ac_status" >&5
21210 echo "$as_me: failed program was:" >&5
21211 sed 's/^/| /' conftest.$ac_ext >&5
21212
21213 ( exit $ac_status )
21214 ac_cv_func_malloc_0_nonnull=no
21215 fi
21216 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21217 fi
21218 fi
21219 echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
21220 echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
21221 if test $ac_cv_func_malloc_0_nonnull = yes; then
21222
21223 cat >>confdefs.h <<\_ACEOF
21224 #define HAVE_MALLOC 1
21225 _ACEOF
21226
21227 else
21228 cat >>confdefs.h <<\_ACEOF
21229 #define HAVE_MALLOC 0
21230 _ACEOF
21231
21232 case $LIBOBJS in
21233 "malloc.$ac_objext" | \
21234 *" malloc.$ac_objext" | \
21235 "malloc.$ac_objext "* | \
21236 *" malloc.$ac_objext "* ) ;;
21237 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
21238 esac
21239
21240
21241 cat >>confdefs.h <<\_ACEOF
21242 #define malloc rpl_malloc
21243 _ACEOF
21244
21245 fi
21246
21247
21248
21249 echo "$as_me:$LINENO: checking for working memcmp" >&5
21250 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
21251 if test "${ac_cv_func_memcmp_working+set}" = set; then
21252 echo $ECHO_N "(cached) $ECHO_C" >&6
21253 else
21254 if test "$cross_compiling" = yes; then
21255 ac_cv_func_memcmp_working=no
21256 else
21257 cat >conftest.$ac_ext <<_ACEOF
21258 /* confdefs.h. */
21259 _ACEOF
21260 cat confdefs.h >>conftest.$ac_ext
21261 cat >>conftest.$ac_ext <<_ACEOF
21262 /* end confdefs.h. */
21263 $ac_includes_default
21264 int
21265 main ()
21266 {
21267
21268 /* Some versions of memcmp are not 8-bit clean. */
21269 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
21270 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
21271 exit (1);
21272
21273 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
21274 or more and with at least one buffer not starting on a 4-byte boundary.
21275 William Lewis provided this test program. */
21276 {
21277 char foo[21];
21278 char bar[21];
21279 int i;
21280 for (i = 0; i < 4; i++)
21281 {
21282 char *a = foo + i;
21283 char *b = bar + i;
21284 strcpy (a, "--------01111111");
21285 strcpy (b, "--------10000000");
21286 if (memcmp (a, b, 16) >= 0)
21287 exit (1);
21288 }
21289 exit (0);
21290 }
21291
21292 ;
21293 return 0;
21294 }
21295 _ACEOF
21296 rm -f conftest$ac_exeext
21297 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21298 (eval $ac_link) 2>&5
21299 ac_status=$?
21300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21301 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21303 (eval $ac_try) 2>&5
21304 ac_status=$?
21305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21306 (exit $ac_status); }; }; then
21307 ac_cv_func_memcmp_working=yes
21308 else
21309 echo "$as_me: program exited with status $ac_status" >&5
21310 echo "$as_me: failed program was:" >&5
21311 sed 's/^/| /' conftest.$ac_ext >&5
21312
21313 ( exit $ac_status )
21314 ac_cv_func_memcmp_working=no
21315 fi
21316 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21317 fi
21318 fi
21319 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
21320 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
21321 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
21322 "memcmp.$ac_objext" | \
21323 *" memcmp.$ac_objext" | \
21324 "memcmp.$ac_objext "* | \
21325 *" memcmp.$ac_objext "* ) ;;
21326 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
21327 esac
21328
21329
21330
21331 for ac_header in stdlib.h
21332 do
21333 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21334 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21335 echo "$as_me:$LINENO: checking for $ac_header" >&5
21336 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21337 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21338 echo $ECHO_N "(cached) $ECHO_C" >&6
21339 fi
21340 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21341 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21342 else
21343 # Is the header compilable?
21344 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21345 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21346 cat >conftest.$ac_ext <<_ACEOF
21347 /* confdefs.h. */
21348 _ACEOF
21349 cat confdefs.h >>conftest.$ac_ext
21350 cat >>conftest.$ac_ext <<_ACEOF
21351 /* end confdefs.h. */
21352 $ac_includes_default
21353 #include <$ac_header>
21354 _ACEOF
21355 rm -f conftest.$ac_objext
21356 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21357 (eval $ac_compile) 2>conftest.er1
21358 ac_status=$?
21359 grep -v '^ *+' conftest.er1 >conftest.err
21360 rm -f conftest.er1
21361 cat conftest.err >&5
21362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21363 (exit $ac_status); } &&
21364 { ac_try='test -z "$ac_c_werror_flag"
21365 || test ! -s conftest.err'
21366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21367 (eval $ac_try) 2>&5
21368 ac_status=$?
21369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21370 (exit $ac_status); }; } &&
21371 { ac_try='test -s conftest.$ac_objext'
21372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21373 (eval $ac_try) 2>&5
21374 ac_status=$?
21375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21376 (exit $ac_status); }; }; then
21377 ac_header_compiler=yes
21378 else
21379 echo "$as_me: failed program was:" >&5
21380 sed 's/^/| /' conftest.$ac_ext >&5
21381
21382 ac_header_compiler=no
21383 fi
21384 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21385 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21386 echo "${ECHO_T}$ac_header_compiler" >&6
21387
21388 # Is the header present?
21389 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21390 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21391 cat >conftest.$ac_ext <<_ACEOF
21392 /* confdefs.h. */
21393 _ACEOF
21394 cat confdefs.h >>conftest.$ac_ext
21395 cat >>conftest.$ac_ext <<_ACEOF
21396 /* end confdefs.h. */
21397 #include <$ac_header>
21398 _ACEOF
21399 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21400 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21401 ac_status=$?
21402 grep -v '^ *+' conftest.er1 >conftest.err
21403 rm -f conftest.er1
21404 cat conftest.err >&5
21405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21406 (exit $ac_status); } >/dev/null; then
21407 if test -s conftest.err; then
21408 ac_cpp_err=$ac_c_preproc_warn_flag
21409 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21410 else
21411 ac_cpp_err=
21412 fi
21413 else
21414 ac_cpp_err=yes
21415 fi
21416 if test -z "$ac_cpp_err"; then
21417 ac_header_preproc=yes
21418 else
21419 echo "$as_me: failed program was:" >&5
21420 sed 's/^/| /' conftest.$ac_ext >&5
21421
21422 ac_header_preproc=no
21423 fi
21424 rm -f conftest.err conftest.$ac_ext
21425 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21426 echo "${ECHO_T}$ac_header_preproc" >&6
21427
21428 # So? What about this header?
21429 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21430 yes:no: )
21431 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21432 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21433 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21434 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21435 ac_header_preproc=yes
21436 ;;
21437 no:yes:* )
21438 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21439 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21440 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21441 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21442 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21443 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21444 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21445 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21447 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21448 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21449 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21450 (
21451 cat <<\_ASBOX
21452 ## ------------------------------------------ ##
21453 ## Report this to the AC_PACKAGE_NAME lists. ##
21454 ## ------------------------------------------ ##
21455 _ASBOX
21456 ) |
21457 sed "s/^/$as_me: WARNING: /" >&2
21458 ;;
21459 esac
21460 echo "$as_me:$LINENO: checking for $ac_header" >&5
21461 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21462 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21463 echo $ECHO_N "(cached) $ECHO_C" >&6
21464 else
21465 eval "$as_ac_Header=\$ac_header_preproc"
21466 fi
21467 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21468 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21469
21470 fi
21471 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21472 cat >>confdefs.h <<_ACEOF
21473 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21474 _ACEOF
21475
21476 fi
21477
21478 done
21479
21480 echo "$as_me:$LINENO: checking for GNU libc compatible realloc" >&5
21481 echo $ECHO_N "checking for GNU libc compatible realloc... $ECHO_C" >&6
21482 if test "${ac_cv_func_realloc_0_nonnull+set}" = set; then
21483 echo $ECHO_N "(cached) $ECHO_C" >&6
21484 else
21485 if test "$cross_compiling" = yes; then
21486 ac_cv_func_realloc_0_nonnull=no
21487 else
21488 cat >conftest.$ac_ext <<_ACEOF
21489 /* confdefs.h. */
21490 _ACEOF
21491 cat confdefs.h >>conftest.$ac_ext
21492 cat >>conftest.$ac_ext <<_ACEOF
21493 /* end confdefs.h. */
21494 #if STDC_HEADERS || HAVE_STDLIB_H
21495 # include <stdlib.h>
21496 #else
21497 char *realloc ();
21498 #endif
21499
21500 int
21501 main ()
21502 {
21503 exit (realloc (0, 0) ? 0 : 1);
21504 ;
21505 return 0;
21506 }
21507 _ACEOF
21508 rm -f conftest$ac_exeext
21509 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21510 (eval $ac_link) 2>&5
21511 ac_status=$?
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21515 (eval $ac_try) 2>&5
21516 ac_status=$?
21517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21518 (exit $ac_status); }; }; then
21519 ac_cv_func_realloc_0_nonnull=yes
21520 else
21521 echo "$as_me: program exited with status $ac_status" >&5
21522 echo "$as_me: failed program was:" >&5
21523 sed 's/^/| /' conftest.$ac_ext >&5
21524
21525 ( exit $ac_status )
21526 ac_cv_func_realloc_0_nonnull=no
21527 fi
21528 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21529 fi
21530 fi
21531 echo "$as_me:$LINENO: result: $ac_cv_func_realloc_0_nonnull" >&5
21532 echo "${ECHO_T}$ac_cv_func_realloc_0_nonnull" >&6
21533 if test $ac_cv_func_realloc_0_nonnull = yes; then
21534
21535 cat >>confdefs.h <<\_ACEOF
21536 #define HAVE_REALLOC 1
21537 _ACEOF
21538
21539 else
21540 cat >>confdefs.h <<\_ACEOF
21541 #define HAVE_REALLOC 0
21542 _ACEOF
21543
21544 case $LIBOBJS in
21545 "realloc.$ac_objext" | \
21546 *" realloc.$ac_objext" | \
21547 "realloc.$ac_objext "* | \
21548 *" realloc.$ac_objext "* ) ;;
21549 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" ;;
21550 esac
21551
21552
21553 cat >>confdefs.h <<\_ACEOF
21554 #define realloc rpl_realloc
21555 _ACEOF
21556
21557 fi
21558
21559
21560
21561
21562
21563 for ac_header in sys/select.h sys/socket.h
21564 do
21565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21566 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21567 echo "$as_me:$LINENO: checking for $ac_header" >&5
21568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21569 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21570 echo $ECHO_N "(cached) $ECHO_C" >&6
21571 fi
21572 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21573 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21574 else
21575 # Is the header compilable?
21576 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21577 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21578 cat >conftest.$ac_ext <<_ACEOF
21579 /* confdefs.h. */
21580 _ACEOF
21581 cat confdefs.h >>conftest.$ac_ext
21582 cat >>conftest.$ac_ext <<_ACEOF
21583 /* end confdefs.h. */
21584 $ac_includes_default
21585 #include <$ac_header>
21586 _ACEOF
21587 rm -f conftest.$ac_objext
21588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21589 (eval $ac_compile) 2>conftest.er1
21590 ac_status=$?
21591 grep -v '^ *+' conftest.er1 >conftest.err
21592 rm -f conftest.er1
21593 cat conftest.err >&5
21594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21595 (exit $ac_status); } &&
21596 { ac_try='test -z "$ac_c_werror_flag"
21597 || test ! -s conftest.err'
21598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21599 (eval $ac_try) 2>&5
21600 ac_status=$?
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); }; } &&
21603 { ac_try='test -s conftest.$ac_objext'
21604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21605 (eval $ac_try) 2>&5
21606 ac_status=$?
21607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21608 (exit $ac_status); }; }; then
21609 ac_header_compiler=yes
21610 else
21611 echo "$as_me: failed program was:" >&5
21612 sed 's/^/| /' conftest.$ac_ext >&5
21613
21614 ac_header_compiler=no
21615 fi
21616 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21617 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21618 echo "${ECHO_T}$ac_header_compiler" >&6
21619
21620 # Is the header present?
21621 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21622 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21623 cat >conftest.$ac_ext <<_ACEOF
21624 /* confdefs.h. */
21625 _ACEOF
21626 cat confdefs.h >>conftest.$ac_ext
21627 cat >>conftest.$ac_ext <<_ACEOF
21628 /* end confdefs.h. */
21629 #include <$ac_header>
21630 _ACEOF
21631 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21632 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21633 ac_status=$?
21634 grep -v '^ *+' conftest.er1 >conftest.err
21635 rm -f conftest.er1
21636 cat conftest.err >&5
21637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638 (exit $ac_status); } >/dev/null; then
21639 if test -s conftest.err; then
21640 ac_cpp_err=$ac_c_preproc_warn_flag
21641 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21642 else
21643 ac_cpp_err=
21644 fi
21645 else
21646 ac_cpp_err=yes
21647 fi
21648 if test -z "$ac_cpp_err"; then
21649 ac_header_preproc=yes
21650 else
21651 echo "$as_me: failed program was:" >&5
21652 sed 's/^/| /' conftest.$ac_ext >&5
21653
21654 ac_header_preproc=no
21655 fi
21656 rm -f conftest.err conftest.$ac_ext
21657 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21658 echo "${ECHO_T}$ac_header_preproc" >&6
21659
21660 # So? What about this header?
21661 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21662 yes:no: )
21663 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21664 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21665 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21666 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21667 ac_header_preproc=yes
21668 ;;
21669 no:yes:* )
21670 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21671 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21672 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21673 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21674 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21675 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21676 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21677 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21678 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21679 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21680 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21681 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21682 (
21683 cat <<\_ASBOX
21684 ## ------------------------------------------ ##
21685 ## Report this to the AC_PACKAGE_NAME lists. ##
21686 ## ------------------------------------------ ##
21687 _ASBOX
21688 ) |
21689 sed "s/^/$as_me: WARNING: /" >&2
21690 ;;
21691 esac
21692 echo "$as_me:$LINENO: checking for $ac_header" >&5
21693 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21694 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21695 echo $ECHO_N "(cached) $ECHO_C" >&6
21696 else
21697 eval "$as_ac_Header=\$ac_header_preproc"
21698 fi
21699 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21700 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21701
21702 fi
21703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21704 cat >>confdefs.h <<_ACEOF
21705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21706 _ACEOF
21707
21708 fi
21709
21710 done
21711
21712 echo "$as_me:$LINENO: checking types of arguments for select" >&5
21713 echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
21714 if test "${ac_cv_func_select_args+set}" = set; then
21715 echo $ECHO_N "(cached) $ECHO_C" >&6
21716 else
21717 for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
21718 for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
21719 for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
21720 cat >conftest.$ac_ext <<_ACEOF
21721 /* confdefs.h. */
21722 _ACEOF
21723 cat confdefs.h >>conftest.$ac_ext
21724 cat >>conftest.$ac_ext <<_ACEOF
21725 /* end confdefs.h. */
21726 $ac_includes_default
21727 #if HAVE_SYS_SELECT_H
21728 # include <sys/select.h>
21729 #endif
21730 #if HAVE_SYS_SOCKET_H
21731 # include <sys/socket.h>
21732 #endif
21733
21734 int
21735 main ()
21736 {
21737 extern int select ($ac_arg1,
21738 $ac_arg234, $ac_arg234, $ac_arg234,
21739 $ac_arg5);
21740 ;
21741 return 0;
21742 }
21743 _ACEOF
21744 rm -f conftest.$ac_objext
21745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21746 (eval $ac_compile) 2>conftest.er1
21747 ac_status=$?
21748 grep -v '^ *+' conftest.er1 >conftest.err
21749 rm -f conftest.er1
21750 cat conftest.err >&5
21751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21752 (exit $ac_status); } &&
21753 { ac_try='test -z "$ac_c_werror_flag"
21754 || test ! -s conftest.err'
21755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21756 (eval $ac_try) 2>&5
21757 ac_status=$?
21758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21759 (exit $ac_status); }; } &&
21760 { ac_try='test -s conftest.$ac_objext'
21761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21762 (eval $ac_try) 2>&5
21763 ac_status=$?
21764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21765 (exit $ac_status); }; }; then
21766 ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
21767 else
21768 echo "$as_me: failed program was:" >&5
21769 sed 's/^/| /' conftest.$ac_ext >&5
21770
21771 fi
21772 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21773 done
21774 done
21775 done
21776 # Provide a safe default value.
21777 : ${ac_cv_func_select_args='int,int *,struct timeval *'}
21778
21779 fi
21780 echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
21781 echo "${ECHO_T}$ac_cv_func_select_args" >&6
21782 ac_save_IFS=$IFS; IFS=','
21783 set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
21784 IFS=$ac_save_IFS
21785 shift
21786
21787 cat >>confdefs.h <<_ACEOF
21788 #define SELECT_TYPE_ARG1 $1
21789 _ACEOF
21790
21791
21792 cat >>confdefs.h <<_ACEOF
21793 #define SELECT_TYPE_ARG234 ($2)
21794 _ACEOF
21795
21796
21797 cat >>confdefs.h <<_ACEOF
21798 #define SELECT_TYPE_ARG5 ($3)
21799 _ACEOF
21800
21801 rm -f conftest*
21802
21803
21804 echo "$as_me:$LINENO: checking for lrint" >&5
21805 echo $ECHO_N "checking for lrint... $ECHO_C" >&6
21806 if test "${ac_cv_c99_lrint+set}" = set; then
21807 echo $ECHO_N "(cached) $ECHO_C" >&6
21808 else
21809
21810 lrint_save_CFLAGS=$CFLAGS
21811 CFLAGS="-lm"
21812 cat >conftest.$ac_ext <<_ACEOF
21813 /* confdefs.h. */
21814 _ACEOF
21815 cat confdefs.h >>conftest.$ac_ext
21816 cat >>conftest.$ac_ext <<_ACEOF
21817 /* end confdefs.h. */
21818
21819 #define _ISOC9X_SOURCE 1
21820 #define _ISOC99_SOURCE 1
21821 #define __USE_ISOC99 1
21822 #define __USE_ISOC9X 1
21823
21824 #include <math.h>
21825
21826 int
21827 main ()
21828 {
21829 if (!lrint(3.14159)) lrint(2.7183);
21830 ;
21831 return 0;
21832 }
21833 _ACEOF
21834 rm -f conftest.$ac_objext conftest$ac_exeext
21835 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21836 (eval $ac_link) 2>conftest.er1
21837 ac_status=$?
21838 grep -v '^ *+' conftest.er1 >conftest.err
21839 rm -f conftest.er1
21840 cat conftest.err >&5
21841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21842 (exit $ac_status); } &&
21843 { ac_try='test -z "$ac_c_werror_flag"
21844 || test ! -s conftest.err'
21845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21846 (eval $ac_try) 2>&5
21847 ac_status=$?
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); }; } &&
21850 { ac_try='test -s conftest$ac_exeext'
21851 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21852 (eval $ac_try) 2>&5
21853 ac_status=$?
21854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21855 (exit $ac_status); }; }; then
21856 ac_cv_c99_lrint=yes
21857 else
21858 echo "$as_me: failed program was:" >&5
21859 sed 's/^/| /' conftest.$ac_ext >&5
21860
21861 ac_cv_c99_lrint=no
21862 fi
21863 rm -f conftest.err conftest.$ac_objext \
21864 conftest$ac_exeext conftest.$ac_ext
21865
21866 CFLAGS=$lrint_save_CFLAGS
21867
21868
21869 fi
21870 echo "$as_me:$LINENO: result: $ac_cv_c99_lrint" >&5
21871 echo "${ECHO_T}$ac_cv_c99_lrint" >&6
21872
21873 if test "$ac_cv_c99_lrint" = yes; then
21874
21875 cat >>confdefs.h <<\_ACEOF
21876 #define HAVE_LRINT 1
21877 _ACEOF
21878
21879 fi
21880
21881 echo "$as_me:$LINENO: checking for lrintf" >&5
21882 echo $ECHO_N "checking for lrintf... $ECHO_C" >&6
21883 if test "${ac_cv_c99_lrintf+set}" = set; then
21884 echo $ECHO_N "(cached) $ECHO_C" >&6
21885 else
21886
21887 lrintf_save_CFLAGS=$CFLAGS
21888 CFLAGS="-lm"
21889 cat >conftest.$ac_ext <<_ACEOF
21890 /* confdefs.h. */
21891 _ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h. */
21895
21896 #define _ISOC9X_SOURCE 1
21897 #define _ISOC99_SOURCE 1
21898 #define __USE_ISOC99 1
21899 #define __USE_ISOC9X 1
21900
21901 #include <math.h>
21902
21903 int
21904 main ()
21905 {
21906 if (!lrintf(3.14159)) lrintf(2.7183);
21907 ;
21908 return 0;
21909 }
21910 _ACEOF
21911 rm -f conftest.$ac_objext conftest$ac_exeext
21912 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21913 (eval $ac_link) 2>conftest.er1
21914 ac_status=$?
21915 grep -v '^ *+' conftest.er1 >conftest.err
21916 rm -f conftest.er1
21917 cat conftest.err >&5
21918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21919 (exit $ac_status); } &&
21920 { ac_try='test -z "$ac_c_werror_flag"
21921 || test ! -s conftest.err'
21922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21923 (eval $ac_try) 2>&5
21924 ac_status=$?
21925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21926 (exit $ac_status); }; } &&
21927 { ac_try='test -s conftest$ac_exeext'
21928 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21929 (eval $ac_try) 2>&5
21930 ac_status=$?
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); }; }; then
21933 ac_cv_c99_lrintf=yes
21934 else
21935 echo "$as_me: failed program was:" >&5
21936 sed 's/^/| /' conftest.$ac_ext >&5
21937
21938 ac_cv_c99_lrintf=no
21939 fi
21940 rm -f conftest.err conftest.$ac_objext \
21941 conftest$ac_exeext conftest.$ac_ext
21942
21943 CFLAGS=$lrintf_save_CFLAGS
21944
21945
21946 fi
21947 echo "$as_me:$LINENO: result: $ac_cv_c99_lrintf" >&5
21948 echo "${ECHO_T}$ac_cv_c99_lrintf" >&6
21949
21950 if test "$ac_cv_c99_lrintf" = yes; then
21951
21952 cat >>confdefs.h <<\_ACEOF
21953 #define HAVE_LRINTF 1
21954 _ACEOF
21955
21956 fi
21957
21958 echo "$as_me:$LINENO: checking for llrint" >&5
21959 echo $ECHO_N "checking for llrint... $ECHO_C" >&6
21960 if test "${ac_cv_c99_llrint+set}" = set; then
21961 echo $ECHO_N "(cached) $ECHO_C" >&6
21962 else
21963
21964 llrint_save_CFLAGS=$CFLAGS
21965 CFLAGS="-lm"
21966 cat >conftest.$ac_ext <<_ACEOF
21967 /* confdefs.h. */
21968 _ACEOF
21969 cat confdefs.h >>conftest.$ac_ext
21970 cat >>conftest.$ac_ext <<_ACEOF
21971 /* end confdefs.h. */
21972
21973 #define ISOC9X_SOURCE 1
21974 #define _ISOC99_SOURCE 1
21975 #define __USE_ISOC99 1
21976 #define __USE_ISOC9X 1
21977
21978 #include <math.h>
21979
21980 int
21981 main ()
21982 {
21983 long long int x ; x = llrint(3.14159) ;
21984 ;
21985 return 0;
21986 }
21987 _ACEOF
21988 rm -f conftest.$ac_objext conftest$ac_exeext
21989 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21990 (eval $ac_link) 2>conftest.er1
21991 ac_status=$?
21992 grep -v '^ *+' conftest.er1 >conftest.err
21993 rm -f conftest.er1
21994 cat conftest.err >&5
21995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21996 (exit $ac_status); } &&
21997 { ac_try='test -z "$ac_c_werror_flag"
21998 || test ! -s conftest.err'
21999 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22000 (eval $ac_try) 2>&5
22001 ac_status=$?
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); }; } &&
22004 { ac_try='test -s conftest$ac_exeext'
22005 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22006 (eval $ac_try) 2>&5
22007 ac_status=$?
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); }; }; then
22010 ac_cv_c99_llrint=yes
22011 else
22012 echo "$as_me: failed program was:" >&5
22013 sed 's/^/| /' conftest.$ac_ext >&5
22014
22015 ac_cv_c99_llrint=no
22016 fi
22017 rm -f conftest.err conftest.$ac_objext \
22018 conftest$ac_exeext conftest.$ac_ext
22019
22020 CFLAGS=$llrint_save_CFLAGS
22021
22022
22023 fi
22024 echo "$as_me:$LINENO: result: $ac_cv_c99_llrint" >&5
22025 echo "${ECHO_T}$ac_cv_c99_llrint" >&6
22026
22027 if test "$ac_cv_c99_llrint" = yes; then
22028
22029 cat >>confdefs.h <<\_ACEOF
22030 #define HAVE_LLRINT 1
22031 _ACEOF
22032
22033 fi
22034
22035 echo "$as_me:$LINENO: checking for llrintf" >&5
22036 echo $ECHO_N "checking for llrintf... $ECHO_C" >&6
22037 if test "${ac_cv_c99_llrintf+set}" = set; then
22038 echo $ECHO_N "(cached) $ECHO_C" >&6
22039 else
22040
22041 llrintf_save_CFLAGS=$CFLAGS
22042 CFLAGS="-lm"
22043 cat >conftest.$ac_ext <<_ACEOF
22044 /* confdefs.h. */
22045 _ACEOF
22046 cat confdefs.h >>conftest.$ac_ext
22047 cat >>conftest.$ac_ext <<_ACEOF
22048 /* end confdefs.h. */
22049
22050 #define _ISOC9X_SOURCE 1
22051 #define _ISOC99_SOURCE 1
22052 #define __USE_ISOC99 1
22053 #define __USE_ISOC9X 1
22054
22055 #include <math.h>
22056
22057 int
22058 main ()
22059 {
22060 long long int x ; x = llrintf(3.14159) ;
22061 ;
22062 return 0;
22063 }
22064 _ACEOF
22065 rm -f conftest.$ac_objext conftest$ac_exeext
22066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22067 (eval $ac_link) 2>conftest.er1
22068 ac_status=$?
22069 grep -v '^ *+' conftest.er1 >conftest.err
22070 rm -f conftest.er1
22071 cat conftest.err >&5
22072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22073 (exit $ac_status); } &&
22074 { ac_try='test -z "$ac_c_werror_flag"
22075 || test ! -s conftest.err'
22076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22077 (eval $ac_try) 2>&5
22078 ac_status=$?
22079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22080 (exit $ac_status); }; } &&
22081 { ac_try='test -s conftest$ac_exeext'
22082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22083 (eval $ac_try) 2>&5
22084 ac_status=$?
22085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22086 (exit $ac_status); }; }; then
22087 ac_cv_c99_llrintf=yes
22088 else
22089 echo "$as_me: failed program was:" >&5
22090 sed 's/^/| /' conftest.$ac_ext >&5
22091
22092 ac_cv_c99_llrintf=no
22093 fi
22094 rm -f conftest.err conftest.$ac_objext \
22095 conftest$ac_exeext conftest.$ac_ext
22096
22097 CFLAGS=$llrintf_save_CFLAGS
22098
22099
22100 fi
22101 echo "$as_me:$LINENO: result: $ac_cv_c99_llrintf" >&5
22102 echo "${ECHO_T}$ac_cv_c99_llrintf" >&6
22103
22104 if test "$ac_cv_c99_llrintf" = yes; then
22105
22106 cat >>confdefs.h <<\_ACEOF
22107 #define HAVE_LLRINTF 1
22108 _ACEOF
22109
22110 fi
22111
22112
22113 if test "x$ac_cv_c99_lrint" = "xno" ; then
22114 if test "x$ac_cv_c99_lrintf" = "xno" ; then
22115 { echo "$as_me:$LINENO: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&5
22116 echo "$as_me: WARNING: *** Missing C99 standard functions lrint() and lrintf()." >&2;}
22117 { echo "$as_me:$LINENO: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&5
22118 echo "$as_me: WARNING: *** This may cause benign compiler warnings on some systems (ie Solaris)." >&2;}
22119 fi
22120 fi
22121
22122 echo "$as_me:$LINENO: checking if have C99 struct flexible array support" >&5
22123 echo $ECHO_N "checking if have C99 struct flexible array support... $ECHO_C" >&6
22124 if test "${ac_cv_c99_flexible_array+set}" = set; then
22125 echo $ECHO_N "(cached) $ECHO_C" >&6
22126 else
22127 # Initialize to unknown
22128 ac_cv_c99_flexible_array=no
22129
22130 cat >conftest.$ac_ext <<_ACEOF
22131 /* confdefs.h. */
22132 _ACEOF
22133 cat confdefs.h >>conftest.$ac_ext
22134 cat >>conftest.$ac_ext <<_ACEOF
22135 /* end confdefs.h. */
22136
22137 #include <stdlib.h>
22138
22139 typedef struct {
22140 int k;
22141 char buffer [] ;
22142 } MY_STRUCT ;
22143
22144 int
22145 main ()
22146 {
22147 MY_STRUCT *p = calloc (1, sizeof (MY_STRUCT) + 42);
22148 ;
22149 return 0;
22150 }
22151 _ACEOF
22152 rm -f conftest.$ac_objext conftest$ac_exeext
22153 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22154 (eval $ac_link) 2>conftest.er1
22155 ac_status=$?
22156 grep -v '^ *+' conftest.er1 >conftest.err
22157 rm -f conftest.er1
22158 cat conftest.err >&5
22159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22160 (exit $ac_status); } &&
22161 { ac_try='test -z "$ac_c_werror_flag"
22162 || test ! -s conftest.err'
22163 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22164 (eval $ac_try) 2>&5
22165 ac_status=$?
22166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22167 (exit $ac_status); }; } &&
22168 { ac_try='test -s conftest$ac_exeext'
22169 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22170 (eval $ac_try) 2>&5
22171 ac_status=$?
22172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22173 (exit $ac_status); }; }; then
22174 ac_cv_c99_flexible_array=yes
22175 else
22176 echo "$as_me: failed program was:" >&5
22177 sed 's/^/| /' conftest.$ac_ext >&5
22178
22179 ac_cv_c99_flexible_array=no
22180
22181 fi
22182 rm -f conftest.err conftest.$ac_objext \
22183 conftest$ac_exeext conftest.$ac_ext
22184 fi
22185 echo "$as_me:$LINENO: result: $ac_cv_c99_flexible_array" >&5
22186 echo "${ECHO_T}$ac_cv_c99_flexible_array" >&6
22187
22188
22189
22190 for ac_func in memmove
22191 do
22192 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22193 echo "$as_me:$LINENO: checking for $ac_func" >&5
22194 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22195 if eval "test \"\${$as_ac_var+set}\" = set"; then
22196 echo $ECHO_N "(cached) $ECHO_C" >&6
22197 else
22198 cat >conftest.$ac_ext <<_ACEOF
22199 /* confdefs.h. */
22200 _ACEOF
22201 cat confdefs.h >>conftest.$ac_ext
22202 cat >>conftest.$ac_ext <<_ACEOF
22203 /* end confdefs.h. */
22204 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22205 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22206 #define $ac_func innocuous_$ac_func
22207
22208 /* System header to define __stub macros and hopefully few prototypes,
22209 which can conflict with char $ac_func (); below.
22210 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22211 <limits.h> exists even on freestanding compilers. */
22212
22213 #ifdef __STDC__
22214 # include <limits.h>
22215 #else
22216 # include <assert.h>
22217 #endif
22218
22219 #undef $ac_func
22220
22221 /* Override any gcc2 internal prototype to avoid an error. */
22222 #ifdef __cplusplus
22223 extern "C"
22224 {
22225 #endif
22226 /* We use char because int might match the return type of a gcc2
22227 builtin and then its argument prototype would still apply. */
22228 char $ac_func ();
22229 /* The GNU C library defines this for functions which it implements
22230 to always fail with ENOSYS. Some functions are actually named
22231 something starting with __ and the normal name is an alias. */
22232 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22233 choke me
22234 #else
22235 char (*f) () = $ac_func;
22236 #endif
22237 #ifdef __cplusplus
22238 }
22239 #endif
22240
22241 int
22242 main ()
22243 {
22244 return f != $ac_func;
22245 ;
22246 return 0;
22247 }
22248 _ACEOF
22249 rm -f conftest.$ac_objext conftest$ac_exeext
22250 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22251 (eval $ac_link) 2>conftest.er1
22252 ac_status=$?
22253 grep -v '^ *+' conftest.er1 >conftest.err
22254 rm -f conftest.er1
22255 cat conftest.err >&5
22256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22257 (exit $ac_status); } &&
22258 { ac_try='test -z "$ac_c_werror_flag"
22259 || test ! -s conftest.err'
22260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22261 (eval $ac_try) 2>&5
22262 ac_status=$?
22263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22264 (exit $ac_status); }; } &&
22265 { ac_try='test -s conftest$ac_exeext'
22266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22267 (eval $ac_try) 2>&5
22268 ac_status=$?
22269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22270 (exit $ac_status); }; }; then
22271 eval "$as_ac_var=yes"
22272 else
22273 echo "$as_me: failed program was:" >&5
22274 sed 's/^/| /' conftest.$ac_ext >&5
22275
22276 eval "$as_ac_var=no"
22277 fi
22278 rm -f conftest.err conftest.$ac_objext \
22279 conftest$ac_exeext conftest.$ac_ext
22280 fi
22281 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22282 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22283 if test `eval echo '${'$as_ac_var'}'` = yes; then
22284 cat >>confdefs.h <<_ACEOF
22285 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22286 _ACEOF
22287
22288 fi
22289 done
22290
22291
22292 for ac_func in memset
22293 do
22294 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22295 echo "$as_me:$LINENO: checking for $ac_func" >&5
22296 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22297 if eval "test \"\${$as_ac_var+set}\" = set"; then
22298 echo $ECHO_N "(cached) $ECHO_C" >&6
22299 else
22300 cat >conftest.$ac_ext <<_ACEOF
22301 /* confdefs.h. */
22302 _ACEOF
22303 cat confdefs.h >>conftest.$ac_ext
22304 cat >>conftest.$ac_ext <<_ACEOF
22305 /* end confdefs.h. */
22306 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22307 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22308 #define $ac_func innocuous_$ac_func
22309
22310 /* System header to define __stub macros and hopefully few prototypes,
22311 which can conflict with char $ac_func (); below.
22312 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22313 <limits.h> exists even on freestanding compilers. */
22314
22315 #ifdef __STDC__
22316 # include <limits.h>
22317 #else
22318 # include <assert.h>
22319 #endif
22320
22321 #undef $ac_func
22322
22323 /* Override any gcc2 internal prototype to avoid an error. */
22324 #ifdef __cplusplus
22325 extern "C"
22326 {
22327 #endif
22328 /* We use char because int might match the return type of a gcc2
22329 builtin and then its argument prototype would still apply. */
22330 char $ac_func ();
22331 /* The GNU C library defines this for functions which it implements
22332 to always fail with ENOSYS. Some functions are actually named
22333 something starting with __ and the normal name is an alias. */
22334 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22335 choke me
22336 #else
22337 char (*f) () = $ac_func;
22338 #endif
22339 #ifdef __cplusplus
22340 }
22341 #endif
22342
22343 int
22344 main ()
22345 {
22346 return f != $ac_func;
22347 ;
22348 return 0;
22349 }
22350 _ACEOF
22351 rm -f conftest.$ac_objext conftest$ac_exeext
22352 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22353 (eval $ac_link) 2>conftest.er1
22354 ac_status=$?
22355 grep -v '^ *+' conftest.er1 >conftest.err
22356 rm -f conftest.er1
22357 cat conftest.err >&5
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); } &&
22360 { ac_try='test -z "$ac_c_werror_flag"
22361 || test ! -s conftest.err'
22362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22363 (eval $ac_try) 2>&5
22364 ac_status=$?
22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22366 (exit $ac_status); }; } &&
22367 { ac_try='test -s conftest$ac_exeext'
22368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22369 (eval $ac_try) 2>&5
22370 ac_status=$?
22371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22372 (exit $ac_status); }; }; then
22373 eval "$as_ac_var=yes"
22374 else
22375 echo "$as_me: failed program was:" >&5
22376 sed 's/^/| /' conftest.$ac_ext >&5
22377
22378 eval "$as_ac_var=no"
22379 fi
22380 rm -f conftest.err conftest.$ac_objext \
22381 conftest$ac_exeext conftest.$ac_ext
22382 fi
22383 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22384 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22385 if test `eval echo '${'$as_ac_var'}'` = yes; then
22386 cat >>confdefs.h <<_ACEOF
22387 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22388 _ACEOF
22389
22390 fi
22391 done
22392
22393
22394 for ac_func in select
22395 do
22396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22397 echo "$as_me:$LINENO: checking for $ac_func" >&5
22398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22399 if eval "test \"\${$as_ac_var+set}\" = set"; then
22400 echo $ECHO_N "(cached) $ECHO_C" >&6
22401 else
22402 cat >conftest.$ac_ext <<_ACEOF
22403 /* confdefs.h. */
22404 _ACEOF
22405 cat confdefs.h >>conftest.$ac_ext
22406 cat >>conftest.$ac_ext <<_ACEOF
22407 /* end confdefs.h. */
22408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22410 #define $ac_func innocuous_$ac_func
22411
22412 /* System header to define __stub macros and hopefully few prototypes,
22413 which can conflict with char $ac_func (); below.
22414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22415 <limits.h> exists even on freestanding compilers. */
22416
22417 #ifdef __STDC__
22418 # include <limits.h>
22419 #else
22420 # include <assert.h>
22421 #endif
22422
22423 #undef $ac_func
22424
22425 /* Override any gcc2 internal prototype to avoid an error. */
22426 #ifdef __cplusplus
22427 extern "C"
22428 {
22429 #endif
22430 /* We use char because int might match the return type of a gcc2
22431 builtin and then its argument prototype would still apply. */
22432 char $ac_func ();
22433 /* The GNU C library defines this for functions which it implements
22434 to always fail with ENOSYS. Some functions are actually named
22435 something starting with __ and the normal name is an alias. */
22436 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22437 choke me
22438 #else
22439 char (*f) () = $ac_func;
22440 #endif
22441 #ifdef __cplusplus
22442 }
22443 #endif
22444
22445 int
22446 main ()
22447 {
22448 return f != $ac_func;
22449 ;
22450 return 0;
22451 }
22452 _ACEOF
22453 rm -f conftest.$ac_objext conftest$ac_exeext
22454 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22455 (eval $ac_link) 2>conftest.er1
22456 ac_status=$?
22457 grep -v '^ *+' conftest.er1 >conftest.err
22458 rm -f conftest.er1
22459 cat conftest.err >&5
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); } &&
22462 { ac_try='test -z "$ac_c_werror_flag"
22463 || test ! -s conftest.err'
22464 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22465 (eval $ac_try) 2>&5
22466 ac_status=$?
22467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22468 (exit $ac_status); }; } &&
22469 { ac_try='test -s conftest$ac_exeext'
22470 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22471 (eval $ac_try) 2>&5
22472 ac_status=$?
22473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22474 (exit $ac_status); }; }; then
22475 eval "$as_ac_var=yes"
22476 else
22477 echo "$as_me: failed program was:" >&5
22478 sed 's/^/| /' conftest.$ac_ext >&5
22479
22480 eval "$as_ac_var=no"
22481 fi
22482 rm -f conftest.err conftest.$ac_objext \
22483 conftest$ac_exeext conftest.$ac_ext
22484 fi
22485 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22486 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22487 if test `eval echo '${'$as_ac_var'}'` = yes; then
22488 cat >>confdefs.h <<_ACEOF
22489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22490 _ACEOF
22491
22492 fi
22493 done
22494
22495
22496 for ac_func in strcasecmp
22497 do
22498 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22499 echo "$as_me:$LINENO: checking for $ac_func" >&5
22500 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22501 if eval "test \"\${$as_ac_var+set}\" = set"; then
22502 echo $ECHO_N "(cached) $ECHO_C" >&6
22503 else
22504 cat >conftest.$ac_ext <<_ACEOF
22505 /* confdefs.h. */
22506 _ACEOF
22507 cat confdefs.h >>conftest.$ac_ext
22508 cat >>conftest.$ac_ext <<_ACEOF
22509 /* end confdefs.h. */
22510 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22511 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22512 #define $ac_func innocuous_$ac_func
22513
22514 /* System header to define __stub macros and hopefully few prototypes,
22515 which can conflict with char $ac_func (); below.
22516 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22517 <limits.h> exists even on freestanding compilers. */
22518
22519 #ifdef __STDC__
22520 # include <limits.h>
22521 #else
22522 # include <assert.h>
22523 #endif
22524
22525 #undef $ac_func
22526
22527 /* Override any gcc2 internal prototype to avoid an error. */
22528 #ifdef __cplusplus
22529 extern "C"
22530 {
22531 #endif
22532 /* We use char because int might match the return type of a gcc2
22533 builtin and then its argument prototype would still apply. */
22534 char $ac_func ();
22535 /* The GNU C library defines this for functions which it implements
22536 to always fail with ENOSYS. Some functions are actually named
22537 something starting with __ and the normal name is an alias. */
22538 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22539 choke me
22540 #else
22541 char (*f) () = $ac_func;
22542 #endif
22543 #ifdef __cplusplus
22544 }
22545 #endif
22546
22547 int
22548 main ()
22549 {
22550 return f != $ac_func;
22551 ;
22552 return 0;
22553 }
22554 _ACEOF
22555 rm -f conftest.$ac_objext conftest$ac_exeext
22556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22557 (eval $ac_link) 2>conftest.er1
22558 ac_status=$?
22559 grep -v '^ *+' conftest.er1 >conftest.err
22560 rm -f conftest.er1
22561 cat conftest.err >&5
22562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22563 (exit $ac_status); } &&
22564 { ac_try='test -z "$ac_c_werror_flag"
22565 || test ! -s conftest.err'
22566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22567 (eval $ac_try) 2>&5
22568 ac_status=$?
22569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22570 (exit $ac_status); }; } &&
22571 { ac_try='test -s conftest$ac_exeext'
22572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22573 (eval $ac_try) 2>&5
22574 ac_status=$?
22575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22576 (exit $ac_status); }; }; then
22577 eval "$as_ac_var=yes"
22578 else
22579 echo "$as_me: failed program was:" >&5
22580 sed 's/^/| /' conftest.$ac_ext >&5
22581
22582 eval "$as_ac_var=no"
22583 fi
22584 rm -f conftest.err conftest.$ac_objext \
22585 conftest$ac_exeext conftest.$ac_ext
22586 fi
22587 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22588 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22589 if test `eval echo '${'$as_ac_var'}'` = yes; then
22590 cat >>confdefs.h <<_ACEOF
22591 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22592 _ACEOF
22593
22594 fi
22595 done
22596
22597
22598 for ac_func in strchr
22599 do
22600 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22601 echo "$as_me:$LINENO: checking for $ac_func" >&5
22602 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22603 if eval "test \"\${$as_ac_var+set}\" = set"; then
22604 echo $ECHO_N "(cached) $ECHO_C" >&6
22605 else
22606 cat >conftest.$ac_ext <<_ACEOF
22607 /* confdefs.h. */
22608 _ACEOF
22609 cat confdefs.h >>conftest.$ac_ext
22610 cat >>conftest.$ac_ext <<_ACEOF
22611 /* end confdefs.h. */
22612 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22613 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22614 #define $ac_func innocuous_$ac_func
22615
22616 /* System header to define __stub macros and hopefully few prototypes,
22617 which can conflict with char $ac_func (); below.
22618 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22619 <limits.h> exists even on freestanding compilers. */
22620
22621 #ifdef __STDC__
22622 # include <limits.h>
22623 #else
22624 # include <assert.h>
22625 #endif
22626
22627 #undef $ac_func
22628
22629 /* Override any gcc2 internal prototype to avoid an error. */
22630 #ifdef __cplusplus
22631 extern "C"
22632 {
22633 #endif
22634 /* We use char because int might match the return type of a gcc2
22635 builtin and then its argument prototype would still apply. */
22636 char $ac_func ();
22637 /* The GNU C library defines this for functions which it implements
22638 to always fail with ENOSYS. Some functions are actually named
22639 something starting with __ and the normal name is an alias. */
22640 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22641 choke me
22642 #else
22643 char (*f) () = $ac_func;
22644 #endif
22645 #ifdef __cplusplus
22646 }
22647 #endif
22648
22649 int
22650 main ()
22651 {
22652 return f != $ac_func;
22653 ;
22654 return 0;
22655 }
22656 _ACEOF
22657 rm -f conftest.$ac_objext conftest$ac_exeext
22658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22659 (eval $ac_link) 2>conftest.er1
22660 ac_status=$?
22661 grep -v '^ *+' conftest.er1 >conftest.err
22662 rm -f conftest.er1
22663 cat conftest.err >&5
22664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22665 (exit $ac_status); } &&
22666 { ac_try='test -z "$ac_c_werror_flag"
22667 || test ! -s conftest.err'
22668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22669 (eval $ac_try) 2>&5
22670 ac_status=$?
22671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); }; } &&
22673 { ac_try='test -s conftest$ac_exeext'
22674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22675 (eval $ac_try) 2>&5
22676 ac_status=$?
22677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22678 (exit $ac_status); }; }; then
22679 eval "$as_ac_var=yes"
22680 else
22681 echo "$as_me: failed program was:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22683
22684 eval "$as_ac_var=no"
22685 fi
22686 rm -f conftest.err conftest.$ac_objext \
22687 conftest$ac_exeext conftest.$ac_ext
22688 fi
22689 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22690 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22691 if test `eval echo '${'$as_ac_var'}'` = yes; then
22692 cat >>confdefs.h <<_ACEOF
22693 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22694 _ACEOF
22695
22696 fi
22697 done
22698
22699
22700 for ac_func in strdup
22701 do
22702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22703 echo "$as_me:$LINENO: checking for $ac_func" >&5
22704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22705 if eval "test \"\${$as_ac_var+set}\" = set"; then
22706 echo $ECHO_N "(cached) $ECHO_C" >&6
22707 else
22708 cat >conftest.$ac_ext <<_ACEOF
22709 /* confdefs.h. */
22710 _ACEOF
22711 cat confdefs.h >>conftest.$ac_ext
22712 cat >>conftest.$ac_ext <<_ACEOF
22713 /* end confdefs.h. */
22714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22716 #define $ac_func innocuous_$ac_func
22717
22718 /* System header to define __stub macros and hopefully few prototypes,
22719 which can conflict with char $ac_func (); below.
22720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22721 <limits.h> exists even on freestanding compilers. */
22722
22723 #ifdef __STDC__
22724 # include <limits.h>
22725 #else
22726 # include <assert.h>
22727 #endif
22728
22729 #undef $ac_func
22730
22731 /* Override any gcc2 internal prototype to avoid an error. */
22732 #ifdef __cplusplus
22733 extern "C"
22734 {
22735 #endif
22736 /* We use char because int might match the return type of a gcc2
22737 builtin and then its argument prototype would still apply. */
22738 char $ac_func ();
22739 /* The GNU C library defines this for functions which it implements
22740 to always fail with ENOSYS. Some functions are actually named
22741 something starting with __ and the normal name is an alias. */
22742 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22743 choke me
22744 #else
22745 char (*f) () = $ac_func;
22746 #endif
22747 #ifdef __cplusplus
22748 }
22749 #endif
22750
22751 int
22752 main ()
22753 {
22754 return f != $ac_func;
22755 ;
22756 return 0;
22757 }
22758 _ACEOF
22759 rm -f conftest.$ac_objext conftest$ac_exeext
22760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22761 (eval $ac_link) 2>conftest.er1
22762 ac_status=$?
22763 grep -v '^ *+' conftest.er1 >conftest.err
22764 rm -f conftest.er1
22765 cat conftest.err >&5
22766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22767 (exit $ac_status); } &&
22768 { ac_try='test -z "$ac_c_werror_flag"
22769 || test ! -s conftest.err'
22770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22771 (eval $ac_try) 2>&5
22772 ac_status=$?
22773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22774 (exit $ac_status); }; } &&
22775 { ac_try='test -s conftest$ac_exeext'
22776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22777 (eval $ac_try) 2>&5
22778 ac_status=$?
22779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22780 (exit $ac_status); }; }; then
22781 eval "$as_ac_var=yes"
22782 else
22783 echo "$as_me: failed program was:" >&5
22784 sed 's/^/| /' conftest.$ac_ext >&5
22785
22786 eval "$as_ac_var=no"
22787 fi
22788 rm -f conftest.err conftest.$ac_objext \
22789 conftest$ac_exeext conftest.$ac_ext
22790 fi
22791 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22792 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22793 if test `eval echo '${'$as_ac_var'}'` = yes; then
22794 cat >>confdefs.h <<_ACEOF
22795 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22796 _ACEOF
22797
22798 fi
22799 done
22800
22801
22802 for ac_func in strerror
22803 do
22804 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22805 echo "$as_me:$LINENO: checking for $ac_func" >&5
22806 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22807 if eval "test \"\${$as_ac_var+set}\" = set"; then
22808 echo $ECHO_N "(cached) $ECHO_C" >&6
22809 else
22810 cat >conftest.$ac_ext <<_ACEOF
22811 /* confdefs.h. */
22812 _ACEOF
22813 cat confdefs.h >>conftest.$ac_ext
22814 cat >>conftest.$ac_ext <<_ACEOF
22815 /* end confdefs.h. */
22816 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22817 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22818 #define $ac_func innocuous_$ac_func
22819
22820 /* System header to define __stub macros and hopefully few prototypes,
22821 which can conflict with char $ac_func (); below.
22822 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22823 <limits.h> exists even on freestanding compilers. */
22824
22825 #ifdef __STDC__
22826 # include <limits.h>
22827 #else
22828 # include <assert.h>
22829 #endif
22830
22831 #undef $ac_func
22832
22833 /* Override any gcc2 internal prototype to avoid an error. */
22834 #ifdef __cplusplus
22835 extern "C"
22836 {
22837 #endif
22838 /* We use char because int might match the return type of a gcc2
22839 builtin and then its argument prototype would still apply. */
22840 char $ac_func ();
22841 /* The GNU C library defines this for functions which it implements
22842 to always fail with ENOSYS. Some functions are actually named
22843 something starting with __ and the normal name is an alias. */
22844 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22845 choke me
22846 #else
22847 char (*f) () = $ac_func;
22848 #endif
22849 #ifdef __cplusplus
22850 }
22851 #endif
22852
22853 int
22854 main ()
22855 {
22856 return f != $ac_func;
22857 ;
22858 return 0;
22859 }
22860 _ACEOF
22861 rm -f conftest.$ac_objext conftest$ac_exeext
22862 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22863 (eval $ac_link) 2>conftest.er1
22864 ac_status=$?
22865 grep -v '^ *+' conftest.er1 >conftest.err
22866 rm -f conftest.er1
22867 cat conftest.err >&5
22868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22869 (exit $ac_status); } &&
22870 { ac_try='test -z "$ac_c_werror_flag"
22871 || test ! -s conftest.err'
22872 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22873 (eval $ac_try) 2>&5
22874 ac_status=$?
22875 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22876 (exit $ac_status); }; } &&
22877 { ac_try='test -s conftest$ac_exeext'
22878 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22879 (eval $ac_try) 2>&5
22880 ac_status=$?
22881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22882 (exit $ac_status); }; }; then
22883 eval "$as_ac_var=yes"
22884 else
22885 echo "$as_me: failed program was:" >&5
22886 sed 's/^/| /' conftest.$ac_ext >&5
22887
22888 eval "$as_ac_var=no"
22889 fi
22890 rm -f conftest.err conftest.$ac_objext \
22891 conftest$ac_exeext conftest.$ac_ext
22892 fi
22893 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22894 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22895 if test `eval echo '${'$as_ac_var'}'` = yes; then
22896 cat >>confdefs.h <<_ACEOF
22897 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22898 _ACEOF
22899
22900 fi
22901 done
22902
22903
22904 for ac_func in strstr
22905 do
22906 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22907 echo "$as_me:$LINENO: checking for $ac_func" >&5
22908 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
22909 if eval "test \"\${$as_ac_var+set}\" = set"; then
22910 echo $ECHO_N "(cached) $ECHO_C" >&6
22911 else
22912 cat >conftest.$ac_ext <<_ACEOF
22913 /* confdefs.h. */
22914 _ACEOF
22915 cat confdefs.h >>conftest.$ac_ext
22916 cat >>conftest.$ac_ext <<_ACEOF
22917 /* end confdefs.h. */
22918 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22920 #define $ac_func innocuous_$ac_func
22921
22922 /* System header to define __stub macros and hopefully few prototypes,
22923 which can conflict with char $ac_func (); below.
22924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22925 <limits.h> exists even on freestanding compilers. */
22926
22927 #ifdef __STDC__
22928 # include <limits.h>
22929 #else
22930 # include <assert.h>
22931 #endif
22932
22933 #undef $ac_func
22934
22935 /* Override any gcc2 internal prototype to avoid an error. */
22936 #ifdef __cplusplus
22937 extern "C"
22938 {
22939 #endif
22940 /* We use char because int might match the return type of a gcc2
22941 builtin and then its argument prototype would still apply. */
22942 char $ac_func ();
22943 /* The GNU C library defines this for functions which it implements
22944 to always fail with ENOSYS. Some functions are actually named
22945 something starting with __ and the normal name is an alias. */
22946 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
22947 choke me
22948 #else
22949 char (*f) () = $ac_func;
22950 #endif
22951 #ifdef __cplusplus
22952 }
22953 #endif
22954
22955 int
22956 main ()
22957 {
22958 return f != $ac_func;
22959 ;
22960 return 0;
22961 }
22962 _ACEOF
22963 rm -f conftest.$ac_objext conftest$ac_exeext
22964 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22965 (eval $ac_link) 2>conftest.er1
22966 ac_status=$?
22967 grep -v '^ *+' conftest.er1 >conftest.err
22968 rm -f conftest.er1
22969 cat conftest.err >&5
22970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22971 (exit $ac_status); } &&
22972 { ac_try='test -z "$ac_c_werror_flag"
22973 || test ! -s conftest.err'
22974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22975 (eval $ac_try) 2>&5
22976 ac_status=$?
22977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22978 (exit $ac_status); }; } &&
22979 { ac_try='test -s conftest$ac_exeext'
22980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22981 (eval $ac_try) 2>&5
22982 ac_status=$?
22983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984 (exit $ac_status); }; }; then
22985 eval "$as_ac_var=yes"
22986 else
22987 echo "$as_me: failed program was:" >&5
22988 sed 's/^/| /' conftest.$ac_ext >&5
22989
22990 eval "$as_ac_var=no"
22991 fi
22992 rm -f conftest.err conftest.$ac_objext \
22993 conftest$ac_exeext conftest.$ac_ext
22994 fi
22995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
22996 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
22997 if test `eval echo '${'$as_ac_var'}'` = yes; then
22998 cat >>confdefs.h <<_ACEOF
22999 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23000 _ACEOF
23001
23002 fi
23003 done
23004
23005
23006 for ac_func in strtol
23007 do
23008 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23009 echo "$as_me:$LINENO: checking for $ac_func" >&5
23010 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23011 if eval "test \"\${$as_ac_var+set}\" = set"; then
23012 echo $ECHO_N "(cached) $ECHO_C" >&6
23013 else
23014 cat >conftest.$ac_ext <<_ACEOF
23015 /* confdefs.h. */
23016 _ACEOF
23017 cat confdefs.h >>conftest.$ac_ext
23018 cat >>conftest.$ac_ext <<_ACEOF
23019 /* end confdefs.h. */
23020 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23021 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23022 #define $ac_func innocuous_$ac_func
23023
23024 /* System header to define __stub macros and hopefully few prototypes,
23025 which can conflict with char $ac_func (); below.
23026 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23027 <limits.h> exists even on freestanding compilers. */
23028
23029 #ifdef __STDC__
23030 # include <limits.h>
23031 #else
23032 # include <assert.h>
23033 #endif
23034
23035 #undef $ac_func
23036
23037 /* Override any gcc2 internal prototype to avoid an error. */
23038 #ifdef __cplusplus
23039 extern "C"
23040 {
23041 #endif
23042 /* We use char because int might match the return type of a gcc2
23043 builtin and then its argument prototype would still apply. */
23044 char $ac_func ();
23045 /* The GNU C library defines this for functions which it implements
23046 to always fail with ENOSYS. Some functions are actually named
23047 something starting with __ and the normal name is an alias. */
23048 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23049 choke me
23050 #else
23051 char (*f) () = $ac_func;
23052 #endif
23053 #ifdef __cplusplus
23054 }
23055 #endif
23056
23057 int
23058 main ()
23059 {
23060 return f != $ac_func;
23061 ;
23062 return 0;
23063 }
23064 _ACEOF
23065 rm -f conftest.$ac_objext conftest$ac_exeext
23066 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23067 (eval $ac_link) 2>conftest.er1
23068 ac_status=$?
23069 grep -v '^ *+' conftest.er1 >conftest.err
23070 rm -f conftest.er1
23071 cat conftest.err >&5
23072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); } &&
23074 { ac_try='test -z "$ac_c_werror_flag"
23075 || test ! -s conftest.err'
23076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23077 (eval $ac_try) 2>&5
23078 ac_status=$?
23079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23080 (exit $ac_status); }; } &&
23081 { ac_try='test -s conftest$ac_exeext'
23082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23083 (eval $ac_try) 2>&5
23084 ac_status=$?
23085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); }; }; then
23087 eval "$as_ac_var=yes"
23088 else
23089 echo "$as_me: failed program was:" >&5
23090 sed 's/^/| /' conftest.$ac_ext >&5
23091
23092 eval "$as_ac_var=no"
23093 fi
23094 rm -f conftest.err conftest.$ac_objext \
23095 conftest$ac_exeext conftest.$ac_ext
23096 fi
23097 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23098 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23099 if test `eval echo '${'$as_ac_var'}'` = yes; then
23100 cat >>confdefs.h <<_ACEOF
23101 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23102 _ACEOF
23103
23104 fi
23105 done
23106
23107
23108 for ac_func in gettimeofday
23109 do
23110 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23111 echo "$as_me:$LINENO: checking for $ac_func" >&5
23112 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23113 if eval "test \"\${$as_ac_var+set}\" = set"; then
23114 echo $ECHO_N "(cached) $ECHO_C" >&6
23115 else
23116 cat >conftest.$ac_ext <<_ACEOF
23117 /* confdefs.h. */
23118 _ACEOF
23119 cat confdefs.h >>conftest.$ac_ext
23120 cat >>conftest.$ac_ext <<_ACEOF
23121 /* end confdefs.h. */
23122 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23123 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23124 #define $ac_func innocuous_$ac_func
23125
23126 /* System header to define __stub macros and hopefully few prototypes,
23127 which can conflict with char $ac_func (); below.
23128 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23129 <limits.h> exists even on freestanding compilers. */
23130
23131 #ifdef __STDC__
23132 # include <limits.h>
23133 #else
23134 # include <assert.h>
23135 #endif
23136
23137 #undef $ac_func
23138
23139 /* Override any gcc2 internal prototype to avoid an error. */
23140 #ifdef __cplusplus
23141 extern "C"
23142 {
23143 #endif
23144 /* We use char because int might match the return type of a gcc2
23145 builtin and then its argument prototype would still apply. */
23146 char $ac_func ();
23147 /* The GNU C library defines this for functions which it implements
23148 to always fail with ENOSYS. Some functions are actually named
23149 something starting with __ and the normal name is an alias. */
23150 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23151 choke me
23152 #else
23153 char (*f) () = $ac_func;
23154 #endif
23155 #ifdef __cplusplus
23156 }
23157 #endif
23158
23159 int
23160 main ()
23161 {
23162 return f != $ac_func;
23163 ;
23164 return 0;
23165 }
23166 _ACEOF
23167 rm -f conftest.$ac_objext conftest$ac_exeext
23168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23169 (eval $ac_link) 2>conftest.er1
23170 ac_status=$?
23171 grep -v '^ *+' conftest.er1 >conftest.err
23172 rm -f conftest.er1
23173 cat conftest.err >&5
23174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23175 (exit $ac_status); } &&
23176 { ac_try='test -z "$ac_c_werror_flag"
23177 || test ! -s conftest.err'
23178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23179 (eval $ac_try) 2>&5
23180 ac_status=$?
23181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23182 (exit $ac_status); }; } &&
23183 { ac_try='test -s conftest$ac_exeext'
23184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23185 (eval $ac_try) 2>&5
23186 ac_status=$?
23187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); }; }; then
23189 eval "$as_ac_var=yes"
23190 else
23191 echo "$as_me: failed program was:" >&5
23192 sed 's/^/| /' conftest.$ac_ext >&5
23193
23194 eval "$as_ac_var=no"
23195 fi
23196 rm -f conftest.err conftest.$ac_objext \
23197 conftest$ac_exeext conftest.$ac_ext
23198 fi
23199 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23200 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23201 if test `eval echo '${'$as_ac_var'}'` = yes; then
23202 cat >>confdefs.h <<_ACEOF
23203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23204 _ACEOF
23205
23206 fi
23207 done
23208
23209
23210 for ac_func in drand48
23211 do
23212 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23213 echo "$as_me:$LINENO: checking for $ac_func" >&5
23214 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
23215 if eval "test \"\${$as_ac_var+set}\" = set"; then
23216 echo $ECHO_N "(cached) $ECHO_C" >&6
23217 else
23218 cat >conftest.$ac_ext <<_ACEOF
23219 /* confdefs.h. */
23220 _ACEOF
23221 cat confdefs.h >>conftest.$ac_ext
23222 cat >>conftest.$ac_ext <<_ACEOF
23223 /* end confdefs.h. */
23224 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23225 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23226 #define $ac_func innocuous_$ac_func
23227
23228 /* System header to define __stub macros and hopefully few prototypes,
23229 which can conflict with char $ac_func (); below.
23230 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23231 <limits.h> exists even on freestanding compilers. */
23232
23233 #ifdef __STDC__
23234 # include <limits.h>
23235 #else
23236 # include <assert.h>
23237 #endif
23238
23239 #undef $ac_func
23240
23241 /* Override any gcc2 internal prototype to avoid an error. */
23242 #ifdef __cplusplus
23243 extern "C"
23244 {
23245 #endif
23246 /* We use char because int might match the return type of a gcc2
23247 builtin and then its argument prototype would still apply. */
23248 char $ac_func ();
23249 /* The GNU C library defines this for functions which it implements
23250 to always fail with ENOSYS. Some functions are actually named
23251 something starting with __ and the normal name is an alias. */
23252 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
23253 choke me
23254 #else
23255 char (*f) () = $ac_func;
23256 #endif
23257 #ifdef __cplusplus
23258 }
23259 #endif
23260
23261 int
23262 main ()
23263 {
23264 return f != $ac_func;
23265 ;
23266 return 0;
23267 }
23268 _ACEOF
23269 rm -f conftest.$ac_objext conftest$ac_exeext
23270 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23271 (eval $ac_link) 2>conftest.er1
23272 ac_status=$?
23273 grep -v '^ *+' conftest.er1 >conftest.err
23274 rm -f conftest.er1
23275 cat conftest.err >&5
23276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23277 (exit $ac_status); } &&
23278 { ac_try='test -z "$ac_c_werror_flag"
23279 || test ! -s conftest.err'
23280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23281 (eval $ac_try) 2>&5
23282 ac_status=$?
23283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23284 (exit $ac_status); }; } &&
23285 { ac_try='test -s conftest$ac_exeext'
23286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23287 (eval $ac_try) 2>&5
23288 ac_status=$?
23289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23290 (exit $ac_status); }; }; then
23291 eval "$as_ac_var=yes"
23292 else
23293 echo "$as_me: failed program was:" >&5
23294 sed 's/^/| /' conftest.$ac_ext >&5
23295
23296 eval "$as_ac_var=no"
23297 fi
23298 rm -f conftest.err conftest.$ac_objext \
23299 conftest$ac_exeext conftest.$ac_ext
23300 fi
23301 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
23302 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
23303 if test `eval echo '${'$as_ac_var'}'` = yes; then
23304 cat >>confdefs.h <<_ACEOF
23305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23306 _ACEOF
23307
23308 fi
23309 done
23310
23311
23312 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
23313 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
23314 if test "${ac_cv_header_stdc+set}" = set; then
23315 echo $ECHO_N "(cached) $ECHO_C" >&6
23316 else
23317 cat >conftest.$ac_ext <<_ACEOF
23318 /* confdefs.h. */
23319 _ACEOF
23320 cat confdefs.h >>conftest.$ac_ext
23321 cat >>conftest.$ac_ext <<_ACEOF
23322 /* end confdefs.h. */
23323 #include <stdlib.h>
23324 #include <stdarg.h>
23325 #include <string.h>
23326 #include <float.h>
23327
23328 int
23329 main ()
23330 {
23331
23332 ;
23333 return 0;
23334 }
23335 _ACEOF
23336 rm -f conftest.$ac_objext
23337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23338 (eval $ac_compile) 2>conftest.er1
23339 ac_status=$?
23340 grep -v '^ *+' conftest.er1 >conftest.err
23341 rm -f conftest.er1
23342 cat conftest.err >&5
23343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23344 (exit $ac_status); } &&
23345 { ac_try='test -z "$ac_c_werror_flag"
23346 || test ! -s conftest.err'
23347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23348 (eval $ac_try) 2>&5
23349 ac_status=$?
23350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23351 (exit $ac_status); }; } &&
23352 { ac_try='test -s conftest.$ac_objext'
23353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23354 (eval $ac_try) 2>&5
23355 ac_status=$?
23356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23357 (exit $ac_status); }; }; then
23358 ac_cv_header_stdc=yes
23359 else
23360 echo "$as_me: failed program was:" >&5
23361 sed 's/^/| /' conftest.$ac_ext >&5
23362
23363 ac_cv_header_stdc=no
23364 fi
23365 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23366
23367 if test $ac_cv_header_stdc = yes; then
23368 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23369 cat >conftest.$ac_ext <<_ACEOF
23370 /* confdefs.h. */
23371 _ACEOF
23372 cat confdefs.h >>conftest.$ac_ext
23373 cat >>conftest.$ac_ext <<_ACEOF
23374 /* end confdefs.h. */
23375 #include <string.h>
23376
23377 _ACEOF
23378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23379 $EGREP "memchr" >/dev/null 2>&1; then
23380 :
23381 else
23382 ac_cv_header_stdc=no
23383 fi
23384 rm -f conftest*
23385
23386 fi
23387
23388 if test $ac_cv_header_stdc = yes; then
23389 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23390 cat >conftest.$ac_ext <<_ACEOF
23391 /* confdefs.h. */
23392 _ACEOF
23393 cat confdefs.h >>conftest.$ac_ext
23394 cat >>conftest.$ac_ext <<_ACEOF
23395 /* end confdefs.h. */
23396 #include <stdlib.h>
23397
23398 _ACEOF
23399 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23400 $EGREP "free" >/dev/null 2>&1; then
23401 :
23402 else
23403 ac_cv_header_stdc=no
23404 fi
23405 rm -f conftest*
23406
23407 fi
23408
23409 if test $ac_cv_header_stdc = yes; then
23410 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23411 if test "$cross_compiling" = yes; then
23412 :
23413 else
23414 cat >conftest.$ac_ext <<_ACEOF
23415 /* confdefs.h. */
23416 _ACEOF
23417 cat confdefs.h >>conftest.$ac_ext
23418 cat >>conftest.$ac_ext <<_ACEOF
23419 /* end confdefs.h. */
23420 #include <ctype.h>
23421 #if ((' ' & 0x0FF) == 0x020)
23422 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23423 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23424 #else
23425 # define ISLOWER(c) \
23426 (('a' <= (c) && (c) <= 'i') \
23427 || ('j' <= (c) && (c) <= 'r') \
23428 || ('s' <= (c) && (c) <= 'z'))
23429 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23430 #endif
23431
23432 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23433 int
23434 main ()
23435 {
23436 int i;
23437 for (i = 0; i < 256; i++)
23438 if (XOR (islower (i), ISLOWER (i))
23439 || toupper (i) != TOUPPER (i))
23440 exit(2);
23441 exit (0);
23442 }
23443 _ACEOF
23444 rm -f conftest$ac_exeext
23445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23446 (eval $ac_link) 2>&5
23447 ac_status=$?
23448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23449 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23451 (eval $ac_try) 2>&5
23452 ac_status=$?
23453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23454 (exit $ac_status); }; }; then
23455 :
23456 else
23457 echo "$as_me: program exited with status $ac_status" >&5
23458 echo "$as_me: failed program was:" >&5
23459 sed 's/^/| /' conftest.$ac_ext >&5
23460
23461 ( exit $ac_status )
23462 ac_cv_header_stdc=no
23463 fi
23464 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23465 fi
23466 fi
23467 fi
23468 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
23469 echo "${ECHO_T}$ac_cv_header_stdc" >&6
23470 if test $ac_cv_header_stdc = yes; then
23471
23472 cat >>confdefs.h <<\_ACEOF
23473 #define STDC_HEADERS 1
23474 _ACEOF
23475
23476 fi
23477
23478 echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
23479 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6
23480 if test "${ac_cv_header_sys_wait_h+set}" = set; then
23481 echo $ECHO_N "(cached) $ECHO_C" >&6
23482 else
23483 cat >conftest.$ac_ext <<_ACEOF
23484 /* confdefs.h. */
23485 _ACEOF
23486 cat confdefs.h >>conftest.$ac_ext
23487 cat >>conftest.$ac_ext <<_ACEOF
23488 /* end confdefs.h. */
23489 #include <sys/types.h>
23490 #include <sys/wait.h>
23491 #ifndef WEXITSTATUS
23492 # define WEXITSTATUS(stat_val) ((unsigned)(stat_val) >> 8)
23493 #endif
23494 #ifndef WIFEXITED
23495 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
23496 #endif
23497
23498 int
23499 main ()
23500 {
23501 int s;
23502 wait (&s);
23503 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
23504 ;
23505 return 0;
23506 }
23507 _ACEOF
23508 rm -f conftest.$ac_objext
23509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23510 (eval $ac_compile) 2>conftest.er1
23511 ac_status=$?
23512 grep -v '^ *+' conftest.er1 >conftest.err
23513 rm -f conftest.er1
23514 cat conftest.err >&5
23515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23516 (exit $ac_status); } &&
23517 { ac_try='test -z "$ac_c_werror_flag"
23518 || test ! -s conftest.err'
23519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23520 (eval $ac_try) 2>&5
23521 ac_status=$?
23522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23523 (exit $ac_status); }; } &&
23524 { ac_try='test -s conftest.$ac_objext'
23525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23526 (eval $ac_try) 2>&5
23527 ac_status=$?
23528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23529 (exit $ac_status); }; }; then
23530 ac_cv_header_sys_wait_h=yes
23531 else
23532 echo "$as_me: failed program was:" >&5
23533 sed 's/^/| /' conftest.$ac_ext >&5
23534
23535 ac_cv_header_sys_wait_h=no
23536 fi
23537 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23538 fi
23539 echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
23540 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6
23541 if test $ac_cv_header_sys_wait_h = yes; then
23542
23543 cat >>confdefs.h <<\_ACEOF
23544 #define HAVE_SYS_WAIT_H 1
23545 _ACEOF
23546
23547 fi
23548
23549 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
23550 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
23551 if test "${ac_cv_header_time+set}" = set; then
23552 echo $ECHO_N "(cached) $ECHO_C" >&6
23553 else
23554 cat >conftest.$ac_ext <<_ACEOF
23555 /* confdefs.h. */
23556 _ACEOF
23557 cat confdefs.h >>conftest.$ac_ext
23558 cat >>conftest.$ac_ext <<_ACEOF
23559 /* end confdefs.h. */
23560 #include <sys/types.h>
23561 #include <sys/time.h>
23562 #include <time.h>
23563
23564 int
23565 main ()
23566 {
23567 if ((struct tm *) 0)
23568 return 0;
23569 ;
23570 return 0;
23571 }
23572 _ACEOF
23573 rm -f conftest.$ac_objext
23574 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23575 (eval $ac_compile) 2>conftest.er1
23576 ac_status=$?
23577 grep -v '^ *+' conftest.er1 >conftest.err
23578 rm -f conftest.er1
23579 cat conftest.err >&5
23580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23581 (exit $ac_status); } &&
23582 { ac_try='test -z "$ac_c_werror_flag"
23583 || test ! -s conftest.err'
23584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23585 (eval $ac_try) 2>&5
23586 ac_status=$?
23587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23588 (exit $ac_status); }; } &&
23589 { ac_try='test -s conftest.$ac_objext'
23590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23591 (eval $ac_try) 2>&5
23592 ac_status=$?
23593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); }; }; then
23595 ac_cv_header_time=yes
23596 else
23597 echo "$as_me: failed program was:" >&5
23598 sed 's/^/| /' conftest.$ac_ext >&5
23599
23600 ac_cv_header_time=no
23601 fi
23602 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23603 fi
23604 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
23605 echo "${ECHO_T}$ac_cv_header_time" >&6
23606 if test $ac_cv_header_time = yes; then
23607
23608 cat >>confdefs.h <<\_ACEOF
23609 #define TIME_WITH_SYS_TIME 1
23610 _ACEOF
23611
23612 fi
23613
23614
23615 # Check for header files.
23616
23617 for ac_header in socket.h
23618 do
23619 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23620 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23621 echo "$as_me:$LINENO: checking for $ac_header" >&5
23622 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23624 echo $ECHO_N "(cached) $ECHO_C" >&6
23625 fi
23626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23628 else
23629 # Is the header compilable?
23630 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23632 cat >conftest.$ac_ext <<_ACEOF
23633 /* confdefs.h. */
23634 _ACEOF
23635 cat confdefs.h >>conftest.$ac_ext
23636 cat >>conftest.$ac_ext <<_ACEOF
23637 /* end confdefs.h. */
23638 $ac_includes_default
23639 #include <$ac_header>
23640 _ACEOF
23641 rm -f conftest.$ac_objext
23642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23643 (eval $ac_compile) 2>conftest.er1
23644 ac_status=$?
23645 grep -v '^ *+' conftest.er1 >conftest.err
23646 rm -f conftest.er1
23647 cat conftest.err >&5
23648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23649 (exit $ac_status); } &&
23650 { ac_try='test -z "$ac_c_werror_flag"
23651 || test ! -s conftest.err'
23652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23653 (eval $ac_try) 2>&5
23654 ac_status=$?
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); }; } &&
23657 { ac_try='test -s conftest.$ac_objext'
23658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23659 (eval $ac_try) 2>&5
23660 ac_status=$?
23661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23662 (exit $ac_status); }; }; then
23663 ac_header_compiler=yes
23664 else
23665 echo "$as_me: failed program was:" >&5
23666 sed 's/^/| /' conftest.$ac_ext >&5
23667
23668 ac_header_compiler=no
23669 fi
23670 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23671 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23672 echo "${ECHO_T}$ac_header_compiler" >&6
23673
23674 # Is the header present?
23675 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23676 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23677 cat >conftest.$ac_ext <<_ACEOF
23678 /* confdefs.h. */
23679 _ACEOF
23680 cat confdefs.h >>conftest.$ac_ext
23681 cat >>conftest.$ac_ext <<_ACEOF
23682 /* end confdefs.h. */
23683 #include <$ac_header>
23684 _ACEOF
23685 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23686 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23687 ac_status=$?
23688 grep -v '^ *+' conftest.er1 >conftest.err
23689 rm -f conftest.er1
23690 cat conftest.err >&5
23691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23692 (exit $ac_status); } >/dev/null; then
23693 if test -s conftest.err; then
23694 ac_cpp_err=$ac_c_preproc_warn_flag
23695 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23696 else
23697 ac_cpp_err=
23698 fi
23699 else
23700 ac_cpp_err=yes
23701 fi
23702 if test -z "$ac_cpp_err"; then
23703 ac_header_preproc=yes
23704 else
23705 echo "$as_me: failed program was:" >&5
23706 sed 's/^/| /' conftest.$ac_ext >&5
23707
23708 ac_header_preproc=no
23709 fi
23710 rm -f conftest.err conftest.$ac_ext
23711 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23712 echo "${ECHO_T}$ac_header_preproc" >&6
23713
23714 # So? What about this header?
23715 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23716 yes:no: )
23717 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23718 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23719 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23720 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23721 ac_header_preproc=yes
23722 ;;
23723 no:yes:* )
23724 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23725 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23726 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23727 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23728 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23729 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23730 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23731 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23733 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23734 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23735 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23736 (
23737 cat <<\_ASBOX
23738 ## ------------------------------------------ ##
23739 ## Report this to the AC_PACKAGE_NAME lists. ##
23740 ## ------------------------------------------ ##
23741 _ASBOX
23742 ) |
23743 sed "s/^/$as_me: WARNING: /" >&2
23744 ;;
23745 esac
23746 echo "$as_me:$LINENO: checking for $ac_header" >&5
23747 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23748 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23749 echo $ECHO_N "(cached) $ECHO_C" >&6
23750 else
23751 eval "$as_ac_Header=\$ac_header_preproc"
23752 fi
23753 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23754 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23755
23756 fi
23757 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23758 cat >>confdefs.h <<_ACEOF
23759 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23760 _ACEOF
23761
23762 fi
23763
23764 done
23765
23766
23767 for ac_header in inttypes.h
23768 do
23769 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23770 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23771 echo "$as_me:$LINENO: checking for $ac_header" >&5
23772 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23773 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23774 echo $ECHO_N "(cached) $ECHO_C" >&6
23775 fi
23776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23778 else
23779 # Is the header compilable?
23780 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23781 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23782 cat >conftest.$ac_ext <<_ACEOF
23783 /* confdefs.h. */
23784 _ACEOF
23785 cat confdefs.h >>conftest.$ac_ext
23786 cat >>conftest.$ac_ext <<_ACEOF
23787 /* end confdefs.h. */
23788 $ac_includes_default
23789 #include <$ac_header>
23790 _ACEOF
23791 rm -f conftest.$ac_objext
23792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23793 (eval $ac_compile) 2>conftest.er1
23794 ac_status=$?
23795 grep -v '^ *+' conftest.er1 >conftest.err
23796 rm -f conftest.er1
23797 cat conftest.err >&5
23798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23799 (exit $ac_status); } &&
23800 { ac_try='test -z "$ac_c_werror_flag"
23801 || test ! -s conftest.err'
23802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23803 (eval $ac_try) 2>&5
23804 ac_status=$?
23805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23806 (exit $ac_status); }; } &&
23807 { ac_try='test -s conftest.$ac_objext'
23808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23809 (eval $ac_try) 2>&5
23810 ac_status=$?
23811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23812 (exit $ac_status); }; }; then
23813 ac_header_compiler=yes
23814 else
23815 echo "$as_me: failed program was:" >&5
23816 sed 's/^/| /' conftest.$ac_ext >&5
23817
23818 ac_header_compiler=no
23819 fi
23820 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23821 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23822 echo "${ECHO_T}$ac_header_compiler" >&6
23823
23824 # Is the header present?
23825 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23826 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23827 cat >conftest.$ac_ext <<_ACEOF
23828 /* confdefs.h. */
23829 _ACEOF
23830 cat confdefs.h >>conftest.$ac_ext
23831 cat >>conftest.$ac_ext <<_ACEOF
23832 /* end confdefs.h. */
23833 #include <$ac_header>
23834 _ACEOF
23835 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23836 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23837 ac_status=$?
23838 grep -v '^ *+' conftest.er1 >conftest.err
23839 rm -f conftest.er1
23840 cat conftest.err >&5
23841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23842 (exit $ac_status); } >/dev/null; then
23843 if test -s conftest.err; then
23844 ac_cpp_err=$ac_c_preproc_warn_flag
23845 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23846 else
23847 ac_cpp_err=
23848 fi
23849 else
23850 ac_cpp_err=yes
23851 fi
23852 if test -z "$ac_cpp_err"; then
23853 ac_header_preproc=yes
23854 else
23855 echo "$as_me: failed program was:" >&5
23856 sed 's/^/| /' conftest.$ac_ext >&5
23857
23858 ac_header_preproc=no
23859 fi
23860 rm -f conftest.err conftest.$ac_ext
23861 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23862 echo "${ECHO_T}$ac_header_preproc" >&6
23863
23864 # So? What about this header?
23865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23866 yes:no: )
23867 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23868 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23869 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23870 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23871 ac_header_preproc=yes
23872 ;;
23873 no:yes:* )
23874 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23875 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23876 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23877 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23878 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23879 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23880 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23881 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23882 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23883 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23884 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23885 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23886 (
23887 cat <<\_ASBOX
23888 ## ------------------------------------------ ##
23889 ## Report this to the AC_PACKAGE_NAME lists. ##
23890 ## ------------------------------------------ ##
23891 _ASBOX
23892 ) |
23893 sed "s/^/$as_me: WARNING: /" >&2
23894 ;;
23895 esac
23896 echo "$as_me:$LINENO: checking for $ac_header" >&5
23897 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23898 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23899 echo $ECHO_N "(cached) $ECHO_C" >&6
23900 else
23901 eval "$as_ac_Header=\$ac_header_preproc"
23902 fi
23903 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23904 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23905
23906 fi
23907 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23908 cat >>confdefs.h <<_ACEOF
23909 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23910 _ACEOF
23911 INSERT_INTTYPES_HEADER="#include <inttypes.h>"
23912 fi
23913
23914 done
23915
23916
23917 for ac_header in stdint.h
23918 do
23919 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23920 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23921 echo "$as_me:$LINENO: checking for $ac_header" >&5
23922 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
23923 if eval "test \"\${$as_ac_Header+set}\" = set"; then
23924 echo $ECHO_N "(cached) $ECHO_C" >&6
23925 fi
23926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
23927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
23928 else
23929 # Is the header compilable?
23930 echo "$as_me:$LINENO: checking $ac_header usability" >&5
23931 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
23932 cat >conftest.$ac_ext <<_ACEOF
23933 /* confdefs.h. */
23934 _ACEOF
23935 cat confdefs.h >>conftest.$ac_ext
23936 cat >>conftest.$ac_ext <<_ACEOF
23937 /* end confdefs.h. */
23938 $ac_includes_default
23939 #include <$ac_header>
23940 _ACEOF
23941 rm -f conftest.$ac_objext
23942 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23943 (eval $ac_compile) 2>conftest.er1
23944 ac_status=$?
23945 grep -v '^ *+' conftest.er1 >conftest.err
23946 rm -f conftest.er1
23947 cat conftest.err >&5
23948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23949 (exit $ac_status); } &&
23950 { ac_try='test -z "$ac_c_werror_flag"
23951 || test ! -s conftest.err'
23952 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23953 (eval $ac_try) 2>&5
23954 ac_status=$?
23955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23956 (exit $ac_status); }; } &&
23957 { ac_try='test -s conftest.$ac_objext'
23958 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23959 (eval $ac_try) 2>&5
23960 ac_status=$?
23961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23962 (exit $ac_status); }; }; then
23963 ac_header_compiler=yes
23964 else
23965 echo "$as_me: failed program was:" >&5
23966 sed 's/^/| /' conftest.$ac_ext >&5
23967
23968 ac_header_compiler=no
23969 fi
23970 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23971 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23972 echo "${ECHO_T}$ac_header_compiler" >&6
23973
23974 # Is the header present?
23975 echo "$as_me:$LINENO: checking $ac_header presence" >&5
23976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
23977 cat >conftest.$ac_ext <<_ACEOF
23978 /* confdefs.h. */
23979 _ACEOF
23980 cat confdefs.h >>conftest.$ac_ext
23981 cat >>conftest.$ac_ext <<_ACEOF
23982 /* end confdefs.h. */
23983 #include <$ac_header>
23984 _ACEOF
23985 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
23986 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
23987 ac_status=$?
23988 grep -v '^ *+' conftest.er1 >conftest.err
23989 rm -f conftest.er1
23990 cat conftest.err >&5
23991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23992 (exit $ac_status); } >/dev/null; then
23993 if test -s conftest.err; then
23994 ac_cpp_err=$ac_c_preproc_warn_flag
23995 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23996 else
23997 ac_cpp_err=
23998 fi
23999 else
24000 ac_cpp_err=yes
24001 fi
24002 if test -z "$ac_cpp_err"; then
24003 ac_header_preproc=yes
24004 else
24005 echo "$as_me: failed program was:" >&5
24006 sed 's/^/| /' conftest.$ac_ext >&5
24007
24008 ac_header_preproc=no
24009 fi
24010 rm -f conftest.err conftest.$ac_ext
24011 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24012 echo "${ECHO_T}$ac_header_preproc" >&6
24013
24014 # So? What about this header?
24015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24016 yes:no: )
24017 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24018 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24019 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24020 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24021 ac_header_preproc=yes
24022 ;;
24023 no:yes:* )
24024 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24025 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24026 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24027 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24028 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24029 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24030 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24031 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24033 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24034 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24035 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24036 (
24037 cat <<\_ASBOX
24038 ## ------------------------------------------ ##
24039 ## Report this to the AC_PACKAGE_NAME lists. ##
24040 ## ------------------------------------------ ##
24041 _ASBOX
24042 ) |
24043 sed "s/^/$as_me: WARNING: /" >&2
24044 ;;
24045 esac
24046 echo "$as_me:$LINENO: checking for $ac_header" >&5
24047 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24048 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24049 echo $ECHO_N "(cached) $ECHO_C" >&6
24050 else
24051 eval "$as_ac_Header=\$ac_header_preproc"
24052 fi
24053 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24054 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24055
24056 fi
24057 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24058 cat >>confdefs.h <<_ACEOF
24059 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24060 _ACEOF
24061 INSERT_STDINT_HEADER="#include <stdint.h>"
24062 fi
24063
24064 done
24065
24066
24067 for ac_header in unistd.h
24068 do
24069 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24070 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24071 echo "$as_me:$LINENO: checking for $ac_header" >&5
24072 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24073 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24074 echo $ECHO_N "(cached) $ECHO_C" >&6
24075 fi
24076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24078 else
24079 # Is the header compilable?
24080 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24081 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24082 cat >conftest.$ac_ext <<_ACEOF
24083 /* confdefs.h. */
24084 _ACEOF
24085 cat confdefs.h >>conftest.$ac_ext
24086 cat >>conftest.$ac_ext <<_ACEOF
24087 /* end confdefs.h. */
24088 $ac_includes_default
24089 #include <$ac_header>
24090 _ACEOF
24091 rm -f conftest.$ac_objext
24092 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24093 (eval $ac_compile) 2>conftest.er1
24094 ac_status=$?
24095 grep -v '^ *+' conftest.er1 >conftest.err
24096 rm -f conftest.er1
24097 cat conftest.err >&5
24098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24099 (exit $ac_status); } &&
24100 { ac_try='test -z "$ac_c_werror_flag"
24101 || test ! -s conftest.err'
24102 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24103 (eval $ac_try) 2>&5
24104 ac_status=$?
24105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24106 (exit $ac_status); }; } &&
24107 { ac_try='test -s conftest.$ac_objext'
24108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24109 (eval $ac_try) 2>&5
24110 ac_status=$?
24111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24112 (exit $ac_status); }; }; then
24113 ac_header_compiler=yes
24114 else
24115 echo "$as_me: failed program was:" >&5
24116 sed 's/^/| /' conftest.$ac_ext >&5
24117
24118 ac_header_compiler=no
24119 fi
24120 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24121 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24122 echo "${ECHO_T}$ac_header_compiler" >&6
24123
24124 # Is the header present?
24125 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24126 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24127 cat >conftest.$ac_ext <<_ACEOF
24128 /* confdefs.h. */
24129 _ACEOF
24130 cat confdefs.h >>conftest.$ac_ext
24131 cat >>conftest.$ac_ext <<_ACEOF
24132 /* end confdefs.h. */
24133 #include <$ac_header>
24134 _ACEOF
24135 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24136 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24137 ac_status=$?
24138 grep -v '^ *+' conftest.er1 >conftest.err
24139 rm -f conftest.er1
24140 cat conftest.err >&5
24141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24142 (exit $ac_status); } >/dev/null; then
24143 if test -s conftest.err; then
24144 ac_cpp_err=$ac_c_preproc_warn_flag
24145 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24146 else
24147 ac_cpp_err=
24148 fi
24149 else
24150 ac_cpp_err=yes
24151 fi
24152 if test -z "$ac_cpp_err"; then
24153 ac_header_preproc=yes
24154 else
24155 echo "$as_me: failed program was:" >&5
24156 sed 's/^/| /' conftest.$ac_ext >&5
24157
24158 ac_header_preproc=no
24159 fi
24160 rm -f conftest.err conftest.$ac_ext
24161 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24162 echo "${ECHO_T}$ac_header_preproc" >&6
24163
24164 # So? What about this header?
24165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24166 yes:no: )
24167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24171 ac_header_preproc=yes
24172 ;;
24173 no:yes:* )
24174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24181 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24186 (
24187 cat <<\_ASBOX
24188 ## ------------------------------------------ ##
24189 ## Report this to the AC_PACKAGE_NAME lists. ##
24190 ## ------------------------------------------ ##
24191 _ASBOX
24192 ) |
24193 sed "s/^/$as_me: WARNING: /" >&2
24194 ;;
24195 esac
24196 echo "$as_me:$LINENO: checking for $ac_header" >&5
24197 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24198 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24199 echo $ECHO_N "(cached) $ECHO_C" >&6
24200 else
24201 eval "$as_ac_Header=\$ac_header_preproc"
24202 fi
24203 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24204 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24205
24206 fi
24207 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24208 cat >>confdefs.h <<_ACEOF
24209 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24210 _ACEOF
24211
24212 fi
24213
24214 done
24215
24216
24217 for ac_header in stdlib.h
24218 do
24219 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24220 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24221 echo "$as_me:$LINENO: checking for $ac_header" >&5
24222 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24223 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24224 echo $ECHO_N "(cached) $ECHO_C" >&6
24225 fi
24226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24228 else
24229 # Is the header compilable?
24230 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24232 cat >conftest.$ac_ext <<_ACEOF
24233 /* confdefs.h. */
24234 _ACEOF
24235 cat confdefs.h >>conftest.$ac_ext
24236 cat >>conftest.$ac_ext <<_ACEOF
24237 /* end confdefs.h. */
24238 $ac_includes_default
24239 #include <$ac_header>
24240 _ACEOF
24241 rm -f conftest.$ac_objext
24242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24243 (eval $ac_compile) 2>conftest.er1
24244 ac_status=$?
24245 grep -v '^ *+' conftest.er1 >conftest.err
24246 rm -f conftest.er1
24247 cat conftest.err >&5
24248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24249 (exit $ac_status); } &&
24250 { ac_try='test -z "$ac_c_werror_flag"
24251 || test ! -s conftest.err'
24252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24253 (eval $ac_try) 2>&5
24254 ac_status=$?
24255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24256 (exit $ac_status); }; } &&
24257 { ac_try='test -s conftest.$ac_objext'
24258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24259 (eval $ac_try) 2>&5
24260 ac_status=$?
24261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24262 (exit $ac_status); }; }; then
24263 ac_header_compiler=yes
24264 else
24265 echo "$as_me: failed program was:" >&5
24266 sed 's/^/| /' conftest.$ac_ext >&5
24267
24268 ac_header_compiler=no
24269 fi
24270 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24271 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24272 echo "${ECHO_T}$ac_header_compiler" >&6
24273
24274 # Is the header present?
24275 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24276 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24277 cat >conftest.$ac_ext <<_ACEOF
24278 /* confdefs.h. */
24279 _ACEOF
24280 cat confdefs.h >>conftest.$ac_ext
24281 cat >>conftest.$ac_ext <<_ACEOF
24282 /* end confdefs.h. */
24283 #include <$ac_header>
24284 _ACEOF
24285 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24286 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24287 ac_status=$?
24288 grep -v '^ *+' conftest.er1 >conftest.err
24289 rm -f conftest.er1
24290 cat conftest.err >&5
24291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24292 (exit $ac_status); } >/dev/null; then
24293 if test -s conftest.err; then
24294 ac_cpp_err=$ac_c_preproc_warn_flag
24295 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24296 else
24297 ac_cpp_err=
24298 fi
24299 else
24300 ac_cpp_err=yes
24301 fi
24302 if test -z "$ac_cpp_err"; then
24303 ac_header_preproc=yes
24304 else
24305 echo "$as_me: failed program was:" >&5
24306 sed 's/^/| /' conftest.$ac_ext >&5
24307
24308 ac_header_preproc=no
24309 fi
24310 rm -f conftest.err conftest.$ac_ext
24311 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24312 echo "${ECHO_T}$ac_header_preproc" >&6
24313
24314 # So? What about this header?
24315 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24316 yes:no: )
24317 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24318 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24320 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24321 ac_header_preproc=yes
24322 ;;
24323 no:yes:* )
24324 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24325 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24326 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24327 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24328 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24329 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24330 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24331 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24332 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24333 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24334 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24335 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24336 (
24337 cat <<\_ASBOX
24338 ## ------------------------------------------ ##
24339 ## Report this to the AC_PACKAGE_NAME lists. ##
24340 ## ------------------------------------------ ##
24341 _ASBOX
24342 ) |
24343 sed "s/^/$as_me: WARNING: /" >&2
24344 ;;
24345 esac
24346 echo "$as_me:$LINENO: checking for $ac_header" >&5
24347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24348 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24349 echo $ECHO_N "(cached) $ECHO_C" >&6
24350 else
24351 eval "$as_ac_Header=\$ac_header_preproc"
24352 fi
24353 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24354 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24355
24356 fi
24357 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24358 cat >>confdefs.h <<_ACEOF
24359 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24360 _ACEOF
24361
24362 fi
24363
24364 done
24365
24366
24367 for ac_header in string.h
24368 do
24369 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24371 echo "$as_me:$LINENO: checking for $ac_header" >&5
24372 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24373 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24374 echo $ECHO_N "(cached) $ECHO_C" >&6
24375 fi
24376 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24377 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24378 else
24379 # Is the header compilable?
24380 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24381 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24382 cat >conftest.$ac_ext <<_ACEOF
24383 /* confdefs.h. */
24384 _ACEOF
24385 cat confdefs.h >>conftest.$ac_ext
24386 cat >>conftest.$ac_ext <<_ACEOF
24387 /* end confdefs.h. */
24388 $ac_includes_default
24389 #include <$ac_header>
24390 _ACEOF
24391 rm -f conftest.$ac_objext
24392 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24393 (eval $ac_compile) 2>conftest.er1
24394 ac_status=$?
24395 grep -v '^ *+' conftest.er1 >conftest.err
24396 rm -f conftest.er1
24397 cat conftest.err >&5
24398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24399 (exit $ac_status); } &&
24400 { ac_try='test -z "$ac_c_werror_flag"
24401 || test ! -s conftest.err'
24402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24403 (eval $ac_try) 2>&5
24404 ac_status=$?
24405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24406 (exit $ac_status); }; } &&
24407 { ac_try='test -s conftest.$ac_objext'
24408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24409 (eval $ac_try) 2>&5
24410 ac_status=$?
24411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24412 (exit $ac_status); }; }; then
24413 ac_header_compiler=yes
24414 else
24415 echo "$as_me: failed program was:" >&5
24416 sed 's/^/| /' conftest.$ac_ext >&5
24417
24418 ac_header_compiler=no
24419 fi
24420 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24421 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24422 echo "${ECHO_T}$ac_header_compiler" >&6
24423
24424 # Is the header present?
24425 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24427 cat >conftest.$ac_ext <<_ACEOF
24428 /* confdefs.h. */
24429 _ACEOF
24430 cat confdefs.h >>conftest.$ac_ext
24431 cat >>conftest.$ac_ext <<_ACEOF
24432 /* end confdefs.h. */
24433 #include <$ac_header>
24434 _ACEOF
24435 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24436 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24437 ac_status=$?
24438 grep -v '^ *+' conftest.er1 >conftest.err
24439 rm -f conftest.er1
24440 cat conftest.err >&5
24441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24442 (exit $ac_status); } >/dev/null; then
24443 if test -s conftest.err; then
24444 ac_cpp_err=$ac_c_preproc_warn_flag
24445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24446 else
24447 ac_cpp_err=
24448 fi
24449 else
24450 ac_cpp_err=yes
24451 fi
24452 if test -z "$ac_cpp_err"; then
24453 ac_header_preproc=yes
24454 else
24455 echo "$as_me: failed program was:" >&5
24456 sed 's/^/| /' conftest.$ac_ext >&5
24457
24458 ac_header_preproc=no
24459 fi
24460 rm -f conftest.err conftest.$ac_ext
24461 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24462 echo "${ECHO_T}$ac_header_preproc" >&6
24463
24464 # So? What about this header?
24465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24466 yes:no: )
24467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24471 ac_header_preproc=yes
24472 ;;
24473 no:yes:* )
24474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24477 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24481 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24486 (
24487 cat <<\_ASBOX
24488 ## ------------------------------------------ ##
24489 ## Report this to the AC_PACKAGE_NAME lists. ##
24490 ## ------------------------------------------ ##
24491 _ASBOX
24492 ) |
24493 sed "s/^/$as_me: WARNING: /" >&2
24494 ;;
24495 esac
24496 echo "$as_me:$LINENO: checking for $ac_header" >&5
24497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24498 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24499 echo $ECHO_N "(cached) $ECHO_C" >&6
24500 else
24501 eval "$as_ac_Header=\$ac_header_preproc"
24502 fi
24503 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24504 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24505
24506 fi
24507 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24508 cat >>confdefs.h <<_ACEOF
24509 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24510 _ACEOF
24511
24512 fi
24513
24514 done
24515
24516
24517 for ac_header in strings.h
24518 do
24519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24520 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24521 echo "$as_me:$LINENO: checking for $ac_header" >&5
24522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24523 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24524 echo $ECHO_N "(cached) $ECHO_C" >&6
24525 fi
24526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24528 else
24529 # Is the header compilable?
24530 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24531 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24532 cat >conftest.$ac_ext <<_ACEOF
24533 /* confdefs.h. */
24534 _ACEOF
24535 cat confdefs.h >>conftest.$ac_ext
24536 cat >>conftest.$ac_ext <<_ACEOF
24537 /* end confdefs.h. */
24538 $ac_includes_default
24539 #include <$ac_header>
24540 _ACEOF
24541 rm -f conftest.$ac_objext
24542 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24543 (eval $ac_compile) 2>conftest.er1
24544 ac_status=$?
24545 grep -v '^ *+' conftest.er1 >conftest.err
24546 rm -f conftest.er1
24547 cat conftest.err >&5
24548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24549 (exit $ac_status); } &&
24550 { ac_try='test -z "$ac_c_werror_flag"
24551 || test ! -s conftest.err'
24552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24553 (eval $ac_try) 2>&5
24554 ac_status=$?
24555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24556 (exit $ac_status); }; } &&
24557 { ac_try='test -s conftest.$ac_objext'
24558 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24559 (eval $ac_try) 2>&5
24560 ac_status=$?
24561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24562 (exit $ac_status); }; }; then
24563 ac_header_compiler=yes
24564 else
24565 echo "$as_me: failed program was:" >&5
24566 sed 's/^/| /' conftest.$ac_ext >&5
24567
24568 ac_header_compiler=no
24569 fi
24570 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24571 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24572 echo "${ECHO_T}$ac_header_compiler" >&6
24573
24574 # Is the header present?
24575 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24576 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24577 cat >conftest.$ac_ext <<_ACEOF
24578 /* confdefs.h. */
24579 _ACEOF
24580 cat confdefs.h >>conftest.$ac_ext
24581 cat >>conftest.$ac_ext <<_ACEOF
24582 /* end confdefs.h. */
24583 #include <$ac_header>
24584 _ACEOF
24585 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24586 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24587 ac_status=$?
24588 grep -v '^ *+' conftest.er1 >conftest.err
24589 rm -f conftest.er1
24590 cat conftest.err >&5
24591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24592 (exit $ac_status); } >/dev/null; then
24593 if test -s conftest.err; then
24594 ac_cpp_err=$ac_c_preproc_warn_flag
24595 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24596 else
24597 ac_cpp_err=
24598 fi
24599 else
24600 ac_cpp_err=yes
24601 fi
24602 if test -z "$ac_cpp_err"; then
24603 ac_header_preproc=yes
24604 else
24605 echo "$as_me: failed program was:" >&5
24606 sed 's/^/| /' conftest.$ac_ext >&5
24607
24608 ac_header_preproc=no
24609 fi
24610 rm -f conftest.err conftest.$ac_ext
24611 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24612 echo "${ECHO_T}$ac_header_preproc" >&6
24613
24614 # So? What about this header?
24615 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24616 yes:no: )
24617 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24618 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24619 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24620 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24621 ac_header_preproc=yes
24622 ;;
24623 no:yes:* )
24624 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24625 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24626 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24627 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24628 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24629 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24630 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24631 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24632 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24633 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24634 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24635 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24636 (
24637 cat <<\_ASBOX
24638 ## ------------------------------------------ ##
24639 ## Report this to the AC_PACKAGE_NAME lists. ##
24640 ## ------------------------------------------ ##
24641 _ASBOX
24642 ) |
24643 sed "s/^/$as_me: WARNING: /" >&2
24644 ;;
24645 esac
24646 echo "$as_me:$LINENO: checking for $ac_header" >&5
24647 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24648 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24649 echo $ECHO_N "(cached) $ECHO_C" >&6
24650 else
24651 eval "$as_ac_Header=\$ac_header_preproc"
24652 fi
24653 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24654 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24655
24656 fi
24657 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24658 cat >>confdefs.h <<_ACEOF
24659 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24660 _ACEOF
24661
24662 fi
24663
24664 done
24665
24666
24667 for ac_header in malloc.h
24668 do
24669 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24670 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24671 echo "$as_me:$LINENO: checking for $ac_header" >&5
24672 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24673 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24674 echo $ECHO_N "(cached) $ECHO_C" >&6
24675 fi
24676 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24677 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24678 else
24679 # Is the header compilable?
24680 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24682 cat >conftest.$ac_ext <<_ACEOF
24683 /* confdefs.h. */
24684 _ACEOF
24685 cat confdefs.h >>conftest.$ac_ext
24686 cat >>conftest.$ac_ext <<_ACEOF
24687 /* end confdefs.h. */
24688 $ac_includes_default
24689 #include <$ac_header>
24690 _ACEOF
24691 rm -f conftest.$ac_objext
24692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24693 (eval $ac_compile) 2>conftest.er1
24694 ac_status=$?
24695 grep -v '^ *+' conftest.er1 >conftest.err
24696 rm -f conftest.er1
24697 cat conftest.err >&5
24698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24699 (exit $ac_status); } &&
24700 { ac_try='test -z "$ac_c_werror_flag"
24701 || test ! -s conftest.err'
24702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24703 (eval $ac_try) 2>&5
24704 ac_status=$?
24705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24706 (exit $ac_status); }; } &&
24707 { ac_try='test -s conftest.$ac_objext'
24708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24709 (eval $ac_try) 2>&5
24710 ac_status=$?
24711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24712 (exit $ac_status); }; }; then
24713 ac_header_compiler=yes
24714 else
24715 echo "$as_me: failed program was:" >&5
24716 sed 's/^/| /' conftest.$ac_ext >&5
24717
24718 ac_header_compiler=no
24719 fi
24720 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24721 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24722 echo "${ECHO_T}$ac_header_compiler" >&6
24723
24724 # Is the header present?
24725 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24726 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24727 cat >conftest.$ac_ext <<_ACEOF
24728 /* confdefs.h. */
24729 _ACEOF
24730 cat confdefs.h >>conftest.$ac_ext
24731 cat >>conftest.$ac_ext <<_ACEOF
24732 /* end confdefs.h. */
24733 #include <$ac_header>
24734 _ACEOF
24735 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24736 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24737 ac_status=$?
24738 grep -v '^ *+' conftest.er1 >conftest.err
24739 rm -f conftest.er1
24740 cat conftest.err >&5
24741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24742 (exit $ac_status); } >/dev/null; then
24743 if test -s conftest.err; then
24744 ac_cpp_err=$ac_c_preproc_warn_flag
24745 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24746 else
24747 ac_cpp_err=
24748 fi
24749 else
24750 ac_cpp_err=yes
24751 fi
24752 if test -z "$ac_cpp_err"; then
24753 ac_header_preproc=yes
24754 else
24755 echo "$as_me: failed program was:" >&5
24756 sed 's/^/| /' conftest.$ac_ext >&5
24757
24758 ac_header_preproc=no
24759 fi
24760 rm -f conftest.err conftest.$ac_ext
24761 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24762 echo "${ECHO_T}$ac_header_preproc" >&6
24763
24764 # So? What about this header?
24765 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24766 yes:no: )
24767 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24768 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24769 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24770 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24771 ac_header_preproc=yes
24772 ;;
24773 no:yes:* )
24774 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24775 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24776 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24777 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24778 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24779 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24780 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24781 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24782 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24783 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24784 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24785 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24786 (
24787 cat <<\_ASBOX
24788 ## ------------------------------------------ ##
24789 ## Report this to the AC_PACKAGE_NAME lists. ##
24790 ## ------------------------------------------ ##
24791 _ASBOX
24792 ) |
24793 sed "s/^/$as_me: WARNING: /" >&2
24794 ;;
24795 esac
24796 echo "$as_me:$LINENO: checking for $ac_header" >&5
24797 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24798 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24799 echo $ECHO_N "(cached) $ECHO_C" >&6
24800 else
24801 eval "$as_ac_Header=\$ac_header_preproc"
24802 fi
24803 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24804 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24805
24806 fi
24807 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24808 cat >>confdefs.h <<_ACEOF
24809 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24810 _ACEOF
24811
24812 fi
24813
24814 done
24815
24816
24817 for ac_header in tgmath.h
24818 do
24819 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24821 echo "$as_me:$LINENO: checking for $ac_header" >&5
24822 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24823 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24824 echo $ECHO_N "(cached) $ECHO_C" >&6
24825 fi
24826 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24827 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24828 else
24829 # Is the header compilable?
24830 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24831 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24832 cat >conftest.$ac_ext <<_ACEOF
24833 /* confdefs.h. */
24834 _ACEOF
24835 cat confdefs.h >>conftest.$ac_ext
24836 cat >>conftest.$ac_ext <<_ACEOF
24837 /* end confdefs.h. */
24838 $ac_includes_default
24839 #include <$ac_header>
24840 _ACEOF
24841 rm -f conftest.$ac_objext
24842 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24843 (eval $ac_compile) 2>conftest.er1
24844 ac_status=$?
24845 grep -v '^ *+' conftest.er1 >conftest.err
24846 rm -f conftest.er1
24847 cat conftest.err >&5
24848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24849 (exit $ac_status); } &&
24850 { ac_try='test -z "$ac_c_werror_flag"
24851 || test ! -s conftest.err'
24852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24853 (eval $ac_try) 2>&5
24854 ac_status=$?
24855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24856 (exit $ac_status); }; } &&
24857 { ac_try='test -s conftest.$ac_objext'
24858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24859 (eval $ac_try) 2>&5
24860 ac_status=$?
24861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24862 (exit $ac_status); }; }; then
24863 ac_header_compiler=yes
24864 else
24865 echo "$as_me: failed program was:" >&5
24866 sed 's/^/| /' conftest.$ac_ext >&5
24867
24868 ac_header_compiler=no
24869 fi
24870 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24871 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24872 echo "${ECHO_T}$ac_header_compiler" >&6
24873
24874 # Is the header present?
24875 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24876 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24877 cat >conftest.$ac_ext <<_ACEOF
24878 /* confdefs.h. */
24879 _ACEOF
24880 cat confdefs.h >>conftest.$ac_ext
24881 cat >>conftest.$ac_ext <<_ACEOF
24882 /* end confdefs.h. */
24883 #include <$ac_header>
24884 _ACEOF
24885 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24886 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24887 ac_status=$?
24888 grep -v '^ *+' conftest.er1 >conftest.err
24889 rm -f conftest.er1
24890 cat conftest.err >&5
24891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24892 (exit $ac_status); } >/dev/null; then
24893 if test -s conftest.err; then
24894 ac_cpp_err=$ac_c_preproc_warn_flag
24895 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24896 else
24897 ac_cpp_err=
24898 fi
24899 else
24900 ac_cpp_err=yes
24901 fi
24902 if test -z "$ac_cpp_err"; then
24903 ac_header_preproc=yes
24904 else
24905 echo "$as_me: failed program was:" >&5
24906 sed 's/^/| /' conftest.$ac_ext >&5
24907
24908 ac_header_preproc=no
24909 fi
24910 rm -f conftest.err conftest.$ac_ext
24911 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24912 echo "${ECHO_T}$ac_header_preproc" >&6
24913
24914 # So? What about this header?
24915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24916 yes:no: )
24917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24921 ac_header_preproc=yes
24922 ;;
24923 no:yes:* )
24924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24936 (
24937 cat <<\_ASBOX
24938 ## ------------------------------------------ ##
24939 ## Report this to the AC_PACKAGE_NAME lists. ##
24940 ## ------------------------------------------ ##
24941 _ASBOX
24942 ) |
24943 sed "s/^/$as_me: WARNING: /" >&2
24944 ;;
24945 esac
24946 echo "$as_me:$LINENO: checking for $ac_header" >&5
24947 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24948 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24949 echo $ECHO_N "(cached) $ECHO_C" >&6
24950 else
24951 eval "$as_ac_Header=\$ac_header_preproc"
24952 fi
24953 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24954 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24955
24956 fi
24957 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24958 cat >>confdefs.h <<_ACEOF
24959 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24960 _ACEOF
24961 INSERT_TGMATH_HEADER="#include <tgmath.h>"
24962 fi
24963
24964 done
24965
24966
24967 for ac_header in math.h
24968 do
24969 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24970 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24971 echo "$as_me:$LINENO: checking for $ac_header" >&5
24972 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24973 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24974 echo $ECHO_N "(cached) $ECHO_C" >&6
24975 fi
24976 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24977 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24978 else
24979 # Is the header compilable?
24980 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24981 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24982 cat >conftest.$ac_ext <<_ACEOF
24983 /* confdefs.h. */
24984 _ACEOF
24985 cat confdefs.h >>conftest.$ac_ext
24986 cat >>conftest.$ac_ext <<_ACEOF
24987 /* end confdefs.h. */
24988 $ac_includes_default
24989 #include <$ac_header>
24990 _ACEOF
24991 rm -f conftest.$ac_objext
24992 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24993 (eval $ac_compile) 2>conftest.er1
24994 ac_status=$?
24995 grep -v '^ *+' conftest.er1 >conftest.err
24996 rm -f conftest.er1
24997 cat conftest.err >&5
24998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24999 (exit $ac_status); } &&
25000 { ac_try='test -z "$ac_c_werror_flag"
25001 || test ! -s conftest.err'
25002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25003 (eval $ac_try) 2>&5
25004 ac_status=$?
25005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25006 (exit $ac_status); }; } &&
25007 { ac_try='test -s conftest.$ac_objext'
25008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25009 (eval $ac_try) 2>&5
25010 ac_status=$?
25011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25012 (exit $ac_status); }; }; then
25013 ac_header_compiler=yes
25014 else
25015 echo "$as_me: failed program was:" >&5
25016 sed 's/^/| /' conftest.$ac_ext >&5
25017
25018 ac_header_compiler=no
25019 fi
25020 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25021 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25022 echo "${ECHO_T}$ac_header_compiler" >&6
25023
25024 # Is the header present?
25025 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25026 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25027 cat >conftest.$ac_ext <<_ACEOF
25028 /* confdefs.h. */
25029 _ACEOF
25030 cat confdefs.h >>conftest.$ac_ext
25031 cat >>conftest.$ac_ext <<_ACEOF
25032 /* end confdefs.h. */
25033 #include <$ac_header>
25034 _ACEOF
25035 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25036 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25037 ac_status=$?
25038 grep -v '^ *+' conftest.er1 >conftest.err
25039 rm -f conftest.er1
25040 cat conftest.err >&5
25041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25042 (exit $ac_status); } >/dev/null; then
25043 if test -s conftest.err; then
25044 ac_cpp_err=$ac_c_preproc_warn_flag
25045 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25046 else
25047 ac_cpp_err=
25048 fi
25049 else
25050 ac_cpp_err=yes
25051 fi
25052 if test -z "$ac_cpp_err"; then
25053 ac_header_preproc=yes
25054 else
25055 echo "$as_me: failed program was:" >&5
25056 sed 's/^/| /' conftest.$ac_ext >&5
25057
25058 ac_header_preproc=no
25059 fi
25060 rm -f conftest.err conftest.$ac_ext
25061 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25062 echo "${ECHO_T}$ac_header_preproc" >&6
25063
25064 # So? What about this header?
25065 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25066 yes:no: )
25067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25071 ac_header_preproc=yes
25072 ;;
25073 no:yes:* )
25074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25077 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25078 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25080 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25081 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25084 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25086 (
25087 cat <<\_ASBOX
25088 ## ------------------------------------------ ##
25089 ## Report this to the AC_PACKAGE_NAME lists. ##
25090 ## ------------------------------------------ ##
25091 _ASBOX
25092 ) |
25093 sed "s/^/$as_me: WARNING: /" >&2
25094 ;;
25095 esac
25096 echo "$as_me:$LINENO: checking for $ac_header" >&5
25097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25098 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25099 echo $ECHO_N "(cached) $ECHO_C" >&6
25100 else
25101 eval "$as_ac_Header=\$ac_header_preproc"
25102 fi
25103 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25104 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25105
25106 fi
25107 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25108 cat >>confdefs.h <<_ACEOF
25109 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25110 _ACEOF
25111 INSERT_MATH_HEADER="#include <math.h>"
25112 fi
25113
25114 done
25115
25116
25117 for ac_header in float.h
25118 do
25119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25120 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25121 echo "$as_me:$LINENO: checking for $ac_header" >&5
25122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25123 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25124 echo $ECHO_N "(cached) $ECHO_C" >&6
25125 fi
25126 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25127 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25128 else
25129 # Is the header compilable?
25130 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25131 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25132 cat >conftest.$ac_ext <<_ACEOF
25133 /* confdefs.h. */
25134 _ACEOF
25135 cat confdefs.h >>conftest.$ac_ext
25136 cat >>conftest.$ac_ext <<_ACEOF
25137 /* end confdefs.h. */
25138 $ac_includes_default
25139 #include <$ac_header>
25140 _ACEOF
25141 rm -f conftest.$ac_objext
25142 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25143 (eval $ac_compile) 2>conftest.er1
25144 ac_status=$?
25145 grep -v '^ *+' conftest.er1 >conftest.err
25146 rm -f conftest.er1
25147 cat conftest.err >&5
25148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25149 (exit $ac_status); } &&
25150 { ac_try='test -z "$ac_c_werror_flag"
25151 || test ! -s conftest.err'
25152 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25153 (eval $ac_try) 2>&5
25154 ac_status=$?
25155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25156 (exit $ac_status); }; } &&
25157 { ac_try='test -s conftest.$ac_objext'
25158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25159 (eval $ac_try) 2>&5
25160 ac_status=$?
25161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25162 (exit $ac_status); }; }; then
25163 ac_header_compiler=yes
25164 else
25165 echo "$as_me: failed program was:" >&5
25166 sed 's/^/| /' conftest.$ac_ext >&5
25167
25168 ac_header_compiler=no
25169 fi
25170 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25171 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25172 echo "${ECHO_T}$ac_header_compiler" >&6
25173
25174 # Is the header present?
25175 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25177 cat >conftest.$ac_ext <<_ACEOF
25178 /* confdefs.h. */
25179 _ACEOF
25180 cat confdefs.h >>conftest.$ac_ext
25181 cat >>conftest.$ac_ext <<_ACEOF
25182 /* end confdefs.h. */
25183 #include <$ac_header>
25184 _ACEOF
25185 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25186 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25187 ac_status=$?
25188 grep -v '^ *+' conftest.er1 >conftest.err
25189 rm -f conftest.er1
25190 cat conftest.err >&5
25191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25192 (exit $ac_status); } >/dev/null; then
25193 if test -s conftest.err; then
25194 ac_cpp_err=$ac_c_preproc_warn_flag
25195 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25196 else
25197 ac_cpp_err=
25198 fi
25199 else
25200 ac_cpp_err=yes
25201 fi
25202 if test -z "$ac_cpp_err"; then
25203 ac_header_preproc=yes
25204 else
25205 echo "$as_me: failed program was:" >&5
25206 sed 's/^/| /' conftest.$ac_ext >&5
25207
25208 ac_header_preproc=no
25209 fi
25210 rm -f conftest.err conftest.$ac_ext
25211 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25212 echo "${ECHO_T}$ac_header_preproc" >&6
25213
25214 # So? What about this header?
25215 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25216 yes:no: )
25217 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25218 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25220 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25221 ac_header_preproc=yes
25222 ;;
25223 no:yes:* )
25224 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25225 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25226 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25227 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25228 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25229 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25230 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25231 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25232 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25233 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25234 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25235 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25236 (
25237 cat <<\_ASBOX
25238 ## ------------------------------------------ ##
25239 ## Report this to the AC_PACKAGE_NAME lists. ##
25240 ## ------------------------------------------ ##
25241 _ASBOX
25242 ) |
25243 sed "s/^/$as_me: WARNING: /" >&2
25244 ;;
25245 esac
25246 echo "$as_me:$LINENO: checking for $ac_header" >&5
25247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25248 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25249 echo $ECHO_N "(cached) $ECHO_C" >&6
25250 else
25251 eval "$as_ac_Header=\$ac_header_preproc"
25252 fi
25253 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25254 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25255
25256 fi
25257 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25258 cat >>confdefs.h <<_ACEOF
25259 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25260 _ACEOF
25261
25262 fi
25263
25264 done
25265
25266
25267 for ac_header in fcntl.h
25268 do
25269 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25270 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25271 echo "$as_me:$LINENO: checking for $ac_header" >&5
25272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25273 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25274 echo $ECHO_N "(cached) $ECHO_C" >&6
25275 fi
25276 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25277 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25278 else
25279 # Is the header compilable?
25280 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25282 cat >conftest.$ac_ext <<_ACEOF
25283 /* confdefs.h. */
25284 _ACEOF
25285 cat confdefs.h >>conftest.$ac_ext
25286 cat >>conftest.$ac_ext <<_ACEOF
25287 /* end confdefs.h. */
25288 $ac_includes_default
25289 #include <$ac_header>
25290 _ACEOF
25291 rm -f conftest.$ac_objext
25292 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25293 (eval $ac_compile) 2>conftest.er1
25294 ac_status=$?
25295 grep -v '^ *+' conftest.er1 >conftest.err
25296 rm -f conftest.er1
25297 cat conftest.err >&5
25298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25299 (exit $ac_status); } &&
25300 { ac_try='test -z "$ac_c_werror_flag"
25301 || test ! -s conftest.err'
25302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25303 (eval $ac_try) 2>&5
25304 ac_status=$?
25305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25306 (exit $ac_status); }; } &&
25307 { ac_try='test -s conftest.$ac_objext'
25308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25309 (eval $ac_try) 2>&5
25310 ac_status=$?
25311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25312 (exit $ac_status); }; }; then
25313 ac_header_compiler=yes
25314 else
25315 echo "$as_me: failed program was:" >&5
25316 sed 's/^/| /' conftest.$ac_ext >&5
25317
25318 ac_header_compiler=no
25319 fi
25320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25321 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25322 echo "${ECHO_T}$ac_header_compiler" >&6
25323
25324 # Is the header present?
25325 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25326 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25327 cat >conftest.$ac_ext <<_ACEOF
25328 /* confdefs.h. */
25329 _ACEOF
25330 cat confdefs.h >>conftest.$ac_ext
25331 cat >>conftest.$ac_ext <<_ACEOF
25332 /* end confdefs.h. */
25333 #include <$ac_header>
25334 _ACEOF
25335 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25336 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25337 ac_status=$?
25338 grep -v '^ *+' conftest.er1 >conftest.err
25339 rm -f conftest.er1
25340 cat conftest.err >&5
25341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25342 (exit $ac_status); } >/dev/null; then
25343 if test -s conftest.err; then
25344 ac_cpp_err=$ac_c_preproc_warn_flag
25345 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25346 else
25347 ac_cpp_err=
25348 fi
25349 else
25350 ac_cpp_err=yes
25351 fi
25352 if test -z "$ac_cpp_err"; then
25353 ac_header_preproc=yes
25354 else
25355 echo "$as_me: failed program was:" >&5
25356 sed 's/^/| /' conftest.$ac_ext >&5
25357
25358 ac_header_preproc=no
25359 fi
25360 rm -f conftest.err conftest.$ac_ext
25361 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25362 echo "${ECHO_T}$ac_header_preproc" >&6
25363
25364 # So? What about this header?
25365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25366 yes:no: )
25367 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25368 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25369 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25370 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25371 ac_header_preproc=yes
25372 ;;
25373 no:yes:* )
25374 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25375 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25376 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25377 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25378 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25379 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25380 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25381 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25382 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25383 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25384 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25385 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25386 (
25387 cat <<\_ASBOX
25388 ## ------------------------------------------ ##
25389 ## Report this to the AC_PACKAGE_NAME lists. ##
25390 ## ------------------------------------------ ##
25391 _ASBOX
25392 ) |
25393 sed "s/^/$as_me: WARNING: /" >&2
25394 ;;
25395 esac
25396 echo "$as_me:$LINENO: checking for $ac_header" >&5
25397 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25398 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25399 echo $ECHO_N "(cached) $ECHO_C" >&6
25400 else
25401 eval "$as_ac_Header=\$ac_header_preproc"
25402 fi
25403 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25404 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25405
25406 fi
25407 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25408 cat >>confdefs.h <<_ACEOF
25409 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25410 _ACEOF
25411
25412 fi
25413
25414 done
25415
25416
25417 for ac_header in sys/time.h
25418 do
25419 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25420 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25421 echo "$as_me:$LINENO: checking for $ac_header" >&5
25422 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25423 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25424 echo $ECHO_N "(cached) $ECHO_C" >&6
25425 fi
25426 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25427 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25428 else
25429 # Is the header compilable?
25430 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25431 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25432 cat >conftest.$ac_ext <<_ACEOF
25433 /* confdefs.h. */
25434 _ACEOF
25435 cat confdefs.h >>conftest.$ac_ext
25436 cat >>conftest.$ac_ext <<_ACEOF
25437 /* end confdefs.h. */
25438 $ac_includes_default
25439 #include <$ac_header>
25440 _ACEOF
25441 rm -f conftest.$ac_objext
25442 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25443 (eval $ac_compile) 2>conftest.er1
25444 ac_status=$?
25445 grep -v '^ *+' conftest.er1 >conftest.err
25446 rm -f conftest.er1
25447 cat conftest.err >&5
25448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25449 (exit $ac_status); } &&
25450 { ac_try='test -z "$ac_c_werror_flag"
25451 || test ! -s conftest.err'
25452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25453 (eval $ac_try) 2>&5
25454 ac_status=$?
25455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25456 (exit $ac_status); }; } &&
25457 { ac_try='test -s conftest.$ac_objext'
25458 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25459 (eval $ac_try) 2>&5
25460 ac_status=$?
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); }; }; then
25463 ac_header_compiler=yes
25464 else
25465 echo "$as_me: failed program was:" >&5
25466 sed 's/^/| /' conftest.$ac_ext >&5
25467
25468 ac_header_compiler=no
25469 fi
25470 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25471 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25472 echo "${ECHO_T}$ac_header_compiler" >&6
25473
25474 # Is the header present?
25475 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25477 cat >conftest.$ac_ext <<_ACEOF
25478 /* confdefs.h. */
25479 _ACEOF
25480 cat confdefs.h >>conftest.$ac_ext
25481 cat >>conftest.$ac_ext <<_ACEOF
25482 /* end confdefs.h. */
25483 #include <$ac_header>
25484 _ACEOF
25485 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25486 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25487 ac_status=$?
25488 grep -v '^ *+' conftest.er1 >conftest.err
25489 rm -f conftest.er1
25490 cat conftest.err >&5
25491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25492 (exit $ac_status); } >/dev/null; then
25493 if test -s conftest.err; then
25494 ac_cpp_err=$ac_c_preproc_warn_flag
25495 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25496 else
25497 ac_cpp_err=
25498 fi
25499 else
25500 ac_cpp_err=yes
25501 fi
25502 if test -z "$ac_cpp_err"; then
25503 ac_header_preproc=yes
25504 else
25505 echo "$as_me: failed program was:" >&5
25506 sed 's/^/| /' conftest.$ac_ext >&5
25507
25508 ac_header_preproc=no
25509 fi
25510 rm -f conftest.err conftest.$ac_ext
25511 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25512 echo "${ECHO_T}$ac_header_preproc" >&6
25513
25514 # So? What about this header?
25515 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25516 yes:no: )
25517 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25518 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25519 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25520 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25521 ac_header_preproc=yes
25522 ;;
25523 no:yes:* )
25524 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25525 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25526 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25527 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25528 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25529 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25530 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25531 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25532 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25533 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25534 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25535 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25536 (
25537 cat <<\_ASBOX
25538 ## ------------------------------------------ ##
25539 ## Report this to the AC_PACKAGE_NAME lists. ##
25540 ## ------------------------------------------ ##
25541 _ASBOX
25542 ) |
25543 sed "s/^/$as_me: WARNING: /" >&2
25544 ;;
25545 esac
25546 echo "$as_me:$LINENO: checking for $ac_header" >&5
25547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25548 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25549 echo $ECHO_N "(cached) $ECHO_C" >&6
25550 else
25551 eval "$as_ac_Header=\$ac_header_preproc"
25552 fi
25553 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25554 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25555
25556 fi
25557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25558 cat >>confdefs.h <<_ACEOF
25559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25560 _ACEOF
25561
25562 fi
25563
25564 done
25565
25566
25567 for ac_header in sys/select.h
25568 do
25569 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25570 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25571 echo "$as_me:$LINENO: checking for $ac_header" >&5
25572 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25573 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25574 echo $ECHO_N "(cached) $ECHO_C" >&6
25575 fi
25576 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25577 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25578 else
25579 # Is the header compilable?
25580 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25581 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25582 cat >conftest.$ac_ext <<_ACEOF
25583 /* confdefs.h. */
25584 _ACEOF
25585 cat confdefs.h >>conftest.$ac_ext
25586 cat >>conftest.$ac_ext <<_ACEOF
25587 /* end confdefs.h. */
25588 $ac_includes_default
25589 #include <$ac_header>
25590 _ACEOF
25591 rm -f conftest.$ac_objext
25592 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25593 (eval $ac_compile) 2>conftest.er1
25594 ac_status=$?
25595 grep -v '^ *+' conftest.er1 >conftest.err
25596 rm -f conftest.er1
25597 cat conftest.err >&5
25598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25599 (exit $ac_status); } &&
25600 { ac_try='test -z "$ac_c_werror_flag"
25601 || test ! -s conftest.err'
25602 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25603 (eval $ac_try) 2>&5
25604 ac_status=$?
25605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25606 (exit $ac_status); }; } &&
25607 { ac_try='test -s conftest.$ac_objext'
25608 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25609 (eval $ac_try) 2>&5
25610 ac_status=$?
25611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25612 (exit $ac_status); }; }; then
25613 ac_header_compiler=yes
25614 else
25615 echo "$as_me: failed program was:" >&5
25616 sed 's/^/| /' conftest.$ac_ext >&5
25617
25618 ac_header_compiler=no
25619 fi
25620 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25621 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25622 echo "${ECHO_T}$ac_header_compiler" >&6
25623
25624 # Is the header present?
25625 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25626 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25627 cat >conftest.$ac_ext <<_ACEOF
25628 /* confdefs.h. */
25629 _ACEOF
25630 cat confdefs.h >>conftest.$ac_ext
25631 cat >>conftest.$ac_ext <<_ACEOF
25632 /* end confdefs.h. */
25633 #include <$ac_header>
25634 _ACEOF
25635 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25636 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25637 ac_status=$?
25638 grep -v '^ *+' conftest.er1 >conftest.err
25639 rm -f conftest.er1
25640 cat conftest.err >&5
25641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25642 (exit $ac_status); } >/dev/null; then
25643 if test -s conftest.err; then
25644 ac_cpp_err=$ac_c_preproc_warn_flag
25645 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25646 else
25647 ac_cpp_err=
25648 fi
25649 else
25650 ac_cpp_err=yes
25651 fi
25652 if test -z "$ac_cpp_err"; then
25653 ac_header_preproc=yes
25654 else
25655 echo "$as_me: failed program was:" >&5
25656 sed 's/^/| /' conftest.$ac_ext >&5
25657
25658 ac_header_preproc=no
25659 fi
25660 rm -f conftest.err conftest.$ac_ext
25661 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25662 echo "${ECHO_T}$ac_header_preproc" >&6
25663
25664 # So? What about this header?
25665 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25666 yes:no: )
25667 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25668 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25669 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25670 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25671 ac_header_preproc=yes
25672 ;;
25673 no:yes:* )
25674 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25675 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25676 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25677 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25678 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25679 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25680 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25681 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25682 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25683 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25684 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25685 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25686 (
25687 cat <<\_ASBOX
25688 ## ------------------------------------------ ##
25689 ## Report this to the AC_PACKAGE_NAME lists. ##
25690 ## ------------------------------------------ ##
25691 _ASBOX
25692 ) |
25693 sed "s/^/$as_me: WARNING: /" >&2
25694 ;;
25695 esac
25696 echo "$as_me:$LINENO: checking for $ac_header" >&5
25697 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25698 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25699 echo $ECHO_N "(cached) $ECHO_C" >&6
25700 else
25701 eval "$as_ac_Header=\$ac_header_preproc"
25702 fi
25703 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25704 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25705
25706 fi
25707 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25708 cat >>confdefs.h <<_ACEOF
25709 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25710 _ACEOF
25711
25712 fi
25713
25714 done
25715
25716
25717 for ac_header in sys/ioctl.h
25718 do
25719 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25720 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25721 echo "$as_me:$LINENO: checking for $ac_header" >&5
25722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25723 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25724 echo $ECHO_N "(cached) $ECHO_C" >&6
25725 fi
25726 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25727 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25728 else
25729 # Is the header compilable?
25730 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25731 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25732 cat >conftest.$ac_ext <<_ACEOF
25733 /* confdefs.h. */
25734 _ACEOF
25735 cat confdefs.h >>conftest.$ac_ext
25736 cat >>conftest.$ac_ext <<_ACEOF
25737 /* end confdefs.h. */
25738 $ac_includes_default
25739 #include <$ac_header>
25740 _ACEOF
25741 rm -f conftest.$ac_objext
25742 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25743 (eval $ac_compile) 2>conftest.er1
25744 ac_status=$?
25745 grep -v '^ *+' conftest.er1 >conftest.err
25746 rm -f conftest.er1
25747 cat conftest.err >&5
25748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25749 (exit $ac_status); } &&
25750 { ac_try='test -z "$ac_c_werror_flag"
25751 || test ! -s conftest.err'
25752 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25753 (eval $ac_try) 2>&5
25754 ac_status=$?
25755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25756 (exit $ac_status); }; } &&
25757 { ac_try='test -s conftest.$ac_objext'
25758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25759 (eval $ac_try) 2>&5
25760 ac_status=$?
25761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25762 (exit $ac_status); }; }; then
25763 ac_header_compiler=yes
25764 else
25765 echo "$as_me: failed program was:" >&5
25766 sed 's/^/| /' conftest.$ac_ext >&5
25767
25768 ac_header_compiler=no
25769 fi
25770 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25771 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25772 echo "${ECHO_T}$ac_header_compiler" >&6
25773
25774 # Is the header present?
25775 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25776 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25777 cat >conftest.$ac_ext <<_ACEOF
25778 /* confdefs.h. */
25779 _ACEOF
25780 cat confdefs.h >>conftest.$ac_ext
25781 cat >>conftest.$ac_ext <<_ACEOF
25782 /* end confdefs.h. */
25783 #include <$ac_header>
25784 _ACEOF
25785 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25786 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25787 ac_status=$?
25788 grep -v '^ *+' conftest.er1 >conftest.err
25789 rm -f conftest.er1
25790 cat conftest.err >&5
25791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25792 (exit $ac_status); } >/dev/null; then
25793 if test -s conftest.err; then
25794 ac_cpp_err=$ac_c_preproc_warn_flag
25795 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25796 else
25797 ac_cpp_err=
25798 fi
25799 else
25800 ac_cpp_err=yes
25801 fi
25802 if test -z "$ac_cpp_err"; then
25803 ac_header_preproc=yes
25804 else
25805 echo "$as_me: failed program was:" >&5
25806 sed 's/^/| /' conftest.$ac_ext >&5
25807
25808 ac_header_preproc=no
25809 fi
25810 rm -f conftest.err conftest.$ac_ext
25811 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25812 echo "${ECHO_T}$ac_header_preproc" >&6
25813
25814 # So? What about this header?
25815 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25816 yes:no: )
25817 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25818 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25819 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25820 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25821 ac_header_preproc=yes
25822 ;;
25823 no:yes:* )
25824 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25825 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25826 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25827 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25828 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25829 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25830 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25831 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25832 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25833 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25834 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25835 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25836 (
25837 cat <<\_ASBOX
25838 ## ------------------------------------------ ##
25839 ## Report this to the AC_PACKAGE_NAME lists. ##
25840 ## ------------------------------------------ ##
25841 _ASBOX
25842 ) |
25843 sed "s/^/$as_me: WARNING: /" >&2
25844 ;;
25845 esac
25846 echo "$as_me:$LINENO: checking for $ac_header" >&5
25847 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25848 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25849 echo $ECHO_N "(cached) $ECHO_C" >&6
25850 else
25851 eval "$as_ac_Header=\$ac_header_preproc"
25852 fi
25853 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25854 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25855
25856 fi
25857 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25858 cat >>confdefs.h <<_ACEOF
25859 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25860 _ACEOF
25861
25862 fi
25863
25864 done
25865
25866
25867 for ac_header in sys/fcntl.h
25868 do
25869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25870 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25871 echo "$as_me:$LINENO: checking for $ac_header" >&5
25872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25873 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25874 echo $ECHO_N "(cached) $ECHO_C" >&6
25875 fi
25876 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25877 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25878 else
25879 # Is the header compilable?
25880 echo "$as_me:$LINENO: checking $ac_header usability" >&5
25881 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
25882 cat >conftest.$ac_ext <<_ACEOF
25883 /* confdefs.h. */
25884 _ACEOF
25885 cat confdefs.h >>conftest.$ac_ext
25886 cat >>conftest.$ac_ext <<_ACEOF
25887 /* end confdefs.h. */
25888 $ac_includes_default
25889 #include <$ac_header>
25890 _ACEOF
25891 rm -f conftest.$ac_objext
25892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25893 (eval $ac_compile) 2>conftest.er1
25894 ac_status=$?
25895 grep -v '^ *+' conftest.er1 >conftest.err
25896 rm -f conftest.er1
25897 cat conftest.err >&5
25898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25899 (exit $ac_status); } &&
25900 { ac_try='test -z "$ac_c_werror_flag"
25901 || test ! -s conftest.err'
25902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25903 (eval $ac_try) 2>&5
25904 ac_status=$?
25905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25906 (exit $ac_status); }; } &&
25907 { ac_try='test -s conftest.$ac_objext'
25908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25909 (eval $ac_try) 2>&5
25910 ac_status=$?
25911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25912 (exit $ac_status); }; }; then
25913 ac_header_compiler=yes
25914 else
25915 echo "$as_me: failed program was:" >&5
25916 sed 's/^/| /' conftest.$ac_ext >&5
25917
25918 ac_header_compiler=no
25919 fi
25920 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25921 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25922 echo "${ECHO_T}$ac_header_compiler" >&6
25923
25924 # Is the header present?
25925 echo "$as_me:$LINENO: checking $ac_header presence" >&5
25926 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
25927 cat >conftest.$ac_ext <<_ACEOF
25928 /* confdefs.h. */
25929 _ACEOF
25930 cat confdefs.h >>conftest.$ac_ext
25931 cat >>conftest.$ac_ext <<_ACEOF
25932 /* end confdefs.h. */
25933 #include <$ac_header>
25934 _ACEOF
25935 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25936 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25937 ac_status=$?
25938 grep -v '^ *+' conftest.er1 >conftest.err
25939 rm -f conftest.er1
25940 cat conftest.err >&5
25941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25942 (exit $ac_status); } >/dev/null; then
25943 if test -s conftest.err; then
25944 ac_cpp_err=$ac_c_preproc_warn_flag
25945 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25946 else
25947 ac_cpp_err=
25948 fi
25949 else
25950 ac_cpp_err=yes
25951 fi
25952 if test -z "$ac_cpp_err"; then
25953 ac_header_preproc=yes
25954 else
25955 echo "$as_me: failed program was:" >&5
25956 sed 's/^/| /' conftest.$ac_ext >&5
25957
25958 ac_header_preproc=no
25959 fi
25960 rm -f conftest.err conftest.$ac_ext
25961 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25962 echo "${ECHO_T}$ac_header_preproc" >&6
25963
25964 # So? What about this header?
25965 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25966 yes:no: )
25967 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
25968 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
25969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
25970 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
25971 ac_header_preproc=yes
25972 ;;
25973 no:yes:* )
25974 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
25975 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
25976 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
25977 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
25978 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
25979 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
25980 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
25981 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
25982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
25983 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
25984 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
25985 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
25986 (
25987 cat <<\_ASBOX
25988 ## ------------------------------------------ ##
25989 ## Report this to the AC_PACKAGE_NAME lists. ##
25990 ## ------------------------------------------ ##
25991 _ASBOX
25992 ) |
25993 sed "s/^/$as_me: WARNING: /" >&2
25994 ;;
25995 esac
25996 echo "$as_me:$LINENO: checking for $ac_header" >&5
25997 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25998 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25999 echo $ECHO_N "(cached) $ECHO_C" >&6
26000 else
26001 eval "$as_ac_Header=\$ac_header_preproc"
26002 fi
26003 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26004 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26005
26006 fi
26007 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26008 cat >>confdefs.h <<_ACEOF
26009 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26010 _ACEOF
26011
26012 fi
26013
26014 done
26015
26016
26017 for ac_header in sndfile.h
26018 do
26019 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26020 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26021 echo "$as_me:$LINENO: checking for $ac_header" >&5
26022 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26023 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26024 echo $ECHO_N "(cached) $ECHO_C" >&6
26025 fi
26026 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26027 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26028 else
26029 # Is the header compilable?
26030 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26031 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26032 cat >conftest.$ac_ext <<_ACEOF
26033 /* confdefs.h. */
26034 _ACEOF
26035 cat confdefs.h >>conftest.$ac_ext
26036 cat >>conftest.$ac_ext <<_ACEOF
26037 /* end confdefs.h. */
26038 $ac_includes_default
26039 #include <$ac_header>
26040 _ACEOF
26041 rm -f conftest.$ac_objext
26042 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26043 (eval $ac_compile) 2>conftest.er1
26044 ac_status=$?
26045 grep -v '^ *+' conftest.er1 >conftest.err
26046 rm -f conftest.er1
26047 cat conftest.err >&5
26048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26049 (exit $ac_status); } &&
26050 { ac_try='test -z "$ac_c_werror_flag"
26051 || test ! -s conftest.err'
26052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26053 (eval $ac_try) 2>&5
26054 ac_status=$?
26055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26056 (exit $ac_status); }; } &&
26057 { ac_try='test -s conftest.$ac_objext'
26058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26059 (eval $ac_try) 2>&5
26060 ac_status=$?
26061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26062 (exit $ac_status); }; }; then
26063 ac_header_compiler=yes
26064 else
26065 echo "$as_me: failed program was:" >&5
26066 sed 's/^/| /' conftest.$ac_ext >&5
26067
26068 ac_header_compiler=no
26069 fi
26070 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26071 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26072 echo "${ECHO_T}$ac_header_compiler" >&6
26073
26074 # Is the header present?
26075 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26076 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26077 cat >conftest.$ac_ext <<_ACEOF
26078 /* confdefs.h. */
26079 _ACEOF
26080 cat confdefs.h >>conftest.$ac_ext
26081 cat >>conftest.$ac_ext <<_ACEOF
26082 /* end confdefs.h. */
26083 #include <$ac_header>
26084 _ACEOF
26085 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26086 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26087 ac_status=$?
26088 grep -v '^ *+' conftest.er1 >conftest.err
26089 rm -f conftest.er1
26090 cat conftest.err >&5
26091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26092 (exit $ac_status); } >/dev/null; then
26093 if test -s conftest.err; then
26094 ac_cpp_err=$ac_c_preproc_warn_flag
26095 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26096 else
26097 ac_cpp_err=
26098 fi
26099 else
26100 ac_cpp_err=yes
26101 fi
26102 if test -z "$ac_cpp_err"; then
26103 ac_header_preproc=yes
26104 else
26105 echo "$as_me: failed program was:" >&5
26106 sed 's/^/| /' conftest.$ac_ext >&5
26107
26108 ac_header_preproc=no
26109 fi
26110 rm -f conftest.err conftest.$ac_ext
26111 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26112 echo "${ECHO_T}$ac_header_preproc" >&6
26113
26114 # So? What about this header?
26115 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26116 yes:no: )
26117 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26118 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26119 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26120 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26121 ac_header_preproc=yes
26122 ;;
26123 no:yes:* )
26124 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26125 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26126 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26127 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26128 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26129 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26130 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26131 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26133 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26134 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26135 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26136 (
26137 cat <<\_ASBOX
26138 ## ------------------------------------------ ##
26139 ## Report this to the AC_PACKAGE_NAME lists. ##
26140 ## ------------------------------------------ ##
26141 _ASBOX
26142 ) |
26143 sed "s/^/$as_me: WARNING: /" >&2
26144 ;;
26145 esac
26146 echo "$as_me:$LINENO: checking for $ac_header" >&5
26147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26148 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26149 echo $ECHO_N "(cached) $ECHO_C" >&6
26150 else
26151 eval "$as_ac_Header=\$ac_header_preproc"
26152 fi
26153 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26154 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26155
26156 fi
26157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26158 cat >>confdefs.h <<_ACEOF
26159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26160 _ACEOF
26161
26162 fi
26163
26164 done
26165
26166
26167 for ac_header in fftw3.h
26168 do
26169 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26170 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26171 echo "$as_me:$LINENO: checking for $ac_header" >&5
26172 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26173 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26174 echo $ECHO_N "(cached) $ECHO_C" >&6
26175 fi
26176 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26177 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26178 else
26179 # Is the header compilable?
26180 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26182 cat >conftest.$ac_ext <<_ACEOF
26183 /* confdefs.h. */
26184 _ACEOF
26185 cat confdefs.h >>conftest.$ac_ext
26186 cat >>conftest.$ac_ext <<_ACEOF
26187 /* end confdefs.h. */
26188 $ac_includes_default
26189 #include <$ac_header>
26190 _ACEOF
26191 rm -f conftest.$ac_objext
26192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26193 (eval $ac_compile) 2>conftest.er1
26194 ac_status=$?
26195 grep -v '^ *+' conftest.er1 >conftest.err
26196 rm -f conftest.er1
26197 cat conftest.err >&5
26198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26199 (exit $ac_status); } &&
26200 { ac_try='test -z "$ac_c_werror_flag"
26201 || test ! -s conftest.err'
26202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26203 (eval $ac_try) 2>&5
26204 ac_status=$?
26205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26206 (exit $ac_status); }; } &&
26207 { ac_try='test -s conftest.$ac_objext'
26208 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26209 (eval $ac_try) 2>&5
26210 ac_status=$?
26211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26212 (exit $ac_status); }; }; then
26213 ac_header_compiler=yes
26214 else
26215 echo "$as_me: failed program was:" >&5
26216 sed 's/^/| /' conftest.$ac_ext >&5
26217
26218 ac_header_compiler=no
26219 fi
26220 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26221 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26222 echo "${ECHO_T}$ac_header_compiler" >&6
26223
26224 # Is the header present?
26225 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26226 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26227 cat >conftest.$ac_ext <<_ACEOF
26228 /* confdefs.h. */
26229 _ACEOF
26230 cat confdefs.h >>conftest.$ac_ext
26231 cat >>conftest.$ac_ext <<_ACEOF
26232 /* end confdefs.h. */
26233 #include <$ac_header>
26234 _ACEOF
26235 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26236 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26237 ac_status=$?
26238 grep -v '^ *+' conftest.er1 >conftest.err
26239 rm -f conftest.er1
26240 cat conftest.err >&5
26241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26242 (exit $ac_status); } >/dev/null; then
26243 if test -s conftest.err; then
26244 ac_cpp_err=$ac_c_preproc_warn_flag
26245 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26246 else
26247 ac_cpp_err=
26248 fi
26249 else
26250 ac_cpp_err=yes
26251 fi
26252 if test -z "$ac_cpp_err"; then
26253 ac_header_preproc=yes
26254 else
26255 echo "$as_me: failed program was:" >&5
26256 sed 's/^/| /' conftest.$ac_ext >&5
26257
26258 ac_header_preproc=no
26259 fi
26260 rm -f conftest.err conftest.$ac_ext
26261 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26262 echo "${ECHO_T}$ac_header_preproc" >&6
26263
26264 # So? What about this header?
26265 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26266 yes:no: )
26267 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26268 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26269 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26270 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26271 ac_header_preproc=yes
26272 ;;
26273 no:yes:* )
26274 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26275 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26276 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26277 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26278 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26279 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26280 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26281 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26283 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26284 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26285 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26286 (
26287 cat <<\_ASBOX
26288 ## ------------------------------------------ ##
26289 ## Report this to the AC_PACKAGE_NAME lists. ##
26290 ## ------------------------------------------ ##
26291 _ASBOX
26292 ) |
26293 sed "s/^/$as_me: WARNING: /" >&2
26294 ;;
26295 esac
26296 echo "$as_me:$LINENO: checking for $ac_header" >&5
26297 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26298 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26299 echo $ECHO_N "(cached) $ECHO_C" >&6
26300 else
26301 eval "$as_ac_Header=\$ac_header_preproc"
26302 fi
26303 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26304 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26305
26306 fi
26307 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26308 cat >>confdefs.h <<_ACEOF
26309 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26310 _ACEOF
26311
26312 else
26313
26314 for ac_header in fftw.h
26315 do
26316 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26317 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26318 echo "$as_me:$LINENO: checking for $ac_header" >&5
26319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26320 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26321 echo $ECHO_N "(cached) $ECHO_C" >&6
26322 fi
26323 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26324 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26325 else
26326 # Is the header compilable?
26327 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26328 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26329 cat >conftest.$ac_ext <<_ACEOF
26330 /* confdefs.h. */
26331 _ACEOF
26332 cat confdefs.h >>conftest.$ac_ext
26333 cat >>conftest.$ac_ext <<_ACEOF
26334 /* end confdefs.h. */
26335 $ac_includes_default
26336 #include <$ac_header>
26337 _ACEOF
26338 rm -f conftest.$ac_objext
26339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26340 (eval $ac_compile) 2>conftest.er1
26341 ac_status=$?
26342 grep -v '^ *+' conftest.er1 >conftest.err
26343 rm -f conftest.er1
26344 cat conftest.err >&5
26345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26346 (exit $ac_status); } &&
26347 { ac_try='test -z "$ac_c_werror_flag"
26348 || test ! -s conftest.err'
26349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26350 (eval $ac_try) 2>&5
26351 ac_status=$?
26352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26353 (exit $ac_status); }; } &&
26354 { ac_try='test -s conftest.$ac_objext'
26355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26356 (eval $ac_try) 2>&5
26357 ac_status=$?
26358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26359 (exit $ac_status); }; }; then
26360 ac_header_compiler=yes
26361 else
26362 echo "$as_me: failed program was:" >&5
26363 sed 's/^/| /' conftest.$ac_ext >&5
26364
26365 ac_header_compiler=no
26366 fi
26367 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26368 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26369 echo "${ECHO_T}$ac_header_compiler" >&6
26370
26371 # Is the header present?
26372 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26373 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26374 cat >conftest.$ac_ext <<_ACEOF
26375 /* confdefs.h. */
26376 _ACEOF
26377 cat confdefs.h >>conftest.$ac_ext
26378 cat >>conftest.$ac_ext <<_ACEOF
26379 /* end confdefs.h. */
26380 #include <$ac_header>
26381 _ACEOF
26382 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26383 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26384 ac_status=$?
26385 grep -v '^ *+' conftest.er1 >conftest.err
26386 rm -f conftest.er1
26387 cat conftest.err >&5
26388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26389 (exit $ac_status); } >/dev/null; then
26390 if test -s conftest.err; then
26391 ac_cpp_err=$ac_c_preproc_warn_flag
26392 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26393 else
26394 ac_cpp_err=
26395 fi
26396 else
26397 ac_cpp_err=yes
26398 fi
26399 if test -z "$ac_cpp_err"; then
26400 ac_header_preproc=yes
26401 else
26402 echo "$as_me: failed program was:" >&5
26403 sed 's/^/| /' conftest.$ac_ext >&5
26404
26405 ac_header_preproc=no
26406 fi
26407 rm -f conftest.err conftest.$ac_ext
26408 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26409 echo "${ECHO_T}$ac_header_preproc" >&6
26410
26411 # So? What about this header?
26412 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26413 yes:no: )
26414 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26415 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26417 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26418 ac_header_preproc=yes
26419 ;;
26420 no:yes:* )
26421 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26422 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26423 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26424 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26425 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26426 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26427 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26428 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26429 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26430 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26431 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26432 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26433 (
26434 cat <<\_ASBOX
26435 ## ------------------------------------------ ##
26436 ## Report this to the AC_PACKAGE_NAME lists. ##
26437 ## ------------------------------------------ ##
26438 _ASBOX
26439 ) |
26440 sed "s/^/$as_me: WARNING: /" >&2
26441 ;;
26442 esac
26443 echo "$as_me:$LINENO: checking for $ac_header" >&5
26444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26445 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26446 echo $ECHO_N "(cached) $ECHO_C" >&6
26447 else
26448 eval "$as_ac_Header=\$ac_header_preproc"
26449 fi
26450 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26451 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26452
26453 fi
26454 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26455 cat >>confdefs.h <<_ACEOF
26456 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26457 _ACEOF
26458
26459 fi
26460
26461 done
26462
26463 fi
26464
26465 done
26466
26467
26468 for ac_header in pthread.h
26469 do
26470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26472 echo "$as_me:$LINENO: checking for $ac_header" >&5
26473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26474 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26475 echo $ECHO_N "(cached) $ECHO_C" >&6
26476 fi
26477 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26478 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26479 else
26480 # Is the header compilable?
26481 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26483 cat >conftest.$ac_ext <<_ACEOF
26484 /* confdefs.h. */
26485 _ACEOF
26486 cat confdefs.h >>conftest.$ac_ext
26487 cat >>conftest.$ac_ext <<_ACEOF
26488 /* end confdefs.h. */
26489 $ac_includes_default
26490 #include <$ac_header>
26491 _ACEOF
26492 rm -f conftest.$ac_objext
26493 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26494 (eval $ac_compile) 2>conftest.er1
26495 ac_status=$?
26496 grep -v '^ *+' conftest.er1 >conftest.err
26497 rm -f conftest.er1
26498 cat conftest.err >&5
26499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26500 (exit $ac_status); } &&
26501 { ac_try='test -z "$ac_c_werror_flag"
26502 || test ! -s conftest.err'
26503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26504 (eval $ac_try) 2>&5
26505 ac_status=$?
26506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507 (exit $ac_status); }; } &&
26508 { ac_try='test -s conftest.$ac_objext'
26509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26510 (eval $ac_try) 2>&5
26511 ac_status=$?
26512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26513 (exit $ac_status); }; }; then
26514 ac_header_compiler=yes
26515 else
26516 echo "$as_me: failed program was:" >&5
26517 sed 's/^/| /' conftest.$ac_ext >&5
26518
26519 ac_header_compiler=no
26520 fi
26521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26522 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26523 echo "${ECHO_T}$ac_header_compiler" >&6
26524
26525 # Is the header present?
26526 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26528 cat >conftest.$ac_ext <<_ACEOF
26529 /* confdefs.h. */
26530 _ACEOF
26531 cat confdefs.h >>conftest.$ac_ext
26532 cat >>conftest.$ac_ext <<_ACEOF
26533 /* end confdefs.h. */
26534 #include <$ac_header>
26535 _ACEOF
26536 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26537 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26538 ac_status=$?
26539 grep -v '^ *+' conftest.er1 >conftest.err
26540 rm -f conftest.er1
26541 cat conftest.err >&5
26542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26543 (exit $ac_status); } >/dev/null; then
26544 if test -s conftest.err; then
26545 ac_cpp_err=$ac_c_preproc_warn_flag
26546 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26547 else
26548 ac_cpp_err=
26549 fi
26550 else
26551 ac_cpp_err=yes
26552 fi
26553 if test -z "$ac_cpp_err"; then
26554 ac_header_preproc=yes
26555 else
26556 echo "$as_me: failed program was:" >&5
26557 sed 's/^/| /' conftest.$ac_ext >&5
26558
26559 ac_header_preproc=no
26560 fi
26561 rm -f conftest.err conftest.$ac_ext
26562 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26563 echo "${ECHO_T}$ac_header_preproc" >&6
26564
26565 # So? What about this header?
26566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26567 yes:no: )
26568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26572 ac_header_preproc=yes
26573 ;;
26574 no:yes:* )
26575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26587 (
26588 cat <<\_ASBOX
26589 ## ------------------------------------------ ##
26590 ## Report this to the AC_PACKAGE_NAME lists. ##
26591 ## ------------------------------------------ ##
26592 _ASBOX
26593 ) |
26594 sed "s/^/$as_me: WARNING: /" >&2
26595 ;;
26596 esac
26597 echo "$as_me:$LINENO: checking for $ac_header" >&5
26598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26600 echo $ECHO_N "(cached) $ECHO_C" >&6
26601 else
26602 eval "$as_ac_Header=\$ac_header_preproc"
26603 fi
26604 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26605 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26606
26607 fi
26608 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26609 cat >>confdefs.h <<_ACEOF
26610 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26611 _ACEOF
26612
26613 fi
26614
26615 done
26616
26617 if test "${build}" == "${host}"
26618 then
26619
26620 for ac_header in X11/X.h
26621 do
26622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26623 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26624 echo "$as_me:$LINENO: checking for $ac_header" >&5
26625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26626 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26627 echo $ECHO_N "(cached) $ECHO_C" >&6
26628 fi
26629 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26630 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26631 else
26632 # Is the header compilable?
26633 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26634 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26635 cat >conftest.$ac_ext <<_ACEOF
26636 /* confdefs.h. */
26637 _ACEOF
26638 cat confdefs.h >>conftest.$ac_ext
26639 cat >>conftest.$ac_ext <<_ACEOF
26640 /* end confdefs.h. */
26641 $ac_includes_default
26642 #include <$ac_header>
26643 _ACEOF
26644 rm -f conftest.$ac_objext
26645 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26646 (eval $ac_compile) 2>conftest.er1
26647 ac_status=$?
26648 grep -v '^ *+' conftest.er1 >conftest.err
26649 rm -f conftest.er1
26650 cat conftest.err >&5
26651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26652 (exit $ac_status); } &&
26653 { ac_try='test -z "$ac_c_werror_flag"
26654 || test ! -s conftest.err'
26655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26656 (eval $ac_try) 2>&5
26657 ac_status=$?
26658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26659 (exit $ac_status); }; } &&
26660 { ac_try='test -s conftest.$ac_objext'
26661 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26662 (eval $ac_try) 2>&5
26663 ac_status=$?
26664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26665 (exit $ac_status); }; }; then
26666 ac_header_compiler=yes
26667 else
26668 echo "$as_me: failed program was:" >&5
26669 sed 's/^/| /' conftest.$ac_ext >&5
26670
26671 ac_header_compiler=no
26672 fi
26673 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26674 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26675 echo "${ECHO_T}$ac_header_compiler" >&6
26676
26677 # Is the header present?
26678 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26679 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26680 cat >conftest.$ac_ext <<_ACEOF
26681 /* confdefs.h. */
26682 _ACEOF
26683 cat confdefs.h >>conftest.$ac_ext
26684 cat >>conftest.$ac_ext <<_ACEOF
26685 /* end confdefs.h. */
26686 #include <$ac_header>
26687 _ACEOF
26688 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26689 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26690 ac_status=$?
26691 grep -v '^ *+' conftest.er1 >conftest.err
26692 rm -f conftest.er1
26693 cat conftest.err >&5
26694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26695 (exit $ac_status); } >/dev/null; then
26696 if test -s conftest.err; then
26697 ac_cpp_err=$ac_c_preproc_warn_flag
26698 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26699 else
26700 ac_cpp_err=
26701 fi
26702 else
26703 ac_cpp_err=yes
26704 fi
26705 if test -z "$ac_cpp_err"; then
26706 ac_header_preproc=yes
26707 else
26708 echo "$as_me: failed program was:" >&5
26709 sed 's/^/| /' conftest.$ac_ext >&5
26710
26711 ac_header_preproc=no
26712 fi
26713 rm -f conftest.err conftest.$ac_ext
26714 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26715 echo "${ECHO_T}$ac_header_preproc" >&6
26716
26717 # So? What about this header?
26718 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26719 yes:no: )
26720 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26721 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26723 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26724 ac_header_preproc=yes
26725 ;;
26726 no:yes:* )
26727 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26728 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26729 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26730 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26731 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26732 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26733 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26734 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26736 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26737 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
26738 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
26739 (
26740 cat <<\_ASBOX
26741 ## ------------------------------------------ ##
26742 ## Report this to the AC_PACKAGE_NAME lists. ##
26743 ## ------------------------------------------ ##
26744 _ASBOX
26745 ) |
26746 sed "s/^/$as_me: WARNING: /" >&2
26747 ;;
26748 esac
26749 echo "$as_me:$LINENO: checking for $ac_header" >&5
26750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26751 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26752 echo $ECHO_N "(cached) $ECHO_C" >&6
26753 else
26754 eval "$as_ac_Header=\$ac_header_preproc"
26755 fi
26756 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26757 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26758
26759 fi
26760 if test `eval echo '${'$as_ac_Header'}'` = yes; then
26761 cat >>confdefs.h <<_ACEOF
26762 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
26763 _ACEOF
26764
26765 fi
26766
26767 done
26768
26769 fi
26770
26771 # Determine XML2 include path
26772 echo "$as_me:$LINENO: checking for libxml/xmlmemory.h" >&5
26773 echo $ECHO_N "checking for libxml/xmlmemory.h... $ECHO_C" >&6
26774
26775 # Can we include headers using system include dirs?
26776 cat >conftest.$ac_ext <<_ACEOF
26777 /* confdefs.h. */
26778 _ACEOF
26779 cat confdefs.h >>conftest.$ac_ext
26780 cat >>conftest.$ac_ext <<_ACEOF
26781 /* end confdefs.h. */
26782 #include <libxml/xmlmemory.h>
26783 int
26784 main ()
26785 {
26786 int a = 1;
26787 ;
26788 return 0;
26789 }
26790 _ACEOF
26791 rm -f conftest.$ac_objext
26792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26793 (eval $ac_compile) 2>conftest.er1
26794 ac_status=$?
26795 grep -v '^ *+' conftest.er1 >conftest.err
26796 rm -f conftest.er1
26797 cat conftest.err >&5
26798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26799 (exit $ac_status); } &&
26800 { ac_try='test -z "$ac_c_werror_flag"
26801 || test ! -s conftest.err'
26802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26803 (eval $ac_try) 2>&5
26804 ac_status=$?
26805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26806 (exit $ac_status); }; } &&
26807 { ac_try='test -s conftest.$ac_objext'
26808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26809 (eval $ac_try) 2>&5
26810 ac_status=$?
26811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26812 (exit $ac_status); }; }; then
26813 XML2_INCLUDE=" "
26814 else
26815 echo "$as_me: failed program was:" >&5
26816 sed 's/^/| /' conftest.$ac_ext >&5
26817
26818 XML2_INCLUDE=
26819
26820 fi
26821 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26822
26823 # Hunt through several possible directories to find the includes for libxml2
26824 if test "x$XML2_INCLUDE" = "x"; then
26825 old_CPPFLAGS="$CPPFLAGS"
26826 for i in $xml2_include_dir /usr/include /usr/local/include /usr/include/libxml2 /usr/local/include/libxml2 ; do
26827 CPPFLAGS="$old_CPPFLAGS -I$i"
26828 cat >conftest.$ac_ext <<_ACEOF
26829 /* confdefs.h. */
26830 _ACEOF
26831 cat confdefs.h >>conftest.$ac_ext
26832 cat >>conftest.$ac_ext <<_ACEOF
26833 /* end confdefs.h. */
26834 #include <libxml/xmlmemory.h>
26835 int
26836 main ()
26837 {
26838 int a = 1;
26839 ;
26840 return 0;
26841 }
26842 _ACEOF
26843 rm -f conftest.$ac_objext
26844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26845 (eval $ac_compile) 2>conftest.er1
26846 ac_status=$?
26847 grep -v '^ *+' conftest.er1 >conftest.err
26848 rm -f conftest.er1
26849 cat conftest.err >&5
26850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26851 (exit $ac_status); } &&
26852 { ac_try='test -z "$ac_c_werror_flag"
26853 || test ! -s conftest.err'
26854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26855 (eval $ac_try) 2>&5
26856 ac_status=$?
26857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26858 (exit $ac_status); }; } &&
26859 { ac_try='test -s conftest.$ac_objext'
26860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26861 (eval $ac_try) 2>&5
26862 ac_status=$?
26863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26864 (exit $ac_status); }; }; then
26865 XML2_INCLUDE="-I$i"
26866 else
26867 echo "$as_me: failed program was:" >&5
26868 sed 's/^/| /' conftest.$ac_ext >&5
26869
26870 XML2_INCLUDE=
26871
26872 fi
26873 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26874 if test "x$XML2_INCLUDE" != "x"; then
26875 break;
26876 fi
26877 done
26878 CPPFLAGS="$old_CPPFLAGS $XML2_INCLUDE"
26879 fi
26880
26881
26882 for ac_header in libxml/xmlmemory.h
26883 do
26884 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
26885 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26886 echo "$as_me:$LINENO: checking for $ac_header" >&5
26887 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
26888 if eval "test \"\${$as_ac_Header+set}\" = set"; then
26889 echo $ECHO_N "(cached) $ECHO_C" >&6
26890 fi
26891 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
26892 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
26893 else
26894 # Is the header compilable?
26895 echo "$as_me:$LINENO: checking $ac_header usability" >&5
26896 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
26897 cat >conftest.$ac_ext <<_ACEOF
26898 /* confdefs.h. */
26899 _ACEOF
26900 cat confdefs.h >>conftest.$ac_ext
26901 cat >>conftest.$ac_ext <<_ACEOF
26902 /* end confdefs.h. */
26903 $ac_includes_default
26904 #include <$ac_header>
26905 _ACEOF
26906 rm -f conftest.$ac_objext
26907 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26908 (eval $ac_compile) 2>conftest.er1
26909 ac_status=$?
26910 grep -v '^ *+' conftest.er1 >conftest.err
26911 rm -f conftest.er1
26912 cat conftest.err >&5
26913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26914 (exit $ac_status); } &&
26915 { ac_try='test -z "$ac_c_werror_flag"
26916 || test ! -s conftest.err'
26917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26918 (eval $ac_try) 2>&5
26919 ac_status=$?
26920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26921 (exit $ac_status); }; } &&
26922 { ac_try='test -s conftest.$ac_objext'
26923 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26924 (eval $ac_try) 2>&5
26925 ac_status=$?
26926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26927 (exit $ac_status); }; }; then
26928 ac_header_compiler=yes
26929 else
26930 echo "$as_me: failed program was:" >&5
26931 sed 's/^/| /' conftest.$ac_ext >&5
26932
26933 ac_header_compiler=no
26934 fi
26935 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26936 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26937 echo "${ECHO_T}$ac_header_compiler" >&6
26938
26939 # Is the header present?
26940 echo "$as_me:$LINENO: checking $ac_header presence" >&5
26941 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
26942 cat >conftest.$ac_ext <<_ACEOF
26943 /* confdefs.h. */
26944 _ACEOF
26945 cat confdefs.h >>conftest.$ac_ext
26946 cat >>conftest.$ac_ext <<_ACEOF
26947 /* end confdefs.h. */
26948 #include <$ac_header>
26949 _ACEOF
26950 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26951 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26952 ac_status=$?
26953 grep -v '^ *+' conftest.er1 >conftest.err
26954 rm -f conftest.er1
26955 cat conftest.err >&5
26956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26957 (exit $ac_status); } >/dev/null; then
26958 if test -s conftest.err; then
26959 ac_cpp_err=$ac_c_preproc_warn_flag
26960 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26961 else
26962 ac_cpp_err=
26963 fi
26964 else
26965 ac_cpp_err=yes
26966 fi
26967 if test -z "$ac_cpp_err"; then
26968 ac_header_preproc=yes
26969 else
26970 echo "$as_me: failed program was:" >&5
26971 sed 's/^/| /' conftest.$ac_ext >&5
26972
26973 ac_header_preproc=no
26974 fi
26975 rm -f conftest.err conftest.$ac_ext
26976 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26977 echo "${ECHO_T}$ac_header_preproc" >&6
26978
26979 # So? What about this header?
26980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26981 yes:no: )
26982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
26983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
26984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
26985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
26986 ac_header_preproc=yes
26987 ;;
26988 no:yes:* )
26989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
26990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
26991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
26992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
26993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
26994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
26995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
26996 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
26997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
26998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
26999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27001 (
27002 cat <<\_ASBOX
27003 ## ------------------------------------------ ##
27004 ## Report this to the AC_PACKAGE_NAME lists. ##
27005 ## ------------------------------------------ ##
27006 _ASBOX
27007 ) |
27008 sed "s/^/$as_me: WARNING: /" >&2
27009 ;;
27010 esac
27011 echo "$as_me:$LINENO: checking for $ac_header" >&5
27012 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27013 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27014 echo $ECHO_N "(cached) $ECHO_C" >&6
27015 else
27016 eval "$as_ac_Header=\$ac_header_preproc"
27017 fi
27018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27020
27021 fi
27022 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27023 cat >>confdefs.h <<_ACEOF
27024 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27025 _ACEOF
27026
27027 fi
27028
27029 done
27030
27031
27032 for ac_header in libxml/parser.h
27033 do
27034 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27035 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27036 echo "$as_me:$LINENO: checking for $ac_header" >&5
27037 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27038 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27039 echo $ECHO_N "(cached) $ECHO_C" >&6
27040 fi
27041 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27042 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27043 else
27044 # Is the header compilable?
27045 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27047 cat >conftest.$ac_ext <<_ACEOF
27048 /* confdefs.h. */
27049 _ACEOF
27050 cat confdefs.h >>conftest.$ac_ext
27051 cat >>conftest.$ac_ext <<_ACEOF
27052 /* end confdefs.h. */
27053 $ac_includes_default
27054 #include <$ac_header>
27055 _ACEOF
27056 rm -f conftest.$ac_objext
27057 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27058 (eval $ac_compile) 2>conftest.er1
27059 ac_status=$?
27060 grep -v '^ *+' conftest.er1 >conftest.err
27061 rm -f conftest.er1
27062 cat conftest.err >&5
27063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27064 (exit $ac_status); } &&
27065 { ac_try='test -z "$ac_c_werror_flag"
27066 || test ! -s conftest.err'
27067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27068 (eval $ac_try) 2>&5
27069 ac_status=$?
27070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27071 (exit $ac_status); }; } &&
27072 { ac_try='test -s conftest.$ac_objext'
27073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27074 (eval $ac_try) 2>&5
27075 ac_status=$?
27076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27077 (exit $ac_status); }; }; then
27078 ac_header_compiler=yes
27079 else
27080 echo "$as_me: failed program was:" >&5
27081 sed 's/^/| /' conftest.$ac_ext >&5
27082
27083 ac_header_compiler=no
27084 fi
27085 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27086 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27087 echo "${ECHO_T}$ac_header_compiler" >&6
27088
27089 # Is the header present?
27090 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27091 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27092 cat >conftest.$ac_ext <<_ACEOF
27093 /* confdefs.h. */
27094 _ACEOF
27095 cat confdefs.h >>conftest.$ac_ext
27096 cat >>conftest.$ac_ext <<_ACEOF
27097 /* end confdefs.h. */
27098 #include <$ac_header>
27099 _ACEOF
27100 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27101 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27102 ac_status=$?
27103 grep -v '^ *+' conftest.er1 >conftest.err
27104 rm -f conftest.er1
27105 cat conftest.err >&5
27106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27107 (exit $ac_status); } >/dev/null; then
27108 if test -s conftest.err; then
27109 ac_cpp_err=$ac_c_preproc_warn_flag
27110 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27111 else
27112 ac_cpp_err=
27113 fi
27114 else
27115 ac_cpp_err=yes
27116 fi
27117 if test -z "$ac_cpp_err"; then
27118 ac_header_preproc=yes
27119 else
27120 echo "$as_me: failed program was:" >&5
27121 sed 's/^/| /' conftest.$ac_ext >&5
27122
27123 ac_header_preproc=no
27124 fi
27125 rm -f conftest.err conftest.$ac_ext
27126 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27127 echo "${ECHO_T}$ac_header_preproc" >&6
27128
27129 # So? What about this header?
27130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27131 yes:no: )
27132 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27133 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27134 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27135 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27136 ac_header_preproc=yes
27137 ;;
27138 no:yes:* )
27139 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27140 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27141 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27142 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27143 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27144 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27145 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27146 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27147 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27148 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27149 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27150 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27151 (
27152 cat <<\_ASBOX
27153 ## ------------------------------------------ ##
27154 ## Report this to the AC_PACKAGE_NAME lists. ##
27155 ## ------------------------------------------ ##
27156 _ASBOX
27157 ) |
27158 sed "s/^/$as_me: WARNING: /" >&2
27159 ;;
27160 esac
27161 echo "$as_me:$LINENO: checking for $ac_header" >&5
27162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27163 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27164 echo $ECHO_N "(cached) $ECHO_C" >&6
27165 else
27166 eval "$as_ac_Header=\$ac_header_preproc"
27167 fi
27168 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27169 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27170
27171 fi
27172 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27173 cat >>confdefs.h <<_ACEOF
27174 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27175 _ACEOF
27176
27177 fi
27178
27179 done
27180
27181
27182 for ac_header in libxml/xinclude.h
27183 do
27184 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27185 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27186 echo "$as_me:$LINENO: checking for $ac_header" >&5
27187 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27188 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27189 echo $ECHO_N "(cached) $ECHO_C" >&6
27190 fi
27191 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27192 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27193 else
27194 # Is the header compilable?
27195 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27196 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27197 cat >conftest.$ac_ext <<_ACEOF
27198 /* confdefs.h. */
27199 _ACEOF
27200 cat confdefs.h >>conftest.$ac_ext
27201 cat >>conftest.$ac_ext <<_ACEOF
27202 /* end confdefs.h. */
27203 $ac_includes_default
27204 #include <$ac_header>
27205 _ACEOF
27206 rm -f conftest.$ac_objext
27207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27208 (eval $ac_compile) 2>conftest.er1
27209 ac_status=$?
27210 grep -v '^ *+' conftest.er1 >conftest.err
27211 rm -f conftest.er1
27212 cat conftest.err >&5
27213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214 (exit $ac_status); } &&
27215 { ac_try='test -z "$ac_c_werror_flag"
27216 || test ! -s conftest.err'
27217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27218 (eval $ac_try) 2>&5
27219 ac_status=$?
27220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27221 (exit $ac_status); }; } &&
27222 { ac_try='test -s conftest.$ac_objext'
27223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27224 (eval $ac_try) 2>&5
27225 ac_status=$?
27226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27227 (exit $ac_status); }; }; then
27228 ac_header_compiler=yes
27229 else
27230 echo "$as_me: failed program was:" >&5
27231 sed 's/^/| /' conftest.$ac_ext >&5
27232
27233 ac_header_compiler=no
27234 fi
27235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27236 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27237 echo "${ECHO_T}$ac_header_compiler" >&6
27238
27239 # Is the header present?
27240 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27242 cat >conftest.$ac_ext <<_ACEOF
27243 /* confdefs.h. */
27244 _ACEOF
27245 cat confdefs.h >>conftest.$ac_ext
27246 cat >>conftest.$ac_ext <<_ACEOF
27247 /* end confdefs.h. */
27248 #include <$ac_header>
27249 _ACEOF
27250 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27251 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27252 ac_status=$?
27253 grep -v '^ *+' conftest.er1 >conftest.err
27254 rm -f conftest.er1
27255 cat conftest.err >&5
27256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257 (exit $ac_status); } >/dev/null; then
27258 if test -s conftest.err; then
27259 ac_cpp_err=$ac_c_preproc_warn_flag
27260 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
27261 else
27262 ac_cpp_err=
27263 fi
27264 else
27265 ac_cpp_err=yes
27266 fi
27267 if test -z "$ac_cpp_err"; then
27268 ac_header_preproc=yes
27269 else
27270 echo "$as_me: failed program was:" >&5
27271 sed 's/^/| /' conftest.$ac_ext >&5
27272
27273 ac_header_preproc=no
27274 fi
27275 rm -f conftest.err conftest.$ac_ext
27276 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27277 echo "${ECHO_T}$ac_header_preproc" >&6
27278
27279 # So? What about this header?
27280 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
27281 yes:no: )
27282 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27283 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27285 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27286 ac_header_preproc=yes
27287 ;;
27288 no:yes:* )
27289 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27290 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27291 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27292 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27293 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27294 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27295 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27296 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27297 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27298 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27299 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27300 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27301 (
27302 cat <<\_ASBOX
27303 ## ------------------------------------------ ##
27304 ## Report this to the AC_PACKAGE_NAME lists. ##
27305 ## ------------------------------------------ ##
27306 _ASBOX
27307 ) |
27308 sed "s/^/$as_me: WARNING: /" >&2
27309 ;;
27310 esac
27311 echo "$as_me:$LINENO: checking for $ac_header" >&5
27312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27313 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27314 echo $ECHO_N "(cached) $ECHO_C" >&6
27315 else
27316 eval "$as_ac_Header=\$ac_header_preproc"
27317 fi
27318 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27319 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27320
27321 fi
27322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27323 cat >>confdefs.h <<_ACEOF
27324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27325 _ACEOF
27326
27327 fi
27328
27329 done
27330
27331
27332 ac_ext=cc
27333 ac_cpp='$CXXCPP $CPPFLAGS'
27334 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
27335 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
27336 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
27337
27338
27339
27340 for ac_header in FL/Fl.H
27341 do
27342 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27343 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27344 echo "$as_me:$LINENO: checking for $ac_header" >&5
27345 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27346 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27347 echo $ECHO_N "(cached) $ECHO_C" >&6
27348 fi
27349 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27350 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27351 else
27352 # Is the header compilable?
27353 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27354 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27355 cat >conftest.$ac_ext <<_ACEOF
27356 /* confdefs.h. */
27357 _ACEOF
27358 cat confdefs.h >>conftest.$ac_ext
27359 cat >>conftest.$ac_ext <<_ACEOF
27360 /* end confdefs.h. */
27361 $ac_includes_default
27362 #include <$ac_header>
27363 _ACEOF
27364 rm -f conftest.$ac_objext
27365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27366 (eval $ac_compile) 2>conftest.er1
27367 ac_status=$?
27368 grep -v '^ *+' conftest.er1 >conftest.err
27369 rm -f conftest.er1
27370 cat conftest.err >&5
27371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27372 (exit $ac_status); } &&
27373 { ac_try='test -z "$ac_cxx_werror_flag"
27374 || test ! -s conftest.err'
27375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27376 (eval $ac_try) 2>&5
27377 ac_status=$?
27378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27379 (exit $ac_status); }; } &&
27380 { ac_try='test -s conftest.$ac_objext'
27381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27382 (eval $ac_try) 2>&5
27383 ac_status=$?
27384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27385 (exit $ac_status); }; }; then
27386 ac_header_compiler=yes
27387 else
27388 echo "$as_me: failed program was:" >&5
27389 sed 's/^/| /' conftest.$ac_ext >&5
27390
27391 ac_header_compiler=no
27392 fi
27393 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27394 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27395 echo "${ECHO_T}$ac_header_compiler" >&6
27396
27397 # Is the header present?
27398 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27400 cat >conftest.$ac_ext <<_ACEOF
27401 /* confdefs.h. */
27402 _ACEOF
27403 cat confdefs.h >>conftest.$ac_ext
27404 cat >>conftest.$ac_ext <<_ACEOF
27405 /* end confdefs.h. */
27406 #include <$ac_header>
27407 _ACEOF
27408 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27409 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27410 ac_status=$?
27411 grep -v '^ *+' conftest.er1 >conftest.err
27412 rm -f conftest.er1
27413 cat conftest.err >&5
27414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27415 (exit $ac_status); } >/dev/null; then
27416 if test -s conftest.err; then
27417 ac_cpp_err=$ac_cxx_preproc_warn_flag
27418 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27419 else
27420 ac_cpp_err=
27421 fi
27422 else
27423 ac_cpp_err=yes
27424 fi
27425 if test -z "$ac_cpp_err"; then
27426 ac_header_preproc=yes
27427 else
27428 echo "$as_me: failed program was:" >&5
27429 sed 's/^/| /' conftest.$ac_ext >&5
27430
27431 ac_header_preproc=no
27432 fi
27433 rm -f conftest.err conftest.$ac_ext
27434 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27435 echo "${ECHO_T}$ac_header_preproc" >&6
27436
27437 # So? What about this header?
27438 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27439 yes:no: )
27440 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27441 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27442 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27443 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27444 ac_header_preproc=yes
27445 ;;
27446 no:yes:* )
27447 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27448 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27449 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27450 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27451 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27452 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27453 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27454 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27456 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27457 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27458 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27459 (
27460 cat <<\_ASBOX
27461 ## ------------------------------------------ ##
27462 ## Report this to the AC_PACKAGE_NAME lists. ##
27463 ## ------------------------------------------ ##
27464 _ASBOX
27465 ) |
27466 sed "s/^/$as_me: WARNING: /" >&2
27467 ;;
27468 esac
27469 echo "$as_me:$LINENO: checking for $ac_header" >&5
27470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27471 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27472 echo $ECHO_N "(cached) $ECHO_C" >&6
27473 else
27474 eval "$as_ac_Header=\$ac_header_preproc"
27475 fi
27476 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27477 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27478
27479 fi
27480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27481 cat >>confdefs.h <<_ACEOF
27482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27483 _ACEOF
27484
27485 fi
27486
27487 done
27488
27489
27490 for ac_header in FL/Fl_Overlay_Window.H
27491 do
27492 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27493 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27494 echo "$as_me:$LINENO: checking for $ac_header" >&5
27495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27496 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27497 echo $ECHO_N "(cached) $ECHO_C" >&6
27498 fi
27499 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27500 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27501 else
27502 # Is the header compilable?
27503 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27504 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27505 cat >conftest.$ac_ext <<_ACEOF
27506 /* confdefs.h. */
27507 _ACEOF
27508 cat confdefs.h >>conftest.$ac_ext
27509 cat >>conftest.$ac_ext <<_ACEOF
27510 /* end confdefs.h. */
27511 $ac_includes_default
27512 #include <$ac_header>
27513 _ACEOF
27514 rm -f conftest.$ac_objext
27515 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27516 (eval $ac_compile) 2>conftest.er1
27517 ac_status=$?
27518 grep -v '^ *+' conftest.er1 >conftest.err
27519 rm -f conftest.er1
27520 cat conftest.err >&5
27521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27522 (exit $ac_status); } &&
27523 { ac_try='test -z "$ac_cxx_werror_flag"
27524 || test ! -s conftest.err'
27525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27526 (eval $ac_try) 2>&5
27527 ac_status=$?
27528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27529 (exit $ac_status); }; } &&
27530 { ac_try='test -s conftest.$ac_objext'
27531 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27532 (eval $ac_try) 2>&5
27533 ac_status=$?
27534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27535 (exit $ac_status); }; }; then
27536 ac_header_compiler=yes
27537 else
27538 echo "$as_me: failed program was:" >&5
27539 sed 's/^/| /' conftest.$ac_ext >&5
27540
27541 ac_header_compiler=no
27542 fi
27543 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27544 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27545 echo "${ECHO_T}$ac_header_compiler" >&6
27546
27547 # Is the header present?
27548 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27549 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27550 cat >conftest.$ac_ext <<_ACEOF
27551 /* confdefs.h. */
27552 _ACEOF
27553 cat confdefs.h >>conftest.$ac_ext
27554 cat >>conftest.$ac_ext <<_ACEOF
27555 /* end confdefs.h. */
27556 #include <$ac_header>
27557 _ACEOF
27558 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27559 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27560 ac_status=$?
27561 grep -v '^ *+' conftest.er1 >conftest.err
27562 rm -f conftest.er1
27563 cat conftest.err >&5
27564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27565 (exit $ac_status); } >/dev/null; then
27566 if test -s conftest.err; then
27567 ac_cpp_err=$ac_cxx_preproc_warn_flag
27568 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27569 else
27570 ac_cpp_err=
27571 fi
27572 else
27573 ac_cpp_err=yes
27574 fi
27575 if test -z "$ac_cpp_err"; then
27576 ac_header_preproc=yes
27577 else
27578 echo "$as_me: failed program was:" >&5
27579 sed 's/^/| /' conftest.$ac_ext >&5
27580
27581 ac_header_preproc=no
27582 fi
27583 rm -f conftest.err conftest.$ac_ext
27584 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27585 echo "${ECHO_T}$ac_header_preproc" >&6
27586
27587 # So? What about this header?
27588 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27589 yes:no: )
27590 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27591 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27593 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27594 ac_header_preproc=yes
27595 ;;
27596 no:yes:* )
27597 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27598 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27599 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27600 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27601 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27602 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27603 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27604 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27605 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27606 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27607 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27608 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27609 (
27610 cat <<\_ASBOX
27611 ## ------------------------------------------ ##
27612 ## Report this to the AC_PACKAGE_NAME lists. ##
27613 ## ------------------------------------------ ##
27614 _ASBOX
27615 ) |
27616 sed "s/^/$as_me: WARNING: /" >&2
27617 ;;
27618 esac
27619 echo "$as_me:$LINENO: checking for $ac_header" >&5
27620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27621 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27622 echo $ECHO_N "(cached) $ECHO_C" >&6
27623 else
27624 eval "$as_ac_Header=\$ac_header_preproc"
27625 fi
27626 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27627 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27628
27629 fi
27630 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27631 cat >>confdefs.h <<_ACEOF
27632 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27633 _ACEOF
27634
27635 fi
27636
27637 done
27638
27639
27640 for ac_header in FL/Fl_Light_Button.H
27641 do
27642 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27643 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27644 echo "$as_me:$LINENO: checking for $ac_header" >&5
27645 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27646 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27647 echo $ECHO_N "(cached) $ECHO_C" >&6
27648 fi
27649 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27650 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27651 else
27652 # Is the header compilable?
27653 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27654 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27655 cat >conftest.$ac_ext <<_ACEOF
27656 /* confdefs.h. */
27657 _ACEOF
27658 cat confdefs.h >>conftest.$ac_ext
27659 cat >>conftest.$ac_ext <<_ACEOF
27660 /* end confdefs.h. */
27661 $ac_includes_default
27662 #include <$ac_header>
27663 _ACEOF
27664 rm -f conftest.$ac_objext
27665 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27666 (eval $ac_compile) 2>conftest.er1
27667 ac_status=$?
27668 grep -v '^ *+' conftest.er1 >conftest.err
27669 rm -f conftest.er1
27670 cat conftest.err >&5
27671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27672 (exit $ac_status); } &&
27673 { ac_try='test -z "$ac_cxx_werror_flag"
27674 || test ! -s conftest.err'
27675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27676 (eval $ac_try) 2>&5
27677 ac_status=$?
27678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27679 (exit $ac_status); }; } &&
27680 { ac_try='test -s conftest.$ac_objext'
27681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27682 (eval $ac_try) 2>&5
27683 ac_status=$?
27684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27685 (exit $ac_status); }; }; then
27686 ac_header_compiler=yes
27687 else
27688 echo "$as_me: failed program was:" >&5
27689 sed 's/^/| /' conftest.$ac_ext >&5
27690
27691 ac_header_compiler=no
27692 fi
27693 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27694 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27695 echo "${ECHO_T}$ac_header_compiler" >&6
27696
27697 # Is the header present?
27698 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27699 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27700 cat >conftest.$ac_ext <<_ACEOF
27701 /* confdefs.h. */
27702 _ACEOF
27703 cat confdefs.h >>conftest.$ac_ext
27704 cat >>conftest.$ac_ext <<_ACEOF
27705 /* end confdefs.h. */
27706 #include <$ac_header>
27707 _ACEOF
27708 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27709 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27710 ac_status=$?
27711 grep -v '^ *+' conftest.er1 >conftest.err
27712 rm -f conftest.er1
27713 cat conftest.err >&5
27714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27715 (exit $ac_status); } >/dev/null; then
27716 if test -s conftest.err; then
27717 ac_cpp_err=$ac_cxx_preproc_warn_flag
27718 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27719 else
27720 ac_cpp_err=
27721 fi
27722 else
27723 ac_cpp_err=yes
27724 fi
27725 if test -z "$ac_cpp_err"; then
27726 ac_header_preproc=yes
27727 else
27728 echo "$as_me: failed program was:" >&5
27729 sed 's/^/| /' conftest.$ac_ext >&5
27730
27731 ac_header_preproc=no
27732 fi
27733 rm -f conftest.err conftest.$ac_ext
27734 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27735 echo "${ECHO_T}$ac_header_preproc" >&6
27736
27737 # So? What about this header?
27738 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27739 yes:no: )
27740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27744 ac_header_preproc=yes
27745 ;;
27746 no:yes:* )
27747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27759 (
27760 cat <<\_ASBOX
27761 ## ------------------------------------------ ##
27762 ## Report this to the AC_PACKAGE_NAME lists. ##
27763 ## ------------------------------------------ ##
27764 _ASBOX
27765 ) |
27766 sed "s/^/$as_me: WARNING: /" >&2
27767 ;;
27768 esac
27769 echo "$as_me:$LINENO: checking for $ac_header" >&5
27770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27771 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27772 echo $ECHO_N "(cached) $ECHO_C" >&6
27773 else
27774 eval "$as_ac_Header=\$ac_header_preproc"
27775 fi
27776 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27777 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27778
27779 fi
27780 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27781 cat >>confdefs.h <<_ACEOF
27782 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27783 _ACEOF
27784
27785 fi
27786
27787 done
27788
27789
27790 for ac_header in FL/fl_draw.H
27791 do
27792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27793 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27794 echo "$as_me:$LINENO: checking for $ac_header" >&5
27795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27796 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27797 echo $ECHO_N "(cached) $ECHO_C" >&6
27798 fi
27799 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27800 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27801 else
27802 # Is the header compilable?
27803 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27805 cat >conftest.$ac_ext <<_ACEOF
27806 /* confdefs.h. */
27807 _ACEOF
27808 cat confdefs.h >>conftest.$ac_ext
27809 cat >>conftest.$ac_ext <<_ACEOF
27810 /* end confdefs.h. */
27811 $ac_includes_default
27812 #include <$ac_header>
27813 _ACEOF
27814 rm -f conftest.$ac_objext
27815 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27816 (eval $ac_compile) 2>conftest.er1
27817 ac_status=$?
27818 grep -v '^ *+' conftest.er1 >conftest.err
27819 rm -f conftest.er1
27820 cat conftest.err >&5
27821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27822 (exit $ac_status); } &&
27823 { ac_try='test -z "$ac_cxx_werror_flag"
27824 || test ! -s conftest.err'
27825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27826 (eval $ac_try) 2>&5
27827 ac_status=$?
27828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27829 (exit $ac_status); }; } &&
27830 { ac_try='test -s conftest.$ac_objext'
27831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27832 (eval $ac_try) 2>&5
27833 ac_status=$?
27834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27835 (exit $ac_status); }; }; then
27836 ac_header_compiler=yes
27837 else
27838 echo "$as_me: failed program was:" >&5
27839 sed 's/^/| /' conftest.$ac_ext >&5
27840
27841 ac_header_compiler=no
27842 fi
27843 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27844 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27845 echo "${ECHO_T}$ac_header_compiler" >&6
27846
27847 # Is the header present?
27848 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
27850 cat >conftest.$ac_ext <<_ACEOF
27851 /* confdefs.h. */
27852 _ACEOF
27853 cat confdefs.h >>conftest.$ac_ext
27854 cat >>conftest.$ac_ext <<_ACEOF
27855 /* end confdefs.h. */
27856 #include <$ac_header>
27857 _ACEOF
27858 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
27859 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
27860 ac_status=$?
27861 grep -v '^ *+' conftest.er1 >conftest.err
27862 rm -f conftest.er1
27863 cat conftest.err >&5
27864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27865 (exit $ac_status); } >/dev/null; then
27866 if test -s conftest.err; then
27867 ac_cpp_err=$ac_cxx_preproc_warn_flag
27868 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
27869 else
27870 ac_cpp_err=
27871 fi
27872 else
27873 ac_cpp_err=yes
27874 fi
27875 if test -z "$ac_cpp_err"; then
27876 ac_header_preproc=yes
27877 else
27878 echo "$as_me: failed program was:" >&5
27879 sed 's/^/| /' conftest.$ac_ext >&5
27880
27881 ac_header_preproc=no
27882 fi
27883 rm -f conftest.err conftest.$ac_ext
27884 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
27885 echo "${ECHO_T}$ac_header_preproc" >&6
27886
27887 # So? What about this header?
27888 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
27889 yes:no: )
27890 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
27891 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
27892 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
27893 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
27894 ac_header_preproc=yes
27895 ;;
27896 no:yes:* )
27897 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
27898 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
27899 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
27900 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
27901 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
27902 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
27903 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
27904 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
27905 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
27906 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
27907 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
27908 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
27909 (
27910 cat <<\_ASBOX
27911 ## ------------------------------------------ ##
27912 ## Report this to the AC_PACKAGE_NAME lists. ##
27913 ## ------------------------------------------ ##
27914 _ASBOX
27915 ) |
27916 sed "s/^/$as_me: WARNING: /" >&2
27917 ;;
27918 esac
27919 echo "$as_me:$LINENO: checking for $ac_header" >&5
27920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27921 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27922 echo $ECHO_N "(cached) $ECHO_C" >&6
27923 else
27924 eval "$as_ac_Header=\$ac_header_preproc"
27925 fi
27926 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27927 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27928
27929 fi
27930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
27931 cat >>confdefs.h <<_ACEOF
27932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
27933 _ACEOF
27934
27935 fi
27936
27937 done
27938
27939
27940 for ac_header in FL/Fl_Cartesian.H
27941 do
27942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
27943 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27944 echo "$as_me:$LINENO: checking for $ac_header" >&5
27945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
27946 if eval "test \"\${$as_ac_Header+set}\" = set"; then
27947 echo $ECHO_N "(cached) $ECHO_C" >&6
27948 fi
27949 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
27950 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
27951 else
27952 # Is the header compilable?
27953 echo "$as_me:$LINENO: checking $ac_header usability" >&5
27954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
27955 cat >conftest.$ac_ext <<_ACEOF
27956 /* confdefs.h. */
27957 _ACEOF
27958 cat confdefs.h >>conftest.$ac_ext
27959 cat >>conftest.$ac_ext <<_ACEOF
27960 /* end confdefs.h. */
27961 $ac_includes_default
27962 #include <$ac_header>
27963 _ACEOF
27964 rm -f conftest.$ac_objext
27965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27966 (eval $ac_compile) 2>conftest.er1
27967 ac_status=$?
27968 grep -v '^ *+' conftest.er1 >conftest.err
27969 rm -f conftest.er1
27970 cat conftest.err >&5
27971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27972 (exit $ac_status); } &&
27973 { ac_try='test -z "$ac_cxx_werror_flag"
27974 || test ! -s conftest.err'
27975 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27976 (eval $ac_try) 2>&5
27977 ac_status=$?
27978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27979 (exit $ac_status); }; } &&
27980 { ac_try='test -s conftest.$ac_objext'
27981 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27982 (eval $ac_try) 2>&5
27983 ac_status=$?
27984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27985 (exit $ac_status); }; }; then
27986 ac_header_compiler=yes
27987 else
27988 echo "$as_me: failed program was:" >&5
27989 sed 's/^/| /' conftest.$ac_ext >&5
27990
27991 ac_header_compiler=no
27992 fi
27993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27994 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
27995 echo "${ECHO_T}$ac_header_compiler" >&6
27996
27997 # Is the header present?
27998 echo "$as_me:$LINENO: checking $ac_header presence" >&5
27999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28000 cat >conftest.$ac_ext <<_ACEOF
28001 /* confdefs.h. */
28002 _ACEOF
28003 cat confdefs.h >>conftest.$ac_ext
28004 cat >>conftest.$ac_ext <<_ACEOF
28005 /* end confdefs.h. */
28006 #include <$ac_header>
28007 _ACEOF
28008 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28009 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28010 ac_status=$?
28011 grep -v '^ *+' conftest.er1 >conftest.err
28012 rm -f conftest.er1
28013 cat conftest.err >&5
28014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28015 (exit $ac_status); } >/dev/null; then
28016 if test -s conftest.err; then
28017 ac_cpp_err=$ac_cxx_preproc_warn_flag
28018 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
28019 else
28020 ac_cpp_err=
28021 fi
28022 else
28023 ac_cpp_err=yes
28024 fi
28025 if test -z "$ac_cpp_err"; then
28026 ac_header_preproc=yes
28027 else
28028 echo "$as_me: failed program was:" >&5
28029 sed 's/^/| /' conftest.$ac_ext >&5
28030
28031 ac_header_preproc=no
28032 fi
28033 rm -f conftest.err conftest.$ac_ext
28034 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28035 echo "${ECHO_T}$ac_header_preproc" >&6
28036
28037 # So? What about this header?
28038 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28039 yes:no: )
28040 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28041 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28042 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28043 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28044 ac_header_preproc=yes
28045 ;;
28046 no:yes:* )
28047 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28048 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28049 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28050 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28051 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28052 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28053 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28054 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28055 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28056 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28057 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28058 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28059 (
28060 cat <<\_ASBOX
28061 ## ------------------------------------------ ##
28062 ## Report this to the AC_PACKAGE_NAME lists. ##
28063 ## ------------------------------------------ ##
28064 _ASBOX
28065 ) |
28066 sed "s/^/$as_me: WARNING: /" >&2
28067 ;;
28068 esac
28069 echo "$as_me:$LINENO: checking for $ac_header" >&5
28070 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28071 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28072 echo $ECHO_N "(cached) $ECHO_C" >&6
28073 else
28074 eval "$as_ac_Header=\$ac_header_preproc"
28075 fi
28076 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28077 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28078
28079 fi
28080 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28081 cat >>confdefs.h <<_ACEOF
28082 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28083 _ACEOF
28084
28085 fi
28086
28087 done
28088
28089
28090 for ac_header in FL/Fl_Audio_Meter.H
28091 do
28092 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28093 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28094 echo "$as_me:$LINENO: checking for $ac_header" >&5
28095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28097 echo $ECHO_N "(cached) $ECHO_C" >&6
28098 fi
28099 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28100 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28101 else
28102 # Is the header compilable?
28103 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28104 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28105 cat >conftest.$ac_ext <<_ACEOF
28106 /* confdefs.h. */
28107 _ACEOF
28108 cat confdefs.h >>conftest.$ac_ext
28109 cat >>conftest.$ac_ext <<_ACEOF
28110 /* end confdefs.h. */
28111 $ac_includes_default
28112 #include <$ac_header>
28113 _ACEOF
28114 rm -f conftest.$ac_objext
28115 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28116 (eval $ac_compile) 2>conftest.er1
28117 ac_status=$?
28118 grep -v '^ *+' conftest.er1 >conftest.err
28119 rm -f conftest.er1
28120 cat conftest.err >&5
28121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28122 (exit $ac_status); } &&
28123 { ac_try='test -z "$ac_cxx_werror_flag"
28124 || test ! -s conftest.err'
28125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28126 (eval $ac_try) 2>&5
28127 ac_status=$?
28128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28129 (exit $ac_status); }; } &&
28130 { ac_try='test -s conftest.$ac_objext'
28131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28132 (eval $ac_try) 2>&5
28133 ac_status=$?
28134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28135 (exit $ac_status); }; }; then
28136 ac_header_compiler=yes
28137 else
28138 echo "$as_me: failed program was:" >&5
28139 sed 's/^/| /' conftest.$ac_ext >&5
28140
28141 ac_header_compiler=no
28142 fi
28143 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28144 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28145 echo "${ECHO_T}$ac_header_compiler" >&6
28146
28147 # Is the header present?
28148 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28149 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28150 cat >conftest.$ac_ext <<_ACEOF
28151 /* confdefs.h. */
28152 _ACEOF
28153 cat confdefs.h >>conftest.$ac_ext
28154 cat >>conftest.$ac_ext <<_ACEOF
28155 /* end confdefs.h. */
28156 #include <$ac_header>
28157 _ACEOF
28158 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28159 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28160 ac_status=$?
28161 grep -v '^ *+' conftest.er1 >conftest.err
28162 rm -f conftest.er1
28163 cat conftest.err >&5
28164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28165 (exit $ac_status); } >/dev/null; then
28166 if test -s conftest.err; then
28167 ac_cpp_err=$ac_cxx_preproc_warn_flag
28168 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
28169 else
28170 ac_cpp_err=
28171 fi
28172 else
28173 ac_cpp_err=yes
28174 fi
28175 if test -z "$ac_cpp_err"; then
28176 ac_header_preproc=yes
28177 else
28178 echo "$as_me: failed program was:" >&5
28179 sed 's/^/| /' conftest.$ac_ext >&5
28180
28181 ac_header_preproc=no
28182 fi
28183 rm -f conftest.err conftest.$ac_ext
28184 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28185 echo "${ECHO_T}$ac_header_preproc" >&6
28186
28187 # So? What about this header?
28188 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28189 yes:no: )
28190 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28191 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28192 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28193 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28194 ac_header_preproc=yes
28195 ;;
28196 no:yes:* )
28197 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28198 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28199 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28200 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28201 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28202 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28203 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28204 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28205 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28206 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28207 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28208 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28209 (
28210 cat <<\_ASBOX
28211 ## ------------------------------------------ ##
28212 ## Report this to the AC_PACKAGE_NAME lists. ##
28213 ## ------------------------------------------ ##
28214 _ASBOX
28215 ) |
28216 sed "s/^/$as_me: WARNING: /" >&2
28217 ;;
28218 esac
28219 echo "$as_me:$LINENO: checking for $ac_header" >&5
28220 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28221 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28222 echo $ECHO_N "(cached) $ECHO_C" >&6
28223 else
28224 eval "$as_ac_Header=\$ac_header_preproc"
28225 fi
28226 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28227 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28228
28229 fi
28230 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28231 cat >>confdefs.h <<_ACEOF
28232 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28233 _ACEOF
28234
28235 fi
28236
28237 done
28238
28239
28240 ac_ext=c
28241 ac_cpp='$CPP $CPPFLAGS'
28242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28245
28246
28247 if test "${build}" == "${host}"
28248 then
28249 case "${host}" in
28250 x86_64-*)
28251 # X86_64 Linux machines may have both 64 bit and 32 bit libraries. We need to choose the right set
28252 as_ac_RealFile=`echo "ac_cv_real_file_${prefix}/lib64" | $as_tr_sh`
28253 echo "$as_me:$LINENO: checking for ${prefix}/lib64" >&5
28254 echo $ECHO_N "checking for ${prefix}/lib64... $ECHO_C" >&6
28255 if eval "test \"\${$as_ac_RealFile+set}\" = set"; then
28256 echo $ECHO_N "(cached) $ECHO_C" >&6
28257 else
28258 test "$cross_compiling" = yes &&
28259 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28260 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28261 { (exit 1); exit 1; }; }
28262 if test -r "${prefix}/lib64"
28263 then
28264 if test -h "${prefix}/lib64"
28265 then
28266 eval "$as_ac_RealFile=no"
28267 else
28268 eval "$as_ac_RealFile=yes"
28269 fi
28270 else
28271 eval "$as_ac_RealFile=no"
28272 fi
28273 fi
28274 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_RealFile'}'`" >&5
28275 echo "${ECHO_T}`eval echo '${'$as_ac_RealFile'}'`" >&6
28276 if test `eval echo '${'$as_ac_RealFile'}'` = yes; then
28277 libdir='$(exec_prefix)/lib64'
28278 fi
28279
28280 echo "$as_me:$LINENO: checking for /usr/X11R6/lib64" >&5
28281 echo $ECHO_N "checking for /usr/X11R6/lib64... $ECHO_C" >&6
28282 if test "${ac_cv_real_file__usr_X11R6_lib64+set}" = set; then
28283 echo $ECHO_N "(cached) $ECHO_C" >&6
28284 else
28285 test "$cross_compiling" = yes &&
28286 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28287 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28288 { (exit 1); exit 1; }; }
28289 if test -r "/usr/X11R6/lib64"
28290 then
28291 if test -h "/usr/X11R6/lib64"
28292 then
28293 ac_cv_real_file__usr_X11R6_lib64=no
28294 else
28295 ac_cv_real_file__usr_X11R6_lib64=yes
28296 fi
28297 else
28298 ac_cv_real_file__usr_X11R6_lib64=no
28299 fi
28300 fi
28301 echo "$as_me:$LINENO: result: $ac_cv_real_file__usr_X11R6_lib64" >&5
28302 echo "${ECHO_T}$ac_cv_real_file__usr_X11R6_lib64" >&6
28303 if test $ac_cv_real_file__usr_X11R6_lib64 = yes; then
28304 TESTLIBS="$TESTLIBS -L/usr/X11R6/lib64"
28305 else
28306 echo "$as_me:$LINENO: checking for /usr/X11R6/lib" >&5
28307 echo $ECHO_N "checking for /usr/X11R6/lib... $ECHO_C" >&6
28308 if test "${ac_cv_file__usr_X11R6_lib+set}" = set; then
28309 echo $ECHO_N "(cached) $ECHO_C" >&6
28310 else
28311 test "$cross_compiling" = yes &&
28312 { { echo "$as_me:$LINENO: error: cannot check for file existence when cross compiling" >&5
28313 echo "$as_me: error: cannot check for file existence when cross compiling" >&2;}
28314 { (exit 1); exit 1; }; }
28315 if test -r "/usr/X11R6/lib"; then
28316 ac_cv_file__usr_X11R6_lib=yes
28317 else
28318 ac_cv_file__usr_X11R6_lib=no
28319 fi
28320 fi
28321 echo "$as_me:$LINENO: result: $ac_cv_file__usr_X11R6_lib" >&5
28322 echo "${ECHO_T}$ac_cv_file__usr_X11R6_lib" >&6
28323 if test $ac_cv_file__usr_X11R6_lib = yes; then
28324 TESTLIBS="$TESTLIBS -L/usr/X11R6/lib"
28325 fi
28326
28327 fi
28328
28329 # The very oldest AMD 64 bit chips support SSE2, SSE and MMX
28330 enable_sse2="yes"
28331 ;;
28332 esac
28333 fi
28334
28335
28336 echo "$as_me:$LINENO: checking for cos in -lm" >&5
28337 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
28338 if test "${ac_cv_lib_m_cos+set}" = set; then
28339 echo $ECHO_N "(cached) $ECHO_C" >&6
28340 else
28341 ac_check_lib_save_LIBS=$LIBS
28342 LIBS="-lm $LIBS"
28343 cat >conftest.$ac_ext <<_ACEOF
28344 /* confdefs.h. */
28345 _ACEOF
28346 cat confdefs.h >>conftest.$ac_ext
28347 cat >>conftest.$ac_ext <<_ACEOF
28348 /* end confdefs.h. */
28349
28350 /* Override any gcc2 internal prototype to avoid an error. */
28351 #ifdef __cplusplus
28352 extern "C"
28353 #endif
28354 /* We use char because int might match the return type of a gcc2
28355 builtin and then its argument prototype would still apply. */
28356 char cos ();
28357 int
28358 main ()
28359 {
28360 cos ();
28361 ;
28362 return 0;
28363 }
28364 _ACEOF
28365 rm -f conftest.$ac_objext conftest$ac_exeext
28366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28367 (eval $ac_link) 2>conftest.er1
28368 ac_status=$?
28369 grep -v '^ *+' conftest.er1 >conftest.err
28370 rm -f conftest.er1
28371 cat conftest.err >&5
28372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28373 (exit $ac_status); } &&
28374 { ac_try='test -z "$ac_c_werror_flag"
28375 || test ! -s conftest.err'
28376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28377 (eval $ac_try) 2>&5
28378 ac_status=$?
28379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28380 (exit $ac_status); }; } &&
28381 { ac_try='test -s conftest$ac_exeext'
28382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28383 (eval $ac_try) 2>&5
28384 ac_status=$?
28385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28386 (exit $ac_status); }; }; then
28387 ac_cv_lib_m_cos=yes
28388 else
28389 echo "$as_me: failed program was:" >&5
28390 sed 's/^/| /' conftest.$ac_ext >&5
28391
28392 ac_cv_lib_m_cos=no
28393 fi
28394 rm -f conftest.err conftest.$ac_objext \
28395 conftest$ac_exeext conftest.$ac_ext
28396 LIBS=$ac_check_lib_save_LIBS
28397 fi
28398 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
28399 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
28400 if test $ac_cv_lib_m_cos = yes; then
28401 cat >>confdefs.h <<_ACEOF
28402 #define HAVE_LIBM 1
28403 _ACEOF
28404
28405 LIBS="-lm $LIBS"
28406
28407 fi
28408
28409 # Some platforms still seem to lack the basic single precision trig and power related function.
28410 echo "$as_me:$LINENO: checking for library containing sinf" >&5
28411 echo $ECHO_N "checking for library containing sinf... $ECHO_C" >&6
28412 if test "${ac_cv_search_sinf+set}" = set; then
28413 echo $ECHO_N "(cached) $ECHO_C" >&6
28414 else
28415 ac_func_search_save_LIBS=$LIBS
28416 ac_cv_search_sinf=no
28417 cat >conftest.$ac_ext <<_ACEOF
28418 /* confdefs.h. */
28419 _ACEOF
28420 cat confdefs.h >>conftest.$ac_ext
28421 cat >>conftest.$ac_ext <<_ACEOF
28422 /* end confdefs.h. */
28423
28424 /* Override any gcc2 internal prototype to avoid an error. */
28425 #ifdef __cplusplus
28426 extern "C"
28427 #endif
28428 /* We use char because int might match the return type of a gcc2
28429 builtin and then its argument prototype would still apply. */
28430 char sinf ();
28431 int
28432 main ()
28433 {
28434 sinf ();
28435 ;
28436 return 0;
28437 }
28438 _ACEOF
28439 rm -f conftest.$ac_objext conftest$ac_exeext
28440 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28441 (eval $ac_link) 2>conftest.er1
28442 ac_status=$?
28443 grep -v '^ *+' conftest.er1 >conftest.err
28444 rm -f conftest.er1
28445 cat conftest.err >&5
28446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28447 (exit $ac_status); } &&
28448 { ac_try='test -z "$ac_c_werror_flag"
28449 || test ! -s conftest.err'
28450 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28451 (eval $ac_try) 2>&5
28452 ac_status=$?
28453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28454 (exit $ac_status); }; } &&
28455 { ac_try='test -s conftest$ac_exeext'
28456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28457 (eval $ac_try) 2>&5
28458 ac_status=$?
28459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28460 (exit $ac_status); }; }; then
28461 ac_cv_search_sinf="none required"
28462 else
28463 echo "$as_me: failed program was:" >&5
28464 sed 's/^/| /' conftest.$ac_ext >&5
28465
28466 fi
28467 rm -f conftest.err conftest.$ac_objext \
28468 conftest$ac_exeext conftest.$ac_ext
28469 if test "$ac_cv_search_sinf" = no; then
28470 for ac_lib in m; do
28471 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28472 cat >conftest.$ac_ext <<_ACEOF
28473 /* confdefs.h. */
28474 _ACEOF
28475 cat confdefs.h >>conftest.$ac_ext
28476 cat >>conftest.$ac_ext <<_ACEOF
28477 /* end confdefs.h. */
28478
28479 /* Override any gcc2 internal prototype to avoid an error. */
28480 #ifdef __cplusplus
28481 extern "C"
28482 #endif
28483 /* We use char because int might match the return type of a gcc2
28484 builtin and then its argument prototype would still apply. */
28485 char sinf ();
28486 int
28487 main ()
28488 {
28489 sinf ();
28490 ;
28491 return 0;
28492 }
28493 _ACEOF
28494 rm -f conftest.$ac_objext conftest$ac_exeext
28495 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28496 (eval $ac_link) 2>conftest.er1
28497 ac_status=$?
28498 grep -v '^ *+' conftest.er1 >conftest.err
28499 rm -f conftest.er1
28500 cat conftest.err >&5
28501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28502 (exit $ac_status); } &&
28503 { ac_try='test -z "$ac_c_werror_flag"
28504 || test ! -s conftest.err'
28505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28506 (eval $ac_try) 2>&5
28507 ac_status=$?
28508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28509 (exit $ac_status); }; } &&
28510 { ac_try='test -s conftest$ac_exeext'
28511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28512 (eval $ac_try) 2>&5
28513 ac_status=$?
28514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28515 (exit $ac_status); }; }; then
28516 ac_cv_search_sinf="-l$ac_lib"
28517 break
28518 else
28519 echo "$as_me: failed program was:" >&5
28520 sed 's/^/| /' conftest.$ac_ext >&5
28521
28522 fi
28523 rm -f conftest.err conftest.$ac_objext \
28524 conftest$ac_exeext conftest.$ac_ext
28525 done
28526 fi
28527 LIBS=$ac_func_search_save_LIBS
28528 fi
28529 echo "$as_me:$LINENO: result: $ac_cv_search_sinf" >&5
28530 echo "${ECHO_T}$ac_cv_search_sinf" >&6
28531 if test "$ac_cv_search_sinf" != no; then
28532 test "$ac_cv_search_sinf" = "none required" || LIBS="$ac_cv_search_sinf $LIBS"
28533
28534 cat >>confdefs.h <<\_ACEOF
28535 #define HAVE_SINF 1
28536 _ACEOF
28537
28538 fi
28539
28540 echo "$as_me:$LINENO: checking for library containing cosf" >&5
28541 echo $ECHO_N "checking for library containing cosf... $ECHO_C" >&6
28542 if test "${ac_cv_search_cosf+set}" = set; then
28543 echo $ECHO_N "(cached) $ECHO_C" >&6
28544 else
28545 ac_func_search_save_LIBS=$LIBS
28546 ac_cv_search_cosf=no
28547 cat >conftest.$ac_ext <<_ACEOF
28548 /* confdefs.h. */
28549 _ACEOF
28550 cat confdefs.h >>conftest.$ac_ext
28551 cat >>conftest.$ac_ext <<_ACEOF
28552 /* end confdefs.h. */
28553
28554 /* Override any gcc2 internal prototype to avoid an error. */
28555 #ifdef __cplusplus
28556 extern "C"
28557 #endif
28558 /* We use char because int might match the return type of a gcc2
28559 builtin and then its argument prototype would still apply. */
28560 char cosf ();
28561 int
28562 main ()
28563 {
28564 cosf ();
28565 ;
28566 return 0;
28567 }
28568 _ACEOF
28569 rm -f conftest.$ac_objext conftest$ac_exeext
28570 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28571 (eval $ac_link) 2>conftest.er1
28572 ac_status=$?
28573 grep -v '^ *+' conftest.er1 >conftest.err
28574 rm -f conftest.er1
28575 cat conftest.err >&5
28576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28577 (exit $ac_status); } &&
28578 { ac_try='test -z "$ac_c_werror_flag"
28579 || test ! -s conftest.err'
28580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28581 (eval $ac_try) 2>&5
28582 ac_status=$?
28583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28584 (exit $ac_status); }; } &&
28585 { ac_try='test -s conftest$ac_exeext'
28586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28587 (eval $ac_try) 2>&5
28588 ac_status=$?
28589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28590 (exit $ac_status); }; }; then
28591 ac_cv_search_cosf="none required"
28592 else
28593 echo "$as_me: failed program was:" >&5
28594 sed 's/^/| /' conftest.$ac_ext >&5
28595
28596 fi
28597 rm -f conftest.err conftest.$ac_objext \
28598 conftest$ac_exeext conftest.$ac_ext
28599 if test "$ac_cv_search_cosf" = no; then
28600 for ac_lib in m; do
28601 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28602 cat >conftest.$ac_ext <<_ACEOF
28603 /* confdefs.h. */
28604 _ACEOF
28605 cat confdefs.h >>conftest.$ac_ext
28606 cat >>conftest.$ac_ext <<_ACEOF
28607 /* end confdefs.h. */
28608
28609 /* Override any gcc2 internal prototype to avoid an error. */
28610 #ifdef __cplusplus
28611 extern "C"
28612 #endif
28613 /* We use char because int might match the return type of a gcc2
28614 builtin and then its argument prototype would still apply. */
28615 char cosf ();
28616 int
28617 main ()
28618 {
28619 cosf ();
28620 ;
28621 return 0;
28622 }
28623 _ACEOF
28624 rm -f conftest.$ac_objext conftest$ac_exeext
28625 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28626 (eval $ac_link) 2>conftest.er1
28627 ac_status=$?
28628 grep -v '^ *+' conftest.er1 >conftest.err
28629 rm -f conftest.er1
28630 cat conftest.err >&5
28631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28632 (exit $ac_status); } &&
28633 { ac_try='test -z "$ac_c_werror_flag"
28634 || test ! -s conftest.err'
28635 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28636 (eval $ac_try) 2>&5
28637 ac_status=$?
28638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28639 (exit $ac_status); }; } &&
28640 { ac_try='test -s conftest$ac_exeext'
28641 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28642 (eval $ac_try) 2>&5
28643 ac_status=$?
28644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28645 (exit $ac_status); }; }; then
28646 ac_cv_search_cosf="-l$ac_lib"
28647 break
28648 else
28649 echo "$as_me: failed program was:" >&5
28650 sed 's/^/| /' conftest.$ac_ext >&5
28651
28652 fi
28653 rm -f conftest.err conftest.$ac_objext \
28654 conftest$ac_exeext conftest.$ac_ext
28655 done
28656 fi
28657 LIBS=$ac_func_search_save_LIBS
28658 fi
28659 echo "$as_me:$LINENO: result: $ac_cv_search_cosf" >&5
28660 echo "${ECHO_T}$ac_cv_search_cosf" >&6
28661 if test "$ac_cv_search_cosf" != no; then
28662 test "$ac_cv_search_cosf" = "none required" || LIBS="$ac_cv_search_cosf $LIBS"
28663
28664 cat >>confdefs.h <<\_ACEOF
28665 #define HAVE_COSF 1
28666 _ACEOF
28667
28668 fi
28669
28670 echo "$as_me:$LINENO: checking for library containing tanf" >&5
28671 echo $ECHO_N "checking for library containing tanf... $ECHO_C" >&6
28672 if test "${ac_cv_search_tanf+set}" = set; then
28673 echo $ECHO_N "(cached) $ECHO_C" >&6
28674 else
28675 ac_func_search_save_LIBS=$LIBS
28676 ac_cv_search_tanf=no
28677 cat >conftest.$ac_ext <<_ACEOF
28678 /* confdefs.h. */
28679 _ACEOF
28680 cat confdefs.h >>conftest.$ac_ext
28681 cat >>conftest.$ac_ext <<_ACEOF
28682 /* end confdefs.h. */
28683
28684 /* Override any gcc2 internal prototype to avoid an error. */
28685 #ifdef __cplusplus
28686 extern "C"
28687 #endif
28688 /* We use char because int might match the return type of a gcc2
28689 builtin and then its argument prototype would still apply. */
28690 char tanf ();
28691 int
28692 main ()
28693 {
28694 tanf ();
28695 ;
28696 return 0;
28697 }
28698 _ACEOF
28699 rm -f conftest.$ac_objext conftest$ac_exeext
28700 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28701 (eval $ac_link) 2>conftest.er1
28702 ac_status=$?
28703 grep -v '^ *+' conftest.er1 >conftest.err
28704 rm -f conftest.er1
28705 cat conftest.err >&5
28706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28707 (exit $ac_status); } &&
28708 { ac_try='test -z "$ac_c_werror_flag"
28709 || test ! -s conftest.err'
28710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28711 (eval $ac_try) 2>&5
28712 ac_status=$?
28713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28714 (exit $ac_status); }; } &&
28715 { ac_try='test -s conftest$ac_exeext'
28716 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28717 (eval $ac_try) 2>&5
28718 ac_status=$?
28719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28720 (exit $ac_status); }; }; then
28721 ac_cv_search_tanf="none required"
28722 else
28723 echo "$as_me: failed program was:" >&5
28724 sed 's/^/| /' conftest.$ac_ext >&5
28725
28726 fi
28727 rm -f conftest.err conftest.$ac_objext \
28728 conftest$ac_exeext conftest.$ac_ext
28729 if test "$ac_cv_search_tanf" = no; then
28730 for ac_lib in m; do
28731 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28732 cat >conftest.$ac_ext <<_ACEOF
28733 /* confdefs.h. */
28734 _ACEOF
28735 cat confdefs.h >>conftest.$ac_ext
28736 cat >>conftest.$ac_ext <<_ACEOF
28737 /* end confdefs.h. */
28738
28739 /* Override any gcc2 internal prototype to avoid an error. */
28740 #ifdef __cplusplus
28741 extern "C"
28742 #endif
28743 /* We use char because int might match the return type of a gcc2
28744 builtin and then its argument prototype would still apply. */
28745 char tanf ();
28746 int
28747 main ()
28748 {
28749 tanf ();
28750 ;
28751 return 0;
28752 }
28753 _ACEOF
28754 rm -f conftest.$ac_objext conftest$ac_exeext
28755 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28756 (eval $ac_link) 2>conftest.er1
28757 ac_status=$?
28758 grep -v '^ *+' conftest.er1 >conftest.err
28759 rm -f conftest.er1
28760 cat conftest.err >&5
28761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28762 (exit $ac_status); } &&
28763 { ac_try='test -z "$ac_c_werror_flag"
28764 || test ! -s conftest.err'
28765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28766 (eval $ac_try) 2>&5
28767 ac_status=$?
28768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28769 (exit $ac_status); }; } &&
28770 { ac_try='test -s conftest$ac_exeext'
28771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28772 (eval $ac_try) 2>&5
28773 ac_status=$?
28774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28775 (exit $ac_status); }; }; then
28776 ac_cv_search_tanf="-l$ac_lib"
28777 break
28778 else
28779 echo "$as_me: failed program was:" >&5
28780 sed 's/^/| /' conftest.$ac_ext >&5
28781
28782 fi
28783 rm -f conftest.err conftest.$ac_objext \
28784 conftest$ac_exeext conftest.$ac_ext
28785 done
28786 fi
28787 LIBS=$ac_func_search_save_LIBS
28788 fi
28789 echo "$as_me:$LINENO: result: $ac_cv_search_tanf" >&5
28790 echo "${ECHO_T}$ac_cv_search_tanf" >&6
28791 if test "$ac_cv_search_tanf" != no; then
28792 test "$ac_cv_search_tanf" = "none required" || LIBS="$ac_cv_search_tanf $LIBS"
28793
28794 cat >>confdefs.h <<\_ACEOF
28795 #define HAVE_TANF 1
28796 _ACEOF
28797
28798 fi
28799
28800 echo "$as_me:$LINENO: checking for library containing asinf" >&5
28801 echo $ECHO_N "checking for library containing asinf... $ECHO_C" >&6
28802 if test "${ac_cv_search_asinf+set}" = set; then
28803 echo $ECHO_N "(cached) $ECHO_C" >&6
28804 else
28805 ac_func_search_save_LIBS=$LIBS
28806 ac_cv_search_asinf=no
28807 cat >conftest.$ac_ext <<_ACEOF
28808 /* confdefs.h. */
28809 _ACEOF
28810 cat confdefs.h >>conftest.$ac_ext
28811 cat >>conftest.$ac_ext <<_ACEOF
28812 /* end confdefs.h. */
28813
28814 /* Override any gcc2 internal prototype to avoid an error. */
28815 #ifdef __cplusplus
28816 extern "C"
28817 #endif
28818 /* We use char because int might match the return type of a gcc2
28819 builtin and then its argument prototype would still apply. */
28820 char asinf ();
28821 int
28822 main ()
28823 {
28824 asinf ();
28825 ;
28826 return 0;
28827 }
28828 _ACEOF
28829 rm -f conftest.$ac_objext conftest$ac_exeext
28830 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28831 (eval $ac_link) 2>conftest.er1
28832 ac_status=$?
28833 grep -v '^ *+' conftest.er1 >conftest.err
28834 rm -f conftest.er1
28835 cat conftest.err >&5
28836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28837 (exit $ac_status); } &&
28838 { ac_try='test -z "$ac_c_werror_flag"
28839 || test ! -s conftest.err'
28840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28841 (eval $ac_try) 2>&5
28842 ac_status=$?
28843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28844 (exit $ac_status); }; } &&
28845 { ac_try='test -s conftest$ac_exeext'
28846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28847 (eval $ac_try) 2>&5
28848 ac_status=$?
28849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28850 (exit $ac_status); }; }; then
28851 ac_cv_search_asinf="none required"
28852 else
28853 echo "$as_me: failed program was:" >&5
28854 sed 's/^/| /' conftest.$ac_ext >&5
28855
28856 fi
28857 rm -f conftest.err conftest.$ac_objext \
28858 conftest$ac_exeext conftest.$ac_ext
28859 if test "$ac_cv_search_asinf" = no; then
28860 for ac_lib in m; do
28861 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28862 cat >conftest.$ac_ext <<_ACEOF
28863 /* confdefs.h. */
28864 _ACEOF
28865 cat confdefs.h >>conftest.$ac_ext
28866 cat >>conftest.$ac_ext <<_ACEOF
28867 /* end confdefs.h. */
28868
28869 /* Override any gcc2 internal prototype to avoid an error. */
28870 #ifdef __cplusplus
28871 extern "C"
28872 #endif
28873 /* We use char because int might match the return type of a gcc2
28874 builtin and then its argument prototype would still apply. */
28875 char asinf ();
28876 int
28877 main ()
28878 {
28879 asinf ();
28880 ;
28881 return 0;
28882 }
28883 _ACEOF
28884 rm -f conftest.$ac_objext conftest$ac_exeext
28885 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28886 (eval $ac_link) 2>conftest.er1
28887 ac_status=$?
28888 grep -v '^ *+' conftest.er1 >conftest.err
28889 rm -f conftest.er1
28890 cat conftest.err >&5
28891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28892 (exit $ac_status); } &&
28893 { ac_try='test -z "$ac_c_werror_flag"
28894 || test ! -s conftest.err'
28895 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28896 (eval $ac_try) 2>&5
28897 ac_status=$?
28898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28899 (exit $ac_status); }; } &&
28900 { ac_try='test -s conftest$ac_exeext'
28901 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28902 (eval $ac_try) 2>&5
28903 ac_status=$?
28904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28905 (exit $ac_status); }; }; then
28906 ac_cv_search_asinf="-l$ac_lib"
28907 break
28908 else
28909 echo "$as_me: failed program was:" >&5
28910 sed 's/^/| /' conftest.$ac_ext >&5
28911
28912 fi
28913 rm -f conftest.err conftest.$ac_objext \
28914 conftest$ac_exeext conftest.$ac_ext
28915 done
28916 fi
28917 LIBS=$ac_func_search_save_LIBS
28918 fi
28919 echo "$as_me:$LINENO: result: $ac_cv_search_asinf" >&5
28920 echo "${ECHO_T}$ac_cv_search_asinf" >&6
28921 if test "$ac_cv_search_asinf" != no; then
28922 test "$ac_cv_search_asinf" = "none required" || LIBS="$ac_cv_search_asinf $LIBS"
28923
28924 cat >>confdefs.h <<\_ACEOF
28925 #define HAVE_ASINF 1
28926 _ACEOF
28927
28928 fi
28929
28930 echo "$as_me:$LINENO: checking for library containing acosf" >&5
28931 echo $ECHO_N "checking for library containing acosf... $ECHO_C" >&6
28932 if test "${ac_cv_search_acosf+set}" = set; then
28933 echo $ECHO_N "(cached) $ECHO_C" >&6
28934 else
28935 ac_func_search_save_LIBS=$LIBS
28936 ac_cv_search_acosf=no
28937 cat >conftest.$ac_ext <<_ACEOF
28938 /* confdefs.h. */
28939 _ACEOF
28940 cat confdefs.h >>conftest.$ac_ext
28941 cat >>conftest.$ac_ext <<_ACEOF
28942 /* end confdefs.h. */
28943
28944 /* Override any gcc2 internal prototype to avoid an error. */
28945 #ifdef __cplusplus
28946 extern "C"
28947 #endif
28948 /* We use char because int might match the return type of a gcc2
28949 builtin and then its argument prototype would still apply. */
28950 char acosf ();
28951 int
28952 main ()
28953 {
28954 acosf ();
28955 ;
28956 return 0;
28957 }
28958 _ACEOF
28959 rm -f conftest.$ac_objext conftest$ac_exeext
28960 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28961 (eval $ac_link) 2>conftest.er1
28962 ac_status=$?
28963 grep -v '^ *+' conftest.er1 >conftest.err
28964 rm -f conftest.er1
28965 cat conftest.err >&5
28966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28967 (exit $ac_status); } &&
28968 { ac_try='test -z "$ac_c_werror_flag"
28969 || test ! -s conftest.err'
28970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28971 (eval $ac_try) 2>&5
28972 ac_status=$?
28973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28974 (exit $ac_status); }; } &&
28975 { ac_try='test -s conftest$ac_exeext'
28976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28977 (eval $ac_try) 2>&5
28978 ac_status=$?
28979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28980 (exit $ac_status); }; }; then
28981 ac_cv_search_acosf="none required"
28982 else
28983 echo "$as_me: failed program was:" >&5
28984 sed 's/^/| /' conftest.$ac_ext >&5
28985
28986 fi
28987 rm -f conftest.err conftest.$ac_objext \
28988 conftest$ac_exeext conftest.$ac_ext
28989 if test "$ac_cv_search_acosf" = no; then
28990 for ac_lib in m; do
28991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
28992 cat >conftest.$ac_ext <<_ACEOF
28993 /* confdefs.h. */
28994 _ACEOF
28995 cat confdefs.h >>conftest.$ac_ext
28996 cat >>conftest.$ac_ext <<_ACEOF
28997 /* end confdefs.h. */
28998
28999 /* Override any gcc2 internal prototype to avoid an error. */
29000 #ifdef __cplusplus
29001 extern "C"
29002 #endif
29003 /* We use char because int might match the return type of a gcc2
29004 builtin and then its argument prototype would still apply. */
29005 char acosf ();
29006 int
29007 main ()
29008 {
29009 acosf ();
29010 ;
29011 return 0;
29012 }
29013 _ACEOF
29014 rm -f conftest.$ac_objext conftest$ac_exeext
29015 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29016 (eval $ac_link) 2>conftest.er1
29017 ac_status=$?
29018 grep -v '^ *+' conftest.er1 >conftest.err
29019 rm -f conftest.er1
29020 cat conftest.err >&5
29021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29022 (exit $ac_status); } &&
29023 { ac_try='test -z "$ac_c_werror_flag"
29024 || test ! -s conftest.err'
29025 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29026 (eval $ac_try) 2>&5
29027 ac_status=$?
29028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29029 (exit $ac_status); }; } &&
29030 { ac_try='test -s conftest$ac_exeext'
29031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29032 (eval $ac_try) 2>&5
29033 ac_status=$?
29034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29035 (exit $ac_status); }; }; then
29036 ac_cv_search_acosf="-l$ac_lib"
29037 break
29038 else
29039 echo "$as_me: failed program was:" >&5
29040 sed 's/^/| /' conftest.$ac_ext >&5
29041
29042 fi
29043 rm -f conftest.err conftest.$ac_objext \
29044 conftest$ac_exeext conftest.$ac_ext
29045 done
29046 fi
29047 LIBS=$ac_func_search_save_LIBS
29048 fi
29049 echo "$as_me:$LINENO: result: $ac_cv_search_acosf" >&5
29050 echo "${ECHO_T}$ac_cv_search_acosf" >&6
29051 if test "$ac_cv_search_acosf" != no; then
29052 test "$ac_cv_search_acosf" = "none required" || LIBS="$ac_cv_search_acosf $LIBS"
29053
29054 cat >>confdefs.h <<\_ACEOF
29055 #define HAVE_ACOSF 1
29056 _ACEOF
29057
29058 fi
29059
29060 echo "$as_me:$LINENO: checking for library containing atanf" >&5
29061 echo $ECHO_N "checking for library containing atanf... $ECHO_C" >&6
29062 if test "${ac_cv_search_atanf+set}" = set; then
29063 echo $ECHO_N "(cached) $ECHO_C" >&6
29064 else
29065 ac_func_search_save_LIBS=$LIBS
29066 ac_cv_search_atanf=no
29067 cat >conftest.$ac_ext <<_ACEOF
29068 /* confdefs.h. */
29069 _ACEOF
29070 cat confdefs.h >>conftest.$ac_ext
29071 cat >>conftest.$ac_ext <<_ACEOF
29072 /* end confdefs.h. */
29073
29074 /* Override any gcc2 internal prototype to avoid an error. */
29075 #ifdef __cplusplus
29076 extern "C"
29077 #endif
29078 /* We use char because int might match the return type of a gcc2
29079 builtin and then its argument prototype would still apply. */
29080 char atanf ();
29081 int
29082 main ()
29083 {
29084 atanf ();
29085 ;
29086 return 0;
29087 }
29088 _ACEOF
29089 rm -f conftest.$ac_objext conftest$ac_exeext
29090 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29091 (eval $ac_link) 2>conftest.er1
29092 ac_status=$?
29093 grep -v '^ *+' conftest.er1 >conftest.err
29094 rm -f conftest.er1
29095 cat conftest.err >&5
29096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29097 (exit $ac_status); } &&
29098 { ac_try='test -z "$ac_c_werror_flag"
29099 || test ! -s conftest.err'
29100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29101 (eval $ac_try) 2>&5
29102 ac_status=$?
29103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29104 (exit $ac_status); }; } &&
29105 { ac_try='test -s conftest$ac_exeext'
29106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29107 (eval $ac_try) 2>&5
29108 ac_status=$?
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); }; }; then
29111 ac_cv_search_atanf="none required"
29112 else
29113 echo "$as_me: failed program was:" >&5
29114 sed 's/^/| /' conftest.$ac_ext >&5
29115
29116 fi
29117 rm -f conftest.err conftest.$ac_objext \
29118 conftest$ac_exeext conftest.$ac_ext
29119 if test "$ac_cv_search_atanf" = no; then
29120 for ac_lib in m; do
29121 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29122 cat >conftest.$ac_ext <<_ACEOF
29123 /* confdefs.h. */
29124 _ACEOF
29125 cat confdefs.h >>conftest.$ac_ext
29126 cat >>conftest.$ac_ext <<_ACEOF
29127 /* end confdefs.h. */
29128
29129 /* Override any gcc2 internal prototype to avoid an error. */
29130 #ifdef __cplusplus
29131 extern "C"
29132 #endif
29133 /* We use char because int might match the return type of a gcc2
29134 builtin and then its argument prototype would still apply. */
29135 char atanf ();
29136 int
29137 main ()
29138 {
29139 atanf ();
29140 ;
29141 return 0;
29142 }
29143 _ACEOF
29144 rm -f conftest.$ac_objext conftest$ac_exeext
29145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29146 (eval $ac_link) 2>conftest.er1
29147 ac_status=$?
29148 grep -v '^ *+' conftest.er1 >conftest.err
29149 rm -f conftest.er1
29150 cat conftest.err >&5
29151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29152 (exit $ac_status); } &&
29153 { ac_try='test -z "$ac_c_werror_flag"
29154 || test ! -s conftest.err'
29155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29156 (eval $ac_try) 2>&5
29157 ac_status=$?
29158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29159 (exit $ac_status); }; } &&
29160 { ac_try='test -s conftest$ac_exeext'
29161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29162 (eval $ac_try) 2>&5
29163 ac_status=$?
29164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29165 (exit $ac_status); }; }; then
29166 ac_cv_search_atanf="-l$ac_lib"
29167 break
29168 else
29169 echo "$as_me: failed program was:" >&5
29170 sed 's/^/| /' conftest.$ac_ext >&5
29171
29172 fi
29173 rm -f conftest.err conftest.$ac_objext \
29174 conftest$ac_exeext conftest.$ac_ext
29175 done
29176 fi
29177 LIBS=$ac_func_search_save_LIBS
29178 fi
29179 echo "$as_me:$LINENO: result: $ac_cv_search_atanf" >&5
29180 echo "${ECHO_T}$ac_cv_search_atanf" >&6
29181 if test "$ac_cv_search_atanf" != no; then
29182 test "$ac_cv_search_atanf" = "none required" || LIBS="$ac_cv_search_atanf $LIBS"
29183
29184 cat >>confdefs.h <<\_ACEOF
29185 #define HAVE_ATANF 1
29186 _ACEOF
29187
29188 fi
29189
29190 echo "$as_me:$LINENO: checking for library containing atan2f" >&5
29191 echo $ECHO_N "checking for library containing atan2f... $ECHO_C" >&6
29192 if test "${ac_cv_search_atan2f+set}" = set; then
29193 echo $ECHO_N "(cached) $ECHO_C" >&6
29194 else
29195 ac_func_search_save_LIBS=$LIBS
29196 ac_cv_search_atan2f=no
29197 cat >conftest.$ac_ext <<_ACEOF
29198 /* confdefs.h. */
29199 _ACEOF
29200 cat confdefs.h >>conftest.$ac_ext
29201 cat >>conftest.$ac_ext <<_ACEOF
29202 /* end confdefs.h. */
29203
29204 /* Override any gcc2 internal prototype to avoid an error. */
29205 #ifdef __cplusplus
29206 extern "C"
29207 #endif
29208 /* We use char because int might match the return type of a gcc2
29209 builtin and then its argument prototype would still apply. */
29210 char atan2f ();
29211 int
29212 main ()
29213 {
29214 atan2f ();
29215 ;
29216 return 0;
29217 }
29218 _ACEOF
29219 rm -f conftest.$ac_objext conftest$ac_exeext
29220 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29221 (eval $ac_link) 2>conftest.er1
29222 ac_status=$?
29223 grep -v '^ *+' conftest.er1 >conftest.err
29224 rm -f conftest.er1
29225 cat conftest.err >&5
29226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29227 (exit $ac_status); } &&
29228 { ac_try='test -z "$ac_c_werror_flag"
29229 || test ! -s conftest.err'
29230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29231 (eval $ac_try) 2>&5
29232 ac_status=$?
29233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29234 (exit $ac_status); }; } &&
29235 { ac_try='test -s conftest$ac_exeext'
29236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29237 (eval $ac_try) 2>&5
29238 ac_status=$?
29239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29240 (exit $ac_status); }; }; then
29241 ac_cv_search_atan2f="none required"
29242 else
29243 echo "$as_me: failed program was:" >&5
29244 sed 's/^/| /' conftest.$ac_ext >&5
29245
29246 fi
29247 rm -f conftest.err conftest.$ac_objext \
29248 conftest$ac_exeext conftest.$ac_ext
29249 if test "$ac_cv_search_atan2f" = no; then
29250 for ac_lib in m; do
29251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29252 cat >conftest.$ac_ext <<_ACEOF
29253 /* confdefs.h. */
29254 _ACEOF
29255 cat confdefs.h >>conftest.$ac_ext
29256 cat >>conftest.$ac_ext <<_ACEOF
29257 /* end confdefs.h. */
29258
29259 /* Override any gcc2 internal prototype to avoid an error. */
29260 #ifdef __cplusplus
29261 extern "C"
29262 #endif
29263 /* We use char because int might match the return type of a gcc2
29264 builtin and then its argument prototype would still apply. */
29265 char atan2f ();
29266 int
29267 main ()
29268 {
29269 atan2f ();
29270 ;
29271 return 0;
29272 }
29273 _ACEOF
29274 rm -f conftest.$ac_objext conftest$ac_exeext
29275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29276 (eval $ac_link) 2>conftest.er1
29277 ac_status=$?
29278 grep -v '^ *+' conftest.er1 >conftest.err
29279 rm -f conftest.er1
29280 cat conftest.err >&5
29281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29282 (exit $ac_status); } &&
29283 { ac_try='test -z "$ac_c_werror_flag"
29284 || test ! -s conftest.err'
29285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29286 (eval $ac_try) 2>&5
29287 ac_status=$?
29288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29289 (exit $ac_status); }; } &&
29290 { ac_try='test -s conftest$ac_exeext'
29291 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29292 (eval $ac_try) 2>&5
29293 ac_status=$?
29294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29295 (exit $ac_status); }; }; then
29296 ac_cv_search_atan2f="-l$ac_lib"
29297 break
29298 else
29299 echo "$as_me: failed program was:" >&5
29300 sed 's/^/| /' conftest.$ac_ext >&5
29301
29302 fi
29303 rm -f conftest.err conftest.$ac_objext \
29304 conftest$ac_exeext conftest.$ac_ext
29305 done
29306 fi
29307 LIBS=$ac_func_search_save_LIBS
29308 fi
29309 echo "$as_me:$LINENO: result: $ac_cv_search_atan2f" >&5
29310 echo "${ECHO_T}$ac_cv_search_atan2f" >&6
29311 if test "$ac_cv_search_atan2f" != no; then
29312 test "$ac_cv_search_atan2f" = "none required" || LIBS="$ac_cv_search_atan2f $LIBS"
29313
29314 cat >>confdefs.h <<\_ACEOF
29315 #define HAVE_ATAN2F 1
29316 _ACEOF
29317
29318 fi
29319
29320 echo "$as_me:$LINENO: checking for library containing ceilf" >&5
29321 echo $ECHO_N "checking for library containing ceilf... $ECHO_C" >&6
29322 if test "${ac_cv_search_ceilf+set}" = set; then
29323 echo $ECHO_N "(cached) $ECHO_C" >&6
29324 else
29325 ac_func_search_save_LIBS=$LIBS
29326 ac_cv_search_ceilf=no
29327 cat >conftest.$ac_ext <<_ACEOF
29328 /* confdefs.h. */
29329 _ACEOF
29330 cat confdefs.h >>conftest.$ac_ext
29331 cat >>conftest.$ac_ext <<_ACEOF
29332 /* end confdefs.h. */
29333
29334 /* Override any gcc2 internal prototype to avoid an error. */
29335 #ifdef __cplusplus
29336 extern "C"
29337 #endif
29338 /* We use char because int might match the return type of a gcc2
29339 builtin and then its argument prototype would still apply. */
29340 char ceilf ();
29341 int
29342 main ()
29343 {
29344 ceilf ();
29345 ;
29346 return 0;
29347 }
29348 _ACEOF
29349 rm -f conftest.$ac_objext conftest$ac_exeext
29350 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29351 (eval $ac_link) 2>conftest.er1
29352 ac_status=$?
29353 grep -v '^ *+' conftest.er1 >conftest.err
29354 rm -f conftest.er1
29355 cat conftest.err >&5
29356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29357 (exit $ac_status); } &&
29358 { ac_try='test -z "$ac_c_werror_flag"
29359 || test ! -s conftest.err'
29360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29361 (eval $ac_try) 2>&5
29362 ac_status=$?
29363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29364 (exit $ac_status); }; } &&
29365 { ac_try='test -s conftest$ac_exeext'
29366 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29367 (eval $ac_try) 2>&5
29368 ac_status=$?
29369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29370 (exit $ac_status); }; }; then
29371 ac_cv_search_ceilf="none required"
29372 else
29373 echo "$as_me: failed program was:" >&5
29374 sed 's/^/| /' conftest.$ac_ext >&5
29375
29376 fi
29377 rm -f conftest.err conftest.$ac_objext \
29378 conftest$ac_exeext conftest.$ac_ext
29379 if test "$ac_cv_search_ceilf" = no; then
29380 for ac_lib in m; do
29381 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29382 cat >conftest.$ac_ext <<_ACEOF
29383 /* confdefs.h. */
29384 _ACEOF
29385 cat confdefs.h >>conftest.$ac_ext
29386 cat >>conftest.$ac_ext <<_ACEOF
29387 /* end confdefs.h. */
29388
29389 /* Override any gcc2 internal prototype to avoid an error. */
29390 #ifdef __cplusplus
29391 extern "C"
29392 #endif
29393 /* We use char because int might match the return type of a gcc2
29394 builtin and then its argument prototype would still apply. */
29395 char ceilf ();
29396 int
29397 main ()
29398 {
29399 ceilf ();
29400 ;
29401 return 0;
29402 }
29403 _ACEOF
29404 rm -f conftest.$ac_objext conftest$ac_exeext
29405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29406 (eval $ac_link) 2>conftest.er1
29407 ac_status=$?
29408 grep -v '^ *+' conftest.er1 >conftest.err
29409 rm -f conftest.er1
29410 cat conftest.err >&5
29411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29412 (exit $ac_status); } &&
29413 { ac_try='test -z "$ac_c_werror_flag"
29414 || test ! -s conftest.err'
29415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29416 (eval $ac_try) 2>&5
29417 ac_status=$?
29418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29419 (exit $ac_status); }; } &&
29420 { ac_try='test -s conftest$ac_exeext'
29421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29422 (eval $ac_try) 2>&5
29423 ac_status=$?
29424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29425 (exit $ac_status); }; }; then
29426 ac_cv_search_ceilf="-l$ac_lib"
29427 break
29428 else
29429 echo "$as_me: failed program was:" >&5
29430 sed 's/^/| /' conftest.$ac_ext >&5
29431
29432 fi
29433 rm -f conftest.err conftest.$ac_objext \
29434 conftest$ac_exeext conftest.$ac_ext
29435 done
29436 fi
29437 LIBS=$ac_func_search_save_LIBS
29438 fi
29439 echo "$as_me:$LINENO: result: $ac_cv_search_ceilf" >&5
29440 echo "${ECHO_T}$ac_cv_search_ceilf" >&6
29441 if test "$ac_cv_search_ceilf" != no; then
29442 test "$ac_cv_search_ceilf" = "none required" || LIBS="$ac_cv_search_ceilf $LIBS"
29443
29444 cat >>confdefs.h <<\_ACEOF
29445 #define HAVE_CEILF 1
29446 _ACEOF
29447
29448 fi
29449
29450 echo "$as_me:$LINENO: checking for library containing floorf" >&5
29451 echo $ECHO_N "checking for library containing floorf... $ECHO_C" >&6
29452 if test "${ac_cv_search_floorf+set}" = set; then
29453 echo $ECHO_N "(cached) $ECHO_C" >&6
29454 else
29455 ac_func_search_save_LIBS=$LIBS
29456 ac_cv_search_floorf=no
29457 cat >conftest.$ac_ext <<_ACEOF
29458 /* confdefs.h. */
29459 _ACEOF
29460 cat confdefs.h >>conftest.$ac_ext
29461 cat >>conftest.$ac_ext <<_ACEOF
29462 /* end confdefs.h. */
29463
29464 /* Override any gcc2 internal prototype to avoid an error. */
29465 #ifdef __cplusplus
29466 extern "C"
29467 #endif
29468 /* We use char because int might match the return type of a gcc2
29469 builtin and then its argument prototype would still apply. */
29470 char floorf ();
29471 int
29472 main ()
29473 {
29474 floorf ();
29475 ;
29476 return 0;
29477 }
29478 _ACEOF
29479 rm -f conftest.$ac_objext conftest$ac_exeext
29480 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29481 (eval $ac_link) 2>conftest.er1
29482 ac_status=$?
29483 grep -v '^ *+' conftest.er1 >conftest.err
29484 rm -f conftest.er1
29485 cat conftest.err >&5
29486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29487 (exit $ac_status); } &&
29488 { ac_try='test -z "$ac_c_werror_flag"
29489 || test ! -s conftest.err'
29490 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29491 (eval $ac_try) 2>&5
29492 ac_status=$?
29493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29494 (exit $ac_status); }; } &&
29495 { ac_try='test -s conftest$ac_exeext'
29496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29497 (eval $ac_try) 2>&5
29498 ac_status=$?
29499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29500 (exit $ac_status); }; }; then
29501 ac_cv_search_floorf="none required"
29502 else
29503 echo "$as_me: failed program was:" >&5
29504 sed 's/^/| /' conftest.$ac_ext >&5
29505
29506 fi
29507 rm -f conftest.err conftest.$ac_objext \
29508 conftest$ac_exeext conftest.$ac_ext
29509 if test "$ac_cv_search_floorf" = no; then
29510 for ac_lib in m; do
29511 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29512 cat >conftest.$ac_ext <<_ACEOF
29513 /* confdefs.h. */
29514 _ACEOF
29515 cat confdefs.h >>conftest.$ac_ext
29516 cat >>conftest.$ac_ext <<_ACEOF
29517 /* end confdefs.h. */
29518
29519 /* Override any gcc2 internal prototype to avoid an error. */
29520 #ifdef __cplusplus
29521 extern "C"
29522 #endif
29523 /* We use char because int might match the return type of a gcc2
29524 builtin and then its argument prototype would still apply. */
29525 char floorf ();
29526 int
29527 main ()
29528 {
29529 floorf ();
29530 ;
29531 return 0;
29532 }
29533 _ACEOF
29534 rm -f conftest.$ac_objext conftest$ac_exeext
29535 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29536 (eval $ac_link) 2>conftest.er1
29537 ac_status=$?
29538 grep -v '^ *+' conftest.er1 >conftest.err
29539 rm -f conftest.er1
29540 cat conftest.err >&5
29541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29542 (exit $ac_status); } &&
29543 { ac_try='test -z "$ac_c_werror_flag"
29544 || test ! -s conftest.err'
29545 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29546 (eval $ac_try) 2>&5
29547 ac_status=$?
29548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29549 (exit $ac_status); }; } &&
29550 { ac_try='test -s conftest$ac_exeext'
29551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29552 (eval $ac_try) 2>&5
29553 ac_status=$?
29554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29555 (exit $ac_status); }; }; then
29556 ac_cv_search_floorf="-l$ac_lib"
29557 break
29558 else
29559 echo "$as_me: failed program was:" >&5
29560 sed 's/^/| /' conftest.$ac_ext >&5
29561
29562 fi
29563 rm -f conftest.err conftest.$ac_objext \
29564 conftest$ac_exeext conftest.$ac_ext
29565 done
29566 fi
29567 LIBS=$ac_func_search_save_LIBS
29568 fi
29569 echo "$as_me:$LINENO: result: $ac_cv_search_floorf" >&5
29570 echo "${ECHO_T}$ac_cv_search_floorf" >&6
29571 if test "$ac_cv_search_floorf" != no; then
29572 test "$ac_cv_search_floorf" = "none required" || LIBS="$ac_cv_search_floorf $LIBS"
29573
29574 cat >>confdefs.h <<\_ACEOF
29575 #define HAVE_FLOORF 1
29576 _ACEOF
29577
29578 fi
29579
29580 echo "$as_me:$LINENO: checking for library containing powf" >&5
29581 echo $ECHO_N "checking for library containing powf... $ECHO_C" >&6
29582 if test "${ac_cv_search_powf+set}" = set; then
29583 echo $ECHO_N "(cached) $ECHO_C" >&6
29584 else
29585 ac_func_search_save_LIBS=$LIBS
29586 ac_cv_search_powf=no
29587 cat >conftest.$ac_ext <<_ACEOF
29588 /* confdefs.h. */
29589 _ACEOF
29590 cat confdefs.h >>conftest.$ac_ext
29591 cat >>conftest.$ac_ext <<_ACEOF
29592 /* end confdefs.h. */
29593
29594 /* Override any gcc2 internal prototype to avoid an error. */
29595 #ifdef __cplusplus
29596 extern "C"
29597 #endif
29598 /* We use char because int might match the return type of a gcc2
29599 builtin and then its argument prototype would still apply. */
29600 char powf ();
29601 int
29602 main ()
29603 {
29604 powf ();
29605 ;
29606 return 0;
29607 }
29608 _ACEOF
29609 rm -f conftest.$ac_objext conftest$ac_exeext
29610 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29611 (eval $ac_link) 2>conftest.er1
29612 ac_status=$?
29613 grep -v '^ *+' conftest.er1 >conftest.err
29614 rm -f conftest.er1
29615 cat conftest.err >&5
29616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29617 (exit $ac_status); } &&
29618 { ac_try='test -z "$ac_c_werror_flag"
29619 || test ! -s conftest.err'
29620 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29621 (eval $ac_try) 2>&5
29622 ac_status=$?
29623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29624 (exit $ac_status); }; } &&
29625 { ac_try='test -s conftest$ac_exeext'
29626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29627 (eval $ac_try) 2>&5
29628 ac_status=$?
29629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29630 (exit $ac_status); }; }; then
29631 ac_cv_search_powf="none required"
29632 else
29633 echo "$as_me: failed program was:" >&5
29634 sed 's/^/| /' conftest.$ac_ext >&5
29635
29636 fi
29637 rm -f conftest.err conftest.$ac_objext \
29638 conftest$ac_exeext conftest.$ac_ext
29639 if test "$ac_cv_search_powf" = no; then
29640 for ac_lib in m; do
29641 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29642 cat >conftest.$ac_ext <<_ACEOF
29643 /* confdefs.h. */
29644 _ACEOF
29645 cat confdefs.h >>conftest.$ac_ext
29646 cat >>conftest.$ac_ext <<_ACEOF
29647 /* end confdefs.h. */
29648
29649 /* Override any gcc2 internal prototype to avoid an error. */
29650 #ifdef __cplusplus
29651 extern "C"
29652 #endif
29653 /* We use char because int might match the return type of a gcc2
29654 builtin and then its argument prototype would still apply. */
29655 char powf ();
29656 int
29657 main ()
29658 {
29659 powf ();
29660 ;
29661 return 0;
29662 }
29663 _ACEOF
29664 rm -f conftest.$ac_objext conftest$ac_exeext
29665 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29666 (eval $ac_link) 2>conftest.er1
29667 ac_status=$?
29668 grep -v '^ *+' conftest.er1 >conftest.err
29669 rm -f conftest.er1
29670 cat conftest.err >&5
29671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29672 (exit $ac_status); } &&
29673 { ac_try='test -z "$ac_c_werror_flag"
29674 || test ! -s conftest.err'
29675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29676 (eval $ac_try) 2>&5
29677 ac_status=$?
29678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29679 (exit $ac_status); }; } &&
29680 { ac_try='test -s conftest$ac_exeext'
29681 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29682 (eval $ac_try) 2>&5
29683 ac_status=$?
29684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29685 (exit $ac_status); }; }; then
29686 ac_cv_search_powf="-l$ac_lib"
29687 break
29688 else
29689 echo "$as_me: failed program was:" >&5
29690 sed 's/^/| /' conftest.$ac_ext >&5
29691
29692 fi
29693 rm -f conftest.err conftest.$ac_objext \
29694 conftest$ac_exeext conftest.$ac_ext
29695 done
29696 fi
29697 LIBS=$ac_func_search_save_LIBS
29698 fi
29699 echo "$as_me:$LINENO: result: $ac_cv_search_powf" >&5
29700 echo "${ECHO_T}$ac_cv_search_powf" >&6
29701 if test "$ac_cv_search_powf" != no; then
29702 test "$ac_cv_search_powf" = "none required" || LIBS="$ac_cv_search_powf $LIBS"
29703
29704 cat >>confdefs.h <<\_ACEOF
29705 #define HAVE_POWF 1
29706 _ACEOF
29707
29708 fi
29709
29710 echo "$as_me:$LINENO: checking for library containing expf" >&5
29711 echo $ECHO_N "checking for library containing expf... $ECHO_C" >&6
29712 if test "${ac_cv_search_expf+set}" = set; then
29713 echo $ECHO_N "(cached) $ECHO_C" >&6
29714 else
29715 ac_func_search_save_LIBS=$LIBS
29716 ac_cv_search_expf=no
29717 cat >conftest.$ac_ext <<_ACEOF
29718 /* confdefs.h. */
29719 _ACEOF
29720 cat confdefs.h >>conftest.$ac_ext
29721 cat >>conftest.$ac_ext <<_ACEOF
29722 /* end confdefs.h. */
29723
29724 /* Override any gcc2 internal prototype to avoid an error. */
29725 #ifdef __cplusplus
29726 extern "C"
29727 #endif
29728 /* We use char because int might match the return type of a gcc2
29729 builtin and then its argument prototype would still apply. */
29730 char expf ();
29731 int
29732 main ()
29733 {
29734 expf ();
29735 ;
29736 return 0;
29737 }
29738 _ACEOF
29739 rm -f conftest.$ac_objext conftest$ac_exeext
29740 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29741 (eval $ac_link) 2>conftest.er1
29742 ac_status=$?
29743 grep -v '^ *+' conftest.er1 >conftest.err
29744 rm -f conftest.er1
29745 cat conftest.err >&5
29746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29747 (exit $ac_status); } &&
29748 { ac_try='test -z "$ac_c_werror_flag"
29749 || test ! -s conftest.err'
29750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29751 (eval $ac_try) 2>&5
29752 ac_status=$?
29753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29754 (exit $ac_status); }; } &&
29755 { ac_try='test -s conftest$ac_exeext'
29756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29757 (eval $ac_try) 2>&5
29758 ac_status=$?
29759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29760 (exit $ac_status); }; }; then
29761 ac_cv_search_expf="none required"
29762 else
29763 echo "$as_me: failed program was:" >&5
29764 sed 's/^/| /' conftest.$ac_ext >&5
29765
29766 fi
29767 rm -f conftest.err conftest.$ac_objext \
29768 conftest$ac_exeext conftest.$ac_ext
29769 if test "$ac_cv_search_expf" = no; then
29770 for ac_lib in m; do
29771 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29772 cat >conftest.$ac_ext <<_ACEOF
29773 /* confdefs.h. */
29774 _ACEOF
29775 cat confdefs.h >>conftest.$ac_ext
29776 cat >>conftest.$ac_ext <<_ACEOF
29777 /* end confdefs.h. */
29778
29779 /* Override any gcc2 internal prototype to avoid an error. */
29780 #ifdef __cplusplus
29781 extern "C"
29782 #endif
29783 /* We use char because int might match the return type of a gcc2
29784 builtin and then its argument prototype would still apply. */
29785 char expf ();
29786 int
29787 main ()
29788 {
29789 expf ();
29790 ;
29791 return 0;
29792 }
29793 _ACEOF
29794 rm -f conftest.$ac_objext conftest$ac_exeext
29795 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29796 (eval $ac_link) 2>conftest.er1
29797 ac_status=$?
29798 grep -v '^ *+' conftest.er1 >conftest.err
29799 rm -f conftest.er1
29800 cat conftest.err >&5
29801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29802 (exit $ac_status); } &&
29803 { ac_try='test -z "$ac_c_werror_flag"
29804 || test ! -s conftest.err'
29805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29806 (eval $ac_try) 2>&5
29807 ac_status=$?
29808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29809 (exit $ac_status); }; } &&
29810 { ac_try='test -s conftest$ac_exeext'
29811 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29812 (eval $ac_try) 2>&5
29813 ac_status=$?
29814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29815 (exit $ac_status); }; }; then
29816 ac_cv_search_expf="-l$ac_lib"
29817 break
29818 else
29819 echo "$as_me: failed program was:" >&5
29820 sed 's/^/| /' conftest.$ac_ext >&5
29821
29822 fi
29823 rm -f conftest.err conftest.$ac_objext \
29824 conftest$ac_exeext conftest.$ac_ext
29825 done
29826 fi
29827 LIBS=$ac_func_search_save_LIBS
29828 fi
29829 echo "$as_me:$LINENO: result: $ac_cv_search_expf" >&5
29830 echo "${ECHO_T}$ac_cv_search_expf" >&6
29831 if test "$ac_cv_search_expf" != no; then
29832 test "$ac_cv_search_expf" = "none required" || LIBS="$ac_cv_search_expf $LIBS"
29833
29834 cat >>confdefs.h <<\_ACEOF
29835 #define HAVE_EXPF 1
29836 _ACEOF
29837
29838 fi
29839
29840 echo "$as_me:$LINENO: checking for library containing logf" >&5
29841 echo $ECHO_N "checking for library containing logf... $ECHO_C" >&6
29842 if test "${ac_cv_search_logf+set}" = set; then
29843 echo $ECHO_N "(cached) $ECHO_C" >&6
29844 else
29845 ac_func_search_save_LIBS=$LIBS
29846 ac_cv_search_logf=no
29847 cat >conftest.$ac_ext <<_ACEOF
29848 /* confdefs.h. */
29849 _ACEOF
29850 cat confdefs.h >>conftest.$ac_ext
29851 cat >>conftest.$ac_ext <<_ACEOF
29852 /* end confdefs.h. */
29853
29854 /* Override any gcc2 internal prototype to avoid an error. */
29855 #ifdef __cplusplus
29856 extern "C"
29857 #endif
29858 /* We use char because int might match the return type of a gcc2
29859 builtin and then its argument prototype would still apply. */
29860 char logf ();
29861 int
29862 main ()
29863 {
29864 logf ();
29865 ;
29866 return 0;
29867 }
29868 _ACEOF
29869 rm -f conftest.$ac_objext conftest$ac_exeext
29870 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29871 (eval $ac_link) 2>conftest.er1
29872 ac_status=$?
29873 grep -v '^ *+' conftest.er1 >conftest.err
29874 rm -f conftest.er1
29875 cat conftest.err >&5
29876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29877 (exit $ac_status); } &&
29878 { ac_try='test -z "$ac_c_werror_flag"
29879 || test ! -s conftest.err'
29880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29881 (eval $ac_try) 2>&5
29882 ac_status=$?
29883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29884 (exit $ac_status); }; } &&
29885 { ac_try='test -s conftest$ac_exeext'
29886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29887 (eval $ac_try) 2>&5
29888 ac_status=$?
29889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29890 (exit $ac_status); }; }; then
29891 ac_cv_search_logf="none required"
29892 else
29893 echo "$as_me: failed program was:" >&5
29894 sed 's/^/| /' conftest.$ac_ext >&5
29895
29896 fi
29897 rm -f conftest.err conftest.$ac_objext \
29898 conftest$ac_exeext conftest.$ac_ext
29899 if test "$ac_cv_search_logf" = no; then
29900 for ac_lib in m; do
29901 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
29902 cat >conftest.$ac_ext <<_ACEOF
29903 /* confdefs.h. */
29904 _ACEOF
29905 cat confdefs.h >>conftest.$ac_ext
29906 cat >>conftest.$ac_ext <<_ACEOF
29907 /* end confdefs.h. */
29908
29909 /* Override any gcc2 internal prototype to avoid an error. */
29910 #ifdef __cplusplus
29911 extern "C"
29912 #endif
29913 /* We use char because int might match the return type of a gcc2
29914 builtin and then its argument prototype would still apply. */
29915 char logf ();
29916 int
29917 main ()
29918 {
29919 logf ();
29920 ;
29921 return 0;
29922 }
29923 _ACEOF
29924 rm -f conftest.$ac_objext conftest$ac_exeext
29925 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
29926 (eval $ac_link) 2>conftest.er1
29927 ac_status=$?
29928 grep -v '^ *+' conftest.er1 >conftest.err
29929 rm -f conftest.er1
29930 cat conftest.err >&5
29931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29932 (exit $ac_status); } &&
29933 { ac_try='test -z "$ac_c_werror_flag"
29934 || test ! -s conftest.err'
29935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29936 (eval $ac_try) 2>&5
29937 ac_status=$?
29938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29939 (exit $ac_status); }; } &&
29940 { ac_try='test -s conftest$ac_exeext'
29941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
29942 (eval $ac_try) 2>&5
29943 ac_status=$?
29944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29945 (exit $ac_status); }; }; then
29946 ac_cv_search_logf="-l$ac_lib"
29947 break
29948 else
29949 echo "$as_me: failed program was:" >&5
29950 sed 's/^/| /' conftest.$ac_ext >&5
29951
29952 fi
29953 rm -f conftest.err conftest.$ac_objext \
29954 conftest$ac_exeext conftest.$ac_ext
29955 done
29956 fi
29957 LIBS=$ac_func_search_save_LIBS
29958 fi
29959 echo "$as_me:$LINENO: result: $ac_cv_search_logf" >&5
29960 echo "${ECHO_T}$ac_cv_search_logf" >&6
29961 if test "$ac_cv_search_logf" != no; then
29962 test "$ac_cv_search_logf" = "none required" || LIBS="$ac_cv_search_logf $LIBS"
29963
29964 cat >>confdefs.h <<\_ACEOF
29965 #define HAVE_LOGF 1
29966 _ACEOF
29967
29968 fi
29969
29970 echo "$as_me:$LINENO: checking for library containing log10f" >&5
29971 echo $ECHO_N "checking for library containing log10f... $ECHO_C" >&6
29972 if test "${ac_cv_search_log10f+set}" = set; then
29973 echo $ECHO_N "(cached) $ECHO_C" >&6
29974 else
29975 ac_func_search_save_LIBS=$LIBS
29976 ac_cv_search_log10f=no
29977 cat >conftest.$ac_ext <<_ACEOF
29978 /* confdefs.h. */
29979 _ACEOF
29980 cat confdefs.h >>conftest.$ac_ext
29981 cat >>conftest.$ac_ext <<_ACEOF
29982 /* end confdefs.h. */
29983
29984 /* Override any gcc2 internal prototype to avoid an error. */
29985 #ifdef __cplusplus
29986 extern "C"
29987 #endif
29988 /* We use char because int might match the return type of a gcc2
29989 builtin and then its argument prototype would still apply. */
29990 char log10f ();
29991 int
29992 main ()
29993 {
29994 log10f ();
29995 ;
29996 return 0;
29997 }
29998 _ACEOF
29999 rm -f conftest.$ac_objext conftest$ac_exeext
30000 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30001 (eval $ac_link) 2>conftest.er1
30002 ac_status=$?
30003 grep -v '^ *+' conftest.er1 >conftest.err
30004 rm -f conftest.er1
30005 cat conftest.err >&5
30006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30007 (exit $ac_status); } &&
30008 { ac_try='test -z "$ac_c_werror_flag"
30009 || test ! -s conftest.err'
30010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30011 (eval $ac_try) 2>&5
30012 ac_status=$?
30013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30014 (exit $ac_status); }; } &&
30015 { ac_try='test -s conftest$ac_exeext'
30016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30017 (eval $ac_try) 2>&5
30018 ac_status=$?
30019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30020 (exit $ac_status); }; }; then
30021 ac_cv_search_log10f="none required"
30022 else
30023 echo "$as_me: failed program was:" >&5
30024 sed 's/^/| /' conftest.$ac_ext >&5
30025
30026 fi
30027 rm -f conftest.err conftest.$ac_objext \
30028 conftest$ac_exeext conftest.$ac_ext
30029 if test "$ac_cv_search_log10f" = no; then
30030 for ac_lib in m; do
30031 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
30032 cat >conftest.$ac_ext <<_ACEOF
30033 /* confdefs.h. */
30034 _ACEOF
30035 cat confdefs.h >>conftest.$ac_ext
30036 cat >>conftest.$ac_ext <<_ACEOF
30037 /* end confdefs.h. */
30038
30039 /* Override any gcc2 internal prototype to avoid an error. */
30040 #ifdef __cplusplus
30041 extern "C"
30042 #endif
30043 /* We use char because int might match the return type of a gcc2
30044 builtin and then its argument prototype would still apply. */
30045 char log10f ();
30046 int
30047 main ()
30048 {
30049 log10f ();
30050 ;
30051 return 0;
30052 }
30053 _ACEOF
30054 rm -f conftest.$ac_objext conftest$ac_exeext
30055 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30056 (eval $ac_link) 2>conftest.er1
30057 ac_status=$?
30058 grep -v '^ *+' conftest.er1 >conftest.err
30059 rm -f conftest.er1
30060 cat conftest.err >&5
30061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30062 (exit $ac_status); } &&
30063 { ac_try='test -z "$ac_c_werror_flag"
30064 || test ! -s conftest.err'
30065 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30066 (eval $ac_try) 2>&5
30067 ac_status=$?
30068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30069 (exit $ac_status); }; } &&
30070 { ac_try='test -s conftest$ac_exeext'
30071 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30072 (eval $ac_try) 2>&5
30073 ac_status=$?
30074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30075 (exit $ac_status); }; }; then
30076 ac_cv_search_log10f="-l$ac_lib"
30077 break
30078 else
30079 echo "$as_me: failed program was:" >&5
30080 sed 's/^/| /' conftest.$ac_ext >&5
30081
30082 fi
30083 rm -f conftest.err conftest.$ac_objext \
30084 conftest$ac_exeext conftest.$ac_ext
30085 done
30086 fi
30087 LIBS=$ac_func_search_save_LIBS
30088 fi
30089 echo "$as_me:$LINENO: result: $ac_cv_search_log10f" >&5
30090 echo "${ECHO_T}$ac_cv_search_log10f" >&6
30091 if test "$ac_cv_search_log10f" != no; then
30092 test "$ac_cv_search_log10f" = "none required" || LIBS="$ac_cv_search_log10f $LIBS"
30093
30094 cat >>confdefs.h <<\_ACEOF
30095 #define HAVE_LOG10F 1
30096 _ACEOF
30097
30098 fi
30099
30100
30101 # Checks for libraries.
30102 echo "$as_me:$LINENO: checking for xmlParseFile in -lxml2" >&5
30103 echo $ECHO_N "checking for xmlParseFile in -lxml2... $ECHO_C" >&6
30104 if test "${ac_cv_lib_xml2_xmlParseFile+set}" = set; then
30105 echo $ECHO_N "(cached) $ECHO_C" >&6
30106 else
30107 ac_check_lib_save_LIBS=$LIBS
30108 LIBS="-lxml2 $LIBS"
30109 cat >conftest.$ac_ext <<_ACEOF
30110 /* confdefs.h. */
30111 _ACEOF
30112 cat confdefs.h >>conftest.$ac_ext
30113 cat >>conftest.$ac_ext <<_ACEOF
30114 /* end confdefs.h. */
30115
30116 /* Override any gcc2 internal prototype to avoid an error. */
30117 #ifdef __cplusplus
30118 extern "C"
30119 #endif
30120 /* We use char because int might match the return type of a gcc2
30121 builtin and then its argument prototype would still apply. */
30122 char xmlParseFile ();
30123 int
30124 main ()
30125 {
30126 xmlParseFile ();
30127 ;
30128 return 0;
30129 }
30130 _ACEOF
30131 rm -f conftest.$ac_objext conftest$ac_exeext
30132 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30133 (eval $ac_link) 2>conftest.er1
30134 ac_status=$?
30135 grep -v '^ *+' conftest.er1 >conftest.err
30136 rm -f conftest.er1
30137 cat conftest.err >&5
30138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30139 (exit $ac_status); } &&
30140 { ac_try='test -z "$ac_c_werror_flag"
30141 || test ! -s conftest.err'
30142 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30143 (eval $ac_try) 2>&5
30144 ac_status=$?
30145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30146 (exit $ac_status); }; } &&
30147 { ac_try='test -s conftest$ac_exeext'
30148 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30149 (eval $ac_try) 2>&5
30150 ac_status=$?
30151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30152 (exit $ac_status); }; }; then
30153 ac_cv_lib_xml2_xmlParseFile=yes
30154 else
30155 echo "$as_me: failed program was:" >&5
30156 sed 's/^/| /' conftest.$ac_ext >&5
30157
30158 ac_cv_lib_xml2_xmlParseFile=no
30159 fi
30160 rm -f conftest.err conftest.$ac_objext \
30161 conftest$ac_exeext conftest.$ac_ext
30162 LIBS=$ac_check_lib_save_LIBS
30163 fi
30164 echo "$as_me:$LINENO: result: $ac_cv_lib_xml2_xmlParseFile" >&5
30165 echo "${ECHO_T}$ac_cv_lib_xml2_xmlParseFile" >&6
30166 if test $ac_cv_lib_xml2_xmlParseFile = yes; then
30167
30168 cat >>confdefs.h <<\_ACEOF
30169 #define HAVE_LIBXML2 1
30170 _ACEOF
30171 SIMLIBS="$SIMLIBS -lxml2"
30172 fi
30173
30174
30175 if test -n "$enable_tests" ; then
30176 ac_ext=c
30177 ac_cpp='$CPP $CPPFLAGS'
30178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30181
30182 echo "$as_me:$LINENO: checking for sf_open in -lsndfile" >&5
30183 echo $ECHO_N "checking for sf_open in -lsndfile... $ECHO_C" >&6
30184 if test "${ac_cv_lib_sndfile_sf_open+set}" = set; then
30185 echo $ECHO_N "(cached) $ECHO_C" >&6
30186 else
30187 ac_check_lib_save_LIBS=$LIBS
30188 LIBS="-lsndfile $LIBS"
30189 cat >conftest.$ac_ext <<_ACEOF
30190 /* confdefs.h. */
30191 _ACEOF
30192 cat confdefs.h >>conftest.$ac_ext
30193 cat >>conftest.$ac_ext <<_ACEOF
30194 /* end confdefs.h. */
30195
30196 /* Override any gcc2 internal prototype to avoid an error. */
30197 #ifdef __cplusplus
30198 extern "C"
30199 #endif
30200 /* We use char because int might match the return type of a gcc2
30201 builtin and then its argument prototype would still apply. */
30202 char sf_open ();
30203 int
30204 main ()
30205 {
30206 sf_open ();
30207 ;
30208 return 0;
30209 }
30210 _ACEOF
30211 rm -f conftest.$ac_objext conftest$ac_exeext
30212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30213 (eval $ac_link) 2>conftest.er1
30214 ac_status=$?
30215 grep -v '^ *+' conftest.er1 >conftest.err
30216 rm -f conftest.er1
30217 cat conftest.err >&5
30218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30219 (exit $ac_status); } &&
30220 { ac_try='test -z "$ac_c_werror_flag"
30221 || test ! -s conftest.err'
30222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30223 (eval $ac_try) 2>&5
30224 ac_status=$?
30225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30226 (exit $ac_status); }; } &&
30227 { ac_try='test -s conftest$ac_exeext'
30228 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30229 (eval $ac_try) 2>&5
30230 ac_status=$?
30231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30232 (exit $ac_status); }; }; then
30233 ac_cv_lib_sndfile_sf_open=yes
30234 else
30235 echo "$as_me: failed program was:" >&5
30236 sed 's/^/| /' conftest.$ac_ext >&5
30237
30238 ac_cv_lib_sndfile_sf_open=no
30239 fi
30240 rm -f conftest.err conftest.$ac_objext \
30241 conftest$ac_exeext conftest.$ac_ext
30242 LIBS=$ac_check_lib_save_LIBS
30243 fi
30244 echo "$as_me:$LINENO: result: $ac_cv_lib_sndfile_sf_open" >&5
30245 echo "${ECHO_T}$ac_cv_lib_sndfile_sf_open" >&6
30246 if test $ac_cv_lib_sndfile_sf_open = yes; then
30247 SIMLIBS="$SIMLIBS -lsndfile"
30248 else
30249 { { echo "$as_me:$LINENO: error: \"Can't make tests without libsndfile (does your system require a libsndfile-devel package?)\"" >&5
30250 echo "$as_me: error: \"Can't make tests without libsndfile (does your system require a libsndfile-devel package?)\"" >&2;}
30251 { (exit 1); exit 1; }; }
30252 fi
30253
30254 echo "$as_me:$LINENO: checking for fftw_plan_dft_1d in -lfftw3" >&5
30255 echo $ECHO_N "checking for fftw_plan_dft_1d in -lfftw3... $ECHO_C" >&6
30256 if test "${ac_cv_lib_fftw3_fftw_plan_dft_1d+set}" = set; then
30257 echo $ECHO_N "(cached) $ECHO_C" >&6
30258 else
30259 ac_check_lib_save_LIBS=$LIBS
30260 LIBS="-lfftw3 $LIBS"
30261 cat >conftest.$ac_ext <<_ACEOF
30262 /* confdefs.h. */
30263 _ACEOF
30264 cat confdefs.h >>conftest.$ac_ext
30265 cat >>conftest.$ac_ext <<_ACEOF
30266 /* end confdefs.h. */
30267
30268 /* Override any gcc2 internal prototype to avoid an error. */
30269 #ifdef __cplusplus
30270 extern "C"
30271 #endif
30272 /* We use char because int might match the return type of a gcc2
30273 builtin and then its argument prototype would still apply. */
30274 char fftw_plan_dft_1d ();
30275 int
30276 main ()
30277 {
30278 fftw_plan_dft_1d ();
30279 ;
30280 return 0;
30281 }
30282 _ACEOF
30283 rm -f conftest.$ac_objext conftest$ac_exeext
30284 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30285 (eval $ac_link) 2>conftest.er1
30286 ac_status=$?
30287 grep -v '^ *+' conftest.er1 >conftest.err
30288 rm -f conftest.er1
30289 cat conftest.err >&5
30290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30291 (exit $ac_status); } &&
30292 { ac_try='test -z "$ac_c_werror_flag"
30293 || test ! -s conftest.err'
30294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30295 (eval $ac_try) 2>&5
30296 ac_status=$?
30297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30298 (exit $ac_status); }; } &&
30299 { ac_try='test -s conftest$ac_exeext'
30300 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30301 (eval $ac_try) 2>&5
30302 ac_status=$?
30303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30304 (exit $ac_status); }; }; then
30305 ac_cv_lib_fftw3_fftw_plan_dft_1d=yes
30306 else
30307 echo "$as_me: failed program was:" >&5
30308 sed 's/^/| /' conftest.$ac_ext >&5
30309
30310 ac_cv_lib_fftw3_fftw_plan_dft_1d=no
30311 fi
30312 rm -f conftest.err conftest.$ac_objext \
30313 conftest$ac_exeext conftest.$ac_ext
30314 LIBS=$ac_check_lib_save_LIBS
30315 fi
30316 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw3_fftw_plan_dft_1d" >&5
30317 echo "${ECHO_T}$ac_cv_lib_fftw3_fftw_plan_dft_1d" >&6
30318 if test $ac_cv_lib_fftw3_fftw_plan_dft_1d = yes; then
30319 SIMLIBS="$SIMLIBS -lfftw3"
30320 else
30321 echo "$as_me:$LINENO: checking for fftw_create_plan in -lfftw" >&5
30322 echo $ECHO_N "checking for fftw_create_plan in -lfftw... $ECHO_C" >&6
30323 if test "${ac_cv_lib_fftw_fftw_create_plan+set}" = set; then
30324 echo $ECHO_N "(cached) $ECHO_C" >&6
30325 else
30326 ac_check_lib_save_LIBS=$LIBS
30327 LIBS="-lfftw $LIBS"
30328 cat >conftest.$ac_ext <<_ACEOF
30329 /* confdefs.h. */
30330 _ACEOF
30331 cat confdefs.h >>conftest.$ac_ext
30332 cat >>conftest.$ac_ext <<_ACEOF
30333 /* end confdefs.h. */
30334
30335 /* Override any gcc2 internal prototype to avoid an error. */
30336 #ifdef __cplusplus
30337 extern "C"
30338 #endif
30339 /* We use char because int might match the return type of a gcc2
30340 builtin and then its argument prototype would still apply. */
30341 char fftw_create_plan ();
30342 int
30343 main ()
30344 {
30345 fftw_create_plan ();
30346 ;
30347 return 0;
30348 }
30349 _ACEOF
30350 rm -f conftest.$ac_objext conftest$ac_exeext
30351 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30352 (eval $ac_link) 2>conftest.er1
30353 ac_status=$?
30354 grep -v '^ *+' conftest.er1 >conftest.err
30355 rm -f conftest.er1
30356 cat conftest.err >&5
30357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30358 (exit $ac_status); } &&
30359 { ac_try='test -z "$ac_c_werror_flag"
30360 || test ! -s conftest.err'
30361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30362 (eval $ac_try) 2>&5
30363 ac_status=$?
30364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30365 (exit $ac_status); }; } &&
30366 { ac_try='test -s conftest$ac_exeext'
30367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30368 (eval $ac_try) 2>&5
30369 ac_status=$?
30370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30371 (exit $ac_status); }; }; then
30372 ac_cv_lib_fftw_fftw_create_plan=yes
30373 else
30374 echo "$as_me: failed program was:" >&5
30375 sed 's/^/| /' conftest.$ac_ext >&5
30376
30377 ac_cv_lib_fftw_fftw_create_plan=no
30378 fi
30379 rm -f conftest.err conftest.$ac_objext \
30380 conftest$ac_exeext conftest.$ac_ext
30381 LIBS=$ac_check_lib_save_LIBS
30382 fi
30383 echo "$as_me:$LINENO: result: $ac_cv_lib_fftw_fftw_create_plan" >&5
30384 echo "${ECHO_T}$ac_cv_lib_fftw_fftw_create_plan" >&6
30385 if test $ac_cv_lib_fftw_fftw_create_plan = yes; then
30386 SIMLIBS="$SIMLIBS -lfftw"
30387 else
30388 { { echo "$as_me:$LINENO: error: \"Can't make tests without FFTW 2 or 3 (does your system require an fftw?-devel package?)\"" >&5
30389 echo "$as_me: error: \"Can't make tests without FFTW 2 or 3 (does your system require an fftw?-devel package?)\"" >&2;}
30390 { (exit 1); exit 1; }; }
30391 fi
30392
30393 fi
30394
30395 echo "$as_me:$LINENO: checking for pthread_attr_init in -lpthread" >&5
30396 echo $ECHO_N "checking for pthread_attr_init in -lpthread... $ECHO_C" >&6
30397 if test "${ac_cv_lib_pthread_pthread_attr_init+set}" = set; then
30398 echo $ECHO_N "(cached) $ECHO_C" >&6
30399 else
30400 ac_check_lib_save_LIBS=$LIBS
30401 LIBS="-lpthread $LIBS"
30402 cat >conftest.$ac_ext <<_ACEOF
30403 /* confdefs.h. */
30404 _ACEOF
30405 cat confdefs.h >>conftest.$ac_ext
30406 cat >>conftest.$ac_ext <<_ACEOF
30407 /* end confdefs.h. */
30408
30409 /* Override any gcc2 internal prototype to avoid an error. */
30410 #ifdef __cplusplus
30411 extern "C"
30412 #endif
30413 /* We use char because int might match the return type of a gcc2
30414 builtin and then its argument prototype would still apply. */
30415 char pthread_attr_init ();
30416 int
30417 main ()
30418 {
30419 pthread_attr_init ();
30420 ;
30421 return 0;
30422 }
30423 _ACEOF
30424 rm -f conftest.$ac_objext conftest$ac_exeext
30425 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30426 (eval $ac_link) 2>conftest.er1
30427 ac_status=$?
30428 grep -v '^ *+' conftest.er1 >conftest.err
30429 rm -f conftest.er1
30430 cat conftest.err >&5
30431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30432 (exit $ac_status); } &&
30433 { ac_try='test -z "$ac_c_werror_flag"
30434 || test ! -s conftest.err'
30435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30436 (eval $ac_try) 2>&5
30437 ac_status=$?
30438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30439 (exit $ac_status); }; } &&
30440 { ac_try='test -s conftest$ac_exeext'
30441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30442 (eval $ac_try) 2>&5
30443 ac_status=$?
30444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30445 (exit $ac_status); }; }; then
30446 ac_cv_lib_pthread_pthread_attr_init=yes
30447 else
30448 echo "$as_me: failed program was:" >&5
30449 sed 's/^/| /' conftest.$ac_ext >&5
30450
30451 ac_cv_lib_pthread_pthread_attr_init=no
30452 fi
30453 rm -f conftest.err conftest.$ac_objext \
30454 conftest$ac_exeext conftest.$ac_ext
30455 LIBS=$ac_check_lib_save_LIBS
30456 fi
30457 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_attr_init" >&5
30458 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_attr_init" >&6
30459 if test $ac_cv_lib_pthread_pthread_attr_init = yes; then
30460 TESTLIBS="$TESTLIBS -lpthread"
30461 fi
30462
30463 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
30464 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
30465 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
30466 echo $ECHO_N "(cached) $ECHO_C" >&6
30467 else
30468 ac_check_lib_save_LIBS=$LIBS
30469 LIBS="-ldl $LIBS"
30470 cat >conftest.$ac_ext <<_ACEOF
30471 /* confdefs.h. */
30472 _ACEOF
30473 cat confdefs.h >>conftest.$ac_ext
30474 cat >>conftest.$ac_ext <<_ACEOF
30475 /* end confdefs.h. */
30476
30477 /* Override any gcc2 internal prototype to avoid an error. */
30478 #ifdef __cplusplus
30479 extern "C"
30480 #endif
30481 /* We use char because int might match the return type of a gcc2
30482 builtin and then its argument prototype would still apply. */
30483 char dlopen ();
30484 int
30485 main ()
30486 {
30487 dlopen ();
30488 ;
30489 return 0;
30490 }
30491 _ACEOF
30492 rm -f conftest.$ac_objext conftest$ac_exeext
30493 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30494 (eval $ac_link) 2>conftest.er1
30495 ac_status=$?
30496 grep -v '^ *+' conftest.er1 >conftest.err
30497 rm -f conftest.er1
30498 cat conftest.err >&5
30499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30500 (exit $ac_status); } &&
30501 { ac_try='test -z "$ac_c_werror_flag"
30502 || test ! -s conftest.err'
30503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30504 (eval $ac_try) 2>&5
30505 ac_status=$?
30506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30507 (exit $ac_status); }; } &&
30508 { ac_try='test -s conftest$ac_exeext'
30509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30510 (eval $ac_try) 2>&5
30511 ac_status=$?
30512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30513 (exit $ac_status); }; }; then
30514 ac_cv_lib_dl_dlopen=yes
30515 else
30516 echo "$as_me: failed program was:" >&5
30517 sed 's/^/| /' conftest.$ac_ext >&5
30518
30519 ac_cv_lib_dl_dlopen=no
30520 fi
30521 rm -f conftest.err conftest.$ac_objext \
30522 conftest$ac_exeext conftest.$ac_ext
30523 LIBS=$ac_check_lib_save_LIBS
30524 fi
30525 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
30526 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
30527 if test $ac_cv_lib_dl_dlopen = yes; then
30528 TESTLIBS="$TESTLIBS -ldl"
30529 fi
30530
30531 echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
30532 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6
30533 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
30534 echo $ECHO_N "(cached) $ECHO_C" >&6
30535 else
30536 ac_check_lib_save_LIBS=$LIBS
30537 LIBS="-lXft $TESTLIBS $LIBS"
30538 cat >conftest.$ac_ext <<_ACEOF
30539 /* confdefs.h. */
30540 _ACEOF
30541 cat confdefs.h >>conftest.$ac_ext
30542 cat >>conftest.$ac_ext <<_ACEOF
30543 /* end confdefs.h. */
30544
30545 /* Override any gcc2 internal prototype to avoid an error. */
30546 #ifdef __cplusplus
30547 extern "C"
30548 #endif
30549 /* We use char because int might match the return type of a gcc2
30550 builtin and then its argument prototype would still apply. */
30551 char XftFontOpen ();
30552 int
30553 main ()
30554 {
30555 XftFontOpen ();
30556 ;
30557 return 0;
30558 }
30559 _ACEOF
30560 rm -f conftest.$ac_objext conftest$ac_exeext
30561 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30562 (eval $ac_link) 2>conftest.er1
30563 ac_status=$?
30564 grep -v '^ *+' conftest.er1 >conftest.err
30565 rm -f conftest.er1
30566 cat conftest.err >&5
30567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30568 (exit $ac_status); } &&
30569 { ac_try='test -z "$ac_c_werror_flag"
30570 || test ! -s conftest.err'
30571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30572 (eval $ac_try) 2>&5
30573 ac_status=$?
30574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30575 (exit $ac_status); }; } &&
30576 { ac_try='test -s conftest$ac_exeext'
30577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30578 (eval $ac_try) 2>&5
30579 ac_status=$?
30580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30581 (exit $ac_status); }; }; then
30582 ac_cv_lib_Xft_XftFontOpen=yes
30583 else
30584 echo "$as_me: failed program was:" >&5
30585 sed 's/^/| /' conftest.$ac_ext >&5
30586
30587 ac_cv_lib_Xft_XftFontOpen=no
30588 fi
30589 rm -f conftest.err conftest.$ac_objext \
30590 conftest$ac_exeext conftest.$ac_ext
30591 LIBS=$ac_check_lib_save_LIBS
30592 fi
30593 echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
30594 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6
30595 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
30596 TESTLIBS="$TESTLIBS -lXft"
30597 fi
30598
30599 echo "$as_me:$LINENO: checking for XextCreateExtension in -lXext" >&5
30600 echo $ECHO_N "checking for XextCreateExtension in -lXext... $ECHO_C" >&6
30601 if test "${ac_cv_lib_Xext_XextCreateExtension+set}" = set; then
30602 echo $ECHO_N "(cached) $ECHO_C" >&6
30603 else
30604 ac_check_lib_save_LIBS=$LIBS
30605 LIBS="-lXext $TESTLIBS $LIBS"
30606 cat >conftest.$ac_ext <<_ACEOF
30607 /* confdefs.h. */
30608 _ACEOF
30609 cat confdefs.h >>conftest.$ac_ext
30610 cat >>conftest.$ac_ext <<_ACEOF
30611 /* end confdefs.h. */
30612
30613 /* Override any gcc2 internal prototype to avoid an error. */
30614 #ifdef __cplusplus
30615 extern "C"
30616 #endif
30617 /* We use char because int might match the return type of a gcc2
30618 builtin and then its argument prototype would still apply. */
30619 char XextCreateExtension ();
30620 int
30621 main ()
30622 {
30623 XextCreateExtension ();
30624 ;
30625 return 0;
30626 }
30627 _ACEOF
30628 rm -f conftest.$ac_objext conftest$ac_exeext
30629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30630 (eval $ac_link) 2>conftest.er1
30631 ac_status=$?
30632 grep -v '^ *+' conftest.er1 >conftest.err
30633 rm -f conftest.er1
30634 cat conftest.err >&5
30635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30636 (exit $ac_status); } &&
30637 { ac_try='test -z "$ac_c_werror_flag"
30638 || test ! -s conftest.err'
30639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30640 (eval $ac_try) 2>&5
30641 ac_status=$?
30642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30643 (exit $ac_status); }; } &&
30644 { ac_try='test -s conftest$ac_exeext'
30645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30646 (eval $ac_try) 2>&5
30647 ac_status=$?
30648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30649 (exit $ac_status); }; }; then
30650 ac_cv_lib_Xext_XextCreateExtension=yes
30651 else
30652 echo "$as_me: failed program was:" >&5
30653 sed 's/^/| /' conftest.$ac_ext >&5
30654
30655 ac_cv_lib_Xext_XextCreateExtension=no
30656 fi
30657 rm -f conftest.err conftest.$ac_objext \
30658 conftest$ac_exeext conftest.$ac_ext
30659 LIBS=$ac_check_lib_save_LIBS
30660 fi
30661 echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XextCreateExtension" >&5
30662 echo "${ECHO_T}$ac_cv_lib_Xext_XextCreateExtension" >&6
30663 if test $ac_cv_lib_Xext_XextCreateExtension = yes; then
30664 TESTLIBS="$TESTLIBS -lXext"
30665 fi
30666
30667 echo "$as_me:$LINENO: checking for XOpenDisplay in -lX11" >&5
30668 echo $ECHO_N "checking for XOpenDisplay in -lX11... $ECHO_C" >&6
30669 if test "${ac_cv_lib_X11_XOpenDisplay+set}" = set; then
30670 echo $ECHO_N "(cached) $ECHO_C" >&6
30671 else
30672 ac_check_lib_save_LIBS=$LIBS
30673 LIBS="-lX11 $TESTLIBS $LIBS"
30674 cat >conftest.$ac_ext <<_ACEOF
30675 /* confdefs.h. */
30676 _ACEOF
30677 cat confdefs.h >>conftest.$ac_ext
30678 cat >>conftest.$ac_ext <<_ACEOF
30679 /* end confdefs.h. */
30680
30681 /* Override any gcc2 internal prototype to avoid an error. */
30682 #ifdef __cplusplus
30683 extern "C"
30684 #endif
30685 /* We use char because int might match the return type of a gcc2
30686 builtin and then its argument prototype would still apply. */
30687 char XOpenDisplay ();
30688 int
30689 main ()
30690 {
30691 XOpenDisplay ();
30692 ;
30693 return 0;
30694 }
30695 _ACEOF
30696 rm -f conftest.$ac_objext conftest$ac_exeext
30697 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30698 (eval $ac_link) 2>conftest.er1
30699 ac_status=$?
30700 grep -v '^ *+' conftest.er1 >conftest.err
30701 rm -f conftest.er1
30702 cat conftest.err >&5
30703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30704 (exit $ac_status); } &&
30705 { ac_try='test -z "$ac_c_werror_flag"
30706 || test ! -s conftest.err'
30707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30708 (eval $ac_try) 2>&5
30709 ac_status=$?
30710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30711 (exit $ac_status); }; } &&
30712 { ac_try='test -s conftest$ac_exeext'
30713 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30714 (eval $ac_try) 2>&5
30715 ac_status=$?
30716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30717 (exit $ac_status); }; }; then
30718 ac_cv_lib_X11_XOpenDisplay=yes
30719 else
30720 echo "$as_me: failed program was:" >&5
30721 sed 's/^/| /' conftest.$ac_ext >&5
30722
30723 ac_cv_lib_X11_XOpenDisplay=no
30724 fi
30725 rm -f conftest.err conftest.$ac_objext \
30726 conftest$ac_exeext conftest.$ac_ext
30727 LIBS=$ac_check_lib_save_LIBS
30728 fi
30729 echo "$as_me:$LINENO: result: $ac_cv_lib_X11_XOpenDisplay" >&5
30730 echo "${ECHO_T}$ac_cv_lib_X11_XOpenDisplay" >&6
30731 if test $ac_cv_lib_X11_XOpenDisplay = yes; then
30732 TESTLIBS="$TESTLIBS -lX11"
30733 fi
30734
30735 ac_ext=cc
30736 ac_cpp='$CXXCPP $CPPFLAGS'
30737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
30740
30741 echo "$as_me:$LINENO: checking for main in -lfltk" >&5
30742 echo $ECHO_N "checking for main in -lfltk... $ECHO_C" >&6
30743 if test "${ac_cv_lib_fltk_main+set}" = set; then
30744 echo $ECHO_N "(cached) $ECHO_C" >&6
30745 else
30746 ac_check_lib_save_LIBS=$LIBS
30747 LIBS="-lfltk $TESTLIBS $LIBS"
30748 cat >conftest.$ac_ext <<_ACEOF
30749 /* confdefs.h. */
30750 _ACEOF
30751 cat confdefs.h >>conftest.$ac_ext
30752 cat >>conftest.$ac_ext <<_ACEOF
30753 /* end confdefs.h. */
30754
30755
30756 int
30757 main ()
30758 {
30759 main ();
30760 ;
30761 return 0;
30762 }
30763 _ACEOF
30764 rm -f conftest.$ac_objext conftest$ac_exeext
30765 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30766 (eval $ac_link) 2>conftest.er1
30767 ac_status=$?
30768 grep -v '^ *+' conftest.er1 >conftest.err
30769 rm -f conftest.er1
30770 cat conftest.err >&5
30771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30772 (exit $ac_status); } &&
30773 { ac_try='test -z "$ac_cxx_werror_flag"
30774 || test ! -s conftest.err'
30775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30776 (eval $ac_try) 2>&5
30777 ac_status=$?
30778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30779 (exit $ac_status); }; } &&
30780 { ac_try='test -s conftest$ac_exeext'
30781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30782 (eval $ac_try) 2>&5
30783 ac_status=$?
30784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30785 (exit $ac_status); }; }; then
30786 ac_cv_lib_fltk_main=yes
30787 else
30788 echo "$as_me: failed program was:" >&5
30789 sed 's/^/| /' conftest.$ac_ext >&5
30790
30791 ac_cv_lib_fltk_main=no
30792 fi
30793 rm -f conftest.err conftest.$ac_objext \
30794 conftest$ac_exeext conftest.$ac_ext
30795 LIBS=$ac_check_lib_save_LIBS
30796 fi
30797 echo "$as_me:$LINENO: result: $ac_cv_lib_fltk_main" >&5
30798 echo "${ECHO_T}$ac_cv_lib_fltk_main" >&6
30799 if test $ac_cv_lib_fltk_main = yes; then
30800 TESTLIBS="$TESTLIBS -lfltk -lsupc++"
30801 fi
30802
30803 echo "$as_me:$LINENO: checking for main in -lfltk_cartesian" >&5
30804 echo $ECHO_N "checking for main in -lfltk_cartesian... $ECHO_C" >&6
30805 if test "${ac_cv_lib_fltk_cartesian_main+set}" = set; then
30806 echo $ECHO_N "(cached) $ECHO_C" >&6
30807 else
30808 ac_check_lib_save_LIBS=$LIBS
30809 LIBS="-lfltk_cartesian $TESTLIBS $LIBS"
30810 cat >conftest.$ac_ext <<_ACEOF
30811 /* confdefs.h. */
30812 _ACEOF
30813 cat confdefs.h >>conftest.$ac_ext
30814 cat >>conftest.$ac_ext <<_ACEOF
30815 /* end confdefs.h. */
30816
30817
30818 int
30819 main ()
30820 {
30821 main ();
30822 ;
30823 return 0;
30824 }
30825 _ACEOF
30826 rm -f conftest.$ac_objext conftest$ac_exeext
30827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30828 (eval $ac_link) 2>conftest.er1
30829 ac_status=$?
30830 grep -v '^ *+' conftest.er1 >conftest.err
30831 rm -f conftest.er1
30832 cat conftest.err >&5
30833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30834 (exit $ac_status); } &&
30835 { ac_try='test -z "$ac_cxx_werror_flag"
30836 || test ! -s conftest.err'
30837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30838 (eval $ac_try) 2>&5
30839 ac_status=$?
30840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30841 (exit $ac_status); }; } &&
30842 { ac_try='test -s conftest$ac_exeext'
30843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30844 (eval $ac_try) 2>&5
30845 ac_status=$?
30846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30847 (exit $ac_status); }; }; then
30848 ac_cv_lib_fltk_cartesian_main=yes
30849 else
30850 echo "$as_me: failed program was:" >&5
30851 sed 's/^/| /' conftest.$ac_ext >&5
30852
30853 ac_cv_lib_fltk_cartesian_main=no
30854 fi
30855 rm -f conftest.err conftest.$ac_objext \
30856 conftest$ac_exeext conftest.$ac_ext
30857 LIBS=$ac_check_lib_save_LIBS
30858 fi
30859 echo "$as_me:$LINENO: result: $ac_cv_lib_fltk_cartesian_main" >&5
30860 echo "${ECHO_T}$ac_cv_lib_fltk_cartesian_main" >&6
30861 if test $ac_cv_lib_fltk_cartesian_main = yes; then
30862 TESTLIBS="-lfltk_cartesian $TESTLIBS"
30863 fi
30864
30865 echo "$as_me:$LINENO: checking for main in -lfltk_audio_meter" >&5
30866 echo $ECHO_N "checking for main in -lfltk_audio_meter... $ECHO_C" >&6
30867 if test "${ac_cv_lib_fltk_audio_meter_main+set}" = set; then
30868 echo $ECHO_N "(cached) $ECHO_C" >&6
30869 else
30870 ac_check_lib_save_LIBS=$LIBS
30871 LIBS="-lfltk_audio_meter $TESTLIBS $LIBS"
30872 cat >conftest.$ac_ext <<_ACEOF
30873 /* confdefs.h. */
30874 _ACEOF
30875 cat confdefs.h >>conftest.$ac_ext
30876 cat >>conftest.$ac_ext <<_ACEOF
30877 /* end confdefs.h. */
30878
30879
30880 int
30881 main ()
30882 {
30883 main ();
30884 ;
30885 return 0;
30886 }
30887 _ACEOF
30888 rm -f conftest.$ac_objext conftest$ac_exeext
30889 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30890 (eval $ac_link) 2>conftest.er1
30891 ac_status=$?
30892 grep -v '^ *+' conftest.er1 >conftest.err
30893 rm -f conftest.er1
30894 cat conftest.err >&5
30895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30896 (exit $ac_status); } &&
30897 { ac_try='test -z "$ac_cxx_werror_flag"
30898 || test ! -s conftest.err'
30899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30900 (eval $ac_try) 2>&5
30901 ac_status=$?
30902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30903 (exit $ac_status); }; } &&
30904 { ac_try='test -s conftest$ac_exeext'
30905 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30906 (eval $ac_try) 2>&5
30907 ac_status=$?
30908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30909 (exit $ac_status); }; }; then
30910 ac_cv_lib_fltk_audio_meter_main=yes
30911 else
30912 echo "$as_me: failed program was:" >&5
30913 sed 's/^/| /' conftest.$ac_ext >&5
30914
30915 ac_cv_lib_fltk_audio_meter_main=no
30916 fi
30917 rm -f conftest.err conftest.$ac_objext \
30918 conftest$ac_exeext conftest.$ac_ext
30919 LIBS=$ac_check_lib_save_LIBS
30920 fi
30921 echo "$as_me:$LINENO: result: $ac_cv_lib_fltk_audio_meter_main" >&5
30922 echo "${ECHO_T}$ac_cv_lib_fltk_audio_meter_main" >&6
30923 if test $ac_cv_lib_fltk_audio_meter_main = yes; then
30924 TESTLIBS="-lfltk_audio_meter $TESTLIBS"
30925 fi
30926
30927 ac_ext=c
30928 ac_cpp='$CPP $CPPFLAGS'
30929 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
30930 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
30931 ac_compiler_gnu=$ac_cv_c_compiler_gnu
30932
30933 fi
30934
30935 echo "$as_me:$LINENO: checking if $host supports library symbol export" >&5
30936 echo $ECHO_N "checking if $host supports library symbol export... $ECHO_C" >&6
30937 if test "${ac_cv_symbol_export_capability+set}" = set; then
30938 echo $ECHO_N "(cached) $ECHO_C" >&6
30939 else
30940 # Initialize to unknown
30941 ac_cv_symbol_export_capability="no"
30942
30943 case "${ax_cv_c_compiler_vendor}" in
30944 gnu)
30945 save_CFLAGS="${CFLAGS}"
30946 CFLAGS="${CFLAGS} -fvisibility=hidden"
30947 cat >conftest.$ac_ext <<_ACEOF
30948 /* confdefs.h. */
30949 _ACEOF
30950 cat confdefs.h >>conftest.$ac_ext
30951 cat >>conftest.$ac_ext <<_ACEOF
30952 /* end confdefs.h. */
30953 int foo __attribute__ ((visibility("default")));
30954 int
30955 main ()
30956 {
30957 ;
30958
30959 ;
30960 return 0;
30961 }
30962 _ACEOF
30963 rm -f conftest.$ac_objext
30964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30965 (eval $ac_compile) 2>conftest.er1
30966 ac_status=$?
30967 grep -v '^ *+' conftest.er1 >conftest.err
30968 rm -f conftest.er1
30969 cat conftest.err >&5
30970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30971 (exit $ac_status); } &&
30972 { ac_try='test -z "$ac_c_werror_flag"
30973 || test ! -s conftest.err'
30974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30975 (eval $ac_try) 2>&5
30976 ac_status=$?
30977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978 (exit $ac_status); }; } &&
30979 { ac_try='test -s conftest.$ac_objext'
30980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30981 (eval $ac_try) 2>&5
30982 ac_status=$?
30983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984 (exit $ac_status); }; }; then
30985 echo "$as_me:$LINENO: result: yes" >&5
30986 echo "${ECHO_T}yes" >&6
30987 COMP_VENDOR_CFLAGS="-fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 $COMP_VENDOR_CFLAGS"
30988 COMP_VENDOR_CXXFLAGS="-fvisibility=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 $COMP_VENDOR_CXXFLAGS"
30989 ac_cv_symbol_export_capability="yes"
30990 else
30991 echo "$as_me: failed program was:" >&5
30992 sed 's/^/| /' conftest.$ac_ext >&5
30993
30994 echo "$as_me:$LINENO: result: no" >&5
30995 echo "${ECHO_T}no" >&6
30996
30997 fi
30998 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30999 CFLAGS="${save_CFLAGS}"
31000 ;;
31001
31002 sun)
31003 save_CFLAGS="${CFLAGS}"
31004 CFLAGS="${CFLAGS} -xldscope=hidden"
31005 cat >conftest.$ac_ext <<_ACEOF
31006 /* confdefs.h. */
31007 _ACEOF
31008 cat confdefs.h >>conftest.$ac_ext
31009 cat >>conftest.$ac_ext <<_ACEOF
31010 /* end confdefs.h. */
31011 int foo __attribute__ ((visibility("default")));
31012 int
31013 main ()
31014 {
31015 ;
31016
31017 ;
31018 return 0;
31019 }
31020 _ACEOF
31021 rm -f conftest.$ac_objext
31022 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31023 (eval $ac_compile) 2>conftest.er1
31024 ac_status=$?
31025 grep -v '^ *+' conftest.er1 >conftest.err
31026 rm -f conftest.er1
31027 cat conftest.err >&5
31028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31029 (exit $ac_status); } &&
31030 { ac_try='test -z "$ac_c_werror_flag"
31031 || test ! -s conftest.err'
31032 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31033 (eval $ac_try) 2>&5
31034 ac_status=$?
31035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31036 (exit $ac_status); }; } &&
31037 { ac_try='test -s conftest.$ac_objext'
31038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31039 (eval $ac_try) 2>&5
31040 ac_status=$?
31041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31042 (exit $ac_status); }; }; then
31043 echo "$as_me:$LINENO: result: yes" >&5
31044 echo "${ECHO_T}yes" >&6
31045 COMP_VENDOR_CFLAGS="-xldscope=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 $COMP_VENDOR_CFLAGS"
31046 COMP_VENDOR_CXXFLAGS="-xldscope=hidden -DSWITCH_API_VISIBILITY=1 -DHAVE_VISIBILITY=1 $COMP_VENDOR_CXXFLAGS"
31047 ac_cv_symbol_export_capability="yes"
31048 else
31049 echo "$as_me: failed program was:" >&5
31050 sed 's/^/| /' conftest.$ac_ext >&5
31051
31052 echo "$as_me:$LINENO: result: no" >&5
31053 echo "${ECHO_T}no" >&6
31054
31055 fi
31056 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31057 CFLAGS="${save_CFLAGS}"
31058 ;;
31059
31060 esac
31061 fi
31062 echo "$as_me:$LINENO: result: $ac_cv_symbol_export_capability" >&5
31063 echo "${ECHO_T}$ac_cv_symbol_export_capability" >&6
31064 if test $ac_cv_symbol_export_capability = yes; then
31065
31066 cat >>confdefs.h <<\_ACEOF
31067 #define SPANDSP_USE_EXPORT_CAPABILITY 1
31068 _ACEOF
31069
31070 SPANDSP_USE_EXPORT_CAPABILITY="#define SPANDSP_USE_EXPORT_CAPABILITY 1"
31071 else
31072 SPANDSP_USE_EXPORT_CAPABILITY="#undef SPANDSP_USE_EXPORT_CAPABILITY"
31073 fi
31074
31075
31076 case "${ax_cv_c_compiler_vendor}" in
31077 gnu)
31078 COMP_VENDOR_CFLAGS="-std=gnu99 -ffast-math -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS"
31079 if test "$enable_sse5" = "yes" ; then
31080 COMP_VENDOR_CFLAGS="-msse5 $COMP_VENDOR_CFLAGS"
31081 fi
31082 if test "$enable_sse4a" = "yes" ; then
31083 COMP_VENDOR_CFLAGS="-msse4a $COMP_VENDOR_CFLAGS"
31084 fi
31085 if test "$enable_sse4_2" = "yes" ; then
31086 COMP_VENDOR_CFLAGS="-msse42 $COMP_VENDOR_CFLAGS"
31087 fi
31088 if test "$enable_sse4_1" = "yes" ; then
31089 COMP_VENDOR_CFLAGS="-msse41 $COMP_VENDOR_CFLAGS"
31090 fi
31091 if test "$enable_ssse3" = "yes" ; then
31092 COMP_VENDOR_CFLAGS="-mssse3 $COMP_VENDOR_CFLAGS"
31093 fi
31094 if test "$enable_sse3" = "yes" ; then
31095 COMP_VENDOR_CFLAGS="-msse3 $COMP_VENDOR_CFLAGS"
31096 fi
31097 if test "$enable_sse2" = "yes" ; then
31098 COMP_VENDOR_CFLAGS="-msse2 $COMP_VENDOR_CFLAGS"
31099 fi
31100 if test "$enable_sse" = "yes" ; then
31101 COMP_VENDOR_CFLAGS="-msse $COMP_VENDOR_CFLAGS"
31102 fi
31103 if test "$enable_mmx" = "yes" ; then
31104 COMP_VENDOR_CFLAGS="-mmmx $COMP_VENDOR_CFLAGS"
31105 fi
31106 case $host_os in
31107 mingw* | cygwin*)
31108 COMP_VENDOR_LDFLAGS="-no-undefined"
31109 ;;
31110 *)
31111 COMP_VENDOR_LDFLAGS=
31112 ;;
31113 esac
31114 ;;
31115 sun)
31116 COMP_VENDOR_CFLAGS="-xc99=all -mt -xCC -errwarn=%all -xvpara $COMP_VENDOR_CFLAGS"
31117 if test "$enable_sse3" = "yes" ; then
31118 COMP_VENDOR_CFLAGS="-native -fast $COMP_VENDOR_CFLAGS"
31119 fi
31120 if test "$enable_sse2" = "yes" ; then
31121 COMP_VENDOR_CFLAGS="-native -fast $COMP_VENDOR_CFLAGS"
31122 fi
31123 if test "$enable_sse" = "yes" ; then
31124 COMP_VENDOR_CFLAGS="-native -fast $COMP_VENDOR_CFLAGS"
31125 fi
31126 if test "$enable_mmx" = "yes" ; then
31127 COMP_VENDOR_CFLAGS="-native -fast $COMP_VENDOR_CFLAGS"
31128 fi
31129 COMP_VENDOR_LDFLAGS=
31130
31131 new_val=""
31132 removed=0
31133 for i in $CFLAGS; do
31134 if test "x$i" != "x-Xc"; then
31135 new_val="$new_val $i"
31136 else
31137 removed=1
31138 fi
31139 done
31140 if test $removed = "1"; then
31141 echo " removed \"-Xc\" from CFLAGS"
31142 CFLAGS=$new_val
31143 fi
31144
31145 ;;
31146 *)
31147 COMP_VENDOR_CFLAGS="-std=c99 -Wall -Wunused-variable -Wwrite-strings -Wstrict-prototypes -Wmissing-prototypes $COMP_VENDOR_CFLAGS"
31148 COMP_VENDOR_LDFLAGS=
31149 ;;
31150 esac
31151
31152 COMP_VENDOR_CFLAGS="-DNDEBUG $COMP_VENDOR_CFLAGS"
31153
31154
31155
31156 if test "$enable_doc" = yes; then
31157 COND_DOC_TRUE=
31158 COND_DOC_FALSE='#'
31159 else
31160 COND_DOC_TRUE='#'
31161 COND_DOC_FALSE=
31162 fi
31163
31164
31165
31166 if test "$enable_tests" = yes; then
31167 COND_TESTS_TRUE=
31168 COND_TESTS_FALSE='#'
31169 else
31170 COND_TESTS_TRUE='#'
31171 COND_TESTS_FALSE=
31172 fi
31173
31174
31175
31176 if test "$enable_test_data" = yes; then
31177 COND_TESTDATA_TRUE=
31178 COND_TESTDATA_FALSE='#'
31179 else
31180 COND_TESTDATA_TRUE='#'
31181 COND_TESTDATA_FALSE=
31182 fi
31183
31184
31185
31186 if test "$enable_mmx" = yes; then
31187 COND_MMX_TRUE=
31188 COND_MMX_FALSE='#'
31189 else
31190 COND_MMX_TRUE='#'
31191 COND_MMX_FALSE=
31192 fi
31193
31194
31195
31196 if test "$enable_sse" = yes; then
31197 COND_SSE_TRUE=
31198 COND_SSE_FALSE='#'
31199 else
31200 COND_SSE_TRUE='#'
31201 COND_SSE_FALSE=
31202 fi
31203
31204
31205
31206 if test "$enable_sse2" = yes; then
31207 COND_SSE2_TRUE=
31208 COND_SSE2_FALSE='#'
31209 else
31210 COND_SSE2_TRUE='#'
31211 COND_SSE2_FALSE=
31212 fi
31213
31214
31215
31216 if test "$enable_sse3" = yes; then
31217 COND_SSE3_TRUE=
31218 COND_SSE3_FALSE='#'
31219 else
31220 COND_SSE3_TRUE='#'
31221 COND_SSE3_FALSE=
31222 fi
31223
31224
31225
31226 if test "$enable_ssse3" = yes; then
31227 COND_SSSE3_TRUE=
31228 COND_SSSE3_FALSE='#'
31229 else
31230 COND_SSSE3_TRUE='#'
31231 COND_SSSE3_FALSE=
31232 fi
31233
31234
31235
31236 if test "$enable_sse4_1" = yes; then
31237 COND_SSE4_1_TRUE=
31238 COND_SSE4_1_FALSE='#'
31239 else
31240 COND_SSE4_1_TRUE='#'
31241 COND_SSE4_1_FALSE=
31242 fi
31243
31244
31245
31246 if test "$enable_sse4_2" = yes; then
31247 COND_SSE4_2_TRUE=
31248 COND_SSE4_2_FALSE='#'
31249 else
31250 COND_SSE4_2_TRUE='#'
31251 COND_SSE4_2_FALSE=
31252 fi
31253
31254
31255
31256 if test "$enable_sse4a" = yes; then
31257 COND_SSE4A_TRUE=
31258 COND_SSE4A_FALSE='#'
31259 else
31260 COND_SSE4A_TRUE='#'
31261 COND_SSE4A_FALSE=
31262 fi
31263
31264
31265
31266 if test "$enable_sse5" = yes; then
31267 COND_SSE5_TRUE=
31268 COND_SSE5_FALSE='#'
31269 else
31270 COND_SSE5_TRUE='#'
31271 COND_SSE5_FALSE=
31272 fi
31273
31274 if test "$enable_fixed_point" = "yes" ; then
31275
31276 cat >>confdefs.h <<\_ACEOF
31277 #define SPANDSP_USE_FIXED_POINT 1
31278 _ACEOF
31279
31280 SPANDSP_USE_FIXED_POINT="#define SPANDSP_USE_FIXED_POINT 1"
31281 else
31282 as_ac_FixedPoint=`echo "ac_cv_fixed_point_machine_$host" | $as_tr_sh`
31283 echo "$as_me:$LINENO: checking if $host is fixed point only" >&5
31284 echo $ECHO_N "checking if $host is fixed point only... $ECHO_C" >&6
31285 if eval "test \"\${$as_ac_FixedPoint+set}\" = set"; then
31286 echo $ECHO_N "(cached) $ECHO_C" >&6
31287 else
31288 case $host in
31289 arc | arm | armble | armelb | armv2345 | armv345lb \
31290 | bfin \
31291 | mips | mipsbe | mipseb | mipsel | mipsle \
31292 | tic54x | c54x* | tic55x | c55x* | tic6x | c6x* \
31293 | xscale | xscaleebl \
31294 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
31295 | bfin-* \
31296 | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
31297 | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
31298 | xscale-* | xscaleebl-* )
31299 eval "$as_ac_FixedPoint=yes"
31300 ;;
31301 *)
31302 eval "$as_ac_FixedPoint=no"
31303 ;;
31304 esac
31305 fi
31306 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_FixedPoint'}'`" >&5
31307 echo "${ECHO_T}`eval echo '${'$as_ac_FixedPoint'}'`" >&6
31308 if test `eval echo '${'$as_ac_FixedPoint'}'` = yes; then
31309
31310 cat >>confdefs.h <<\_ACEOF
31311 #define SPANDSP_USE_FIXED_POINT 1
31312 _ACEOF
31313
31314 SPANDSP_USE_FIXED_POINT="#define SPANDSP_USE_FIXED_POINT 1"
31315 else
31316 SPANDSP_USE_FIXED_POINT="#undef SPANDSP_USE_FIXED_POINT"
31317 fi
31318
31319 fi
31320 as_ac_MisalignedAccessFails=`echo "ac_cv_misaligned_access_fails_$host" | $as_tr_sh`
31321 echo "$as_me:$LINENO: checking if $host fails on misaligned memory access" >&5
31322 echo $ECHO_N "checking if $host fails on misaligned memory access... $ECHO_C" >&6
31323 if eval "test \"\${$as_ac_MisalignedAccessFails+set}\" = set"; then
31324 echo $ECHO_N "(cached) $ECHO_C" >&6
31325 else
31326 case $host in
31327 arc | arm | armble | armelb | armv2345 | armv345lb \
31328 | bfin \
31329 | sparc \
31330 | xscale | xscaleebl \
31331 | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
31332 | bfin-* \
31333 | sparc-* \
31334 | xscale-* | xscaleebl-* )
31335 eval "$as_ac_MisalignedAccessFails=yes"
31336 ;;
31337 *)
31338 eval "$as_ac_MisalignedAccessFails=no"
31339 ;;
31340 esac
31341 fi
31342 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_MisalignedAccessFails'}'`" >&5
31343 echo "${ECHO_T}`eval echo '${'$as_ac_MisalignedAccessFails'}'`" >&6
31344 if test `eval echo '${'$as_ac_MisalignedAccessFails'}'` = yes; then
31345
31346 cat >>confdefs.h <<\_ACEOF
31347 #define SPANDSP_MISALIGNED_ACCESS_FAILS 1
31348 _ACEOF
31349
31350 SPANDSP_MISALIGNED_ACCESS_FAILS="#define SPANDSP_MISALIGNED_ACCESS_FAILS 1"
31351 else
31352 SPANDSP_MISALIGNED_ACCESS_FAILS="#undef SPANDSP_MISALIGNED_ACCESS_FAILS"
31353 fi
31354
31355
31356 if test "$enable_sse5" = "yes" ; then
31357
31358 cat >>confdefs.h <<\_ACEOF
31359 #define SPANDSP_USE_SSE5 1
31360 _ACEOF
31361
31362 enable_sse4a="yes"
31363 fi
31364 if test "$enable_sse4a" = "yes" ; then
31365
31366 cat >>confdefs.h <<\_ACEOF
31367 #define SPANDSP_USE_SSE4A 1
31368 _ACEOF
31369
31370 enable_sse4_2="yes"
31371 fi
31372 if test "$enable_sse4_2" = "yes" ; then
31373
31374 cat >>confdefs.h <<\_ACEOF
31375 #define SPANDSP_USE_SSE4_2 1
31376 _ACEOF
31377
31378 enable_sse4_1="yes"
31379 fi
31380 if test "$enable_sse4_1" = "yes" ; then
31381
31382 cat >>confdefs.h <<\_ACEOF
31383 #define SPANDSP_USE_SSE4_1 1
31384 _ACEOF
31385
31386 enable_ssse3="yes"
31387 fi
31388 if test "$enable_ssse3" = "yes" ; then
31389
31390 cat >>confdefs.h <<\_ACEOF
31391 #define SPANDSP_USE_SSSE3 1
31392 _ACEOF
31393
31394 enable_sse3="yes"
31395 fi
31396 if test "$enable_sse3" = "yes" ; then
31397
31398 cat >>confdefs.h <<\_ACEOF
31399 #define SPANDSP_USE_SSE3 1
31400 _ACEOF
31401
31402 enable_sse2="yes"
31403 fi
31404 if test "$enable_sse2" = "yes" ; then
31405
31406 cat >>confdefs.h <<\_ACEOF
31407 #define SPANDSP_USE_SSE2 1
31408 _ACEOF
31409
31410 enable_sse="yes"
31411 fi
31412 if test "$enable_sse" = "yes" ; then
31413
31414 cat >>confdefs.h <<\_ACEOF
31415 #define SPANDSP_USE_SSE 1
31416 _ACEOF
31417
31418 enable_mmx="yes"
31419 fi
31420 if test "$enable_mmx" = "yes" ; then
31421
31422 cat >>confdefs.h <<\_ACEOF
31423 #define SPANDSP_USE_MMX 1
31424 _ACEOF
31425
31426 fi
31427
31428 if test "$enable_builtin_tiff" = "yes" ; then
31429 abs_tiffdir="`cd $srcdir/../tiff-3.8.2/ && pwd`"
31430 save_CFLAGS=$CFLAGS
31431 CFLAGS="$CFLAGS -I$abs_tiffdir/libtiff"
31432
31433 for ac_header in tiffio.h
31434 do
31435 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31436 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31437 echo "$as_me:$LINENO: checking for $ac_header" >&5
31438 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31439 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31440 echo $ECHO_N "(cached) $ECHO_C" >&6
31441 fi
31442 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31443 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31444 else
31445 # Is the header compilable?
31446 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31447 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31448 cat >conftest.$ac_ext <<_ACEOF
31449 /* confdefs.h. */
31450 _ACEOF
31451 cat confdefs.h >>conftest.$ac_ext
31452 cat >>conftest.$ac_ext <<_ACEOF
31453 /* end confdefs.h. */
31454 $ac_includes_default
31455 #include <$ac_header>
31456 _ACEOF
31457 rm -f conftest.$ac_objext
31458 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31459 (eval $ac_compile) 2>conftest.er1
31460 ac_status=$?
31461 grep -v '^ *+' conftest.er1 >conftest.err
31462 rm -f conftest.er1
31463 cat conftest.err >&5
31464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31465 (exit $ac_status); } &&
31466 { ac_try='test -z "$ac_c_werror_flag"
31467 || test ! -s conftest.err'
31468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31469 (eval $ac_try) 2>&5
31470 ac_status=$?
31471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31472 (exit $ac_status); }; } &&
31473 { ac_try='test -s conftest.$ac_objext'
31474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31475 (eval $ac_try) 2>&5
31476 ac_status=$?
31477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31478 (exit $ac_status); }; }; then
31479 ac_header_compiler=yes
31480 else
31481 echo "$as_me: failed program was:" >&5
31482 sed 's/^/| /' conftest.$ac_ext >&5
31483
31484 ac_header_compiler=no
31485 fi
31486 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31487 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31488 echo "${ECHO_T}$ac_header_compiler" >&6
31489
31490 # Is the header present?
31491 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31492 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31493 cat >conftest.$ac_ext <<_ACEOF
31494 /* confdefs.h. */
31495 _ACEOF
31496 cat confdefs.h >>conftest.$ac_ext
31497 cat >>conftest.$ac_ext <<_ACEOF
31498 /* end confdefs.h. */
31499 #include <$ac_header>
31500 _ACEOF
31501 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31502 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31503 ac_status=$?
31504 grep -v '^ *+' conftest.er1 >conftest.err
31505 rm -f conftest.er1
31506 cat conftest.err >&5
31507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31508 (exit $ac_status); } >/dev/null; then
31509 if test -s conftest.err; then
31510 ac_cpp_err=$ac_c_preproc_warn_flag
31511 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31512 else
31513 ac_cpp_err=
31514 fi
31515 else
31516 ac_cpp_err=yes
31517 fi
31518 if test -z "$ac_cpp_err"; then
31519 ac_header_preproc=yes
31520 else
31521 echo "$as_me: failed program was:" >&5
31522 sed 's/^/| /' conftest.$ac_ext >&5
31523
31524 ac_header_preproc=no
31525 fi
31526 rm -f conftest.err conftest.$ac_ext
31527 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31528 echo "${ECHO_T}$ac_header_preproc" >&6
31529
31530 # So? What about this header?
31531 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31532 yes:no: )
31533 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31534 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31535 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31536 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31537 ac_header_preproc=yes
31538 ;;
31539 no:yes:* )
31540 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31541 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31542 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31543 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31544 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31545 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31546 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31547 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31548 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31549 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31550 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31551 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31552 (
31553 cat <<\_ASBOX
31554 ## ------------------------------------------ ##
31555 ## Report this to the AC_PACKAGE_NAME lists. ##
31556 ## ------------------------------------------ ##
31557 _ASBOX
31558 ) |
31559 sed "s/^/$as_me: WARNING: /" >&2
31560 ;;
31561 esac
31562 echo "$as_me:$LINENO: checking for $ac_header" >&5
31563 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31564 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31565 echo $ECHO_N "(cached) $ECHO_C" >&6
31566 else
31567 eval "$as_ac_Header=\$ac_header_preproc"
31568 fi
31569 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31570 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31571
31572 fi
31573 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31574 cat >>confdefs.h <<_ACEOF
31575 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31576 _ACEOF
31577
31578 fi
31579
31580 done
31581
31582 CFLAGS="$save_CFLAGS"
31583 COMP_VENDOR_CFLAGS="-I$abs_tiffdir/libtiff $COMP_VENDOR_CFLAGS"
31584 COMP_VENDOR_LDFLAGS="-L$abs_tiffdir/libtiff $COMP_VENDOR_LDFLAGS"
31585 LIBS="$LIBS $abs_tiffdir/libtiff/libtiff.la"
31586
31587 cat >>confdefs.h <<\_ACEOF
31588 #define HAVE_LIBTIFF 1
31589 _ACEOF
31590
31591 else
31592
31593 for ac_header in tiffio.h
31594 do
31595 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
31596 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31597 echo "$as_me:$LINENO: checking for $ac_header" >&5
31598 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31599 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31600 echo $ECHO_N "(cached) $ECHO_C" >&6
31601 fi
31602 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31603 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31604 else
31605 # Is the header compilable?
31606 echo "$as_me:$LINENO: checking $ac_header usability" >&5
31607 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
31608 cat >conftest.$ac_ext <<_ACEOF
31609 /* confdefs.h. */
31610 _ACEOF
31611 cat confdefs.h >>conftest.$ac_ext
31612 cat >>conftest.$ac_ext <<_ACEOF
31613 /* end confdefs.h. */
31614 $ac_includes_default
31615 #include <$ac_header>
31616 _ACEOF
31617 rm -f conftest.$ac_objext
31618 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31619 (eval $ac_compile) 2>conftest.er1
31620 ac_status=$?
31621 grep -v '^ *+' conftest.er1 >conftest.err
31622 rm -f conftest.er1
31623 cat conftest.err >&5
31624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31625 (exit $ac_status); } &&
31626 { ac_try='test -z "$ac_c_werror_flag"
31627 || test ! -s conftest.err'
31628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31629 (eval $ac_try) 2>&5
31630 ac_status=$?
31631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31632 (exit $ac_status); }; } &&
31633 { ac_try='test -s conftest.$ac_objext'
31634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31635 (eval $ac_try) 2>&5
31636 ac_status=$?
31637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31638 (exit $ac_status); }; }; then
31639 ac_header_compiler=yes
31640 else
31641 echo "$as_me: failed program was:" >&5
31642 sed 's/^/| /' conftest.$ac_ext >&5
31643
31644 ac_header_compiler=no
31645 fi
31646 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31647 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
31648 echo "${ECHO_T}$ac_header_compiler" >&6
31649
31650 # Is the header present?
31651 echo "$as_me:$LINENO: checking $ac_header presence" >&5
31652 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
31653 cat >conftest.$ac_ext <<_ACEOF
31654 /* confdefs.h. */
31655 _ACEOF
31656 cat confdefs.h >>conftest.$ac_ext
31657 cat >>conftest.$ac_ext <<_ACEOF
31658 /* end confdefs.h. */
31659 #include <$ac_header>
31660 _ACEOF
31661 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
31662 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
31663 ac_status=$?
31664 grep -v '^ *+' conftest.er1 >conftest.err
31665 rm -f conftest.er1
31666 cat conftest.err >&5
31667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31668 (exit $ac_status); } >/dev/null; then
31669 if test -s conftest.err; then
31670 ac_cpp_err=$ac_c_preproc_warn_flag
31671 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
31672 else
31673 ac_cpp_err=
31674 fi
31675 else
31676 ac_cpp_err=yes
31677 fi
31678 if test -z "$ac_cpp_err"; then
31679 ac_header_preproc=yes
31680 else
31681 echo "$as_me: failed program was:" >&5
31682 sed 's/^/| /' conftest.$ac_ext >&5
31683
31684 ac_header_preproc=no
31685 fi
31686 rm -f conftest.err conftest.$ac_ext
31687 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
31688 echo "${ECHO_T}$ac_header_preproc" >&6
31689
31690 # So? What about this header?
31691 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
31692 yes:no: )
31693 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
31694 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
31695 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
31696 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
31697 ac_header_preproc=yes
31698 ;;
31699 no:yes:* )
31700 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
31701 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
31702 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
31703 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
31704 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
31705 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
31706 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
31707 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
31708 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
31709 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
31710 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
31711 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
31712 (
31713 cat <<\_ASBOX
31714 ## ------------------------------------------ ##
31715 ## Report this to the AC_PACKAGE_NAME lists. ##
31716 ## ------------------------------------------ ##
31717 _ASBOX
31718 ) |
31719 sed "s/^/$as_me: WARNING: /" >&2
31720 ;;
31721 esac
31722 echo "$as_me:$LINENO: checking for $ac_header" >&5
31723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
31724 if eval "test \"\${$as_ac_Header+set}\" = set"; then
31725 echo $ECHO_N "(cached) $ECHO_C" >&6
31726 else
31727 eval "$as_ac_Header=\$ac_header_preproc"
31728 fi
31729 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
31730 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
31731
31732 fi
31733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
31734 cat >>confdefs.h <<_ACEOF
31735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
31736 _ACEOF
31737
31738 fi
31739
31740 done
31741
31742
31743 echo "$as_me:$LINENO: checking for TIFFOpen in -ltiff" >&5
31744 echo $ECHO_N "checking for TIFFOpen in -ltiff... $ECHO_C" >&6
31745 if test "${ac_cv_lib_tiff_TIFFOpen+set}" = set; then
31746 echo $ECHO_N "(cached) $ECHO_C" >&6
31747 else
31748 ac_check_lib_save_LIBS=$LIBS
31749 LIBS="-ltiff -lm $LIBS"
31750 cat >conftest.$ac_ext <<_ACEOF
31751 /* confdefs.h. */
31752 _ACEOF
31753 cat confdefs.h >>conftest.$ac_ext
31754 cat >>conftest.$ac_ext <<_ACEOF
31755 /* end confdefs.h. */
31756
31757 /* Override any gcc2 internal prototype to avoid an error. */
31758 #ifdef __cplusplus
31759 extern "C"
31760 #endif
31761 /* We use char because int might match the return type of a gcc2
31762 builtin and then its argument prototype would still apply. */
31763 char TIFFOpen ();
31764 int
31765 main ()
31766 {
31767 TIFFOpen ();
31768 ;
31769 return 0;
31770 }
31771 _ACEOF
31772 rm -f conftest.$ac_objext conftest$ac_exeext
31773 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31774 (eval $ac_link) 2>conftest.er1
31775 ac_status=$?
31776 grep -v '^ *+' conftest.er1 >conftest.err
31777 rm -f conftest.er1
31778 cat conftest.err >&5
31779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31780 (exit $ac_status); } &&
31781 { ac_try='test -z "$ac_c_werror_flag"
31782 || test ! -s conftest.err'
31783 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31784 (eval $ac_try) 2>&5
31785 ac_status=$?
31786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31787 (exit $ac_status); }; } &&
31788 { ac_try='test -s conftest$ac_exeext'
31789 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31790 (eval $ac_try) 2>&5
31791 ac_status=$?
31792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31793 (exit $ac_status); }; }; then
31794 ac_cv_lib_tiff_TIFFOpen=yes
31795 else
31796 echo "$as_me: failed program was:" >&5
31797 sed 's/^/| /' conftest.$ac_ext >&5
31798
31799 ac_cv_lib_tiff_TIFFOpen=no
31800 fi
31801 rm -f conftest.err conftest.$ac_objext \
31802 conftest$ac_exeext conftest.$ac_ext
31803 LIBS=$ac_check_lib_save_LIBS
31804 fi
31805 echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFOpen" >&5
31806 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFOpen" >&6
31807 if test $ac_cv_lib_tiff_TIFFOpen = yes; then
31808 cat >>confdefs.h <<_ACEOF
31809 #define HAVE_LIBTIFF 1
31810 _ACEOF
31811
31812 LIBS="-ltiff $LIBS"
31813
31814 else
31815 { { echo "$as_me:$LINENO: error: \"Can't build without libtiff (does your system require a libtiff-devel package?)\"" >&5
31816 echo "$as_me: error: \"Can't build without libtiff (does your system require a libtiff-devel package?)\"" >&2;}
31817 { (exit 1); exit 1; }; }
31818 fi
31819
31820 fi
31821
31822 TESTLIBS="$SIMLIBS $TESTLIBS"
31823
31824
31825
31826
31827
31828
31829
31830
31831
31832
31833
31834
31835
31836
31837
31838 ac_config_files="$ac_config_files Makefile doc/Makefile doc/doxygen src/Makefile src/spandsp.h spandsp-sim/Makefile test-data/Makefile test-data/etsi/Makefile test-data/etsi/fax/Makefile test-data/itu/Makefile test-data/itu/fax/Makefile test-data/local/Makefile tests/Makefile spandsp.pc spandsp.spec"
31839
31840
31841 cat >confcache <<\_ACEOF
31842 # This file is a shell script that caches the results of configure
31843 # tests run on this system so they can be shared between configure
31844 # scripts and configure runs, see configure's option --config-cache.
31845 # It is not useful on other systems. If it contains results you don't
31846 # want to keep, you may remove or edit it.
31847 #
31848 # config.status only pays attention to the cache file if you give it
31849 # the --recheck option to rerun configure.
31850 #
31851 # `ac_cv_env_foo' variables (set or unset) will be overridden when
31852 # loading this file, other *unset* `ac_cv_foo' will be assigned the
31853 # following values.
31854
31855 _ACEOF
31856
31857 # The following way of writing the cache mishandles newlines in values,
31858 # but we know of no workaround that is simple, portable, and efficient.
31859 # So, don't put newlines in cache variables' values.
31860 # Ultrix sh set writes to stderr and can't be redirected directly,
31861 # and sets the high bit in the cache file unless we assign to the vars.
31862 {
31863 (set) 2>&1 |
31864 case `(ac_space=' '; set | grep ac_space) 2>&1` in
31865 *ac_space=\ *)
31866 # `set' does not quote correctly, so add quotes (double-quote
31867 # substitution turns \\\\ into \\, and sed turns \\ into \).
31868 sed -n \
31869 "s/'/'\\\\''/g;
31870 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
31871 ;;
31872 *)
31873 # `set' quotes correctly as required by POSIX, so do not add quotes.
31874 sed -n \
31875 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
31876 ;;
31877 esac;
31878 } |
31879 sed '
31880 t clear
31881 : clear
31882 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
31883 t end
31884 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
31885 : end' >>confcache
31886 if diff $cache_file confcache >/dev/null 2>&1; then :; else
31887 if test -w $cache_file; then
31888 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
31889 cat confcache >$cache_file
31890 else
31891 echo "not updating unwritable cache $cache_file"
31892 fi
31893 fi
31894 rm -f confcache
31895
31896 test "x$prefix" = xNONE && prefix=$ac_default_prefix
31897 # Let make expand exec_prefix.
31898 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
31899
31900 # VPATH may cause trouble with some makes, so we remove $(srcdir),
31901 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
31902 # trailing colons and then remove the whole line if VPATH becomes empty
31903 # (actually we leave an empty line to preserve line numbers).
31904 if test "x$srcdir" = x.; then
31905 ac_vpsub='/^[ ]*VPATH[ ]*=/{
31906 s/:*\$(srcdir):*/:/;
31907 s/:*\${srcdir}:*/:/;
31908 s/:*@srcdir@:*/:/;
31909 s/^\([^=]*=[ ]*\):*/\1/;
31910 s/:*$//;
31911 s/^[^=]*=[ ]*$//;
31912 }'
31913 fi
31914
31915 DEFS=-DHAVE_CONFIG_H
31916
31917 ac_libobjs=
31918 ac_ltlibobjs=
31919 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
31920 # 1. Remove the extension, and $U if already installed.
31921 ac_i=`echo "$ac_i" |
31922 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
31923 # 2. Add them.
31924 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
31925 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
31926 done
31927 LIBOBJS=$ac_libobjs
31928
31929 LTLIBOBJS=$ac_ltlibobjs
31930
31931
31932 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
31933 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
31934 Usually this means the macro was only invoked conditionally." >&5
31935 echo "$as_me: error: conditional \"AMDEP\" was never defined.
31936 Usually this means the macro was only invoked conditionally." >&2;}
31937 { (exit 1); exit 1; }; }
31938 fi
31939 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31940 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
31941 Usually this means the macro was only invoked conditionally." >&5
31942 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
31943 Usually this means the macro was only invoked conditionally." >&2;}
31944 { (exit 1); exit 1; }; }
31945 fi
31946 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
31947 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
31948 Usually this means the macro was only invoked conditionally." >&5
31949 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
31950 Usually this means the macro was only invoked conditionally." >&2;}
31951 { (exit 1); exit 1; }; }
31952 fi
31953 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
31954 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
31955 Usually this means the macro was only invoked conditionally." >&5
31956 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
31957 Usually this means the macro was only invoked conditionally." >&2;}
31958 { (exit 1); exit 1; }; }
31959 fi
31960 if test -z "${COND_DOC_TRUE}" && test -z "${COND_DOC_FALSE}"; then
31961 { { echo "$as_me:$LINENO: error: conditional \"COND_DOC\" was never defined.
31962 Usually this means the macro was only invoked conditionally." >&5
31963 echo "$as_me: error: conditional \"COND_DOC\" was never defined.
31964 Usually this means the macro was only invoked conditionally." >&2;}
31965 { (exit 1); exit 1; }; }
31966 fi
31967 if test -z "${COND_TESTS_TRUE}" && test -z "${COND_TESTS_FALSE}"; then
31968 { { echo "$as_me:$LINENO: error: conditional \"COND_TESTS\" was never defined.
31969 Usually this means the macro was only invoked conditionally." >&5
31970 echo "$as_me: error: conditional \"COND_TESTS\" was never defined.
31971 Usually this means the macro was only invoked conditionally." >&2;}
31972 { (exit 1); exit 1; }; }
31973 fi
31974 if test -z "${COND_TESTDATA_TRUE}" && test -z "${COND_TESTDATA_FALSE}"; then
31975 { { echo "$as_me:$LINENO: error: conditional \"COND_TESTDATA\" was never defined.
31976 Usually this means the macro was only invoked conditionally." >&5
31977 echo "$as_me: error: conditional \"COND_TESTDATA\" was never defined.
31978 Usually this means the macro was only invoked conditionally." >&2;}
31979 { (exit 1); exit 1; }; }
31980 fi
31981 if test -z "${COND_MMX_TRUE}" && test -z "${COND_MMX_FALSE}"; then
31982 { { echo "$as_me:$LINENO: error: conditional \"COND_MMX\" was never defined.
31983 Usually this means the macro was only invoked conditionally." >&5
31984 echo "$as_me: error: conditional \"COND_MMX\" was never defined.
31985 Usually this means the macro was only invoked conditionally." >&2;}
31986 { (exit 1); exit 1; }; }
31987 fi
31988 if test -z "${COND_SSE_TRUE}" && test -z "${COND_SSE_FALSE}"; then
31989 { { echo "$as_me:$LINENO: error: conditional \"COND_SSE\" was never defined.
31990 Usually this means the macro was only invoked conditionally." >&5
31991 echo "$as_me: error: conditional \"COND_SSE\" was never defined.
31992 Usually this means the macro was only invoked conditionally." >&2;}
31993 { (exit 1); exit 1; }; }
31994 fi
31995 if test -z "${COND_SSE2_TRUE}" && test -z "${COND_SSE2_FALSE}"; then
31996 { { echo "$as_me:$LINENO: error: conditional \"COND_SSE2\" was never defined.
31997 Usually this means the macro was only invoked conditionally." >&5
31998 echo "$as_me: error: conditional \"COND_SSE2\" was never defined.
31999 Usually this means the macro was only invoked conditionally." >&2;}
32000 { (exit 1); exit 1; }; }
32001 fi
32002 if test -z "${COND_SSE3_TRUE}" && test -z "${COND_SSE3_FALSE}"; then
32003 { { echo "$as_me:$LINENO: error: conditional \"COND_SSE3\" was never defined.
32004 Usually this means the macro was only invoked conditionally." >&5
32005 echo "$as_me: error: conditional \"COND_SSE3\" was never defined.
32006 Usually this means the macro was only invoked conditionally." >&2;}
32007 { (exit 1); exit 1; }; }
32008 fi
32009 if test -z "${COND_SSSE3_TRUE}" && test -z "${COND_SSSE3_FALSE}"; then
32010 { { echo "$as_me:$LINENO: error: conditional \"COND_SSSE3\" was never defined.
32011 Usually this means the macro was only invoked conditionally." >&5
32012 echo "$as_me: error: conditional \"COND_SSSE3\" was never defined.
32013 Usually this means the macro was only invoked conditionally." >&2;}
32014 { (exit 1); exit 1; }; }
32015 fi
32016 if test -z "${COND_SSE4_1_TRUE}" && test -z "${COND_SSE4_1_FALSE}"; then
32017 { { echo "$as_me:$LINENO: error: conditional \"COND_SSE4_1\" was never defined.
32018 Usually this means the macro was only invoked conditionally." >&5
32019 echo "$as_me: error: conditional \"COND_SSE4_1\" was never defined.
32020 Usually this means the macro was only invoked conditionally." >&2;}
32021 { (exit 1); exit 1; }; }
32022 fi
32023 if test -z "${COND_SSE4_2_TRUE}" && test -z "${COND_SSE4_2_FALSE}"; then
32024 { { echo "$as_me:$LINENO: error: conditional \"COND_SSE4_2\" was never defined.
32025 Usually this means the macro was only invoked conditionally." >&5
32026 echo "$as_me: error: conditional \"COND_SSE4_2\" was never defined.
32027 Usually this means the macro was only invoked conditionally." >&2;}
32028 { (exit 1); exit 1; }; }
32029 fi
32030 if test -z "${COND_SSE4A_TRUE}" && test -z "${COND_SSE4A_FALSE}"; then
32031 { { echo "$as_me:$LINENO: error: conditional \"COND_SSE4A\" was never defined.
32032 Usually this means the macro was only invoked conditionally." >&5
32033 echo "$as_me: error: conditional \"COND_SSE4A\" was never defined.
32034 Usually this means the macro was only invoked conditionally." >&2;}
32035 { (exit 1); exit 1; }; }
32036 fi
32037 if test -z "${COND_SSE5_TRUE}" && test -z "${COND_SSE5_FALSE}"; then
32038 { { echo "$as_me:$LINENO: error: conditional \"COND_SSE5\" was never defined.
32039 Usually this means the macro was only invoked conditionally." >&5
32040 echo "$as_me: error: conditional \"COND_SSE5\" was never defined.
32041 Usually this means the macro was only invoked conditionally." >&2;}
32042 { (exit 1); exit 1; }; }
32043 fi
32044
32045 : ${CONFIG_STATUS=./config.status}
32046 ac_clean_files_save=$ac_clean_files
32047 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
32048 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
32049 echo "$as_me: creating $CONFIG_STATUS" >&6;}
32050 cat >$CONFIG_STATUS <<_ACEOF
32051 #! $SHELL
32052 # Generated by $as_me.
32053 # Run this file to recreate the current configuration.
32054 # Compiler output produced by configure, useful for debugging
32055 # configure, is in config.log if it exists.
32056
32057 debug=false
32058 ac_cs_recheck=false
32059 ac_cs_silent=false
32060 SHELL=\${CONFIG_SHELL-$SHELL}
32061 _ACEOF
32062
32063 cat >>$CONFIG_STATUS <<\_ACEOF
32064 ## --------------------- ##
32065 ## M4sh Initialization. ##
32066 ## --------------------- ##
32067
32068 # Be Bourne compatible
32069 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
32070 emulate sh
32071 NULLCMD=:
32072 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
32073 # is contrary to our usage. Disable this feature.
32074 alias -g '${1+"$@"}'='"$@"'
32075 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
32076 set -o posix
32077 fi
32078 DUALCASE=1; export DUALCASE # for MKS sh
32079
32080 # Support unset when possible.
32081 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
32082 as_unset=unset
32083 else
32084 as_unset=false
32085 fi
32086
32087
32088 # Work around bugs in pre-3.0 UWIN ksh.
32089 $as_unset ENV MAIL MAILPATH
32090 PS1='$ '
32091 PS2='> '
32092 PS4='+ '
32093
32094 # NLS nuisances.
32095 for as_var in \
32096 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
32097 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
32098 LC_TELEPHONE LC_TIME
32099 do
32100 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
32101 eval $as_var=C; export $as_var
32102 else
32103 $as_unset $as_var
32104 fi
32105 done
32106
32107 # Required to use basename.
32108 if expr a : '\(a\)' >/dev/null 2>&1; then
32109 as_expr=expr
32110 else
32111 as_expr=false
32112 fi
32113
32114 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
32115 as_basename=basename
32116 else
32117 as_basename=false
32118 fi
32119
32120
32121 # Name of the executable.
32122 as_me=`$as_basename "$0" ||
32123 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
32124 X"$0" : 'X\(//\)$' \| \
32125 X"$0" : 'X\(/\)$' \| \
32126 . : '\(.\)' 2>/dev/null ||
32127 echo X/"$0" |
32128 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
32129 /^X\/\(\/\/\)$/{ s//\1/; q; }
32130 /^X\/\(\/\).*/{ s//\1/; q; }
32131 s/.*/./; q'`
32132
32133
32134 # PATH needs CR, and LINENO needs CR and PATH.
32135 # Avoid depending upon Character Ranges.
32136 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
32137 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32138 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
32139 as_cr_digits='0123456789'
32140 as_cr_alnum=$as_cr_Letters$as_cr_digits
32141
32142 # The user is always right.
32143 if test "${PATH_SEPARATOR+set}" != set; then
32144 echo "#! /bin/sh" >conf$$.sh
32145 echo "exit 0" >>conf$$.sh
32146 chmod +x conf$$.sh
32147 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
32148 PATH_SEPARATOR=';'
32149 else
32150 PATH_SEPARATOR=:
32151 fi
32152 rm -f conf$$.sh
32153 fi
32154
32155
32156 as_lineno_1=$LINENO
32157 as_lineno_2=$LINENO
32158 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
32159 test "x$as_lineno_1" != "x$as_lineno_2" &&
32160 test "x$as_lineno_3" = "x$as_lineno_2" || {
32161 # Find who we are. Look in the path if we contain no path at all
32162 # relative or not.
32163 case $0 in
32164 *[\\/]* ) as_myself=$0 ;;
32165 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32166 for as_dir in $PATH
32167 do
32168 IFS=$as_save_IFS
32169 test -z "$as_dir" && as_dir=.
32170 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
32171 done
32172
32173 ;;
32174 esac
32175 # We did not find ourselves, most probably we were run as `sh COMMAND'
32176 # in which case we are not to be found in the path.
32177 if test "x$as_myself" = x; then
32178 as_myself=$0
32179 fi
32180 if test ! -f "$as_myself"; then
32181 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
32182 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
32183 { (exit 1); exit 1; }; }
32184 fi
32185 case $CONFIG_SHELL in
32186 '')
32187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32188 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
32189 do
32190 IFS=$as_save_IFS
32191 test -z "$as_dir" && as_dir=.
32192 for as_base in sh bash ksh sh5; do
32193 case $as_dir in
32194 /*)
32195 if ("$as_dir/$as_base" -c '
32196 as_lineno_1=$LINENO
32197 as_lineno_2=$LINENO
32198 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
32199 test "x$as_lineno_1" != "x$as_lineno_2" &&
32200 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
32201 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
32202 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
32203 CONFIG_SHELL=$as_dir/$as_base
32204 export CONFIG_SHELL
32205 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
32206 fi;;
32207 esac
32208 done
32209 done
32210 ;;
32211 esac
32212
32213 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
32214 # uniformly replaced by the line number. The first 'sed' inserts a
32215 # line-number line before each line; the second 'sed' does the real
32216 # work. The second script uses 'N' to pair each line-number line
32217 # with the numbered line, and appends trailing '-' during
32218 # substitution so that $LINENO is not a special case at line end.
32219 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
32220 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
32221 sed '=' <$as_myself |
32222 sed '
32223 N
32224 s,$,-,
32225 : loop
32226 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
32227 t loop
32228 s,-$,,
32229 s,^['$as_cr_digits']*\n,,
32230 ' >$as_me.lineno &&
32231 chmod +x $as_me.lineno ||
32232 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
32233 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
32234 { (exit 1); exit 1; }; }
32235
32236 # Don't try to exec as it changes $[0], causing all sort of problems
32237 # (the dirname of $[0] is not the place where we might find the
32238 # original and so on. Autoconf is especially sensible to this).
32239 . ./$as_me.lineno
32240 # Exit status is that of the last command.
32241 exit
32242 }
32243
32244
32245 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
32246 *c*,-n*) ECHO_N= ECHO_C='
32247 ' ECHO_T=' ' ;;
32248 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
32249 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
32250 esac
32251
32252 if expr a : '\(a\)' >/dev/null 2>&1; then
32253 as_expr=expr
32254 else
32255 as_expr=false
32256 fi
32257
32258 rm -f conf$$ conf$$.exe conf$$.file
32259 echo >conf$$.file
32260 if ln -s conf$$.file conf$$ 2>/dev/null; then
32261 # We could just check for DJGPP; but this test a) works b) is more generic
32262 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
32263 if test -f conf$$.exe; then
32264 # Don't use ln at all; we don't have any links
32265 as_ln_s='cp -p'
32266 else
32267 as_ln_s='ln -s'
32268 fi
32269 elif ln conf$$.file conf$$ 2>/dev/null; then
32270 as_ln_s=ln
32271 else
32272 as_ln_s='cp -p'
32273 fi
32274 rm -f conf$$ conf$$.exe conf$$.file
32275
32276 if mkdir -p . 2>/dev/null; then
32277 as_mkdir_p=:
32278 else
32279 test -d ./-p && rmdir ./-p
32280 as_mkdir_p=false
32281 fi
32282
32283 as_executable_p="test -f"
32284
32285 # Sed expression to map a string onto a valid CPP name.
32286 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
32287
32288 # Sed expression to map a string onto a valid variable name.
32289 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
32290
32291
32292 # IFS
32293 # We need space, tab and new line, in precisely that order.
32294 as_nl='
32295 '
32296 IFS=" $as_nl"
32297
32298 # CDPATH.
32299 $as_unset CDPATH
32300
32301 exec 6>&1
32302
32303 # Open the log real soon, to keep \$[0] and so on meaningful, and to
32304 # report actual input values of CONFIG_FILES etc. instead of their
32305 # values after options handling. Logging --version etc. is OK.
32306 exec 5>>config.log
32307 {
32308 echo
32309 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
32310 ## Running $as_me. ##
32311 _ASBOX
32312 } >&5
32313 cat >&5 <<_CSEOF
32314
32315 This file was extended by $as_me, which was
32316 generated by GNU Autoconf 2.59. Invocation command line was
32317
32318 CONFIG_FILES = $CONFIG_FILES
32319 CONFIG_HEADERS = $CONFIG_HEADERS
32320 CONFIG_LINKS = $CONFIG_LINKS
32321 CONFIG_COMMANDS = $CONFIG_COMMANDS
32322 $ $0 $@
32323
32324 _CSEOF
32325 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
32326 echo >&5
32327 _ACEOF
32328
32329 # Files that config.status was made for.
32330 if test -n "$ac_config_files"; then
32331 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
32332 fi
32333
32334 if test -n "$ac_config_headers"; then
32335 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
32336 fi
32337
32338 if test -n "$ac_config_links"; then
32339 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
32340 fi
32341
32342 if test -n "$ac_config_commands"; then
32343 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
32344 fi
32345
32346 cat >>$CONFIG_STATUS <<\_ACEOF
32347
32348 ac_cs_usage="\
32349 \`$as_me' instantiates files from templates according to the
32350 current configuration.
32351
32352 Usage: $0 [OPTIONS] [FILE]...
32353
32354 -h, --help print this help, then exit
32355 -V, --version print version number, then exit
32356 -q, --quiet do not print progress messages
32357 -d, --debug don't remove temporary files
32358 --recheck update $as_me by reconfiguring in the same conditions
32359 --file=FILE[:TEMPLATE]
32360 instantiate the configuration file FILE
32361 --header=FILE[:TEMPLATE]
32362 instantiate the configuration header FILE
32363
32364 Configuration files:
32365 $config_files
32366
32367 Configuration headers:
32368 $config_headers
32369
32370 Configuration commands:
32371 $config_commands
32372
32373 Report bugs to <bug-autoconf@gnu.org>."
32374 _ACEOF
32375
32376 cat >>$CONFIG_STATUS <<_ACEOF
32377 ac_cs_version="\\
32378 config.status
32379 configured by $0, generated by GNU Autoconf 2.59,
32380 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
32381
32382 Copyright (C) 2003 Free Software Foundation, Inc.
32383 This config.status script is free software; the Free Software Foundation
32384 gives unlimited permission to copy, distribute and modify it."
32385 srcdir=$srcdir
32386 INSTALL="$INSTALL"
32387 _ACEOF
32388
32389 cat >>$CONFIG_STATUS <<\_ACEOF
32390 # If no file are specified by the user, then we need to provide default
32391 # value. By we need to know if files were specified by the user.
32392 ac_need_defaults=:
32393 while test $# != 0
32394 do
32395 case $1 in
32396 --*=*)
32397 ac_option=`expr "x$1" : 'x\([^=]*\)='`
32398 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
32399 ac_shift=:
32400 ;;
32401 -*)
32402 ac_option=$1
32403 ac_optarg=$2
32404 ac_shift=shift
32405 ;;
32406 *) # This is not an option, so the user has probably given explicit
32407 # arguments.
32408 ac_option=$1
32409 ac_need_defaults=false;;
32410 esac
32411
32412 case $ac_option in
32413 # Handling of the options.
32414 _ACEOF
32415 cat >>$CONFIG_STATUS <<\_ACEOF
32416 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
32417 ac_cs_recheck=: ;;
32418 --version | --vers* | -V )
32419 echo "$ac_cs_version"; exit 0 ;;
32420 --he | --h)
32421 # Conflict between --help and --header
32422 { { echo "$as_me:$LINENO: error: ambiguous option: $1
32423 Try \`$0 --help' for more information." >&5
32424 echo "$as_me: error: ambiguous option: $1
32425 Try \`$0 --help' for more information." >&2;}
32426 { (exit 1); exit 1; }; };;
32427 --help | --hel | -h )
32428 echo "$ac_cs_usage"; exit 0 ;;
32429 --debug | --d* | -d )
32430 debug=: ;;
32431 --file | --fil | --fi | --f )
32432 $ac_shift
32433 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
32434 ac_need_defaults=false;;
32435 --header | --heade | --head | --hea )
32436 $ac_shift
32437 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
32438 ac_need_defaults=false;;
32439 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
32440 | -silent | --silent | --silen | --sile | --sil | --si | --s)
32441 ac_cs_silent=: ;;
32442
32443 # This is an error.
32444 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
32445 Try \`$0 --help' for more information." >&5
32446 echo "$as_me: error: unrecognized option: $1
32447 Try \`$0 --help' for more information." >&2;}
32448 { (exit 1); exit 1; }; } ;;
32449
32450 *) ac_config_targets="$ac_config_targets $1" ;;
32451
32452 esac
32453 shift
32454 done
32455
32456 ac_configure_extra_args=
32457
32458 if $ac_cs_silent; then
32459 exec 6>/dev/null
32460 ac_configure_extra_args="$ac_configure_extra_args --silent"
32461 fi
32462
32463 _ACEOF
32464 cat >>$CONFIG_STATUS <<_ACEOF
32465 if \$ac_cs_recheck; then
32466 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
32467 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
32468 fi
32469
32470 _ACEOF
32471
32472 cat >>$CONFIG_STATUS <<_ACEOF
32473 #
32474 # INIT-COMMANDS section.
32475 #
32476
32477 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
32478
32479 _ACEOF
32480
32481
32482
32483 cat >>$CONFIG_STATUS <<\_ACEOF
32484 for ac_config_target in $ac_config_targets
32485 do
32486 case "$ac_config_target" in
32487 # Handling of arguments.
32488 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
32489 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
32490 "doc/doxygen" ) CONFIG_FILES="$CONFIG_FILES doc/doxygen" ;;
32491 "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
32492 "src/spandsp.h" ) CONFIG_FILES="$CONFIG_FILES src/spandsp.h" ;;
32493 "spandsp-sim/Makefile" ) CONFIG_FILES="$CONFIG_FILES spandsp-sim/Makefile" ;;
32494 "test-data/Makefile" ) CONFIG_FILES="$CONFIG_FILES test-data/Makefile" ;;
32495 "test-data/etsi/Makefile" ) CONFIG_FILES="$CONFIG_FILES test-data/etsi/Makefile" ;;
32496 "test-data/etsi/fax/Makefile" ) CONFIG_FILES="$CONFIG_FILES test-data/etsi/fax/Makefile" ;;
32497 "test-data/itu/Makefile" ) CONFIG_FILES="$CONFIG_FILES test-data/itu/Makefile" ;;
32498 "test-data/itu/fax/Makefile" ) CONFIG_FILES="$CONFIG_FILES test-data/itu/fax/Makefile" ;;
32499 "test-data/local/Makefile" ) CONFIG_FILES="$CONFIG_FILES test-data/local/Makefile" ;;
32500 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
32501 "spandsp.pc" ) CONFIG_FILES="$CONFIG_FILES spandsp.pc" ;;
32502 "spandsp.spec" ) CONFIG_FILES="$CONFIG_FILES spandsp.spec" ;;
32503 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
32504 "src/config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:config-h.in" ;;
32505 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
32506 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
32507 { (exit 1); exit 1; }; };;
32508 esac
32509 done
32510
32511 # If the user did not use the arguments to specify the items to instantiate,
32512 # then the envvar interface is used. Set only those that are not.
32513 # We use the long form for the default assignment because of an extremely
32514 # bizarre bug on SunOS 4.1.3.
32515 if $ac_need_defaults; then
32516 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
32517 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
32518 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
32519 fi
32520
32521 # Have a temporary directory for convenience. Make it in the build tree
32522 # simply because there is no reason to put it here, and in addition,
32523 # creating and moving files from /tmp can sometimes cause problems.
32524 # Create a temporary directory, and hook for its removal unless debugging.
32525 $debug ||
32526 {
32527 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
32528 trap '{ (exit 1); exit 1; }' 1 2 13 15
32529 }
32530
32531 # Create a (secure) tmp directory for tmp files.
32532
32533 {
32534 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
32535 test -n "$tmp" && test -d "$tmp"
32536 } ||
32537 {
32538 tmp=./confstat$$-$RANDOM
32539 (umask 077 && mkdir $tmp)
32540 } ||
32541 {
32542 echo "$me: cannot create a temporary directory in ." >&2
32543 { (exit 1); exit 1; }
32544 }
32545
32546 _ACEOF
32547
32548 cat >>$CONFIG_STATUS <<_ACEOF
32549
32550 #
32551 # CONFIG_FILES section.
32552 #
32553
32554 # No need to generate the scripts if there are no CONFIG_FILES.
32555 # This happens for instance when ./config.status config.h
32556 if test -n "\$CONFIG_FILES"; then
32557 # Protect against being on the right side of a sed subst in config.status.
32558 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
32559 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
32560 s,@SHELL@,$SHELL,;t t
32561 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
32562 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
32563 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
32564 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
32565 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
32566 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
32567 s,@exec_prefix@,$exec_prefix,;t t
32568 s,@prefix@,$prefix,;t t
32569 s,@program_transform_name@,$program_transform_name,;t t
32570 s,@bindir@,$bindir,;t t
32571 s,@sbindir@,$sbindir,;t t
32572 s,@libexecdir@,$libexecdir,;t t
32573 s,@datadir@,$datadir,;t t
32574 s,@sysconfdir@,$sysconfdir,;t t
32575 s,@sharedstatedir@,$sharedstatedir,;t t
32576 s,@localstatedir@,$localstatedir,;t t
32577 s,@libdir@,$libdir,;t t
32578 s,@includedir@,$includedir,;t t
32579 s,@oldincludedir@,$oldincludedir,;t t
32580 s,@infodir@,$infodir,;t t
32581 s,@mandir@,$mandir,;t t
32582 s,@build_alias@,$build_alias,;t t
32583 s,@host_alias@,$host_alias,;t t
32584 s,@target_alias@,$target_alias,;t t
32585 s,@DEFS@,$DEFS,;t t
32586 s,@ECHO_C@,$ECHO_C,;t t
32587 s,@ECHO_N@,$ECHO_N,;t t
32588 s,@ECHO_T@,$ECHO_T,;t t
32589 s,@LIBS@,$LIBS,;t t
32590 s,@SPANDSP_LT_CURRENT@,$SPANDSP_LT_CURRENT,;t t
32591 s,@SPANDSP_LT_REVISION@,$SPANDSP_LT_REVISION,;t t
32592 s,@SPANDSP_LT_AGE@,$SPANDSP_LT_AGE,;t t
32593 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
32594 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
32595 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
32596 s,@CYGPATH_W@,$CYGPATH_W,;t t
32597 s,@PACKAGE@,$PACKAGE,;t t
32598 s,@VERSION@,$VERSION,;t t
32599 s,@ACLOCAL@,$ACLOCAL,;t t
32600 s,@AUTOCONF@,$AUTOCONF,;t t
32601 s,@AUTOMAKE@,$AUTOMAKE,;t t
32602 s,@AUTOHEADER@,$AUTOHEADER,;t t
32603 s,@MAKEINFO@,$MAKEINFO,;t t
32604 s,@install_sh@,$install_sh,;t t
32605 s,@STRIP@,$STRIP,;t t
32606 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
32607 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
32608 s,@mkdir_p@,$mkdir_p,;t t
32609 s,@AWK@,$AWK,;t t
32610 s,@SET_MAKE@,$SET_MAKE,;t t
32611 s,@am__leading_dot@,$am__leading_dot,;t t
32612 s,@AMTAR@,$AMTAR,;t t
32613 s,@am__tar@,$am__tar,;t t
32614 s,@am__untar@,$am__untar,;t t
32615 s,@build@,$build,;t t
32616 s,@build_cpu@,$build_cpu,;t t
32617 s,@build_vendor@,$build_vendor,;t t
32618 s,@build_os@,$build_os,;t t
32619 s,@host@,$host,;t t
32620 s,@host_cpu@,$host_cpu,;t t
32621 s,@host_vendor@,$host_vendor,;t t
32622 s,@host_os@,$host_os,;t t
32623 s,@CC@,$CC,;t t
32624 s,@CFLAGS@,$CFLAGS,;t t
32625 s,@LDFLAGS@,$LDFLAGS,;t t
32626 s,@CPPFLAGS@,$CPPFLAGS,;t t
32627 s,@ac_ct_CC@,$ac_ct_CC,;t t
32628 s,@EXEEXT@,$EXEEXT,;t t
32629 s,@OBJEXT@,$OBJEXT,;t t
32630 s,@DEPDIR@,$DEPDIR,;t t
32631 s,@am__include@,$am__include,;t t
32632 s,@am__quote@,$am__quote,;t t
32633 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
32634 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
32635 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
32636 s,@CCDEPMODE@,$CCDEPMODE,;t t
32637 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
32638 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
32639 s,@CXX@,$CXX,;t t
32640 s,@CXXFLAGS@,$CXXFLAGS,;t t
32641 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
32642 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
32643 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
32644 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
32645 s,@CPP@,$CPP,;t t
32646 s,@EGREP@,$EGREP,;t t
32647 s,@SED@,$SED,;t t
32648 s,@LN_S@,$LN_S,;t t
32649 s,@ECHO@,$ECHO,;t t
32650 s,@AR@,$AR,;t t
32651 s,@ac_ct_AR@,$ac_ct_AR,;t t
32652 s,@RANLIB@,$RANLIB,;t t
32653 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
32654 s,@DSYMUTIL@,$DSYMUTIL,;t t
32655 s,@ac_ct_DSYMUTIL@,$ac_ct_DSYMUTIL,;t t
32656 s,@NMEDIT@,$NMEDIT,;t t
32657 s,@ac_ct_NMEDIT@,$ac_ct_NMEDIT,;t t
32658 s,@CXXCPP@,$CXXCPP,;t t
32659 s,@F77@,$F77,;t t
32660 s,@FFLAGS@,$FFLAGS,;t t
32661 s,@ac_ct_F77@,$ac_ct_F77,;t t
32662 s,@LIBTOOL@,$LIBTOOL,;t t
32663 s,@LIBOBJS@,$LIBOBJS,;t t
32664 s,@COND_DOC_TRUE@,$COND_DOC_TRUE,;t t
32665 s,@COND_DOC_FALSE@,$COND_DOC_FALSE,;t t
32666 s,@COND_TESTS_TRUE@,$COND_TESTS_TRUE,;t t
32667 s,@COND_TESTS_FALSE@,$COND_TESTS_FALSE,;t t
32668 s,@COND_TESTDATA_TRUE@,$COND_TESTDATA_TRUE,;t t
32669 s,@COND_TESTDATA_FALSE@,$COND_TESTDATA_FALSE,;t t
32670 s,@COND_MMX_TRUE@,$COND_MMX_TRUE,;t t
32671 s,@COND_MMX_FALSE@,$COND_MMX_FALSE,;t t
32672 s,@COND_SSE_TRUE@,$COND_SSE_TRUE,;t t
32673 s,@COND_SSE_FALSE@,$COND_SSE_FALSE,;t t
32674 s,@COND_SSE2_TRUE@,$COND_SSE2_TRUE,;t t
32675 s,@COND_SSE2_FALSE@,$COND_SSE2_FALSE,;t t
32676 s,@COND_SSE3_TRUE@,$COND_SSE3_TRUE,;t t
32677 s,@COND_SSE3_FALSE@,$COND_SSE3_FALSE,;t t
32678 s,@COND_SSSE3_TRUE@,$COND_SSSE3_TRUE,;t t
32679 s,@COND_SSSE3_FALSE@,$COND_SSSE3_FALSE,;t t
32680 s,@COND_SSE4_1_TRUE@,$COND_SSE4_1_TRUE,;t t
32681 s,@COND_SSE4_1_FALSE@,$COND_SSE4_1_FALSE,;t t
32682 s,@COND_SSE4_2_TRUE@,$COND_SSE4_2_TRUE,;t t
32683 s,@COND_SSE4_2_FALSE@,$COND_SSE4_2_FALSE,;t t
32684 s,@COND_SSE4A_TRUE@,$COND_SSE4A_TRUE,;t t
32685 s,@COND_SSE4A_FALSE@,$COND_SSE4A_FALSE,;t t
32686 s,@COND_SSE5_TRUE@,$COND_SSE5_TRUE,;t t
32687 s,@COND_SSE5_FALSE@,$COND_SSE5_FALSE,;t t
32688 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
32689 s,@CPPFLAGS_FOR_BUILD@,$CPPFLAGS_FOR_BUILD,;t t
32690 s,@COMP_VENDOR_CFLAGS@,$COMP_VENDOR_CFLAGS,;t t
32691 s,@COMP_VENDOR_LDFLAGS@,$COMP_VENDOR_LDFLAGS,;t t
32692 s,@SIMLIBS@,$SIMLIBS,;t t
32693 s,@TESTLIBS@,$TESTLIBS,;t t
32694 s,@SPANDSP_USE_FIXED_POINT@,$SPANDSP_USE_FIXED_POINT,;t t
32695 s,@SPANDSP_MISALIGNED_ACCESS_FAILS@,$SPANDSP_MISALIGNED_ACCESS_FAILS,;t t
32696 s,@SPANDSP_USE_EXPORT_CAPABILITY@,$SPANDSP_USE_EXPORT_CAPABILITY,;t t
32697 s,@INSERT_INTTYPES_HEADER@,$INSERT_INTTYPES_HEADER,;t t
32698 s,@INSERT_STDINT_HEADER@,$INSERT_STDINT_HEADER,;t t
32699 s,@INSERT_TGMATH_HEADER@,$INSERT_TGMATH_HEADER,;t t
32700 s,@INSERT_MATH_HEADER@,$INSERT_MATH_HEADER,;t t
32701 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
32702 CEOF
32703
32704 _ACEOF
32705
32706 cat >>$CONFIG_STATUS <<\_ACEOF
32707 # Split the substitutions into bite-sized pieces for seds with
32708 # small command number limits, like on Digital OSF/1 and HP-UX.
32709 ac_max_sed_lines=48
32710 ac_sed_frag=1 # Number of current file.
32711 ac_beg=1 # First line for current file.
32712 ac_end=$ac_max_sed_lines # Line after last line for current file.
32713 ac_more_lines=:
32714 ac_sed_cmds=
32715 while $ac_more_lines; do
32716 if test $ac_beg -gt 1; then
32717 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32718 else
32719 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
32720 fi
32721 if test ! -s $tmp/subs.frag; then
32722 ac_more_lines=false
32723 else
32724 # The purpose of the label and of the branching condition is to
32725 # speed up the sed processing (if there are no `@' at all, there
32726 # is no need to browse any of the substitutions).
32727 # These are the two extra sed commands mentioned above.
32728 (echo ':t
32729 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
32730 if test -z "$ac_sed_cmds"; then
32731 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
32732 else
32733 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
32734 fi
32735 ac_sed_frag=`expr $ac_sed_frag + 1`
32736 ac_beg=$ac_end
32737 ac_end=`expr $ac_end + $ac_max_sed_lines`
32738 fi
32739 done
32740 if test -z "$ac_sed_cmds"; then
32741 ac_sed_cmds=cat
32742 fi
32743 fi # test -n "$CONFIG_FILES"
32744
32745 _ACEOF
32746 cat >>$CONFIG_STATUS <<\_ACEOF
32747 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
32748 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32749 case $ac_file in
32750 - | *:- | *:-:* ) # input from stdin
32751 cat >$tmp/stdin
32752 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32753 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32754 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32755 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32756 * ) ac_file_in=$ac_file.in ;;
32757 esac
32758
32759 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
32760 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
32761 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32762 X"$ac_file" : 'X\(//\)[^/]' \| \
32763 X"$ac_file" : 'X\(//\)$' \| \
32764 X"$ac_file" : 'X\(/\)' \| \
32765 . : '\(.\)' 2>/dev/null ||
32766 echo X"$ac_file" |
32767 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32768 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32769 /^X\(\/\/\)$/{ s//\1/; q; }
32770 /^X\(\/\).*/{ s//\1/; q; }
32771 s/.*/./; q'`
32772 { if $as_mkdir_p; then
32773 mkdir -p "$ac_dir"
32774 else
32775 as_dir="$ac_dir"
32776 as_dirs=
32777 while test ! -d "$as_dir"; do
32778 as_dirs="$as_dir $as_dirs"
32779 as_dir=`(dirname "$as_dir") 2>/dev/null ||
32780 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
32781 X"$as_dir" : 'X\(//\)[^/]' \| \
32782 X"$as_dir" : 'X\(//\)$' \| \
32783 X"$as_dir" : 'X\(/\)' \| \
32784 . : '\(.\)' 2>/dev/null ||
32785 echo X"$as_dir" |
32786 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
32787 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
32788 /^X\(\/\/\)$/{ s//\1/; q; }
32789 /^X\(\/\).*/{ s//\1/; q; }
32790 s/.*/./; q'`
32791 done
32792 test ! -n "$as_dirs" || mkdir $as_dirs
32793 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
32794 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
32795 { (exit 1); exit 1; }; }; }
32796
32797 ac_builddir=.
32798
32799 if test "$ac_dir" != .; then
32800 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
32801 # A "../" for each directory in $ac_dir_suffix.
32802 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
32803 else
32804 ac_dir_suffix= ac_top_builddir=
32805 fi
32806
32807 case $srcdir in
32808 .) # No --srcdir option. We are building in place.
32809 ac_srcdir=.
32810 if test -z "$ac_top_builddir"; then
32811 ac_top_srcdir=.
32812 else
32813 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
32814 fi ;;
32815 [\\/]* | ?:[\\/]* ) # Absolute path.
32816 ac_srcdir=$srcdir$ac_dir_suffix;
32817 ac_top_srcdir=$srcdir ;;
32818 *) # Relative path.
32819 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
32820 ac_top_srcdir=$ac_top_builddir$srcdir ;;
32821 esac
32822
32823 # Do not use `cd foo && pwd` to compute absolute paths, because
32824 # the directories may not exist.
32825 case `pwd` in
32826 .) ac_abs_builddir="$ac_dir";;
32827 *)
32828 case "$ac_dir" in
32829 .) ac_abs_builddir=`pwd`;;
32830 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
32831 *) ac_abs_builddir=`pwd`/"$ac_dir";;
32832 esac;;
32833 esac
32834 case $ac_abs_builddir in
32835 .) ac_abs_top_builddir=${ac_top_builddir}.;;
32836 *)
32837 case ${ac_top_builddir}. in
32838 .) ac_abs_top_builddir=$ac_abs_builddir;;
32839 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
32840 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
32841 esac;;
32842 esac
32843 case $ac_abs_builddir in
32844 .) ac_abs_srcdir=$ac_srcdir;;
32845 *)
32846 case $ac_srcdir in
32847 .) ac_abs_srcdir=$ac_abs_builddir;;
32848 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
32849 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
32850 esac;;
32851 esac
32852 case $ac_abs_builddir in
32853 .) ac_abs_top_srcdir=$ac_top_srcdir;;
32854 *)
32855 case $ac_top_srcdir in
32856 .) ac_abs_top_srcdir=$ac_abs_builddir;;
32857 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
32858 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
32859 esac;;
32860 esac
32861
32862
32863 case $INSTALL in
32864 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
32865 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
32866 esac
32867
32868 if test x"$ac_file" != x-; then
32869 { echo "$as_me:$LINENO: creating $ac_file" >&5
32870 echo "$as_me: creating $ac_file" >&6;}
32871 rm -f "$ac_file"
32872 fi
32873 # Let's still pretend it is `configure' which instantiates (i.e., don't
32874 # use $as_me), people would be surprised to read:
32875 # /* config.h. Generated by config.status. */
32876 if test x"$ac_file" = x-; then
32877 configure_input=
32878 else
32879 configure_input="$ac_file. "
32880 fi
32881 configure_input=$configure_input"Generated from `echo $ac_file_in |
32882 sed 's,.*/,,'` by configure."
32883
32884 # First look for the input files in the build tree, otherwise in the
32885 # src tree.
32886 ac_file_inputs=`IFS=:
32887 for f in $ac_file_in; do
32888 case $f in
32889 -) echo $tmp/stdin ;;
32890 [\\/$]*)
32891 # Absolute (can't be DOS-style, as IFS=:)
32892 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32893 echo "$as_me: error: cannot find input file: $f" >&2;}
32894 { (exit 1); exit 1; }; }
32895 echo "$f";;
32896 *) # Relative
32897 if test -f "$f"; then
32898 # Build tree
32899 echo "$f"
32900 elif test -f "$srcdir/$f"; then
32901 # Source tree
32902 echo "$srcdir/$f"
32903 else
32904 # /dev/null tree
32905 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32906 echo "$as_me: error: cannot find input file: $f" >&2;}
32907 { (exit 1); exit 1; }; }
32908 fi;;
32909 esac
32910 done` || { (exit 1); exit 1; }
32911 _ACEOF
32912 cat >>$CONFIG_STATUS <<_ACEOF
32913 sed "$ac_vpsub
32914 $extrasub
32915 _ACEOF
32916 cat >>$CONFIG_STATUS <<\_ACEOF
32917 :t
32918 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
32919 s,@configure_input@,$configure_input,;t t
32920 s,@srcdir@,$ac_srcdir,;t t
32921 s,@abs_srcdir@,$ac_abs_srcdir,;t t
32922 s,@top_srcdir@,$ac_top_srcdir,;t t
32923 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
32924 s,@builddir@,$ac_builddir,;t t
32925 s,@abs_builddir@,$ac_abs_builddir,;t t
32926 s,@top_builddir@,$ac_top_builddir,;t t
32927 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
32928 s,@INSTALL@,$ac_INSTALL,;t t
32929 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
32930 rm -f $tmp/stdin
32931 if test x"$ac_file" != x-; then
32932 mv $tmp/out $ac_file
32933 else
32934 cat $tmp/out
32935 rm -f $tmp/out
32936 fi
32937
32938 done
32939 _ACEOF
32940 cat >>$CONFIG_STATUS <<\_ACEOF
32941
32942 #
32943 # CONFIG_HEADER section.
32944 #
32945
32946 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
32947 # NAME is the cpp macro being defined and VALUE is the value it is being given.
32948 #
32949 # ac_d sets the value in "#define NAME VALUE" lines.
32950 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
32951 ac_dB='[ ].*$,\1#\2'
32952 ac_dC=' '
32953 ac_dD=',;t'
32954 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
32955 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
32956 ac_uB='$,\1#\2define\3'
32957 ac_uC=' '
32958 ac_uD=',;t'
32959
32960 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
32961 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
32962 case $ac_file in
32963 - | *:- | *:-:* ) # input from stdin
32964 cat >$tmp/stdin
32965 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32966 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32967 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
32968 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
32969 * ) ac_file_in=$ac_file.in ;;
32970 esac
32971
32972 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
32973 echo "$as_me: creating $ac_file" >&6;}
32974
32975 # First look for the input files in the build tree, otherwise in the
32976 # src tree.
32977 ac_file_inputs=`IFS=:
32978 for f in $ac_file_in; do
32979 case $f in
32980 -) echo $tmp/stdin ;;
32981 [\\/$]*)
32982 # Absolute (can't be DOS-style, as IFS=:)
32983 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32984 echo "$as_me: error: cannot find input file: $f" >&2;}
32985 { (exit 1); exit 1; }; }
32986 # Do quote $f, to prevent DOS paths from being IFS'd.
32987 echo "$f";;
32988 *) # Relative
32989 if test -f "$f"; then
32990 # Build tree
32991 echo "$f"
32992 elif test -f "$srcdir/$f"; then
32993 # Source tree
32994 echo "$srcdir/$f"
32995 else
32996 # /dev/null tree
32997 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
32998 echo "$as_me: error: cannot find input file: $f" >&2;}
32999 { (exit 1); exit 1; }; }
33000 fi;;
33001 esac
33002 done` || { (exit 1); exit 1; }
33003 # Remove the trailing spaces.
33004 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
33005
33006 _ACEOF
33007
33008 # Transform confdefs.h into two sed scripts, `conftest.defines' and
33009 # `conftest.undefs', that substitutes the proper values into
33010 # config.h.in to produce config.h. The first handles `#define'
33011 # templates, and the second `#undef' templates.
33012 # And first: Protect against being on the right side of a sed subst in
33013 # config.status. Protect against being in an unquoted here document
33014 # in config.status.
33015 rm -f conftest.defines conftest.undefs
33016 # Using a here document instead of a string reduces the quoting nightmare.
33017 # Putting comments in sed scripts is not portable.
33018 #
33019 # `end' is used to avoid that the second main sed command (meant for
33020 # 0-ary CPP macros) applies to n-ary macro definitions.
33021 # See the Autoconf documentation for `clear'.
33022 cat >confdef2sed.sed <<\_ACEOF
33023 s/[\\&,]/\\&/g
33024 s,[\\$`],\\&,g
33025 t clear
33026 : clear
33027 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
33028 t end
33029 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
33030 : end
33031 _ACEOF
33032 # If some macros were called several times there might be several times
33033 # the same #defines, which is useless. Nevertheless, we may not want to
33034 # sort them, since we want the *last* AC-DEFINE to be honored.
33035 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
33036 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
33037 rm -f confdef2sed.sed
33038
33039 # This sed command replaces #undef with comments. This is necessary, for
33040 # example, in the case of _POSIX_SOURCE, which is predefined and required
33041 # on some systems where configure will not decide to define it.
33042 cat >>conftest.undefs <<\_ACEOF
33043 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
33044 _ACEOF
33045
33046 # Break up conftest.defines because some shells have a limit on the size
33047 # of here documents, and old seds have small limits too (100 cmds).
33048 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
33049 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
33050 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
33051 echo ' :' >>$CONFIG_STATUS
33052 rm -f conftest.tail
33053 while grep . conftest.defines >/dev/null
33054 do
33055 # Write a limited-size here document to $tmp/defines.sed.
33056 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
33057 # Speed up: don't consider the non `#define' lines.
33058 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
33059 # Work around the forget-to-reset-the-flag bug.
33060 echo 't clr' >>$CONFIG_STATUS
33061 echo ': clr' >>$CONFIG_STATUS
33062 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
33063 echo 'CEOF
33064 sed -f $tmp/defines.sed $tmp/in >$tmp/out
33065 rm -f $tmp/in
33066 mv $tmp/out $tmp/in
33067 ' >>$CONFIG_STATUS
33068 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
33069 rm -f conftest.defines
33070 mv conftest.tail conftest.defines
33071 done
33072 rm -f conftest.defines
33073 echo ' fi # grep' >>$CONFIG_STATUS
33074 echo >>$CONFIG_STATUS
33075
33076 # Break up conftest.undefs because some shells have a limit on the size
33077 # of here documents, and old seds have small limits too (100 cmds).
33078 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
33079 rm -f conftest.tail
33080 while grep . conftest.undefs >/dev/null
33081 do
33082 # Write a limited-size here document to $tmp/undefs.sed.
33083 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
33084 # Speed up: don't consider the non `#undef'
33085 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
33086 # Work around the forget-to-reset-the-flag bug.
33087 echo 't clr' >>$CONFIG_STATUS
33088 echo ': clr' >>$CONFIG_STATUS
33089 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
33090 echo 'CEOF
33091 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
33092 rm -f $tmp/in
33093 mv $tmp/out $tmp/in
33094 ' >>$CONFIG_STATUS
33095 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
33096 rm -f conftest.undefs
33097 mv conftest.tail conftest.undefs
33098 done
33099 rm -f conftest.undefs
33100
33101 cat >>$CONFIG_STATUS <<\_ACEOF
33102 # Let's still pretend it is `configure' which instantiates (i.e., don't
33103 # use $as_me), people would be surprised to read:
33104 # /* config.h. Generated by config.status. */
33105 if test x"$ac_file" = x-; then
33106 echo "/* Generated by configure. */" >$tmp/config.h
33107 else
33108 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
33109 fi
33110 cat $tmp/in >>$tmp/config.h
33111 rm -f $tmp/in
33112 if test x"$ac_file" != x-; then
33113 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
33114 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
33115 echo "$as_me: $ac_file is unchanged" >&6;}
33116 else
33117 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
33118 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33119 X"$ac_file" : 'X\(//\)[^/]' \| \
33120 X"$ac_file" : 'X\(//\)$' \| \
33121 X"$ac_file" : 'X\(/\)' \| \
33122 . : '\(.\)' 2>/dev/null ||
33123 echo X"$ac_file" |
33124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33125 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33126 /^X\(\/\/\)$/{ s//\1/; q; }
33127 /^X\(\/\).*/{ s//\1/; q; }
33128 s/.*/./; q'`
33129 { if $as_mkdir_p; then
33130 mkdir -p "$ac_dir"
33131 else
33132 as_dir="$ac_dir"
33133 as_dirs=
33134 while test ! -d "$as_dir"; do
33135 as_dirs="$as_dir $as_dirs"
33136 as_dir=`(dirname "$as_dir") 2>/dev/null ||
33137 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33138 X"$as_dir" : 'X\(//\)[^/]' \| \
33139 X"$as_dir" : 'X\(//\)$' \| \
33140 X"$as_dir" : 'X\(/\)' \| \
33141 . : '\(.\)' 2>/dev/null ||
33142 echo X"$as_dir" |
33143 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33144 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33145 /^X\(\/\/\)$/{ s//\1/; q; }
33146 /^X\(\/\).*/{ s//\1/; q; }
33147 s/.*/./; q'`
33148 done
33149 test ! -n "$as_dirs" || mkdir $as_dirs
33150 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
33151 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
33152 { (exit 1); exit 1; }; }; }
33153
33154 rm -f $ac_file
33155 mv $tmp/config.h $ac_file
33156 fi
33157 else
33158 cat $tmp/config.h
33159 rm -f $tmp/config.h
33160 fi
33161 # Compute $ac_file's index in $config_headers.
33162 _am_stamp_count=1
33163 for _am_header in $config_headers :; do
33164 case $_am_header in
33165 $ac_file | $ac_file:* )
33166 break ;;
33167 * )
33168 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
33169 esac
33170 done
33171 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
33172 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33173 X$ac_file : 'X\(//\)[^/]' \| \
33174 X$ac_file : 'X\(//\)$' \| \
33175 X$ac_file : 'X\(/\)' \| \
33176 . : '\(.\)' 2>/dev/null ||
33177 echo X$ac_file |
33178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33179 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33180 /^X\(\/\/\)$/{ s//\1/; q; }
33181 /^X\(\/\).*/{ s//\1/; q; }
33182 s/.*/./; q'`/stamp-h$_am_stamp_count
33183 done
33184 _ACEOF
33185 cat >>$CONFIG_STATUS <<\_ACEOF
33186
33187 #
33188 # CONFIG_COMMANDS section.
33189 #
33190 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
33191 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
33192 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
33193 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
33194 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33195 X"$ac_dest" : 'X\(//\)[^/]' \| \
33196 X"$ac_dest" : 'X\(//\)$' \| \
33197 X"$ac_dest" : 'X\(/\)' \| \
33198 . : '\(.\)' 2>/dev/null ||
33199 echo X"$ac_dest" |
33200 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33201 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33202 /^X\(\/\/\)$/{ s//\1/; q; }
33203 /^X\(\/\).*/{ s//\1/; q; }
33204 s/.*/./; q'`
33205 { if $as_mkdir_p; then
33206 mkdir -p "$ac_dir"
33207 else
33208 as_dir="$ac_dir"
33209 as_dirs=
33210 while test ! -d "$as_dir"; do
33211 as_dirs="$as_dir $as_dirs"
33212 as_dir=`(dirname "$as_dir") 2>/dev/null ||
33213 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33214 X"$as_dir" : 'X\(//\)[^/]' \| \
33215 X"$as_dir" : 'X\(//\)$' \| \
33216 X"$as_dir" : 'X\(/\)' \| \
33217 . : '\(.\)' 2>/dev/null ||
33218 echo X"$as_dir" |
33219 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33220 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33221 /^X\(\/\/\)$/{ s//\1/; q; }
33222 /^X\(\/\).*/{ s//\1/; q; }
33223 s/.*/./; q'`
33224 done
33225 test ! -n "$as_dirs" || mkdir $as_dirs
33226 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
33227 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
33228 { (exit 1); exit 1; }; }; }
33229
33230 ac_builddir=.
33231
33232 if test "$ac_dir" != .; then
33233 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
33234 # A "../" for each directory in $ac_dir_suffix.
33235 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
33236 else
33237 ac_dir_suffix= ac_top_builddir=
33238 fi
33239
33240 case $srcdir in
33241 .) # No --srcdir option. We are building in place.
33242 ac_srcdir=.
33243 if test -z "$ac_top_builddir"; then
33244 ac_top_srcdir=.
33245 else
33246 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
33247 fi ;;
33248 [\\/]* | ?:[\\/]* ) # Absolute path.
33249 ac_srcdir=$srcdir$ac_dir_suffix;
33250 ac_top_srcdir=$srcdir ;;
33251 *) # Relative path.
33252 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
33253 ac_top_srcdir=$ac_top_builddir$srcdir ;;
33254 esac
33255
33256 # Do not use `cd foo && pwd` to compute absolute paths, because
33257 # the directories may not exist.
33258 case `pwd` in
33259 .) ac_abs_builddir="$ac_dir";;
33260 *)
33261 case "$ac_dir" in
33262 .) ac_abs_builddir=`pwd`;;
33263 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
33264 *) ac_abs_builddir=`pwd`/"$ac_dir";;
33265 esac;;
33266 esac
33267 case $ac_abs_builddir in
33268 .) ac_abs_top_builddir=${ac_top_builddir}.;;
33269 *)
33270 case ${ac_top_builddir}. in
33271 .) ac_abs_top_builddir=$ac_abs_builddir;;
33272 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
33273 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
33274 esac;;
33275 esac
33276 case $ac_abs_builddir in
33277 .) ac_abs_srcdir=$ac_srcdir;;
33278 *)
33279 case $ac_srcdir in
33280 .) ac_abs_srcdir=$ac_abs_builddir;;
33281 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
33282 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
33283 esac;;
33284 esac
33285 case $ac_abs_builddir in
33286 .) ac_abs_top_srcdir=$ac_top_srcdir;;
33287 *)
33288 case $ac_top_srcdir in
33289 .) ac_abs_top_srcdir=$ac_abs_builddir;;
33290 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
33291 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
33292 esac;;
33293 esac
33294
33295
33296 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
33297 echo "$as_me: executing $ac_dest commands" >&6;}
33298 case $ac_dest in
33299 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
33300 # Strip MF so we end up with the name of the file.
33301 mf=`echo "$mf" | sed -e 's/:.*$//'`
33302 # Check whether this is an Automake generated Makefile or not.
33303 # We used to match only the files named `Makefile.in', but
33304 # some people rename them; so instead we look at the file content.
33305 # Grep'ing the first line is not enough: some people post-process
33306 # each Makefile.in and add a new line on top of each file to say so.
33307 # So let's grep whole file.
33308 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
33309 dirpart=`(dirname "$mf") 2>/dev/null ||
33310 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33311 X"$mf" : 'X\(//\)[^/]' \| \
33312 X"$mf" : 'X\(//\)$' \| \
33313 X"$mf" : 'X\(/\)' \| \
33314 . : '\(.\)' 2>/dev/null ||
33315 echo X"$mf" |
33316 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33317 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33318 /^X\(\/\/\)$/{ s//\1/; q; }
33319 /^X\(\/\).*/{ s//\1/; q; }
33320 s/.*/./; q'`
33321 else
33322 continue
33323 fi
33324 # Extract the definition of DEPDIR, am__include, and am__quote
33325 # from the Makefile without running `make'.
33326 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
33327 test -z "$DEPDIR" && continue
33328 am__include=`sed -n 's/^am__include = //p' < "$mf"`
33329 test -z "am__include" && continue
33330 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
33331 # When using ansi2knr, U may be empty or an underscore; expand it
33332 U=`sed -n 's/^U = //p' < "$mf"`
33333 # Find all dependency output files, they are included files with
33334 # $(DEPDIR) in their names. We invoke sed twice because it is the
33335 # simplest approach to changing $(DEPDIR) to its actual value in the
33336 # expansion.
33337 for file in `sed -n "
33338 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
33339 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
33340 # Make sure the directory exists.
33341 test -f "$dirpart/$file" && continue
33342 fdir=`(dirname "$file") 2>/dev/null ||
33343 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33344 X"$file" : 'X\(//\)[^/]' \| \
33345 X"$file" : 'X\(//\)$' \| \
33346 X"$file" : 'X\(/\)' \| \
33347 . : '\(.\)' 2>/dev/null ||
33348 echo X"$file" |
33349 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33350 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33351 /^X\(\/\/\)$/{ s//\1/; q; }
33352 /^X\(\/\).*/{ s//\1/; q; }
33353 s/.*/./; q'`
33354 { if $as_mkdir_p; then
33355 mkdir -p $dirpart/$fdir
33356 else
33357 as_dir=$dirpart/$fdir
33358 as_dirs=
33359 while test ! -d "$as_dir"; do
33360 as_dirs="$as_dir $as_dirs"
33361 as_dir=`(dirname "$as_dir") 2>/dev/null ||
33362 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
33363 X"$as_dir" : 'X\(//\)[^/]' \| \
33364 X"$as_dir" : 'X\(//\)$' \| \
33365 X"$as_dir" : 'X\(/\)' \| \
33366 . : '\(.\)' 2>/dev/null ||
33367 echo X"$as_dir" |
33368 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
33369 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
33370 /^X\(\/\/\)$/{ s//\1/; q; }
33371 /^X\(\/\).*/{ s//\1/; q; }
33372 s/.*/./; q'`
33373 done
33374 test ! -n "$as_dirs" || mkdir $as_dirs
33375 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
33376 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
33377 { (exit 1); exit 1; }; }; }
33378
33379 # echo "creating $dirpart/$file"
33380 echo '# dummy' > "$dirpart/$file"
33381 done
33382 done
33383 ;;
33384 esac
33385 done
33386 _ACEOF
33387
33388 cat >>$CONFIG_STATUS <<\_ACEOF
33389
33390 { (exit 0); exit 0; }
33391 _ACEOF
33392 chmod +x $CONFIG_STATUS
33393 ac_clean_files=$ac_clean_files_save
33394
33395
33396 # configure is writing to config.log, and then calls config.status.
33397 # config.status does its own redirection, appending to config.log.
33398 # Unfortunately, on DOS this fails, as config.log is still kept open
33399 # by configure, so config.status won't be able to write to it; its
33400 # output is simply discarded. So we exec the FD to /dev/null,
33401 # effectively closing config.log, so it can be properly (re)opened and
33402 # appended to by config.status. When coming back to configure, we
33403 # need to make the FD available again.
33404 if test "$no_create" != yes; then
33405 ac_cs_success=:
33406 ac_config_status_args=
33407 test "$silent" = yes &&
33408 ac_config_status_args="$ac_config_status_args --quiet"
33409 exec 5>/dev/null
33410 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
33411 exec 5>>config.log
33412 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
33413 # would make configure fail if this is the last instruction.
33414 $ac_cs_success || { (exit 1); exit 1; }
33415 fi
33416
33417
33418 # @end 1

Repositories maintained by Peter Meerwald, pmeerw@pmeerw.net.