Debian Codegraph @

configure

raw
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 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
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="cui/main.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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP EGREP 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 DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT U ANSI2KNR LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL ALLOCA LIBOBJS INCLUDES ID3TAG_LIBS ICONV_LIBS REGEX_LIBS 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_CPP_set=${CPP+set}
924 ac_env_CPP_value=$CPP
925 ac_cv_env_CPP_set=${CPP+set}
926 ac_cv_env_CPP_value=$CPP
927 ac_env_CXX_set=${CXX+set}
928 ac_env_CXX_value=$CXX
929 ac_cv_env_CXX_set=${CXX+set}
930 ac_cv_env_CXX_value=$CXX
931 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
932 ac_env_CXXFLAGS_value=$CXXFLAGS
933 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
934 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
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-maintainer-mode enable make rules and dependencies not useful
1029 (and sometimes confusing) to the casual installer
1030 --enable-shared[=PKGS]
1031 build shared libraries [default=yes]
1032 --enable-static[=PKGS]
1033 build static libraries [default=yes]
1034 --enable-fast-install[=PKGS]
1035 optimize for fast installation [default=yes]
1036 --disable-libtool-lock avoid locking (might break parallel builds)
1037 --enable-debug Turn on debugging
1038
1039
1040 Optional Packages:
1041 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1042 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1043 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1044 --with-pic try to use only PIC/non-PIC objects [default=use
1045 both]
1046 --with-tags[=TAGS]
1047 include additional configurations [automatic]
1048 --with-iconv-header=DIR iconv header directory
1049 --with-iconv-library=DIR
1050 iconv library directory
1051 --with-id3tag-header=DIR
1052 id3tag header directory
1053 --with-id3tag-library=DIR
1054 id3tag library directory
1055
1056 Some influential environment variables:
1057 CC C compiler command
1058 CFLAGS C compiler flags
1059 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1060 nonstandard directory <lib dir>
1061 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1062 headers in a nonstandard directory <include dir>
1063 CPP C preprocessor
1064 CXX C++ compiler command
1065 CXXFLAGS C++ compiler flags
1066 CXXCPP C++ preprocessor
1067 F77 Fortran 77 compiler command
1068 FFLAGS Fortran 77 compiler flags
1069
1070 Use these variables to override the choices made by `configure' or to help
1071 it to find libraries and programs with nonstandard names/locations.
1072
1073 _ACEOF
1074 fi
1075
1076 if test "$ac_init_help" = "recursive"; then
1077 # If there are subdirs, report their specific --help.
1078 ac_popdir=`pwd`
1079 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1080 test -d $ac_dir || continue
1081 ac_builddir=.
1082
1083 if test "$ac_dir" != .; then
1084 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1085 # A "../" for each directory in $ac_dir_suffix.
1086 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1087 else
1088 ac_dir_suffix= ac_top_builddir=
1089 fi
1090
1091 case $srcdir in
1092 .) # No --srcdir option. We are building in place.
1093 ac_srcdir=.
1094 if test -z "$ac_top_builddir"; then
1095 ac_top_srcdir=.
1096 else
1097 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1098 fi ;;
1099 [\\/]* | ?:[\\/]* ) # Absolute path.
1100 ac_srcdir=$srcdir$ac_dir_suffix;
1101 ac_top_srcdir=$srcdir ;;
1102 *) # Relative path.
1103 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1104 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1105 esac
1106
1107 # Do not use `cd foo && pwd` to compute absolute paths, because
1108 # the directories may not exist.
1109 case `pwd` in
1110 .) ac_abs_builddir="$ac_dir";;
1111 *)
1112 case "$ac_dir" in
1113 .) ac_abs_builddir=`pwd`;;
1114 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1115 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1116 esac;;
1117 esac
1118 case $ac_abs_builddir in
1119 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1120 *)
1121 case ${ac_top_builddir}. in
1122 .) ac_abs_top_builddir=$ac_abs_builddir;;
1123 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1124 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1125 esac;;
1126 esac
1127 case $ac_abs_builddir in
1128 .) ac_abs_srcdir=$ac_srcdir;;
1129 *)
1130 case $ac_srcdir in
1131 .) ac_abs_srcdir=$ac_abs_builddir;;
1132 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1133 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1134 esac;;
1135 esac
1136 case $ac_abs_builddir in
1137 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1138 *)
1139 case $ac_top_srcdir in
1140 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1141 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1142 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1143 esac;;
1144 esac
1145
1146 cd $ac_dir
1147 # Check for guested configure; otherwise get Cygnus style configure.
1148 if test -f $ac_srcdir/configure.gnu; then
1149 echo
1150 $SHELL $ac_srcdir/configure.gnu --help=recursive
1151 elif test -f $ac_srcdir/configure; then
1152 echo
1153 $SHELL $ac_srcdir/configure --help=recursive
1154 elif test -f $ac_srcdir/configure.ac ||
1155 test -f $ac_srcdir/configure.in; then
1156 echo
1157 $ac_configure --help
1158 else
1159 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1160 fi
1161 cd "$ac_popdir"
1162 done
1163 fi
1164
1165 test -n "$ac_init_help" && exit 0
1166 if $ac_init_version; then
1167 cat <<\_ACEOF
1168
1169 Copyright (C) 2003 Free Software Foundation, Inc.
1170 This configure script is free software; the Free Software Foundation
1171 gives unlimited permission to copy, distribute and modify it.
1172 _ACEOF
1173 exit 0
1174 fi
1175 exec 5>config.log
1176 cat >&5 <<_ACEOF
1177 This file contains any messages produced by compilers while
1178 running configure, to aid debugging if configure makes a mistake.
1179
1180 It was created by $as_me, which was
1181 generated by GNU Autoconf 2.59. Invocation command line was
1182
1183 $ $0 $@
1184
1185 _ACEOF
1186 {
1187 cat <<_ASUNAME
1188 ## --------- ##
1189 ## Platform. ##
1190 ## --------- ##
1191
1192 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1193 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1194 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1195 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1196 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1197
1198 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1199 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1200
1201 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1202 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1203 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1204 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1205 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1206 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1207 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1208
1209 _ASUNAME
1210
1211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1212 for as_dir in $PATH
1213 do
1214 IFS=$as_save_IFS
1215 test -z "$as_dir" && as_dir=.
1216 echo "PATH: $as_dir"
1217 done
1218
1219 } >&5
1220
1221 cat >&5 <<_ACEOF
1222
1223
1224 ## ----------- ##
1225 ## Core tests. ##
1226 ## ----------- ##
1227
1228 _ACEOF
1229
1230
1231 # Keep a trace of the command line.
1232 # Strip out --no-create and --no-recursion so they do not pile up.
1233 # Strip out --silent because we don't want to record it for future runs.
1234 # Also quote any args containing shell meta-characters.
1235 # Make two passes to allow for proper duplicate-argument suppression.
1236 ac_configure_args=
1237 ac_configure_args0=
1238 ac_configure_args1=
1239 ac_sep=
1240 ac_must_keep_next=false
1241 for ac_pass in 1 2
1242 do
1243 for ac_arg
1244 do
1245 case $ac_arg in
1246 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1247 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1248 | -silent | --silent | --silen | --sile | --sil)
1249 continue ;;
1250 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1251 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1252 esac
1253 case $ac_pass in
1254 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1255 2)
1256 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1257 if test $ac_must_keep_next = true; then
1258 ac_must_keep_next=false # Got value, back to normal.
1259 else
1260 case $ac_arg in
1261 *=* | --config-cache | -C | -disable-* | --disable-* \
1262 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1263 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1264 | -with-* | --with-* | -without-* | --without-* | --x)
1265 case "$ac_configure_args0 " in
1266 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1267 esac
1268 ;;
1269 -* ) ac_must_keep_next=true ;;
1270 esac
1271 fi
1272 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1273 # Get rid of the leading space.
1274 ac_sep=" "
1275 ;;
1276 esac
1277 done
1278 done
1279 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1280 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1281
1282 # When interrupted or exit'd, cleanup temporary files, and complete
1283 # config.log. We remove comments because anyway the quotes in there
1284 # would cause problems or look ugly.
1285 # WARNING: Be sure not to use single quotes in there, as some shells,
1286 # such as our DU 5.0 friend, will then `close' the trap.
1287 trap 'exit_status=$?
1288 # Save into config.log some information that might help in debugging.
1289 {
1290 echo
1291
1292 cat <<\_ASBOX
1293 ## ---------------- ##
1294 ## Cache variables. ##
1295 ## ---------------- ##
1296 _ASBOX
1297 echo
1298 # The following way of writing the cache mishandles newlines in values,
1299 {
1300 (set) 2>&1 |
1301 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1302 *ac_space=\ *)
1303 sed -n \
1304 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1305 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1306 ;;
1307 *)
1308 sed -n \
1309 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1310 ;;
1311 esac;
1312 }
1313 echo
1314
1315 cat <<\_ASBOX
1316 ## ----------------- ##
1317 ## Output variables. ##
1318 ## ----------------- ##
1319 _ASBOX
1320 echo
1321 for ac_var in $ac_subst_vars
1322 do
1323 eval ac_val=$`echo $ac_var`
1324 echo "$ac_var='"'"'$ac_val'"'"'"
1325 done | sort
1326 echo
1327
1328 if test -n "$ac_subst_files"; then
1329 cat <<\_ASBOX
1330 ## ------------- ##
1331 ## Output files. ##
1332 ## ------------- ##
1333 _ASBOX
1334 echo
1335 for ac_var in $ac_subst_files
1336 do
1337 eval ac_val=$`echo $ac_var`
1338 echo "$ac_var='"'"'$ac_val'"'"'"
1339 done | sort
1340 echo
1341 fi
1342
1343 if test -s confdefs.h; then
1344 cat <<\_ASBOX
1345 ## ----------- ##
1346 ## confdefs.h. ##
1347 ## ----------- ##
1348 _ASBOX
1349 echo
1350 sed "/^$/d" confdefs.h | sort
1351 echo
1352 fi
1353 test "$ac_signal" != 0 &&
1354 echo "$as_me: caught signal $ac_signal"
1355 echo "$as_me: exit $exit_status"
1356 } >&5
1357 rm -f core *.core &&
1358 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1359 exit $exit_status
1360 ' 0
1361 for ac_signal in 1 2 13 15; do
1362 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1363 done
1364 ac_signal=0
1365
1366 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1367 rm -rf conftest* confdefs.h
1368 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1369 echo >confdefs.h
1370
1371 # Predefined preprocessor variables.
1372
1373 cat >>confdefs.h <<_ACEOF
1374 #define PACKAGE_NAME "$PACKAGE_NAME"
1375 _ACEOF
1376
1377
1378 cat >>confdefs.h <<_ACEOF
1379 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1380 _ACEOF
1381
1382
1383 cat >>confdefs.h <<_ACEOF
1384 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1385 _ACEOF
1386
1387
1388 cat >>confdefs.h <<_ACEOF
1389 #define PACKAGE_STRING "$PACKAGE_STRING"
1390 _ACEOF
1391
1392
1393 cat >>confdefs.h <<_ACEOF
1394 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1395 _ACEOF
1396
1397
1398 # Let the site file select an alternate cache file if it wants to.
1399 # Prefer explicitly selected file to automatically selected ones.
1400 if test -z "$CONFIG_SITE"; then
1401 if test "x$prefix" != xNONE; then
1402 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1403 else
1404 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1405 fi
1406 fi
1407 for ac_site_file in $CONFIG_SITE; do
1408 if test -r "$ac_site_file"; then
1409 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1410 echo "$as_me: loading site script $ac_site_file" >&6;}
1411 sed 's/^/| /' "$ac_site_file" >&5
1412 . "$ac_site_file"
1413 fi
1414 done
1415
1416 if test -r "$cache_file"; then
1417 # Some versions of bash will fail to source /dev/null (special
1418 # files actually), so we avoid doing that.
1419 if test -f "$cache_file"; then
1420 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1421 echo "$as_me: loading cache $cache_file" >&6;}
1422 case $cache_file in
1423 [\\/]* | ?:[\\/]* ) . $cache_file;;
1424 *) . ./$cache_file;;
1425 esac
1426 fi
1427 else
1428 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1429 echo "$as_me: creating cache $cache_file" >&6;}
1430 >$cache_file
1431 fi
1432
1433 # Check that the precious variables saved in the cache have kept the same
1434 # value.
1435 ac_cache_corrupted=false
1436 for ac_var in `(set) 2>&1 |
1437 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1438 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1439 eval ac_new_set=\$ac_env_${ac_var}_set
1440 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1441 eval ac_new_val="\$ac_env_${ac_var}_value"
1442 case $ac_old_set,$ac_new_set in
1443 set,)
1444 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1445 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1446 ac_cache_corrupted=: ;;
1447 ,set)
1448 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1449 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1450 ac_cache_corrupted=: ;;
1451 ,);;
1452 *)
1453 if test "x$ac_old_val" != "x$ac_new_val"; then
1454 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1455 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1456 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1457 echo "$as_me: former value: $ac_old_val" >&2;}
1458 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1459 echo "$as_me: current value: $ac_new_val" >&2;}
1460 ac_cache_corrupted=:
1461 fi;;
1462 esac
1463 # Pass precious variables to config.status.
1464 if test "$ac_new_set" = set; then
1465 case $ac_new_val in
1466 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1467 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1468 *) ac_arg=$ac_var=$ac_new_val ;;
1469 esac
1470 case " $ac_configure_args " in
1471 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1472 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1473 esac
1474 fi
1475 done
1476 if $ac_cache_corrupted; then
1477 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1478 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1479 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1480 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1481 { (exit 1); exit 1; }; }
1482 fi
1483
1484 ac_ext=c
1485 ac_cpp='$CPP $CPPFLAGS'
1486 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1487 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1488 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1489
1490
1491
1492
1493
1494
1495
1496
1497
1498
1499
1500
1501
1502
1503
1504
1505
1506
1507
1508
1509
1510
1511 ac_aux_dir=
1512 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1513 if test -f $ac_dir/install-sh; then
1514 ac_aux_dir=$ac_dir
1515 ac_install_sh="$ac_aux_dir/install-sh -c"
1516 break
1517 elif test -f $ac_dir/install.sh; then
1518 ac_aux_dir=$ac_dir
1519 ac_install_sh="$ac_aux_dir/install.sh -c"
1520 break
1521 elif test -f $ac_dir/shtool; then
1522 ac_aux_dir=$ac_dir
1523 ac_install_sh="$ac_aux_dir/shtool install -c"
1524 break
1525 fi
1526 done
1527 if test -z "$ac_aux_dir"; then
1528 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1529 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1530 { (exit 1); exit 1; }; }
1531 fi
1532 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1533 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1534 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1535
1536 # Make sure we can run config.sub.
1537 $ac_config_sub sun4 >/dev/null 2>&1 ||
1538 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1539 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1540 { (exit 1); exit 1; }; }
1541
1542 echo "$as_me:$LINENO: checking build system type" >&5
1543 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1544 if test "${ac_cv_build+set}" = set; then
1545 echo $ECHO_N "(cached) $ECHO_C" >&6
1546 else
1547 ac_cv_build_alias=$build_alias
1548 test -z "$ac_cv_build_alias" &&
1549 ac_cv_build_alias=`$ac_config_guess`
1550 test -z "$ac_cv_build_alias" &&
1551 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1552 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1553 { (exit 1); exit 1; }; }
1554 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1555 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1556 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1557 { (exit 1); exit 1; }; }
1558
1559 fi
1560 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1561 echo "${ECHO_T}$ac_cv_build" >&6
1562 build=$ac_cv_build
1563 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1564 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1565 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1566
1567
1568 echo "$as_me:$LINENO: checking host system type" >&5
1569 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1570 if test "${ac_cv_host+set}" = set; then
1571 echo $ECHO_N "(cached) $ECHO_C" >&6
1572 else
1573 ac_cv_host_alias=$host_alias
1574 test -z "$ac_cv_host_alias" &&
1575 ac_cv_host_alias=$ac_cv_build_alias
1576 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1577 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1578 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1579 { (exit 1); exit 1; }; }
1580
1581 fi
1582 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1583 echo "${ECHO_T}$ac_cv_host" >&6
1584 host=$ac_cv_host
1585 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1586 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1587 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1588
1589
1590 ac_ext=c
1591 ac_cpp='$CPP $CPPFLAGS'
1592 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1593 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1594 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1595 if test -n "$ac_tool_prefix"; then
1596 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1597 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1598 echo "$as_me:$LINENO: checking for $ac_word" >&5
1599 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1600 if test "${ac_cv_prog_CC+set}" = set; then
1601 echo $ECHO_N "(cached) $ECHO_C" >&6
1602 else
1603 if test -n "$CC"; then
1604 ac_cv_prog_CC="$CC" # Let the user override the test.
1605 else
1606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1607 for as_dir in $PATH
1608 do
1609 IFS=$as_save_IFS
1610 test -z "$as_dir" && as_dir=.
1611 for ac_exec_ext in '' $ac_executable_extensions; do
1612 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1613 ac_cv_prog_CC="${ac_tool_prefix}gcc"
1614 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1615 break 2
1616 fi
1617 done
1618 done
1619
1620 fi
1621 fi
1622 CC=$ac_cv_prog_CC
1623 if test -n "$CC"; then
1624 echo "$as_me:$LINENO: result: $CC" >&5
1625 echo "${ECHO_T}$CC" >&6
1626 else
1627 echo "$as_me:$LINENO: result: no" >&5
1628 echo "${ECHO_T}no" >&6
1629 fi
1630
1631 fi
1632 if test -z "$ac_cv_prog_CC"; then
1633 ac_ct_CC=$CC
1634 # Extract the first word of "gcc", so it can be a program name with args.
1635 set dummy gcc; ac_word=$2
1636 echo "$as_me:$LINENO: checking for $ac_word" >&5
1637 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1638 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1639 echo $ECHO_N "(cached) $ECHO_C" >&6
1640 else
1641 if test -n "$ac_ct_CC"; then
1642 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1643 else
1644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1645 for as_dir in $PATH
1646 do
1647 IFS=$as_save_IFS
1648 test -z "$as_dir" && as_dir=.
1649 for ac_exec_ext in '' $ac_executable_extensions; do
1650 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1651 ac_cv_prog_ac_ct_CC="gcc"
1652 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1653 break 2
1654 fi
1655 done
1656 done
1657
1658 fi
1659 fi
1660 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1661 if test -n "$ac_ct_CC"; then
1662 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1663 echo "${ECHO_T}$ac_ct_CC" >&6
1664 else
1665 echo "$as_me:$LINENO: result: no" >&5
1666 echo "${ECHO_T}no" >&6
1667 fi
1668
1669 CC=$ac_ct_CC
1670 else
1671 CC="$ac_cv_prog_CC"
1672 fi
1673
1674 if test -z "$CC"; then
1675 if test -n "$ac_tool_prefix"; then
1676 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1677 set dummy ${ac_tool_prefix}cc; ac_word=$2
1678 echo "$as_me:$LINENO: checking for $ac_word" >&5
1679 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1680 if test "${ac_cv_prog_CC+set}" = set; then
1681 echo $ECHO_N "(cached) $ECHO_C" >&6
1682 else
1683 if test -n "$CC"; then
1684 ac_cv_prog_CC="$CC" # Let the user override the test.
1685 else
1686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1687 for as_dir in $PATH
1688 do
1689 IFS=$as_save_IFS
1690 test -z "$as_dir" && as_dir=.
1691 for ac_exec_ext in '' $ac_executable_extensions; do
1692 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1693 ac_cv_prog_CC="${ac_tool_prefix}cc"
1694 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1695 break 2
1696 fi
1697 done
1698 done
1699
1700 fi
1701 fi
1702 CC=$ac_cv_prog_CC
1703 if test -n "$CC"; then
1704 echo "$as_me:$LINENO: result: $CC" >&5
1705 echo "${ECHO_T}$CC" >&6
1706 else
1707 echo "$as_me:$LINENO: result: no" >&5
1708 echo "${ECHO_T}no" >&6
1709 fi
1710
1711 fi
1712 if test -z "$ac_cv_prog_CC"; then
1713 ac_ct_CC=$CC
1714 # Extract the first word of "cc", so it can be a program name with args.
1715 set dummy cc; ac_word=$2
1716 echo "$as_me:$LINENO: checking for $ac_word" >&5
1717 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1718 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1719 echo $ECHO_N "(cached) $ECHO_C" >&6
1720 else
1721 if test -n "$ac_ct_CC"; then
1722 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1723 else
1724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1725 for as_dir in $PATH
1726 do
1727 IFS=$as_save_IFS
1728 test -z "$as_dir" && as_dir=.
1729 for ac_exec_ext in '' $ac_executable_extensions; do
1730 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1731 ac_cv_prog_ac_ct_CC="cc"
1732 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1733 break 2
1734 fi
1735 done
1736 done
1737
1738 fi
1739 fi
1740 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1741 if test -n "$ac_ct_CC"; then
1742 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1743 echo "${ECHO_T}$ac_ct_CC" >&6
1744 else
1745 echo "$as_me:$LINENO: result: no" >&5
1746 echo "${ECHO_T}no" >&6
1747 fi
1748
1749 CC=$ac_ct_CC
1750 else
1751 CC="$ac_cv_prog_CC"
1752 fi
1753
1754 fi
1755 if test -z "$CC"; then
1756 # Extract the first word of "cc", so it can be a program name with args.
1757 set dummy cc; ac_word=$2
1758 echo "$as_me:$LINENO: checking for $ac_word" >&5
1759 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1760 if test "${ac_cv_prog_CC+set}" = set; then
1761 echo $ECHO_N "(cached) $ECHO_C" >&6
1762 else
1763 if test -n "$CC"; then
1764 ac_cv_prog_CC="$CC" # Let the user override the test.
1765 else
1766 ac_prog_rejected=no
1767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1768 for as_dir in $PATH
1769 do
1770 IFS=$as_save_IFS
1771 test -z "$as_dir" && as_dir=.
1772 for ac_exec_ext in '' $ac_executable_extensions; do
1773 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1774 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1775 ac_prog_rejected=yes
1776 continue
1777 fi
1778 ac_cv_prog_CC="cc"
1779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1780 break 2
1781 fi
1782 done
1783 done
1784
1785 if test $ac_prog_rejected = yes; then
1786 # We found a bogon in the path, so make sure we never use it.
1787 set dummy $ac_cv_prog_CC
1788 shift
1789 if test $# != 0; then
1790 # We chose a different compiler from the bogus one.
1791 # However, it has the same basename, so the bogon will be chosen
1792 # first if we set CC to just the basename; use the full file name.
1793 shift
1794 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1795 fi
1796 fi
1797 fi
1798 fi
1799 CC=$ac_cv_prog_CC
1800 if test -n "$CC"; then
1801 echo "$as_me:$LINENO: result: $CC" >&5
1802 echo "${ECHO_T}$CC" >&6
1803 else
1804 echo "$as_me:$LINENO: result: no" >&5
1805 echo "${ECHO_T}no" >&6
1806 fi
1807
1808 fi
1809 if test -z "$CC"; then
1810 if test -n "$ac_tool_prefix"; then
1811 for ac_prog in cl
1812 do
1813 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1814 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1815 echo "$as_me:$LINENO: checking for $ac_word" >&5
1816 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1817 if test "${ac_cv_prog_CC+set}" = set; then
1818 echo $ECHO_N "(cached) $ECHO_C" >&6
1819 else
1820 if test -n "$CC"; then
1821 ac_cv_prog_CC="$CC" # Let the user override the test.
1822 else
1823 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1824 for as_dir in $PATH
1825 do
1826 IFS=$as_save_IFS
1827 test -z "$as_dir" && as_dir=.
1828 for ac_exec_ext in '' $ac_executable_extensions; do
1829 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1830 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1831 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1832 break 2
1833 fi
1834 done
1835 done
1836
1837 fi
1838 fi
1839 CC=$ac_cv_prog_CC
1840 if test -n "$CC"; then
1841 echo "$as_me:$LINENO: result: $CC" >&5
1842 echo "${ECHO_T}$CC" >&6
1843 else
1844 echo "$as_me:$LINENO: result: no" >&5
1845 echo "${ECHO_T}no" >&6
1846 fi
1847
1848 test -n "$CC" && break
1849 done
1850 fi
1851 if test -z "$CC"; then
1852 ac_ct_CC=$CC
1853 for ac_prog in cl
1854 do
1855 # Extract the first word of "$ac_prog", so it can be a program name with args.
1856 set dummy $ac_prog; ac_word=$2
1857 echo "$as_me:$LINENO: checking for $ac_word" >&5
1858 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1859 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1860 echo $ECHO_N "(cached) $ECHO_C" >&6
1861 else
1862 if test -n "$ac_ct_CC"; then
1863 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1864 else
1865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866 for as_dir in $PATH
1867 do
1868 IFS=$as_save_IFS
1869 test -z "$as_dir" && as_dir=.
1870 for ac_exec_ext in '' $ac_executable_extensions; do
1871 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1872 ac_cv_prog_ac_ct_CC="$ac_prog"
1873 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1874 break 2
1875 fi
1876 done
1877 done
1878
1879 fi
1880 fi
1881 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1882 if test -n "$ac_ct_CC"; then
1883 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1884 echo "${ECHO_T}$ac_ct_CC" >&6
1885 else
1886 echo "$as_me:$LINENO: result: no" >&5
1887 echo "${ECHO_T}no" >&6
1888 fi
1889
1890 test -n "$ac_ct_CC" && break
1891 done
1892
1893 CC=$ac_ct_CC
1894 fi
1895
1896 fi
1897
1898
1899 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1900 See \`config.log' for more details." >&5
1901 echo "$as_me: error: no acceptable C compiler found in \$PATH
1902 See \`config.log' for more details." >&2;}
1903 { (exit 1); exit 1; }; }
1904
1905 # Provide some information about the compiler.
1906 echo "$as_me:$LINENO:" \
1907 "checking for C compiler version" >&5
1908 ac_compiler=`set X $ac_compile; echo $2`
1909 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1910 (eval $ac_compiler --version </dev/null >&5) 2>&5
1911 ac_status=$?
1912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1913 (exit $ac_status); }
1914 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1915 (eval $ac_compiler -v </dev/null >&5) 2>&5
1916 ac_status=$?
1917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1918 (exit $ac_status); }
1919 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1920 (eval $ac_compiler -V </dev/null >&5) 2>&5
1921 ac_status=$?
1922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1923 (exit $ac_status); }
1924
1925 cat >conftest.$ac_ext <<_ACEOF
1926 /* confdefs.h. */
1927 _ACEOF
1928 cat confdefs.h >>conftest.$ac_ext
1929 cat >>conftest.$ac_ext <<_ACEOF
1930 /* end confdefs.h. */
1931
1932 int
1933 main ()
1934 {
1935
1936 ;
1937 return 0;
1938 }
1939 _ACEOF
1940 ac_clean_files_save=$ac_clean_files
1941 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1942 # Try to create an executable without -o first, disregard a.out.
1943 # It will help us diagnose broken compilers, and finding out an intuition
1944 # of exeext.
1945 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1946 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1947 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1948 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1949 (eval $ac_link_default) 2>&5
1950 ac_status=$?
1951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
1952 (exit $ac_status); }; then
1953 # Find the output, starting from the most likely. This scheme is
1954 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1955 # resort.
1956
1957 # Be careful to initialize this variable, since it used to be cached.
1958 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1959 ac_cv_exeext=
1960 # b.out is created by i960 compilers.
1961 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1962 do
1963 test -f "$ac_file" || continue
1964 case $ac_file in
1965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1966 ;;
1967 conftest.$ac_ext )
1968 # This is the source file.
1969 ;;
1970 [ab].out )
1971 # We found the default executable, but exeext='' is most
1972 # certainly right.
1973 break;;
1974 *.* )
1975 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1976 # FIXME: I believe we export ac_cv_exeext for Libtool,
1977 # but it would be cool to find out if it's true. Does anybody
1978 # maintain Libtool? --akim.
1979 export ac_cv_exeext
1980 break;;
1981 * )
1982 break;;
1983 esac
1984 done
1985 else
1986 echo "$as_me: failed program was:" >&5
1987 sed 's/^/| /' conftest.$ac_ext >&5
1988
1989 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1990 See \`config.log' for more details." >&5
1991 echo "$as_me: error: C compiler cannot create executables
1992 See \`config.log' for more details." >&2;}
1993 { (exit 77); exit 77; }; }
1994 fi
1995
1996 ac_exeext=$ac_cv_exeext
1997 echo "$as_me:$LINENO: result: $ac_file" >&5
1998 echo "${ECHO_T}$ac_file" >&6
1999
2000 # Check the compiler produces executables we can run. If not, either
2001 # the compiler is broken, or we cross compile.
2002 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2003 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
2004 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2005 # If not cross compiling, check that we can run a simple program.
2006 if test "$cross_compiling" != yes; then
2007 if { ac_try='./$ac_file'
2008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2009 (eval $ac_try) 2>&5
2010 ac_status=$?
2011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2012 (exit $ac_status); }; }; then
2013 cross_compiling=no
2014 else
2015 if test "$cross_compiling" = maybe; then
2016 cross_compiling=yes
2017 else
2018 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2019 If you meant to cross compile, use \`--host'.
2020 See \`config.log' for more details." >&5
2021 echo "$as_me: error: cannot run C compiled programs.
2022 If you meant to cross compile, use \`--host'.
2023 See \`config.log' for more details." >&2;}
2024 { (exit 1); exit 1; }; }
2025 fi
2026 fi
2027 fi
2028 echo "$as_me:$LINENO: result: yes" >&5
2029 echo "${ECHO_T}yes" >&6
2030
2031 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2032 ac_clean_files=$ac_clean_files_save
2033 # Check the compiler produces executables we can run. If not, either
2034 # the compiler is broken, or we cross compile.
2035 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2036 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
2037 echo "$as_me:$LINENO: result: $cross_compiling" >&5
2038 echo "${ECHO_T}$cross_compiling" >&6
2039
2040 echo "$as_me:$LINENO: checking for suffix of executables" >&5
2041 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
2042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2043 (eval $ac_link) 2>&5
2044 ac_status=$?
2045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2046 (exit $ac_status); }; then
2047 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2048 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2049 # work properly (i.e., refer to `conftest.exe'), while it won't with
2050 # `rm'.
2051 for ac_file in conftest.exe conftest conftest.*; do
2052 test -f "$ac_file" || continue
2053 case $ac_file in
2054 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
2055 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2056 export ac_cv_exeext
2057 break;;
2058 * ) break;;
2059 esac
2060 done
2061 else
2062 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2063 See \`config.log' for more details." >&5
2064 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2065 See \`config.log' for more details." >&2;}
2066 { (exit 1); exit 1; }; }
2067 fi
2068
2069 rm -f conftest$ac_cv_exeext
2070 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2071 echo "${ECHO_T}$ac_cv_exeext" >&6
2072
2073 rm -f conftest.$ac_ext
2074 EXEEXT=$ac_cv_exeext
2075 ac_exeext=$EXEEXT
2076 echo "$as_me:$LINENO: checking for suffix of object files" >&5
2077 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
2078 if test "${ac_cv_objext+set}" = set; then
2079 echo $ECHO_N "(cached) $ECHO_C" >&6
2080 else
2081 cat >conftest.$ac_ext <<_ACEOF
2082 /* confdefs.h. */
2083 _ACEOF
2084 cat confdefs.h >>conftest.$ac_ext
2085 cat >>conftest.$ac_ext <<_ACEOF
2086 /* end confdefs.h. */
2087
2088 int
2089 main ()
2090 {
2091
2092 ;
2093 return 0;
2094 }
2095 _ACEOF
2096 rm -f conftest.o conftest.obj
2097 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2098 (eval $ac_compile) 2>&5
2099 ac_status=$?
2100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2101 (exit $ac_status); }; then
2102 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
2103 case $ac_file in
2104 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
2105 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2106 break;;
2107 esac
2108 done
2109 else
2110 echo "$as_me: failed program was:" >&5
2111 sed 's/^/| /' conftest.$ac_ext >&5
2112
2113 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2114 See \`config.log' for more details." >&5
2115 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2116 See \`config.log' for more details." >&2;}
2117 { (exit 1); exit 1; }; }
2118 fi
2119
2120 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2121 fi
2122 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2123 echo "${ECHO_T}$ac_cv_objext" >&6
2124 OBJEXT=$ac_cv_objext
2125 ac_objext=$OBJEXT
2126 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2127 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
2128 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2129 echo $ECHO_N "(cached) $ECHO_C" >&6
2130 else
2131 cat >conftest.$ac_ext <<_ACEOF
2132 /* confdefs.h. */
2133 _ACEOF
2134 cat confdefs.h >>conftest.$ac_ext
2135 cat >>conftest.$ac_ext <<_ACEOF
2136 /* end confdefs.h. */
2137
2138 int
2139 main ()
2140 {
2141 #ifndef __GNUC__
2142 choke me
2143 #endif
2144
2145 ;
2146 return 0;
2147 }
2148 _ACEOF
2149 rm -f conftest.$ac_objext
2150 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2151 (eval $ac_compile) 2>conftest.er1
2152 ac_status=$?
2153 grep -v '^ *+' conftest.er1 >conftest.err
2154 rm -f conftest.er1
2155 cat conftest.err >&5
2156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2157 (exit $ac_status); } &&
2158 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2160 (eval $ac_try) 2>&5
2161 ac_status=$?
2162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2163 (exit $ac_status); }; } &&
2164 { ac_try='test -s conftest.$ac_objext'
2165 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2166 (eval $ac_try) 2>&5
2167 ac_status=$?
2168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2169 (exit $ac_status); }; }; then
2170 ac_compiler_gnu=yes
2171 else
2172 echo "$as_me: failed program was:" >&5
2173 sed 's/^/| /' conftest.$ac_ext >&5
2174
2175 ac_compiler_gnu=no
2176 fi
2177 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2178 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2179
2180 fi
2181 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
2182 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
2183 GCC=`test $ac_compiler_gnu = yes && echo yes`
2184 ac_test_CFLAGS=${CFLAGS+set}
2185 ac_save_CFLAGS=$CFLAGS
2186 CFLAGS="-g"
2187 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
2188 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
2189 if test "${ac_cv_prog_cc_g+set}" = set; then
2190 echo $ECHO_N "(cached) $ECHO_C" >&6
2191 else
2192 cat >conftest.$ac_ext <<_ACEOF
2193 /* confdefs.h. */
2194 _ACEOF
2195 cat confdefs.h >>conftest.$ac_ext
2196 cat >>conftest.$ac_ext <<_ACEOF
2197 /* end confdefs.h. */
2198
2199 int
2200 main ()
2201 {
2202
2203 ;
2204 return 0;
2205 }
2206 _ACEOF
2207 rm -f conftest.$ac_objext
2208 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2209 (eval $ac_compile) 2>conftest.er1
2210 ac_status=$?
2211 grep -v '^ *+' conftest.er1 >conftest.err
2212 rm -f conftest.er1
2213 cat conftest.err >&5
2214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2215 (exit $ac_status); } &&
2216 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2218 (eval $ac_try) 2>&5
2219 ac_status=$?
2220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2221 (exit $ac_status); }; } &&
2222 { ac_try='test -s conftest.$ac_objext'
2223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2224 (eval $ac_try) 2>&5
2225 ac_status=$?
2226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2227 (exit $ac_status); }; }; then
2228 ac_cv_prog_cc_g=yes
2229 else
2230 echo "$as_me: failed program was:" >&5
2231 sed 's/^/| /' conftest.$ac_ext >&5
2232
2233 ac_cv_prog_cc_g=no
2234 fi
2235 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2236 fi
2237 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
2238 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
2239 if test "$ac_test_CFLAGS" = set; then
2240 CFLAGS=$ac_save_CFLAGS
2241 elif test $ac_cv_prog_cc_g = yes; then
2242 if test "$GCC" = yes; then
2243 CFLAGS="-g -O2"
2244 else
2245 CFLAGS="-g"
2246 fi
2247 else
2248 if test "$GCC" = yes; then
2249 CFLAGS="-O2"
2250 else
2251 CFLAGS=
2252 fi
2253 fi
2254 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
2255 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
2256 if test "${ac_cv_prog_cc_stdc+set}" = set; then
2257 echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259 ac_cv_prog_cc_stdc=no
2260 ac_save_CC=$CC
2261 cat >conftest.$ac_ext <<_ACEOF
2262 /* confdefs.h. */
2263 _ACEOF
2264 cat confdefs.h >>conftest.$ac_ext
2265 cat >>conftest.$ac_ext <<_ACEOF
2266 /* end confdefs.h. */
2267 #include <stdarg.h>
2268 #include <stdio.h>
2269 #include <sys/types.h>
2270 #include <sys/stat.h>
2271 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2272 struct buf { int x; };
2273 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2274 static char *e (p, i)
2275 char **p;
2276 int i;
2277 {
2278 return p[i];
2279 }
2280 static char *f (char * (*g) (char **, int), char **p, ...)
2281 {
2282 char *s;
2283 va_list v;
2284 va_start (v,p);
2285 s = g (p, va_arg (v,int));
2286 va_end (v);
2287 return s;
2288 }
2289
2290 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2291 function prototypes and stuff, but not '\xHH' hex character constants.
2292 These don't provoke an error unfortunately, instead are silently treated
2293 as 'x'. The following induces an error, until -std1 is added to get
2294 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2295 array size at least. It's necessary to write '\x00'==0 to get something
2296 that's true only with -std1. */
2297 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2298
2299 int test (int i, double x);
2300 struct s1 {int (*f) (int a);};
2301 struct s2 {int (*f) (double a);};
2302 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2303 int argc;
2304 char **argv;
2305 int
2306 main ()
2307 {
2308 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2309 ;
2310 return 0;
2311 }
2312 _ACEOF
2313 # Don't try gcc -ansi; that turns off useful extensions and
2314 # breaks some systems' header files.
2315 # AIX -qlanglvl=ansi
2316 # Ultrix and OSF/1 -std1
2317 # HP-UX 10.20 and later -Ae
2318 # HP-UX older versions -Aa -D_HPUX_SOURCE
2319 # SVR4 -Xc -D__EXTENSIONS__
2320 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2321 do
2322 CC="$ac_save_CC $ac_arg"
2323 rm -f conftest.$ac_objext
2324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2325 (eval $ac_compile) 2>conftest.er1
2326 ac_status=$?
2327 grep -v '^ *+' conftest.er1 >conftest.err
2328 rm -f conftest.er1
2329 cat conftest.err >&5
2330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2331 (exit $ac_status); } &&
2332 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2334 (eval $ac_try) 2>&5
2335 ac_status=$?
2336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2337 (exit $ac_status); }; } &&
2338 { ac_try='test -s conftest.$ac_objext'
2339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2340 (eval $ac_try) 2>&5
2341 ac_status=$?
2342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2343 (exit $ac_status); }; }; then
2344 ac_cv_prog_cc_stdc=$ac_arg
2345 break
2346 else
2347 echo "$as_me: failed program was:" >&5
2348 sed 's/^/| /' conftest.$ac_ext >&5
2349
2350 fi
2351 rm -f conftest.err conftest.$ac_objext
2352 done
2353 rm -f conftest.$ac_ext conftest.$ac_objext
2354 CC=$ac_save_CC
2355
2356 fi
2357
2358 case "x$ac_cv_prog_cc_stdc" in
2359 x|xno)
2360 echo "$as_me:$LINENO: result: none needed" >&5
2361 echo "${ECHO_T}none needed" >&6 ;;
2362 *)
2363 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2364 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2365 CC="$CC $ac_cv_prog_cc_stdc" ;;
2366 esac
2367
2368 # Some people use a C++ compiler to compile C. Since we use `exit',
2369 # in C++ we need to declare it. In case someone uses the same compiler
2370 # for both compiling C and C++ we need to have the C++ compiler decide
2371 # the declaration of exit, since it's the most demanding environment.
2372 cat >conftest.$ac_ext <<_ACEOF
2373 #ifndef __cplusplus
2374 choke me
2375 #endif
2376 _ACEOF
2377 rm -f conftest.$ac_objext
2378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2379 (eval $ac_compile) 2>conftest.er1
2380 ac_status=$?
2381 grep -v '^ *+' conftest.er1 >conftest.err
2382 rm -f conftest.er1
2383 cat conftest.err >&5
2384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2385 (exit $ac_status); } &&
2386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2388 (eval $ac_try) 2>&5
2389 ac_status=$?
2390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2391 (exit $ac_status); }; } &&
2392 { ac_try='test -s conftest.$ac_objext'
2393 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2394 (eval $ac_try) 2>&5
2395 ac_status=$?
2396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2397 (exit $ac_status); }; }; then
2398 for ac_declaration in \
2399 '' \
2400 'extern "C" void std::exit (int) throw (); using std::exit;' \
2401 'extern "C" void std::exit (int); using std::exit;' \
2402 'extern "C" void exit (int) throw ();' \
2403 'extern "C" void exit (int);' \
2404 'void exit (int);'
2405 do
2406 cat >conftest.$ac_ext <<_ACEOF
2407 /* confdefs.h. */
2408 _ACEOF
2409 cat confdefs.h >>conftest.$ac_ext
2410 cat >>conftest.$ac_ext <<_ACEOF
2411 /* end confdefs.h. */
2412 $ac_declaration
2413 #include <stdlib.h>
2414 int
2415 main ()
2416 {
2417 exit (42);
2418 ;
2419 return 0;
2420 }
2421 _ACEOF
2422 rm -f conftest.$ac_objext
2423 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2424 (eval $ac_compile) 2>conftest.er1
2425 ac_status=$?
2426 grep -v '^ *+' conftest.er1 >conftest.err
2427 rm -f conftest.er1
2428 cat conftest.err >&5
2429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2430 (exit $ac_status); } &&
2431 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2433 (eval $ac_try) 2>&5
2434 ac_status=$?
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }; } &&
2437 { ac_try='test -s conftest.$ac_objext'
2438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2439 (eval $ac_try) 2>&5
2440 ac_status=$?
2441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2442 (exit $ac_status); }; }; then
2443 :
2444 else
2445 echo "$as_me: failed program was:" >&5
2446 sed 's/^/| /' conftest.$ac_ext >&5
2447
2448 continue
2449 fi
2450 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2451 cat >conftest.$ac_ext <<_ACEOF
2452 /* confdefs.h. */
2453 _ACEOF
2454 cat confdefs.h >>conftest.$ac_ext
2455 cat >>conftest.$ac_ext <<_ACEOF
2456 /* end confdefs.h. */
2457 $ac_declaration
2458 int
2459 main ()
2460 {
2461 exit (42);
2462 ;
2463 return 0;
2464 }
2465 _ACEOF
2466 rm -f conftest.$ac_objext
2467 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2468 (eval $ac_compile) 2>conftest.er1
2469 ac_status=$?
2470 grep -v '^ *+' conftest.er1 >conftest.err
2471 rm -f conftest.er1
2472 cat conftest.err >&5
2473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2474 (exit $ac_status); } &&
2475 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2476 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2477 (eval $ac_try) 2>&5
2478 ac_status=$?
2479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2480 (exit $ac_status); }; } &&
2481 { ac_try='test -s conftest.$ac_objext'
2482 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2483 (eval $ac_try) 2>&5
2484 ac_status=$?
2485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2486 (exit $ac_status); }; }; then
2487 break
2488 else
2489 echo "$as_me: failed program was:" >&5
2490 sed 's/^/| /' conftest.$ac_ext >&5
2491
2492 fi
2493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2494 done
2495 rm -f conftest*
2496 if test -n "$ac_declaration"; then
2497 echo '#ifdef __cplusplus' >>confdefs.h
2498 echo $ac_declaration >>confdefs.h
2499 echo '#endif' >>confdefs.h
2500 fi
2501
2502 else
2503 echo "$as_me: failed program was:" >&5
2504 sed 's/^/| /' conftest.$ac_ext >&5
2505
2506 fi
2507 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2508 ac_ext=c
2509 ac_cpp='$CPP $CPPFLAGS'
2510 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2511 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2512 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2513
2514
2515 ac_ext=c
2516 ac_cpp='$CPP $CPPFLAGS'
2517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2520 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2521 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2522 # On Suns, sometimes $CPP names a directory.
2523 if test -n "$CPP" && test -d "$CPP"; then
2524 CPP=
2525 fi
2526 if test -z "$CPP"; then
2527 if test "${ac_cv_prog_CPP+set}" = set; then
2528 echo $ECHO_N "(cached) $ECHO_C" >&6
2529 else
2530 # Double quotes because CPP needs to be expanded
2531 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2532 do
2533 ac_preproc_ok=false
2534 for ac_c_preproc_warn_flag in '' yes
2535 do
2536 # Use a header file that comes with gcc, so configuring glibc
2537 # with a fresh cross-compiler works.
2538 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2539 # <limits.h> exists even on freestanding compilers.
2540 # On the NeXT, cc -E runs the code through the compiler's parser,
2541 # not just through cpp. "Syntax error" is here to catch this case.
2542 cat >conftest.$ac_ext <<_ACEOF
2543 /* confdefs.h. */
2544 _ACEOF
2545 cat confdefs.h >>conftest.$ac_ext
2546 cat >>conftest.$ac_ext <<_ACEOF
2547 /* end confdefs.h. */
2548 #ifdef __STDC__
2549 # include <limits.h>
2550 #else
2551 # include <assert.h>
2552 #endif
2553 Syntax error
2554 _ACEOF
2555 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2556 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2557 ac_status=$?
2558 grep -v '^ *+' conftest.er1 >conftest.err
2559 rm -f conftest.er1
2560 cat conftest.err >&5
2561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2562 (exit $ac_status); } >/dev/null; then
2563 if test -s conftest.err; then
2564 ac_cpp_err=$ac_c_preproc_warn_flag
2565 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2566 else
2567 ac_cpp_err=
2568 fi
2569 else
2570 ac_cpp_err=yes
2571 fi
2572 if test -z "$ac_cpp_err"; then
2573 :
2574 else
2575 echo "$as_me: failed program was:" >&5
2576 sed 's/^/| /' conftest.$ac_ext >&5
2577
2578 # Broken: fails on valid input.
2579 continue
2580 fi
2581 rm -f conftest.err conftest.$ac_ext
2582
2583 # OK, works on sane cases. Now check whether non-existent headers
2584 # can be detected and how.
2585 cat >conftest.$ac_ext <<_ACEOF
2586 /* confdefs.h. */
2587 _ACEOF
2588 cat confdefs.h >>conftest.$ac_ext
2589 cat >>conftest.$ac_ext <<_ACEOF
2590 /* end confdefs.h. */
2591 #include <ac_nonexistent.h>
2592 _ACEOF
2593 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2594 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2595 ac_status=$?
2596 grep -v '^ *+' conftest.er1 >conftest.err
2597 rm -f conftest.er1
2598 cat conftest.err >&5
2599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2600 (exit $ac_status); } >/dev/null; then
2601 if test -s conftest.err; then
2602 ac_cpp_err=$ac_c_preproc_warn_flag
2603 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2604 else
2605 ac_cpp_err=
2606 fi
2607 else
2608 ac_cpp_err=yes
2609 fi
2610 if test -z "$ac_cpp_err"; then
2611 # Broken: success on invalid input.
2612 continue
2613 else
2614 echo "$as_me: failed program was:" >&5
2615 sed 's/^/| /' conftest.$ac_ext >&5
2616
2617 # Passes both tests.
2618 ac_preproc_ok=:
2619 break
2620 fi
2621 rm -f conftest.err conftest.$ac_ext
2622
2623 done
2624 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2625 rm -f conftest.err conftest.$ac_ext
2626 if $ac_preproc_ok; then
2627 break
2628 fi
2629
2630 done
2631 ac_cv_prog_CPP=$CPP
2632
2633 fi
2634 CPP=$ac_cv_prog_CPP
2635 else
2636 ac_cv_prog_CPP=$CPP
2637 fi
2638 echo "$as_me:$LINENO: result: $CPP" >&5
2639 echo "${ECHO_T}$CPP" >&6
2640 ac_preproc_ok=false
2641 for ac_c_preproc_warn_flag in '' yes
2642 do
2643 # Use a header file that comes with gcc, so configuring glibc
2644 # with a fresh cross-compiler works.
2645 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2646 # <limits.h> exists even on freestanding compilers.
2647 # On the NeXT, cc -E runs the code through the compiler's parser,
2648 # not just through cpp. "Syntax error" is here to catch this case.
2649 cat >conftest.$ac_ext <<_ACEOF
2650 /* confdefs.h. */
2651 _ACEOF
2652 cat confdefs.h >>conftest.$ac_ext
2653 cat >>conftest.$ac_ext <<_ACEOF
2654 /* end confdefs.h. */
2655 #ifdef __STDC__
2656 # include <limits.h>
2657 #else
2658 # include <assert.h>
2659 #endif
2660 Syntax error
2661 _ACEOF
2662 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2663 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2664 ac_status=$?
2665 grep -v '^ *+' conftest.er1 >conftest.err
2666 rm -f conftest.er1
2667 cat conftest.err >&5
2668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2669 (exit $ac_status); } >/dev/null; then
2670 if test -s conftest.err; then
2671 ac_cpp_err=$ac_c_preproc_warn_flag
2672 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2673 else
2674 ac_cpp_err=
2675 fi
2676 else
2677 ac_cpp_err=yes
2678 fi
2679 if test -z "$ac_cpp_err"; then
2680 :
2681 else
2682 echo "$as_me: failed program was:" >&5
2683 sed 's/^/| /' conftest.$ac_ext >&5
2684
2685 # Broken: fails on valid input.
2686 continue
2687 fi
2688 rm -f conftest.err conftest.$ac_ext
2689
2690 # OK, works on sane cases. Now check whether non-existent headers
2691 # can be detected and how.
2692 cat >conftest.$ac_ext <<_ACEOF
2693 /* confdefs.h. */
2694 _ACEOF
2695 cat confdefs.h >>conftest.$ac_ext
2696 cat >>conftest.$ac_ext <<_ACEOF
2697 /* end confdefs.h. */
2698 #include <ac_nonexistent.h>
2699 _ACEOF
2700 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2701 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2702 ac_status=$?
2703 grep -v '^ *+' conftest.er1 >conftest.err
2704 rm -f conftest.er1
2705 cat conftest.err >&5
2706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2707 (exit $ac_status); } >/dev/null; then
2708 if test -s conftest.err; then
2709 ac_cpp_err=$ac_c_preproc_warn_flag
2710 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2711 else
2712 ac_cpp_err=
2713 fi
2714 else
2715 ac_cpp_err=yes
2716 fi
2717 if test -z "$ac_cpp_err"; then
2718 # Broken: success on invalid input.
2719 continue
2720 else
2721 echo "$as_me: failed program was:" >&5
2722 sed 's/^/| /' conftest.$ac_ext >&5
2723
2724 # Passes both tests.
2725 ac_preproc_ok=:
2726 break
2727 fi
2728 rm -f conftest.err conftest.$ac_ext
2729
2730 done
2731 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2732 rm -f conftest.err conftest.$ac_ext
2733 if $ac_preproc_ok; then
2734 :
2735 else
2736 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2737 See \`config.log' for more details." >&5
2738 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2739 See \`config.log' for more details." >&2;}
2740 { (exit 1); exit 1; }; }
2741 fi
2742
2743 ac_ext=c
2744 ac_cpp='$CPP $CPPFLAGS'
2745 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2746 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2747 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2748
2749
2750 echo "$as_me:$LINENO: checking for egrep" >&5
2751 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2752 if test "${ac_cv_prog_egrep+set}" = set; then
2753 echo $ECHO_N "(cached) $ECHO_C" >&6
2754 else
2755 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2756 then ac_cv_prog_egrep='grep -E'
2757 else ac_cv_prog_egrep='egrep'
2758 fi
2759 fi
2760 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2761 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2762 EGREP=$ac_cv_prog_egrep
2763
2764
2765
2766 echo "$as_me:$LINENO: checking for AIX" >&5
2767 echo $ECHO_N "checking for AIX... $ECHO_C" >&6
2768 cat >conftest.$ac_ext <<_ACEOF
2769 /* confdefs.h. */
2770 _ACEOF
2771 cat confdefs.h >>conftest.$ac_ext
2772 cat >>conftest.$ac_ext <<_ACEOF
2773 /* end confdefs.h. */
2774 #ifdef _AIX
2775 yes
2776 #endif
2777
2778 _ACEOF
2779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2780 $EGREP "yes" >/dev/null 2>&1; then
2781 echo "$as_me:$LINENO: result: yes" >&5
2782 echo "${ECHO_T}yes" >&6
2783 cat >>confdefs.h <<\_ACEOF
2784 #define _ALL_SOURCE 1
2785 _ACEOF
2786
2787 else
2788 echo "$as_me:$LINENO: result: no" >&5
2789 echo "${ECHO_T}no" >&6
2790 fi
2791 rm -f conftest*
2792
2793
2794 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2795 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2796 if test "${ac_cv_header_stdc+set}" = set; then
2797 echo $ECHO_N "(cached) $ECHO_C" >&6
2798 else
2799 cat >conftest.$ac_ext <<_ACEOF
2800 /* confdefs.h. */
2801 _ACEOF
2802 cat confdefs.h >>conftest.$ac_ext
2803 cat >>conftest.$ac_ext <<_ACEOF
2804 /* end confdefs.h. */
2805 #include <stdlib.h>
2806 #include <stdarg.h>
2807 #include <string.h>
2808 #include <float.h>
2809
2810 int
2811 main ()
2812 {
2813
2814 ;
2815 return 0;
2816 }
2817 _ACEOF
2818 rm -f conftest.$ac_objext
2819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2820 (eval $ac_compile) 2>conftest.er1
2821 ac_status=$?
2822 grep -v '^ *+' conftest.er1 >conftest.err
2823 rm -f conftest.er1
2824 cat conftest.err >&5
2825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2826 (exit $ac_status); } &&
2827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
2828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2829 (eval $ac_try) 2>&5
2830 ac_status=$?
2831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2832 (exit $ac_status); }; } &&
2833 { ac_try='test -s conftest.$ac_objext'
2834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2835 (eval $ac_try) 2>&5
2836 ac_status=$?
2837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2838 (exit $ac_status); }; }; then
2839 ac_cv_header_stdc=yes
2840 else
2841 echo "$as_me: failed program was:" >&5
2842 sed 's/^/| /' conftest.$ac_ext >&5
2843
2844 ac_cv_header_stdc=no
2845 fi
2846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2847
2848 if test $ac_cv_header_stdc = yes; then
2849 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2850 cat >conftest.$ac_ext <<_ACEOF
2851 /* confdefs.h. */
2852 _ACEOF
2853 cat confdefs.h >>conftest.$ac_ext
2854 cat >>conftest.$ac_ext <<_ACEOF
2855 /* end confdefs.h. */
2856 #include <string.h>
2857
2858 _ACEOF
2859 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2860 $EGREP "memchr" >/dev/null 2>&1; then
2861 :
2862 else
2863 ac_cv_header_stdc=no
2864 fi
2865 rm -f conftest*
2866
2867 fi
2868
2869 if test $ac_cv_header_stdc = yes; then
2870 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2871 cat >conftest.$ac_ext <<_ACEOF
2872 /* confdefs.h. */
2873 _ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h. */
2877 #include <stdlib.h>
2878
2879 _ACEOF
2880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2881 $EGREP "free" >/dev/null 2>&1; then
2882 :
2883 else
2884 ac_cv_header_stdc=no
2885 fi
2886 rm -f conftest*
2887
2888 fi
2889
2890 if test $ac_cv_header_stdc = yes; then
2891 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2892 if test "$cross_compiling" = yes; then
2893 :
2894 else
2895 cat >conftest.$ac_ext <<_ACEOF
2896 /* confdefs.h. */
2897 _ACEOF
2898 cat confdefs.h >>conftest.$ac_ext
2899 cat >>conftest.$ac_ext <<_ACEOF
2900 /* end confdefs.h. */
2901 #include <ctype.h>
2902 #if ((' ' & 0x0FF) == 0x020)
2903 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2904 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2905 #else
2906 # define ISLOWER(c) \
2907 (('a' <= (c) && (c) <= 'i') \
2908 || ('j' <= (c) && (c) <= 'r') \
2909 || ('s' <= (c) && (c) <= 'z'))
2910 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2911 #endif
2912
2913 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2914 int
2915 main ()
2916 {
2917 int i;
2918 for (i = 0; i < 256; i++)
2919 if (XOR (islower (i), ISLOWER (i))
2920 || toupper (i) != TOUPPER (i))
2921 exit(2);
2922 exit (0);
2923 }
2924 _ACEOF
2925 rm -f conftest$ac_exeext
2926 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2927 (eval $ac_link) 2>&5
2928 ac_status=$?
2929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2930 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2932 (eval $ac_try) 2>&5
2933 ac_status=$?
2934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2935 (exit $ac_status); }; }; then
2936 :
2937 else
2938 echo "$as_me: program exited with status $ac_status" >&5
2939 echo "$as_me: failed program was:" >&5
2940 sed 's/^/| /' conftest.$ac_ext >&5
2941
2942 ( exit $ac_status )
2943 ac_cv_header_stdc=no
2944 fi
2945 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2946 fi
2947 fi
2948 fi
2949 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2950 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2951 if test $ac_cv_header_stdc = yes; then
2952
2953 cat >>confdefs.h <<\_ACEOF
2954 #define STDC_HEADERS 1
2955 _ACEOF
2956
2957 fi
2958
2959 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2970 inttypes.h stdint.h unistd.h
2971 do
2972 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2973 echo "$as_me:$LINENO: checking for $ac_header" >&5
2974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2975 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2976 echo $ECHO_N "(cached) $ECHO_C" >&6
2977 else
2978 cat >conftest.$ac_ext <<_ACEOF
2979 /* confdefs.h. */
2980 _ACEOF
2981 cat confdefs.h >>conftest.$ac_ext
2982 cat >>conftest.$ac_ext <<_ACEOF
2983 /* end confdefs.h. */
2984 $ac_includes_default
2985
2986 #include <$ac_header>
2987 _ACEOF
2988 rm -f conftest.$ac_objext
2989 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2990 (eval $ac_compile) 2>conftest.er1
2991 ac_status=$?
2992 grep -v '^ *+' conftest.er1 >conftest.err
2993 rm -f conftest.er1
2994 cat conftest.err >&5
2995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2996 (exit $ac_status); } &&
2997 { ac_try='test -z "$ac_c_werror_flag" || 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 eval "$as_ac_Header=yes"
3010 else
3011 echo "$as_me: failed program was:" >&5
3012 sed 's/^/| /' conftest.$ac_ext >&5
3013
3014 eval "$as_ac_Header=no"
3015 fi
3016 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3017 fi
3018 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3019 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3020 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3021 cat >>confdefs.h <<_ACEOF
3022 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3023 _ACEOF
3024
3025 fi
3026
3027 done
3028
3029
3030 if test "${ac_cv_header_minix_config_h+set}" = set; then
3031 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3032 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3033 if test "${ac_cv_header_minix_config_h+set}" = set; then
3034 echo $ECHO_N "(cached) $ECHO_C" >&6
3035 fi
3036 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3037 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3038 else
3039 # Is the header compilable?
3040 echo "$as_me:$LINENO: checking minix/config.h usability" >&5
3041 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6
3042 cat >conftest.$ac_ext <<_ACEOF
3043 /* confdefs.h. */
3044 _ACEOF
3045 cat confdefs.h >>conftest.$ac_ext
3046 cat >>conftest.$ac_ext <<_ACEOF
3047 /* end confdefs.h. */
3048 $ac_includes_default
3049 #include <minix/config.h>
3050 _ACEOF
3051 rm -f conftest.$ac_objext
3052 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3053 (eval $ac_compile) 2>conftest.er1
3054 ac_status=$?
3055 grep -v '^ *+' conftest.er1 >conftest.err
3056 rm -f conftest.er1
3057 cat conftest.err >&5
3058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059 (exit $ac_status); } &&
3060 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3061 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3062 (eval $ac_try) 2>&5
3063 ac_status=$?
3064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3065 (exit $ac_status); }; } &&
3066 { ac_try='test -s conftest.$ac_objext'
3067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3068 (eval $ac_try) 2>&5
3069 ac_status=$?
3070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3071 (exit $ac_status); }; }; then
3072 ac_header_compiler=yes
3073 else
3074 echo "$as_me: failed program was:" >&5
3075 sed 's/^/| /' conftest.$ac_ext >&5
3076
3077 ac_header_compiler=no
3078 fi
3079 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3080 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3081 echo "${ECHO_T}$ac_header_compiler" >&6
3082
3083 # Is the header present?
3084 echo "$as_me:$LINENO: checking minix/config.h presence" >&5
3085 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6
3086 cat >conftest.$ac_ext <<_ACEOF
3087 /* confdefs.h. */
3088 _ACEOF
3089 cat confdefs.h >>conftest.$ac_ext
3090 cat >>conftest.$ac_ext <<_ACEOF
3091 /* end confdefs.h. */
3092 #include <minix/config.h>
3093 _ACEOF
3094 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3095 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3096 ac_status=$?
3097 grep -v '^ *+' conftest.er1 >conftest.err
3098 rm -f conftest.er1
3099 cat conftest.err >&5
3100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3101 (exit $ac_status); } >/dev/null; then
3102 if test -s conftest.err; then
3103 ac_cpp_err=$ac_c_preproc_warn_flag
3104 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3105 else
3106 ac_cpp_err=
3107 fi
3108 else
3109 ac_cpp_err=yes
3110 fi
3111 if test -z "$ac_cpp_err"; then
3112 ac_header_preproc=yes
3113 else
3114 echo "$as_me: failed program was:" >&5
3115 sed 's/^/| /' conftest.$ac_ext >&5
3116
3117 ac_header_preproc=no
3118 fi
3119 rm -f conftest.err conftest.$ac_ext
3120 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3121 echo "${ECHO_T}$ac_header_preproc" >&6
3122
3123 # So? What about this header?
3124 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3125 yes:no: )
3126 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
3127 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3128 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
3129 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
3130 ac_header_preproc=yes
3131 ;;
3132 no:yes:* )
3133 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
3134 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
3135 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
3136 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
3137 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
3138 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
3139 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
3140 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
3141 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
3142 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
3143 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
3144 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
3145 (
3146 cat <<\_ASBOX
3147 ## ------------------------------------------ ##
3148 ## Report this to the AC_PACKAGE_NAME lists. ##
3149 ## ------------------------------------------ ##
3150 _ASBOX
3151 ) |
3152 sed "s/^/$as_me: WARNING: /" >&2
3153 ;;
3154 esac
3155 echo "$as_me:$LINENO: checking for minix/config.h" >&5
3156 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6
3157 if test "${ac_cv_header_minix_config_h+set}" = set; then
3158 echo $ECHO_N "(cached) $ECHO_C" >&6
3159 else
3160 ac_cv_header_minix_config_h=$ac_header_preproc
3161 fi
3162 echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
3163 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6
3164
3165 fi
3166 if test $ac_cv_header_minix_config_h = yes; then
3167 MINIX=yes
3168 else
3169 MINIX=
3170 fi
3171
3172
3173 if test "$MINIX" = yes; then
3174
3175 cat >>confdefs.h <<\_ACEOF
3176 #define _POSIX_SOURCE 1
3177 _ACEOF
3178
3179
3180 cat >>confdefs.h <<\_ACEOF
3181 #define _POSIX_1_SOURCE 2
3182 _ACEOF
3183
3184
3185 cat >>confdefs.h <<\_ACEOF
3186 #define _MINIX 1
3187 _ACEOF
3188
3189 fi
3190
3191 echo "$as_me:$LINENO: checking for library containing strerror" >&5
3192 echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6
3193 if test "${ac_cv_search_strerror+set}" = set; then
3194 echo $ECHO_N "(cached) $ECHO_C" >&6
3195 else
3196 ac_func_search_save_LIBS=$LIBS
3197 ac_cv_search_strerror=no
3198 cat >conftest.$ac_ext <<_ACEOF
3199 /* confdefs.h. */
3200 _ACEOF
3201 cat confdefs.h >>conftest.$ac_ext
3202 cat >>conftest.$ac_ext <<_ACEOF
3203 /* end confdefs.h. */
3204
3205 /* Override any gcc2 internal prototype to avoid an error. */
3206 #ifdef __cplusplus
3207 extern "C"
3208 #endif
3209 /* We use char because int might match the return type of a gcc2
3210 builtin and then its argument prototype would still apply. */
3211 char strerror ();
3212 int
3213 main ()
3214 {
3215 strerror ();
3216 ;
3217 return 0;
3218 }
3219 _ACEOF
3220 rm -f conftest.$ac_objext conftest$ac_exeext
3221 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3222 (eval $ac_link) 2>conftest.er1
3223 ac_status=$?
3224 grep -v '^ *+' conftest.er1 >conftest.err
3225 rm -f conftest.er1
3226 cat conftest.err >&5
3227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3228 (exit $ac_status); } &&
3229 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3231 (eval $ac_try) 2>&5
3232 ac_status=$?
3233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3234 (exit $ac_status); }; } &&
3235 { ac_try='test -s conftest$ac_exeext'
3236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3237 (eval $ac_try) 2>&5
3238 ac_status=$?
3239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3240 (exit $ac_status); }; }; then
3241 ac_cv_search_strerror="none required"
3242 else
3243 echo "$as_me: failed program was:" >&5
3244 sed 's/^/| /' conftest.$ac_ext >&5
3245
3246 fi
3247 rm -f conftest.err conftest.$ac_objext \
3248 conftest$ac_exeext conftest.$ac_ext
3249 if test "$ac_cv_search_strerror" = no; then
3250 for ac_lib in cposix; do
3251 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3252 cat >conftest.$ac_ext <<_ACEOF
3253 /* confdefs.h. */
3254 _ACEOF
3255 cat confdefs.h >>conftest.$ac_ext
3256 cat >>conftest.$ac_ext <<_ACEOF
3257 /* end confdefs.h. */
3258
3259 /* Override any gcc2 internal prototype to avoid an error. */
3260 #ifdef __cplusplus
3261 extern "C"
3262 #endif
3263 /* We use char because int might match the return type of a gcc2
3264 builtin and then its argument prototype would still apply. */
3265 char strerror ();
3266 int
3267 main ()
3268 {
3269 strerror ();
3270 ;
3271 return 0;
3272 }
3273 _ACEOF
3274 rm -f conftest.$ac_objext conftest$ac_exeext
3275 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3276 (eval $ac_link) 2>conftest.er1
3277 ac_status=$?
3278 grep -v '^ *+' conftest.er1 >conftest.err
3279 rm -f conftest.er1
3280 cat conftest.err >&5
3281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3282 (exit $ac_status); } &&
3283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3285 (eval $ac_try) 2>&5
3286 ac_status=$?
3287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3288 (exit $ac_status); }; } &&
3289 { ac_try='test -s conftest$ac_exeext'
3290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3291 (eval $ac_try) 2>&5
3292 ac_status=$?
3293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3294 (exit $ac_status); }; }; then
3295 ac_cv_search_strerror="-l$ac_lib"
3296 break
3297 else
3298 echo "$as_me: failed program was:" >&5
3299 sed 's/^/| /' conftest.$ac_ext >&5
3300
3301 fi
3302 rm -f conftest.err conftest.$ac_objext \
3303 conftest$ac_exeext conftest.$ac_ext
3304 done
3305 fi
3306 LIBS=$ac_func_search_save_LIBS
3307 fi
3308 echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5
3309 echo "${ECHO_T}$ac_cv_search_strerror" >&6
3310 if test "$ac_cv_search_strerror" != no; then
3311 test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS"
3312
3313 fi
3314
3315
3316 am__api_version="1.9"
3317 # Find a good install program. We prefer a C program (faster),
3318 # so one script is as good as another. But avoid the broken or
3319 # incompatible versions:
3320 # SysV /etc/install, /usr/sbin/install
3321 # SunOS /usr/etc/install
3322 # IRIX /sbin/install
3323 # AIX /bin/install
3324 # AmigaOS /C/install, which installs bootblocks on floppy discs
3325 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3326 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3327 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3328 # OS/2's system install, which has a completely different semantic
3329 # ./install, which can be erroneously created by make from ./install.sh.
3330 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
3331 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
3332 if test -z "$INSTALL"; then
3333 if test "${ac_cv_path_install+set}" = set; then
3334 echo $ECHO_N "(cached) $ECHO_C" >&6
3335 else
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3338 do
3339 IFS=$as_save_IFS
3340 test -z "$as_dir" && as_dir=.
3341 # Account for people who put trailing slashes in PATH elements.
3342 case $as_dir/ in
3343 ./ | .// | /cC/* | \
3344 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3345 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
3346 /usr/ucb/* ) ;;
3347 *)
3348 # OSF1 and SCO ODT 3.0 have their own names for install.
3349 # Don't use installbsd from OSF since it installs stuff as root
3350 # by default.
3351 for ac_prog in ginstall scoinst install; do
3352 for ac_exec_ext in '' $ac_executable_extensions; do
3353 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
3354 if test $ac_prog = install &&
3355 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3356 # AIX install. It has an incompatible calling convention.
3357 :
3358 elif test $ac_prog = install &&
3359 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3360 # program-specific install script used by HP pwplus--don't use.
3361 :
3362 else
3363 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3364 break 3
3365 fi
3366 fi
3367 done
3368 done
3369 ;;
3370 esac
3371 done
3372
3373
3374 fi
3375 if test "${ac_cv_path_install+set}" = set; then
3376 INSTALL=$ac_cv_path_install
3377 else
3378 # As a last resort, use the slow shell script. We don't cache a
3379 # path for INSTALL within a source directory, because that will
3380 # break other packages using the cache if that directory is
3381 # removed, or if the path is relative.
3382 INSTALL=$ac_install_sh
3383 fi
3384 fi
3385 echo "$as_me:$LINENO: result: $INSTALL" >&5
3386 echo "${ECHO_T}$INSTALL" >&6
3387
3388 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3389 # It thinks the first close brace ends the variable substitution.
3390 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3391
3392 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3393
3394 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3395
3396 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
3397 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
3398 # Just in case
3399 sleep 1
3400 echo timestamp > conftest.file
3401 # Do `set' in a subshell so we don't clobber the current shell's
3402 # arguments. Must try -L first in case configure is actually a
3403 # symlink; some systems play weird games with the mod time of symlinks
3404 # (eg FreeBSD returns the mod time of the symlink's containing
3405 # directory).
3406 if (
3407 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
3408 if test "$*" = "X"; then
3409 # -L didn't work.
3410 set X `ls -t $srcdir/configure conftest.file`
3411 fi
3412 rm -f conftest.file
3413 if test "$*" != "X $srcdir/configure conftest.file" \
3414 && test "$*" != "X conftest.file $srcdir/configure"; then
3415
3416 # If neither matched, then we have a broken ls. This can happen
3417 # if, for instance, CONFIG_SHELL is bash and it inherits a
3418 # broken ls alias from the environment. This has actually
3419 # happened. Such a system could not be considered "sane".
3420 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
3421 alias in your environment" >&5
3422 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
3423 alias in your environment" >&2;}
3424 { (exit 1); exit 1; }; }
3425 fi
3426
3427 test "$2" = conftest.file
3428 )
3429 then
3430 # Ok.
3431 :
3432 else
3433 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
3434 Check your system clock" >&5
3435 echo "$as_me: error: newly created file is older than distributed files!
3436 Check your system clock" >&2;}
3437 { (exit 1); exit 1; }; }
3438 fi
3439 echo "$as_me:$LINENO: result: yes" >&5
3440 echo "${ECHO_T}yes" >&6
3441 test "$program_prefix" != NONE &&
3442 program_transform_name="s,^,$program_prefix,;$program_transform_name"
3443 # Use a double $ so make ignores it.
3444 test "$program_suffix" != NONE &&
3445 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
3446 # Double any \ or $. echo might interpret backslashes.
3447 # By default was `s,x,x', remove it if useless.
3448 cat <<\_ACEOF >conftest.sed
3449 s/[\\$]/&&/g;s/;s,x,x,$//
3450 _ACEOF
3451 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
3452 rm conftest.sed
3453
3454 # expand $ac_aux_dir to an absolute path
3455 am_aux_dir=`cd $ac_aux_dir && pwd`
3456
3457 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
3458 # Use eval to expand $SHELL
3459 if eval "$MISSING --run true"; then
3460 am_missing_run="$MISSING --run "
3461 else
3462 am_missing_run=
3463 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
3464 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3465 fi
3466
3467 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
3468 # We used to keeping the `.' as first argument, in order to
3469 # allow $(mkdir_p) to be used without argument. As in
3470 # $(mkdir_p) $(somedir)
3471 # where $(somedir) is conditionally defined. However this is wrong
3472 # for two reasons:
3473 # 1. if the package is installed by a user who cannot write `.'
3474 # make install will fail,
3475 # 2. the above comment should most certainly read
3476 # $(mkdir_p) $(DESTDIR)$(somedir)
3477 # so it does not work when $(somedir) is undefined and
3478 # $(DESTDIR) is not.
3479 # To support the latter case, we have to write
3480 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
3481 # so the `.' trick is pointless.
3482 mkdir_p='mkdir -p --'
3483 else
3484 # On NextStep and OpenStep, the `mkdir' command does not
3485 # recognize any option. It will interpret all options as
3486 # directories to create, and then abort because `.' already
3487 # exists.
3488 for d in ./-p ./--version;
3489 do
3490 test -d $d && rmdir $d
3491 done
3492 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
3493 if test -f "$ac_aux_dir/mkinstalldirs"; then
3494 mkdir_p='$(mkinstalldirs)'
3495 else
3496 mkdir_p='$(install_sh) -d'
3497 fi
3498 fi
3499
3500 for ac_prog in gawk mawk nawk awk
3501 do
3502 # Extract the first word of "$ac_prog", so it can be a program name with args.
3503 set dummy $ac_prog; ac_word=$2
3504 echo "$as_me:$LINENO: checking for $ac_word" >&5
3505 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3506 if test "${ac_cv_prog_AWK+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509 if test -n "$AWK"; then
3510 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3511 else
3512 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3513 for as_dir in $PATH
3514 do
3515 IFS=$as_save_IFS
3516 test -z "$as_dir" && as_dir=.
3517 for ac_exec_ext in '' $ac_executable_extensions; do
3518 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3519 ac_cv_prog_AWK="$ac_prog"
3520 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3521 break 2
3522 fi
3523 done
3524 done
3525
3526 fi
3527 fi
3528 AWK=$ac_cv_prog_AWK
3529 if test -n "$AWK"; then
3530 echo "$as_me:$LINENO: result: $AWK" >&5
3531 echo "${ECHO_T}$AWK" >&6
3532 else
3533 echo "$as_me:$LINENO: result: no" >&5
3534 echo "${ECHO_T}no" >&6
3535 fi
3536
3537 test -n "$AWK" && break
3538 done
3539
3540 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3541 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
3542 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
3543 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
3544 echo $ECHO_N "(cached) $ECHO_C" >&6
3545 else
3546 cat >conftest.make <<\_ACEOF
3547 all:
3548 @echo 'ac_maketemp="$(MAKE)"'
3549 _ACEOF
3550 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3551 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
3552 if test -n "$ac_maketemp"; then
3553 eval ac_cv_prog_make_${ac_make}_set=yes
3554 else
3555 eval ac_cv_prog_make_${ac_make}_set=no
3556 fi
3557 rm -f conftest.make
3558 fi
3559 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
3560 echo "$as_me:$LINENO: result: yes" >&5
3561 echo "${ECHO_T}yes" >&6
3562 SET_MAKE=
3563 else
3564 echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6
3566 SET_MAKE="MAKE=${MAKE-make}"
3567 fi
3568
3569 rm -rf .tst 2>/dev/null
3570 mkdir .tst 2>/dev/null
3571 if test -d .tst; then
3572 am__leading_dot=.
3573 else
3574 am__leading_dot=_
3575 fi
3576 rmdir .tst 2>/dev/null
3577
3578 DEPDIR="${am__leading_dot}deps"
3579
3580 ac_config_commands="$ac_config_commands depfiles"
3581
3582
3583 am_make=${MAKE-make}
3584 cat > confinc << 'END'
3585 am__doit:
3586 @echo done
3587 .PHONY: am__doit
3588 END
3589 # If we don't find an include directive, just comment out the code.
3590 echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
3591 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
3592 am__include="#"
3593 am__quote=
3594 _am_result=none
3595 # First try GNU make style include.
3596 echo "include confinc" > confmf
3597 # We grep out `Entering directory' and `Leaving directory'
3598 # messages which can occur if `w' ends up in MAKEFLAGS.
3599 # In particular we don't look at `^make:' because GNU make might
3600 # be invoked under some other name (usually "gmake"), in which
3601 # case it prints its new name instead of `make'.
3602 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3603 am__include=include
3604 am__quote=
3605 _am_result=GNU
3606 fi
3607 # Now try BSD make style include.
3608 if test "$am__include" = "#"; then
3609 echo '.include "confinc"' > confmf
3610 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3611 am__include=.include
3612 am__quote="\""
3613 _am_result=BSD
3614 fi
3615 fi
3616
3617
3618 echo "$as_me:$LINENO: result: $_am_result" >&5
3619 echo "${ECHO_T}$_am_result" >&6
3620 rm -f confinc confmf
3621
3622 # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
3623 if test "${enable_dependency_tracking+set}" = set; then
3624 enableval="$enable_dependency_tracking"
3625
3626 fi;
3627 if test "x$enable_dependency_tracking" != xno; then
3628 am_depcomp="$ac_aux_dir/depcomp"
3629 AMDEPBACKSLASH='\'
3630 fi
3631
3632
3633 if test "x$enable_dependency_tracking" != xno; then
3634 AMDEP_TRUE=
3635 AMDEP_FALSE='#'
3636 else
3637 AMDEP_TRUE='#'
3638 AMDEP_FALSE=
3639 fi
3640
3641
3642
3643 # test to see if srcdir already configured
3644 if test "`cd $srcdir && pwd`" != "`pwd`" &&
3645 test -f $srcdir/config.status; then
3646 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
3647 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
3648 { (exit 1); exit 1; }; }
3649 fi
3650
3651 # test whether we have cygpath
3652 if test -z "$CYGPATH_W"; then
3653 if (cygpath --version) >/dev/null 2>/dev/null; then
3654 CYGPATH_W='cygpath -w'
3655 else
3656 CYGPATH_W=echo
3657 fi
3658 fi
3659
3660
3661 # Define the identity of the package.
3662 PACKAGE=easyh10
3663 VERSION=1.5
3664
3665
3666 cat >>confdefs.h <<_ACEOF
3667 #define PACKAGE "$PACKAGE"
3668 _ACEOF
3669
3670
3671 cat >>confdefs.h <<_ACEOF
3672 #define VERSION "$VERSION"
3673 _ACEOF
3674
3675 # Some tools Automake needs.
3676
3677 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3678
3679
3680 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3681
3682
3683 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3684
3685
3686 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3687
3688
3689 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3690
3691 install_sh=${install_sh-"$am_aux_dir/install-sh"}
3692
3693 # Installed binaries are usually stripped using `strip' when the user
3694 # run `make install-strip'. However `strip' might not be the right
3695 # tool to use in cross-compilation environments, therefore Automake
3696 # will honor the `STRIP' environment variable to overrule this program.
3697 if test "$cross_compiling" != no; then
3698 if test -n "$ac_tool_prefix"; then
3699 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3700 set dummy ${ac_tool_prefix}strip; ac_word=$2
3701 echo "$as_me:$LINENO: checking for $ac_word" >&5
3702 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3703 if test "${ac_cv_prog_STRIP+set}" = set; then
3704 echo $ECHO_N "(cached) $ECHO_C" >&6
3705 else
3706 if test -n "$STRIP"; then
3707 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3708 else
3709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3710 for as_dir in $PATH
3711 do
3712 IFS=$as_save_IFS
3713 test -z "$as_dir" && as_dir=.
3714 for ac_exec_ext in '' $ac_executable_extensions; do
3715 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3716 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3718 break 2
3719 fi
3720 done
3721 done
3722
3723 fi
3724 fi
3725 STRIP=$ac_cv_prog_STRIP
3726 if test -n "$STRIP"; then
3727 echo "$as_me:$LINENO: result: $STRIP" >&5
3728 echo "${ECHO_T}$STRIP" >&6
3729 else
3730 echo "$as_me:$LINENO: result: no" >&5
3731 echo "${ECHO_T}no" >&6
3732 fi
3733
3734 fi
3735 if test -z "$ac_cv_prog_STRIP"; then
3736 ac_ct_STRIP=$STRIP
3737 # Extract the first word of "strip", so it can be a program name with args.
3738 set dummy strip; ac_word=$2
3739 echo "$as_me:$LINENO: checking for $ac_word" >&5
3740 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
3741 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
3742 echo $ECHO_N "(cached) $ECHO_C" >&6
3743 else
3744 if test -n "$ac_ct_STRIP"; then
3745 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3746 else
3747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3748 for as_dir in $PATH
3749 do
3750 IFS=$as_save_IFS
3751 test -z "$as_dir" && as_dir=.
3752 for ac_exec_ext in '' $ac_executable_extensions; do
3753 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3754 ac_cv_prog_ac_ct_STRIP="strip"
3755 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3756 break 2
3757 fi
3758 done
3759 done
3760
3761 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
3762 fi
3763 fi
3764 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3765 if test -n "$ac_ct_STRIP"; then
3766 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
3767 echo "${ECHO_T}$ac_ct_STRIP" >&6
3768 else
3769 echo "$as_me:$LINENO: result: no" >&5
3770 echo "${ECHO_T}no" >&6
3771 fi
3772
3773 STRIP=$ac_ct_STRIP
3774 else
3775 STRIP="$ac_cv_prog_STRIP"
3776 fi
3777
3778 fi
3779 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
3780
3781 # We need awk for the "check" target. The system "awk" is bad on
3782 # some platforms.
3783 # Always define AMTAR for backward compatibility.
3784
3785 AMTAR=${AMTAR-"${am_missing_run}tar"}
3786
3787 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3788
3789
3790
3791
3792 depcc="$CC" am_compiler_list=
3793
3794 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3795 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
3796 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3797 echo $ECHO_N "(cached) $ECHO_C" >&6
3798 else
3799 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3800 # We make a subdir and do the tests there. Otherwise we can end up
3801 # making bogus files that we don't know about and never remove. For
3802 # instance it was reported that on HP-UX the gcc test will end up
3803 # making a dummy file named `D' -- because `-MD' means `put the output
3804 # in D'.
3805 mkdir conftest.dir
3806 # Copy depcomp to subdir because otherwise we won't find it if we're
3807 # using a relative directory.
3808 cp "$am_depcomp" conftest.dir
3809 cd conftest.dir
3810 # We will build objects and dependencies in a subdirectory because
3811 # it helps to detect inapplicable dependency modes. For instance
3812 # both Tru64's cc and ICC support -MD to output dependencies as a
3813 # side effect of compilation, but ICC will put the dependencies in
3814 # the current directory while Tru64 will put them in the object
3815 # directory.
3816 mkdir sub
3817
3818 am_cv_CC_dependencies_compiler_type=none
3819 if test "$am_compiler_list" = ""; then
3820 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3821 fi
3822 for depmode in $am_compiler_list; do
3823 # Setup a source with many dependencies, because some compilers
3824 # like to wrap large dependency lists on column 80 (with \), and
3825 # we should not choose a depcomp mode which is confused by this.
3826 #
3827 # We need to recreate these files for each test, as the compiler may
3828 # overwrite some of them when testing with obscure command lines.
3829 # This happens at least with the AIX C compiler.
3830 : > sub/conftest.c
3831 for i in 1 2 3 4 5 6; do
3832 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3833 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3834 # Solaris 8's {/usr,}/bin/sh.
3835 touch sub/conftst$i.h
3836 done
3837 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3838
3839 case $depmode in
3840 nosideeffect)
3841 # after this tag, mechanisms are not by side-effect, so they'll
3842 # only be used when explicitly requested
3843 if test "x$enable_dependency_tracking" = xyes; then
3844 continue
3845 else
3846 break
3847 fi
3848 ;;
3849 none) break ;;
3850 esac
3851 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3852 # mode. It turns out that the SunPro C++ compiler does not properly
3853 # handle `-M -o', and we need to detect this.
3854 if depmode=$depmode \
3855 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3856 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3857 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3858 >/dev/null 2>conftest.err &&
3859 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3860 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3861 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3862 # icc doesn't choke on unknown options, it will just issue warnings
3863 # or remarks (even with -Werror). So we grep stderr for any message
3864 # that says an option was ignored or not supported.
3865 # When given -MP, icc 7.0 and 7.1 complain thusly:
3866 # icc: Command line warning: ignoring option '-M'; no argument required
3867 # The diagnosis changed in icc 8.0:
3868 # icc: Command line remark: option '-MP' not supported
3869 if (grep 'ignoring option' conftest.err ||
3870 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3871 am_cv_CC_dependencies_compiler_type=$depmode
3872 break
3873 fi
3874 fi
3875 done
3876
3877 cd ..
3878 rm -rf conftest.dir
3879 else
3880 am_cv_CC_dependencies_compiler_type=none
3881 fi
3882
3883 fi
3884 echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
3885 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
3886 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
3887
3888
3889
3890 if
3891 test "x$enable_dependency_tracking" != xno \
3892 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
3893 am__fastdepCC_TRUE=
3894 am__fastdepCC_FALSE='#'
3895 else
3896 am__fastdepCC_TRUE='#'
3897 am__fastdepCC_FALSE=
3898 fi
3899
3900
3901
3902 ac_config_headers="$ac_config_headers config.h"
3903
3904 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
3905 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
3906 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
3907 if test "${enable_maintainer_mode+set}" = set; then
3908 enableval="$enable_maintainer_mode"
3909 USE_MAINTAINER_MODE=$enableval
3910 else
3911 USE_MAINTAINER_MODE=no
3912 fi;
3913 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
3914 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
3915
3916
3917 if test $USE_MAINTAINER_MODE = yes; then
3918 MAINTAINER_MODE_TRUE=
3919 MAINTAINER_MODE_FALSE='#'
3920 else
3921 MAINTAINER_MODE_TRUE='#'
3922 MAINTAINER_MODE_FALSE=
3923 fi
3924
3925 MAINT=$MAINTAINER_MODE_TRUE
3926
3927
3928 echo "$as_me:$LINENO: checking for function prototypes" >&5
3929 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
3930 if test "$ac_cv_prog_cc_stdc" != no; then
3931 echo "$as_me:$LINENO: result: yes" >&5
3932 echo "${ECHO_T}yes" >&6
3933
3934 cat >>confdefs.h <<\_ACEOF
3935 #define PROTOTYPES 1
3936 _ACEOF
3937
3938
3939 cat >>confdefs.h <<\_ACEOF
3940 #define __PROTOTYPES 1
3941 _ACEOF
3942
3943 else
3944 echo "$as_me:$LINENO: result: no" >&5
3945 echo "${ECHO_T}no" >&6
3946 fi
3947
3948
3949 if test "$ac_cv_prog_cc_stdc" != no; then
3950 U= ANSI2KNR=
3951 else
3952 U=_ ANSI2KNR=./ansi2knr
3953 fi
3954 # Ensure some checks needed by ansi2knr itself.
3955
3956
3957 for ac_header in string.h
3958 do
3959 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3960 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3961 echo "$as_me:$LINENO: checking for $ac_header" >&5
3962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3963 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3964 echo $ECHO_N "(cached) $ECHO_C" >&6
3965 fi
3966 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3967 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3968 else
3969 # Is the header compilable?
3970 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3971 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3972 cat >conftest.$ac_ext <<_ACEOF
3973 /* confdefs.h. */
3974 _ACEOF
3975 cat confdefs.h >>conftest.$ac_ext
3976 cat >>conftest.$ac_ext <<_ACEOF
3977 /* end confdefs.h. */
3978 $ac_includes_default
3979 #include <$ac_header>
3980 _ACEOF
3981 rm -f conftest.$ac_objext
3982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3983 (eval $ac_compile) 2>conftest.er1
3984 ac_status=$?
3985 grep -v '^ *+' conftest.er1 >conftest.err
3986 rm -f conftest.er1
3987 cat conftest.err >&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } &&
3990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3992 (eval $ac_try) 2>&5
3993 ac_status=$?
3994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3995 (exit $ac_status); }; } &&
3996 { ac_try='test -s conftest.$ac_objext'
3997 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3998 (eval $ac_try) 2>&5
3999 ac_status=$?
4000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001 (exit $ac_status); }; }; then
4002 ac_header_compiler=yes
4003 else
4004 echo "$as_me: failed program was:" >&5
4005 sed 's/^/| /' conftest.$ac_ext >&5
4006
4007 ac_header_compiler=no
4008 fi
4009 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4010 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4011 echo "${ECHO_T}$ac_header_compiler" >&6
4012
4013 # Is the header present?
4014 echo "$as_me:$LINENO: checking $ac_header presence" >&5
4015 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
4016 cat >conftest.$ac_ext <<_ACEOF
4017 /* confdefs.h. */
4018 _ACEOF
4019 cat confdefs.h >>conftest.$ac_ext
4020 cat >>conftest.$ac_ext <<_ACEOF
4021 /* end confdefs.h. */
4022 #include <$ac_header>
4023 _ACEOF
4024 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4025 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4026 ac_status=$?
4027 grep -v '^ *+' conftest.er1 >conftest.err
4028 rm -f conftest.er1
4029 cat conftest.err >&5
4030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4031 (exit $ac_status); } >/dev/null; then
4032 if test -s conftest.err; then
4033 ac_cpp_err=$ac_c_preproc_warn_flag
4034 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4035 else
4036 ac_cpp_err=
4037 fi
4038 else
4039 ac_cpp_err=yes
4040 fi
4041 if test -z "$ac_cpp_err"; then
4042 ac_header_preproc=yes
4043 else
4044 echo "$as_me: failed program was:" >&5
4045 sed 's/^/| /' conftest.$ac_ext >&5
4046
4047 ac_header_preproc=no
4048 fi
4049 rm -f conftest.err conftest.$ac_ext
4050 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4051 echo "${ECHO_T}$ac_header_preproc" >&6
4052
4053 # So? What about this header?
4054 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4055 yes:no: )
4056 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
4057 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
4058 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
4059 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
4060 ac_header_preproc=yes
4061 ;;
4062 no:yes:* )
4063 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
4064 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
4065 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
4066 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
4067 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
4068 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
4069 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
4070 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
4071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
4072 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
4073 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
4074 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
4075 (
4076 cat <<\_ASBOX
4077 ## ------------------------------------------ ##
4078 ## Report this to the AC_PACKAGE_NAME lists. ##
4079 ## ------------------------------------------ ##
4080 _ASBOX
4081 ) |
4082 sed "s/^/$as_me: WARNING: /" >&2
4083 ;;
4084 esac
4085 echo "$as_me:$LINENO: checking for $ac_header" >&5
4086 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
4087 if eval "test \"\${$as_ac_Header+set}\" = set"; then
4088 echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090 eval "$as_ac_Header=\$ac_header_preproc"
4091 fi
4092 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
4093 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
4094
4095 fi
4096 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4097 cat >>confdefs.h <<_ACEOF
4098 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4099 _ACEOF
4100
4101 fi
4102
4103 done
4104
4105
4106
4107 ac_ext=c
4108 ac_cpp='$CPP $CPPFLAGS'
4109 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4110 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4111 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4112 if test -n "$ac_tool_prefix"; then
4113 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4114 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4115 echo "$as_me:$LINENO: checking for $ac_word" >&5
4116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4117 if test "${ac_cv_prog_CC+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120 if test -n "$CC"; then
4121 ac_cv_prog_CC="$CC" # Let the user override the test.
4122 else
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4125 do
4126 IFS=$as_save_IFS
4127 test -z "$as_dir" && as_dir=.
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4132 break 2
4133 fi
4134 done
4135 done
4136
4137 fi
4138 fi
4139 CC=$ac_cv_prog_CC
4140 if test -n "$CC"; then
4141 echo "$as_me:$LINENO: result: $CC" >&5
4142 echo "${ECHO_T}$CC" >&6
4143 else
4144 echo "$as_me:$LINENO: result: no" >&5
4145 echo "${ECHO_T}no" >&6
4146 fi
4147
4148 fi
4149 if test -z "$ac_cv_prog_CC"; then
4150 ac_ct_CC=$CC
4151 # Extract the first word of "gcc", so it can be a program name with args.
4152 set dummy gcc; ac_word=$2
4153 echo "$as_me:$LINENO: checking for $ac_word" >&5
4154 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4155 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4156 echo $ECHO_N "(cached) $ECHO_C" >&6
4157 else
4158 if test -n "$ac_ct_CC"; then
4159 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4160 else
4161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4162 for as_dir in $PATH
4163 do
4164 IFS=$as_save_IFS
4165 test -z "$as_dir" && as_dir=.
4166 for ac_exec_ext in '' $ac_executable_extensions; do
4167 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4168 ac_cv_prog_ac_ct_CC="gcc"
4169 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4170 break 2
4171 fi
4172 done
4173 done
4174
4175 fi
4176 fi
4177 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4178 if test -n "$ac_ct_CC"; then
4179 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4180 echo "${ECHO_T}$ac_ct_CC" >&6
4181 else
4182 echo "$as_me:$LINENO: result: no" >&5
4183 echo "${ECHO_T}no" >&6
4184 fi
4185
4186 CC=$ac_ct_CC
4187 else
4188 CC="$ac_cv_prog_CC"
4189 fi
4190
4191 if test -z "$CC"; then
4192 if test -n "$ac_tool_prefix"; then
4193 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4194 set dummy ${ac_tool_prefix}cc; ac_word=$2
4195 echo "$as_me:$LINENO: checking for $ac_word" >&5
4196 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4197 if test "${ac_cv_prog_CC+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200 if test -n "$CC"; then
4201 ac_cv_prog_CC="$CC" # Let the user override the test.
4202 else
4203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4204 for as_dir in $PATH
4205 do
4206 IFS=$as_save_IFS
4207 test -z "$as_dir" && as_dir=.
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4210 ac_cv_prog_CC="${ac_tool_prefix}cc"
4211 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4212 break 2
4213 fi
4214 done
4215 done
4216
4217 fi
4218 fi
4219 CC=$ac_cv_prog_CC
4220 if test -n "$CC"; then
4221 echo "$as_me:$LINENO: result: $CC" >&5
4222 echo "${ECHO_T}$CC" >&6
4223 else
4224 echo "$as_me:$LINENO: result: no" >&5
4225 echo "${ECHO_T}no" >&6
4226 fi
4227
4228 fi
4229 if test -z "$ac_cv_prog_CC"; then
4230 ac_ct_CC=$CC
4231 # Extract the first word of "cc", so it can be a program name with args.
4232 set dummy cc; ac_word=$2
4233 echo "$as_me:$LINENO: checking for $ac_word" >&5
4234 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4235 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4236 echo $ECHO_N "(cached) $ECHO_C" >&6
4237 else
4238 if test -n "$ac_ct_CC"; then
4239 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4240 else
4241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4242 for as_dir in $PATH
4243 do
4244 IFS=$as_save_IFS
4245 test -z "$as_dir" && as_dir=.
4246 for ac_exec_ext in '' $ac_executable_extensions; do
4247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4248 ac_cv_prog_ac_ct_CC="cc"
4249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4250 break 2
4251 fi
4252 done
4253 done
4254
4255 fi
4256 fi
4257 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4258 if test -n "$ac_ct_CC"; then
4259 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4260 echo "${ECHO_T}$ac_ct_CC" >&6
4261 else
4262 echo "$as_me:$LINENO: result: no" >&5
4263 echo "${ECHO_T}no" >&6
4264 fi
4265
4266 CC=$ac_ct_CC
4267 else
4268 CC="$ac_cv_prog_CC"
4269 fi
4270
4271 fi
4272 if test -z "$CC"; then
4273 # Extract the first word of "cc", so it can be a program name with args.
4274 set dummy cc; ac_word=$2
4275 echo "$as_me:$LINENO: checking for $ac_word" >&5
4276 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4277 if test "${ac_cv_prog_CC+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280 if test -n "$CC"; then
4281 ac_cv_prog_CC="$CC" # Let the user override the test.
4282 else
4283 ac_prog_rejected=no
4284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4285 for as_dir in $PATH
4286 do
4287 IFS=$as_save_IFS
4288 test -z "$as_dir" && as_dir=.
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4291 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4292 ac_prog_rejected=yes
4293 continue
4294 fi
4295 ac_cv_prog_CC="cc"
4296 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4297 break 2
4298 fi
4299 done
4300 done
4301
4302 if test $ac_prog_rejected = yes; then
4303 # We found a bogon in the path, so make sure we never use it.
4304 set dummy $ac_cv_prog_CC
4305 shift
4306 if test $# != 0; then
4307 # We chose a different compiler from the bogus one.
4308 # However, it has the same basename, so the bogon will be chosen
4309 # first if we set CC to just the basename; use the full file name.
4310 shift
4311 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4312 fi
4313 fi
4314 fi
4315 fi
4316 CC=$ac_cv_prog_CC
4317 if test -n "$CC"; then
4318 echo "$as_me:$LINENO: result: $CC" >&5
4319 echo "${ECHO_T}$CC" >&6
4320 else
4321 echo "$as_me:$LINENO: result: no" >&5
4322 echo "${ECHO_T}no" >&6
4323 fi
4324
4325 fi
4326 if test -z "$CC"; then
4327 if test -n "$ac_tool_prefix"; then
4328 for ac_prog in cl
4329 do
4330 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4331 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4332 echo "$as_me:$LINENO: checking for $ac_word" >&5
4333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4334 if test "${ac_cv_prog_CC+set}" = set; then
4335 echo $ECHO_N "(cached) $ECHO_C" >&6
4336 else
4337 if test -n "$CC"; then
4338 ac_cv_prog_CC="$CC" # Let the user override the test.
4339 else
4340 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4341 for as_dir in $PATH
4342 do
4343 IFS=$as_save_IFS
4344 test -z "$as_dir" && as_dir=.
4345 for ac_exec_ext in '' $ac_executable_extensions; do
4346 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4347 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4349 break 2
4350 fi
4351 done
4352 done
4353
4354 fi
4355 fi
4356 CC=$ac_cv_prog_CC
4357 if test -n "$CC"; then
4358 echo "$as_me:$LINENO: result: $CC" >&5
4359 echo "${ECHO_T}$CC" >&6
4360 else
4361 echo "$as_me:$LINENO: result: no" >&5
4362 echo "${ECHO_T}no" >&6
4363 fi
4364
4365 test -n "$CC" && break
4366 done
4367 fi
4368 if test -z "$CC"; then
4369 ac_ct_CC=$CC
4370 for ac_prog in cl
4371 do
4372 # Extract the first word of "$ac_prog", so it can be a program name with args.
4373 set dummy $ac_prog; ac_word=$2
4374 echo "$as_me:$LINENO: checking for $ac_word" >&5
4375 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4376 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4377 echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379 if test -n "$ac_ct_CC"; then
4380 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4381 else
4382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4383 for as_dir in $PATH
4384 do
4385 IFS=$as_save_IFS
4386 test -z "$as_dir" && as_dir=.
4387 for ac_exec_ext in '' $ac_executable_extensions; do
4388 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4389 ac_cv_prog_ac_ct_CC="$ac_prog"
4390 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4391 break 2
4392 fi
4393 done
4394 done
4395
4396 fi
4397 fi
4398 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4399 if test -n "$ac_ct_CC"; then
4400 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4401 echo "${ECHO_T}$ac_ct_CC" >&6
4402 else
4403 echo "$as_me:$LINENO: result: no" >&5
4404 echo "${ECHO_T}no" >&6
4405 fi
4406
4407 test -n "$ac_ct_CC" && break
4408 done
4409
4410 CC=$ac_ct_CC
4411 fi
4412
4413 fi
4414
4415
4416 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
4417 See \`config.log' for more details." >&5
4418 echo "$as_me: error: no acceptable C compiler found in \$PATH
4419 See \`config.log' for more details." >&2;}
4420 { (exit 1); exit 1; }; }
4421
4422 # Provide some information about the compiler.
4423 echo "$as_me:$LINENO:" \
4424 "checking for C compiler version" >&5
4425 ac_compiler=`set X $ac_compile; echo $2`
4426 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
4427 (eval $ac_compiler --version </dev/null >&5) 2>&5
4428 ac_status=$?
4429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4430 (exit $ac_status); }
4431 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
4432 (eval $ac_compiler -v </dev/null >&5) 2>&5
4433 ac_status=$?
4434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4435 (exit $ac_status); }
4436 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
4437 (eval $ac_compiler -V </dev/null >&5) 2>&5
4438 ac_status=$?
4439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4440 (exit $ac_status); }
4441
4442 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
4443 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
4444 if test "${ac_cv_c_compiler_gnu+set}" = set; then
4445 echo $ECHO_N "(cached) $ECHO_C" >&6
4446 else
4447 cat >conftest.$ac_ext <<_ACEOF
4448 /* confdefs.h. */
4449 _ACEOF
4450 cat confdefs.h >>conftest.$ac_ext
4451 cat >>conftest.$ac_ext <<_ACEOF
4452 /* end confdefs.h. */
4453
4454 int
4455 main ()
4456 {
4457 #ifndef __GNUC__
4458 choke me
4459 #endif
4460
4461 ;
4462 return 0;
4463 }
4464 _ACEOF
4465 rm -f conftest.$ac_objext
4466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4467 (eval $ac_compile) 2>conftest.er1
4468 ac_status=$?
4469 grep -v '^ *+' conftest.er1 >conftest.err
4470 rm -f conftest.er1
4471 cat conftest.err >&5
4472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4473 (exit $ac_status); } &&
4474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4476 (eval $ac_try) 2>&5
4477 ac_status=$?
4478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4479 (exit $ac_status); }; } &&
4480 { ac_try='test -s conftest.$ac_objext'
4481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4482 (eval $ac_try) 2>&5
4483 ac_status=$?
4484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4485 (exit $ac_status); }; }; then
4486 ac_compiler_gnu=yes
4487 else
4488 echo "$as_me: failed program was:" >&5
4489 sed 's/^/| /' conftest.$ac_ext >&5
4490
4491 ac_compiler_gnu=no
4492 fi
4493 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4494 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4495
4496 fi
4497 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
4498 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
4499 GCC=`test $ac_compiler_gnu = yes && echo yes`
4500 ac_test_CFLAGS=${CFLAGS+set}
4501 ac_save_CFLAGS=$CFLAGS
4502 CFLAGS="-g"
4503 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
4504 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
4505 if test "${ac_cv_prog_cc_g+set}" = set; then
4506 echo $ECHO_N "(cached) $ECHO_C" >&6
4507 else
4508 cat >conftest.$ac_ext <<_ACEOF
4509 /* confdefs.h. */
4510 _ACEOF
4511 cat confdefs.h >>conftest.$ac_ext
4512 cat >>conftest.$ac_ext <<_ACEOF
4513 /* end confdefs.h. */
4514
4515 int
4516 main ()
4517 {
4518
4519 ;
4520 return 0;
4521 }
4522 _ACEOF
4523 rm -f conftest.$ac_objext
4524 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4525 (eval $ac_compile) 2>conftest.er1
4526 ac_status=$?
4527 grep -v '^ *+' conftest.er1 >conftest.err
4528 rm -f conftest.er1
4529 cat conftest.err >&5
4530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4531 (exit $ac_status); } &&
4532 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4534 (eval $ac_try) 2>&5
4535 ac_status=$?
4536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4537 (exit $ac_status); }; } &&
4538 { ac_try='test -s conftest.$ac_objext'
4539 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4540 (eval $ac_try) 2>&5
4541 ac_status=$?
4542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4543 (exit $ac_status); }; }; then
4544 ac_cv_prog_cc_g=yes
4545 else
4546 echo "$as_me: failed program was:" >&5
4547 sed 's/^/| /' conftest.$ac_ext >&5
4548
4549 ac_cv_prog_cc_g=no
4550 fi
4551 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4552 fi
4553 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4554 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
4555 if test "$ac_test_CFLAGS" = set; then
4556 CFLAGS=$ac_save_CFLAGS
4557 elif test $ac_cv_prog_cc_g = yes; then
4558 if test "$GCC" = yes; then
4559 CFLAGS="-g -O2"
4560 else
4561 CFLAGS="-g"
4562 fi
4563 else
4564 if test "$GCC" = yes; then
4565 CFLAGS="-O2"
4566 else
4567 CFLAGS=
4568 fi
4569 fi
4570 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
4571 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
4572 if test "${ac_cv_prog_cc_stdc+set}" = set; then
4573 echo $ECHO_N "(cached) $ECHO_C" >&6
4574 else
4575 ac_cv_prog_cc_stdc=no
4576 ac_save_CC=$CC
4577 cat >conftest.$ac_ext <<_ACEOF
4578 /* confdefs.h. */
4579 _ACEOF
4580 cat confdefs.h >>conftest.$ac_ext
4581 cat >>conftest.$ac_ext <<_ACEOF
4582 /* end confdefs.h. */
4583 #include <stdarg.h>
4584 #include <stdio.h>
4585 #include <sys/types.h>
4586 #include <sys/stat.h>
4587 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4588 struct buf { int x; };
4589 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4590 static char *e (p, i)
4591 char **p;
4592 int i;
4593 {
4594 return p[i];
4595 }
4596 static char *f (char * (*g) (char **, int), char **p, ...)
4597 {
4598 char *s;
4599 va_list v;
4600 va_start (v,p);
4601 s = g (p, va_arg (v,int));
4602 va_end (v);
4603 return s;
4604 }
4605
4606 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4607 function prototypes and stuff, but not '\xHH' hex character constants.
4608 These don't provoke an error unfortunately, instead are silently treated
4609 as 'x'. The following induces an error, until -std1 is added to get
4610 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4611 array size at least. It's necessary to write '\x00'==0 to get something
4612 that's true only with -std1. */
4613 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4614
4615 int test (int i, double x);
4616 struct s1 {int (*f) (int a);};
4617 struct s2 {int (*f) (double a);};
4618 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4619 int argc;
4620 char **argv;
4621 int
4622 main ()
4623 {
4624 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4625 ;
4626 return 0;
4627 }
4628 _ACEOF
4629 # Don't try gcc -ansi; that turns off useful extensions and
4630 # breaks some systems' header files.
4631 # AIX -qlanglvl=ansi
4632 # Ultrix and OSF/1 -std1
4633 # HP-UX 10.20 and later -Ae
4634 # HP-UX older versions -Aa -D_HPUX_SOURCE
4635 # SVR4 -Xc -D__EXTENSIONS__
4636 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4637 do
4638 CC="$ac_save_CC $ac_arg"
4639 rm -f conftest.$ac_objext
4640 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4641 (eval $ac_compile) 2>conftest.er1
4642 ac_status=$?
4643 grep -v '^ *+' conftest.er1 >conftest.err
4644 rm -f conftest.er1
4645 cat conftest.err >&5
4646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4647 (exit $ac_status); } &&
4648 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4650 (eval $ac_try) 2>&5
4651 ac_status=$?
4652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4653 (exit $ac_status); }; } &&
4654 { ac_try='test -s conftest.$ac_objext'
4655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4656 (eval $ac_try) 2>&5
4657 ac_status=$?
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); }; }; then
4660 ac_cv_prog_cc_stdc=$ac_arg
4661 break
4662 else
4663 echo "$as_me: failed program was:" >&5
4664 sed 's/^/| /' conftest.$ac_ext >&5
4665
4666 fi
4667 rm -f conftest.err conftest.$ac_objext
4668 done
4669 rm -f conftest.$ac_ext conftest.$ac_objext
4670 CC=$ac_save_CC
4671
4672 fi
4673
4674 case "x$ac_cv_prog_cc_stdc" in
4675 x|xno)
4676 echo "$as_me:$LINENO: result: none needed" >&5
4677 echo "${ECHO_T}none needed" >&6 ;;
4678 *)
4679 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
4680 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
4681 CC="$CC $ac_cv_prog_cc_stdc" ;;
4682 esac
4683
4684 # Some people use a C++ compiler to compile C. Since we use `exit',
4685 # in C++ we need to declare it. In case someone uses the same compiler
4686 # for both compiling C and C++ we need to have the C++ compiler decide
4687 # the declaration of exit, since it's the most demanding environment.
4688 cat >conftest.$ac_ext <<_ACEOF
4689 #ifndef __cplusplus
4690 choke me
4691 #endif
4692 _ACEOF
4693 rm -f conftest.$ac_objext
4694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4695 (eval $ac_compile) 2>conftest.er1
4696 ac_status=$?
4697 grep -v '^ *+' conftest.er1 >conftest.err
4698 rm -f conftest.er1
4699 cat conftest.err >&5
4700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4701 (exit $ac_status); } &&
4702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4704 (eval $ac_try) 2>&5
4705 ac_status=$?
4706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4707 (exit $ac_status); }; } &&
4708 { ac_try='test -s conftest.$ac_objext'
4709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 (eval $ac_try) 2>&5
4711 ac_status=$?
4712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4713 (exit $ac_status); }; }; then
4714 for ac_declaration in \
4715 '' \
4716 'extern "C" void std::exit (int) throw (); using std::exit;' \
4717 'extern "C" void std::exit (int); using std::exit;' \
4718 'extern "C" void exit (int) throw ();' \
4719 'extern "C" void exit (int);' \
4720 'void exit (int);'
4721 do
4722 cat >conftest.$ac_ext <<_ACEOF
4723 /* confdefs.h. */
4724 _ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4728 $ac_declaration
4729 #include <stdlib.h>
4730 int
4731 main ()
4732 {
4733 exit (42);
4734 ;
4735 return 0;
4736 }
4737 _ACEOF
4738 rm -f conftest.$ac_objext
4739 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4740 (eval $ac_compile) 2>conftest.er1
4741 ac_status=$?
4742 grep -v '^ *+' conftest.er1 >conftest.err
4743 rm -f conftest.er1
4744 cat conftest.err >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } &&
4747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4749 (eval $ac_try) 2>&5
4750 ac_status=$?
4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4752 (exit $ac_status); }; } &&
4753 { ac_try='test -s conftest.$ac_objext'
4754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4755 (eval $ac_try) 2>&5
4756 ac_status=$?
4757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4758 (exit $ac_status); }; }; then
4759 :
4760 else
4761 echo "$as_me: failed program was:" >&5
4762 sed 's/^/| /' conftest.$ac_ext >&5
4763
4764 continue
4765 fi
4766 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4767 cat >conftest.$ac_ext <<_ACEOF
4768 /* confdefs.h. */
4769 _ACEOF
4770 cat confdefs.h >>conftest.$ac_ext
4771 cat >>conftest.$ac_ext <<_ACEOF
4772 /* end confdefs.h. */
4773 $ac_declaration
4774 int
4775 main ()
4776 {
4777 exit (42);
4778 ;
4779 return 0;
4780 }
4781 _ACEOF
4782 rm -f conftest.$ac_objext
4783 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4784 (eval $ac_compile) 2>conftest.er1
4785 ac_status=$?
4786 grep -v '^ *+' conftest.er1 >conftest.err
4787 rm -f conftest.er1
4788 cat conftest.err >&5
4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4790 (exit $ac_status); } &&
4791 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4793 (eval $ac_try) 2>&5
4794 ac_status=$?
4795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4796 (exit $ac_status); }; } &&
4797 { ac_try='test -s conftest.$ac_objext'
4798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4799 (eval $ac_try) 2>&5
4800 ac_status=$?
4801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4802 (exit $ac_status); }; }; then
4803 break
4804 else
4805 echo "$as_me: failed program was:" >&5
4806 sed 's/^/| /' conftest.$ac_ext >&5
4807
4808 fi
4809 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4810 done
4811 rm -f conftest*
4812 if test -n "$ac_declaration"; then
4813 echo '#ifdef __cplusplus' >>confdefs.h
4814 echo $ac_declaration >>confdefs.h
4815 echo '#endif' >>confdefs.h
4816 fi
4817
4818 else
4819 echo "$as_me: failed program was:" >&5
4820 sed 's/^/| /' conftest.$ac_ext >&5
4821
4822 fi
4823 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4824 ac_ext=c
4825 ac_cpp='$CPP $CPPFLAGS'
4826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4829
4830
4831 am_cv_prog_cc_stdc=$ac_cv_prog_cc_stdc
4832
4833 ac_ext=c
4834 ac_cpp='$CPP $CPPFLAGS'
4835 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4836 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4837 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4838 if test -n "$ac_tool_prefix"; then
4839 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4840 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4841 echo "$as_me:$LINENO: checking for $ac_word" >&5
4842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4843 if test "${ac_cv_prog_CC+set}" = set; then
4844 echo $ECHO_N "(cached) $ECHO_C" >&6
4845 else
4846 if test -n "$CC"; then
4847 ac_cv_prog_CC="$CC" # Let the user override the test.
4848 else
4849 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4850 for as_dir in $PATH
4851 do
4852 IFS=$as_save_IFS
4853 test -z "$as_dir" && as_dir=.
4854 for ac_exec_ext in '' $ac_executable_extensions; do
4855 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4856 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4857 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4858 break 2
4859 fi
4860 done
4861 done
4862
4863 fi
4864 fi
4865 CC=$ac_cv_prog_CC
4866 if test -n "$CC"; then
4867 echo "$as_me:$LINENO: result: $CC" >&5
4868 echo "${ECHO_T}$CC" >&6
4869 else
4870 echo "$as_me:$LINENO: result: no" >&5
4871 echo "${ECHO_T}no" >&6
4872 fi
4873
4874 fi
4875 if test -z "$ac_cv_prog_CC"; then
4876 ac_ct_CC=$CC
4877 # Extract the first word of "gcc", so it can be a program name with args.
4878 set dummy gcc; ac_word=$2
4879 echo "$as_me:$LINENO: checking for $ac_word" >&5
4880 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4881 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4882 echo $ECHO_N "(cached) $ECHO_C" >&6
4883 else
4884 if test -n "$ac_ct_CC"; then
4885 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4886 else
4887 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4888 for as_dir in $PATH
4889 do
4890 IFS=$as_save_IFS
4891 test -z "$as_dir" && as_dir=.
4892 for ac_exec_ext in '' $ac_executable_extensions; do
4893 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4894 ac_cv_prog_ac_ct_CC="gcc"
4895 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4896 break 2
4897 fi
4898 done
4899 done
4900
4901 fi
4902 fi
4903 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4904 if test -n "$ac_ct_CC"; then
4905 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4906 echo "${ECHO_T}$ac_ct_CC" >&6
4907 else
4908 echo "$as_me:$LINENO: result: no" >&5
4909 echo "${ECHO_T}no" >&6
4910 fi
4911
4912 CC=$ac_ct_CC
4913 else
4914 CC="$ac_cv_prog_CC"
4915 fi
4916
4917 if test -z "$CC"; then
4918 if test -n "$ac_tool_prefix"; then
4919 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4920 set dummy ${ac_tool_prefix}cc; ac_word=$2
4921 echo "$as_me:$LINENO: checking for $ac_word" >&5
4922 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4923 if test "${ac_cv_prog_CC+set}" = set; then
4924 echo $ECHO_N "(cached) $ECHO_C" >&6
4925 else
4926 if test -n "$CC"; then
4927 ac_cv_prog_CC="$CC" # Let the user override the test.
4928 else
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH
4931 do
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_exec_ext in '' $ac_executable_extensions; do
4935 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4936 ac_cv_prog_CC="${ac_tool_prefix}cc"
4937 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4938 break 2
4939 fi
4940 done
4941 done
4942
4943 fi
4944 fi
4945 CC=$ac_cv_prog_CC
4946 if test -n "$CC"; then
4947 echo "$as_me:$LINENO: result: $CC" >&5
4948 echo "${ECHO_T}$CC" >&6
4949 else
4950 echo "$as_me:$LINENO: result: no" >&5
4951 echo "${ECHO_T}no" >&6
4952 fi
4953
4954 fi
4955 if test -z "$ac_cv_prog_CC"; then
4956 ac_ct_CC=$CC
4957 # Extract the first word of "cc", so it can be a program name with args.
4958 set dummy cc; ac_word=$2
4959 echo "$as_me:$LINENO: checking for $ac_word" >&5
4960 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
4961 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964 if test -n "$ac_ct_CC"; then
4965 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4966 else
4967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4968 for as_dir in $PATH
4969 do
4970 IFS=$as_save_IFS
4971 test -z "$as_dir" && as_dir=.
4972 for ac_exec_ext in '' $ac_executable_extensions; do
4973 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4974 ac_cv_prog_ac_ct_CC="cc"
4975 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4976 break 2
4977 fi
4978 done
4979 done
4980
4981 fi
4982 fi
4983 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4984 if test -n "$ac_ct_CC"; then
4985 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
4986 echo "${ECHO_T}$ac_ct_CC" >&6
4987 else
4988 echo "$as_me:$LINENO: result: no" >&5
4989 echo "${ECHO_T}no" >&6
4990 fi
4991
4992 CC=$ac_ct_CC
4993 else
4994 CC="$ac_cv_prog_CC"
4995 fi
4996
4997 fi
4998 if test -z "$CC"; then
4999 # Extract the first word of "cc", so it can be a program name with args.
5000 set dummy cc; ac_word=$2
5001 echo "$as_me:$LINENO: checking for $ac_word" >&5
5002 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5003 if test "${ac_cv_prog_CC+set}" = set; then
5004 echo $ECHO_N "(cached) $ECHO_C" >&6
5005 else
5006 if test -n "$CC"; then
5007 ac_cv_prog_CC="$CC" # Let the user override the test.
5008 else
5009 ac_prog_rejected=no
5010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5011 for as_dir in $PATH
5012 do
5013 IFS=$as_save_IFS
5014 test -z "$as_dir" && as_dir=.
5015 for ac_exec_ext in '' $ac_executable_extensions; do
5016 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5017 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5018 ac_prog_rejected=yes
5019 continue
5020 fi
5021 ac_cv_prog_CC="cc"
5022 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5023 break 2
5024 fi
5025 done
5026 done
5027
5028 if test $ac_prog_rejected = yes; then
5029 # We found a bogon in the path, so make sure we never use it.
5030 set dummy $ac_cv_prog_CC
5031 shift
5032 if test $# != 0; then
5033 # We chose a different compiler from the bogus one.
5034 # However, it has the same basename, so the bogon will be chosen
5035 # first if we set CC to just the basename; use the full file name.
5036 shift
5037 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5038 fi
5039 fi
5040 fi
5041 fi
5042 CC=$ac_cv_prog_CC
5043 if test -n "$CC"; then
5044 echo "$as_me:$LINENO: result: $CC" >&5
5045 echo "${ECHO_T}$CC" >&6
5046 else
5047 echo "$as_me:$LINENO: result: no" >&5
5048 echo "${ECHO_T}no" >&6
5049 fi
5050
5051 fi
5052 if test -z "$CC"; then
5053 if test -n "$ac_tool_prefix"; then
5054 for ac_prog in cl
5055 do
5056 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5057 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5058 echo "$as_me:$LINENO: checking for $ac_word" >&5
5059 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5060 if test "${ac_cv_prog_CC+set}" = set; then
5061 echo $ECHO_N "(cached) $ECHO_C" >&6
5062 else
5063 if test -n "$CC"; then
5064 ac_cv_prog_CC="$CC" # Let the user override the test.
5065 else
5066 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5067 for as_dir in $PATH
5068 do
5069 IFS=$as_save_IFS
5070 test -z "$as_dir" && as_dir=.
5071 for ac_exec_ext in '' $ac_executable_extensions; do
5072 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5073 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5074 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5075 break 2
5076 fi
5077 done
5078 done
5079
5080 fi
5081 fi
5082 CC=$ac_cv_prog_CC
5083 if test -n "$CC"; then
5084 echo "$as_me:$LINENO: result: $CC" >&5
5085 echo "${ECHO_T}$CC" >&6
5086 else
5087 echo "$as_me:$LINENO: result: no" >&5
5088 echo "${ECHO_T}no" >&6
5089 fi
5090
5091 test -n "$CC" && break
5092 done
5093 fi
5094 if test -z "$CC"; then
5095 ac_ct_CC=$CC
5096 for ac_prog in cl
5097 do
5098 # Extract the first word of "$ac_prog", so it can be a program name with args.
5099 set dummy $ac_prog; ac_word=$2
5100 echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
5102 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105 if test -n "$ac_ct_CC"; then
5106 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5115 ac_cv_prog_ac_ct_CC="$ac_prog"
5116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5118 fi
5119 done
5120 done
5121
5122 fi
5123 fi
5124 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5125 if test -n "$ac_ct_CC"; then
5126 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5127 echo "${ECHO_T}$ac_ct_CC" >&6
5128 else
5129 echo "$as_me:$LINENO: result: no" >&5
5130 echo "${ECHO_T}no" >&6
5131 fi
5132
5133 test -n "$ac_ct_CC" && break
5134 done
5135
5136 CC=$ac_ct_CC
5137 fi
5138
5139 fi
5140
5141
5142 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5143 See \`config.log' for more details." >&5
5144 echo "$as_me: error: no acceptable C compiler found in \$PATH
5145 See \`config.log' for more details." >&2;}
5146 { (exit 1); exit 1; }; }
5147
5148 # Provide some information about the compiler.
5149 echo "$as_me:$LINENO:" \
5150 "checking for C compiler version" >&5
5151 ac_compiler=`set X $ac_compile; echo $2`
5152 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
5153 (eval $ac_compiler --version </dev/null >&5) 2>&5
5154 ac_status=$?
5155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5156 (exit $ac_status); }
5157 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
5158 (eval $ac_compiler -v </dev/null >&5) 2>&5
5159 ac_status=$?
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); }
5162 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
5163 (eval $ac_compiler -V </dev/null >&5) 2>&5
5164 ac_status=$?
5165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5166 (exit $ac_status); }
5167
5168 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5169 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
5170 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5171 echo $ECHO_N "(cached) $ECHO_C" >&6
5172 else
5173 cat >conftest.$ac_ext <<_ACEOF
5174 /* confdefs.h. */
5175 _ACEOF
5176 cat confdefs.h >>conftest.$ac_ext
5177 cat >>conftest.$ac_ext <<_ACEOF
5178 /* end confdefs.h. */
5179
5180 int
5181 main ()
5182 {
5183 #ifndef __GNUC__
5184 choke me
5185 #endif
5186
5187 ;
5188 return 0;
5189 }
5190 _ACEOF
5191 rm -f conftest.$ac_objext
5192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5193 (eval $ac_compile) 2>conftest.er1
5194 ac_status=$?
5195 grep -v '^ *+' conftest.er1 >conftest.err
5196 rm -f conftest.er1
5197 cat conftest.err >&5
5198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5199 (exit $ac_status); } &&
5200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5202 (eval $ac_try) 2>&5
5203 ac_status=$?
5204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5205 (exit $ac_status); }; } &&
5206 { ac_try='test -s conftest.$ac_objext'
5207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5208 (eval $ac_try) 2>&5
5209 ac_status=$?
5210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5211 (exit $ac_status); }; }; then
5212 ac_compiler_gnu=yes
5213 else
5214 echo "$as_me: failed program was:" >&5
5215 sed 's/^/| /' conftest.$ac_ext >&5
5216
5217 ac_compiler_gnu=no
5218 fi
5219 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5220 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5221
5222 fi
5223 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5224 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
5225 GCC=`test $ac_compiler_gnu = yes && echo yes`
5226 ac_test_CFLAGS=${CFLAGS+set}
5227 ac_save_CFLAGS=$CFLAGS
5228 CFLAGS="-g"
5229 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5230 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
5231 if test "${ac_cv_prog_cc_g+set}" = set; then
5232 echo $ECHO_N "(cached) $ECHO_C" >&6
5233 else
5234 cat >conftest.$ac_ext <<_ACEOF
5235 /* confdefs.h. */
5236 _ACEOF
5237 cat confdefs.h >>conftest.$ac_ext
5238 cat >>conftest.$ac_ext <<_ACEOF
5239 /* end confdefs.h. */
5240
5241 int
5242 main ()
5243 {
5244
5245 ;
5246 return 0;
5247 }
5248 _ACEOF
5249 rm -f conftest.$ac_objext
5250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5251 (eval $ac_compile) 2>conftest.er1
5252 ac_status=$?
5253 grep -v '^ *+' conftest.er1 >conftest.err
5254 rm -f conftest.er1
5255 cat conftest.err >&5
5256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5257 (exit $ac_status); } &&
5258 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5260 (eval $ac_try) 2>&5
5261 ac_status=$?
5262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5263 (exit $ac_status); }; } &&
5264 { ac_try='test -s conftest.$ac_objext'
5265 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5266 (eval $ac_try) 2>&5
5267 ac_status=$?
5268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5269 (exit $ac_status); }; }; then
5270 ac_cv_prog_cc_g=yes
5271 else
5272 echo "$as_me: failed program was:" >&5
5273 sed 's/^/| /' conftest.$ac_ext >&5
5274
5275 ac_cv_prog_cc_g=no
5276 fi
5277 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5278 fi
5279 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
5280 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
5281 if test "$ac_test_CFLAGS" = set; then
5282 CFLAGS=$ac_save_CFLAGS
5283 elif test $ac_cv_prog_cc_g = yes; then
5284 if test "$GCC" = yes; then
5285 CFLAGS="-g -O2"
5286 else
5287 CFLAGS="-g"
5288 fi
5289 else
5290 if test "$GCC" = yes; then
5291 CFLAGS="-O2"
5292 else
5293 CFLAGS=
5294 fi
5295 fi
5296 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
5297 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
5298 if test "${ac_cv_prog_cc_stdc+set}" = set; then
5299 echo $ECHO_N "(cached) $ECHO_C" >&6
5300 else
5301 ac_cv_prog_cc_stdc=no
5302 ac_save_CC=$CC
5303 cat >conftest.$ac_ext <<_ACEOF
5304 /* confdefs.h. */
5305 _ACEOF
5306 cat confdefs.h >>conftest.$ac_ext
5307 cat >>conftest.$ac_ext <<_ACEOF
5308 /* end confdefs.h. */
5309 #include <stdarg.h>
5310 #include <stdio.h>
5311 #include <sys/types.h>
5312 #include <sys/stat.h>
5313 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5314 struct buf { int x; };
5315 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5316 static char *e (p, i)
5317 char **p;
5318 int i;
5319 {
5320 return p[i];
5321 }
5322 static char *f (char * (*g) (char **, int), char **p, ...)
5323 {
5324 char *s;
5325 va_list v;
5326 va_start (v,p);
5327 s = g (p, va_arg (v,int));
5328 va_end (v);
5329 return s;
5330 }
5331
5332 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5333 function prototypes and stuff, but not '\xHH' hex character constants.
5334 These don't provoke an error unfortunately, instead are silently treated
5335 as 'x'. The following induces an error, until -std1 is added to get
5336 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5337 array size at least. It's necessary to write '\x00'==0 to get something
5338 that's true only with -std1. */
5339 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5340
5341 int test (int i, double x);
5342 struct s1 {int (*f) (int a);};
5343 struct s2 {int (*f) (double a);};
5344 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5345 int argc;
5346 char **argv;
5347 int
5348 main ()
5349 {
5350 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5351 ;
5352 return 0;
5353 }
5354 _ACEOF
5355 # Don't try gcc -ansi; that turns off useful extensions and
5356 # breaks some systems' header files.
5357 # AIX -qlanglvl=ansi
5358 # Ultrix and OSF/1 -std1
5359 # HP-UX 10.20 and later -Ae
5360 # HP-UX older versions -Aa -D_HPUX_SOURCE
5361 # SVR4 -Xc -D__EXTENSIONS__
5362 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5363 do
5364 CC="$ac_save_CC $ac_arg"
5365 rm -f conftest.$ac_objext
5366 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5367 (eval $ac_compile) 2>conftest.er1
5368 ac_status=$?
5369 grep -v '^ *+' conftest.er1 >conftest.err
5370 rm -f conftest.er1
5371 cat conftest.err >&5
5372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5373 (exit $ac_status); } &&
5374 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5376 (eval $ac_try) 2>&5
5377 ac_status=$?
5378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5379 (exit $ac_status); }; } &&
5380 { ac_try='test -s conftest.$ac_objext'
5381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5382 (eval $ac_try) 2>&5
5383 ac_status=$?
5384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5385 (exit $ac_status); }; }; then
5386 ac_cv_prog_cc_stdc=$ac_arg
5387 break
5388 else
5389 echo "$as_me: failed program was:" >&5
5390 sed 's/^/| /' conftest.$ac_ext >&5
5391
5392 fi
5393 rm -f conftest.err conftest.$ac_objext
5394 done
5395 rm -f conftest.$ac_ext conftest.$ac_objext
5396 CC=$ac_save_CC
5397
5398 fi
5399
5400 case "x$ac_cv_prog_cc_stdc" in
5401 x|xno)
5402 echo "$as_me:$LINENO: result: none needed" >&5
5403 echo "${ECHO_T}none needed" >&6 ;;
5404 *)
5405 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
5406 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
5407 CC="$CC $ac_cv_prog_cc_stdc" ;;
5408 esac
5409
5410 # Some people use a C++ compiler to compile C. Since we use `exit',
5411 # in C++ we need to declare it. In case someone uses the same compiler
5412 # for both compiling C and C++ we need to have the C++ compiler decide
5413 # the declaration of exit, since it's the most demanding environment.
5414 cat >conftest.$ac_ext <<_ACEOF
5415 #ifndef __cplusplus
5416 choke me
5417 #endif
5418 _ACEOF
5419 rm -f conftest.$ac_objext
5420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5421 (eval $ac_compile) 2>conftest.er1
5422 ac_status=$?
5423 grep -v '^ *+' conftest.er1 >conftest.err
5424 rm -f conftest.er1
5425 cat conftest.err >&5
5426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5427 (exit $ac_status); } &&
5428 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5430 (eval $ac_try) 2>&5
5431 ac_status=$?
5432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5433 (exit $ac_status); }; } &&
5434 { ac_try='test -s conftest.$ac_objext'
5435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5436 (eval $ac_try) 2>&5
5437 ac_status=$?
5438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5439 (exit $ac_status); }; }; then
5440 for ac_declaration in \
5441 '' \
5442 'extern "C" void std::exit (int) throw (); using std::exit;' \
5443 'extern "C" void std::exit (int); using std::exit;' \
5444 'extern "C" void exit (int) throw ();' \
5445 'extern "C" void exit (int);' \
5446 'void exit (int);'
5447 do
5448 cat >conftest.$ac_ext <<_ACEOF
5449 /* confdefs.h. */
5450 _ACEOF
5451 cat confdefs.h >>conftest.$ac_ext
5452 cat >>conftest.$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5454 $ac_declaration
5455 #include <stdlib.h>
5456 int
5457 main ()
5458 {
5459 exit (42);
5460 ;
5461 return 0;
5462 }
5463 _ACEOF
5464 rm -f conftest.$ac_objext
5465 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5466 (eval $ac_compile) 2>conftest.er1
5467 ac_status=$?
5468 grep -v '^ *+' conftest.er1 >conftest.err
5469 rm -f conftest.er1
5470 cat conftest.err >&5
5471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5472 (exit $ac_status); } &&
5473 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5475 (eval $ac_try) 2>&5
5476 ac_status=$?
5477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5478 (exit $ac_status); }; } &&
5479 { ac_try='test -s conftest.$ac_objext'
5480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5481 (eval $ac_try) 2>&5
5482 ac_status=$?
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); }; }; then
5485 :
5486 else
5487 echo "$as_me: failed program was:" >&5
5488 sed 's/^/| /' conftest.$ac_ext >&5
5489
5490 continue
5491 fi
5492 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5493 cat >conftest.$ac_ext <<_ACEOF
5494 /* confdefs.h. */
5495 _ACEOF
5496 cat confdefs.h >>conftest.$ac_ext
5497 cat >>conftest.$ac_ext <<_ACEOF
5498 /* end confdefs.h. */
5499 $ac_declaration
5500 int
5501 main ()
5502 {
5503 exit (42);
5504 ;
5505 return 0;
5506 }
5507 _ACEOF
5508 rm -f conftest.$ac_objext
5509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
5510 (eval $ac_compile) 2>conftest.er1
5511 ac_status=$?
5512 grep -v '^ *+' conftest.er1 >conftest.err
5513 rm -f conftest.er1
5514 cat conftest.err >&5
5515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5516 (exit $ac_status); } &&
5517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5519 (eval $ac_try) 2>&5
5520 ac_status=$?
5521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5522 (exit $ac_status); }; } &&
5523 { ac_try='test -s conftest.$ac_objext'
5524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5525 (eval $ac_try) 2>&5
5526 ac_status=$?
5527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5528 (exit $ac_status); }; }; then
5529 break
5530 else
5531 echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5533
5534 fi
5535 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5536 done
5537 rm -f conftest*
5538 if test -n "$ac_declaration"; then
5539 echo '#ifdef __cplusplus' >>confdefs.h
5540 echo $ac_declaration >>confdefs.h
5541 echo '#endif' >>confdefs.h
5542 fi
5543
5544 else
5545 echo "$as_me: failed program was:" >&5
5546 sed 's/^/| /' conftest.$ac_ext >&5
5547
5548 fi
5549 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
5550 ac_ext=c
5551 ac_cpp='$CPP $CPPFLAGS'
5552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5555
5556 # Find a good install program. We prefer a C program (faster),
5557 # so one script is as good as another. But avoid the broken or
5558 # incompatible versions:
5559 # SysV /etc/install, /usr/sbin/install
5560 # SunOS /usr/etc/install
5561 # IRIX /sbin/install
5562 # AIX /bin/install
5563 # AmigaOS /C/install, which installs bootblocks on floppy discs
5564 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5565 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5566 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5567 # OS/2's system install, which has a completely different semantic
5568 # ./install, which can be erroneously created by make from ./install.sh.
5569 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5570 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
5571 if test -z "$INSTALL"; then
5572 if test "${ac_cv_path_install+set}" = set; then
5573 echo $ECHO_N "(cached) $ECHO_C" >&6
5574 else
5575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5576 for as_dir in $PATH
5577 do
5578 IFS=$as_save_IFS
5579 test -z "$as_dir" && as_dir=.
5580 # Account for people who put trailing slashes in PATH elements.
5581 case $as_dir/ in
5582 ./ | .// | /cC/* | \
5583 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5584 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5585 /usr/ucb/* ) ;;
5586 *)
5587 # OSF1 and SCO ODT 3.0 have their own names for install.
5588 # Don't use installbsd from OSF since it installs stuff as root
5589 # by default.
5590 for ac_prog in ginstall scoinst install; do
5591 for ac_exec_ext in '' $ac_executable_extensions; do
5592 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5593 if test $ac_prog = install &&
5594 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5595 # AIX install. It has an incompatible calling convention.
5596 :
5597 elif test $ac_prog = install &&
5598 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5599 # program-specific install script used by HP pwplus--don't use.
5600 :
5601 else
5602 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5603 break 3
5604 fi
5605 fi
5606 done
5607 done
5608 ;;
5609 esac
5610 done
5611
5612
5613 fi
5614 if test "${ac_cv_path_install+set}" = set; then
5615 INSTALL=$ac_cv_path_install
5616 else
5617 # As a last resort, use the slow shell script. We don't cache a
5618 # path for INSTALL within a source directory, because that will
5619 # break other packages using the cache if that directory is
5620 # removed, or if the path is relative.
5621 INSTALL=$ac_install_sh
5622 fi
5623 fi
5624 echo "$as_me:$LINENO: result: $INSTALL" >&5
5625 echo "${ECHO_T}$INSTALL" >&6
5626
5627 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5628 # It thinks the first close brace ends the variable substitution.
5629 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5630
5631 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5632
5633 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5634
5635 echo "$as_me:$LINENO: checking whether ln -s works" >&5
5636 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
5637 LN_S=$as_ln_s
5638 if test "$LN_S" = "ln -s"; then
5639 echo "$as_me:$LINENO: result: yes" >&5
5640 echo "${ECHO_T}yes" >&6
5641 else
5642 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
5643 echo "${ECHO_T}no, using $LN_S" >&6
5644 fi
5645
5646
5647 # Check whether --enable-shared or --disable-shared was given.
5648 if test "${enable_shared+set}" = set; then
5649 enableval="$enable_shared"
5650 p=${PACKAGE-default}
5651 case $enableval in
5652 yes) enable_shared=yes ;;
5653 no) enable_shared=no ;;
5654 *)
5655 enable_shared=no
5656 # Look at the argument we got. We use all the common list separators.
5657 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5658 for pkg in $enableval; do
5659 IFS="$lt_save_ifs"
5660 if test "X$pkg" = "X$p"; then
5661 enable_shared=yes
5662 fi
5663 done
5664 IFS="$lt_save_ifs"
5665 ;;
5666 esac
5667 else
5668 enable_shared=yes
5669 fi;
5670
5671 # Check whether --enable-static or --disable-static was given.
5672 if test "${enable_static+set}" = set; then
5673 enableval="$enable_static"
5674 p=${PACKAGE-default}
5675 case $enableval in
5676 yes) enable_static=yes ;;
5677 no) enable_static=no ;;
5678 *)
5679 enable_static=no
5680 # Look at the argument we got. We use all the common list separators.
5681 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5682 for pkg in $enableval; do
5683 IFS="$lt_save_ifs"
5684 if test "X$pkg" = "X$p"; then
5685 enable_static=yes
5686 fi
5687 done
5688 IFS="$lt_save_ifs"
5689 ;;
5690 esac
5691 else
5692 enable_static=yes
5693 fi;
5694
5695 # Check whether --enable-fast-install or --disable-fast-install was given.
5696 if test "${enable_fast_install+set}" = set; then
5697 enableval="$enable_fast_install"
5698 p=${PACKAGE-default}
5699 case $enableval in
5700 yes) enable_fast_install=yes ;;
5701 no) enable_fast_install=no ;;
5702 *)
5703 enable_fast_install=no
5704 # Look at the argument we got. We use all the common list separators.
5705 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
5706 for pkg in $enableval; do
5707 IFS="$lt_save_ifs"
5708 if test "X$pkg" = "X$p"; then
5709 enable_fast_install=yes
5710 fi
5711 done
5712 IFS="$lt_save_ifs"
5713 ;;
5714 esac
5715 else
5716 enable_fast_install=yes
5717 fi;
5718
5719 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
5720 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
5721 if test "${lt_cv_path_SED+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724 # Loop through the user's path and test for sed and gsed.
5725 # Then use that list of sed's as ones to test for truncation.
5726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5727 for as_dir in $PATH
5728 do
5729 IFS=$as_save_IFS
5730 test -z "$as_dir" && as_dir=.
5731 for lt_ac_prog in sed gsed; do
5732 for ac_exec_ext in '' $ac_executable_extensions; do
5733 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
5734 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
5735 fi
5736 done
5737 done
5738 done
5739 lt_ac_max=0
5740 lt_ac_count=0
5741 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
5742 # along with /bin/sed that truncates output.
5743 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
5744 test ! -f $lt_ac_sed && break
5745 cat /dev/null > conftest.in
5746 lt_ac_count=0
5747 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
5748 # Check for GNU sed and select it if it is found.
5749 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
5750 lt_cv_path_SED=$lt_ac_sed
5751 break
5752 fi
5753 while true; do
5754 cat conftest.in conftest.in >conftest.tmp
5755 mv conftest.tmp conftest.in
5756 cp conftest.in conftest.nl
5757 echo >>conftest.nl
5758 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
5759 cmp -s conftest.out conftest.nl || break
5760 # 10000 chars as input seems more than enough
5761 test $lt_ac_count -gt 10 && break
5762 lt_ac_count=`expr $lt_ac_count + 1`
5763 if test $lt_ac_count -gt $lt_ac_max; then
5764 lt_ac_max=$lt_ac_count
5765 lt_cv_path_SED=$lt_ac_sed
5766 fi
5767 done
5768 done
5769 SED=$lt_cv_path_SED
5770
5771 fi
5772
5773 echo "$as_me:$LINENO: result: $SED" >&5
5774 echo "${ECHO_T}$SED" >&6
5775
5776
5777 # Check whether --with-gnu-ld or --without-gnu-ld was given.
5778 if test "${with_gnu_ld+set}" = set; then
5779 withval="$with_gnu_ld"
5780 test "$withval" = no || with_gnu_ld=yes
5781 else
5782 with_gnu_ld=no
5783 fi;
5784 ac_prog=ld
5785 if test "$GCC" = yes; then
5786 # Check if gcc -print-prog-name=ld gives a path.
5787 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
5788 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
5789 case $host in
5790 *-*-mingw*)
5791 # gcc leaves a trailing carriage return which upsets mingw
5792 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
5793 *)
5794 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
5795 esac
5796 case $ac_prog in
5797 # Accept absolute paths.
5798 [\\/]* | ?:[\\/]*)
5799 re_direlt='/[^/][^/]*/\.\./'
5800 # Canonicalize the pathname of ld
5801 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
5802 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
5803 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
5804 done
5805 test -z "$LD" && LD="$ac_prog"
5806 ;;
5807 "")
5808 # If it fails, then pretend we aren't using GCC.
5809 ac_prog=ld
5810 ;;
5811 *)
5812 # If it is relative, then search for the first ld in PATH.
5813 with_gnu_ld=unknown
5814 ;;
5815 esac
5816 elif test "$with_gnu_ld" = yes; then
5817 echo "$as_me:$LINENO: checking for GNU ld" >&5
5818 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
5819 else
5820 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
5821 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
5822 fi
5823 if test "${lt_cv_path_LD+set}" = set; then
5824 echo $ECHO_N "(cached) $ECHO_C" >&6
5825 else
5826 if test -z "$LD"; then
5827 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5828 for ac_dir in $PATH; do
5829 IFS="$lt_save_ifs"
5830 test -z "$ac_dir" && ac_dir=.
5831 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
5832 lt_cv_path_LD="$ac_dir/$ac_prog"
5833 # Check to see if the program is GNU ld. I'd rather use --version,
5834 # but apparently some GNU ld's only accept -v.
5835 # Break only if it was the GNU/non-GNU ld that we prefer.
5836 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
5837 *GNU* | *'with BFD'*)
5838 test "$with_gnu_ld" != no && break
5839 ;;
5840 *)
5841 test "$with_gnu_ld" != yes && break
5842 ;;
5843 esac
5844 fi
5845 done
5846 IFS="$lt_save_ifs"
5847 else
5848 lt_cv_path_LD="$LD" # Let the user override the test with a path.
5849 fi
5850 fi
5851
5852 LD="$lt_cv_path_LD"
5853 if test -n "$LD"; then
5854 echo "$as_me:$LINENO: result: $LD" >&5
5855 echo "${ECHO_T}$LD" >&6
5856 else
5857 echo "$as_me:$LINENO: result: no" >&5
5858 echo "${ECHO_T}no" >&6
5859 fi
5860 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
5861 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
5862 { (exit 1); exit 1; }; }
5863 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
5864 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
5865 if test "${lt_cv_prog_gnu_ld+set}" = set; then
5866 echo $ECHO_N "(cached) $ECHO_C" >&6
5867 else
5868 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
5869 case `$LD -v 2>&1 </dev/null` in
5870 *GNU* | *'with BFD'*)
5871 lt_cv_prog_gnu_ld=yes
5872 ;;
5873 *)
5874 lt_cv_prog_gnu_ld=no
5875 ;;
5876 esac
5877 fi
5878 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
5879 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
5880 with_gnu_ld=$lt_cv_prog_gnu_ld
5881
5882
5883 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
5884 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
5885 if test "${lt_cv_ld_reload_flag+set}" = set; then
5886 echo $ECHO_N "(cached) $ECHO_C" >&6
5887 else
5888 lt_cv_ld_reload_flag='-r'
5889 fi
5890 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
5891 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
5892 reload_flag=$lt_cv_ld_reload_flag
5893 case $reload_flag in
5894 "" | " "*) ;;
5895 *) reload_flag=" $reload_flag" ;;
5896 esac
5897 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5898
5899 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
5900 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
5901 if test "${lt_cv_path_NM+set}" = set; then
5902 echo $ECHO_N "(cached) $ECHO_C" >&6
5903 else
5904 if test -n "$NM"; then
5905 # Let the user override the test.
5906 lt_cv_path_NM="$NM"
5907 else
5908 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
5909 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
5910 IFS="$lt_save_ifs"
5911 test -z "$ac_dir" && ac_dir=.
5912 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
5913 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
5914 # Check to see if the nm accepts a BSD-compat flag.
5915 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
5916 # nm: unknown option "B" ignored
5917 # Tru64's nm complains that /dev/null is an invalid object file
5918 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
5919 */dev/null* | *'Invalid file or object type'*)
5920 lt_cv_path_NM="$tmp_nm -B"
5921 break
5922 ;;
5923 *)
5924 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
5925 */dev/null*)
5926 lt_cv_path_NM="$tmp_nm -p"
5927 break
5928 ;;
5929 *)
5930 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
5931 continue # so that we can try to find one that supports BSD flags
5932 ;;
5933 esac
5934 esac
5935 fi
5936 done
5937 IFS="$lt_save_ifs"
5938 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
5939 fi
5940 fi
5941 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
5942 echo "${ECHO_T}$lt_cv_path_NM" >&6
5943 NM="$lt_cv_path_NM"
5944
5945 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
5946 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
5947 if test "${lt_cv_deplibs_check_method+set}" = set; then
5948 echo $ECHO_N "(cached) $ECHO_C" >&6
5949 else
5950 lt_cv_file_magic_cmd='$MAGIC_CMD'
5951 lt_cv_file_magic_test_file=
5952 lt_cv_deplibs_check_method='unknown'
5953 # Need to set the preceding variable on all platforms that support
5954 # interlibrary dependencies.
5955 # 'none' -- dependencies not supported.
5956 # `unknown' -- same as none, but documents that we really don't know.
5957 # 'pass_all' -- all dependencies passed with no checks.
5958 # 'test_compile' -- check by making test program.
5959 # 'file_magic [[regex]]' -- check by looking for files in library path
5960 # which responds to the $file_magic_cmd with a given extended regex.
5961 # If you have `file' or equivalent on your system and you're not sure
5962 # whether `pass_all' will *always* work, you probably want this one.
5963
5964 case $host_os in
5965 aix4* | aix5*)
5966 lt_cv_deplibs_check_method=pass_all
5967 ;;
5968
5969 beos*)
5970 lt_cv_deplibs_check_method=pass_all
5971 ;;
5972
5973 bsdi4*)
5974 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5975 lt_cv_file_magic_cmd='/usr/bin/file -L'
5976 lt_cv_file_magic_test_file=/shlib/libc.so
5977 ;;
5978
5979 cygwin*)
5980 # func_win32_libid is a shell function defined in ltmain.sh
5981 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5982 lt_cv_file_magic_cmd='func_win32_libid'
5983 ;;
5984
5985 mingw* | pw32*)
5986 # Base MSYS/MinGW do not provide the 'file' command needed by
5987 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
5988 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
5989 lt_cv_file_magic_cmd='$OBJDUMP -f'
5990 ;;
5991
5992 darwin* | rhapsody*)
5993 lt_cv_deplibs_check_method=pass_all
5994 ;;
5995
5996 freebsd* | kfreebsd*-gnu)
5997 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
5998 case $host_cpu in
5999 i*86 )
6000 # Not sure whether the presence of OpenBSD here was a mistake.
6001 # Let's accept both of them until this is cleared up.
6002 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
6003 lt_cv_file_magic_cmd=/usr/bin/file
6004 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6005 ;;
6006 esac
6007 else
6008 lt_cv_deplibs_check_method=pass_all
6009 fi
6010 ;;
6011
6012 gnu*)
6013 lt_cv_deplibs_check_method=pass_all
6014 ;;
6015
6016 hpux10.20* | hpux11*)
6017 lt_cv_file_magic_cmd=/usr/bin/file
6018 case "$host_cpu" in
6019 ia64*)
6020 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
6021 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
6022 ;;
6023 hppa*64*)
6024 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]'
6025 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
6026 ;;
6027 *)
6028 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
6029 lt_cv_file_magic_test_file=/usr/lib/libc.sl
6030 ;;
6031 esac
6032 ;;
6033
6034 irix5* | irix6* | nonstopux*)
6035 case $LD in
6036 *-32|*"-32 ") libmagic=32-bit;;
6037 *-n32|*"-n32 ") libmagic=N32;;
6038 *-64|*"-64 ") libmagic=64-bit;;
6039 *) libmagic=never-match;;
6040 esac
6041 lt_cv_deplibs_check_method=pass_all
6042 ;;
6043
6044 # This must be Linux ELF.
6045 linux*)
6046 lt_cv_deplibs_check_method=pass_all
6047 ;;
6048
6049 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
6050 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
6051 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
6052 else
6053 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
6054 fi
6055 ;;
6056
6057 newos6*)
6058 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
6059 lt_cv_file_magic_cmd=/usr/bin/file
6060 lt_cv_file_magic_test_file=/usr/lib/libnls.so
6061 ;;
6062
6063 nto-qnx*)
6064 lt_cv_deplibs_check_method=unknown
6065 ;;
6066
6067 openbsd*)
6068 lt_cv_file_magic_cmd=/usr/bin/file
6069 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
6070 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
6071 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
6072 else
6073 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
6074 fi
6075 ;;
6076
6077 osf3* | osf4* | osf5*)
6078 lt_cv_deplibs_check_method=pass_all
6079 ;;
6080
6081 sco3.2v5*)
6082 lt_cv_deplibs_check_method=pass_all
6083 ;;
6084
6085 solaris*)
6086 lt_cv_deplibs_check_method=pass_all
6087 ;;
6088
6089 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
6090 case $host_vendor in
6091 motorola)
6092 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]'
6093 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
6094 ;;
6095 ncr)
6096 lt_cv_deplibs_check_method=pass_all
6097 ;;
6098 sequent)
6099 lt_cv_file_magic_cmd='/bin/file'
6100 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
6101 ;;
6102 sni)
6103 lt_cv_file_magic_cmd='/bin/file'
6104 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
6105 lt_cv_file_magic_test_file=/lib/libc.so
6106 ;;
6107 siemens)
6108 lt_cv_deplibs_check_method=pass_all
6109 ;;
6110 esac
6111 ;;
6112
6113 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
6114 lt_cv_deplibs_check_method=pass_all
6115 ;;
6116 esac
6117
6118 fi
6119 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
6120 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
6121 file_magic_cmd=$lt_cv_file_magic_cmd
6122 deplibs_check_method=$lt_cv_deplibs_check_method
6123 test -z "$deplibs_check_method" && deplibs_check_method=unknown
6124
6125
6126
6127
6128 # If no C compiler was specified, use CC.
6129 LTCC=${LTCC-"$CC"}
6130
6131 # Allow CC to be a program name with arguments.
6132 compiler=$CC
6133
6134 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
6135 if test "${enable_libtool_lock+set}" = set; then
6136 enableval="$enable_libtool_lock"
6137
6138 fi;
6139 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6140
6141 # Some flags need to be propagated to the compiler or linker for good
6142 # libtool support.
6143 case $host in
6144 ia64-*-hpux*)
6145 # Find out which ABI we are using.
6146 echo 'int i;' > conftest.$ac_ext
6147 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6148 (eval $ac_compile) 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; then
6152 case `/usr/bin/file conftest.$ac_objext` in
6153 *ELF-32*)
6154 HPUX_IA64_MODE="32"
6155 ;;
6156 *ELF-64*)
6157 HPUX_IA64_MODE="64"
6158 ;;
6159 esac
6160 fi
6161 rm -rf conftest*
6162 ;;
6163 *-*-irix6*)
6164 # Find out which ABI we are using.
6165 echo '#line 6165 "configure"' > conftest.$ac_ext
6166 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6167 (eval $ac_compile) 2>&5
6168 ac_status=$?
6169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6170 (exit $ac_status); }; then
6171 if test "$lt_cv_prog_gnu_ld" = yes; then
6172 case `/usr/bin/file conftest.$ac_objext` in
6173 *32-bit*)
6174 LD="${LD-ld} -melf32bsmip"
6175 ;;
6176 *N32*)
6177 LD="${LD-ld} -melf32bmipn32"
6178 ;;
6179 *64-bit*)
6180 LD="${LD-ld} -melf64bmip"
6181 ;;
6182 esac
6183 else
6184 case `/usr/bin/file conftest.$ac_objext` in
6185 *32-bit*)
6186 LD="${LD-ld} -32"
6187 ;;
6188 *N32*)
6189 LD="${LD-ld} -n32"
6190 ;;
6191 *64-bit*)
6192 LD="${LD-ld} -64"
6193 ;;
6194 esac
6195 fi
6196 fi
6197 rm -rf conftest*
6198 ;;
6199
6200 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
6201 # Find out which ABI we are using.
6202 echo 'int i;' > conftest.$ac_ext
6203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6204 (eval $ac_compile) 2>&5
6205 ac_status=$?
6206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6207 (exit $ac_status); }; then
6208 case "`/usr/bin/file conftest.o`" in
6209 *32-bit*)
6210 case $host in
6211 x86_64-*linux*)
6212 LD="${LD-ld} -m elf_i386"
6213 ;;
6214 ppc64-*linux*|powerpc64-*linux*)
6215 LD="${LD-ld} -m elf32ppclinux"
6216 ;;
6217 s390x-*linux*)
6218 LD="${LD-ld} -m elf_s390"
6219 ;;
6220 sparc64-*linux*)
6221 LD="${LD-ld} -m elf32_sparc"
6222 ;;
6223 esac
6224 ;;
6225 *64-bit*)
6226 case $host in
6227 x86_64-*linux*)
6228 LD="${LD-ld} -m elf_x86_64"
6229 ;;
6230 ppc*-*linux*|powerpc*-*linux*)
6231 LD="${LD-ld} -m elf64ppc"
6232 ;;
6233 s390*-*linux*)
6234 LD="${LD-ld} -m elf64_s390"
6235 ;;
6236 sparc*-*linux*)
6237 LD="${LD-ld} -m elf64_sparc"
6238 ;;
6239 esac
6240 ;;
6241 esac
6242 fi
6243 rm -rf conftest*
6244 ;;
6245
6246 *-*-sco3.2v5*)
6247 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6248 SAVE_CFLAGS="$CFLAGS"
6249 CFLAGS="$CFLAGS -belf"
6250 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
6251 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
6252 if test "${lt_cv_cc_needs_belf+set}" = set; then
6253 echo $ECHO_N "(cached) $ECHO_C" >&6
6254 else
6255 ac_ext=c
6256 ac_cpp='$CPP $CPPFLAGS'
6257 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6258 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6259 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6260
6261 cat >conftest.$ac_ext <<_ACEOF
6262 /* confdefs.h. */
6263 _ACEOF
6264 cat confdefs.h >>conftest.$ac_ext
6265 cat >>conftest.$ac_ext <<_ACEOF
6266 /* end confdefs.h. */
6267
6268 int
6269 main ()
6270 {
6271
6272 ;
6273 return 0;
6274 }
6275 _ACEOF
6276 rm -f conftest.$ac_objext conftest$ac_exeext
6277 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6278 (eval $ac_link) 2>conftest.er1
6279 ac_status=$?
6280 grep -v '^ *+' conftest.er1 >conftest.err
6281 rm -f conftest.er1
6282 cat conftest.err >&5
6283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6284 (exit $ac_status); } &&
6285 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6287 (eval $ac_try) 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; } &&
6291 { ac_try='test -s conftest$ac_exeext'
6292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6293 (eval $ac_try) 2>&5
6294 ac_status=$?
6295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6296 (exit $ac_status); }; }; then
6297 lt_cv_cc_needs_belf=yes
6298 else
6299 echo "$as_me: failed program was:" >&5
6300 sed 's/^/| /' conftest.$ac_ext >&5
6301
6302 lt_cv_cc_needs_belf=no
6303 fi
6304 rm -f conftest.err conftest.$ac_objext \
6305 conftest$ac_exeext conftest.$ac_ext
6306 ac_ext=c
6307 ac_cpp='$CPP $CPPFLAGS'
6308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6311
6312 fi
6313 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
6314 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
6315 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6316 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6317 CFLAGS="$SAVE_CFLAGS"
6318 fi
6319 ;;
6320
6321 esac
6322
6323 need_locks="$enable_libtool_lock"
6324
6325
6326
6327 for ac_header in dlfcn.h
6328 do
6329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6330 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6331 echo "$as_me:$LINENO: checking for $ac_header" >&5
6332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6333 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 fi
6336 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6337 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6338 else
6339 # Is the header compilable?
6340 echo "$as_me:$LINENO: checking $ac_header usability" >&5
6341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
6342 cat >conftest.$ac_ext <<_ACEOF
6343 /* confdefs.h. */
6344 _ACEOF
6345 cat confdefs.h >>conftest.$ac_ext
6346 cat >>conftest.$ac_ext <<_ACEOF
6347 /* end confdefs.h. */
6348 $ac_includes_default
6349 #include <$ac_header>
6350 _ACEOF
6351 rm -f conftest.$ac_objext
6352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6353 (eval $ac_compile) 2>conftest.er1
6354 ac_status=$?
6355 grep -v '^ *+' conftest.er1 >conftest.err
6356 rm -f conftest.er1
6357 cat conftest.err >&5
6358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359 (exit $ac_status); } &&
6360 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6362 (eval $ac_try) 2>&5
6363 ac_status=$?
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); }; } &&
6366 { ac_try='test -s conftest.$ac_objext'
6367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6368 (eval $ac_try) 2>&5
6369 ac_status=$?
6370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6371 (exit $ac_status); }; }; then
6372 ac_header_compiler=yes
6373 else
6374 echo "$as_me: failed program was:" >&5
6375 sed 's/^/| /' conftest.$ac_ext >&5
6376
6377 ac_header_compiler=no
6378 fi
6379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6380 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6381 echo "${ECHO_T}$ac_header_compiler" >&6
6382
6383 # Is the header present?
6384 echo "$as_me:$LINENO: checking $ac_header presence" >&5
6385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
6386 cat >conftest.$ac_ext <<_ACEOF
6387 /* confdefs.h. */
6388 _ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h. */
6392 #include <$ac_header>
6393 _ACEOF
6394 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6395 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6396 ac_status=$?
6397 grep -v '^ *+' conftest.er1 >conftest.err
6398 rm -f conftest.er1
6399 cat conftest.err >&5
6400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6401 (exit $ac_status); } >/dev/null; then
6402 if test -s conftest.err; then
6403 ac_cpp_err=$ac_c_preproc_warn_flag
6404 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6405 else
6406 ac_cpp_err=
6407 fi
6408 else
6409 ac_cpp_err=yes
6410 fi
6411 if test -z "$ac_cpp_err"; then
6412 ac_header_preproc=yes
6413 else
6414 echo "$as_me: failed program was:" >&5
6415 sed 's/^/| /' conftest.$ac_ext >&5
6416
6417 ac_header_preproc=no
6418 fi
6419 rm -f conftest.err conftest.$ac_ext
6420 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6421 echo "${ECHO_T}$ac_header_preproc" >&6
6422
6423 # So? What about this header?
6424 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6425 yes:no: )
6426 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6427 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6428 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6429 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6430 ac_header_preproc=yes
6431 ;;
6432 no:yes:* )
6433 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6434 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6435 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6436 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6437 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6438 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6439 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6440 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6441 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6442 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6443 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6444 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6445 (
6446 cat <<\_ASBOX
6447 ## ------------------------------------------ ##
6448 ## Report this to the AC_PACKAGE_NAME lists. ##
6449 ## ------------------------------------------ ##
6450 _ASBOX
6451 ) |
6452 sed "s/^/$as_me: WARNING: /" >&2
6453 ;;
6454 esac
6455 echo "$as_me:$LINENO: checking for $ac_header" >&5
6456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
6457 if eval "test \"\${$as_ac_Header+set}\" = set"; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460 eval "$as_ac_Header=\$ac_header_preproc"
6461 fi
6462 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
6463 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
6464
6465 fi
6466 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6467 cat >>confdefs.h <<_ACEOF
6468 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6469 _ACEOF
6470
6471 fi
6472
6473 done
6474
6475 ac_ext=cc
6476 ac_cpp='$CXXCPP $CPPFLAGS'
6477 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6478 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6479 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6480 if test -n "$ac_tool_prefix"; then
6481 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6482 do
6483 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6484 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6485 echo "$as_me:$LINENO: checking for $ac_word" >&5
6486 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6487 if test "${ac_cv_prog_CXX+set}" = set; then
6488 echo $ECHO_N "(cached) $ECHO_C" >&6
6489 else
6490 if test -n "$CXX"; then
6491 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6492 else
6493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6494 for as_dir in $PATH
6495 do
6496 IFS=$as_save_IFS
6497 test -z "$as_dir" && as_dir=.
6498 for ac_exec_ext in '' $ac_executable_extensions; do
6499 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6500 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6501 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6502 break 2
6503 fi
6504 done
6505 done
6506
6507 fi
6508 fi
6509 CXX=$ac_cv_prog_CXX
6510 if test -n "$CXX"; then
6511 echo "$as_me:$LINENO: result: $CXX" >&5
6512 echo "${ECHO_T}$CXX" >&6
6513 else
6514 echo "$as_me:$LINENO: result: no" >&5
6515 echo "${ECHO_T}no" >&6
6516 fi
6517
6518 test -n "$CXX" && break
6519 done
6520 fi
6521 if test -z "$CXX"; then
6522 ac_ct_CXX=$CXX
6523 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
6524 do
6525 # Extract the first word of "$ac_prog", so it can be a program name with args.
6526 set dummy $ac_prog; ac_word=$2
6527 echo "$as_me:$LINENO: checking for $ac_word" >&5
6528 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6529 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6530 echo $ECHO_N "(cached) $ECHO_C" >&6
6531 else
6532 if test -n "$ac_ct_CXX"; then
6533 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6534 else
6535 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6536 for as_dir in $PATH
6537 do
6538 IFS=$as_save_IFS
6539 test -z "$as_dir" && as_dir=.
6540 for ac_exec_ext in '' $ac_executable_extensions; do
6541 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6542 ac_cv_prog_ac_ct_CXX="$ac_prog"
6543 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6544 break 2
6545 fi
6546 done
6547 done
6548
6549 fi
6550 fi
6551 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6552 if test -n "$ac_ct_CXX"; then
6553 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6554 echo "${ECHO_T}$ac_ct_CXX" >&6
6555 else
6556 echo "$as_me:$LINENO: result: no" >&5
6557 echo "${ECHO_T}no" >&6
6558 fi
6559
6560 test -n "$ac_ct_CXX" && break
6561 done
6562 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
6563
6564 CXX=$ac_ct_CXX
6565 fi
6566
6567
6568 # Provide some information about the compiler.
6569 echo "$as_me:$LINENO:" \
6570 "checking for C++ compiler version" >&5
6571 ac_compiler=`set X $ac_compile; echo $2`
6572 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6573 (eval $ac_compiler --version </dev/null >&5) 2>&5
6574 ac_status=$?
6575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6576 (exit $ac_status); }
6577 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6578 (eval $ac_compiler -v </dev/null >&5) 2>&5
6579 ac_status=$?
6580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6581 (exit $ac_status); }
6582 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6583 (eval $ac_compiler -V </dev/null >&5) 2>&5
6584 ac_status=$?
6585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586 (exit $ac_status); }
6587
6588 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6589 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
6590 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6591 echo $ECHO_N "(cached) $ECHO_C" >&6
6592 else
6593 cat >conftest.$ac_ext <<_ACEOF
6594 /* confdefs.h. */
6595 _ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h. */
6599
6600 int
6601 main ()
6602 {
6603 #ifndef __GNUC__
6604 choke me
6605 #endif
6606
6607 ;
6608 return 0;
6609 }
6610 _ACEOF
6611 rm -f conftest.$ac_objext
6612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6613 (eval $ac_compile) 2>conftest.er1
6614 ac_status=$?
6615 grep -v '^ *+' conftest.er1 >conftest.err
6616 rm -f conftest.er1
6617 cat conftest.err >&5
6618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6619 (exit $ac_status); } &&
6620 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6621 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6622 (eval $ac_try) 2>&5
6623 ac_status=$?
6624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6625 (exit $ac_status); }; } &&
6626 { ac_try='test -s conftest.$ac_objext'
6627 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6628 (eval $ac_try) 2>&5
6629 ac_status=$?
6630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6631 (exit $ac_status); }; }; then
6632 ac_compiler_gnu=yes
6633 else
6634 echo "$as_me: failed program was:" >&5
6635 sed 's/^/| /' conftest.$ac_ext >&5
6636
6637 ac_compiler_gnu=no
6638 fi
6639 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6640 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6641
6642 fi
6643 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6644 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
6645 GXX=`test $ac_compiler_gnu = yes && echo yes`
6646 ac_test_CXXFLAGS=${CXXFLAGS+set}
6647 ac_save_CXXFLAGS=$CXXFLAGS
6648 CXXFLAGS="-g"
6649 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6650 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
6651 if test "${ac_cv_prog_cxx_g+set}" = set; then
6652 echo $ECHO_N "(cached) $ECHO_C" >&6
6653 else
6654 cat >conftest.$ac_ext <<_ACEOF
6655 /* confdefs.h. */
6656 _ACEOF
6657 cat confdefs.h >>conftest.$ac_ext
6658 cat >>conftest.$ac_ext <<_ACEOF
6659 /* end confdefs.h. */
6660
6661 int
6662 main ()
6663 {
6664
6665 ;
6666 return 0;
6667 }
6668 _ACEOF
6669 rm -f conftest.$ac_objext
6670 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6671 (eval $ac_compile) 2>conftest.er1
6672 ac_status=$?
6673 grep -v '^ *+' conftest.er1 >conftest.err
6674 rm -f conftest.er1
6675 cat conftest.err >&5
6676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6677 (exit $ac_status); } &&
6678 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6680 (eval $ac_try) 2>&5
6681 ac_status=$?
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); }; } &&
6684 { ac_try='test -s conftest.$ac_objext'
6685 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6686 (eval $ac_try) 2>&5
6687 ac_status=$?
6688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6689 (exit $ac_status); }; }; then
6690 ac_cv_prog_cxx_g=yes
6691 else
6692 echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6694
6695 ac_cv_prog_cxx_g=no
6696 fi
6697 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6698 fi
6699 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6700 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
6701 if test "$ac_test_CXXFLAGS" = set; then
6702 CXXFLAGS=$ac_save_CXXFLAGS
6703 elif test $ac_cv_prog_cxx_g = yes; then
6704 if test "$GXX" = yes; then
6705 CXXFLAGS="-g -O2"
6706 else
6707 CXXFLAGS="-g"
6708 fi
6709 else
6710 if test "$GXX" = yes; then
6711 CXXFLAGS="-O2"
6712 else
6713 CXXFLAGS=
6714 fi
6715 fi
6716 for ac_declaration in \
6717 '' \
6718 'extern "C" void std::exit (int) throw (); using std::exit;' \
6719 'extern "C" void std::exit (int); using std::exit;' \
6720 'extern "C" void exit (int) throw ();' \
6721 'extern "C" void exit (int);' \
6722 'void exit (int);'
6723 do
6724 cat >conftest.$ac_ext <<_ACEOF
6725 /* confdefs.h. */
6726 _ACEOF
6727 cat confdefs.h >>conftest.$ac_ext
6728 cat >>conftest.$ac_ext <<_ACEOF
6729 /* end confdefs.h. */
6730 $ac_declaration
6731 #include <stdlib.h>
6732 int
6733 main ()
6734 {
6735 exit (42);
6736 ;
6737 return 0;
6738 }
6739 _ACEOF
6740 rm -f conftest.$ac_objext
6741 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6742 (eval $ac_compile) 2>conftest.er1
6743 ac_status=$?
6744 grep -v '^ *+' conftest.er1 >conftest.err
6745 rm -f conftest.er1
6746 cat conftest.err >&5
6747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6748 (exit $ac_status); } &&
6749 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6751 (eval $ac_try) 2>&5
6752 ac_status=$?
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); }; } &&
6755 { ac_try='test -s conftest.$ac_objext'
6756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6757 (eval $ac_try) 2>&5
6758 ac_status=$?
6759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6760 (exit $ac_status); }; }; then
6761 :
6762 else
6763 echo "$as_me: failed program was:" >&5
6764 sed 's/^/| /' conftest.$ac_ext >&5
6765
6766 continue
6767 fi
6768 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6769 cat >conftest.$ac_ext <<_ACEOF
6770 /* confdefs.h. */
6771 _ACEOF
6772 cat confdefs.h >>conftest.$ac_ext
6773 cat >>conftest.$ac_ext <<_ACEOF
6774 /* end confdefs.h. */
6775 $ac_declaration
6776 int
6777 main ()
6778 {
6779 exit (42);
6780 ;
6781 return 0;
6782 }
6783 _ACEOF
6784 rm -f conftest.$ac_objext
6785 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6786 (eval $ac_compile) 2>conftest.er1
6787 ac_status=$?
6788 grep -v '^ *+' conftest.er1 >conftest.err
6789 rm -f conftest.er1
6790 cat conftest.err >&5
6791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6792 (exit $ac_status); } &&
6793 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6795 (eval $ac_try) 2>&5
6796 ac_status=$?
6797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6798 (exit $ac_status); }; } &&
6799 { ac_try='test -s conftest.$ac_objext'
6800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6801 (eval $ac_try) 2>&5
6802 ac_status=$?
6803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6804 (exit $ac_status); }; }; then
6805 break
6806 else
6807 echo "$as_me: failed program was:" >&5
6808 sed 's/^/| /' conftest.$ac_ext >&5
6809
6810 fi
6811 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
6812 done
6813 rm -f conftest*
6814 if test -n "$ac_declaration"; then
6815 echo '#ifdef __cplusplus' >>confdefs.h
6816 echo $ac_declaration >>confdefs.h
6817 echo '#endif' >>confdefs.h
6818 fi
6819
6820 ac_ext=cc
6821 ac_cpp='$CXXCPP $CPPFLAGS'
6822 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6823 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6824 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6825
6826 depcc="$CXX" am_compiler_list=
6827
6828 echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
6829 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
6830 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
6831 echo $ECHO_N "(cached) $ECHO_C" >&6
6832 else
6833 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6834 # We make a subdir and do the tests there. Otherwise we can end up
6835 # making bogus files that we don't know about and never remove. For
6836 # instance it was reported that on HP-UX the gcc test will end up
6837 # making a dummy file named `D' -- because `-MD' means `put the output
6838 # in D'.
6839 mkdir conftest.dir
6840 # Copy depcomp to subdir because otherwise we won't find it if we're
6841 # using a relative directory.
6842 cp "$am_depcomp" conftest.dir
6843 cd conftest.dir
6844 # We will build objects and dependencies in a subdirectory because
6845 # it helps to detect inapplicable dependency modes. For instance
6846 # both Tru64's cc and ICC support -MD to output dependencies as a
6847 # side effect of compilation, but ICC will put the dependencies in
6848 # the current directory while Tru64 will put them in the object
6849 # directory.
6850 mkdir sub
6851
6852 am_cv_CXX_dependencies_compiler_type=none
6853 if test "$am_compiler_list" = ""; then
6854 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6855 fi
6856 for depmode in $am_compiler_list; do
6857 # Setup a source with many dependencies, because some compilers
6858 # like to wrap large dependency lists on column 80 (with \), and
6859 # we should not choose a depcomp mode which is confused by this.
6860 #
6861 # We need to recreate these files for each test, as the compiler may
6862 # overwrite some of them when testing with obscure command lines.
6863 # This happens at least with the AIX C compiler.
6864 : > sub/conftest.c
6865 for i in 1 2 3 4 5 6; do
6866 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6867 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
6868 # Solaris 8's {/usr,}/bin/sh.
6869 touch sub/conftst$i.h
6870 done
6871 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6872
6873 case $depmode in
6874 nosideeffect)
6875 # after this tag, mechanisms are not by side-effect, so they'll
6876 # only be used when explicitly requested
6877 if test "x$enable_dependency_tracking" = xyes; then
6878 continue
6879 else
6880 break
6881 fi
6882 ;;
6883 none) break ;;
6884 esac
6885 # We check with `-c' and `-o' for the sake of the "dashmstdout"
6886 # mode. It turns out that the SunPro C++ compiler does not properly
6887 # handle `-M -o', and we need to detect this.
6888 if depmode=$depmode \
6889 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
6890 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6891 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
6892 >/dev/null 2>conftest.err &&
6893 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6894 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
6895 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6896 # icc doesn't choke on unknown options, it will just issue warnings
6897 # or remarks (even with -Werror). So we grep stderr for any message
6898 # that says an option was ignored or not supported.
6899 # When given -MP, icc 7.0 and 7.1 complain thusly:
6900 # icc: Command line warning: ignoring option '-M'; no argument required
6901 # The diagnosis changed in icc 8.0:
6902 # icc: Command line remark: option '-MP' not supported
6903 if (grep 'ignoring option' conftest.err ||
6904 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6905 am_cv_CXX_dependencies_compiler_type=$depmode
6906 break
6907 fi
6908 fi
6909 done
6910
6911 cd ..
6912 rm -rf conftest.dir
6913 else
6914 am_cv_CXX_dependencies_compiler_type=none
6915 fi
6916
6917 fi
6918 echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
6919 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
6920 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6921
6922
6923
6924 if
6925 test "x$enable_dependency_tracking" != xno \
6926 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6927 am__fastdepCXX_TRUE=
6928 am__fastdepCXX_FALSE='#'
6929 else
6930 am__fastdepCXX_TRUE='#'
6931 am__fastdepCXX_FALSE=
6932 fi
6933
6934
6935 ac_ext=cc
6936 ac_cpp='$CXXCPP $CPPFLAGS'
6937 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6938 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6939 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6940 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
6941 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
6942 if test -z "$CXXCPP"; then
6943 if test "${ac_cv_prog_CXXCPP+set}" = set; then
6944 echo $ECHO_N "(cached) $ECHO_C" >&6
6945 else
6946 # Double quotes because CXXCPP needs to be expanded
6947 for CXXCPP in "$CXX -E" "/lib/cpp"
6948 do
6949 ac_preproc_ok=false
6950 for ac_cxx_preproc_warn_flag in '' yes
6951 do
6952 # Use a header file that comes with gcc, so configuring glibc
6953 # with a fresh cross-compiler works.
6954 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
6955 # <limits.h> exists even on freestanding compilers.
6956 # On the NeXT, cc -E runs the code through the compiler's parser,
6957 # not just through cpp. "Syntax error" is here to catch this case.
6958 cat >conftest.$ac_ext <<_ACEOF
6959 /* confdefs.h. */
6960 _ACEOF
6961 cat confdefs.h >>conftest.$ac_ext
6962 cat >>conftest.$ac_ext <<_ACEOF
6963 /* end confdefs.h. */
6964 #ifdef __STDC__
6965 # include <limits.h>
6966 #else
6967 # include <assert.h>
6968 #endif
6969 Syntax error
6970 _ACEOF
6971 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
6972 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
6973 ac_status=$?
6974 grep -v '^ *+' conftest.er1 >conftest.err
6975 rm -f conftest.er1
6976 cat conftest.err >&5
6977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6978 (exit $ac_status); } >/dev/null; then
6979 if test -s conftest.err; then
6980 ac_cpp_err=$ac_cxx_preproc_warn_flag
6981 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6982 else
6983 ac_cpp_err=
6984 fi
6985 else
6986 ac_cpp_err=yes
6987 fi
6988 if test -z "$ac_cpp_err"; then
6989 :
6990 else
6991 echo "$as_me: failed program was:" >&5
6992 sed 's/^/| /' conftest.$ac_ext >&5
6993
6994 # Broken: fails on valid input.
6995 continue
6996 fi
6997 rm -f conftest.err conftest.$ac_ext
6998
6999 # OK, works on sane cases. Now check whether non-existent headers
7000 # can be detected and how.
7001 cat >conftest.$ac_ext <<_ACEOF
7002 /* confdefs.h. */
7003 _ACEOF
7004 cat confdefs.h >>conftest.$ac_ext
7005 cat >>conftest.$ac_ext <<_ACEOF
7006 /* end confdefs.h. */
7007 #include <ac_nonexistent.h>
7008 _ACEOF
7009 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7010 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7011 ac_status=$?
7012 grep -v '^ *+' conftest.er1 >conftest.err
7013 rm -f conftest.er1
7014 cat conftest.err >&5
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); } >/dev/null; then
7017 if test -s conftest.err; then
7018 ac_cpp_err=$ac_cxx_preproc_warn_flag
7019 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7020 else
7021 ac_cpp_err=
7022 fi
7023 else
7024 ac_cpp_err=yes
7025 fi
7026 if test -z "$ac_cpp_err"; then
7027 # Broken: success on invalid input.
7028 continue
7029 else
7030 echo "$as_me: failed program was:" >&5
7031 sed 's/^/| /' conftest.$ac_ext >&5
7032
7033 # Passes both tests.
7034 ac_preproc_ok=:
7035 break
7036 fi
7037 rm -f conftest.err conftest.$ac_ext
7038
7039 done
7040 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7041 rm -f conftest.err conftest.$ac_ext
7042 if $ac_preproc_ok; then
7043 break
7044 fi
7045
7046 done
7047 ac_cv_prog_CXXCPP=$CXXCPP
7048
7049 fi
7050 CXXCPP=$ac_cv_prog_CXXCPP
7051 else
7052 ac_cv_prog_CXXCPP=$CXXCPP
7053 fi
7054 echo "$as_me:$LINENO: result: $CXXCPP" >&5
7055 echo "${ECHO_T}$CXXCPP" >&6
7056 ac_preproc_ok=false
7057 for ac_cxx_preproc_warn_flag in '' yes
7058 do
7059 # Use a header file that comes with gcc, so configuring glibc
7060 # with a fresh cross-compiler works.
7061 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7062 # <limits.h> exists even on freestanding compilers.
7063 # On the NeXT, cc -E runs the code through the compiler's parser,
7064 # not just through cpp. "Syntax error" is here to catch this case.
7065 cat >conftest.$ac_ext <<_ACEOF
7066 /* confdefs.h. */
7067 _ACEOF
7068 cat confdefs.h >>conftest.$ac_ext
7069 cat >>conftest.$ac_ext <<_ACEOF
7070 /* end confdefs.h. */
7071 #ifdef __STDC__
7072 # include <limits.h>
7073 #else
7074 # include <assert.h>
7075 #endif
7076 Syntax error
7077 _ACEOF
7078 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7079 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7080 ac_status=$?
7081 grep -v '^ *+' conftest.er1 >conftest.err
7082 rm -f conftest.er1
7083 cat conftest.err >&5
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } >/dev/null; then
7086 if test -s conftest.err; then
7087 ac_cpp_err=$ac_cxx_preproc_warn_flag
7088 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7089 else
7090 ac_cpp_err=
7091 fi
7092 else
7093 ac_cpp_err=yes
7094 fi
7095 if test -z "$ac_cpp_err"; then
7096 :
7097 else
7098 echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.$ac_ext >&5
7100
7101 # Broken: fails on valid input.
7102 continue
7103 fi
7104 rm -f conftest.err conftest.$ac_ext
7105
7106 # OK, works on sane cases. Now check whether non-existent headers
7107 # can be detected and how.
7108 cat >conftest.$ac_ext <<_ACEOF
7109 /* confdefs.h. */
7110 _ACEOF
7111 cat confdefs.h >>conftest.$ac_ext
7112 cat >>conftest.$ac_ext <<_ACEOF
7113 /* end confdefs.h. */
7114 #include <ac_nonexistent.h>
7115 _ACEOF
7116 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7117 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7118 ac_status=$?
7119 grep -v '^ *+' conftest.er1 >conftest.err
7120 rm -f conftest.er1
7121 cat conftest.err >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } >/dev/null; then
7124 if test -s conftest.err; then
7125 ac_cpp_err=$ac_cxx_preproc_warn_flag
7126 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7127 else
7128 ac_cpp_err=
7129 fi
7130 else
7131 ac_cpp_err=yes
7132 fi
7133 if test -z "$ac_cpp_err"; then
7134 # Broken: success on invalid input.
7135 continue
7136 else
7137 echo "$as_me: failed program was:" >&5
7138 sed 's/^/| /' conftest.$ac_ext >&5
7139
7140 # Passes both tests.
7141 ac_preproc_ok=:
7142 break
7143 fi
7144 rm -f conftest.err conftest.$ac_ext
7145
7146 done
7147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7148 rm -f conftest.err conftest.$ac_ext
7149 if $ac_preproc_ok; then
7150 :
7151 else
7152 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7153 See \`config.log' for more details." >&5
7154 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
7155 See \`config.log' for more details." >&2;}
7156 { (exit 1); exit 1; }; }
7157 fi
7158
7159 ac_ext=cc
7160 ac_cpp='$CXXCPP $CPPFLAGS'
7161 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7162 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7163 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7164
7165
7166 ac_ext=f
7167 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7168 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7169 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7170 if test -n "$ac_tool_prefix"; then
7171 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7172 do
7173 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7174 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7175 echo "$as_me:$LINENO: checking for $ac_word" >&5
7176 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7177 if test "${ac_cv_prog_F77+set}" = set; then
7178 echo $ECHO_N "(cached) $ECHO_C" >&6
7179 else
7180 if test -n "$F77"; then
7181 ac_cv_prog_F77="$F77" # Let the user override the test.
7182 else
7183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7184 for as_dir in $PATH
7185 do
7186 IFS=$as_save_IFS
7187 test -z "$as_dir" && as_dir=.
7188 for ac_exec_ext in '' $ac_executable_extensions; do
7189 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7190 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7191 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7192 break 2
7193 fi
7194 done
7195 done
7196
7197 fi
7198 fi
7199 F77=$ac_cv_prog_F77
7200 if test -n "$F77"; then
7201 echo "$as_me:$LINENO: result: $F77" >&5
7202 echo "${ECHO_T}$F77" >&6
7203 else
7204 echo "$as_me:$LINENO: result: no" >&5
7205 echo "${ECHO_T}no" >&6
7206 fi
7207
7208 test -n "$F77" && break
7209 done
7210 fi
7211 if test -z "$F77"; then
7212 ac_ct_F77=$F77
7213 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
7214 do
7215 # Extract the first word of "$ac_prog", so it can be a program name with args.
7216 set dummy $ac_prog; ac_word=$2
7217 echo "$as_me:$LINENO: checking for $ac_word" >&5
7218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7219 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
7220 echo $ECHO_N "(cached) $ECHO_C" >&6
7221 else
7222 if test -n "$ac_ct_F77"; then
7223 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7224 else
7225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7226 for as_dir in $PATH
7227 do
7228 IFS=$as_save_IFS
7229 test -z "$as_dir" && as_dir=.
7230 for ac_exec_ext in '' $ac_executable_extensions; do
7231 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7232 ac_cv_prog_ac_ct_F77="$ac_prog"
7233 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7234 break 2
7235 fi
7236 done
7237 done
7238
7239 fi
7240 fi
7241 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7242 if test -n "$ac_ct_F77"; then
7243 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
7244 echo "${ECHO_T}$ac_ct_F77" >&6
7245 else
7246 echo "$as_me:$LINENO: result: no" >&5
7247 echo "${ECHO_T}no" >&6
7248 fi
7249
7250 test -n "$ac_ct_F77" && break
7251 done
7252
7253 F77=$ac_ct_F77
7254 fi
7255
7256
7257 # Provide some information about the compiler.
7258 echo "$as_me:7258:" \
7259 "checking for Fortran 77 compiler version" >&5
7260 ac_compiler=`set X $ac_compile; echo $2`
7261 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
7262 (eval $ac_compiler --version </dev/null >&5) 2>&5
7263 ac_status=$?
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); }
7266 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
7267 (eval $ac_compiler -v </dev/null >&5) 2>&5
7268 ac_status=$?
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); }
7271 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
7272 (eval $ac_compiler -V </dev/null >&5) 2>&5
7273 ac_status=$?
7274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7275 (exit $ac_status); }
7276 rm -f a.out
7277
7278 # If we don't use `.F' as extension, the preprocessor is not run on the
7279 # input file. (Note that this only needs to work for GNU compilers.)
7280 ac_save_ext=$ac_ext
7281 ac_ext=F
7282 echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
7283 echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
7284 if test "${ac_cv_f77_compiler_gnu+set}" = set; then
7285 echo $ECHO_N "(cached) $ECHO_C" >&6
7286 else
7287 cat >conftest.$ac_ext <<_ACEOF
7288 program main
7289 #ifndef __GNUC__
7290 choke me
7291 #endif
7292
7293 end
7294 _ACEOF
7295 rm -f conftest.$ac_objext
7296 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7297 (eval $ac_compile) 2>conftest.er1
7298 ac_status=$?
7299 grep -v '^ *+' conftest.er1 >conftest.err
7300 rm -f conftest.er1
7301 cat conftest.err >&5
7302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7303 (exit $ac_status); } &&
7304 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7306 (eval $ac_try) 2>&5
7307 ac_status=$?
7308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7309 (exit $ac_status); }; } &&
7310 { ac_try='test -s conftest.$ac_objext'
7311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7312 (eval $ac_try) 2>&5
7313 ac_status=$?
7314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7315 (exit $ac_status); }; }; then
7316 ac_compiler_gnu=yes
7317 else
7318 echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.$ac_ext >&5
7320
7321 ac_compiler_gnu=no
7322 fi
7323 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7324 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7325
7326 fi
7327 echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
7328 echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
7329 ac_ext=$ac_save_ext
7330 ac_test_FFLAGS=${FFLAGS+set}
7331 ac_save_FFLAGS=$FFLAGS
7332 FFLAGS=
7333 echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
7334 echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
7335 if test "${ac_cv_prog_f77_g+set}" = set; then
7336 echo $ECHO_N "(cached) $ECHO_C" >&6
7337 else
7338 FFLAGS=-g
7339 cat >conftest.$ac_ext <<_ACEOF
7340 program main
7341
7342 end
7343 _ACEOF
7344 rm -f conftest.$ac_objext
7345 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7346 (eval $ac_compile) 2>conftest.er1
7347 ac_status=$?
7348 grep -v '^ *+' conftest.er1 >conftest.err
7349 rm -f conftest.er1
7350 cat conftest.err >&5
7351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7352 (exit $ac_status); } &&
7353 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
7354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7355 (eval $ac_try) 2>&5
7356 ac_status=$?
7357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7358 (exit $ac_status); }; } &&
7359 { ac_try='test -s conftest.$ac_objext'
7360 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7361 (eval $ac_try) 2>&5
7362 ac_status=$?
7363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7364 (exit $ac_status); }; }; then
7365 ac_cv_prog_f77_g=yes
7366 else
7367 echo "$as_me: failed program was:" >&5
7368 sed 's/^/| /' conftest.$ac_ext >&5
7369
7370 ac_cv_prog_f77_g=no
7371 fi
7372 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7373
7374 fi
7375 echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
7376 echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
7377 if test "$ac_test_FFLAGS" = set; then
7378 FFLAGS=$ac_save_FFLAGS
7379 elif test $ac_cv_prog_f77_g = yes; then
7380 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7381 FFLAGS="-g -O2"
7382 else
7383 FFLAGS="-g"
7384 fi
7385 else
7386 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7387 FFLAGS="-O2"
7388 else
7389 FFLAGS=
7390 fi
7391 fi
7392
7393 G77=`test $ac_compiler_gnu = yes && echo yes`
7394 ac_ext=c
7395 ac_cpp='$CPP $CPPFLAGS'
7396 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7397 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7398 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7399
7400
7401
7402 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
7403
7404 # find the maximum length of command line arguments
7405 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
7406 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
7407 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
7408 echo $ECHO_N "(cached) $ECHO_C" >&6
7409 else
7410 i=0
7411 teststring="ABCD"
7412
7413 case $build_os in
7414 msdosdjgpp*)
7415 # On DJGPP, this test can blow up pretty badly due to problems in libc
7416 # (any single argument exceeding 2000 bytes causes a buffer overrun
7417 # during glob expansion). Even if it were fixed, the result of this
7418 # check would be larger than it should be.
7419 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7420 ;;
7421
7422 gnu*)
7423 # Under GNU Hurd, this test is not required because there is
7424 # no limit to the length of command line arguments.
7425 # Libtool will interpret -1 as no limit whatsoever
7426 lt_cv_sys_max_cmd_len=-1;
7427 ;;
7428
7429 cygwin* | mingw*)
7430 # On Win9x/ME, this test blows up -- it succeeds, but takes
7431 # about 5 minutes as the teststring grows exponentially.
7432 # Worse, since 9x/ME are not pre-emptively multitasking,
7433 # you end up with a "frozen" computer, even though with patience
7434 # the test eventually succeeds (with a max line length of 256k).
7435 # Instead, let's just punt: use the minimum linelength reported by
7436 # all of the supported platforms: 8192 (on NT/2K/XP).
7437 lt_cv_sys_max_cmd_len=8192;
7438 ;;
7439
7440 amigaos*)
7441 # On AmigaOS with pdksh, this test takes hours, literally.
7442 # So we just punt and use a minimum line length of 8192.
7443 lt_cv_sys_max_cmd_len=8192;
7444 ;;
7445
7446 *)
7447 # If test is not a shell built-in, we'll probably end up computing a
7448 # maximum length that is only half of the actual maximum length, but
7449 # we can't tell.
7450 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
7451 = "XX$teststring") >/dev/null 2>&1 &&
7452 new_result=`expr "X$teststring" : ".*" 2>&1` &&
7453 lt_cv_sys_max_cmd_len=$new_result &&
7454 test $i != 17 # 1/2 MB should be enough
7455 do
7456 i=`expr $i + 1`
7457 teststring=$teststring$teststring
7458 done
7459 teststring=
7460 # Add a significant safety factor because C++ compilers can tack on massive
7461 # amounts of additional arguments before passing them to the linker.
7462 # It appears as though 1/2 is a usable value.
7463 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7464 ;;
7465 esac
7466
7467 fi
7468
7469 if test -n $lt_cv_sys_max_cmd_len ; then
7470 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
7471 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
7472 else
7473 echo "$as_me:$LINENO: result: none" >&5
7474 echo "${ECHO_T}none" >&6
7475 fi
7476
7477
7478
7479
7480 # Check for command to grab the raw symbol name followed by C symbol from nm.
7481 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
7482 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
7483 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
7484 echo $ECHO_N "(cached) $ECHO_C" >&6
7485 else
7486
7487 # These are sane defaults that work on at least a few old systems.
7488 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7489
7490 # Character class describing NM global symbol codes.
7491 symcode='[BCDEGRST]'
7492
7493 # Regexp to match symbols that can be accessed directly from C.
7494 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7495
7496 # Transform the above into a raw symbol and a C symbol.
7497 symxfrm='\1 \2\3 \3'
7498
7499 # Transform an extracted symbol line into a proper C declaration
7500 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
7501
7502 # Transform an extracted symbol line into symbol name and symbol address
7503 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'"
7504
7505 # Define system-specific variables.
7506 case $host_os in
7507 aix*)
7508 symcode='[BCDT]'
7509 ;;
7510 cygwin* | mingw* | pw32*)
7511 symcode='[ABCDGISTW]'
7512 ;;
7513 hpux*) # Its linker distinguishes data from code symbols
7514 if test "$host_cpu" = ia64; then
7515 symcode='[ABCDEGRST]'
7516 fi
7517 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7518 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'"
7519 ;;
7520 irix* | nonstopux*)
7521 symcode='[BCDEGRST]'
7522 ;;
7523 osf*)
7524 symcode='[BCDEGQRST]'
7525 ;;
7526 solaris* | sysv5*)
7527 symcode='[BDRT]'
7528 ;;
7529 sysv4)
7530 symcode='[DFNSTU]'
7531 ;;
7532 esac
7533
7534 # Handle CRLF in mingw tool chain
7535 opt_cr=
7536 case $build_os in
7537 mingw*)
7538 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7539 ;;
7540 esac
7541
7542 # If we're using GNU nm, then use its standard symbol codes.
7543 case `$NM -V 2>&1` in
7544 *GNU* | *'with BFD'*)
7545 symcode='[ABCDGIRSTW]' ;;
7546 esac
7547
7548 # Try without a prefix undercore, then with it.
7549 for ac_symprfx in "" "_"; do
7550
7551 # Write the raw and C identifiers.
7552 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
7553
7554 # Check to see that the pipe works correctly.
7555 pipe_works=no
7556
7557 rm -f conftest*
7558 cat > conftest.$ac_ext <<EOF
7559 #ifdef __cplusplus
7560 extern "C" {
7561 #endif
7562 char nm_test_var;
7563 void nm_test_func(){}
7564 #ifdef __cplusplus
7565 }
7566 #endif
7567 int main(){nm_test_var='a';nm_test_func();return(0);}
7568 EOF
7569
7570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7571 (eval $ac_compile) 2>&5
7572 ac_status=$?
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); }; then
7575 # Now try to grab the symbols.
7576 nlist=conftest.nm
7577 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
7578 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
7579 ac_status=$?
7580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7581 (exit $ac_status); } && test -s "$nlist"; then
7582 # Try sorting and uniquifying the output.
7583 if sort "$nlist" | uniq > "$nlist"T; then
7584 mv -f "$nlist"T "$nlist"
7585 else
7586 rm -f "$nlist"T
7587 fi
7588
7589 # Make sure that we snagged all the symbols we need.
7590 if grep ' nm_test_var$' "$nlist" >/dev/null; then
7591 if grep ' nm_test_func$' "$nlist" >/dev/null; then
7592 cat <<EOF > conftest.$ac_ext
7593 #ifdef __cplusplus
7594 extern "C" {
7595 #endif
7596
7597 EOF
7598 # Now generate the symbol file.
7599 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
7600
7601 cat <<EOF >> conftest.$ac_ext
7602 #if defined (__STDC__) && __STDC__
7603 # define lt_ptr_t void *
7604 #else
7605 # define lt_ptr_t char *
7606 # define const
7607 #endif
7608
7609 /* The mapping between symbol names and symbols. */
7610 const struct {
7611 const char *name;
7612 lt_ptr_t address;
7613 }
7614 lt_preloaded_symbols[] =
7615 {
7616 EOF
7617 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
7618 cat <<\EOF >> conftest.$ac_ext
7619 {0, (lt_ptr_t) 0}
7620 };
7621
7622 #ifdef __cplusplus
7623 }
7624 #endif
7625 EOF
7626 # Now try linking the two files.
7627 mv conftest.$ac_objext conftstm.$ac_objext
7628 lt_save_LIBS="$LIBS"
7629 lt_save_CFLAGS="$CFLAGS"
7630 LIBS="conftstm.$ac_objext"
7631 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7632 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
7633 (eval $ac_link) 2>&5
7634 ac_status=$?
7635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7636 (exit $ac_status); } && test -s conftest${ac_exeext}; then
7637 pipe_works=yes
7638 fi
7639 LIBS="$lt_save_LIBS"
7640 CFLAGS="$lt_save_CFLAGS"
7641 else
7642 echo "cannot find nm_test_func in $nlist" >&5
7643 fi
7644 else
7645 echo "cannot find nm_test_var in $nlist" >&5
7646 fi
7647 else
7648 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7649 fi
7650 else
7651 echo "$progname: failed program was:" >&5
7652 cat conftest.$ac_ext >&5
7653 fi
7654 rm -f conftest* conftst*
7655
7656 # Do not use the global_symbol_pipe unless it works.
7657 if test "$pipe_works" = yes; then
7658 break
7659 else
7660 lt_cv_sys_global_symbol_pipe=
7661 fi
7662 done
7663
7664 fi
7665
7666 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7667 lt_cv_sys_global_symbol_to_cdecl=
7668 fi
7669 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7670 echo "$as_me:$LINENO: result: failed" >&5
7671 echo "${ECHO_T}failed" >&6
7672 else
7673 echo "$as_me:$LINENO: result: ok" >&5
7674 echo "${ECHO_T}ok" >&6
7675 fi
7676
7677 echo "$as_me:$LINENO: checking for objdir" >&5
7678 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
7679 if test "${lt_cv_objdir+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7681 else
7682 rm -f .libs 2>/dev/null
7683 mkdir .libs 2>/dev/null
7684 if test -d .libs; then
7685 lt_cv_objdir=.libs
7686 else
7687 # MS-DOS does not allow filenames that begin with a dot.
7688 lt_cv_objdir=_libs
7689 fi
7690 rmdir .libs 2>/dev/null
7691 fi
7692 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
7693 echo "${ECHO_T}$lt_cv_objdir" >&6
7694 objdir=$lt_cv_objdir
7695
7696
7697
7698
7699
7700 case $host_os in
7701 aix3*)
7702 # AIX sometimes has problems with the GCC collect2 program. For some
7703 # reason, if we set the COLLECT_NAMES environment variable, the problems
7704 # vanish in a puff of smoke.
7705 if test "X${COLLECT_NAMES+set}" != Xset; then
7706 COLLECT_NAMES=
7707 export COLLECT_NAMES
7708 fi
7709 ;;
7710 esac
7711
7712 # Sed substitution that helps us do robust quoting. It backslashifies
7713 # metacharacters that are still active within double-quoted strings.
7714 Xsed='sed -e s/^X//'
7715 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
7716
7717 # Same as above, but do not quote variable references.
7718 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
7719
7720 # Sed substitution to delay expansion of an escaped shell variable in a
7721 # double_quote_subst'ed string.
7722 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
7723
7724 # Sed substitution to avoid accidental globbing in evaled expressions
7725 no_glob_subst='s/\*/\\\*/g'
7726
7727 # Constants:
7728 rm="rm -f"
7729
7730 # Global variables:
7731 default_ofile=libtool
7732 can_build_shared=yes
7733
7734 # All known linkers require a `.a' archive for static linking (except M$VC,
7735 # which needs '.lib').
7736 libext=a
7737 ltmain="$ac_aux_dir/ltmain.sh"
7738 ofile="$default_ofile"
7739 with_gnu_ld="$lt_cv_prog_gnu_ld"
7740
7741 if test -n "$ac_tool_prefix"; then
7742 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7743 set dummy ${ac_tool_prefix}ar; ac_word=$2
7744 echo "$as_me:$LINENO: checking for $ac_word" >&5
7745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7746 if test "${ac_cv_prog_AR+set}" = set; then
7747 echo $ECHO_N "(cached) $ECHO_C" >&6
7748 else
7749 if test -n "$AR"; then
7750 ac_cv_prog_AR="$AR" # Let the user override the test.
7751 else
7752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7753 for as_dir in $PATH
7754 do
7755 IFS=$as_save_IFS
7756 test -z "$as_dir" && as_dir=.
7757 for ac_exec_ext in '' $ac_executable_extensions; do
7758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7759 ac_cv_prog_AR="${ac_tool_prefix}ar"
7760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7761 break 2
7762 fi
7763 done
7764 done
7765
7766 fi
7767 fi
7768 AR=$ac_cv_prog_AR
7769 if test -n "$AR"; then
7770 echo "$as_me:$LINENO: result: $AR" >&5
7771 echo "${ECHO_T}$AR" >&6
7772 else
7773 echo "$as_me:$LINENO: result: no" >&5
7774 echo "${ECHO_T}no" >&6
7775 fi
7776
7777 fi
7778 if test -z "$ac_cv_prog_AR"; then
7779 ac_ct_AR=$AR
7780 # Extract the first word of "ar", so it can be a program name with args.
7781 set dummy ar; ac_word=$2
7782 echo "$as_me:$LINENO: checking for $ac_word" >&5
7783 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7784 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7786 else
7787 if test -n "$ac_ct_AR"; then
7788 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7789 else
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 for as_dir in $PATH
7792 do
7793 IFS=$as_save_IFS
7794 test -z "$as_dir" && as_dir=.
7795 for ac_exec_ext in '' $ac_executable_extensions; do
7796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7797 ac_cv_prog_ac_ct_AR="ar"
7798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 break 2
7800 fi
7801 done
7802 done
7803
7804 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
7805 fi
7806 fi
7807 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7808 if test -n "$ac_ct_AR"; then
7809 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7810 echo "${ECHO_T}$ac_ct_AR" >&6
7811 else
7812 echo "$as_me:$LINENO: result: no" >&5
7813 echo "${ECHO_T}no" >&6
7814 fi
7815
7816 AR=$ac_ct_AR
7817 else
7818 AR="$ac_cv_prog_AR"
7819 fi
7820
7821 if test -n "$ac_tool_prefix"; then
7822 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7823 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7824 echo "$as_me:$LINENO: checking for $ac_word" >&5
7825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7826 if test "${ac_cv_prog_RANLIB+set}" = set; then
7827 echo $ECHO_N "(cached) $ECHO_C" >&6
7828 else
7829 if test -n "$RANLIB"; then
7830 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7831 else
7832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 for as_dir in $PATH
7834 do
7835 IFS=$as_save_IFS
7836 test -z "$as_dir" && as_dir=.
7837 for ac_exec_ext in '' $ac_executable_extensions; do
7838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7839 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 break 2
7842 fi
7843 done
7844 done
7845
7846 fi
7847 fi
7848 RANLIB=$ac_cv_prog_RANLIB
7849 if test -n "$RANLIB"; then
7850 echo "$as_me:$LINENO: result: $RANLIB" >&5
7851 echo "${ECHO_T}$RANLIB" >&6
7852 else
7853 echo "$as_me:$LINENO: result: no" >&5
7854 echo "${ECHO_T}no" >&6
7855 fi
7856
7857 fi
7858 if test -z "$ac_cv_prog_RANLIB"; then
7859 ac_ct_RANLIB=$RANLIB
7860 # Extract the first word of "ranlib", so it can be a program name with args.
7861 set dummy ranlib; ac_word=$2
7862 echo "$as_me:$LINENO: checking for $ac_word" >&5
7863 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7864 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7865 echo $ECHO_N "(cached) $ECHO_C" >&6
7866 else
7867 if test -n "$ac_ct_RANLIB"; then
7868 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7869 else
7870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7871 for as_dir in $PATH
7872 do
7873 IFS=$as_save_IFS
7874 test -z "$as_dir" && as_dir=.
7875 for ac_exec_ext in '' $ac_executable_extensions; do
7876 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7877 ac_cv_prog_ac_ct_RANLIB="ranlib"
7878 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7879 break 2
7880 fi
7881 done
7882 done
7883
7884 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
7885 fi
7886 fi
7887 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7888 if test -n "$ac_ct_RANLIB"; then
7889 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7890 echo "${ECHO_T}$ac_ct_RANLIB" >&6
7891 else
7892 echo "$as_me:$LINENO: result: no" >&5
7893 echo "${ECHO_T}no" >&6
7894 fi
7895
7896 RANLIB=$ac_ct_RANLIB
7897 else
7898 RANLIB="$ac_cv_prog_RANLIB"
7899 fi
7900
7901 if test -n "$ac_tool_prefix"; then
7902 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7903 set dummy ${ac_tool_prefix}strip; ac_word=$2
7904 echo "$as_me:$LINENO: checking for $ac_word" >&5
7905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7906 if test "${ac_cv_prog_STRIP+set}" = set; then
7907 echo $ECHO_N "(cached) $ECHO_C" >&6
7908 else
7909 if test -n "$STRIP"; then
7910 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7911 else
7912 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7913 for as_dir in $PATH
7914 do
7915 IFS=$as_save_IFS
7916 test -z "$as_dir" && as_dir=.
7917 for ac_exec_ext in '' $ac_executable_extensions; do
7918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7919 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7921 break 2
7922 fi
7923 done
7924 done
7925
7926 fi
7927 fi
7928 STRIP=$ac_cv_prog_STRIP
7929 if test -n "$STRIP"; then
7930 echo "$as_me:$LINENO: result: $STRIP" >&5
7931 echo "${ECHO_T}$STRIP" >&6
7932 else
7933 echo "$as_me:$LINENO: result: no" >&5
7934 echo "${ECHO_T}no" >&6
7935 fi
7936
7937 fi
7938 if test -z "$ac_cv_prog_STRIP"; then
7939 ac_ct_STRIP=$STRIP
7940 # Extract the first word of "strip", so it can be a program name with args.
7941 set dummy strip; ac_word=$2
7942 echo "$as_me:$LINENO: checking for $ac_word" >&5
7943 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7944 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
7945 echo $ECHO_N "(cached) $ECHO_C" >&6
7946 else
7947 if test -n "$ac_ct_STRIP"; then
7948 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7949 else
7950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7951 for as_dir in $PATH
7952 do
7953 IFS=$as_save_IFS
7954 test -z "$as_dir" && as_dir=.
7955 for ac_exec_ext in '' $ac_executable_extensions; do
7956 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7957 ac_cv_prog_ac_ct_STRIP="strip"
7958 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7959 break 2
7960 fi
7961 done
7962 done
7963
7964 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
7965 fi
7966 fi
7967 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7968 if test -n "$ac_ct_STRIP"; then
7969 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
7970 echo "${ECHO_T}$ac_ct_STRIP" >&6
7971 else
7972 echo "$as_me:$LINENO: result: no" >&5
7973 echo "${ECHO_T}no" >&6
7974 fi
7975
7976 STRIP=$ac_ct_STRIP
7977 else
7978 STRIP="$ac_cv_prog_STRIP"
7979 fi
7980
7981
7982 old_CC="$CC"
7983 old_CFLAGS="$CFLAGS"
7984
7985 # Set sane defaults for various variables
7986 test -z "$AR" && AR=ar
7987 test -z "$AR_FLAGS" && AR_FLAGS=cru
7988 test -z "$AS" && AS=as
7989 test -z "$CC" && CC=cc
7990 test -z "$LTCC" && LTCC=$CC
7991 test -z "$DLLTOOL" && DLLTOOL=dlltool
7992 test -z "$LD" && LD=ld
7993 test -z "$LN_S" && LN_S="ln -s"
7994 test -z "$MAGIC_CMD" && MAGIC_CMD=file
7995 test -z "$NM" && NM=nm
7996 test -z "$SED" && SED=sed
7997 test -z "$OBJDUMP" && OBJDUMP=objdump
7998 test -z "$RANLIB" && RANLIB=:
7999 test -z "$STRIP" && STRIP=:
8000 test -z "$ac_objext" && ac_objext=o
8001
8002 # Determine commands to create old-style static archives.
8003 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
8004 old_postinstall_cmds='chmod 644 $oldlib'
8005 old_postuninstall_cmds=
8006
8007 if test -n "$RANLIB"; then
8008 case $host_os in
8009 openbsd*)
8010 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
8011 ;;
8012 *)
8013 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
8014 ;;
8015 esac
8016 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8017 fi
8018
8019 # Only perform the check for file, if the check method requires it
8020 case $deplibs_check_method in
8021 file_magic*)
8022 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8023 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
8024 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
8025 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8026 echo $ECHO_N "(cached) $ECHO_C" >&6
8027 else
8028 case $MAGIC_CMD in
8029 [\\/*] | ?:[\\/]*)
8030 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8031 ;;
8032 *)
8033 lt_save_MAGIC_CMD="$MAGIC_CMD"
8034 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8035 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8036 for ac_dir in $ac_dummy; do
8037 IFS="$lt_save_ifs"
8038 test -z "$ac_dir" && ac_dir=.
8039 if test -f $ac_dir/${ac_tool_prefix}file; then
8040 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8041 if test -n "$file_magic_test_file"; then
8042 case $deplibs_check_method in
8043 "file_magic "*)
8044 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8045 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8046 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8047 $EGREP "$file_magic_regex" > /dev/null; then
8048 :
8049 else
8050 cat <<EOF 1>&2
8051
8052 *** Warning: the command libtool uses to detect shared libraries,
8053 *** $file_magic_cmd, produces output that libtool cannot recognize.
8054 *** The result is that libtool may fail to recognize shared libraries
8055 *** as such. This will affect the creation of libtool libraries that
8056 *** depend on shared libraries, but programs linked with such libtool
8057 *** libraries will work regardless of this problem. Nevertheless, you
8058 *** may want to report the problem to your system manager and/or to
8059 *** [email protected]
8060
8061 EOF
8062 fi ;;
8063 esac
8064 fi
8065 break
8066 fi
8067 done
8068 IFS="$lt_save_ifs"
8069 MAGIC_CMD="$lt_save_MAGIC_CMD"
8070 ;;
8071 esac
8072 fi
8073
8074 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8075 if test -n "$MAGIC_CMD"; then
8076 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8077 echo "${ECHO_T}$MAGIC_CMD" >&6
8078 else
8079 echo "$as_me:$LINENO: result: no" >&5
8080 echo "${ECHO_T}no" >&6
8081 fi
8082
8083 if test -z "$lt_cv_path_MAGIC_CMD"; then
8084 if test -n "$ac_tool_prefix"; then
8085 echo "$as_me:$LINENO: checking for file" >&5
8086 echo $ECHO_N "checking for file... $ECHO_C" >&6
8087 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
8088 echo $ECHO_N "(cached) $ECHO_C" >&6
8089 else
8090 case $MAGIC_CMD in
8091 [\\/*] | ?:[\\/]*)
8092 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8093 ;;
8094 *)
8095 lt_save_MAGIC_CMD="$MAGIC_CMD"
8096 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8097 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8098 for ac_dir in $ac_dummy; do
8099 IFS="$lt_save_ifs"
8100 test -z "$ac_dir" && ac_dir=.
8101 if test -f $ac_dir/file; then
8102 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8103 if test -n "$file_magic_test_file"; then
8104 case $deplibs_check_method in
8105 "file_magic "*)
8106 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
8107 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8108 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8109 $EGREP "$file_magic_regex" > /dev/null; then
8110 :
8111 else
8112 cat <<EOF 1>&2
8113
8114 *** Warning: the command libtool uses to detect shared libraries,
8115 *** $file_magic_cmd, produces output that libtool cannot recognize.
8116 *** The result is that libtool may fail to recognize shared libraries
8117 *** as such. This will affect the creation of libtool libraries that
8118 *** depend on shared libraries, but programs linked with such libtool
8119 *** libraries will work regardless of this problem. Nevertheless, you
8120 *** may want to report the problem to your system manager and/or to
8121 *** [email protected]
8122
8123 EOF
8124 fi ;;
8125 esac
8126 fi
8127 break
8128 fi
8129 done
8130 IFS="$lt_save_ifs"
8131 MAGIC_CMD="$lt_save_MAGIC_CMD"
8132 ;;
8133 esac
8134 fi
8135
8136 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8137 if test -n "$MAGIC_CMD"; then
8138 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
8139 echo "${ECHO_T}$MAGIC_CMD" >&6
8140 else
8141 echo "$as_me:$LINENO: result: no" >&5
8142 echo "${ECHO_T}no" >&6
8143 fi
8144
8145 else
8146 MAGIC_CMD=:
8147 fi
8148 fi
8149
8150 fi
8151 ;;
8152 esac
8153
8154 enable_dlopen=no
8155 enable_win32_dll=no
8156
8157 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
8158 if test "${enable_libtool_lock+set}" = set; then
8159 enableval="$enable_libtool_lock"
8160
8161 fi;
8162 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8163
8164
8165 # Check whether --with-pic or --without-pic was given.
8166 if test "${with_pic+set}" = set; then
8167 withval="$with_pic"
8168 pic_mode="$withval"
8169 else
8170 pic_mode=default
8171 fi;
8172 test -z "$pic_mode" && pic_mode=default
8173
8174 # Use C for the default configuration in the libtool script
8175 tagname=
8176 lt_save_CC="$CC"
8177 ac_ext=c
8178 ac_cpp='$CPP $CPPFLAGS'
8179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8182
8183
8184 # Source file extension for C test sources.
8185 ac_ext=c
8186
8187 # Object file extension for compiled C test sources.
8188 objext=o
8189 objext=$objext
8190
8191 # Code to be used in simple compile tests
8192 lt_simple_compile_test_code="int some_variable = 0;\n"
8193
8194 # Code to be used in simple link tests
8195 lt_simple_link_test_code='int main(){return(0);}\n'
8196
8197
8198 # If no C compiler was specified, use CC.
8199 LTCC=${LTCC-"$CC"}
8200
8201 # Allow CC to be a program name with arguments.
8202 compiler=$CC
8203
8204
8205 #
8206 # Check for any special shared library compilation flags.
8207 #
8208 lt_prog_cc_shlib=
8209 if test "$GCC" = no; then
8210 case $host_os in
8211 sco3.2v5*)
8212 lt_prog_cc_shlib='-belf'
8213 ;;
8214 esac
8215 fi
8216 if test -n "$lt_prog_cc_shlib"; then
8217 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
8218 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
8219 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
8220 else
8221 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
8222 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
8223 lt_cv_prog_cc_can_build_shared=no
8224 fi
8225 fi
8226
8227
8228 #
8229 # Check to make sure the static flag actually works.
8230 #
8231 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
8232 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
8233 if test "${lt_prog_compiler_static_works+set}" = set; then
8234 echo $ECHO_N "(cached) $ECHO_C" >&6
8235 else
8236 lt_prog_compiler_static_works=no
8237 save_LDFLAGS="$LDFLAGS"
8238 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
8239 printf "$lt_simple_link_test_code" > conftest.$ac_ext
8240 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8241 # The compiler can only warn and ignore the option if not recognized
8242 # So say no if there are warnings
8243 if test -s conftest.err; then
8244 # Append any errors to the config.log.
8245 cat conftest.err 1>&5
8246 else
8247 lt_prog_compiler_static_works=yes
8248 fi
8249 fi
8250 $rm conftest*
8251 LDFLAGS="$save_LDFLAGS"
8252
8253 fi
8254 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
8255 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
8256
8257 if test x"$lt_prog_compiler_static_works" = xyes; then
8258 :
8259 else
8260 lt_prog_compiler_static=
8261 fi
8262
8263
8264
8265
8266 lt_prog_compiler_no_builtin_flag=
8267
8268 if test "$GCC" = yes; then
8269 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
8270
8271
8272 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8273 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
8274 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277 lt_cv_prog_compiler_rtti_exceptions=no
8278 ac_outfile=conftest.$ac_objext
8279 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8280 lt_compiler_flag="-fno-rtti -fno-exceptions"
8281 # Insert the option either (1) after the last *FLAGS variable, or
8282 # (2) before a word containing "conftest.", or (3) at the end.
8283 # Note that $ac_compile itself does not contain backslashes and begins
8284 # with a dollar sign (not a hyphen), so the echo should work correctly.
8285 # The option is referenced via a variable to avoid confusing sed.
8286 lt_compile=`echo "$ac_compile" | $SED \
8287 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8288 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8289 -e 's:$: $lt_compiler_flag:'`
8290 (eval echo "\"\$as_me:8290: $lt_compile\"" >&5)
8291 (eval "$lt_compile" 2>conftest.err)
8292 ac_status=$?
8293 cat conftest.err >&5
8294 echo "$as_me:8294: \$? = $ac_status" >&5
8295 if (exit $ac_status) && test -s "$ac_outfile"; then
8296 # The compiler can only warn and ignore the option if not recognized
8297 # So say no if there are warnings
8298 if test ! -s conftest.err; then
8299 lt_cv_prog_compiler_rtti_exceptions=yes
8300 fi
8301 fi
8302 $rm conftest*
8303
8304 fi
8305 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8306 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
8307
8308 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8309 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8310 else
8311 :
8312 fi
8313
8314 fi
8315
8316 lt_prog_compiler_wl=
8317 lt_prog_compiler_pic=
8318 lt_prog_compiler_static=
8319
8320 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
8321 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
8322
8323 if test "$GCC" = yes; then
8324 lt_prog_compiler_wl='-Wl,'
8325 lt_prog_compiler_static='-static'
8326
8327 case $host_os in
8328 aix*)
8329 # All AIX code is PIC.
8330 if test "$host_cpu" = ia64; then
8331 # AIX 5 now supports IA64 processor
8332 lt_prog_compiler_static='-Bstatic'
8333 fi
8334 ;;
8335
8336 amigaos*)
8337 # FIXME: we need at least 68020 code to build shared libraries, but
8338 # adding the `-m68020' flag to GCC prevents building anything better,
8339 # like `-m68040'.
8340 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8341 ;;
8342
8343 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8344 # PIC is the default for these OSes.
8345 ;;
8346
8347 mingw* | pw32* | os2*)
8348 # This hack is so that the source file can tell whether it is being
8349 # built for inclusion in a dll (and should export symbols for example).
8350 lt_prog_compiler_pic='-DDLL_EXPORT'
8351 ;;
8352
8353 darwin* | rhapsody*)
8354 # PIC is the default on this platform
8355 # Common symbols not allowed in MH_DYLIB files
8356 lt_prog_compiler_pic='-fno-common'
8357 ;;
8358
8359 msdosdjgpp*)
8360 # Just because we use GCC doesn't mean we suddenly get shared libraries
8361 # on systems that don't support them.
8362 lt_prog_compiler_can_build_shared=no
8363 enable_shared=no
8364 ;;
8365
8366 sysv4*MP*)
8367 if test -d /usr/nec; then
8368 lt_prog_compiler_pic=-Kconform_pic
8369 fi
8370 ;;
8371
8372 hpux*)
8373 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8374 # not for PA HP-UX.
8375 case "$host_cpu" in
8376 hppa*64*|ia64*)
8377 # +Z the default
8378 ;;
8379 *)
8380 lt_prog_compiler_pic='-fPIC'
8381 ;;
8382 esac
8383 ;;
8384
8385 *)
8386 lt_prog_compiler_pic='-fPIC'
8387 ;;
8388 esac
8389 else
8390 # PORTME Check for flag to pass linker flags through the system compiler.
8391 case $host_os in
8392 aix*)
8393 lt_prog_compiler_wl='-Wl,'
8394 if test "$host_cpu" = ia64; then
8395 # AIX 5 now supports IA64 processor
8396 lt_prog_compiler_static='-Bstatic'
8397 else
8398 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8399 fi
8400 ;;
8401
8402 mingw* | pw32* | os2*)
8403 # This hack is so that the source file can tell whether it is being
8404 # built for inclusion in a dll (and should export symbols for example).
8405 lt_prog_compiler_pic='-DDLL_EXPORT'
8406 ;;
8407
8408 hpux9* | hpux10* | hpux11*)
8409 lt_prog_compiler_wl='-Wl,'
8410 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8411 # not for PA HP-UX.
8412 case "$host_cpu" in
8413 hppa*64*|ia64*)
8414 # +Z the default
8415 ;;
8416 *)
8417 lt_prog_compiler_pic='+Z'
8418 ;;
8419 esac
8420 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8421 lt_prog_compiler_static='${wl}-a ${wl}archive'
8422 ;;
8423
8424 irix5* | irix6* | nonstopux*)
8425 lt_prog_compiler_wl='-Wl,'
8426 # PIC (with -KPIC) is the default.
8427 lt_prog_compiler_static='-non_shared'
8428 ;;
8429
8430 newsos6)
8431 lt_prog_compiler_pic='-KPIC'
8432 lt_prog_compiler_static='-Bstatic'
8433 ;;
8434
8435 linux*)
8436 case $CC in
8437 icc* | ecc*)
8438 lt_prog_compiler_wl='-Wl,'
8439 lt_prog_compiler_pic='-KPIC'
8440 lt_prog_compiler_static='-static'
8441 ;;
8442 ccc*)
8443 lt_prog_compiler_wl='-Wl,'
8444 # All Alpha code is PIC.
8445 lt_prog_compiler_static='-non_shared'
8446 ;;
8447 esac
8448 ;;
8449
8450 osf3* | osf4* | osf5*)
8451 lt_prog_compiler_wl='-Wl,'
8452 # All OSF/1 code is PIC.
8453 lt_prog_compiler_static='-non_shared'
8454 ;;
8455
8456 sco3.2v5*)
8457 lt_prog_compiler_pic='-Kpic'
8458 lt_prog_compiler_static='-dn'
8459 ;;
8460
8461 solaris*)
8462 lt_prog_compiler_wl='-Wl,'
8463 lt_prog_compiler_pic='-KPIC'
8464 lt_prog_compiler_static='-Bstatic'
8465 ;;
8466
8467 sunos4*)
8468 lt_prog_compiler_wl='-Qoption ld '
8469 lt_prog_compiler_pic='-PIC'
8470 lt_prog_compiler_static='-Bstatic'
8471 ;;
8472
8473 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
8474 lt_prog_compiler_wl='-Wl,'
8475 lt_prog_compiler_pic='-KPIC'
8476 lt_prog_compiler_static='-Bstatic'
8477 ;;
8478
8479 sysv4*MP*)
8480 if test -d /usr/nec ;then
8481 lt_prog_compiler_pic='-Kconform_pic'
8482 lt_prog_compiler_static='-Bstatic'
8483 fi
8484 ;;
8485
8486 uts4*)
8487 lt_prog_compiler_pic='-pic'
8488 lt_prog_compiler_static='-Bstatic'
8489 ;;
8490
8491 *)
8492 lt_prog_compiler_can_build_shared=no
8493 ;;
8494 esac
8495 fi
8496
8497 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
8498 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
8499
8500 #
8501 # Check to make sure the PIC flag actually works.
8502 #
8503 if test -n "$lt_prog_compiler_pic"; then
8504
8505 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8506 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
8507 if test "${lt_prog_compiler_pic_works+set}" = set; then
8508 echo $ECHO_N "(cached) $ECHO_C" >&6
8509 else
8510 lt_prog_compiler_pic_works=no
8511 ac_outfile=conftest.$ac_objext
8512 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8513 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8514 # Insert the option either (1) after the last *FLAGS variable, or
8515 # (2) before a word containing "conftest.", or (3) at the end.
8516 # Note that $ac_compile itself does not contain backslashes and begins
8517 # with a dollar sign (not a hyphen), so the echo should work correctly.
8518 # The option is referenced via a variable to avoid confusing sed.
8519 lt_compile=`echo "$ac_compile" | $SED \
8520 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8521 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8522 -e 's:$: $lt_compiler_flag:'`
8523 (eval echo "\"\$as_me:8523: $lt_compile\"" >&5)
8524 (eval "$lt_compile" 2>conftest.err)
8525 ac_status=$?
8526 cat conftest.err >&5
8527 echo "$as_me:8527: \$? = $ac_status" >&5
8528 if (exit $ac_status) && test -s "$ac_outfile"; then
8529 # The compiler can only warn and ignore the option if not recognized
8530 # So say no if there are warnings
8531 if test ! -s conftest.err; then
8532 lt_prog_compiler_pic_works=yes
8533 fi
8534 fi
8535 $rm conftest*
8536
8537 fi
8538 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
8539 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
8540
8541 if test x"$lt_prog_compiler_pic_works" = xyes; then
8542 case $lt_prog_compiler_pic in
8543 "" | " "*) ;;
8544 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8545 esac
8546 else
8547 lt_prog_compiler_pic=
8548 lt_prog_compiler_can_build_shared=no
8549 fi
8550
8551 fi
8552 case "$host_os" in
8553 # For platforms which do not support PIC, -DPIC is meaningless:
8554 *djgpp*)
8555 lt_prog_compiler_pic=
8556 ;;
8557 *)
8558 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8559 ;;
8560 esac
8561
8562 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
8563 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
8564 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
8565 echo $ECHO_N "(cached) $ECHO_C" >&6
8566 else
8567 lt_cv_prog_compiler_c_o=no
8568 $rm -r conftest 2>/dev/null
8569 mkdir conftest
8570 cd conftest
8571 mkdir out
8572 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
8573
8574 lt_compiler_flag="-o out/conftest2.$ac_objext"
8575 # Insert the option either (1) after the last *FLAGS variable, or
8576 # (2) before a word containing "conftest.", or (3) at the end.
8577 # Note that $ac_compile itself does not contain backslashes and begins
8578 # with a dollar sign (not a hyphen), so the echo should work correctly.
8579 lt_compile=`echo "$ac_compile" | $SED \
8580 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
8581 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8582 -e 's:$: $lt_compiler_flag:'`
8583 (eval echo "\"\$as_me:8583: $lt_compile\"" >&5)
8584 (eval "$lt_compile" 2>out/conftest.err)
8585 ac_status=$?
8586 cat out/conftest.err >&5
8587 echo "$as_me:8587: \$? = $ac_status" >&5
8588 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8589 then
8590 # The compiler can only warn and ignore the option if not recognized
8591 # So say no if there are warnings
8592 if test ! -s out/conftest.err; then
8593 lt_cv_prog_compiler_c_o=yes
8594 fi
8595 fi
8596 chmod u+w .
8597 $rm conftest*
8598 # SGI C++ compiler will create directory out/ii_files/ for
8599 # template instantiation
8600 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
8601 $rm out/* && rmdir out
8602 cd ..
8603 rmdir conftest
8604 $rm conftest*
8605
8606 fi
8607 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
8608 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
8609
8610
8611 hard_links="nottested"
8612 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
8613 # do not overwrite the value of need_locks provided by the user
8614 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
8615 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
8616 hard_links=yes
8617 $rm conftest*
8618 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8619 touch conftest.a
8620 ln conftest.a conftest.b 2>&5 || hard_links=no
8621 ln conftest.a conftest.b 2>/dev/null && hard_links=no
8622 echo "$as_me:$LINENO: result: $hard_links" >&5
8623 echo "${ECHO_T}$hard_links" >&6
8624 if test "$hard_links" = no; then
8625 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
8626 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
8627 need_locks=warn
8628 fi
8629 else
8630 need_locks=no
8631 fi
8632
8633 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
8634 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
8635
8636 runpath_var=
8637 allow_undefined_flag=
8638 enable_shared_with_static_runtimes=no
8639 archive_cmds=
8640 archive_expsym_cmds=
8641 old_archive_From_new_cmds=
8642 old_archive_from_expsyms_cmds=
8643 export_dynamic_flag_spec=
8644 whole_archive_flag_spec=
8645 thread_safe_flag_spec=
8646 hardcode_libdir_flag_spec=
8647 hardcode_libdir_flag_spec_ld=
8648 hardcode_libdir_separator=
8649 hardcode_direct=no
8650 hardcode_minus_L=no
8651 hardcode_shlibpath_var=unsupported
8652 link_all_deplibs=unknown
8653 hardcode_automatic=no
8654 module_cmds=
8655 module_expsym_cmds=
8656 always_export_symbols=no
8657 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
8658 # include_expsyms should be a list of space-separated symbols to be *always*
8659 # included in the symbol list
8660 include_expsyms=
8661 # exclude_expsyms can be an extended regexp of symbols to exclude
8662 # it will be wrapped by ` (' and `)$', so one must not match beginning or
8663 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
8664 # as well as any symbol that contains `d'.
8665 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
8666 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
8667 # platforms (ab)use it in PIC code, but their linkers get confused if
8668 # the symbol is explicitly referenced. Since portable code cannot
8669 # rely on this symbol name, it's probably fine to never include it in
8670 # preloaded symbol tables.
8671 extract_expsyms_cmds=
8672
8673 case $host_os in
8674 cygwin* | mingw* | pw32*)
8675 # FIXME: the MSVC++ port hasn't been tested in a loooong time
8676 # When not using gcc, we currently assume that we are using
8677 # Microsoft Visual C++.
8678 if test "$GCC" != yes; then
8679 with_gnu_ld=no
8680 fi
8681 ;;
8682 openbsd*)
8683 with_gnu_ld=no
8684 ;;
8685 esac
8686
8687 ld_shlibs=yes
8688 if test "$with_gnu_ld" = yes; then
8689 # If archive_cmds runs LD, not CC, wlarc should be empty
8690 wlarc='${wl}'
8691
8692 # See if GNU ld supports shared libraries.
8693 case $host_os in
8694 aix3* | aix4* | aix5*)
8695 # On AIX/PPC, the GNU linker is very broken
8696 if test "$host_cpu" != ia64; then
8697 ld_shlibs=no
8698 cat <<EOF 1>&2
8699
8700 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
8701 *** to be unable to reliably create shared libraries on AIX.
8702 *** Therefore, libtool is disabling shared libraries support. If you
8703 *** really care for shared libraries, you may want to modify your PATH
8704 *** so that a non-GNU linker is found, and then restart.
8705
8706 EOF
8707 fi
8708 ;;
8709
8710 amigaos*)
8711 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)'
8712 hardcode_libdir_flag_spec='-L$libdir'
8713 hardcode_minus_L=yes
8714
8715 # Samuel A. Falvo II <[email protected]> reports
8716 # that the semantics of dynamic libraries on AmigaOS, at least up
8717 # to version 4, is to share data among multiple programs linked
8718 # with the same dynamic library. Since this doesn't match the
8719 # behavior of shared libraries on other platforms, we can't use
8720 # them.
8721 ld_shlibs=no
8722 ;;
8723
8724 beos*)
8725 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8726 allow_undefined_flag=unsupported
8727 # Joseph Beckenbach <[email protected]> says some releases of gcc
8728 # support --undefined. This deserves some investigation. FIXME
8729 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8730 else
8731 ld_shlibs=no
8732 fi
8733 ;;
8734
8735 cygwin* | mingw* | pw32*)
8736 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
8737 # as there is no search path for DLLs.
8738 hardcode_libdir_flag_spec='-L$libdir'
8739 allow_undefined_flag=unsupported
8740 always_export_symbols=no
8741 enable_shared_with_static_runtimes=yes
8742 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
8743
8744 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
8745 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8746 # If the export-symbols file already is a .def file (1st line
8747 # is EXPORTS), use it as is; otherwise, prepend...
8748 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
8749 cp $export_symbols $output_objdir/$soname.def;
8750 else
8751 echo EXPORTS > $output_objdir/$soname.def;
8752 cat $export_symbols >> $output_objdir/$soname.def;
8753 fi~
8754 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
8755 else
8756 ld_shlibs=no
8757 fi
8758 ;;
8759
8760 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
8761 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
8762 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
8763 wlarc=
8764 else
8765 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8766 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8767 fi
8768 ;;
8769
8770 solaris* | sysv5*)
8771 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
8772 ld_shlibs=no
8773 cat <<EOF 1>&2
8774
8775 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
8776 *** create shared libraries on Solaris systems. Therefore, libtool
8777 *** is disabling shared libraries support. We urge you to upgrade GNU
8778 *** binutils to release 2.9.1 or newer. Another option is to modify
8779 *** your PATH or compiler configuration so that the native linker is
8780 *** used, and then restart.
8781
8782 EOF
8783 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8784 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8785 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8786 else
8787 ld_shlibs=no
8788 fi
8789 ;;
8790
8791 sunos4*)
8792 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
8793 wlarc=
8794 hardcode_direct=yes
8795 hardcode_shlibpath_var=no
8796 ;;
8797
8798 linux*)
8799 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8800 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8801 archive_cmds="$tmp_archive_cmds"
8802 supports_anon_versioning=no
8803 case `$LD -v 2>/dev/null` in
8804 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
8805 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
8806 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
8807 *\ 2.11.*) ;; # other 2.11 versions
8808 *) supports_anon_versioning=yes ;;
8809 esac
8810 if test $supports_anon_versioning = yes; then
8811 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
8812 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
8813 $echo "local: *; };" >> $output_objdir/$libname.ver~
8814 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
8815 else
8816 archive_expsym_cmds="$tmp_archive_cmds"
8817 fi
8818 link_all_deplibs=no
8819 else
8820 ld_shlibs=no
8821 fi
8822 ;;
8823
8824 *)
8825 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
8826 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
8827 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
8828 else
8829 ld_shlibs=no
8830 fi
8831 ;;
8832 esac
8833
8834 if test "$ld_shlibs" = yes; then
8835 runpath_var=LD_RUN_PATH
8836 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
8837 export_dynamic_flag_spec='${wl}--export-dynamic'
8838 # ancient GNU ld didn't support --whole-archive et. al.
8839 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
8840 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
8841 else
8842 whole_archive_flag_spec=
8843 fi
8844 fi
8845 else
8846 # PORTME fill in a description of your system's linker (not GNU ld)
8847 case $host_os in
8848 aix3*)
8849 allow_undefined_flag=unsupported
8850 always_export_symbols=yes
8851 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'
8852 # Note: this linker hardcodes the directories in LIBPATH if there
8853 # are no directories specified by -L.
8854 hardcode_minus_L=yes
8855 if test "$GCC" = yes && test -z "$link_static_flag"; then
8856 # Neither direct hardcoding nor static linking is supported with a
8857 # broken collect2.
8858 hardcode_direct=unsupported
8859 fi
8860 ;;
8861
8862 aix4* | aix5*)
8863 if test "$host_cpu" = ia64; then
8864 # On IA64, the linker does run time linking by default, so we don't
8865 # have to do anything special.
8866 aix_use_runtimelinking=no
8867 exp_sym_flag='-Bexport'
8868 no_entry_flag=""
8869 else
8870 # If we're using GNU nm, then we don't want the "-C" option.
8871 # -C means demangle to AIX nm, but means don't demangle with GNU nm
8872 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
8873 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'
8874 else
8875 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'
8876 fi
8877 aix_use_runtimelinking=no
8878
8879 # Test if we are trying to use run time linking or normal
8880 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
8881 # need to do runtime linking.
8882 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
8883 for ld_flag in $LDFLAGS; do
8884 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
8885 aix_use_runtimelinking=yes
8886 break
8887 fi
8888 done
8889 esac
8890
8891 exp_sym_flag='-bexport'
8892 no_entry_flag='-bnoentry'
8893 fi
8894
8895 # When large executables or shared objects are built, AIX ld can
8896 # have problems creating the table of contents. If linking a library
8897 # or program results in "error TOC overflow" add -mminimal-toc to
8898 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
8899 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
8900
8901 archive_cmds=''
8902 hardcode_direct=yes
8903 hardcode_libdir_separator=':'
8904 link_all_deplibs=yes
8905
8906 if test "$GCC" = yes; then
8907 case $host_os in aix4.012|aix4.012.*)
8908 # We only want to do this on AIX 4.2 and lower, the check
8909 # below for broken collect2 doesn't work under 4.3+
8910 collect2name=`${CC} -print-prog-name=collect2`
8911 if test -f "$collect2name" && \
8912 strings "$collect2name" | grep resolve_lib_name >/dev/null
8913 then
8914 # We have reworked collect2
8915 hardcode_direct=yes
8916 else
8917 # We have old collect2
8918 hardcode_direct=unsupported
8919 # It fails to find uninstalled libraries when the uninstalled
8920 # path is not listed in the libpath. Setting hardcode_minus_L
8921 # to unsupported forces relinking
8922 hardcode_minus_L=yes
8923 hardcode_libdir_flag_spec='-L$libdir'
8924 hardcode_libdir_separator=
8925 fi
8926 esac
8927 shared_flag='-shared'
8928 else
8929 # not using gcc
8930 if test "$host_cpu" = ia64; then
8931 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
8932 # chokes on -Wl,-G. The following line is correct:
8933 shared_flag='-G'
8934 else
8935 if test "$aix_use_runtimelinking" = yes; then
8936 shared_flag='${wl}-G'
8937 else
8938 shared_flag='${wl}-bM:SRE'
8939 fi
8940 fi
8941 fi
8942
8943 # It seems that -bexpall does not export symbols beginning with
8944 # underscore (_), so it is better to generate a list of symbols to export.
8945 always_export_symbols=yes
8946 if test "$aix_use_runtimelinking" = yes; then
8947 # Warning - without using the other runtime loading flags (-brtl),
8948 # -berok will link without error, but may produce a broken library.
8949 allow_undefined_flag='-berok'
8950 # Determine the default libpath from the value encoded in an empty executable.
8951 cat >conftest.$ac_ext <<_ACEOF
8952 /* confdefs.h. */
8953 _ACEOF
8954 cat confdefs.h >>conftest.$ac_ext
8955 cat >>conftest.$ac_ext <<_ACEOF
8956 /* end confdefs.h. */
8957
8958 int
8959 main ()
8960 {
8961
8962 ;
8963 return 0;
8964 }
8965 _ACEOF
8966 rm -f conftest.$ac_objext conftest$ac_exeext
8967 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
8968 (eval $ac_link) 2>conftest.er1
8969 ac_status=$?
8970 grep -v '^ *+' conftest.er1 >conftest.err
8971 rm -f conftest.er1
8972 cat conftest.err >&5
8973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8974 (exit $ac_status); } &&
8975 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8977 (eval $ac_try) 2>&5
8978 ac_status=$?
8979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8980 (exit $ac_status); }; } &&
8981 { ac_try='test -s conftest$ac_exeext'
8982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8983 (eval $ac_try) 2>&5
8984 ac_status=$?
8985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8986 (exit $ac_status); }; }; then
8987
8988 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8989 }'`
8990 # Check for a 64-bit object if we didn't find anything.
8991 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
8992 }'`; fi
8993 else
8994 echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8996
8997 fi
8998 rm -f conftest.err conftest.$ac_objext \
8999 conftest$ac_exeext conftest.$ac_ext
9000 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9001
9002 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9003 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9004 else
9005 if test "$host_cpu" = ia64; then
9006 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9007 allow_undefined_flag="-z nodefs"
9008 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
9009 else
9010 # Determine the default libpath from the value encoded in an empty executable.
9011 cat >conftest.$ac_ext <<_ACEOF
9012 /* confdefs.h. */
9013 _ACEOF
9014 cat confdefs.h >>conftest.$ac_ext
9015 cat >>conftest.$ac_ext <<_ACEOF
9016 /* end confdefs.h. */
9017
9018 int
9019 main ()
9020 {
9021
9022 ;
9023 return 0;
9024 }
9025 _ACEOF
9026 rm -f conftest.$ac_objext conftest$ac_exeext
9027 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9028 (eval $ac_link) 2>conftest.er1
9029 ac_status=$?
9030 grep -v '^ *+' conftest.er1 >conftest.err
9031 rm -f conftest.er1
9032 cat conftest.err >&5
9033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034 (exit $ac_status); } &&
9035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9037 (eval $ac_try) 2>&5
9038 ac_status=$?
9039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9040 (exit $ac_status); }; } &&
9041 { ac_try='test -s conftest$ac_exeext'
9042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9043 (eval $ac_try) 2>&5
9044 ac_status=$?
9045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9046 (exit $ac_status); }; }; then
9047
9048 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9049 }'`
9050 # Check for a 64-bit object if we didn't find anything.
9051 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
9052 }'`; fi
9053 else
9054 echo "$as_me: failed program was:" >&5
9055 sed 's/^/| /' conftest.$ac_ext >&5
9056
9057 fi
9058 rm -f conftest.err conftest.$ac_objext \
9059 conftest$ac_exeext conftest.$ac_ext
9060 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
9061
9062 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9063 # Warning - without using the other run time loading flags,
9064 # -berok will link without error, but may produce a broken library.
9065 no_undefined_flag=' ${wl}-bernotok'
9066 allow_undefined_flag=' ${wl}-berok'
9067 # -bexpall does not export symbols beginning with underscore (_)
9068 always_export_symbols=yes
9069 # Exported symbols can be pulled into shared objects from archives
9070 whole_archive_flag_spec=' '
9071 archive_cmds_need_lc=yes
9072 # This is similar to how AIX traditionally builds it's shared libraries.
9073 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9074 fi
9075 fi
9076 ;;
9077
9078 amigaos*)
9079 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)'
9080 hardcode_libdir_flag_spec='-L$libdir'
9081 hardcode_minus_L=yes
9082 # see comment about different semantics on the GNU ld section
9083 ld_shlibs=no
9084 ;;
9085
9086 bsdi4*)
9087 export_dynamic_flag_spec=-rdynamic
9088 ;;
9089
9090 cygwin* | mingw* | pw32*)
9091 # When not using gcc, we currently assume that we are using
9092 # Microsoft Visual C++.
9093 # hardcode_libdir_flag_spec is actually meaningless, as there is
9094 # no search path for DLLs.
9095 hardcode_libdir_flag_spec=' '
9096 allow_undefined_flag=unsupported
9097 # Tell ltmain to make .lib files, not .a files.
9098 libext=lib
9099 # Tell ltmain to make .dll files, not .so files.
9100 shrext_cmds=".dll"
9101 # FIXME: Setting linknames here is a bad hack.
9102 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
9103 # The linker will automatically build a .lib file if we build a DLL.
9104 old_archive_From_new_cmds='true'
9105 # FIXME: Should let the user specify the lib program.
9106 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
9107 fix_srcfile_path='`cygpath -w "$srcfile"`'
9108 enable_shared_with_static_runtimes=yes
9109 ;;
9110
9111 darwin* | rhapsody*)
9112 if test "$GXX" = yes ; then
9113 archive_cmds_need_lc=no
9114 case "$host_os" in
9115 rhapsody* | darwin1.[012])
9116 allow_undefined_flag='-undefined suppress'
9117 ;;
9118 *) # Darwin 1.3 on
9119 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
9120 allow_undefined_flag='-flat_namespace -undefined suppress'
9121 else
9122 case ${MACOSX_DEPLOYMENT_TARGET} in
9123 10.[012])
9124 allow_undefined_flag='-flat_namespace -undefined suppress'
9125 ;;
9126 10.*)
9127 allow_undefined_flag='-undefined dynamic_lookup'
9128 ;;
9129 esac
9130 fi
9131 ;;
9132 esac
9133 lt_int_apple_cc_single_mod=no
9134 output_verbose_link_cmd='echo'
9135 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
9136 lt_int_apple_cc_single_mod=yes
9137 fi
9138 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9139 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
9140 else
9141 archive_cmds='$CC -r ${wl}-bind_at_load -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'
9142 fi
9143 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
9144 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
9145 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
9146 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9147 else
9148 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
9149 fi
9150 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}'
9151 hardcode_direct=no
9152 hardcode_automatic=yes
9153 hardcode_shlibpath_var=unsupported
9154 whole_archive_flag_spec='-all_load $convenience'
9155 link_all_deplibs=yes
9156 else
9157 ld_shlibs=no
9158 fi
9159 ;;
9160
9161 dgux*)
9162 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9163 hardcode_libdir_flag_spec='-L$libdir'
9164 hardcode_shlibpath_var=no
9165 ;;
9166
9167 freebsd1*)
9168 ld_shlibs=no
9169 ;;
9170
9171 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9172 # support. Future versions do this automatically, but an explicit c++rt0.o
9173 # does not break anything, and helps significantly (at the cost of a little
9174 # extra space).
9175 freebsd2.2*)
9176 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9177 hardcode_libdir_flag_spec='-R$libdir'
9178 hardcode_direct=yes
9179 hardcode_shlibpath_var=no
9180 ;;
9181
9182 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9183 freebsd2*)
9184 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9185 hardcode_direct=yes
9186 hardcode_minus_L=yes
9187 hardcode_shlibpath_var=no
9188 ;;
9189
9190 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9191 freebsd* | kfreebsd*-gnu)
9192 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
9193 hardcode_libdir_flag_spec='-R$libdir'
9194 hardcode_direct=yes
9195 hardcode_shlibpath_var=no
9196 ;;
9197
9198 hpux9*)
9199 if test "$GCC" = yes; then
9200 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'
9201 else
9202 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'
9203 fi
9204 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9205 hardcode_libdir_separator=:
9206 hardcode_direct=yes
9207
9208 # hardcode_minus_L: Not really in the search PATH,
9209 # but as the default location of the library.
9210 hardcode_minus_L=yes
9211 export_dynamic_flag_spec='${wl}-E'
9212 ;;
9213
9214 hpux10* | hpux11*)
9215 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
9216 case "$host_cpu" in
9217 hppa*64*|ia64*)
9218 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9219 ;;
9220 *)
9221 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9222 ;;
9223 esac
9224 else
9225 case "$host_cpu" in
9226 hppa*64*|ia64*)
9227 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
9228 ;;
9229 *)
9230 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9231 ;;
9232 esac
9233 fi
9234 if test "$with_gnu_ld" = no; then
9235 case "$host_cpu" in
9236 hppa*64*)
9237 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9238 hardcode_libdir_flag_spec_ld='+b $libdir'
9239 hardcode_libdir_separator=:
9240 hardcode_direct=no
9241 hardcode_shlibpath_var=no
9242 ;;
9243 ia64*)
9244 hardcode_libdir_flag_spec='-L$libdir'
9245 hardcode_direct=no
9246 hardcode_shlibpath_var=no
9247
9248 # hardcode_minus_L: Not really in the search PATH,
9249 # but as the default location of the library.
9250 hardcode_minus_L=yes
9251 ;;
9252 *)
9253 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9254 hardcode_libdir_separator=:
9255 hardcode_direct=yes
9256 export_dynamic_flag_spec='${wl}-E'
9257
9258 # hardcode_minus_L: Not really in the search PATH,
9259 # but as the default location of the library.
9260 hardcode_minus_L=yes
9261 ;;
9262 esac
9263 fi
9264 ;;
9265
9266 irix5* | irix6* | nonstopux*)
9267 if test "$GCC" = yes; then
9268 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'
9269 else
9270 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'
9271 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9272 fi
9273 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9274 hardcode_libdir_separator=:
9275 link_all_deplibs=yes
9276 ;;
9277
9278 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
9279 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9280 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9281 else
9282 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9283 fi
9284 hardcode_libdir_flag_spec='-R$libdir'
9285 hardcode_direct=yes
9286 hardcode_shlibpath_var=no
9287 ;;
9288
9289 newsos6)
9290 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9291 hardcode_direct=yes
9292 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9293 hardcode_libdir_separator=:
9294 hardcode_shlibpath_var=no
9295 ;;
9296
9297 openbsd*)
9298 hardcode_direct=yes
9299 hardcode_shlibpath_var=no
9300 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9301 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9302 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9303 export_dynamic_flag_spec='${wl}-E'
9304 else
9305 case $host_os in
9306 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9307 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9308 hardcode_libdir_flag_spec='-R$libdir'
9309 ;;
9310 *)
9311 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9312 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9313 ;;
9314 esac
9315 fi
9316 ;;
9317
9318 os2*)
9319 hardcode_libdir_flag_spec='-L$libdir'
9320 hardcode_minus_L=yes
9321 allow_undefined_flag=unsupported
9322 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'
9323 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
9324 ;;
9325
9326 osf3*)
9327 if test "$GCC" = yes; then
9328 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9329 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'
9330 else
9331 allow_undefined_flag=' -expect_unresolved \*'
9332 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'
9333 fi
9334 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9335 hardcode_libdir_separator=:
9336 ;;
9337
9338 osf4* | osf5*) # as osf3* with the addition of -msym flag
9339 if test "$GCC" = yes; then
9340 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
9341 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'
9342 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9343 else
9344 allow_undefined_flag=' -expect_unresolved \*'
9345 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'
9346 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
9347 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
9348
9349 # Both c and cxx compiler support -rpath directly
9350 hardcode_libdir_flag_spec='-rpath $libdir'
9351 fi
9352 hardcode_libdir_separator=:
9353 ;;
9354
9355 sco3.2v5*)
9356 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9357 hardcode_shlibpath_var=no
9358 export_dynamic_flag_spec='${wl}-Bexport'
9359 runpath_var=LD_RUN_PATH
9360 hardcode_runpath_var=yes
9361 ;;
9362
9363 solaris*)
9364 no_undefined_flag=' -z text'
9365 if test "$GCC" = yes; then
9366 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9367 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9368 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
9369 else
9370 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9371 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9372 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9373 fi
9374 hardcode_libdir_flag_spec='-R$libdir'
9375 hardcode_shlibpath_var=no
9376 case $host_os in
9377 solaris2.[0-5] | solaris2.[0-5].*) ;;
9378 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
9379 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
9380 esac
9381 link_all_deplibs=yes
9382 ;;
9383
9384 sunos4*)
9385 if test "x$host_vendor" = xsequent; then
9386 # Use $CC to link under sequent, because it throws in some extra .o
9387 # files that make .init and .fini sections work.
9388 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
9389 else
9390 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
9391 fi
9392 hardcode_libdir_flag_spec='-L$libdir'
9393 hardcode_direct=yes
9394 hardcode_minus_L=yes
9395 hardcode_shlibpath_var=no
9396 ;;
9397
9398 sysv4)
9399 case $host_vendor in
9400 sni)
9401 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9402 hardcode_direct=yes # is this really true???
9403 ;;
9404 siemens)
9405 ## LD is ld it makes a PLAMLIB
9406 ## CC just makes a GrossModule.
9407 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9408 reload_cmds='$CC -r -o $output$reload_objs'
9409 hardcode_direct=no
9410 ;;
9411 motorola)
9412 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9413 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
9414 ;;
9415 esac
9416 runpath_var='LD_RUN_PATH'
9417 hardcode_shlibpath_var=no
9418 ;;
9419
9420 sysv4.3*)
9421 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9422 hardcode_shlibpath_var=no
9423 export_dynamic_flag_spec='-Bexport'
9424 ;;
9425
9426 sysv4*MP*)
9427 if test -d /usr/nec; then
9428 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9429 hardcode_shlibpath_var=no
9430 runpath_var=LD_RUN_PATH
9431 hardcode_runpath_var=yes
9432 ld_shlibs=yes
9433 fi
9434 ;;
9435
9436 sysv4.2uw2*)
9437 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
9438 hardcode_direct=yes
9439 hardcode_minus_L=no
9440 hardcode_shlibpath_var=no
9441 hardcode_runpath_var=yes
9442 runpath_var=LD_RUN_PATH
9443 ;;
9444
9445 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
9446 no_undefined_flag='${wl}-z ${wl}text'
9447 if test "$GCC" = yes; then
9448 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9449 else
9450 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9451 fi
9452 runpath_var='LD_RUN_PATH'
9453 hardcode_shlibpath_var=no
9454 ;;
9455
9456 sysv5*)
9457 no_undefined_flag=' -z text'
9458 # $CC -shared without GNU ld will not create a library from C++
9459 # object files and a static libstdc++, better avoid it by now
9460 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
9461 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
9462 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
9463 hardcode_libdir_flag_spec=
9464 hardcode_shlibpath_var=no
9465 runpath_var='LD_RUN_PATH'
9466 ;;
9467
9468 uts4*)
9469 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9470 hardcode_libdir_flag_spec='-L$libdir'
9471 hardcode_shlibpath_var=no
9472 ;;
9473
9474 *)
9475 ld_shlibs=no
9476 ;;
9477 esac
9478 fi
9479
9480 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
9481 echo "${ECHO_T}$ld_shlibs" >&6
9482 test "$ld_shlibs" = no && can_build_shared=no
9483
9484 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
9485 if test "$GCC" = yes; then
9486 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
9487 fi
9488
9489 #
9490 # Do we need to explicitly link libc?
9491 #
9492 case "x$archive_cmds_need_lc" in
9493 x|xyes)
9494 # Assume -lc should be added
9495 archive_cmds_need_lc=yes
9496
9497 if test "$enable_shared" = yes && test "$GCC" = yes; then
9498 case $archive_cmds in
9499 *'~'*)
9500 # FIXME: we may have to deal with multi-command sequences.
9501 ;;
9502 '$CC '*)
9503 # Test whether the compiler implicitly links with -lc since on some
9504 # systems, -lgcc has to come before -lc. If gcc already passes -lc
9505 # to ld, don't add -lc before -lgcc.
9506 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
9507 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
9508 $rm conftest*
9509 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
9510
9511 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9512 (eval $ac_compile) 2>&5
9513 ac_status=$?
9514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9515 (exit $ac_status); } 2>conftest.err; then
9516 soname=conftest
9517 lib=conftest
9518 libobjs=conftest.$ac_objext
9519 deplibs=
9520 wl=$lt_prog_compiler_wl
9521 compiler_flags=-v
9522 linker_flags=-v
9523 verstring=
9524 output_objdir=.
9525 libname=conftest
9526 lt_save_allow_undefined_flag=$allow_undefined_flag
9527 allow_undefined_flag=
9528 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
9529 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
9530 ac_status=$?
9531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9532 (exit $ac_status); }
9533 then
9534 archive_cmds_need_lc=no
9535 else
9536 archive_cmds_need_lc=yes
9537 fi
9538 allow_undefined_flag=$lt_save_allow_undefined_flag
9539 else
9540 cat conftest.err 1>&5
9541 fi
9542 $rm conftest*
9543 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
9544 echo "${ECHO_T}$archive_cmds_need_lc" >&6
9545 ;;
9546 esac
9547 fi
9548 ;;
9549 esac
9550
9551 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9552 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
9553 library_names_spec=
9554 libname_spec='lib$name'
9555 soname_spec=
9556 shrext_cmds=".so"
9557 postinstall_cmds=
9558 postuninstall_cmds=
9559 finish_cmds=
9560 finish_eval=
9561 shlibpath_var=
9562 shlibpath_overrides_runpath=unknown
9563 version_type=none
9564 dynamic_linker="$host_os ld.so"
9565 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9566 if test "$GCC" = yes; then
9567 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9568 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9569 # if the path contains ";" then we assume it to be the separator
9570 # otherwise default to the standard path separator (i.e. ":") - it is
9571 # assumed that no part of a normal pathname contains ";" but that should
9572 # okay in the real world where ";" in dirpaths is itself problematic.
9573 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9574 else
9575 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9576 fi
9577 else
9578 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9579 fi
9580 need_lib_prefix=unknown
9581 hardcode_into_libs=no
9582
9583 # when you set need_version to no, make sure it does not cause -set_version
9584 # flags to be left without arguments
9585 need_version=unknown
9586
9587 case $host_os in
9588 aix3*)
9589 version_type=linux
9590 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9591 shlibpath_var=LIBPATH
9592
9593 # AIX 3 has no versioning support, so we append a major version to the name.
9594 soname_spec='${libname}${release}${shared_ext}$major'
9595 ;;
9596
9597 aix4* | aix5*)
9598 version_type=linux
9599 need_lib_prefix=no
9600 need_version=no
9601 hardcode_into_libs=yes
9602 if test "$host_cpu" = ia64; then
9603 # AIX 5 supports IA64
9604 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9605 shlibpath_var=LD_LIBRARY_PATH
9606 else
9607 # With GCC up to 2.95.x, collect2 would create an import file
9608 # for dependence libraries. The import file would start with
9609 # the line `#! .'. This would cause the generated library to
9610 # depend on `.', always an invalid library. This was fixed in
9611 # development snapshots of GCC prior to 3.0.
9612 case $host_os in
9613 aix4 | aix4.[01] | aix4.[01].*)
9614 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9615 echo ' yes '
9616 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9617 :
9618 else
9619 can_build_shared=no
9620 fi
9621 ;;
9622 esac
9623 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9624 # soname into executable. Probably we can add versioning support to
9625 # collect2, so additional links can be useful in future.
9626 if test "$aix_use_runtimelinking" = yes; then
9627 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9628 # instead of lib<name>.a to let people know that these are not
9629 # typical AIX shared libraries.
9630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9631 else
9632 # We preserve .a as extension for shared libraries through AIX4.2
9633 # and later when we are not doing run time linking.
9634 library_names_spec='${libname}${release}.a $libname.a'
9635 soname_spec='${libname}${release}${shared_ext}$major'
9636 fi
9637 shlibpath_var=LIBPATH
9638 fi
9639 ;;
9640
9641 amigaos*)
9642 library_names_spec='$libname.ixlibrary $libname.a'
9643 # Create ${libname}_ixlibrary.a entries in /sys/libs.
9644 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'
9645 ;;
9646
9647 beos*)
9648 library_names_spec='${libname}${shared_ext}'
9649 dynamic_linker="$host_os ld.so"
9650 shlibpath_var=LIBRARY_PATH
9651 ;;
9652
9653 bsdi4*)
9654 version_type=linux
9655 need_version=no
9656 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9657 soname_spec='${libname}${release}${shared_ext}$major'
9658 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9659 shlibpath_var=LD_LIBRARY_PATH
9660 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9661 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9662 # the default ld.so.conf also contains /usr/contrib/lib and
9663 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9664 # libtool to hard-code these into programs
9665 ;;
9666
9667 cygwin* | mingw* | pw32*)
9668 version_type=windows
9669 shrext_cmds=".dll"
9670 need_version=no
9671 need_lib_prefix=no
9672
9673 case $GCC,$host_os in
9674 yes,cygwin* | yes,mingw* | yes,pw32*)
9675 library_names_spec='$libname.dll.a'
9676 # DLL is installed to $(libdir)/../bin by postinstall_cmds
9677 postinstall_cmds='base_file=`basename \${file}`~
9678 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9679 dldir=$destdir/`dirname \$dlpath`~
9680 test -d \$dldir || mkdir -p \$dldir~
9681 $install_prog $dir/$dlname \$dldir/$dlname'
9682 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9683 dlpath=$dir/\$dldll~
9684 $rm \$dlpath'
9685 shlibpath_overrides_runpath=yes
9686
9687 case $host_os in
9688 cygwin*)
9689 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9690 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9691 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9692 ;;
9693 mingw*)
9694 # MinGW DLLs use traditional 'lib' prefix
9695 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9696 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9697 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9698 # It is most probably a Windows format PATH printed by
9699 # mingw gcc, but we are running on Cygwin. Gcc prints its search
9700 # path with ; separators, and with drive letters. We can handle the
9701 # drive letters (cygwin fileutils understands them), so leave them,
9702 # especially as we might pass files found there to a mingw objdump,
9703 # which wouldn't understand a cygwinified path. Ahh.
9704 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9705 else
9706 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
9707 fi
9708 ;;
9709 pw32*)
9710 # pw32 DLLs use 'pw' prefix rather than 'lib'
9711 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
9712 ;;
9713 esac
9714 ;;
9715
9716 *)
9717 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9718 ;;
9719 esac
9720 dynamic_linker='Win32 ld.exe'
9721 # FIXME: first we should search . and the directory the executable is in
9722 shlibpath_var=PATH
9723 ;;
9724
9725 darwin* | rhapsody*)
9726 dynamic_linker="$host_os dyld"
9727 version_type=darwin
9728 need_lib_prefix=no
9729 need_version=no
9730 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9731 soname_spec='${libname}${release}${major}$shared_ext'
9732 shlibpath_overrides_runpath=yes
9733 shlibpath_var=DYLD_LIBRARY_PATH
9734 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
9735 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9736 if test "$GCC" = yes; then
9737 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
9738 else
9739 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9740 fi
9741 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9742 ;;
9743
9744 dgux*)
9745 version_type=linux
9746 need_lib_prefix=no
9747 need_version=no
9748 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9749 soname_spec='${libname}${release}${shared_ext}$major'
9750 shlibpath_var=LD_LIBRARY_PATH
9751 ;;
9752
9753 freebsd1*)
9754 dynamic_linker=no
9755 ;;
9756
9757 kfreebsd*-gnu)
9758 version_type=linux
9759 need_lib_prefix=no
9760 need_version=no
9761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9762 soname_spec='${libname}${release}${shared_ext}$major'
9763 shlibpath_var=LD_LIBRARY_PATH
9764 shlibpath_overrides_runpath=no
9765 hardcode_into_libs=yes
9766 dynamic_linker='GNU ld.so'
9767 ;;
9768
9769 freebsd*)
9770 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
9771 version_type=freebsd-$objformat
9772 case $version_type in
9773 freebsd-elf*)
9774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9775 need_version=no
9776 need_lib_prefix=no
9777 ;;
9778 freebsd-*)
9779 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9780 need_version=yes
9781 ;;
9782 esac
9783 shlibpath_var=LD_LIBRARY_PATH
9784 case $host_os in
9785 freebsd2*)
9786 shlibpath_overrides_runpath=yes
9787 ;;
9788 freebsd3.01* | freebsdelf3.01*)
9789 shlibpath_overrides_runpath=yes
9790 hardcode_into_libs=yes
9791 ;;
9792 *) # from 3.2 on
9793 shlibpath_overrides_runpath=no
9794 hardcode_into_libs=yes
9795 ;;
9796 esac
9797 ;;
9798
9799 gnu*)
9800 version_type=linux
9801 need_lib_prefix=no
9802 need_version=no
9803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9804 soname_spec='${libname}${release}${shared_ext}$major'
9805 shlibpath_var=LD_LIBRARY_PATH
9806 hardcode_into_libs=yes
9807 ;;
9808
9809 hpux9* | hpux10* | hpux11*)
9810 # Give a soname corresponding to the major version so that dld.sl refuses to
9811 # link against other versions.
9812 version_type=sunos
9813 need_lib_prefix=no
9814 need_version=no
9815 case "$host_cpu" in
9816 ia64*)
9817 shrext_cmds='.so'
9818 hardcode_into_libs=yes
9819 dynamic_linker="$host_os dld.so"
9820 shlibpath_var=LD_LIBRARY_PATH
9821 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9823 soname_spec='${libname}${release}${shared_ext}$major'
9824 if test "X$HPUX_IA64_MODE" = X32; then
9825 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9826 else
9827 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9828 fi
9829 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9830 ;;
9831 hppa*64*)
9832 shrext_cmds='.sl'
9833 hardcode_into_libs=yes
9834 dynamic_linker="$host_os dld.sl"
9835 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9836 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9838 soname_spec='${libname}${release}${shared_ext}$major'
9839 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9840 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9841 ;;
9842 *)
9843 shrext_cmds='.sl'
9844 dynamic_linker="$host_os dld.sl"
9845 shlibpath_var=SHLIB_PATH
9846 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
9847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9848 soname_spec='${libname}${release}${shared_ext}$major'
9849 ;;
9850 esac
9851 # HP-UX runs *really* slowly unless shared libraries are mode 555.
9852 postinstall_cmds='chmod 555 $lib'
9853 ;;
9854
9855 irix5* | irix6* | nonstopux*)
9856 case $host_os in
9857 nonstopux*) version_type=nonstopux ;;
9858 *)
9859 if test "$lt_cv_prog_gnu_ld" = yes; then
9860 version_type=linux
9861 else
9862 version_type=irix
9863 fi ;;
9864 esac
9865 need_lib_prefix=no
9866 need_version=no
9867 soname_spec='${libname}${release}${shared_ext}$major'
9868 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
9869 case $host_os in
9870 irix5* | nonstopux*)
9871 libsuff= shlibsuff=
9872 ;;
9873 *)
9874 case $LD in # libtool.m4 will add one of these switches to LD
9875 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
9876 libsuff= shlibsuff= libmagic=32-bit;;
9877 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
9878 libsuff=32 shlibsuff=N32 libmagic=N32;;
9879 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
9880 libsuff=64 shlibsuff=64 libmagic=64-bit;;
9881 *) libsuff= shlibsuff= libmagic=never-match;;
9882 esac
9883 ;;
9884 esac
9885 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
9886 shlibpath_overrides_runpath=no
9887 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
9888 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
9889 hardcode_into_libs=yes
9890 ;;
9891
9892 # No shared lib support for Linux oldld, aout, or coff.
9893 linux*oldld* | linux*aout* | linux*coff*)
9894 dynamic_linker=no
9895 ;;
9896
9897 # This must be Linux ELF.
9898 linux*)
9899 version_type=linux
9900 need_lib_prefix=no
9901 need_version=no
9902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9903 soname_spec='${libname}${release}${shared_ext}$major'
9904 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
9905 shlibpath_var=LD_LIBRARY_PATH
9906 shlibpath_overrides_runpath=no
9907 # This implies no fast_install, which is unacceptable.
9908 # Some rework will be needed to allow for fast_install
9909 # before this can be enabled.
9910 hardcode_into_libs=yes
9911
9912 # Append ld.so.conf contents to the search path
9913 if test -f /etc/ld.so.conf; then
9914 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
9915 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
9916 fi
9917
9918 # We used to test for /lib/ld.so.1 and disable shared libraries on
9919 # powerpc, because MkLinux only supported shared libraries with the
9920 # GNU dynamic linker. Since this was broken with cross compilers,
9921 # most powerpc-linux boxes support dynamic linking these days and
9922 # people can always --disable-shared, the test was removed, and we
9923 # assume the GNU/Linux dynamic linker is in use.
9924 dynamic_linker='GNU/Linux ld.so'
9925 ;;
9926
9927 netbsdelf*-gnu)
9928 version_type=linux
9929 need_lib_prefix=no
9930 need_version=no
9931 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9932 soname_spec='${libname}${release}${shared_ext}$major'
9933 shlibpath_var=LD_LIBRARY_PATH
9934 shlibpath_overrides_runpath=no
9935 hardcode_into_libs=yes
9936 dynamic_linker='NetBSD ld.elf_so'
9937 ;;
9938
9939 knetbsd*-gnu)
9940 version_type=linux
9941 need_lib_prefix=no
9942 need_version=no
9943 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9944 soname_spec='${libname}${release}${shared_ext}$major'
9945 shlibpath_var=LD_LIBRARY_PATH
9946 shlibpath_overrides_runpath=no
9947 hardcode_into_libs=yes
9948 dynamic_linker='GNU ld.so'
9949 ;;
9950
9951 netbsd*)
9952 version_type=sunos
9953 need_lib_prefix=no
9954 need_version=no
9955 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
9956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9957 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9958 dynamic_linker='NetBSD (a.out) ld.so'
9959 else
9960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9961 soname_spec='${libname}${release}${shared_ext}$major'
9962 dynamic_linker='NetBSD ld.elf_so'
9963 fi
9964 shlibpath_var=LD_LIBRARY_PATH
9965 shlibpath_overrides_runpath=yes
9966 hardcode_into_libs=yes
9967 ;;
9968
9969 newsos6)
9970 version_type=linux
9971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9972 shlibpath_var=LD_LIBRARY_PATH
9973 shlibpath_overrides_runpath=yes
9974 ;;
9975
9976 nto-qnx*)
9977 version_type=linux
9978 need_lib_prefix=no
9979 need_version=no
9980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9981 soname_spec='${libname}${release}${shared_ext}$major'
9982 shlibpath_var=LD_LIBRARY_PATH
9983 shlibpath_overrides_runpath=yes
9984 ;;
9985
9986 openbsd*)
9987 version_type=sunos
9988 need_lib_prefix=no
9989 need_version=yes
9990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
9991 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
9992 shlibpath_var=LD_LIBRARY_PATH
9993 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9994 case $host_os in
9995 openbsd2.[89] | openbsd2.[89].*)
9996 shlibpath_overrides_runpath=no
9997 ;;
9998 *)
9999 shlibpath_overrides_runpath=yes
10000 ;;
10001 esac
10002 else
10003 shlibpath_overrides_runpath=yes
10004 fi
10005 ;;
10006
10007 os2*)
10008 libname_spec='$name'
10009 shrext_cmds=".dll"
10010 need_lib_prefix=no
10011 library_names_spec='$libname${shared_ext} $libname.a'
10012 dynamic_linker='OS/2 ld.exe'
10013 shlibpath_var=LIBPATH
10014 ;;
10015
10016 osf3* | osf4* | osf5*)
10017 version_type=osf
10018 need_lib_prefix=no
10019 need_version=no
10020 soname_spec='${libname}${release}${shared_ext}$major'
10021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10022 shlibpath_var=LD_LIBRARY_PATH
10023 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10024 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10025 ;;
10026
10027 sco3.2v5*)
10028 version_type=osf
10029 soname_spec='${libname}${release}${shared_ext}$major'
10030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10031 shlibpath_var=LD_LIBRARY_PATH
10032 ;;
10033
10034 solaris*)
10035 version_type=linux
10036 need_lib_prefix=no
10037 need_version=no
10038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10039 soname_spec='${libname}${release}${shared_ext}$major'
10040 shlibpath_var=LD_LIBRARY_PATH
10041 shlibpath_overrides_runpath=yes
10042 hardcode_into_libs=yes
10043 # ldd complains unless libraries are executable
10044 postinstall_cmds='chmod +x $lib'
10045 ;;
10046
10047 sunos4*)
10048 version_type=sunos
10049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10050 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10051 shlibpath_var=LD_LIBRARY_PATH
10052 shlibpath_overrides_runpath=yes
10053 if test "$with_gnu_ld" = yes; then
10054 need_lib_prefix=no
10055 fi
10056 need_version=yes
10057 ;;
10058
10059 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10060 version_type=linux
10061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10062 soname_spec='${libname}${release}${shared_ext}$major'
10063 shlibpath_var=LD_LIBRARY_PATH
10064 case $host_vendor in
10065 sni)
10066 shlibpath_overrides_runpath=no
10067 need_lib_prefix=no
10068 export_dynamic_flag_spec='${wl}-Blargedynsym'
10069 runpath_var=LD_RUN_PATH
10070 ;;
10071 siemens)
10072 need_lib_prefix=no
10073 ;;
10074 motorola)
10075 need_lib_prefix=no
10076 need_version=no
10077 shlibpath_overrides_runpath=no
10078 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10079 ;;
10080 esac
10081 ;;
10082
10083 sysv4*MP*)
10084 if test -d /usr/nec ;then
10085 version_type=linux
10086 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10087 soname_spec='$libname${shared_ext}.$major'
10088 shlibpath_var=LD_LIBRARY_PATH
10089 fi
10090 ;;
10091
10092 uts4*)
10093 version_type=linux
10094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10095 soname_spec='${libname}${release}${shared_ext}$major'
10096 shlibpath_var=LD_LIBRARY_PATH
10097 ;;
10098
10099 *)
10100 dynamic_linker=no
10101 ;;
10102 esac
10103 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10104 echo "${ECHO_T}$dynamic_linker" >&6
10105 test "$dynamic_linker" = no && can_build_shared=no
10106
10107 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
10108 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
10109 hardcode_action=
10110 if test -n "$hardcode_libdir_flag_spec" || \
10111 test -n "$runpath_var " || \
10112 test "X$hardcode_automatic"="Xyes" ; then
10113
10114 # We can hardcode non-existant directories.
10115 if test "$hardcode_direct" != no &&
10116 # If the only mechanism to avoid hardcoding is shlibpath_var, we
10117 # have to relink, otherwise we might link with an installed library
10118 # when we should be linking with a yet-to-be-installed one
10119 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
10120 test "$hardcode_minus_L" != no; then
10121 # Linking always hardcodes the temporary library directory.
10122 hardcode_action=relink
10123 else
10124 # We can link without hardcoding, and we can hardcode nonexisting dirs.
10125 hardcode_action=immediate
10126 fi
10127 else
10128 # We cannot hardcode anything, or else we can only hardcode existing
10129 # directories.
10130 hardcode_action=unsupported
10131 fi
10132 echo "$as_me:$LINENO: result: $hardcode_action" >&5
10133 echo "${ECHO_T}$hardcode_action" >&6
10134
10135 if test "$hardcode_action" = relink; then
10136 # Fast installation is not supported
10137 enable_fast_install=no
10138 elif test "$shlibpath_overrides_runpath" = yes ||
10139 test "$enable_shared" = no; then
10140 # Fast installation is not necessary
10141 enable_fast_install=needless
10142 fi
10143
10144 striplib=
10145 old_striplib=
10146 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
10147 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
10148 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
10149 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
10150 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
10151 echo "$as_me:$LINENO: result: yes" >&5
10152 echo "${ECHO_T}yes" >&6
10153 else
10154 # FIXME - insert some real tests, host_os isn't really good enough
10155 case $host_os in
10156 darwin*)
10157 if test -n "$STRIP" ; then
10158 striplib="$STRIP -x"
10159 echo "$as_me:$LINENO: result: yes" >&5
10160 echo "${ECHO_T}yes" >&6
10161 else
10162 echo "$as_me:$LINENO: result: no" >&5
10163 echo "${ECHO_T}no" >&6
10164 fi
10165 ;;
10166 *)
10167 echo "$as_me:$LINENO: result: no" >&5
10168 echo "${ECHO_T}no" >&6
10169 ;;
10170 esac
10171 fi
10172
10173 if test "x$enable_dlopen" != xyes; then
10174 enable_dlopen=unknown
10175 enable_dlopen_self=unknown
10176 enable_dlopen_self_static=unknown
10177 else
10178 lt_cv_dlopen=no
10179 lt_cv_dlopen_libs=
10180
10181 case $host_os in
10182 beos*)
10183 lt_cv_dlopen="load_add_on"
10184 lt_cv_dlopen_libs=
10185 lt_cv_dlopen_self=yes
10186 ;;
10187
10188 mingw* | pw32*)
10189 lt_cv_dlopen="LoadLibrary"
10190 lt_cv_dlopen_libs=
10191 ;;
10192
10193 cygwin*)
10194 lt_cv_dlopen="dlopen"
10195 lt_cv_dlopen_libs=
10196 ;;
10197
10198 darwin*)
10199 # if libdl is installed we need to link against it
10200 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10201 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10202 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10203 echo $ECHO_N "(cached) $ECHO_C" >&6
10204 else
10205 ac_check_lib_save_LIBS=$LIBS
10206 LIBS="-ldl $LIBS"
10207 cat >conftest.$ac_ext <<_ACEOF
10208 /* confdefs.h. */
10209 _ACEOF
10210 cat confdefs.h >>conftest.$ac_ext
10211 cat >>conftest.$ac_ext <<_ACEOF
10212 /* end confdefs.h. */
10213
10214 /* Override any gcc2 internal prototype to avoid an error. */
10215 #ifdef __cplusplus
10216 extern "C"
10217 #endif
10218 /* We use char because int might match the return type of a gcc2
10219 builtin and then its argument prototype would still apply. */
10220 char dlopen ();
10221 int
10222 main ()
10223 {
10224 dlopen ();
10225 ;
10226 return 0;
10227 }
10228 _ACEOF
10229 rm -f conftest.$ac_objext conftest$ac_exeext
10230 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10231 (eval $ac_link) 2>conftest.er1
10232 ac_status=$?
10233 grep -v '^ *+' conftest.er1 >conftest.err
10234 rm -f conftest.er1
10235 cat conftest.err >&5
10236 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10237 (exit $ac_status); } &&
10238 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10240 (eval $ac_try) 2>&5
10241 ac_status=$?
10242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10243 (exit $ac_status); }; } &&
10244 { ac_try='test -s conftest$ac_exeext'
10245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10246 (eval $ac_try) 2>&5
10247 ac_status=$?
10248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10249 (exit $ac_status); }; }; then
10250 ac_cv_lib_dl_dlopen=yes
10251 else
10252 echo "$as_me: failed program was:" >&5
10253 sed 's/^/| /' conftest.$ac_ext >&5
10254
10255 ac_cv_lib_dl_dlopen=no
10256 fi
10257 rm -f conftest.err conftest.$ac_objext \
10258 conftest$ac_exeext conftest.$ac_ext
10259 LIBS=$ac_check_lib_save_LIBS
10260 fi
10261 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10262 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10263 if test $ac_cv_lib_dl_dlopen = yes; then
10264 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10265 else
10266
10267 lt_cv_dlopen="dyld"
10268 lt_cv_dlopen_libs=
10269 lt_cv_dlopen_self=yes
10270
10271 fi
10272
10273 ;;
10274
10275 *)
10276 echo "$as_me:$LINENO: checking for shl_load" >&5
10277 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
10278 if test "${ac_cv_func_shl_load+set}" = set; then
10279 echo $ECHO_N "(cached) $ECHO_C" >&6
10280 else
10281 cat >conftest.$ac_ext <<_ACEOF
10282 /* confdefs.h. */
10283 _ACEOF
10284 cat confdefs.h >>conftest.$ac_ext
10285 cat >>conftest.$ac_ext <<_ACEOF
10286 /* end confdefs.h. */
10287 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10288 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10289 #define shl_load innocuous_shl_load
10290
10291 /* System header to define __stub macros and hopefully few prototypes,
10292 which can conflict with char shl_load (); below.
10293 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10294 <limits.h> exists even on freestanding compilers. */
10295
10296 #ifdef __STDC__
10297 # include <limits.h>
10298 #else
10299 # include <assert.h>
10300 #endif
10301
10302 #undef shl_load
10303
10304 /* Override any gcc2 internal prototype to avoid an error. */
10305 #ifdef __cplusplus
10306 extern "C"
10307 {
10308 #endif
10309 /* We use char because int might match the return type of a gcc2
10310 builtin and then its argument prototype would still apply. */
10311 char shl_load ();
10312 /* The GNU C library defines this for functions which it implements
10313 to always fail with ENOSYS. Some functions are actually named
10314 something starting with __ and the normal name is an alias. */
10315 #if defined (__stub_shl_load) || defined (__stub___shl_load)
10316 choke me
10317 #else
10318 char (*f) () = shl_load;
10319 #endif
10320 #ifdef __cplusplus
10321 }
10322 #endif
10323
10324 int
10325 main ()
10326 {
10327 return f != shl_load;
10328 ;
10329 return 0;
10330 }
10331 _ACEOF
10332 rm -f conftest.$ac_objext conftest$ac_exeext
10333 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10334 (eval $ac_link) 2>conftest.er1
10335 ac_status=$?
10336 grep -v '^ *+' conftest.er1 >conftest.err
10337 rm -f conftest.er1
10338 cat conftest.err >&5
10339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10340 (exit $ac_status); } &&
10341 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10342 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10343 (eval $ac_try) 2>&5
10344 ac_status=$?
10345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10346 (exit $ac_status); }; } &&
10347 { ac_try='test -s conftest$ac_exeext'
10348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10349 (eval $ac_try) 2>&5
10350 ac_status=$?
10351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10352 (exit $ac_status); }; }; then
10353 ac_cv_func_shl_load=yes
10354 else
10355 echo "$as_me: failed program was:" >&5
10356 sed 's/^/| /' conftest.$ac_ext >&5
10357
10358 ac_cv_func_shl_load=no
10359 fi
10360 rm -f conftest.err conftest.$ac_objext \
10361 conftest$ac_exeext conftest.$ac_ext
10362 fi
10363 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10364 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
10365 if test $ac_cv_func_shl_load = yes; then
10366 lt_cv_dlopen="shl_load"
10367 else
10368 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10369 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
10370 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10371 echo $ECHO_N "(cached) $ECHO_C" >&6
10372 else
10373 ac_check_lib_save_LIBS=$LIBS
10374 LIBS="-ldld $LIBS"
10375 cat >conftest.$ac_ext <<_ACEOF
10376 /* confdefs.h. */
10377 _ACEOF
10378 cat confdefs.h >>conftest.$ac_ext
10379 cat >>conftest.$ac_ext <<_ACEOF
10380 /* end confdefs.h. */
10381
10382 /* Override any gcc2 internal prototype to avoid an error. */
10383 #ifdef __cplusplus
10384 extern "C"
10385 #endif
10386 /* We use char because int might match the return type of a gcc2
10387 builtin and then its argument prototype would still apply. */
10388 char shl_load ();
10389 int
10390 main ()
10391 {
10392 shl_load ();
10393 ;
10394 return 0;
10395 }
10396 _ACEOF
10397 rm -f conftest.$ac_objext conftest$ac_exeext
10398 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10399 (eval $ac_link) 2>conftest.er1
10400 ac_status=$?
10401 grep -v '^ *+' conftest.er1 >conftest.err
10402 rm -f conftest.er1
10403 cat conftest.err >&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } &&
10406 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10408 (eval $ac_try) 2>&5
10409 ac_status=$?
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); }; } &&
10412 { ac_try='test -s conftest$ac_exeext'
10413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10414 (eval $ac_try) 2>&5
10415 ac_status=$?
10416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10417 (exit $ac_status); }; }; then
10418 ac_cv_lib_dld_shl_load=yes
10419 else
10420 echo "$as_me: failed program was:" >&5
10421 sed 's/^/| /' conftest.$ac_ext >&5
10422
10423 ac_cv_lib_dld_shl_load=no
10424 fi
10425 rm -f conftest.err conftest.$ac_objext \
10426 conftest$ac_exeext conftest.$ac_ext
10427 LIBS=$ac_check_lib_save_LIBS
10428 fi
10429 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10430 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
10431 if test $ac_cv_lib_dld_shl_load = yes; then
10432 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
10433 else
10434 echo "$as_me:$LINENO: checking for dlopen" >&5
10435 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
10436 if test "${ac_cv_func_dlopen+set}" = set; then
10437 echo $ECHO_N "(cached) $ECHO_C" >&6
10438 else
10439 cat >conftest.$ac_ext <<_ACEOF
10440 /* confdefs.h. */
10441 _ACEOF
10442 cat confdefs.h >>conftest.$ac_ext
10443 cat >>conftest.$ac_ext <<_ACEOF
10444 /* end confdefs.h. */
10445 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
10446 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10447 #define dlopen innocuous_dlopen
10448
10449 /* System header to define __stub macros and hopefully few prototypes,
10450 which can conflict with char dlopen (); below.
10451 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10452 <limits.h> exists even on freestanding compilers. */
10453
10454 #ifdef __STDC__
10455 # include <limits.h>
10456 #else
10457 # include <assert.h>
10458 #endif
10459
10460 #undef dlopen
10461
10462 /* Override any gcc2 internal prototype to avoid an error. */
10463 #ifdef __cplusplus
10464 extern "C"
10465 {
10466 #endif
10467 /* We use char because int might match the return type of a gcc2
10468 builtin and then its argument prototype would still apply. */
10469 char dlopen ();
10470 /* The GNU C library defines this for functions which it implements
10471 to always fail with ENOSYS. Some functions are actually named
10472 something starting with __ and the normal name is an alias. */
10473 #if defined (__stub_dlopen) || defined (__stub___dlopen)
10474 choke me
10475 #else
10476 char (*f) () = dlopen;
10477 #endif
10478 #ifdef __cplusplus
10479 }
10480 #endif
10481
10482 int
10483 main ()
10484 {
10485 return f != dlopen;
10486 ;
10487 return 0;
10488 }
10489 _ACEOF
10490 rm -f conftest.$ac_objext conftest$ac_exeext
10491 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10492 (eval $ac_link) 2>conftest.er1
10493 ac_status=$?
10494 grep -v '^ *+' conftest.er1 >conftest.err
10495 rm -f conftest.er1
10496 cat conftest.err >&5
10497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10498 (exit $ac_status); } &&
10499 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10501 (eval $ac_try) 2>&5
10502 ac_status=$?
10503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10504 (exit $ac_status); }; } &&
10505 { ac_try='test -s conftest$ac_exeext'
10506 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10507 (eval $ac_try) 2>&5
10508 ac_status=$?
10509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10510 (exit $ac_status); }; }; then
10511 ac_cv_func_dlopen=yes
10512 else
10513 echo "$as_me: failed program was:" >&5
10514 sed 's/^/| /' conftest.$ac_ext >&5
10515
10516 ac_cv_func_dlopen=no
10517 fi
10518 rm -f conftest.err conftest.$ac_objext \
10519 conftest$ac_exeext conftest.$ac_ext
10520 fi
10521 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
10522 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
10523 if test $ac_cv_func_dlopen = yes; then
10524 lt_cv_dlopen="dlopen"
10525 else
10526 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10527 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
10528 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10529 echo $ECHO_N "(cached) $ECHO_C" >&6
10530 else
10531 ac_check_lib_save_LIBS=$LIBS
10532 LIBS="-ldl $LIBS"
10533 cat >conftest.$ac_ext <<_ACEOF
10534 /* confdefs.h. */
10535 _ACEOF
10536 cat confdefs.h >>conftest.$ac_ext
10537 cat >>conftest.$ac_ext <<_ACEOF
10538 /* end confdefs.h. */
10539
10540 /* Override any gcc2 internal prototype to avoid an error. */
10541 #ifdef __cplusplus
10542 extern "C"
10543 #endif
10544 /* We use char because int might match the return type of a gcc2
10545 builtin and then its argument prototype would still apply. */
10546 char dlopen ();
10547 int
10548 main ()
10549 {
10550 dlopen ();
10551 ;
10552 return 0;
10553 }
10554 _ACEOF
10555 rm -f conftest.$ac_objext conftest$ac_exeext
10556 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10557 (eval $ac_link) 2>conftest.er1
10558 ac_status=$?
10559 grep -v '^ *+' conftest.er1 >conftest.err
10560 rm -f conftest.er1
10561 cat conftest.err >&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } &&
10564 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10566 (eval $ac_try) 2>&5
10567 ac_status=$?
10568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10569 (exit $ac_status); }; } &&
10570 { ac_try='test -s conftest$ac_exeext'
10571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10572 (eval $ac_try) 2>&5
10573 ac_status=$?
10574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10575 (exit $ac_status); }; }; then
10576 ac_cv_lib_dl_dlopen=yes
10577 else
10578 echo "$as_me: failed program was:" >&5
10579 sed 's/^/| /' conftest.$ac_ext >&5
10580
10581 ac_cv_lib_dl_dlopen=no
10582 fi
10583 rm -f conftest.err conftest.$ac_objext \
10584 conftest$ac_exeext conftest.$ac_ext
10585 LIBS=$ac_check_lib_save_LIBS
10586 fi
10587 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10588 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
10589 if test $ac_cv_lib_dl_dlopen = yes; then
10590 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
10591 else
10592 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10593 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
10594 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10595 echo $ECHO_N "(cached) $ECHO_C" >&6
10596 else
10597 ac_check_lib_save_LIBS=$LIBS
10598 LIBS="-lsvld $LIBS"
10599 cat >conftest.$ac_ext <<_ACEOF
10600 /* confdefs.h. */
10601 _ACEOF
10602 cat confdefs.h >>conftest.$ac_ext
10603 cat >>conftest.$ac_ext <<_ACEOF
10604 /* end confdefs.h. */
10605
10606 /* Override any gcc2 internal prototype to avoid an error. */
10607 #ifdef __cplusplus
10608 extern "C"
10609 #endif
10610 /* We use char because int might match the return type of a gcc2
10611 builtin and then its argument prototype would still apply. */
10612 char dlopen ();
10613 int
10614 main ()
10615 {
10616 dlopen ();
10617 ;
10618 return 0;
10619 }
10620 _ACEOF
10621 rm -f conftest.$ac_objext conftest$ac_exeext
10622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10623 (eval $ac_link) 2>conftest.er1
10624 ac_status=$?
10625 grep -v '^ *+' conftest.er1 >conftest.err
10626 rm -f conftest.er1
10627 cat conftest.err >&5
10628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10629 (exit $ac_status); } &&
10630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10632 (eval $ac_try) 2>&5
10633 ac_status=$?
10634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10635 (exit $ac_status); }; } &&
10636 { ac_try='test -s conftest$ac_exeext'
10637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10638 (eval $ac_try) 2>&5
10639 ac_status=$?
10640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10641 (exit $ac_status); }; }; then
10642 ac_cv_lib_svld_dlopen=yes
10643 else
10644 echo "$as_me: failed program was:" >&5
10645 sed 's/^/| /' conftest.$ac_ext >&5
10646
10647 ac_cv_lib_svld_dlopen=no
10648 fi
10649 rm -f conftest.err conftest.$ac_objext \
10650 conftest$ac_exeext conftest.$ac_ext
10651 LIBS=$ac_check_lib_save_LIBS
10652 fi
10653 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
10654 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
10655 if test $ac_cv_lib_svld_dlopen = yes; then
10656 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
10657 else
10658 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
10659 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
10660 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
10661 echo $ECHO_N "(cached) $ECHO_C" >&6
10662 else
10663 ac_check_lib_save_LIBS=$LIBS
10664 LIBS="-ldld $LIBS"
10665 cat >conftest.$ac_ext <<_ACEOF
10666 /* confdefs.h. */
10667 _ACEOF
10668 cat confdefs.h >>conftest.$ac_ext
10669 cat >>conftest.$ac_ext <<_ACEOF
10670 /* end confdefs.h. */
10671
10672 /* Override any gcc2 internal prototype to avoid an error. */
10673 #ifdef __cplusplus
10674 extern "C"
10675 #endif
10676 /* We use char because int might match the return type of a gcc2
10677 builtin and then its argument prototype would still apply. */
10678 char dld_link ();
10679 int
10680 main ()
10681 {
10682 dld_link ();
10683 ;
10684 return 0;
10685 }
10686 _ACEOF
10687 rm -f conftest.$ac_objext conftest$ac_exeext
10688 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10689 (eval $ac_link) 2>conftest.er1
10690 ac_status=$?
10691 grep -v '^ *+' conftest.er1 >conftest.err
10692 rm -f conftest.er1
10693 cat conftest.err >&5
10694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10695 (exit $ac_status); } &&
10696 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10697 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10698 (eval $ac_try) 2>&5
10699 ac_status=$?
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); }; } &&
10702 { ac_try='test -s conftest$ac_exeext'
10703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10704 (eval $ac_try) 2>&5
10705 ac_status=$?
10706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10707 (exit $ac_status); }; }; then
10708 ac_cv_lib_dld_dld_link=yes
10709 else
10710 echo "$as_me: failed program was:" >&5
10711 sed 's/^/| /' conftest.$ac_ext >&5
10712
10713 ac_cv_lib_dld_dld_link=no
10714 fi
10715 rm -f conftest.err conftest.$ac_objext \
10716 conftest$ac_exeext conftest.$ac_ext
10717 LIBS=$ac_check_lib_save_LIBS
10718 fi
10719 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
10720 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
10721 if test $ac_cv_lib_dld_dld_link = yes; then
10722 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
10723 fi
10724
10725
10726 fi
10727
10728
10729 fi
10730
10731
10732 fi
10733
10734
10735 fi
10736
10737
10738 fi
10739
10740 ;;
10741 esac
10742
10743 if test "x$lt_cv_dlopen" != xno; then
10744 enable_dlopen=yes
10745 else
10746 enable_dlopen=no
10747 fi
10748
10749 case $lt_cv_dlopen in
10750 dlopen)
10751 save_CPPFLAGS="$CPPFLAGS"
10752 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
10753
10754 save_LDFLAGS="$LDFLAGS"
10755 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
10756
10757 save_LIBS="$LIBS"
10758 LIBS="$lt_cv_dlopen_libs $LIBS"
10759
10760 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
10761 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
10762 if test "${lt_cv_dlopen_self+set}" = set; then
10763 echo $ECHO_N "(cached) $ECHO_C" >&6
10764 else
10765 if test "$cross_compiling" = yes; then :
10766 lt_cv_dlopen_self=cross
10767 else
10768 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10769 lt_status=$lt_dlunknown
10770 cat > conftest.$ac_ext <<EOF
10771 #line 10771 "configure"
10772 #include "confdefs.h"
10773
10774 #if HAVE_DLFCN_H
10775 #include <dlfcn.h>
10776 #endif
10777
10778 #include <stdio.h>
10779
10780 #ifdef RTLD_GLOBAL
10781 # define LT_DLGLOBAL RTLD_GLOBAL
10782 #else
10783 # ifdef DL_GLOBAL
10784 # define LT_DLGLOBAL DL_GLOBAL
10785 # else
10786 # define LT_DLGLOBAL 0
10787 # endif
10788 #endif
10789
10790 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10791 find out it does not work in some platform. */
10792 #ifndef LT_DLLAZY_OR_NOW
10793 # ifdef RTLD_LAZY
10794 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10795 # else
10796 # ifdef DL_LAZY
10797 # define LT_DLLAZY_OR_NOW DL_LAZY
10798 # else
10799 # ifdef RTLD_NOW
10800 # define LT_DLLAZY_OR_NOW RTLD_NOW
10801 # else
10802 # ifdef DL_NOW
10803 # define LT_DLLAZY_OR_NOW DL_NOW
10804 # else
10805 # define LT_DLLAZY_OR_NOW 0
10806 # endif
10807 # endif
10808 # endif
10809 # endif
10810 #endif
10811
10812 #ifdef __cplusplus
10813 extern "C" void exit (int);
10814 #endif
10815
10816 void fnord() { int i=42;}
10817 int main ()
10818 {
10819 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10820 int status = $lt_dlunknown;
10821
10822 if (self)
10823 {
10824 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10825 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10826 /* dlclose (self); */
10827 }
10828
10829 exit (status);
10830 }
10831 EOF
10832 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10833 (eval $ac_link) 2>&5
10834 ac_status=$?
10835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10836 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10837 (./conftest; exit; ) 2>/dev/null
10838 lt_status=$?
10839 case x$lt_status in
10840 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
10841 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
10842 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
10843 esac
10844 else :
10845 # compilation failed
10846 lt_cv_dlopen_self=no
10847 fi
10848 fi
10849 rm -fr conftest*
10850
10851
10852 fi
10853 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
10854 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
10855
10856 if test "x$lt_cv_dlopen_self" = xyes; then
10857 LDFLAGS="$LDFLAGS $link_static_flag"
10858 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
10859 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
10860 if test "${lt_cv_dlopen_self_static+set}" = set; then
10861 echo $ECHO_N "(cached) $ECHO_C" >&6
10862 else
10863 if test "$cross_compiling" = yes; then :
10864 lt_cv_dlopen_self_static=cross
10865 else
10866 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
10867 lt_status=$lt_dlunknown
10868 cat > conftest.$ac_ext <<EOF
10869 #line 10869 "configure"
10870 #include "confdefs.h"
10871
10872 #if HAVE_DLFCN_H
10873 #include <dlfcn.h>
10874 #endif
10875
10876 #include <stdio.h>
10877
10878 #ifdef RTLD_GLOBAL
10879 # define LT_DLGLOBAL RTLD_GLOBAL
10880 #else
10881 # ifdef DL_GLOBAL
10882 # define LT_DLGLOBAL DL_GLOBAL
10883 # else
10884 # define LT_DLGLOBAL 0
10885 # endif
10886 #endif
10887
10888 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
10889 find out it does not work in some platform. */
10890 #ifndef LT_DLLAZY_OR_NOW
10891 # ifdef RTLD_LAZY
10892 # define LT_DLLAZY_OR_NOW RTLD_LAZY
10893 # else
10894 # ifdef DL_LAZY
10895 # define LT_DLLAZY_OR_NOW DL_LAZY
10896 # else
10897 # ifdef RTLD_NOW
10898 # define LT_DLLAZY_OR_NOW RTLD_NOW
10899 # else
10900 # ifdef DL_NOW
10901 # define LT_DLLAZY_OR_NOW DL_NOW
10902 # else
10903 # define LT_DLLAZY_OR_NOW 0
10904 # endif
10905 # endif
10906 # endif
10907 # endif
10908 #endif
10909
10910 #ifdef __cplusplus
10911 extern "C" void exit (int);
10912 #endif
10913
10914 void fnord() { int i=42;}
10915 int main ()
10916 {
10917 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
10918 int status = $lt_dlunknown;
10919
10920 if (self)
10921 {
10922 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
10923 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
10924 /* dlclose (self); */
10925 }
10926
10927 exit (status);
10928 }
10929 EOF
10930 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10931 (eval $ac_link) 2>&5
10932 ac_status=$?
10933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10934 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
10935 (./conftest; exit; ) 2>/dev/null
10936 lt_status=$?
10937 case x$lt_status in
10938 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
10939 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
10940 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
10941 esac
10942 else :
10943 # compilation failed
10944 lt_cv_dlopen_self_static=no
10945 fi
10946 fi
10947 rm -fr conftest*
10948
10949
10950 fi
10951 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
10952 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
10953 fi
10954
10955 CPPFLAGS="$save_CPPFLAGS"
10956 LDFLAGS="$save_LDFLAGS"
10957 LIBS="$save_LIBS"
10958 ;;
10959 esac
10960
10961 case $lt_cv_dlopen_self in
10962 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
10963 *) enable_dlopen_self=unknown ;;
10964 esac
10965
10966 case $lt_cv_dlopen_self_static in
10967 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
10968 *) enable_dlopen_self_static=unknown ;;
10969 esac
10970 fi
10971
10972
10973 # Report which librarie types wil actually be built
10974 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
10975 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
10976 echo "$as_me:$LINENO: result: $can_build_shared" >&5
10977 echo "${ECHO_T}$can_build_shared" >&6
10978
10979 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
10980 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
10981 test "$can_build_shared" = "no" && enable_shared=no
10982
10983 # On AIX, shared libraries and static libraries use the same namespace, and
10984 # are all built from PIC.
10985 case "$host_os" in
10986 aix3*)
10987 test "$enable_shared" = yes && enable_static=no
10988 if test -n "$RANLIB"; then
10989 archive_cmds="$archive_cmds~\$RANLIB \$lib"
10990 postinstall_cmds='$RANLIB $lib'
10991 fi
10992 ;;
10993
10994 aix4* | aix5*)
10995 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
10996 test "$enable_shared" = yes && enable_static=no
10997 fi
10998 ;;
10999 darwin* | rhapsody*)
11000 if test "$GCC" = yes; then
11001 archive_cmds_need_lc=no
11002 case "$host_os" in
11003 rhapsody* | darwin1.[012])
11004 allow_undefined_flag='-undefined suppress'
11005 ;;
11006 *) # Darwin 1.3 on
11007 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
11008 allow_undefined_flag='-flat_namespace -undefined suppress'
11009 else
11010 case ${MACOSX_DEPLOYMENT_TARGET} in
11011 10.[012])
11012 allow_undefined_flag='-flat_namespace -undefined suppress'
11013 ;;
11014 10.*)
11015 allow_undefined_flag='-undefined dynamic_lookup'
11016 ;;
11017 esac
11018 fi
11019 ;;
11020 esac
11021 output_verbose_link_cmd='echo'
11022 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
11023 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
11024 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
11025 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
11026 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}'
11027 hardcode_direct=no
11028 hardcode_automatic=yes
11029 hardcode_shlibpath_var=unsupported
11030 whole_archive_flag_spec='-all_load $convenience'
11031 link_all_deplibs=yes
11032 else
11033 ld_shlibs=no
11034 fi
11035 ;;
11036 esac
11037 echo "$as_me:$LINENO: result: $enable_shared" >&5
11038 echo "${ECHO_T}$enable_shared" >&6
11039
11040 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
11041 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
11042 # Make sure either enable_shared or enable_static is yes.
11043 test "$enable_shared" = yes || enable_static=yes
11044 echo "$as_me:$LINENO: result: $enable_static" >&5
11045 echo "${ECHO_T}$enable_static" >&6
11046
11047 # The else clause should only fire when bootstrapping the
11048 # libtool distribution, otherwise you forgot to ship ltmain.sh
11049 # with your package, and you will get complaints that there are
11050 # no rules to generate ltmain.sh.
11051 if test -f "$ltmain"; then
11052 # See if we are running on zsh, and set the options which allow our commands through
11053 # without removal of \ escapes.
11054 if test -n "${ZSH_VERSION+set}" ; then
11055 setopt NO_GLOB_SUBST
11056 fi
11057 # Now quote all the things that may contain metacharacters while being
11058 # careful not to overquote the AC_SUBSTed values. We take copies of the
11059 # variables and quote the copies for generation of the libtool script.
11060 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
11061 SED SHELL STRIP \
11062 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
11063 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
11064 deplibs_check_method reload_flag reload_cmds need_locks \
11065 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
11066 lt_cv_sys_global_symbol_to_c_name_address \
11067 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
11068 old_postinstall_cmds old_postuninstall_cmds \
11069 compiler \
11070 CC \
11071 LD \
11072 lt_prog_compiler_wl \
11073 lt_prog_compiler_pic \
11074 lt_prog_compiler_static \
11075 lt_prog_compiler_no_builtin_flag \
11076 export_dynamic_flag_spec \
11077 thread_safe_flag_spec \
11078 whole_archive_flag_spec \
11079 enable_shared_with_static_runtimes \
11080 old_archive_cmds \
11081 old_archive_from_new_cmds \
11082 predep_objects \
11083 postdep_objects \
11084 predeps \
11085 postdeps \
11086 compiler_lib_search_path \
11087 archive_cmds \
11088 archive_expsym_cmds \
11089 postinstall_cmds \
11090 postuninstall_cmds \
11091 old_archive_from_expsyms_cmds \
11092 allow_undefined_flag \
11093 no_undefined_flag \
11094 export_symbols_cmds \
11095 hardcode_libdir_flag_spec \
11096 hardcode_libdir_flag_spec_ld \
11097 hardcode_libdir_separator \
11098 hardcode_automatic \
11099 module_cmds \
11100 module_expsym_cmds \
11101 lt_cv_prog_compiler_c_o \
11102 exclude_expsyms \
11103 include_expsyms; do
11104
11105 case $var in
11106 old_archive_cmds | \
11107 old_archive_from_new_cmds | \
11108 archive_cmds | \
11109 archive_expsym_cmds | \
11110 module_cmds | \
11111 module_expsym_cmds | \
11112 old_archive_from_expsyms_cmds | \
11113 export_symbols_cmds | \
11114 extract_expsyms_cmds | reload_cmds | finish_cmds | \
11115 postinstall_cmds | postuninstall_cmds | \
11116 old_postinstall_cmds | old_postuninstall_cmds | \
11117 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
11118 # Double-quote double-evaled strings.
11119 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
11120 ;;
11121 *)
11122 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
11123 ;;
11124 esac
11125 done
11126
11127 case $lt_echo in
11128 *'\$0 --fallback-echo"')
11129 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
11130 ;;
11131 esac
11132
11133 cfgfile="${ofile}T"
11134 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
11135 $rm -f "$cfgfile"
11136 { echo "$as_me:$LINENO: creating $ofile" >&5
11137 echo "$as_me: creating $ofile" >&6;}
11138
11139 cat <<__EOF__ >> "$cfgfile"
11140 #! $SHELL
11141
11142 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
11143 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
11144 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
11145 #
11146 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
11147 # Free Software Foundation, Inc.
11148 #
11149 # This file is part of GNU Libtool:
11150 # Originally by Gordon Matzigkeit <[email protected]>, 1996
11151 #
11152 # This program is free software; you can redistribute it and/or modify
11153 # it under the terms of the GNU General Public License as published by
11154 # the Free Software Foundation; either version 2 of the License, or
11155 # (at your option) any later version.
11156 #
11157 # This program is distributed in the hope that it will be useful, but
11158 # WITHOUT ANY WARRANTY; without even the implied warranty of
11159 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11160 # General Public License for more details.
11161 #
11162 # You should have received a copy of the GNU General Public License
11163 # along with this program; if not, write to the Free Software
11164 # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
11165 #
11166 # As a special exception to the GNU General Public License, if you
11167 # distribute this file as part of a program that contains a
11168 # configuration script generated by Autoconf, you may include it under
11169 # the same distribution terms that you use for the rest of that program.
11170
11171 # A sed program that does not truncate output.
11172 SED=$lt_SED
11173
11174 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
11175 Xsed="$SED -e s/^X//"
11176
11177 # The HP-UX ksh and POSIX shell print the target directory to stdout
11178 # if CDPATH is set.
11179 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
11180
11181 # The names of the tagged configurations supported by this script.
11182 available_tags=
11183
11184 # ### BEGIN LIBTOOL CONFIG
11185
11186 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
11187
11188 # Shell to use when invoking shell scripts.
11189 SHELL=$lt_SHELL
11190
11191 # Whether or not to build shared libraries.
11192 build_libtool_libs=$enable_shared
11193
11194 # Whether or not to build static libraries.
11195 build_old_libs=$enable_static
11196
11197 # Whether or not to add -lc for building shared libraries.
11198 build_libtool_need_lc=$archive_cmds_need_lc
11199
11200 # Whether or not to disallow shared libs when runtime libs are static
11201 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
11202
11203 # Whether or not to optimize for fast installation.
11204 fast_install=$enable_fast_install
11205
11206 # The host system.
11207 host_alias=$host_alias
11208 host=$host
11209
11210 # An echo program that does not interpret backslashes.
11211 echo=$lt_echo
11212
11213 # The archiver.
11214 AR=$lt_AR
11215 AR_FLAGS=$lt_AR_FLAGS
11216
11217 # A C compiler.
11218 LTCC=$lt_LTCC
11219
11220 # A language-specific compiler.
11221 CC=$lt_compiler
11222
11223 # Is the compiler the GNU C compiler?
11224 with_gcc=$GCC
11225
11226 # An ERE matcher.
11227 EGREP=$lt_EGREP
11228
11229 # The linker used to build libraries.
11230 LD=$lt_LD
11231
11232 # Whether we need hard or soft links.
11233 LN_S=$lt_LN_S
11234
11235 # A BSD-compatible nm program.
11236 NM=$lt_NM
11237
11238 # A symbol stripping program
11239 STRIP=$lt_STRIP
11240
11241 # Used to examine libraries when file_magic_cmd begins "file"
11242 MAGIC_CMD=$MAGIC_CMD
11243
11244 # Used on cygwin: DLL creation program.
11245 DLLTOOL="$DLLTOOL"
11246
11247 # Used on cygwin: object dumper.
11248 OBJDUMP="$OBJDUMP"
11249
11250 # Used on cygwin: assembler.
11251 AS="$AS"
11252
11253 # The name of the directory that contains temporary libtool files.
11254 objdir=$objdir
11255
11256 # How to create reloadable object files.
11257 reload_flag=$lt_reload_flag
11258 reload_cmds=$lt_reload_cmds
11259
11260 # How to pass a linker flag through the compiler.
11261 wl=$lt_lt_prog_compiler_wl
11262
11263 # Object file suffix (normally "o").
11264 objext="$ac_objext"
11265
11266 # Old archive suffix (normally "a").
11267 libext="$libext"
11268
11269 # Shared library suffix (normally ".so").
11270 shrext_cmds='$shrext_cmds'
11271
11272 # Executable file suffix (normally "").
11273 exeext="$exeext"
11274
11275 # Additional compiler flags for building library objects.
11276 pic_flag=$lt_lt_prog_compiler_pic
11277 pic_mode=$pic_mode
11278
11279 # What is the maximum length of a command?
11280 max_cmd_len=$lt_cv_sys_max_cmd_len
11281
11282 # Does compiler simultaneously support -c and -o options?
11283 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
11284
11285 # Must we lock files when doing compilation ?
11286 need_locks=$lt_need_locks
11287
11288 # Do we need the lib prefix for modules?
11289 need_lib_prefix=$need_lib_prefix
11290
11291 # Do we need a version for libraries?
11292 need_version=$need_version
11293
11294 # Whether dlopen is supported.
11295 dlopen_support=$enable_dlopen
11296
11297 # Whether dlopen of programs is supported.
11298 dlopen_self=$enable_dlopen_self
11299
11300 # Whether dlopen of statically linked programs is supported.
11301 dlopen_self_static=$enable_dlopen_self_static
11302
11303 # Compiler flag to prevent dynamic linking.
11304 link_static_flag=$lt_lt_prog_compiler_static
11305
11306 # Compiler flag to turn off builtin functions.
11307 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
11308
11309 # Compiler flag to allow reflexive dlopens.
11310 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
11311
11312 # Compiler flag to generate shared objects directly from archives.
11313 whole_archive_flag_spec=$lt_whole_archive_flag_spec
11314
11315 # Compiler flag to generate thread-safe objects.
11316 thread_safe_flag_spec=$lt_thread_safe_flag_spec
11317
11318 # Library versioning type.
11319 version_type=$version_type
11320
11321 # Format of library name prefix.
11322 libname_spec=$lt_libname_spec
11323
11324 # List of archive names. First name is the real one, the rest are links.
11325 # The last name is the one that the linker finds with -lNAME.
11326 library_names_spec=$lt_library_names_spec
11327
11328 # The coded name of the library, if different from the real name.
11329 soname_spec=$lt_soname_spec
11330
11331 # Commands used to build and install an old-style archive.
11332 RANLIB=$lt_RANLIB
11333 old_archive_cmds=$lt_old_archive_cmds
11334 old_postinstall_cmds=$lt_old_postinstall_cmds
11335 old_postuninstall_cmds=$lt_old_postuninstall_cmds
11336
11337 # Create an old-style archive from a shared archive.
11338 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
11339
11340 # Create a temporary old-style archive to link instead of a shared archive.
11341 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
11342
11343 # Commands used to build and install a shared archive.
11344 archive_cmds=$lt_archive_cmds
11345 archive_expsym_cmds=$lt_archive_expsym_cmds
11346 postinstall_cmds=$lt_postinstall_cmds
11347 postuninstall_cmds=$lt_postuninstall_cmds
11348
11349 # Commands used to build a loadable module (assumed same as above if empty)
11350 module_cmds=$lt_module_cmds
11351 module_expsym_cmds=$lt_module_expsym_cmds
11352
11353 # Commands to strip libraries.
11354 old_striplib=$lt_old_striplib
11355 striplib=$lt_striplib
11356
11357 # Dependencies to place before the objects being linked to create a
11358 # shared library.
11359 predep_objects=$lt_predep_objects
11360
11361 # Dependencies to place after the objects being linked to create a
11362 # shared library.
11363 postdep_objects=$lt_postdep_objects
11364
11365 # Dependencies to place before the objects being linked to create a
11366 # shared library.
11367 predeps=$lt_predeps
11368
11369 # Dependencies to place after the objects being linked to create a
11370 # shared library.
11371 postdeps=$lt_postdeps
11372
11373 # The library search path used internally by the compiler when linking
11374 # a shared library.
11375 compiler_lib_search_path=$lt_compiler_lib_search_path
11376
11377 # Method to check whether dependent libraries are shared objects.
11378 deplibs_check_method=$lt_deplibs_check_method
11379
11380 # Command to use when deplibs_check_method == file_magic.
11381 file_magic_cmd=$lt_file_magic_cmd
11382
11383 # Flag that allows shared libraries with undefined symbols to be built.
11384 allow_undefined_flag=$lt_allow_undefined_flag
11385
11386 # Flag that forces no undefined symbols.
11387 no_undefined_flag=$lt_no_undefined_flag
11388
11389 # Commands used to finish a libtool library installation in a directory.
11390 finish_cmds=$lt_finish_cmds
11391
11392 # Same as above, but a single script fragment to be evaled but not shown.
11393 finish_eval=$lt_finish_eval
11394
11395 # Take the output of nm and produce a listing of raw symbols and C names.
11396 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
11397
11398 # Transform the output of nm in a proper C declaration
11399 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
11400
11401 # Transform the output of nm in a C name address pair
11402 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
11403
11404 # This is the shared library runtime path variable.
11405 runpath_var=$runpath_var
11406
11407 # This is the shared library path variable.
11408 shlibpath_var=$shlibpath_var
11409
11410 # Is shlibpath searched before the hard-coded library search path?
11411 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
11412
11413 # How to hardcode a shared library path into an executable.
11414 hardcode_action=$hardcode_action
11415
11416 # Whether we should hardcode library paths into libraries.
11417 hardcode_into_libs=$hardcode_into_libs
11418
11419 # Flag to hardcode \$libdir into a binary during linking.
11420 # This must work even if \$libdir does not exist.
11421 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
11422
11423 # If ld is used when linking, flag to hardcode \$libdir into
11424 # a binary during linking. This must work even if \$libdir does
11425 # not exist.
11426 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
11427
11428 # Whether we need a single -rpath flag with a separated argument.
11429 hardcode_libdir_separator=$lt_hardcode_libdir_separator
11430
11431 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
11432 # resulting binary.
11433 hardcode_direct=$hardcode_direct
11434
11435 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
11436 # resulting binary.
11437 hardcode_minus_L=$hardcode_minus_L
11438
11439 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
11440 # the resulting binary.
11441 hardcode_shlibpath_var=$hardcode_shlibpath_var
11442
11443 # Set to yes if building a shared library automatically hardcodes DIR into the library
11444 # and all subsequent libraries and executables linked against it.
11445 hardcode_automatic=$hardcode_automatic
11446
11447 # Variables whose values should be saved in libtool wrapper scripts and
11448 # restored at relink time.
11449 variables_saved_for_relink="$variables_saved_for_relink"
11450
11451 # Whether libtool must link a program against all its dependency libraries.
11452 link_all_deplibs=$link_all_deplibs
11453
11454 # Compile-time system search path for libraries
11455 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
11456
11457 # Run-time system search path for libraries
11458 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
11459
11460 # Fix the shell variable \$srcfile for the compiler.
11461 fix_srcfile_path="$fix_srcfile_path"
11462
11463 # Set to yes if exported symbols are required.
11464 always_export_symbols=$always_export_symbols
11465
11466 # The commands to list exported symbols.
11467 export_symbols_cmds=$lt_export_symbols_cmds
11468
11469 # The commands to extract the exported symbol list from a shared archive.
11470 extract_expsyms_cmds=$lt_extract_expsyms_cmds
11471
11472 # Symbols that should not be listed in the preloaded symbols.
11473 exclude_expsyms=$lt_exclude_expsyms
11474
11475 # Symbols that must always be exported.
11476 include_expsyms=$lt_include_expsyms
11477
11478 # ### END LIBTOOL CONFIG
11479
11480 __EOF__
11481
11482
11483 case $host_os in
11484 aix3*)
11485 cat <<\EOF >> "$cfgfile"
11486
11487 # AIX sometimes has problems with the GCC collect2 program. For some
11488 # reason, if we set the COLLECT_NAMES environment variable, the problems
11489 # vanish in a puff of smoke.
11490 if test "X${COLLECT_NAMES+set}" != Xset; then
11491 COLLECT_NAMES=
11492 export COLLECT_NAMES
11493 fi
11494 EOF
11495 ;;
11496 esac
11497
11498 # We use sed instead of cat because bash on DJGPP gets confused if
11499 # if finds mixed CR/LF and LF-only lines. Since sed operates in
11500 # text mode, it properly converts lines to CR/LF. This bash problem
11501 # is reportedly fixed, but why not run on old versions too?
11502 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
11503
11504 mv -f "$cfgfile" "$ofile" || \
11505 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
11506 chmod +x "$ofile"
11507
11508 else
11509 # If there is no Makefile yet, we rely on a make rule to execute
11510 # `config.status --recheck' to rerun these tests and create the
11511 # libtool script then.
11512 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
11513 if test -f "$ltmain_in"; then
11514 test -f Makefile && make "$ltmain"
11515 fi
11516 fi
11517
11518
11519 ac_ext=c
11520 ac_cpp='$CPP $CPPFLAGS'
11521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11524
11525 CC="$lt_save_CC"
11526
11527
11528 # Check whether --with-tags or --without-tags was given.
11529 if test "${with_tags+set}" = set; then
11530 withval="$with_tags"
11531 tagnames="$withval"
11532 fi;
11533
11534 if test -f "$ltmain" && test -n "$tagnames"; then
11535 if test ! -f "${ofile}"; then
11536 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
11537 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
11538 fi
11539
11540 if test -z "$LTCC"; then
11541 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
11542 if test -z "$LTCC"; then
11543 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
11544 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
11545 else
11546 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
11547 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
11548 fi
11549 fi
11550
11551 # Extract list of available tagged configurations in $ofile.
11552 # Note that this assumes the entire list is on one line.
11553 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
11554
11555 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11556 for tagname in $tagnames; do
11557 IFS="$lt_save_ifs"
11558 # Check whether tagname contains only valid characters
11559 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
11560 "") ;;
11561 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
11562 echo "$as_me: error: invalid tag name: $tagname" >&2;}
11563 { (exit 1); exit 1; }; }
11564 ;;
11565 esac
11566
11567 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
11568 then
11569 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
11570 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
11571 { (exit 1); exit 1; }; }
11572 fi
11573
11574 # Update the list of available tags.
11575 if test -n "$tagname"; then
11576 echo appending configuration tag \"$tagname\" to $ofile
11577
11578 case $tagname in
11579 CXX)
11580 if test -n "$CXX" && test "X$CXX" != "Xno"; then
11581 ac_ext=cc
11582 ac_cpp='$CXXCPP $CPPFLAGS'
11583 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11584 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11585 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
11586
11587
11588
11589
11590 archive_cmds_need_lc_CXX=no
11591 allow_undefined_flag_CXX=
11592 always_export_symbols_CXX=no
11593 archive_expsym_cmds_CXX=
11594 export_dynamic_flag_spec_CXX=
11595 hardcode_direct_CXX=no
11596 hardcode_libdir_flag_spec_CXX=
11597 hardcode_libdir_flag_spec_ld_CXX=
11598 hardcode_libdir_separator_CXX=
11599 hardcode_minus_L_CXX=no
11600 hardcode_automatic_CXX=no
11601 module_cmds_CXX=
11602 module_expsym_cmds_CXX=
11603 link_all_deplibs_CXX=unknown
11604 old_archive_cmds_CXX=$old_archive_cmds
11605 no_undefined_flag_CXX=
11606 whole_archive_flag_spec_CXX=
11607 enable_shared_with_static_runtimes_CXX=no
11608
11609 # Dependencies to place before and after the object being linked:
11610 predep_objects_CXX=
11611 postdep_objects_CXX=
11612 predeps_CXX=
11613 postdeps_CXX=
11614 compiler_lib_search_path_CXX=
11615
11616 # Source file extension for C++ test sources.
11617 ac_ext=cc
11618
11619 # Object file extension for compiled C++ test sources.
11620 objext=o
11621 objext_CXX=$objext
11622
11623 # Code to be used in simple compile tests
11624 lt_simple_compile_test_code="int some_variable = 0;\n"
11625
11626 # Code to be used in simple link tests
11627 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
11628
11629 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
11630
11631 # If no C compiler was specified, use CC.
11632 LTCC=${LTCC-"$CC"}
11633
11634 # Allow CC to be a program name with arguments.
11635 compiler=$CC
11636
11637
11638 # Allow CC to be a program name with arguments.
11639 lt_save_CC=$CC
11640 lt_save_LD=$LD
11641 lt_save_GCC=$GCC
11642 GCC=$GXX
11643 lt_save_with_gnu_ld=$with_gnu_ld
11644 lt_save_path_LD=$lt_cv_path_LD
11645 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
11646 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
11647 else
11648 unset lt_cv_prog_gnu_ld
11649 fi
11650 if test -n "${lt_cv_path_LDCXX+set}"; then
11651 lt_cv_path_LD=$lt_cv_path_LDCXX
11652 else
11653 unset lt_cv_path_LD
11654 fi
11655 test -z "${LDCXX+set}" || LD=$LDCXX
11656 CC=${CXX-"c++"}
11657 compiler=$CC
11658 compiler_CXX=$CC
11659 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
11660
11661 # We don't want -fno-exception wen compiling C++ code, so set the
11662 # no_builtin_flag separately
11663 if test "$GXX" = yes; then
11664 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
11665 else
11666 lt_prog_compiler_no_builtin_flag_CXX=
11667 fi
11668
11669 if test "$GXX" = yes; then
11670 # Set up default GNU C++ configuration
11671
11672
11673 # Check whether --with-gnu-ld or --without-gnu-ld was given.
11674 if test "${with_gnu_ld+set}" = set; then
11675 withval="$with_gnu_ld"
11676 test "$withval" = no || with_gnu_ld=yes
11677 else
11678 with_gnu_ld=no
11679 fi;
11680 ac_prog=ld
11681 if test "$GCC" = yes; then
11682 # Check if gcc -print-prog-name=ld gives a path.
11683 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
11684 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
11685 case $host in
11686 *-*-mingw*)
11687 # gcc leaves a trailing carriage return which upsets mingw
11688 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
11689 *)
11690 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
11691 esac
11692 case $ac_prog in
11693 # Accept absolute paths.
11694 [\\/]* | ?:[\\/]*)
11695 re_direlt='/[^/][^/]*/\.\./'
11696 # Canonicalize the pathname of ld
11697 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
11698 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
11699 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
11700 done
11701 test -z "$LD" && LD="$ac_prog"
11702 ;;
11703 "")
11704 # If it fails, then pretend we aren't using GCC.
11705 ac_prog=ld
11706 ;;
11707 *)
11708 # If it is relative, then search for the first ld in PATH.
11709 with_gnu_ld=unknown
11710 ;;
11711 esac
11712 elif test "$with_gnu_ld" = yes; then
11713 echo "$as_me:$LINENO: checking for GNU ld" >&5
11714 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
11715 else
11716 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
11717 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
11718 fi
11719 if test "${lt_cv_path_LD+set}" = set; then
11720 echo $ECHO_N "(cached) $ECHO_C" >&6
11721 else
11722 if test -z "$LD"; then
11723 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11724 for ac_dir in $PATH; do
11725 IFS="$lt_save_ifs"
11726 test -z "$ac_dir" && ac_dir=.
11727 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
11728 lt_cv_path_LD="$ac_dir/$ac_prog"
11729 # Check to see if the program is GNU ld. I'd rather use --version,
11730 # but apparently some GNU ld's only accept -v.
11731 # Break only if it was the GNU/non-GNU ld that we prefer.
11732 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
11733 *GNU* | *'with BFD'*)
11734 test "$with_gnu_ld" != no && break
11735 ;;
11736 *)
11737 test "$with_gnu_ld" != yes && break
11738 ;;
11739 esac
11740 fi
11741 done
11742 IFS="$lt_save_ifs"
11743 else
11744 lt_cv_path_LD="$LD" # Let the user override the test with a path.
11745 fi
11746 fi
11747
11748 LD="$lt_cv_path_LD"
11749 if test -n "$LD"; then
11750 echo "$as_me:$LINENO: result: $LD" >&5
11751 echo "${ECHO_T}$LD" >&6
11752 else
11753 echo "$as_me:$LINENO: result: no" >&5
11754 echo "${ECHO_T}no" >&6
11755 fi
11756 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
11757 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
11758 { (exit 1); exit 1; }; }
11759 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
11760 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
11761 if test "${lt_cv_prog_gnu_ld+set}" = set; then
11762 echo $ECHO_N "(cached) $ECHO_C" >&6
11763 else
11764 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
11765 case `$LD -v 2>&1 </dev/null` in
11766 *GNU* | *'with BFD'*)
11767 lt_cv_prog_gnu_ld=yes
11768 ;;
11769 *)
11770 lt_cv_prog_gnu_ld=no
11771 ;;
11772 esac
11773 fi
11774 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
11775 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
11776 with_gnu_ld=$lt_cv_prog_gnu_ld
11777
11778
11779
11780 # Check if GNU C++ uses GNU ld as the underlying linker, since the
11781 # archiving commands below assume that GNU ld is being used.
11782 if test "$with_gnu_ld" = yes; then
11783 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
11784 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'
11785
11786 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
11787 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
11788
11789 # If archive_cmds runs LD, not CC, wlarc should be empty
11790 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
11791 # investigate it a little bit more. (MM)
11792 wlarc='${wl}'
11793
11794 # ancient GNU ld didn't support --whole-archive et. al.
11795 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
11796 grep 'no-whole-archive' > /dev/null; then
11797 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
11798 else
11799 whole_archive_flag_spec_CXX=
11800 fi
11801 else
11802 with_gnu_ld=no
11803 wlarc=
11804
11805 # A generic and very simple default shared library creation
11806 # command for GNU C++ for the case where it uses the native
11807 # linker, instead of GNU ld. If possible, this setting should
11808 # overridden to take advantage of the native linker features on
11809 # the platform it is being used on.
11810 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
11811 fi
11812
11813 # Commands to make compiler produce verbose output that lists
11814 # what "hidden" libraries, object files and flags are used when
11815 # linking a shared library.
11816 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
11817
11818 else
11819 GXX=no
11820 with_gnu_ld=no
11821 wlarc=
11822 fi
11823
11824 # PORTME: fill in a description of your system's C++ link characteristics
11825 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11826 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
11827 ld_shlibs_CXX=yes
11828 case $host_os in
11829 aix3*)
11830 # FIXME: insert proper C++ library support
11831 ld_shlibs_CXX=no
11832 ;;
11833 aix4* | aix5*)
11834 if test "$host_cpu" = ia64; then
11835 # On IA64, the linker does run time linking by default, so we don't
11836 # have to do anything special.
11837 aix_use_runtimelinking=no
11838 exp_sym_flag='-Bexport'
11839 no_entry_flag=""
11840 else
11841 aix_use_runtimelinking=no
11842
11843 # Test if we are trying to use run time linking or normal
11844 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
11845 # need to do runtime linking.
11846 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
11847 for ld_flag in $LDFLAGS; do
11848 case $ld_flag in
11849 *-brtl*)
11850 aix_use_runtimelinking=yes
11851 break
11852 ;;
11853 esac
11854 done
11855 esac
11856
11857 exp_sym_flag='-bexport'
11858 no_entry_flag='-bnoentry'
11859 fi
11860
11861 # When large executables or shared objects are built, AIX ld can
11862 # have problems creating the table of contents. If linking a library
11863 # or program results in "error TOC overflow" add -mminimal-toc to
11864 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
11865 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
11866
11867 archive_cmds_CXX=''
11868 hardcode_direct_CXX=yes
11869 hardcode_libdir_separator_CXX=':'
11870 link_all_deplibs_CXX=yes
11871
11872 if test "$GXX" = yes; then
11873 case $host_os in aix4.012|aix4.012.*)
11874 # We only want to do this on AIX 4.2 and lower, the check
11875 # below for broken collect2 doesn't work under 4.3+
11876 collect2name=`${CC} -print-prog-name=collect2`
11877 if test -f "$collect2name" && \
11878 strings "$collect2name" | grep resolve_lib_name >/dev/null
11879 then
11880 # We have reworked collect2
11881 hardcode_direct_CXX=yes
11882 else
11883 # We have old collect2
11884 hardcode_direct_CXX=unsupported
11885 # It fails to find uninstalled libraries when the uninstalled
11886 # path is not listed in the libpath. Setting hardcode_minus_L
11887 # to unsupported forces relinking
11888 hardcode_minus_L_CXX=yes
11889 hardcode_libdir_flag_spec_CXX='-L$libdir'
11890 hardcode_libdir_separator_CXX=
11891 fi
11892 esac
11893 shared_flag='-shared'
11894 else
11895 # not using gcc
11896 if test "$host_cpu" = ia64; then
11897 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
11898 # chokes on -Wl,-G. The following line is correct:
11899 shared_flag='-G'
11900 else
11901 if test "$aix_use_runtimelinking" = yes; then
11902 shared_flag='${wl}-G'
11903 else
11904 shared_flag='${wl}-bM:SRE'
11905 fi
11906 fi
11907 fi
11908
11909 # It seems that -bexpall does not export symbols beginning with
11910 # underscore (_), so it is better to generate a list of symbols to export.
11911 always_export_symbols_CXX=yes
11912 if test "$aix_use_runtimelinking" = yes; then
11913 # Warning - without using the other runtime loading flags (-brtl),
11914 # -berok will link without error, but may produce a broken library.
11915 allow_undefined_flag_CXX='-berok'
11916 # Determine the default libpath from the value encoded in an empty executable.
11917 cat >conftest.$ac_ext <<_ACEOF
11918 /* confdefs.h. */
11919 _ACEOF
11920 cat confdefs.h >>conftest.$ac_ext
11921 cat >>conftest.$ac_ext <<_ACEOF
11922 /* end confdefs.h. */
11923
11924 int
11925 main ()
11926 {
11927
11928 ;
11929 return 0;
11930 }
11931 _ACEOF
11932 rm -f conftest.$ac_objext conftest$ac_exeext
11933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11934 (eval $ac_link) 2>conftest.er1
11935 ac_status=$?
11936 grep -v '^ *+' conftest.er1 >conftest.err
11937 rm -f conftest.er1
11938 cat conftest.err >&5
11939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11940 (exit $ac_status); } &&
11941 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
11942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11943 (eval $ac_try) 2>&5
11944 ac_status=$?
11945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11946 (exit $ac_status); }; } &&
11947 { ac_try='test -s conftest$ac_exeext'
11948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
11949 (eval $ac_try) 2>&5
11950 ac_status=$?
11951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11952 (exit $ac_status); }; }; then
11953
11954 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11955 }'`
11956 # Check for a 64-bit object if we didn't find anything.
11957 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
11958 }'`; fi
11959 else
11960 echo "$as_me: failed program was:" >&5
11961 sed 's/^/| /' conftest.$ac_ext >&5
11962
11963 fi
11964 rm -f conftest.err conftest.$ac_objext \
11965 conftest$ac_exeext conftest.$ac_ext
11966 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
11967
11968 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
11969
11970 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
11971 else
11972 if test "$host_cpu" = ia64; then
11973 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
11974 allow_undefined_flag_CXX="-z nodefs"
11975 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
11976 else
11977 # Determine the default libpath from the value encoded in an empty executable.
11978 cat >conftest.$ac_ext <<_ACEOF
11979 /* confdefs.h. */
11980 _ACEOF
11981 cat confdefs.h >>conftest.$ac_ext
11982 cat >>conftest.$ac_ext <<_ACEOF
11983 /* end confdefs.h. */
11984
11985 int
11986 main ()
11987 {
11988
11989 ;
11990 return 0;
11991 }
11992 _ACEOF
11993 rm -f conftest.$ac_objext conftest$ac_exeext
11994 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11995 (eval $ac_link) 2>conftest.er1
11996 ac_status=$?
11997 grep -v '^ *+' conftest.er1 >conftest.err
11998 rm -f conftest.er1
11999 cat conftest.err >&5
12000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12001 (exit $ac_status); } &&
12002 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
12003 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12004 (eval $ac_try) 2>&5
12005 ac_status=$?
12006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12007 (exit $ac_status); }; } &&
12008 { ac_try='test -s conftest$ac_exeext'
12009 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12010 (eval $ac_try) 2>&5
12011 ac_status=$?
12012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12013 (exit $ac_status); }; }; then
12014
12015 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12016 }'`
12017 # Check for a 64-bit object if we didn't find anything.
12018 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12019 }'`; fi
12020 else
12021 echo "$as_me: failed program was:" >&5
12022 sed 's/^/| /' conftest.$ac_ext >&5
12023
12024 fi
12025 rm -f conftest.err conftest.$ac_objext \
12026 conftest$ac_exeext conftest.$ac_ext
12027 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12028
12029 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
12030 # Warning - without using the other run time loading flags,
12031 # -berok will link without error, but may produce a broken library.
12032 no_undefined_flag_CXX=' ${wl}-bernotok'
12033 allow_undefined_flag_CXX=' ${wl}-berok'
12034 # -bexpall does not export symbols beginning with underscore (_)
12035 always_export_symbols_CXX=yes
12036 # Exported symbols can be pulled into shared objects from archives
12037 whole_archive_flag_spec_CXX=' '
12038 archive_cmds_need_lc_CXX=yes
12039 # This is similar to how AIX traditionally builds it's shared libraries.
12040 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12041 fi
12042 fi
12043 ;;
12044 chorus*)
12045 case $cc_basename in
12046 *)
12047 # FIXME: insert proper C++ library support
12048 ld_shlibs_CXX=no
12049 ;;
12050 esac
12051 ;;
12052
12053 cygwin* | mingw* | pw32*)
12054 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
12055 # as there is no search path for DLLs.
12056 hardcode_libdir_flag_spec_CXX='-L$libdir'
12057 allow_undefined_flag_CXX=unsupported
12058 always_export_symbols_CXX=no
12059 enable_shared_with_static_runtimes_CXX=yes
12060
12061 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12062 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12063 # If the export-symbols file already is a .def file (1st line
12064 # is EXPORTS), use it as is; otherwise, prepend...
12065 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12066 cp $export_symbols $output_objdir/$soname.def;
12067 else
12068 echo EXPORTS > $output_objdir/$soname.def;
12069 cat $export_symbols >> $output_objdir/$soname.def;
12070 fi~
12071 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12072 else
12073 ld_shlibs_CXX=no
12074 fi
12075 ;;
12076
12077 darwin* | rhapsody*)
12078 if test "$GXX" = yes; then
12079 archive_cmds_need_lc_CXX=no
12080 case "$host_os" in
12081 rhapsody* | darwin1.[012])
12082 allow_undefined_flag_CXX='-undefined suppress'
12083 ;;
12084 *) # Darwin 1.3 on
12085 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12086 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12087 else
12088 case ${MACOSX_DEPLOYMENT_TARGET} in
12089 10.[012])
12090 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
12091 ;;
12092 10.*)
12093 allow_undefined_flag_CXX='-undefined dynamic_lookup'
12094 ;;
12095 esac
12096 fi
12097 ;;
12098 esac
12099 lt_int_apple_cc_single_mod=no
12100 output_verbose_link_cmd='echo'
12101 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12102 lt_int_apple_cc_single_mod=yes
12103 fi
12104 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12105 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12106 else
12107 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
12108 fi
12109 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12110
12111 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12112 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12113 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12114 else
12115 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
12116 fi
12117 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}'
12118 hardcode_direct_CXX=no
12119 hardcode_automatic_CXX=yes
12120 hardcode_shlibpath_var_CXX=unsupported
12121 whole_archive_flag_spec_CXX='-all_load $convenience'
12122 link_all_deplibs_CXX=yes
12123 else
12124 ld_shlibs_CXX=no
12125 fi
12126 ;;
12127
12128 dgux*)
12129 case $cc_basename in
12130 ec++)
12131 # FIXME: insert proper C++ library support
12132 ld_shlibs_CXX=no
12133 ;;
12134 ghcx)
12135 # Green Hills C++ Compiler
12136 # FIXME: insert proper C++ library support
12137 ld_shlibs_CXX=no
12138 ;;
12139 *)
12140 # FIXME: insert proper C++ library support
12141 ld_shlibs_CXX=no
12142 ;;
12143 esac
12144 ;;
12145 freebsd12*)
12146 # C++ shared libraries reported to be fairly broken before switch to ELF
12147 ld_shlibs_CXX=no
12148 ;;
12149 freebsd-elf*)
12150 archive_cmds_need_lc_CXX=no
12151 ;;
12152 freebsd* | kfreebsd*-gnu)
12153 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
12154 # conventions
12155 ld_shlibs_CXX=yes
12156 ;;
12157 gnu*)
12158 ;;
12159 hpux9*)
12160 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12161 hardcode_libdir_separator_CXX=:
12162 export_dynamic_flag_spec_CXX='${wl}-E'
12163 hardcode_direct_CXX=yes
12164 hardcode_minus_L_CXX=yes # Not in the search PATH,
12165 # but as the default
12166 # location of the library.
12167
12168 case $cc_basename in
12169 CC)
12170 # FIXME: insert proper C++ library support
12171 ld_shlibs_CXX=no
12172 ;;
12173 aCC)
12174 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'
12175 # Commands to make compiler produce verbose output that lists
12176 # what "hidden" libraries, object files and flags are used when
12177 # linking a shared library.
12178 #
12179 # There doesn't appear to be a way to prevent this compiler from
12180 # explicitly linking system object files so we need to strip them
12181 # from the output so that they don't get included in the library
12182 # dependencies.
12183 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'
12184 ;;
12185 *)
12186 if test "$GXX" = yes; then
12187 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'
12188 else
12189 # FIXME: insert proper C++ library support
12190 ld_shlibs_CXX=no
12191 fi
12192 ;;
12193 esac
12194 ;;
12195 hpux10*|hpux11*)
12196 if test $with_gnu_ld = no; then
12197 case "$host_cpu" in
12198 hppa*64*)
12199 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12200 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
12201 hardcode_libdir_separator_CXX=:
12202 ;;
12203 ia64*)
12204 hardcode_libdir_flag_spec_CXX='-L$libdir'
12205 ;;
12206 *)
12207 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
12208 hardcode_libdir_separator_CXX=:
12209 export_dynamic_flag_spec_CXX='${wl}-E'
12210 ;;
12211 esac
12212 fi
12213 case "$host_cpu" in
12214 hppa*64*)
12215 hardcode_direct_CXX=no
12216 hardcode_shlibpath_var_CXX=no
12217 ;;
12218 ia64*)
12219 hardcode_direct_CXX=no
12220 hardcode_shlibpath_var_CXX=no
12221 hardcode_minus_L_CXX=yes # Not in the search PATH,
12222 # but as the default
12223 # location of the library.
12224 ;;
12225 *)
12226 hardcode_direct_CXX=yes
12227 hardcode_minus_L_CXX=yes # Not in the search PATH,
12228 # but as the default
12229 # location of the library.
12230 ;;
12231 esac
12232
12233 case $cc_basename in
12234 CC)
12235 # FIXME: insert proper C++ library support
12236 ld_shlibs_CXX=no
12237 ;;
12238 aCC)
12239 case "$host_cpu" in
12240 hppa*64*|ia64*)
12241 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12242 ;;
12243 *)
12244 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12245 ;;
12246 esac
12247 # Commands to make compiler produce verbose output that lists
12248 # what "hidden" libraries, object files and flags are used when
12249 # linking a shared library.
12250 #
12251 # There doesn't appear to be a way to prevent this compiler from
12252 # explicitly linking system object files so we need to strip them
12253 # from the output so that they don't get included in the library
12254 # dependencies.
12255 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'
12256 ;;
12257 *)
12258 if test "$GXX" = yes; then
12259 if test $with_gnu_ld = no; then
12260 case "$host_cpu" in
12261 ia64*|hppa*64*)
12262 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
12263 ;;
12264 *)
12265 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'
12266 ;;
12267 esac
12268 fi
12269 else
12270 # FIXME: insert proper C++ library support
12271 ld_shlibs_CXX=no
12272 fi
12273 ;;
12274 esac
12275 ;;
12276 irix5* | irix6*)
12277 case $cc_basename in
12278 CC)
12279 # SGI C++
12280 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 ${objdir}/so_locations -o $lib'
12281
12282 # Archives containing C++ object files must be created using
12283 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
12284 # necessary to make sure instantiated templates are included
12285 # in the archive.
12286 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
12287 ;;
12288 *)
12289 if test "$GXX" = yes; then
12290 if test "$with_gnu_ld" = no; then
12291 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}${objdir}/so_locations -o $lib'
12292 else
12293 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'
12294 fi
12295 fi
12296 link_all_deplibs_CXX=yes
12297 ;;
12298 esac
12299 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12300 hardcode_libdir_separator_CXX=:
12301 ;;
12302 linux*)
12303 case $cc_basename in
12304 KCC)
12305 # Kuck and Associates, Inc. (KAI) C++ Compiler
12306
12307 # KCC will only create a shared library if the output file
12308 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12309 # to its proper name (with version) after linking.
12310 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'
12311 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'
12312 # Commands to make compiler produce verbose output that lists
12313 # what "hidden" libraries, object files and flags are used when
12314 # linking a shared library.
12315 #
12316 # There doesn't appear to be a way to prevent this compiler from
12317 # explicitly linking system object files so we need to strip them
12318 # from the output so that they don't get included in the library
12319 # dependencies.
12320 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'
12321
12322 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
12323 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12324
12325 # Archives containing C++ object files must be created using
12326 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12327 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12328 ;;
12329 icpc)
12330 # Intel C++
12331 with_gnu_ld=yes
12332 archive_cmds_need_lc_CXX=no
12333 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12334 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'
12335 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12336 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
12337 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12338 ;;
12339 cxx)
12340 # Compaq C++
12341 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
12342 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'
12343
12344 runpath_var=LD_RUN_PATH
12345 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12346 hardcode_libdir_separator_CXX=:
12347
12348 # Commands to make compiler produce verbose output that lists
12349 # what "hidden" libraries, object files and flags are used when
12350 # linking a shared library.
12351 #
12352 # There doesn't appear to be a way to prevent this compiler from
12353 # explicitly linking system object files so we need to strip them
12354 # from the output so that they don't get included in the library
12355 # dependencies.
12356 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'
12357 ;;
12358 esac
12359 ;;
12360 lynxos*)
12361 # FIXME: insert proper C++ library support
12362 ld_shlibs_CXX=no
12363 ;;
12364 m88k*)
12365 # FIXME: insert proper C++ library support
12366 ld_shlibs_CXX=no
12367 ;;
12368 mvs*)
12369 case $cc_basename in
12370 cxx)
12371 # FIXME: insert proper C++ library support
12372 ld_shlibs_CXX=no
12373 ;;
12374 *)
12375 # FIXME: insert proper C++ library support
12376 ld_shlibs_CXX=no
12377 ;;
12378 esac
12379 ;;
12380 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
12381 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12382 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
12383 wlarc=
12384 hardcode_libdir_flag_spec_CXX='-R$libdir'
12385 hardcode_direct_CXX=yes
12386 hardcode_shlibpath_var_CXX=no
12387 fi
12388 # Workaround some broken pre-1.5 toolchains
12389 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
12390 ;;
12391 osf3*)
12392 case $cc_basename in
12393 KCC)
12394 # Kuck and Associates, Inc. (KAI) C++ Compiler
12395
12396 # KCC will only create a shared library if the output file
12397 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12398 # to its proper name (with version) after linking.
12399 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'
12400
12401 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12402 hardcode_libdir_separator_CXX=:
12403
12404 # Archives containing C++ object files must be created using
12405 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
12406 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
12407
12408 ;;
12409 RCC)
12410 # Rational C++ 2.4.1
12411 # FIXME: insert proper C++ library support
12412 ld_shlibs_CXX=no
12413 ;;
12414 cxx)
12415 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12416 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 ${objdir}/so_locations -o $lib'
12417
12418 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12419 hardcode_libdir_separator_CXX=:
12420
12421 # Commands to make compiler produce verbose output that lists
12422 # what "hidden" libraries, object files and flags are used when
12423 # linking a shared library.
12424 #
12425 # There doesn't appear to be a way to prevent this compiler from
12426 # explicitly linking system object files so we need to strip them
12427 # from the output so that they don't get included in the library
12428 # dependencies.
12429 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'
12430 ;;
12431 *)
12432 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12433 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12434 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}${objdir}/so_locations -o $lib'
12435
12436 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12437 hardcode_libdir_separator_CXX=:
12438
12439 # Commands to make compiler produce verbose output that lists
12440 # what "hidden" libraries, object files and flags are used when
12441 # linking a shared library.
12442 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12443
12444 else
12445 # FIXME: insert proper C++ library support
12446 ld_shlibs_CXX=no
12447 fi
12448 ;;
12449 esac
12450 ;;
12451 osf4* | osf5*)
12452 case $cc_basename in
12453 KCC)
12454 # Kuck and Associates, Inc. (KAI) C++ Compiler
12455
12456 # KCC will only create a shared library if the output file
12457 # ends with ".so" (or ".sl" for HP-UX), so rename the library
12458 # to its proper name (with version) after linking.
12459 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'
12460
12461 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
12462 hardcode_libdir_separator_CXX=:
12463
12464 # Archives containing C++ object files must be created using
12465 # the KAI C++ compiler.
12466 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
12467 ;;
12468 RCC)
12469 # Rational C++ 2.4.1
12470 # FIXME: insert proper C++ library support
12471 ld_shlibs_CXX=no
12472 ;;
12473 cxx)
12474 allow_undefined_flag_CXX=' -expect_unresolved \*'
12475 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 ${objdir}/so_locations -o $lib'
12476 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
12477 echo "-hidden">> $lib.exp~
12478 $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 $objdir/so_locations -o $lib~
12479 $rm $lib.exp'
12480
12481 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
12482 hardcode_libdir_separator_CXX=:
12483
12484 # Commands to make compiler produce verbose output that lists
12485 # what "hidden" libraries, object files and flags are used when
12486 # linking a shared library.
12487 #
12488 # There doesn't appear to be a way to prevent this compiler from
12489 # explicitly linking system object files so we need to strip them
12490 # from the output so that they don't get included in the library
12491 # dependencies.
12492 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'
12493 ;;
12494 *)
12495 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12496 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
12497 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}${objdir}/so_locations -o $lib'
12498
12499 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
12500 hardcode_libdir_separator_CXX=:
12501
12502 # Commands to make compiler produce verbose output that lists
12503 # what "hidden" libraries, object files and flags are used when
12504 # linking a shared library.
12505 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
12506
12507 else
12508 # FIXME: insert proper C++ library support
12509 ld_shlibs_CXX=no
12510 fi
12511 ;;
12512 esac
12513 ;;
12514 psos*)
12515 # FIXME: insert proper C++ library support
12516 ld_shlibs_CXX=no
12517 ;;
12518 sco*)
12519 archive_cmds_need_lc_CXX=no
12520 case $cc_basename in
12521 CC)
12522 # FIXME: insert proper C++ library support
12523 ld_shlibs_CXX=no
12524 ;;
12525 *)
12526 # FIXME: insert proper C++ library support
12527 ld_shlibs_CXX=no
12528 ;;
12529 esac
12530 ;;
12531 sunos4*)
12532 case $cc_basename in
12533 CC)
12534 # Sun C++ 4.x
12535 # FIXME: insert proper C++ library support
12536 ld_shlibs_CXX=no
12537 ;;
12538 lcc)
12539 # Lucid
12540 # FIXME: insert proper C++ library support
12541 ld_shlibs_CXX=no
12542 ;;
12543 *)
12544 # FIXME: insert proper C++ library support
12545 ld_shlibs_CXX=no
12546 ;;
12547 esac
12548 ;;
12549 solaris*)
12550 case $cc_basename in
12551 CC)
12552 # Sun C++ 4.2, 5.x and Centerline C++
12553 no_undefined_flag_CXX=' -zdefs'
12554 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
12555 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12556 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12557
12558 hardcode_libdir_flag_spec_CXX='-R$libdir'
12559 hardcode_shlibpath_var_CXX=no
12560 case $host_os in
12561 solaris2.0-5 | solaris2.0-5.*) ;;
12562 *)
12563 # The C++ compiler is used as linker so we must use $wl
12564 # flag to pass the commands to the underlying system
12565 # linker.
12566 # Supported since Solaris 2.6 (maybe 2.5.1?)
12567 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12568 ;;
12569 esac
12570 link_all_deplibs_CXX=yes
12571
12572 # Commands to make compiler produce verbose output that lists
12573 # what "hidden" libraries, object files and flags are used when
12574 # linking a shared library.
12575 #
12576 # There doesn't appear to be a way to prevent this compiler from
12577 # explicitly linking system object files so we need to strip them
12578 # from the output so that they don't get included in the library
12579 # dependencies.
12580 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
12581
12582 # Archives containing C++ object files must be created using
12583 # "CC -xar", where "CC" is the Sun C++ compiler. This is
12584 # necessary to make sure instantiated templates are included
12585 # in the archive.
12586 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
12587 ;;
12588 gcx)
12589 # Green Hills C++ Compiler
12590 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12591
12592 # The C++ compiler must be used to create the archive.
12593 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
12594 ;;
12595 *)
12596 # GNU C++ compiler with Solaris linker
12597 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
12598 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
12599 if $CC --version | grep -v '^2\.7' > /dev/null; then
12600 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12601 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12602 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12603
12604 # Commands to make compiler produce verbose output that lists
12605 # what "hidden" libraries, object files and flags are used when
12606 # linking a shared library.
12607 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12608 else
12609 # g++ 2.7 appears to require `-G' NOT `-shared' on this
12610 # platform.
12611 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
12612 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12613 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
12614
12615 # Commands to make compiler produce verbose output that lists
12616 # what "hidden" libraries, object files and flags are used when
12617 # linking a shared library.
12618 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
12619 fi
12620
12621 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
12622 fi
12623 ;;
12624 esac
12625 ;;
12626 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12627 archive_cmds_need_lc_CXX=no
12628 ;;
12629 tandem*)
12630 case $cc_basename in
12631 NCC)
12632 # NonStop-UX NCC 3.20
12633 # FIXME: insert proper C++ library support
12634 ld_shlibs_CXX=no
12635 ;;
12636 *)
12637 # FIXME: insert proper C++ library support
12638 ld_shlibs_CXX=no
12639 ;;
12640 esac
12641 ;;
12642 vxworks*)
12643 # FIXME: insert proper C++ library support
12644 ld_shlibs_CXX=no
12645 ;;
12646 *)
12647 # FIXME: insert proper C++ library support
12648 ld_shlibs_CXX=no
12649 ;;
12650 esac
12651 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
12652 echo "${ECHO_T}$ld_shlibs_CXX" >&6
12653 test "$ld_shlibs_CXX" = no && can_build_shared=no
12654
12655 GCC_CXX="$GXX"
12656 LD_CXX="$LD"
12657
12658
12659 cat > conftest.$ac_ext <<EOF
12660 class Foo
12661 {
12662 public:
12663 Foo (void) { a = 0; }
12664 private:
12665 int a;
12666 };
12667 EOF
12668
12669 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12670 (eval $ac_compile) 2>&5
12671 ac_status=$?
12672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12673 (exit $ac_status); }; then
12674 # Parse the compiler output and extract the necessary
12675 # objects, libraries and library flags.
12676
12677 # Sentinel used to keep track of whether or not we are before
12678 # the conftest object file.
12679 pre_test_object_deps_done=no
12680
12681 # The `*' in the case matches for architectures that use `case' in
12682 # $output_verbose_cmd can trigger glob expansion during the loop
12683 # eval without this substitution.
12684 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
12685
12686 for p in `eval $output_verbose_link_cmd`; do
12687 case $p in
12688
12689 -L* | -R* | -l*)
12690 # Some compilers place space between "-{L,R}" and the path.
12691 # Remove the space.
12692 if test $p = "-L" \
12693 || test $p = "-R"; then
12694 prev=$p
12695 continue
12696 else
12697 prev=
12698 fi
12699
12700 if test "$pre_test_object_deps_done" = no; then
12701 case $p in
12702 -L* | -R*)
12703 # Internal compiler library paths should come after those
12704 # provided the user. The postdeps already come after the
12705 # user supplied libs so there is no need to process them.
12706 if test -z "$compiler_lib_search_path_CXX"; then
12707 compiler_lib_search_path_CXX="${prev}${p}"
12708 else
12709 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
12710 fi
12711 ;;
12712 # The "-l" case would never come before the object being
12713 # linked, so don't bother handling this case.
12714 esac
12715 else
12716 if test -z "$postdeps_CXX"; then
12717 postdeps_CXX="${prev}${p}"
12718 else
12719 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
12720 fi
12721 fi
12722 ;;
12723
12724 *.$objext)
12725 # This assumes that the test object file only shows up
12726 # once in the compiler output.
12727 if test "$p" = "conftest.$objext"; then
12728 pre_test_object_deps_done=yes
12729 continue
12730 fi
12731
12732 if test "$pre_test_object_deps_done" = no; then
12733 if test -z "$predep_objects_CXX"; then
12734 predep_objects_CXX="$p"
12735 else
12736 predep_objects_CXX="$predep_objects_CXX $p"
12737 fi
12738 else
12739 if test -z "$postdep_objects_CXX"; then
12740 postdep_objects_CXX="$p"
12741 else
12742 postdep_objects_CXX="$postdep_objects_CXX $p"
12743 fi
12744 fi
12745 ;;
12746
12747 *) ;; # Ignore the rest.
12748
12749 esac
12750 done
12751
12752 # Clean up.
12753 rm -f a.out a.exe
12754 else
12755 echo "libtool.m4: error: problem compiling CXX test program"
12756 fi
12757
12758 $rm -f confest.$objext
12759
12760 case " $postdeps_CXX " in
12761 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
12762 esac
12763
12764 lt_prog_compiler_wl_CXX=
12765 lt_prog_compiler_pic_CXX=
12766 lt_prog_compiler_static_CXX=
12767
12768 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12769 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12770
12771 # C++ specific cases for pic, static, wl, etc.
12772 if test "$GXX" = yes; then
12773 lt_prog_compiler_wl_CXX='-Wl,'
12774 lt_prog_compiler_static_CXX='-static'
12775
12776 case $host_os in
12777 aix*)
12778 # All AIX code is PIC.
12779 if test "$host_cpu" = ia64; then
12780 # AIX 5 now supports IA64 processor
12781 lt_prog_compiler_static_CXX='-Bstatic'
12782 fi
12783 ;;
12784 amigaos*)
12785 # FIXME: we need at least 68020 code to build shared libraries, but
12786 # adding the `-m68020' flag to GCC prevents building anything better,
12787 # like `-m68040'.
12788 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
12789 ;;
12790 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
12791 # PIC is the default for these OSes.
12792 ;;
12793 mingw* | os2* | pw32*)
12794 # This hack is so that the source file can tell whether it is being
12795 # built for inclusion in a dll (and should export symbols for example).
12796 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
12797 ;;
12798 darwin* | rhapsody*)
12799 # PIC is the default on this platform
12800 # Common symbols not allowed in MH_DYLIB files
12801 lt_prog_compiler_pic_CXX='-fno-common'
12802 ;;
12803 *djgpp*)
12804 # DJGPP does not support shared libraries at all
12805 lt_prog_compiler_pic_CXX=
12806 ;;
12807 sysv4*MP*)
12808 if test -d /usr/nec; then
12809 lt_prog_compiler_pic_CXX=-Kconform_pic
12810 fi
12811 ;;
12812 hpux*)
12813 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12814 # not for PA HP-UX.
12815 case "$host_cpu" in
12816 hppa*64*|ia64*)
12817 ;;
12818 *)
12819 lt_prog_compiler_pic_CXX='-fPIC'
12820 ;;
12821 esac
12822 ;;
12823 *)
12824 lt_prog_compiler_pic_CXX='-fPIC'
12825 ;;
12826 esac
12827 else
12828 case $host_os in
12829 aix4* | aix5*)
12830 # All AIX code is PIC.
12831 if test "$host_cpu" = ia64; then
12832 # AIX 5 now supports IA64 processor
12833 lt_prog_compiler_static_CXX='-Bstatic'
12834 else
12835 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
12836 fi
12837 ;;
12838 chorus*)
12839 case $cc_basename in
12840 cxch68)
12841 # Green Hills C++ Compiler
12842 # _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"
12843 ;;
12844 esac
12845 ;;
12846 dgux*)
12847 case $cc_basename in
12848 ec++)
12849 lt_prog_compiler_pic_CXX='-KPIC'
12850 ;;
12851 ghcx)
12852 # Green Hills C++ Compiler
12853 lt_prog_compiler_pic_CXX='-pic'
12854 ;;
12855 *)
12856 ;;
12857 esac
12858 ;;
12859 freebsd* | kfreebsd*-gnu)
12860 # FreeBSD uses GNU C++
12861 ;;
12862 hpux9* | hpux10* | hpux11*)
12863 case $cc_basename in
12864 CC)
12865 lt_prog_compiler_wl_CXX='-Wl,'
12866 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12867 if test "$host_cpu" != ia64; then
12868 lt_prog_compiler_pic_CXX='+Z'
12869 fi
12870 ;;
12871 aCC)
12872 lt_prog_compiler_wl_CXX='-Wl,'
12873 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
12874 case "$host_cpu" in
12875 hppa*64*|ia64*)
12876 # +Z the default
12877 ;;
12878 *)
12879 lt_prog_compiler_pic_CXX='+Z'
12880 ;;
12881 esac
12882 ;;
12883 *)
12884 ;;
12885 esac
12886 ;;
12887 irix5* | irix6* | nonstopux*)
12888 case $cc_basename in
12889 CC)
12890 lt_prog_compiler_wl_CXX='-Wl,'
12891 lt_prog_compiler_static_CXX='-non_shared'
12892 # CC pic flag -KPIC is the default.
12893 ;;
12894 *)
12895 ;;
12896 esac
12897 ;;
12898 linux*)
12899 case $cc_basename in
12900 KCC)
12901 # KAI C++ Compiler
12902 lt_prog_compiler_wl_CXX='--backend -Wl,'
12903 lt_prog_compiler_pic_CXX='-fPIC'
12904 ;;
12905 icpc)
12906 # Intel C++
12907 lt_prog_compiler_wl_CXX='-Wl,'
12908 lt_prog_compiler_pic_CXX='-KPIC'
12909 lt_prog_compiler_static_CXX='-static'
12910 ;;
12911 cxx)
12912 # Compaq C++
12913 # Make sure the PIC flag is empty. It appears that all Alpha
12914 # Linux and Compaq Tru64 Unix objects are PIC.
12915 lt_prog_compiler_pic_CXX=
12916 lt_prog_compiler_static_CXX='-non_shared'
12917 ;;
12918 *)
12919 ;;
12920 esac
12921 ;;
12922 lynxos*)
12923 ;;
12924 m88k*)
12925 ;;
12926 mvs*)
12927 case $cc_basename in
12928 cxx)
12929 lt_prog_compiler_pic_CXX='-W c,exportall'
12930 ;;
12931 *)
12932 ;;
12933 esac
12934 ;;
12935 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
12936 ;;
12937 osf3* | osf4* | osf5*)
12938 case $cc_basename in
12939 KCC)
12940 lt_prog_compiler_wl_CXX='--backend -Wl,'
12941 ;;
12942 RCC)
12943 # Rational C++ 2.4.1
12944 lt_prog_compiler_pic_CXX='-pic'
12945 ;;
12946 cxx)
12947 # Digital/Compaq C++
12948 lt_prog_compiler_wl_CXX='-Wl,'
12949 # Make sure the PIC flag is empty. It appears that all Alpha
12950 # Linux and Compaq Tru64 Unix objects are PIC.
12951 lt_prog_compiler_pic_CXX=
12952 lt_prog_compiler_static_CXX='-non_shared'
12953 ;;
12954 *)
12955 ;;
12956 esac
12957 ;;
12958 psos*)
12959 ;;
12960 sco*)
12961 case $cc_basename in
12962 CC)
12963 lt_prog_compiler_pic_CXX='-fPIC'
12964 ;;
12965 *)
12966 ;;
12967 esac
12968 ;;
12969 solaris*)
12970 case $cc_basename in
12971 CC)
12972 # Sun C++ 4.2, 5.x and Centerline C++
12973 lt_prog_compiler_pic_CXX='-KPIC'
12974 lt_prog_compiler_static_CXX='-Bstatic'
12975 lt_prog_compiler_wl_CXX='-Qoption ld '
12976 ;;
12977 gcx)
12978 # Green Hills C++ Compiler
12979 lt_prog_compiler_pic_CXX='-PIC'
12980 ;;
12981 *)
12982 ;;
12983 esac
12984 ;;
12985 sunos4*)
12986 case $cc_basename in
12987 CC)
12988 # Sun C++ 4.x
12989 lt_prog_compiler_pic_CXX='-pic'
12990 lt_prog_compiler_static_CXX='-Bstatic'
12991 ;;
12992 lcc)
12993 # Lucid
12994 lt_prog_compiler_pic_CXX='-pic'
12995 ;;
12996 *)
12997 ;;
12998 esac
12999 ;;
13000 tandem*)
13001 case $cc_basename in
13002 NCC)
13003 # NonStop-UX NCC 3.20
13004 lt_prog_compiler_pic_CXX='-KPIC'
13005 ;;
13006 *)
13007 ;;
13008 esac
13009 ;;
13010 unixware*)
13011 ;;
13012 vxworks*)
13013 ;;
13014 *)
13015 lt_prog_compiler_can_build_shared_CXX=no
13016 ;;
13017 esac
13018 fi
13019
13020 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
13021 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
13022
13023 #
13024 # Check to make sure the PIC flag actually works.
13025 #
13026 if test -n "$lt_prog_compiler_pic_CXX"; then
13027
13028 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
13029 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
13030 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
13031 echo $ECHO_N "(cached) $ECHO_C" >&6
13032 else
13033 lt_prog_compiler_pic_works_CXX=no
13034 ac_outfile=conftest.$ac_objext
13035 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13036 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
13037 # Insert the option either (1) after the last *FLAGS variable, or
13038 # (2) before a word containing "conftest.", or (3) at the end.
13039 # Note that $ac_compile itself does not contain backslashes and begins
13040 # with a dollar sign (not a hyphen), so the echo should work correctly.
13041 # The option is referenced via a variable to avoid confusing sed.
13042 lt_compile=`echo "$ac_compile" | $SED \
13043 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13044 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13045 -e 's:$: $lt_compiler_flag:'`
13046 (eval echo "\"\$as_me:13046: $lt_compile\"" >&5)
13047 (eval "$lt_compile" 2>conftest.err)
13048 ac_status=$?
13049 cat conftest.err >&5
13050 echo "$as_me:13050: \$? = $ac_status" >&5
13051 if (exit $ac_status) && test -s "$ac_outfile"; then
13052 # The compiler can only warn and ignore the option if not recognized
13053 # So say no if there are warnings
13054 if test ! -s conftest.err; then
13055 lt_prog_compiler_pic_works_CXX=yes
13056 fi
13057 fi
13058 $rm conftest*
13059
13060 fi
13061 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
13062 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
13063
13064 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
13065 case $lt_prog_compiler_pic_CXX in
13066 "" | " "*) ;;
13067 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
13068 esac
13069 else
13070 lt_prog_compiler_pic_CXX=
13071 lt_prog_compiler_can_build_shared_CXX=no
13072 fi
13073
13074 fi
13075 case "$host_os" in
13076 # For platforms which do not support PIC, -DPIC is meaningless:
13077 *djgpp*)
13078 lt_prog_compiler_pic_CXX=
13079 ;;
13080 *)
13081 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
13082 ;;
13083 esac
13084
13085 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
13086 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
13087 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
13088 echo $ECHO_N "(cached) $ECHO_C" >&6
13089 else
13090 lt_cv_prog_compiler_c_o_CXX=no
13091 $rm -r conftest 2>/dev/null
13092 mkdir conftest
13093 cd conftest
13094 mkdir out
13095 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13096
13097 lt_compiler_flag="-o out/conftest2.$ac_objext"
13098 # Insert the option either (1) after the last *FLAGS variable, or
13099 # (2) before a word containing "conftest.", or (3) at the end.
13100 # Note that $ac_compile itself does not contain backslashes and begins
13101 # with a dollar sign (not a hyphen), so the echo should work correctly.
13102 lt_compile=`echo "$ac_compile" | $SED \
13103 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
13104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13105 -e 's:$: $lt_compiler_flag:'`
13106 (eval echo "\"\$as_me:13106: $lt_compile\"" >&5)
13107 (eval "$lt_compile" 2>out/conftest.err)
13108 ac_status=$?
13109 cat out/conftest.err >&5
13110 echo "$as_me:13110: \$? = $ac_status" >&5
13111 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13112 then
13113 # The compiler can only warn and ignore the option if not recognized
13114 # So say no if there are warnings
13115 if test ! -s out/conftest.err; then
13116 lt_cv_prog_compiler_c_o_CXX=yes
13117 fi
13118 fi
13119 chmod u+w .
13120 $rm conftest*
13121 # SGI C++ compiler will create directory out/ii_files/ for
13122 # template instantiation
13123 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
13124 $rm out/* && rmdir out
13125 cd ..
13126 rmdir conftest
13127 $rm conftest*
13128
13129 fi
13130 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
13131 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
13132
13133
13134 hard_links="nottested"
13135 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
13136 # do not overwrite the value of need_locks provided by the user
13137 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
13138 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
13139 hard_links=yes
13140 $rm conftest*
13141 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13142 touch conftest.a
13143 ln conftest.a conftest.b 2>&5 || hard_links=no
13144 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13145 echo "$as_me:$LINENO: result: $hard_links" >&5
13146 echo "${ECHO_T}$hard_links" >&6
13147 if test "$hard_links" = no; then
13148 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13149 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13150 need_locks=warn
13151 fi
13152 else
13153 need_locks=no
13154 fi
13155
13156 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13157 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
13158
13159 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13160 case $host_os in
13161 aix4* | aix5*)
13162 # If we're using GNU nm, then we don't want the "-C" option.
13163 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13164 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
13165 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'
13166 else
13167 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'
13168 fi
13169 ;;
13170 pw32*)
13171 export_symbols_cmds_CXX="$ltdll_cmds"
13172 ;;
13173 cygwin* | mingw*)
13174 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
13175 ;;
13176 linux*)
13177 link_all_deplibs_CXX=no
13178 ;;
13179 *)
13180 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13181 ;;
13182 esac
13183
13184 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
13185 echo "${ECHO_T}$ld_shlibs_CXX" >&6
13186 test "$ld_shlibs_CXX" = no && can_build_shared=no
13187
13188 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
13189 if test "$GCC" = yes; then
13190 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
13191 fi
13192
13193 #
13194 # Do we need to explicitly link libc?
13195 #
13196 case "x$archive_cmds_need_lc_CXX" in
13197 x|xyes)
13198 # Assume -lc should be added
13199 archive_cmds_need_lc_CXX=yes
13200
13201 if test "$enable_shared" = yes && test "$GCC" = yes; then
13202 case $archive_cmds_CXX in
13203 *'~'*)
13204 # FIXME: we may have to deal with multi-command sequences.
13205 ;;
13206 '$CC '*)
13207 # Test whether the compiler implicitly links with -lc since on some
13208 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13209 # to ld, don't add -lc before -lgcc.
13210 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13211 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13212 $rm conftest*
13213 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
13214
13215 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13216 (eval $ac_compile) 2>&5
13217 ac_status=$?
13218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13219 (exit $ac_status); } 2>conftest.err; then
13220 soname=conftest
13221 lib=conftest
13222 libobjs=conftest.$ac_objext
13223 deplibs=
13224 wl=$lt_prog_compiler_wl_CXX
13225 compiler_flags=-v
13226 linker_flags=-v
13227 verstring=
13228 output_objdir=.
13229 libname=conftest
13230 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
13231 allow_undefined_flag_CXX=
13232 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13233 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
13234 ac_status=$?
13235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13236 (exit $ac_status); }
13237 then
13238 archive_cmds_need_lc_CXX=no
13239 else
13240 archive_cmds_need_lc_CXX=yes
13241 fi
13242 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
13243 else
13244 cat conftest.err 1>&5
13245 fi
13246 $rm conftest*
13247 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
13248 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
13249 ;;
13250 esac
13251 fi
13252 ;;
13253 esac
13254
13255 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13256 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13257 library_names_spec=
13258 libname_spec='lib$name'
13259 soname_spec=
13260 shrext_cmds=".so"
13261 postinstall_cmds=
13262 postuninstall_cmds=
13263 finish_cmds=
13264 finish_eval=
13265 shlibpath_var=
13266 shlibpath_overrides_runpath=unknown
13267 version_type=none
13268 dynamic_linker="$host_os ld.so"
13269 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13270 if test "$GCC" = yes; then
13271 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13272 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13273 # if the path contains ";" then we assume it to be the separator
13274 # otherwise default to the standard path separator (i.e. ":") - it is
13275 # assumed that no part of a normal pathname contains ";" but that should
13276 # okay in the real world where ";" in dirpaths is itself problematic.
13277 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13278 else
13279 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13280 fi
13281 else
13282 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13283 fi
13284 need_lib_prefix=unknown
13285 hardcode_into_libs=no
13286
13287 # when you set need_version to no, make sure it does not cause -set_version
13288 # flags to be left without arguments
13289 need_version=unknown
13290
13291 case $host_os in
13292 aix3*)
13293 version_type=linux
13294 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13295 shlibpath_var=LIBPATH
13296
13297 # AIX 3 has no versioning support, so we append a major version to the name.
13298 soname_spec='${libname}${release}${shared_ext}$major'
13299 ;;
13300
13301 aix4* | aix5*)
13302 version_type=linux
13303 need_lib_prefix=no
13304 need_version=no
13305 hardcode_into_libs=yes
13306 if test "$host_cpu" = ia64; then
13307 # AIX 5 supports IA64
13308 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13309 shlibpath_var=LD_LIBRARY_PATH
13310 else
13311 # With GCC up to 2.95.x, collect2 would create an import file
13312 # for dependence libraries. The import file would start with
13313 # the line `#! .'. This would cause the generated library to
13314 # depend on `.', always an invalid library. This was fixed in
13315 # development snapshots of GCC prior to 3.0.
13316 case $host_os in
13317 aix4 | aix4.[01] | aix4.[01].*)
13318 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13319 echo ' yes '
13320 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13321 :
13322 else
13323 can_build_shared=no
13324 fi
13325 ;;
13326 esac
13327 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13328 # soname into executable. Probably we can add versioning support to
13329 # collect2, so additional links can be useful in future.
13330 if test "$aix_use_runtimelinking" = yes; then
13331 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13332 # instead of lib<name>.a to let people know that these are not
13333 # typical AIX shared libraries.
13334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13335 else
13336 # We preserve .a as extension for shared libraries through AIX4.2
13337 # and later when we are not doing run time linking.
13338 library_names_spec='${libname}${release}.a $libname.a'
13339 soname_spec='${libname}${release}${shared_ext}$major'
13340 fi
13341 shlibpath_var=LIBPATH
13342 fi
13343 ;;
13344
13345 amigaos*)
13346 library_names_spec='$libname.ixlibrary $libname.a'
13347 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13348 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'
13349 ;;
13350
13351 beos*)
13352 library_names_spec='${libname}${shared_ext}'
13353 dynamic_linker="$host_os ld.so"
13354 shlibpath_var=LIBRARY_PATH
13355 ;;
13356
13357 bsdi4*)
13358 version_type=linux
13359 need_version=no
13360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13361 soname_spec='${libname}${release}${shared_ext}$major'
13362 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13363 shlibpath_var=LD_LIBRARY_PATH
13364 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13365 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13366 # the default ld.so.conf also contains /usr/contrib/lib and
13367 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13368 # libtool to hard-code these into programs
13369 ;;
13370
13371 cygwin* | mingw* | pw32*)
13372 version_type=windows
13373 shrext_cmds=".dll"
13374 need_version=no
13375 need_lib_prefix=no
13376
13377 case $GCC,$host_os in
13378 yes,cygwin* | yes,mingw* | yes,pw32*)
13379 library_names_spec='$libname.dll.a'
13380 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13381 postinstall_cmds='base_file=`basename \${file}`~
13382 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13383 dldir=$destdir/`dirname \$dlpath`~
13384 test -d \$dldir || mkdir -p \$dldir~
13385 $install_prog $dir/$dlname \$dldir/$dlname'
13386 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13387 dlpath=$dir/\$dldll~
13388 $rm \$dlpath'
13389 shlibpath_overrides_runpath=yes
13390
13391 case $host_os in
13392 cygwin*)
13393 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13394 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13395 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13396 ;;
13397 mingw*)
13398 # MinGW DLLs use traditional 'lib' prefix
13399 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13400 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13401 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13402 # It is most probably a Windows format PATH printed by
13403 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13404 # path with ; separators, and with drive letters. We can handle the
13405 # drive letters (cygwin fileutils understands them), so leave them,
13406 # especially as we might pass files found there to a mingw objdump,
13407 # which wouldn't understand a cygwinified path. Ahh.
13408 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13409 else
13410 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13411 fi
13412 ;;
13413 pw32*)
13414 # pw32 DLLs use 'pw' prefix rather than 'lib'
13415 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13416 ;;
13417 esac
13418 ;;
13419
13420 *)
13421 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13422 ;;
13423 esac
13424 dynamic_linker='Win32 ld.exe'
13425 # FIXME: first we should search . and the directory the executable is in
13426 shlibpath_var=PATH
13427 ;;
13428
13429 darwin* | rhapsody*)
13430 dynamic_linker="$host_os dyld"
13431 version_type=darwin
13432 need_lib_prefix=no
13433 need_version=no
13434 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13435 soname_spec='${libname}${release}${major}$shared_ext'
13436 shlibpath_overrides_runpath=yes
13437 shlibpath_var=DYLD_LIBRARY_PATH
13438 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13439 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13440 if test "$GCC" = yes; then
13441 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13442 else
13443 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13444 fi
13445 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13446 ;;
13447
13448 dgux*)
13449 version_type=linux
13450 need_lib_prefix=no
13451 need_version=no
13452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13453 soname_spec='${libname}${release}${shared_ext}$major'
13454 shlibpath_var=LD_LIBRARY_PATH
13455 ;;
13456
13457 freebsd1*)
13458 dynamic_linker=no
13459 ;;
13460
13461 kfreebsd*-gnu)
13462 version_type=linux
13463 need_lib_prefix=no
13464 need_version=no
13465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13466 soname_spec='${libname}${release}${shared_ext}$major'
13467 shlibpath_var=LD_LIBRARY_PATH
13468 shlibpath_overrides_runpath=no
13469 hardcode_into_libs=yes
13470 dynamic_linker='GNU ld.so'
13471 ;;
13472
13473 freebsd*)
13474 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13475 version_type=freebsd-$objformat
13476 case $version_type in
13477 freebsd-elf*)
13478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13479 need_version=no
13480 need_lib_prefix=no
13481 ;;
13482 freebsd-*)
13483 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13484 need_version=yes
13485 ;;
13486 esac
13487 shlibpath_var=LD_LIBRARY_PATH
13488 case $host_os in
13489 freebsd2*)
13490 shlibpath_overrides_runpath=yes
13491 ;;
13492 freebsd3.01* | freebsdelf3.01*)
13493 shlibpath_overrides_runpath=yes
13494 hardcode_into_libs=yes
13495 ;;
13496 *) # from 3.2 on
13497 shlibpath_overrides_runpath=no
13498 hardcode_into_libs=yes
13499 ;;
13500 esac
13501 ;;
13502
13503 gnu*)
13504 version_type=linux
13505 need_lib_prefix=no
13506 need_version=no
13507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13508 soname_spec='${libname}${release}${shared_ext}$major'
13509 shlibpath_var=LD_LIBRARY_PATH
13510 hardcode_into_libs=yes
13511 ;;
13512
13513 hpux9* | hpux10* | hpux11*)
13514 # Give a soname corresponding to the major version so that dld.sl refuses to
13515 # link against other versions.
13516 version_type=sunos
13517 need_lib_prefix=no
13518 need_version=no
13519 case "$host_cpu" in
13520 ia64*)
13521 shrext_cmds='.so'
13522 hardcode_into_libs=yes
13523 dynamic_linker="$host_os dld.so"
13524 shlibpath_var=LD_LIBRARY_PATH
13525 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13527 soname_spec='${libname}${release}${shared_ext}$major'
13528 if test "X$HPUX_IA64_MODE" = X32; then
13529 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13530 else
13531 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13532 fi
13533 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13534 ;;
13535 hppa*64*)
13536 shrext_cmds='.sl'
13537 hardcode_into_libs=yes
13538 dynamic_linker="$host_os dld.sl"
13539 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13540 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13542 soname_spec='${libname}${release}${shared_ext}$major'
13543 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13544 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13545 ;;
13546 *)
13547 shrext_cmds='.sl'
13548 dynamic_linker="$host_os dld.sl"
13549 shlibpath_var=SHLIB_PATH
13550 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13552 soname_spec='${libname}${release}${shared_ext}$major'
13553 ;;
13554 esac
13555 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13556 postinstall_cmds='chmod 555 $lib'
13557 ;;
13558
13559 irix5* | irix6* | nonstopux*)
13560 case $host_os in
13561 nonstopux*) version_type=nonstopux ;;
13562 *)
13563 if test "$lt_cv_prog_gnu_ld" = yes; then
13564 version_type=linux
13565 else
13566 version_type=irix
13567 fi ;;
13568 esac
13569 need_lib_prefix=no
13570 need_version=no
13571 soname_spec='${libname}${release}${shared_ext}$major'
13572 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13573 case $host_os in
13574 irix5* | nonstopux*)
13575 libsuff= shlibsuff=
13576 ;;
13577 *)
13578 case $LD in # libtool.m4 will add one of these switches to LD
13579 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13580 libsuff= shlibsuff= libmagic=32-bit;;
13581 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13582 libsuff=32 shlibsuff=N32 libmagic=N32;;
13583 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13584 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13585 *) libsuff= shlibsuff= libmagic=never-match;;
13586 esac
13587 ;;
13588 esac
13589 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13590 shlibpath_overrides_runpath=no
13591 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13592 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13593 hardcode_into_libs=yes
13594 ;;
13595
13596 # No shared lib support for Linux oldld, aout, or coff.
13597 linux*oldld* | linux*aout* | linux*coff*)
13598 dynamic_linker=no
13599 ;;
13600
13601 # This must be Linux ELF.
13602 linux*)
13603 version_type=linux
13604 need_lib_prefix=no
13605 need_version=no
13606 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13607 soname_spec='${libname}${release}${shared_ext}$major'
13608 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13609 shlibpath_var=LD_LIBRARY_PATH
13610 shlibpath_overrides_runpath=no
13611 # This implies no fast_install, which is unacceptable.
13612 # Some rework will be needed to allow for fast_install
13613 # before this can be enabled.
13614 hardcode_into_libs=yes
13615
13616 # Append ld.so.conf contents to the search path
13617 if test -f /etc/ld.so.conf; then
13618 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13619 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13620 fi
13621
13622 # We used to test for /lib/ld.so.1 and disable shared libraries on
13623 # powerpc, because MkLinux only supported shared libraries with the
13624 # GNU dynamic linker. Since this was broken with cross compilers,
13625 # most powerpc-linux boxes support dynamic linking these days and
13626 # people can always --disable-shared, the test was removed, and we
13627 # assume the GNU/Linux dynamic linker is in use.
13628 dynamic_linker='GNU/Linux ld.so'
13629 ;;
13630
13631 netbsdelf*-gnu)
13632 version_type=linux
13633 need_lib_prefix=no
13634 need_version=no
13635 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13636 soname_spec='${libname}${release}${shared_ext}$major'
13637 shlibpath_var=LD_LIBRARY_PATH
13638 shlibpath_overrides_runpath=no
13639 hardcode_into_libs=yes
13640 dynamic_linker='NetBSD ld.elf_so'
13641 ;;
13642
13643 knetbsd*-gnu)
13644 version_type=linux
13645 need_lib_prefix=no
13646 need_version=no
13647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13648 soname_spec='${libname}${release}${shared_ext}$major'
13649 shlibpath_var=LD_LIBRARY_PATH
13650 shlibpath_overrides_runpath=no
13651 hardcode_into_libs=yes
13652 dynamic_linker='GNU ld.so'
13653 ;;
13654
13655 netbsd*)
13656 version_type=sunos
13657 need_lib_prefix=no
13658 need_version=no
13659 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13661 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13662 dynamic_linker='NetBSD (a.out) ld.so'
13663 else
13664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13665 soname_spec='${libname}${release}${shared_ext}$major'
13666 dynamic_linker='NetBSD ld.elf_so'
13667 fi
13668 shlibpath_var=LD_LIBRARY_PATH
13669 shlibpath_overrides_runpath=yes
13670 hardcode_into_libs=yes
13671 ;;
13672
13673 newsos6)
13674 version_type=linux
13675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13676 shlibpath_var=LD_LIBRARY_PATH
13677 shlibpath_overrides_runpath=yes
13678 ;;
13679
13680 nto-qnx*)
13681 version_type=linux
13682 need_lib_prefix=no
13683 need_version=no
13684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13685 soname_spec='${libname}${release}${shared_ext}$major'
13686 shlibpath_var=LD_LIBRARY_PATH
13687 shlibpath_overrides_runpath=yes
13688 ;;
13689
13690 openbsd*)
13691 version_type=sunos
13692 need_lib_prefix=no
13693 need_version=yes
13694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13695 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13696 shlibpath_var=LD_LIBRARY_PATH
13697 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13698 case $host_os in
13699 openbsd2.[89] | openbsd2.[89].*)
13700 shlibpath_overrides_runpath=no
13701 ;;
13702 *)
13703 shlibpath_overrides_runpath=yes
13704 ;;
13705 esac
13706 else
13707 shlibpath_overrides_runpath=yes
13708 fi
13709 ;;
13710
13711 os2*)
13712 libname_spec='$name'
13713 shrext_cmds=".dll"
13714 need_lib_prefix=no
13715 library_names_spec='$libname${shared_ext} $libname.a'
13716 dynamic_linker='OS/2 ld.exe'
13717 shlibpath_var=LIBPATH
13718 ;;
13719
13720 osf3* | osf4* | osf5*)
13721 version_type=osf
13722 need_lib_prefix=no
13723 need_version=no
13724 soname_spec='${libname}${release}${shared_ext}$major'
13725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13726 shlibpath_var=LD_LIBRARY_PATH
13727 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13728 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13729 ;;
13730
13731 sco3.2v5*)
13732 version_type=osf
13733 soname_spec='${libname}${release}${shared_ext}$major'
13734 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13735 shlibpath_var=LD_LIBRARY_PATH
13736 ;;
13737
13738 solaris*)
13739 version_type=linux
13740 need_lib_prefix=no
13741 need_version=no
13742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13743 soname_spec='${libname}${release}${shared_ext}$major'
13744 shlibpath_var=LD_LIBRARY_PATH
13745 shlibpath_overrides_runpath=yes
13746 hardcode_into_libs=yes
13747 # ldd complains unless libraries are executable
13748 postinstall_cmds='chmod +x $lib'
13749 ;;
13750
13751 sunos4*)
13752 version_type=sunos
13753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13754 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13755 shlibpath_var=LD_LIBRARY_PATH
13756 shlibpath_overrides_runpath=yes
13757 if test "$with_gnu_ld" = yes; then
13758 need_lib_prefix=no
13759 fi
13760 need_version=yes
13761 ;;
13762
13763 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13764 version_type=linux
13765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13766 soname_spec='${libname}${release}${shared_ext}$major'
13767 shlibpath_var=LD_LIBRARY_PATH
13768 case $host_vendor in
13769 sni)
13770 shlibpath_overrides_runpath=no
13771 need_lib_prefix=no
13772 export_dynamic_flag_spec='${wl}-Blargedynsym'
13773 runpath_var=LD_RUN_PATH
13774 ;;
13775 siemens)
13776 need_lib_prefix=no
13777 ;;
13778 motorola)
13779 need_lib_prefix=no
13780 need_version=no
13781 shlibpath_overrides_runpath=no
13782 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13783 ;;
13784 esac
13785 ;;
13786
13787 sysv4*MP*)
13788 if test -d /usr/nec ;then
13789 version_type=linux
13790 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13791 soname_spec='$libname${shared_ext}.$major'
13792 shlibpath_var=LD_LIBRARY_PATH
13793 fi
13794 ;;
13795
13796 uts4*)
13797 version_type=linux
13798 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13799 soname_spec='${libname}${release}${shared_ext}$major'
13800 shlibpath_var=LD_LIBRARY_PATH
13801 ;;
13802
13803 *)
13804 dynamic_linker=no
13805 ;;
13806 esac
13807 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13808 echo "${ECHO_T}$dynamic_linker" >&6
13809 test "$dynamic_linker" = no && can_build_shared=no
13810
13811 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13812 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13813 hardcode_action_CXX=
13814 if test -n "$hardcode_libdir_flag_spec_CXX" || \
13815 test -n "$runpath_var CXX" || \
13816 test "X$hardcode_automatic_CXX"="Xyes" ; then
13817
13818 # We can hardcode non-existant directories.
13819 if test "$hardcode_direct_CXX" != no &&
13820 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13821 # have to relink, otherwise we might link with an installed library
13822 # when we should be linking with a yet-to-be-installed one
13823 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
13824 test "$hardcode_minus_L_CXX" != no; then
13825 # Linking always hardcodes the temporary library directory.
13826 hardcode_action_CXX=relink
13827 else
13828 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13829 hardcode_action_CXX=immediate
13830 fi
13831 else
13832 # We cannot hardcode anything, or else we can only hardcode existing
13833 # directories.
13834 hardcode_action_CXX=unsupported
13835 fi
13836 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
13837 echo "${ECHO_T}$hardcode_action_CXX" >&6
13838
13839 if test "$hardcode_action_CXX" = relink; then
13840 # Fast installation is not supported
13841 enable_fast_install=no
13842 elif test "$shlibpath_overrides_runpath" = yes ||
13843 test "$enable_shared" = no; then
13844 # Fast installation is not necessary
13845 enable_fast_install=needless
13846 fi
13847
13848 striplib=
13849 old_striplib=
13850 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13851 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13852 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13853 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13854 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13855 echo "$as_me:$LINENO: result: yes" >&5
13856 echo "${ECHO_T}yes" >&6
13857 else
13858 # FIXME - insert some real tests, host_os isn't really good enough
13859 case $host_os in
13860 darwin*)
13861 if test -n "$STRIP" ; then
13862 striplib="$STRIP -x"
13863 echo "$as_me:$LINENO: result: yes" >&5
13864 echo "${ECHO_T}yes" >&6
13865 else
13866 echo "$as_me:$LINENO: result: no" >&5
13867 echo "${ECHO_T}no" >&6
13868 fi
13869 ;;
13870 *)
13871 echo "$as_me:$LINENO: result: no" >&5
13872 echo "${ECHO_T}no" >&6
13873 ;;
13874 esac
13875 fi
13876
13877 if test "x$enable_dlopen" != xyes; then
13878 enable_dlopen=unknown
13879 enable_dlopen_self=unknown
13880 enable_dlopen_self_static=unknown
13881 else
13882 lt_cv_dlopen=no
13883 lt_cv_dlopen_libs=
13884
13885 case $host_os in
13886 beos*)
13887 lt_cv_dlopen="load_add_on"
13888 lt_cv_dlopen_libs=
13889 lt_cv_dlopen_self=yes
13890 ;;
13891
13892 mingw* | pw32*)
13893 lt_cv_dlopen="LoadLibrary"
13894 lt_cv_dlopen_libs=
13895 ;;
13896
13897 cygwin*)
13898 lt_cv_dlopen="dlopen"
13899 lt_cv_dlopen_libs=
13900 ;;
13901
13902 darwin*)
13903 # if libdl is installed we need to link against it
13904 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13905 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13906 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13907 echo $ECHO_N "(cached) $ECHO_C" >&6
13908 else
13909 ac_check_lib_save_LIBS=$LIBS
13910 LIBS="-ldl $LIBS"
13911 cat >conftest.$ac_ext <<_ACEOF
13912 /* confdefs.h. */
13913 _ACEOF
13914 cat confdefs.h >>conftest.$ac_ext
13915 cat >>conftest.$ac_ext <<_ACEOF
13916 /* end confdefs.h. */
13917
13918 /* Override any gcc2 internal prototype to avoid an error. */
13919 #ifdef __cplusplus
13920 extern "C"
13921 #endif
13922 /* We use char because int might match the return type of a gcc2
13923 builtin and then its argument prototype would still apply. */
13924 char dlopen ();
13925 int
13926 main ()
13927 {
13928 dlopen ();
13929 ;
13930 return 0;
13931 }
13932 _ACEOF
13933 rm -f conftest.$ac_objext conftest$ac_exeext
13934 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13935 (eval $ac_link) 2>conftest.er1
13936 ac_status=$?
13937 grep -v '^ *+' conftest.er1 >conftest.err
13938 rm -f conftest.er1
13939 cat conftest.err >&5
13940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13941 (exit $ac_status); } &&
13942 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
13943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13944 (eval $ac_try) 2>&5
13945 ac_status=$?
13946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13947 (exit $ac_status); }; } &&
13948 { ac_try='test -s conftest$ac_exeext'
13949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13950 (eval $ac_try) 2>&5
13951 ac_status=$?
13952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13953 (exit $ac_status); }; }; then
13954 ac_cv_lib_dl_dlopen=yes
13955 else
13956 echo "$as_me: failed program was:" >&5
13957 sed 's/^/| /' conftest.$ac_ext >&5
13958
13959 ac_cv_lib_dl_dlopen=no
13960 fi
13961 rm -f conftest.err conftest.$ac_objext \
13962 conftest$ac_exeext conftest.$ac_ext
13963 LIBS=$ac_check_lib_save_LIBS
13964 fi
13965 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13966 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13967 if test $ac_cv_lib_dl_dlopen = yes; then
13968 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13969 else
13970
13971 lt_cv_dlopen="dyld"
13972 lt_cv_dlopen_libs=
13973 lt_cv_dlopen_self=yes
13974
13975 fi
13976
13977 ;;
13978
13979 *)
13980 echo "$as_me:$LINENO: checking for shl_load" >&5
13981 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13982 if test "${ac_cv_func_shl_load+set}" = set; then
13983 echo $ECHO_N "(cached) $ECHO_C" >&6
13984 else
13985 cat >conftest.$ac_ext <<_ACEOF
13986 /* confdefs.h. */
13987 _ACEOF
13988 cat confdefs.h >>conftest.$ac_ext
13989 cat >>conftest.$ac_ext <<_ACEOF
13990 /* end confdefs.h. */
13991 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13992 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13993 #define shl_load innocuous_shl_load
13994
13995 /* System header to define __stub macros and hopefully few prototypes,
13996 which can conflict with char shl_load (); below.
13997 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13998 <limits.h> exists even on freestanding compilers. */
13999
14000 #ifdef __STDC__
14001 # include <limits.h>
14002 #else
14003 # include <assert.h>
14004 #endif
14005
14006 #undef shl_load
14007
14008 /* Override any gcc2 internal prototype to avoid an error. */
14009 #ifdef __cplusplus
14010 extern "C"
14011 {
14012 #endif
14013 /* We use char because int might match the return type of a gcc2
14014 builtin and then its argument prototype would still apply. */
14015 char shl_load ();
14016 /* The GNU C library defines this for functions which it implements
14017 to always fail with ENOSYS. Some functions are actually named
14018 something starting with __ and the normal name is an alias. */
14019 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14020 choke me
14021 #else
14022 char (*f) () = shl_load;
14023 #endif
14024 #ifdef __cplusplus
14025 }
14026 #endif
14027
14028 int
14029 main ()
14030 {
14031 return f != shl_load;
14032 ;
14033 return 0;
14034 }
14035 _ACEOF
14036 rm -f conftest.$ac_objext conftest$ac_exeext
14037 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14038 (eval $ac_link) 2>conftest.er1
14039 ac_status=$?
14040 grep -v '^ *+' conftest.er1 >conftest.err
14041 rm -f conftest.er1
14042 cat conftest.err >&5
14043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14044 (exit $ac_status); } &&
14045 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14047 (eval $ac_try) 2>&5
14048 ac_status=$?
14049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14050 (exit $ac_status); }; } &&
14051 { ac_try='test -s conftest$ac_exeext'
14052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14053 (eval $ac_try) 2>&5
14054 ac_status=$?
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; }; then
14057 ac_cv_func_shl_load=yes
14058 else
14059 echo "$as_me: failed program was:" >&5
14060 sed 's/^/| /' conftest.$ac_ext >&5
14061
14062 ac_cv_func_shl_load=no
14063 fi
14064 rm -f conftest.err conftest.$ac_objext \
14065 conftest$ac_exeext conftest.$ac_ext
14066 fi
14067 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14068 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14069 if test $ac_cv_func_shl_load = yes; then
14070 lt_cv_dlopen="shl_load"
14071 else
14072 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14073 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14074 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14075 echo $ECHO_N "(cached) $ECHO_C" >&6
14076 else
14077 ac_check_lib_save_LIBS=$LIBS
14078 LIBS="-ldld $LIBS"
14079 cat >conftest.$ac_ext <<_ACEOF
14080 /* confdefs.h. */
14081 _ACEOF
14082 cat confdefs.h >>conftest.$ac_ext
14083 cat >>conftest.$ac_ext <<_ACEOF
14084 /* end confdefs.h. */
14085
14086 /* Override any gcc2 internal prototype to avoid an error. */
14087 #ifdef __cplusplus
14088 extern "C"
14089 #endif
14090 /* We use char because int might match the return type of a gcc2
14091 builtin and then its argument prototype would still apply. */
14092 char shl_load ();
14093 int
14094 main ()
14095 {
14096 shl_load ();
14097 ;
14098 return 0;
14099 }
14100 _ACEOF
14101 rm -f conftest.$ac_objext conftest$ac_exeext
14102 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14103 (eval $ac_link) 2>conftest.er1
14104 ac_status=$?
14105 grep -v '^ *+' conftest.er1 >conftest.err
14106 rm -f conftest.er1
14107 cat conftest.err >&5
14108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14109 (exit $ac_status); } &&
14110 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14111 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14112 (eval $ac_try) 2>&5
14113 ac_status=$?
14114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14115 (exit $ac_status); }; } &&
14116 { ac_try='test -s conftest$ac_exeext'
14117 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14118 (eval $ac_try) 2>&5
14119 ac_status=$?
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); }; }; then
14122 ac_cv_lib_dld_shl_load=yes
14123 else
14124 echo "$as_me: failed program was:" >&5
14125 sed 's/^/| /' conftest.$ac_ext >&5
14126
14127 ac_cv_lib_dld_shl_load=no
14128 fi
14129 rm -f conftest.err conftest.$ac_objext \
14130 conftest$ac_exeext conftest.$ac_ext
14131 LIBS=$ac_check_lib_save_LIBS
14132 fi
14133 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14134 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14135 if test $ac_cv_lib_dld_shl_load = yes; then
14136 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
14137 else
14138 echo "$as_me:$LINENO: checking for dlopen" >&5
14139 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14140 if test "${ac_cv_func_dlopen+set}" = set; then
14141 echo $ECHO_N "(cached) $ECHO_C" >&6
14142 else
14143 cat >conftest.$ac_ext <<_ACEOF
14144 /* confdefs.h. */
14145 _ACEOF
14146 cat confdefs.h >>conftest.$ac_ext
14147 cat >>conftest.$ac_ext <<_ACEOF
14148 /* end confdefs.h. */
14149 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14151 #define dlopen innocuous_dlopen
14152
14153 /* System header to define __stub macros and hopefully few prototypes,
14154 which can conflict with char dlopen (); below.
14155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14156 <limits.h> exists even on freestanding compilers. */
14157
14158 #ifdef __STDC__
14159 # include <limits.h>
14160 #else
14161 # include <assert.h>
14162 #endif
14163
14164 #undef dlopen
14165
14166 /* Override any gcc2 internal prototype to avoid an error. */
14167 #ifdef __cplusplus
14168 extern "C"
14169 {
14170 #endif
14171 /* We use char because int might match the return type of a gcc2
14172 builtin and then its argument prototype would still apply. */
14173 char dlopen ();
14174 /* The GNU C library defines this for functions which it implements
14175 to always fail with ENOSYS. Some functions are actually named
14176 something starting with __ and the normal name is an alias. */
14177 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14178 choke me
14179 #else
14180 char (*f) () = dlopen;
14181 #endif
14182 #ifdef __cplusplus
14183 }
14184 #endif
14185
14186 int
14187 main ()
14188 {
14189 return f != dlopen;
14190 ;
14191 return 0;
14192 }
14193 _ACEOF
14194 rm -f conftest.$ac_objext conftest$ac_exeext
14195 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14196 (eval $ac_link) 2>conftest.er1
14197 ac_status=$?
14198 grep -v '^ *+' conftest.er1 >conftest.err
14199 rm -f conftest.er1
14200 cat conftest.err >&5
14201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14202 (exit $ac_status); } &&
14203 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14205 (eval $ac_try) 2>&5
14206 ac_status=$?
14207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14208 (exit $ac_status); }; } &&
14209 { ac_try='test -s conftest$ac_exeext'
14210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14211 (eval $ac_try) 2>&5
14212 ac_status=$?
14213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14214 (exit $ac_status); }; }; then
14215 ac_cv_func_dlopen=yes
14216 else
14217 echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14219
14220 ac_cv_func_dlopen=no
14221 fi
14222 rm -f conftest.err conftest.$ac_objext \
14223 conftest$ac_exeext conftest.$ac_ext
14224 fi
14225 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14226 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14227 if test $ac_cv_func_dlopen = yes; then
14228 lt_cv_dlopen="dlopen"
14229 else
14230 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14231 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14232 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14233 echo $ECHO_N "(cached) $ECHO_C" >&6
14234 else
14235 ac_check_lib_save_LIBS=$LIBS
14236 LIBS="-ldl $LIBS"
14237 cat >conftest.$ac_ext <<_ACEOF
14238 /* confdefs.h. */
14239 _ACEOF
14240 cat confdefs.h >>conftest.$ac_ext
14241 cat >>conftest.$ac_ext <<_ACEOF
14242 /* end confdefs.h. */
14243
14244 /* Override any gcc2 internal prototype to avoid an error. */
14245 #ifdef __cplusplus
14246 extern "C"
14247 #endif
14248 /* We use char because int might match the return type of a gcc2
14249 builtin and then its argument prototype would still apply. */
14250 char dlopen ();
14251 int
14252 main ()
14253 {
14254 dlopen ();
14255 ;
14256 return 0;
14257 }
14258 _ACEOF
14259 rm -f conftest.$ac_objext conftest$ac_exeext
14260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14261 (eval $ac_link) 2>conftest.er1
14262 ac_status=$?
14263 grep -v '^ *+' conftest.er1 >conftest.err
14264 rm -f conftest.er1
14265 cat conftest.err >&5
14266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14267 (exit $ac_status); } &&
14268 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14270 (eval $ac_try) 2>&5
14271 ac_status=$?
14272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14273 (exit $ac_status); }; } &&
14274 { ac_try='test -s conftest$ac_exeext'
14275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14276 (eval $ac_try) 2>&5
14277 ac_status=$?
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); }; }; then
14280 ac_cv_lib_dl_dlopen=yes
14281 else
14282 echo "$as_me: failed program was:" >&5
14283 sed 's/^/| /' conftest.$ac_ext >&5
14284
14285 ac_cv_lib_dl_dlopen=no
14286 fi
14287 rm -f conftest.err conftest.$ac_objext \
14288 conftest$ac_exeext conftest.$ac_ext
14289 LIBS=$ac_check_lib_save_LIBS
14290 fi
14291 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14292 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14293 if test $ac_cv_lib_dl_dlopen = yes; then
14294 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14295 else
14296 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14297 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14298 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14299 echo $ECHO_N "(cached) $ECHO_C" >&6
14300 else
14301 ac_check_lib_save_LIBS=$LIBS
14302 LIBS="-lsvld $LIBS"
14303 cat >conftest.$ac_ext <<_ACEOF
14304 /* confdefs.h. */
14305 _ACEOF
14306 cat confdefs.h >>conftest.$ac_ext
14307 cat >>conftest.$ac_ext <<_ACEOF
14308 /* end confdefs.h. */
14309
14310 /* Override any gcc2 internal prototype to avoid an error. */
14311 #ifdef __cplusplus
14312 extern "C"
14313 #endif
14314 /* We use char because int might match the return type of a gcc2
14315 builtin and then its argument prototype would still apply. */
14316 char dlopen ();
14317 int
14318 main ()
14319 {
14320 dlopen ();
14321 ;
14322 return 0;
14323 }
14324 _ACEOF
14325 rm -f conftest.$ac_objext conftest$ac_exeext
14326 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14327 (eval $ac_link) 2>conftest.er1
14328 ac_status=$?
14329 grep -v '^ *+' conftest.er1 >conftest.err
14330 rm -f conftest.er1
14331 cat conftest.err >&5
14332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14333 (exit $ac_status); } &&
14334 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14335 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14336 (eval $ac_try) 2>&5
14337 ac_status=$?
14338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14339 (exit $ac_status); }; } &&
14340 { ac_try='test -s conftest$ac_exeext'
14341 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14342 (eval $ac_try) 2>&5
14343 ac_status=$?
14344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14345 (exit $ac_status); }; }; then
14346 ac_cv_lib_svld_dlopen=yes
14347 else
14348 echo "$as_me: failed program was:" >&5
14349 sed 's/^/| /' conftest.$ac_ext >&5
14350
14351 ac_cv_lib_svld_dlopen=no
14352 fi
14353 rm -f conftest.err conftest.$ac_objext \
14354 conftest$ac_exeext conftest.$ac_ext
14355 LIBS=$ac_check_lib_save_LIBS
14356 fi
14357 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14358 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14359 if test $ac_cv_lib_svld_dlopen = yes; then
14360 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14361 else
14362 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14363 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14364 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14365 echo $ECHO_N "(cached) $ECHO_C" >&6
14366 else
14367 ac_check_lib_save_LIBS=$LIBS
14368 LIBS="-ldld $LIBS"
14369 cat >conftest.$ac_ext <<_ACEOF
14370 /* confdefs.h. */
14371 _ACEOF
14372 cat confdefs.h >>conftest.$ac_ext
14373 cat >>conftest.$ac_ext <<_ACEOF
14374 /* end confdefs.h. */
14375
14376 /* Override any gcc2 internal prototype to avoid an error. */
14377 #ifdef __cplusplus
14378 extern "C"
14379 #endif
14380 /* We use char because int might match the return type of a gcc2
14381 builtin and then its argument prototype would still apply. */
14382 char dld_link ();
14383 int
14384 main ()
14385 {
14386 dld_link ();
14387 ;
14388 return 0;
14389 }
14390 _ACEOF
14391 rm -f conftest.$ac_objext conftest$ac_exeext
14392 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14393 (eval $ac_link) 2>conftest.er1
14394 ac_status=$?
14395 grep -v '^ *+' conftest.er1 >conftest.err
14396 rm -f conftest.er1
14397 cat conftest.err >&5
14398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14399 (exit $ac_status); } &&
14400 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
14401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14402 (eval $ac_try) 2>&5
14403 ac_status=$?
14404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14405 (exit $ac_status); }; } &&
14406 { ac_try='test -s conftest$ac_exeext'
14407 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14408 (eval $ac_try) 2>&5
14409 ac_status=$?
14410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14411 (exit $ac_status); }; }; then
14412 ac_cv_lib_dld_dld_link=yes
14413 else
14414 echo "$as_me: failed program was:" >&5
14415 sed 's/^/| /' conftest.$ac_ext >&5
14416
14417 ac_cv_lib_dld_dld_link=no
14418 fi
14419 rm -f conftest.err conftest.$ac_objext \
14420 conftest$ac_exeext conftest.$ac_ext
14421 LIBS=$ac_check_lib_save_LIBS
14422 fi
14423 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14424 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14425 if test $ac_cv_lib_dld_dld_link = yes; then
14426 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14427 fi
14428
14429
14430 fi
14431
14432
14433 fi
14434
14435
14436 fi
14437
14438
14439 fi
14440
14441
14442 fi
14443
14444 ;;
14445 esac
14446
14447 if test "x$lt_cv_dlopen" != xno; then
14448 enable_dlopen=yes
14449 else
14450 enable_dlopen=no
14451 fi
14452
14453 case $lt_cv_dlopen in
14454 dlopen)
14455 save_CPPFLAGS="$CPPFLAGS"
14456 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14457
14458 save_LDFLAGS="$LDFLAGS"
14459 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14460
14461 save_LIBS="$LIBS"
14462 LIBS="$lt_cv_dlopen_libs $LIBS"
14463
14464 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14465 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14466 if test "${lt_cv_dlopen_self+set}" = set; then
14467 echo $ECHO_N "(cached) $ECHO_C" >&6
14468 else
14469 if test "$cross_compiling" = yes; then :
14470 lt_cv_dlopen_self=cross
14471 else
14472 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14473 lt_status=$lt_dlunknown
14474 cat > conftest.$ac_ext <<EOF
14475 #line 14475 "configure"
14476 #include "confdefs.h"
14477
14478 #if HAVE_DLFCN_H
14479 #include <dlfcn.h>
14480 #endif
14481
14482 #include <stdio.h>
14483
14484 #ifdef RTLD_GLOBAL
14485 # define LT_DLGLOBAL RTLD_GLOBAL
14486 #else
14487 # ifdef DL_GLOBAL
14488 # define LT_DLGLOBAL DL_GLOBAL
14489 # else
14490 # define LT_DLGLOBAL 0
14491 # endif
14492 #endif
14493
14494 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14495 find out it does not work in some platform. */
14496 #ifndef LT_DLLAZY_OR_NOW
14497 # ifdef RTLD_LAZY
14498 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14499 # else
14500 # ifdef DL_LAZY
14501 # define LT_DLLAZY_OR_NOW DL_LAZY
14502 # else
14503 # ifdef RTLD_NOW
14504 # define LT_DLLAZY_OR_NOW RTLD_NOW
14505 # else
14506 # ifdef DL_NOW
14507 # define LT_DLLAZY_OR_NOW DL_NOW
14508 # else
14509 # define LT_DLLAZY_OR_NOW 0
14510 # endif
14511 # endif
14512 # endif
14513 # endif
14514 #endif
14515
14516 #ifdef __cplusplus
14517 extern "C" void exit (int);
14518 #endif
14519
14520 void fnord() { int i=42;}
14521 int main ()
14522 {
14523 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14524 int status = $lt_dlunknown;
14525
14526 if (self)
14527 {
14528 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14529 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14530 /* dlclose (self); */
14531 }
14532
14533 exit (status);
14534 }
14535 EOF
14536 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14537 (eval $ac_link) 2>&5
14538 ac_status=$?
14539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14540 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14541 (./conftest; exit; ) 2>/dev/null
14542 lt_status=$?
14543 case x$lt_status in
14544 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14545 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14546 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14547 esac
14548 else :
14549 # compilation failed
14550 lt_cv_dlopen_self=no
14551 fi
14552 fi
14553 rm -fr conftest*
14554
14555
14556 fi
14557 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14558 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14559
14560 if test "x$lt_cv_dlopen_self" = xyes; then
14561 LDFLAGS="$LDFLAGS $link_static_flag"
14562 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14563 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14564 if test "${lt_cv_dlopen_self_static+set}" = set; then
14565 echo $ECHO_N "(cached) $ECHO_C" >&6
14566 else
14567 if test "$cross_compiling" = yes; then :
14568 lt_cv_dlopen_self_static=cross
14569 else
14570 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14571 lt_status=$lt_dlunknown
14572 cat > conftest.$ac_ext <<EOF
14573 #line 14573 "configure"
14574 #include "confdefs.h"
14575
14576 #if HAVE_DLFCN_H
14577 #include <dlfcn.h>
14578 #endif
14579
14580 #include <stdio.h>
14581
14582 #ifdef RTLD_GLOBAL
14583 # define LT_DLGLOBAL RTLD_GLOBAL
14584 #else
14585 # ifdef DL_GLOBAL
14586 # define LT_DLGLOBAL DL_GLOBAL
14587 # else
14588 # define LT_DLGLOBAL 0
14589 # endif
14590 #endif
14591
14592 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14593 find out it does not work in some platform. */
14594 #ifndef LT_DLLAZY_OR_NOW
14595 # ifdef RTLD_LAZY
14596 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14597 # else
14598 # ifdef DL_LAZY
14599 # define LT_DLLAZY_OR_NOW DL_LAZY
14600 # else
14601 # ifdef RTLD_NOW
14602 # define LT_DLLAZY_OR_NOW RTLD_NOW
14603 # else
14604 # ifdef DL_NOW
14605 # define LT_DLLAZY_OR_NOW DL_NOW
14606 # else
14607 # define LT_DLLAZY_OR_NOW 0
14608 # endif
14609 # endif
14610 # endif
14611 # endif
14612 #endif
14613
14614 #ifdef __cplusplus
14615 extern "C" void exit (int);
14616 #endif
14617
14618 void fnord() { int i=42;}
14619 int main ()
14620 {
14621 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14622 int status = $lt_dlunknown;
14623
14624 if (self)
14625 {
14626 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14627 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14628 /* dlclose (self); */
14629 }
14630
14631 exit (status);
14632 }
14633 EOF
14634 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14635 (eval $ac_link) 2>&5
14636 ac_status=$?
14637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14638 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14639 (./conftest; exit; ) 2>/dev/null
14640 lt_status=$?
14641 case x$lt_status in
14642 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14643 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14644 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14645 esac
14646 else :
14647 # compilation failed
14648 lt_cv_dlopen_self_static=no
14649 fi
14650 fi
14651 rm -fr conftest*
14652
14653
14654 fi
14655 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14656 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14657 fi
14658
14659 CPPFLAGS="$save_CPPFLAGS"
14660 LDFLAGS="$save_LDFLAGS"
14661 LIBS="$save_LIBS"
14662 ;;
14663 esac
14664
14665 case $lt_cv_dlopen_self in
14666 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14667 *) enable_dlopen_self=unknown ;;
14668 esac
14669
14670 case $lt_cv_dlopen_self_static in
14671 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14672 *) enable_dlopen_self_static=unknown ;;
14673 esac
14674 fi
14675
14676
14677 # The else clause should only fire when bootstrapping the
14678 # libtool distribution, otherwise you forgot to ship ltmain.sh
14679 # with your package, and you will get complaints that there are
14680 # no rules to generate ltmain.sh.
14681 if test -f "$ltmain"; then
14682 # See if we are running on zsh, and set the options which allow our commands through
14683 # without removal of \ escapes.
14684 if test -n "${ZSH_VERSION+set}" ; then
14685 setopt NO_GLOB_SUBST
14686 fi
14687 # Now quote all the things that may contain metacharacters while being
14688 # careful not to overquote the AC_SUBSTed values. We take copies of the
14689 # variables and quote the copies for generation of the libtool script.
14690 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14691 SED SHELL STRIP \
14692 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14693 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14694 deplibs_check_method reload_flag reload_cmds need_locks \
14695 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14696 lt_cv_sys_global_symbol_to_c_name_address \
14697 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14698 old_postinstall_cmds old_postuninstall_cmds \
14699 compiler_CXX \
14700 CC_CXX \
14701 LD_CXX \
14702 lt_prog_compiler_wl_CXX \
14703 lt_prog_compiler_pic_CXX \
14704 lt_prog_compiler_static_CXX \
14705 lt_prog_compiler_no_builtin_flag_CXX \
14706 export_dynamic_flag_spec_CXX \
14707 thread_safe_flag_spec_CXX \
14708 whole_archive_flag_spec_CXX \
14709 enable_shared_with_static_runtimes_CXX \
14710 old_archive_cmds_CXX \
14711 old_archive_from_new_cmds_CXX \
14712 predep_objects_CXX \
14713 postdep_objects_CXX \
14714 predeps_CXX \
14715 postdeps_CXX \
14716 compiler_lib_search_path_CXX \
14717 archive_cmds_CXX \
14718 archive_expsym_cmds_CXX \
14719 postinstall_cmds_CXX \
14720 postuninstall_cmds_CXX \
14721 old_archive_from_expsyms_cmds_CXX \
14722 allow_undefined_flag_CXX \
14723 no_undefined_flag_CXX \
14724 export_symbols_cmds_CXX \
14725 hardcode_libdir_flag_spec_CXX \
14726 hardcode_libdir_flag_spec_ld_CXX \
14727 hardcode_libdir_separator_CXX \
14728 hardcode_automatic_CXX \
14729 module_cmds_CXX \
14730 module_expsym_cmds_CXX \
14731 lt_cv_prog_compiler_c_o_CXX \
14732 exclude_expsyms_CXX \
14733 include_expsyms_CXX; do
14734
14735 case $var in
14736 old_archive_cmds_CXX | \
14737 old_archive_from_new_cmds_CXX | \
14738 archive_cmds_CXX | \
14739 archive_expsym_cmds_CXX | \
14740 module_cmds_CXX | \
14741 module_expsym_cmds_CXX | \
14742 old_archive_from_expsyms_cmds_CXX | \
14743 export_symbols_cmds_CXX | \
14744 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14745 postinstall_cmds | postuninstall_cmds | \
14746 old_postinstall_cmds | old_postuninstall_cmds | \
14747 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14748 # Double-quote double-evaled strings.
14749 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14750 ;;
14751 *)
14752 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14753 ;;
14754 esac
14755 done
14756
14757 case $lt_echo in
14758 *'\$0 --fallback-echo"')
14759 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14760 ;;
14761 esac
14762
14763 cfgfile="$ofile"
14764
14765 cat <<__EOF__ >> "$cfgfile"
14766 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
14767
14768 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14769
14770 # Shell to use when invoking shell scripts.
14771 SHELL=$lt_SHELL
14772
14773 # Whether or not to build shared libraries.
14774 build_libtool_libs=$enable_shared
14775
14776 # Whether or not to build static libraries.
14777 build_old_libs=$enable_static
14778
14779 # Whether or not to add -lc for building shared libraries.
14780 build_libtool_need_lc=$archive_cmds_need_lc_CXX
14781
14782 # Whether or not to disallow shared libs when runtime libs are static
14783 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
14784
14785 # Whether or not to optimize for fast installation.
14786 fast_install=$enable_fast_install
14787
14788 # The host system.
14789 host_alias=$host_alias
14790 host=$host
14791
14792 # An echo program that does not interpret backslashes.
14793 echo=$lt_echo
14794
14795 # The archiver.
14796 AR=$lt_AR
14797 AR_FLAGS=$lt_AR_FLAGS
14798
14799 # A C compiler.
14800 LTCC=$lt_LTCC
14801
14802 # A language-specific compiler.
14803 CC=$lt_compiler_CXX
14804
14805 # Is the compiler the GNU C compiler?
14806 with_gcc=$GCC_CXX
14807
14808 # An ERE matcher.
14809 EGREP=$lt_EGREP
14810
14811 # The linker used to build libraries.
14812 LD=$lt_LD_CXX
14813
14814 # Whether we need hard or soft links.
14815 LN_S=$lt_LN_S
14816
14817 # A BSD-compatible nm program.
14818 NM=$lt_NM
14819
14820 # A symbol stripping program
14821 STRIP=$lt_STRIP
14822
14823 # Used to examine libraries when file_magic_cmd begins "file"
14824 MAGIC_CMD=$MAGIC_CMD
14825
14826 # Used on cygwin: DLL creation program.
14827 DLLTOOL="$DLLTOOL"
14828
14829 # Used on cygwin: object dumper.
14830 OBJDUMP="$OBJDUMP"
14831
14832 # Used on cygwin: assembler.
14833 AS="$AS"
14834
14835 # The name of the directory that contains temporary libtool files.
14836 objdir=$objdir
14837
14838 # How to create reloadable object files.
14839 reload_flag=$lt_reload_flag
14840 reload_cmds=$lt_reload_cmds
14841
14842 # How to pass a linker flag through the compiler.
14843 wl=$lt_lt_prog_compiler_wl_CXX
14844
14845 # Object file suffix (normally "o").
14846 objext="$ac_objext"
14847
14848 # Old archive suffix (normally "a").
14849 libext="$libext"
14850
14851 # Shared library suffix (normally ".so").
14852 shrext_cmds='$shrext_cmds'
14853
14854 # Executable file suffix (normally "").
14855 exeext="$exeext"
14856
14857 # Additional compiler flags for building library objects.
14858 pic_flag=$lt_lt_prog_compiler_pic_CXX
14859 pic_mode=$pic_mode
14860
14861 # What is the maximum length of a command?
14862 max_cmd_len=$lt_cv_sys_max_cmd_len
14863
14864 # Does compiler simultaneously support -c and -o options?
14865 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
14866
14867 # Must we lock files when doing compilation ?
14868 need_locks=$lt_need_locks
14869
14870 # Do we need the lib prefix for modules?
14871 need_lib_prefix=$need_lib_prefix
14872
14873 # Do we need a version for libraries?
14874 need_version=$need_version
14875
14876 # Whether dlopen is supported.
14877 dlopen_support=$enable_dlopen
14878
14879 # Whether dlopen of programs is supported.
14880 dlopen_self=$enable_dlopen_self
14881
14882 # Whether dlopen of statically linked programs is supported.
14883 dlopen_self_static=$enable_dlopen_self_static
14884
14885 # Compiler flag to prevent dynamic linking.
14886 link_static_flag=$lt_lt_prog_compiler_static_CXX
14887
14888 # Compiler flag to turn off builtin functions.
14889 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
14890
14891 # Compiler flag to allow reflexive dlopens.
14892 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
14893
14894 # Compiler flag to generate shared objects directly from archives.
14895 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
14896
14897 # Compiler flag to generate thread-safe objects.
14898 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
14899
14900 # Library versioning type.
14901 version_type=$version_type
14902
14903 # Format of library name prefix.
14904 libname_spec=$lt_libname_spec
14905
14906 # List of archive names. First name is the real one, the rest are links.
14907 # The last name is the one that the linker finds with -lNAME.
14908 library_names_spec=$lt_library_names_spec
14909
14910 # The coded name of the library, if different from the real name.
14911 soname_spec=$lt_soname_spec
14912
14913 # Commands used to build and install an old-style archive.
14914 RANLIB=$lt_RANLIB
14915 old_archive_cmds=$lt_old_archive_cmds_CXX
14916 old_postinstall_cmds=$lt_old_postinstall_cmds
14917 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14918
14919 # Create an old-style archive from a shared archive.
14920 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
14921
14922 # Create a temporary old-style archive to link instead of a shared archive.
14923 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
14924
14925 # Commands used to build and install a shared archive.
14926 archive_cmds=$lt_archive_cmds_CXX
14927 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
14928 postinstall_cmds=$lt_postinstall_cmds
14929 postuninstall_cmds=$lt_postuninstall_cmds
14930
14931 # Commands used to build a loadable module (assumed same as above if empty)
14932 module_cmds=$lt_module_cmds_CXX
14933 module_expsym_cmds=$lt_module_expsym_cmds_CXX
14934
14935 # Commands to strip libraries.
14936 old_striplib=$lt_old_striplib
14937 striplib=$lt_striplib
14938
14939 # Dependencies to place before the objects being linked to create a
14940 # shared library.
14941 predep_objects=$lt_predep_objects_CXX
14942
14943 # Dependencies to place after the objects being linked to create a
14944 # shared library.
14945 postdep_objects=$lt_postdep_objects_CXX
14946
14947 # Dependencies to place before the objects being linked to create a
14948 # shared library.
14949 predeps=$lt_predeps_CXX
14950
14951 # Dependencies to place after the objects being linked to create a
14952 # shared library.
14953 postdeps=$lt_postdeps_CXX
14954
14955 # The library search path used internally by the compiler when linking
14956 # a shared library.
14957 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
14958
14959 # Method to check whether dependent libraries are shared objects.
14960 deplibs_check_method=$lt_deplibs_check_method
14961
14962 # Command to use when deplibs_check_method == file_magic.
14963 file_magic_cmd=$lt_file_magic_cmd
14964
14965 # Flag that allows shared libraries with undefined symbols to be built.
14966 allow_undefined_flag=$lt_allow_undefined_flag_CXX
14967
14968 # Flag that forces no undefined symbols.
14969 no_undefined_flag=$lt_no_undefined_flag_CXX
14970
14971 # Commands used to finish a libtool library installation in a directory.
14972 finish_cmds=$lt_finish_cmds
14973
14974 # Same as above, but a single script fragment to be evaled but not shown.
14975 finish_eval=$lt_finish_eval
14976
14977 # Take the output of nm and produce a listing of raw symbols and C names.
14978 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14979
14980 # Transform the output of nm in a proper C declaration
14981 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14982
14983 # Transform the output of nm in a C name address pair
14984 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14985
14986 # This is the shared library runtime path variable.
14987 runpath_var=$runpath_var
14988
14989 # This is the shared library path variable.
14990 shlibpath_var=$shlibpath_var
14991
14992 # Is shlibpath searched before the hard-coded library search path?
14993 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14994
14995 # How to hardcode a shared library path into an executable.
14996 hardcode_action=$hardcode_action_CXX
14997
14998 # Whether we should hardcode library paths into libraries.
14999 hardcode_into_libs=$hardcode_into_libs
15000
15001 # Flag to hardcode \$libdir into a binary during linking.
15002 # This must work even if \$libdir does not exist.
15003 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
15004
15005 # If ld is used when linking, flag to hardcode \$libdir into
15006 # a binary during linking. This must work even if \$libdir does
15007 # not exist.
15008 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
15009
15010 # Whether we need a single -rpath flag with a separated argument.
15011 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
15012
15013 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15014 # resulting binary.
15015 hardcode_direct=$hardcode_direct_CXX
15016
15017 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15018 # resulting binary.
15019 hardcode_minus_L=$hardcode_minus_L_CXX
15020
15021 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15022 # the resulting binary.
15023 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
15024
15025 # Set to yes if building a shared library automatically hardcodes DIR into the library
15026 # and all subsequent libraries and executables linked against it.
15027 hardcode_automatic=$hardcode_automatic_CXX
15028
15029 # Variables whose values should be saved in libtool wrapper scripts and
15030 # restored at relink time.
15031 variables_saved_for_relink="$variables_saved_for_relink"
15032
15033 # Whether libtool must link a program against all its dependency libraries.
15034 link_all_deplibs=$link_all_deplibs_CXX
15035
15036 # Compile-time system search path for libraries
15037 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15038
15039 # Run-time system search path for libraries
15040 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15041
15042 # Fix the shell variable \$srcfile for the compiler.
15043 fix_srcfile_path="$fix_srcfile_path_CXX"
15044
15045 # Set to yes if exported symbols are required.
15046 always_export_symbols=$always_export_symbols_CXX
15047
15048 # The commands to list exported symbols.
15049 export_symbols_cmds=$lt_export_symbols_cmds_CXX
15050
15051 # The commands to extract the exported symbol list from a shared archive.
15052 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15053
15054 # Symbols that should not be listed in the preloaded symbols.
15055 exclude_expsyms=$lt_exclude_expsyms_CXX
15056
15057 # Symbols that must always be exported.
15058 include_expsyms=$lt_include_expsyms_CXX
15059
15060 # ### END LIBTOOL TAG CONFIG: $tagname
15061
15062 __EOF__
15063
15064
15065 else
15066 # If there is no Makefile yet, we rely on a make rule to execute
15067 # `config.status --recheck' to rerun these tests and create the
15068 # libtool script then.
15069 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15070 if test -f "$ltmain_in"; then
15071 test -f Makefile && make "$ltmain"
15072 fi
15073 fi
15074
15075
15076 ac_ext=c
15077 ac_cpp='$CPP $CPPFLAGS'
15078 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15079 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15080 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15081
15082 CC=$lt_save_CC
15083 LDCXX=$LD
15084 LD=$lt_save_LD
15085 GCC=$lt_save_GCC
15086 with_gnu_ldcxx=$with_gnu_ld
15087 with_gnu_ld=$lt_save_with_gnu_ld
15088 lt_cv_path_LDCXX=$lt_cv_path_LD
15089 lt_cv_path_LD=$lt_save_path_LD
15090 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
15091 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
15092
15093 else
15094 tagname=""
15095 fi
15096 ;;
15097
15098 F77)
15099 if test -n "$F77" && test "X$F77" != "Xno"; then
15100
15101 ac_ext=f
15102 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
15103 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15104 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
15105
15106
15107 archive_cmds_need_lc_F77=no
15108 allow_undefined_flag_F77=
15109 always_export_symbols_F77=no
15110 archive_expsym_cmds_F77=
15111 export_dynamic_flag_spec_F77=
15112 hardcode_direct_F77=no
15113 hardcode_libdir_flag_spec_F77=
15114 hardcode_libdir_flag_spec_ld_F77=
15115 hardcode_libdir_separator_F77=
15116 hardcode_minus_L_F77=no
15117 hardcode_automatic_F77=no
15118 module_cmds_F77=
15119 module_expsym_cmds_F77=
15120 link_all_deplibs_F77=unknown
15121 old_archive_cmds_F77=$old_archive_cmds
15122 no_undefined_flag_F77=
15123 whole_archive_flag_spec_F77=
15124 enable_shared_with_static_runtimes_F77=no
15125
15126 # Source file extension for f77 test sources.
15127 ac_ext=f
15128
15129 # Object file extension for compiled f77 test sources.
15130 objext=o
15131 objext_F77=$objext
15132
15133 # Code to be used in simple compile tests
15134 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
15135
15136 # Code to be used in simple link tests
15137 lt_simple_link_test_code=" program t\n end\n"
15138
15139 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15140
15141 # If no C compiler was specified, use CC.
15142 LTCC=${LTCC-"$CC"}
15143
15144 # Allow CC to be a program name with arguments.
15145 compiler=$CC
15146
15147
15148 # Allow CC to be a program name with arguments.
15149 lt_save_CC="$CC"
15150 CC=${F77-"f77"}
15151 compiler=$CC
15152 compiler_F77=$CC
15153 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15154
15155 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15156 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15157 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15158 echo "${ECHO_T}$can_build_shared" >&6
15159
15160 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15161 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15162 test "$can_build_shared" = "no" && enable_shared=no
15163
15164 # On AIX, shared libraries and static libraries use the same namespace, and
15165 # are all built from PIC.
15166 case "$host_os" in
15167 aix3*)
15168 test "$enable_shared" = yes && enable_static=no
15169 if test -n "$RANLIB"; then
15170 archive_cmds="$archive_cmds~\$RANLIB \$lib"
15171 postinstall_cmds='$RANLIB $lib'
15172 fi
15173 ;;
15174 aix4* | aix5*)
15175 test "$enable_shared" = yes && enable_static=no
15176 ;;
15177 esac
15178 echo "$as_me:$LINENO: result: $enable_shared" >&5
15179 echo "${ECHO_T}$enable_shared" >&6
15180
15181 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15182 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15183 # Make sure either enable_shared or enable_static is yes.
15184 test "$enable_shared" = yes || enable_static=yes
15185 echo "$as_me:$LINENO: result: $enable_static" >&5
15186 echo "${ECHO_T}$enable_static" >&6
15187
15188 test "$ld_shlibs_F77" = no && can_build_shared=no
15189
15190 GCC_F77="$G77"
15191 LD_F77="$LD"
15192
15193 lt_prog_compiler_wl_F77=
15194 lt_prog_compiler_pic_F77=
15195 lt_prog_compiler_static_F77=
15196
15197 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
15198 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
15199
15200 if test "$GCC" = yes; then
15201 lt_prog_compiler_wl_F77='-Wl,'
15202 lt_prog_compiler_static_F77='-static'
15203
15204 case $host_os in
15205 aix*)
15206 # All AIX code is PIC.
15207 if test "$host_cpu" = ia64; then
15208 # AIX 5 now supports IA64 processor
15209 lt_prog_compiler_static_F77='-Bstatic'
15210 fi
15211 ;;
15212
15213 amigaos*)
15214 # FIXME: we need at least 68020 code to build shared libraries, but
15215 # adding the `-m68020' flag to GCC prevents building anything better,
15216 # like `-m68040'.
15217 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
15218 ;;
15219
15220 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15221 # PIC is the default for these OSes.
15222 ;;
15223
15224 mingw* | pw32* | os2*)
15225 # This hack is so that the source file can tell whether it is being
15226 # built for inclusion in a dll (and should export symbols for example).
15227 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15228 ;;
15229
15230 darwin* | rhapsody*)
15231 # PIC is the default on this platform
15232 # Common symbols not allowed in MH_DYLIB files
15233 lt_prog_compiler_pic_F77='-fno-common'
15234 ;;
15235
15236 msdosdjgpp*)
15237 # Just because we use GCC doesn't mean we suddenly get shared libraries
15238 # on systems that don't support them.
15239 lt_prog_compiler_can_build_shared_F77=no
15240 enable_shared=no
15241 ;;
15242
15243 sysv4*MP*)
15244 if test -d /usr/nec; then
15245 lt_prog_compiler_pic_F77=-Kconform_pic
15246 fi
15247 ;;
15248
15249 hpux*)
15250 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15251 # not for PA HP-UX.
15252 case "$host_cpu" in
15253 hppa*64*|ia64*)
15254 # +Z the default
15255 ;;
15256 *)
15257 lt_prog_compiler_pic_F77='-fPIC'
15258 ;;
15259 esac
15260 ;;
15261
15262 *)
15263 lt_prog_compiler_pic_F77='-fPIC'
15264 ;;
15265 esac
15266 else
15267 # PORTME Check for flag to pass linker flags through the system compiler.
15268 case $host_os in
15269 aix*)
15270 lt_prog_compiler_wl_F77='-Wl,'
15271 if test "$host_cpu" = ia64; then
15272 # AIX 5 now supports IA64 processor
15273 lt_prog_compiler_static_F77='-Bstatic'
15274 else
15275 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
15276 fi
15277 ;;
15278
15279 mingw* | pw32* | os2*)
15280 # This hack is so that the source file can tell whether it is being
15281 # built for inclusion in a dll (and should export symbols for example).
15282 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
15283 ;;
15284
15285 hpux9* | hpux10* | hpux11*)
15286 lt_prog_compiler_wl_F77='-Wl,'
15287 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15288 # not for PA HP-UX.
15289 case "$host_cpu" in
15290 hppa*64*|ia64*)
15291 # +Z the default
15292 ;;
15293 *)
15294 lt_prog_compiler_pic_F77='+Z'
15295 ;;
15296 esac
15297 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15298 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
15299 ;;
15300
15301 irix5* | irix6* | nonstopux*)
15302 lt_prog_compiler_wl_F77='-Wl,'
15303 # PIC (with -KPIC) is the default.
15304 lt_prog_compiler_static_F77='-non_shared'
15305 ;;
15306
15307 newsos6)
15308 lt_prog_compiler_pic_F77='-KPIC'
15309 lt_prog_compiler_static_F77='-Bstatic'
15310 ;;
15311
15312 linux*)
15313 case $CC in
15314 icc* | ecc*)
15315 lt_prog_compiler_wl_F77='-Wl,'
15316 lt_prog_compiler_pic_F77='-KPIC'
15317 lt_prog_compiler_static_F77='-static'
15318 ;;
15319 ccc*)
15320 lt_prog_compiler_wl_F77='-Wl,'
15321 # All Alpha code is PIC.
15322 lt_prog_compiler_static_F77='-non_shared'
15323 ;;
15324 esac
15325 ;;
15326
15327 osf3* | osf4* | osf5*)
15328 lt_prog_compiler_wl_F77='-Wl,'
15329 # All OSF/1 code is PIC.
15330 lt_prog_compiler_static_F77='-non_shared'
15331 ;;
15332
15333 sco3.2v5*)
15334 lt_prog_compiler_pic_F77='-Kpic'
15335 lt_prog_compiler_static_F77='-dn'
15336 ;;
15337
15338 solaris*)
15339 lt_prog_compiler_wl_F77='-Wl,'
15340 lt_prog_compiler_pic_F77='-KPIC'
15341 lt_prog_compiler_static_F77='-Bstatic'
15342 ;;
15343
15344 sunos4*)
15345 lt_prog_compiler_wl_F77='-Qoption ld '
15346 lt_prog_compiler_pic_F77='-PIC'
15347 lt_prog_compiler_static_F77='-Bstatic'
15348 ;;
15349
15350 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
15351 lt_prog_compiler_wl_F77='-Wl,'
15352 lt_prog_compiler_pic_F77='-KPIC'
15353 lt_prog_compiler_static_F77='-Bstatic'
15354 ;;
15355
15356 sysv4*MP*)
15357 if test -d /usr/nec ;then
15358 lt_prog_compiler_pic_F77='-Kconform_pic'
15359 lt_prog_compiler_static_F77='-Bstatic'
15360 fi
15361 ;;
15362
15363 uts4*)
15364 lt_prog_compiler_pic_F77='-pic'
15365 lt_prog_compiler_static_F77='-Bstatic'
15366 ;;
15367
15368 *)
15369 lt_prog_compiler_can_build_shared_F77=no
15370 ;;
15371 esac
15372 fi
15373
15374 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
15375 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
15376
15377 #
15378 # Check to make sure the PIC flag actually works.
15379 #
15380 if test -n "$lt_prog_compiler_pic_F77"; then
15381
15382 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
15383 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
15384 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
15385 echo $ECHO_N "(cached) $ECHO_C" >&6
15386 else
15387 lt_prog_compiler_pic_works_F77=no
15388 ac_outfile=conftest.$ac_objext
15389 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15390 lt_compiler_flag="$lt_prog_compiler_pic_F77"
15391 # Insert the option either (1) after the last *FLAGS variable, or
15392 # (2) before a word containing "conftest.", or (3) at the end.
15393 # Note that $ac_compile itself does not contain backslashes and begins
15394 # with a dollar sign (not a hyphen), so the echo should work correctly.
15395 # The option is referenced via a variable to avoid confusing sed.
15396 lt_compile=`echo "$ac_compile" | $SED \
15397 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15398 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15399 -e 's:$: $lt_compiler_flag:'`
15400 (eval echo "\"\$as_me:15400: $lt_compile\"" >&5)
15401 (eval "$lt_compile" 2>conftest.err)
15402 ac_status=$?
15403 cat conftest.err >&5
15404 echo "$as_me:15404: \$? = $ac_status" >&5
15405 if (exit $ac_status) && test -s "$ac_outfile"; then
15406 # The compiler can only warn and ignore the option if not recognized
15407 # So say no if there are warnings
15408 if test ! -s conftest.err; then
15409 lt_prog_compiler_pic_works_F77=yes
15410 fi
15411 fi
15412 $rm conftest*
15413
15414 fi
15415 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
15416 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
15417
15418 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
15419 case $lt_prog_compiler_pic_F77 in
15420 "" | " "*) ;;
15421 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
15422 esac
15423 else
15424 lt_prog_compiler_pic_F77=
15425 lt_prog_compiler_can_build_shared_F77=no
15426 fi
15427
15428 fi
15429 case "$host_os" in
15430 # For platforms which do not support PIC, -DPIC is meaningless:
15431 *djgpp*)
15432 lt_prog_compiler_pic_F77=
15433 ;;
15434 *)
15435 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
15436 ;;
15437 esac
15438
15439 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
15440 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
15441 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
15442 echo $ECHO_N "(cached) $ECHO_C" >&6
15443 else
15444 lt_cv_prog_compiler_c_o_F77=no
15445 $rm -r conftest 2>/dev/null
15446 mkdir conftest
15447 cd conftest
15448 mkdir out
15449 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
15450
15451 lt_compiler_flag="-o out/conftest2.$ac_objext"
15452 # Insert the option either (1) after the last *FLAGS variable, or
15453 # (2) before a word containing "conftest.", or (3) at the end.
15454 # Note that $ac_compile itself does not contain backslashes and begins
15455 # with a dollar sign (not a hyphen), so the echo should work correctly.
15456 lt_compile=`echo "$ac_compile" | $SED \
15457 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
15458 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15459 -e 's:$: $lt_compiler_flag:'`
15460 (eval echo "\"\$as_me:15460: $lt_compile\"" >&5)
15461 (eval "$lt_compile" 2>out/conftest.err)
15462 ac_status=$?
15463 cat out/conftest.err >&5
15464 echo "$as_me:15464: \$? = $ac_status" >&5
15465 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15466 then
15467 # The compiler can only warn and ignore the option if not recognized
15468 # So say no if there are warnings
15469 if test ! -s out/conftest.err; then
15470 lt_cv_prog_compiler_c_o_F77=yes
15471 fi
15472 fi
15473 chmod u+w .
15474 $rm conftest*
15475 # SGI C++ compiler will create directory out/ii_files/ for
15476 # template instantiation
15477 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
15478 $rm out/* && rmdir out
15479 cd ..
15480 rmdir conftest
15481 $rm conftest*
15482
15483 fi
15484 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
15485 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
15486
15487
15488 hard_links="nottested"
15489 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
15490 # do not overwrite the value of need_locks provided by the user
15491 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
15492 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
15493 hard_links=yes
15494 $rm conftest*
15495 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15496 touch conftest.a
15497 ln conftest.a conftest.b 2>&5 || hard_links=no
15498 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15499 echo "$as_me:$LINENO: result: $hard_links" >&5
15500 echo "${ECHO_T}$hard_links" >&6
15501 if test "$hard_links" = no; then
15502 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15503 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15504 need_locks=warn
15505 fi
15506 else
15507 need_locks=no
15508 fi
15509
15510 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15511 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15512
15513 runpath_var=
15514 allow_undefined_flag_F77=
15515 enable_shared_with_static_runtimes_F77=no
15516 archive_cmds_F77=
15517 archive_expsym_cmds_F77=
15518 old_archive_From_new_cmds_F77=
15519 old_archive_from_expsyms_cmds_F77=
15520 export_dynamic_flag_spec_F77=
15521 whole_archive_flag_spec_F77=
15522 thread_safe_flag_spec_F77=
15523 hardcode_libdir_flag_spec_F77=
15524 hardcode_libdir_flag_spec_ld_F77=
15525 hardcode_libdir_separator_F77=
15526 hardcode_direct_F77=no
15527 hardcode_minus_L_F77=no
15528 hardcode_shlibpath_var_F77=unsupported
15529 link_all_deplibs_F77=unknown
15530 hardcode_automatic_F77=no
15531 module_cmds_F77=
15532 module_expsym_cmds_F77=
15533 always_export_symbols_F77=no
15534 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15535 # include_expsyms should be a list of space-separated symbols to be *always*
15536 # included in the symbol list
15537 include_expsyms_F77=
15538 # exclude_expsyms can be an extended regexp of symbols to exclude
15539 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15540 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15541 # as well as any symbol that contains `d'.
15542 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
15543 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15544 # platforms (ab)use it in PIC code, but their linkers get confused if
15545 # the symbol is explicitly referenced. Since portable code cannot
15546 # rely on this symbol name, it's probably fine to never include it in
15547 # preloaded symbol tables.
15548 extract_expsyms_cmds=
15549
15550 case $host_os in
15551 cygwin* | mingw* | pw32*)
15552 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15553 # When not using gcc, we currently assume that we are using
15554 # Microsoft Visual C++.
15555 if test "$GCC" != yes; then
15556 with_gnu_ld=no
15557 fi
15558 ;;
15559 openbsd*)
15560 with_gnu_ld=no
15561 ;;
15562 esac
15563
15564 ld_shlibs_F77=yes
15565 if test "$with_gnu_ld" = yes; then
15566 # If archive_cmds runs LD, not CC, wlarc should be empty
15567 wlarc='${wl}'
15568
15569 # See if GNU ld supports shared libraries.
15570 case $host_os in
15571 aix3* | aix4* | aix5*)
15572 # On AIX/PPC, the GNU linker is very broken
15573 if test "$host_cpu" != ia64; then
15574 ld_shlibs_F77=no
15575 cat <<EOF 1>&2
15576
15577 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15578 *** to be unable to reliably create shared libraries on AIX.
15579 *** Therefore, libtool is disabling shared libraries support. If you
15580 *** really care for shared libraries, you may want to modify your PATH
15581 *** so that a non-GNU linker is found, and then restart.
15582
15583 EOF
15584 fi
15585 ;;
15586
15587 amigaos*)
15588 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)'
15589 hardcode_libdir_flag_spec_F77='-L$libdir'
15590 hardcode_minus_L_F77=yes
15591
15592 # Samuel A. Falvo II <[email protected]> reports
15593 # that the semantics of dynamic libraries on AmigaOS, at least up
15594 # to version 4, is to share data among multiple programs linked
15595 # with the same dynamic library. Since this doesn't match the
15596 # behavior of shared libraries on other platforms, we can't use
15597 # them.
15598 ld_shlibs_F77=no
15599 ;;
15600
15601 beos*)
15602 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15603 allow_undefined_flag_F77=unsupported
15604 # Joseph Beckenbach <[email protected]> says some releases of gcc
15605 # support --undefined. This deserves some investigation. FIXME
15606 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15607 else
15608 ld_shlibs_F77=no
15609 fi
15610 ;;
15611
15612 cygwin* | mingw* | pw32*)
15613 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
15614 # as there is no search path for DLLs.
15615 hardcode_libdir_flag_spec_F77='-L$libdir'
15616 allow_undefined_flag_F77=unsupported
15617 always_export_symbols_F77=no
15618 enable_shared_with_static_runtimes_F77=yes
15619 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
15620
15621 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15622 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15623 # If the export-symbols file already is a .def file (1st line
15624 # is EXPORTS), use it as is; otherwise, prepend...
15625 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15626 cp $export_symbols $output_objdir/$soname.def;
15627 else
15628 echo EXPORTS > $output_objdir/$soname.def;
15629 cat $export_symbols >> $output_objdir/$soname.def;
15630 fi~
15631 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15632 else
15633 ld_shlibs=no
15634 fi
15635 ;;
15636
15637 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
15638 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15639 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
15640 wlarc=
15641 else
15642 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15643 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15644 fi
15645 ;;
15646
15647 solaris* | sysv5*)
15648 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
15649 ld_shlibs_F77=no
15650 cat <<EOF 1>&2
15651
15652 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
15653 *** create shared libraries on Solaris systems. Therefore, libtool
15654 *** is disabling shared libraries support. We urge you to upgrade GNU
15655 *** binutils to release 2.9.1 or newer. Another option is to modify
15656 *** your PATH or compiler configuration so that the native linker is
15657 *** used, and then restart.
15658
15659 EOF
15660 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15661 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15662 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15663 else
15664 ld_shlibs_F77=no
15665 fi
15666 ;;
15667
15668 sunos4*)
15669 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
15670 wlarc=
15671 hardcode_direct_F77=yes
15672 hardcode_shlibpath_var_F77=no
15673 ;;
15674
15675 linux*)
15676 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15677 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15678 archive_cmds_F77="$tmp_archive_cmds"
15679 supports_anon_versioning=no
15680 case `$LD -v 2>/dev/null` in
15681 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15682 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15683 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15684 *\ 2.11.*) ;; # other 2.11 versions
15685 *) supports_anon_versioning=yes ;;
15686 esac
15687 if test $supports_anon_versioning = yes; then
15688 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
15689 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15690 $echo "local: *; };" >> $output_objdir/$libname.ver~
15691 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15692 else
15693 archive_expsym_cmds_F77="$tmp_archive_cmds"
15694 fi
15695 link_all_deplibs_F77=no
15696 else
15697 ld_shlibs_F77=no
15698 fi
15699 ;;
15700
15701 *)
15702 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
15703 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15704 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15705 else
15706 ld_shlibs_F77=no
15707 fi
15708 ;;
15709 esac
15710
15711 if test "$ld_shlibs_F77" = yes; then
15712 runpath_var=LD_RUN_PATH
15713 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
15714 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
15715 # ancient GNU ld didn't support --whole-archive et. al.
15716 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
15717 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15718 else
15719 whole_archive_flag_spec_F77=
15720 fi
15721 fi
15722 else
15723 # PORTME fill in a description of your system's linker (not GNU ld)
15724 case $host_os in
15725 aix3*)
15726 allow_undefined_flag_F77=unsupported
15727 always_export_symbols_F77=yes
15728 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'
15729 # Note: this linker hardcodes the directories in LIBPATH if there
15730 # are no directories specified by -L.
15731 hardcode_minus_L_F77=yes
15732 if test "$GCC" = yes && test -z "$link_static_flag"; then
15733 # Neither direct hardcoding nor static linking is supported with a
15734 # broken collect2.
15735 hardcode_direct_F77=unsupported
15736 fi
15737 ;;
15738
15739 aix4* | aix5*)
15740 if test "$host_cpu" = ia64; then
15741 # On IA64, the linker does run time linking by default, so we don't
15742 # have to do anything special.
15743 aix_use_runtimelinking=no
15744 exp_sym_flag='-Bexport'
15745 no_entry_flag=""
15746 else
15747 # If we're using GNU nm, then we don't want the "-C" option.
15748 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15749 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
15750 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'
15751 else
15752 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'
15753 fi
15754 aix_use_runtimelinking=no
15755
15756 # Test if we are trying to use run time linking or normal
15757 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15758 # need to do runtime linking.
15759 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15760 for ld_flag in $LDFLAGS; do
15761 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
15762 aix_use_runtimelinking=yes
15763 break
15764 fi
15765 done
15766 esac
15767
15768 exp_sym_flag='-bexport'
15769 no_entry_flag='-bnoentry'
15770 fi
15771
15772 # When large executables or shared objects are built, AIX ld can
15773 # have problems creating the table of contents. If linking a library
15774 # or program results in "error TOC overflow" add -mminimal-toc to
15775 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15776 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15777
15778 archive_cmds_F77=''
15779 hardcode_direct_F77=yes
15780 hardcode_libdir_separator_F77=':'
15781 link_all_deplibs_F77=yes
15782
15783 if test "$GCC" = yes; then
15784 case $host_os in aix4.012|aix4.012.*)
15785 # We only want to do this on AIX 4.2 and lower, the check
15786 # below for broken collect2 doesn't work under 4.3+
15787 collect2name=`${CC} -print-prog-name=collect2`
15788 if test -f "$collect2name" && \
15789 strings "$collect2name" | grep resolve_lib_name >/dev/null
15790 then
15791 # We have reworked collect2
15792 hardcode_direct_F77=yes
15793 else
15794 # We have old collect2
15795 hardcode_direct_F77=unsupported
15796 # It fails to find uninstalled libraries when the uninstalled
15797 # path is not listed in the libpath. Setting hardcode_minus_L
15798 # to unsupported forces relinking
15799 hardcode_minus_L_F77=yes
15800 hardcode_libdir_flag_spec_F77='-L$libdir'
15801 hardcode_libdir_separator_F77=
15802 fi
15803 esac
15804 shared_flag='-shared'
15805 else
15806 # not using gcc
15807 if test "$host_cpu" = ia64; then
15808 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15809 # chokes on -Wl,-G. The following line is correct:
15810 shared_flag='-G'
15811 else
15812 if test "$aix_use_runtimelinking" = yes; then
15813 shared_flag='${wl}-G'
15814 else
15815 shared_flag='${wl}-bM:SRE'
15816 fi
15817 fi
15818 fi
15819
15820 # It seems that -bexpall does not export symbols beginning with
15821 # underscore (_), so it is better to generate a list of symbols to export.
15822 always_export_symbols_F77=yes
15823 if test "$aix_use_runtimelinking" = yes; then
15824 # Warning - without using the other runtime loading flags (-brtl),
15825 # -berok will link without error, but may produce a broken library.
15826 allow_undefined_flag_F77='-berok'
15827 # Determine the default libpath from the value encoded in an empty executable.
15828 cat >conftest.$ac_ext <<_ACEOF
15829 program main
15830
15831 end
15832 _ACEOF
15833 rm -f conftest.$ac_objext conftest$ac_exeext
15834 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15835 (eval $ac_link) 2>conftest.er1
15836 ac_status=$?
15837 grep -v '^ *+' conftest.er1 >conftest.err
15838 rm -f conftest.er1
15839 cat conftest.err >&5
15840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15841 (exit $ac_status); } &&
15842 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15844 (eval $ac_try) 2>&5
15845 ac_status=$?
15846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15847 (exit $ac_status); }; } &&
15848 { ac_try='test -s conftest$ac_exeext'
15849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15850 (eval $ac_try) 2>&5
15851 ac_status=$?
15852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15853 (exit $ac_status); }; }; then
15854
15855 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15856 }'`
15857 # Check for a 64-bit object if we didn't find anything.
15858 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15859 }'`; fi
15860 else
15861 echo "$as_me: failed program was:" >&5
15862 sed 's/^/| /' conftest.$ac_ext >&5
15863
15864 fi
15865 rm -f conftest.err conftest.$ac_objext \
15866 conftest$ac_exeext conftest.$ac_ext
15867 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15868
15869 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15870 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15871 else
15872 if test "$host_cpu" = ia64; then
15873 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
15874 allow_undefined_flag_F77="-z nodefs"
15875 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15876 else
15877 # Determine the default libpath from the value encoded in an empty executable.
15878 cat >conftest.$ac_ext <<_ACEOF
15879 program main
15880
15881 end
15882 _ACEOF
15883 rm -f conftest.$ac_objext conftest$ac_exeext
15884 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15885 (eval $ac_link) 2>conftest.er1
15886 ac_status=$?
15887 grep -v '^ *+' conftest.er1 >conftest.err
15888 rm -f conftest.er1
15889 cat conftest.err >&5
15890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15891 (exit $ac_status); } &&
15892 { ac_try='test -z "$ac_f77_werror_flag" || test ! -s conftest.err'
15893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15894 (eval $ac_try) 2>&5
15895 ac_status=$?
15896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15897 (exit $ac_status); }; } &&
15898 { ac_try='test -s conftest$ac_exeext'
15899 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15900 (eval $ac_try) 2>&5
15901 ac_status=$?
15902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15903 (exit $ac_status); }; }; then
15904
15905 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15906 }'`
15907 # Check for a 64-bit object if we didn't find anything.
15908 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15909 }'`; fi
15910 else
15911 echo "$as_me: failed program was:" >&5
15912 sed 's/^/| /' conftest.$ac_ext >&5
15913
15914 fi
15915 rm -f conftest.err conftest.$ac_objext \
15916 conftest$ac_exeext conftest.$ac_ext
15917 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15918
15919 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
15920 # Warning - without using the other run time loading flags,
15921 # -berok will link without error, but may produce a broken library.
15922 no_undefined_flag_F77=' ${wl}-bernotok'
15923 allow_undefined_flag_F77=' ${wl}-berok'
15924 # -bexpall does not export symbols beginning with underscore (_)
15925 always_export_symbols_F77=yes
15926 # Exported symbols can be pulled into shared objects from archives
15927 whole_archive_flag_spec_F77=' '
15928 archive_cmds_need_lc_F77=yes
15929 # This is similar to how AIX traditionally builds it's shared libraries.
15930 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15931 fi
15932 fi
15933 ;;
15934
15935 amigaos*)
15936 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)'
15937 hardcode_libdir_flag_spec_F77='-L$libdir'
15938 hardcode_minus_L_F77=yes
15939 # see comment about different semantics on the GNU ld section
15940 ld_shlibs_F77=no
15941 ;;
15942
15943 bsdi4*)
15944 export_dynamic_flag_spec_F77=-rdynamic
15945 ;;
15946
15947 cygwin* | mingw* | pw32*)
15948 # When not using gcc, we currently assume that we are using
15949 # Microsoft Visual C++.
15950 # hardcode_libdir_flag_spec is actually meaningless, as there is
15951 # no search path for DLLs.
15952 hardcode_libdir_flag_spec_F77=' '
15953 allow_undefined_flag_F77=unsupported
15954 # Tell ltmain to make .lib files, not .a files.
15955 libext=lib
15956 # Tell ltmain to make .dll files, not .so files.
15957 shrext_cmds=".dll"
15958 # FIXME: Setting linknames here is a bad hack.
15959 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
15960 # The linker will automatically build a .lib file if we build a DLL.
15961 old_archive_From_new_cmds_F77='true'
15962 # FIXME: Should let the user specify the lib program.
15963 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
15964 fix_srcfile_path='`cygpath -w "$srcfile"`'
15965 enable_shared_with_static_runtimes_F77=yes
15966 ;;
15967
15968 darwin* | rhapsody*)
15969 if test "$GXX" = yes ; then
15970 archive_cmds_need_lc_F77=no
15971 case "$host_os" in
15972 rhapsody* | darwin1.[012])
15973 allow_undefined_flag_F77='-undefined suppress'
15974 ;;
15975 *) # Darwin 1.3 on
15976 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15977 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15978 else
15979 case ${MACOSX_DEPLOYMENT_TARGET} in
15980 10.[012])
15981 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
15982 ;;
15983 10.*)
15984 allow_undefined_flag_F77='-undefined dynamic_lookup'
15985 ;;
15986 esac
15987 fi
15988 ;;
15989 esac
15990 lt_int_apple_cc_single_mod=no
15991 output_verbose_link_cmd='echo'
15992 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15993 lt_int_apple_cc_single_mod=yes
15994 fi
15995 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15996 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15997 else
15998 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
15999 fi
16000 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16001 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
16002 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
16003 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16004 else
16005 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16006 fi
16007 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}'
16008 hardcode_direct_F77=no
16009 hardcode_automatic_F77=yes
16010 hardcode_shlibpath_var_F77=unsupported
16011 whole_archive_flag_spec_F77='-all_load $convenience'
16012 link_all_deplibs_F77=yes
16013 else
16014 ld_shlibs_F77=no
16015 fi
16016 ;;
16017
16018 dgux*)
16019 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16020 hardcode_libdir_flag_spec_F77='-L$libdir'
16021 hardcode_shlibpath_var_F77=no
16022 ;;
16023
16024 freebsd1*)
16025 ld_shlibs_F77=no
16026 ;;
16027
16028 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16029 # support. Future versions do this automatically, but an explicit c++rt0.o
16030 # does not break anything, and helps significantly (at the cost of a little
16031 # extra space).
16032 freebsd2.2*)
16033 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16034 hardcode_libdir_flag_spec_F77='-R$libdir'
16035 hardcode_direct_F77=yes
16036 hardcode_shlibpath_var_F77=no
16037 ;;
16038
16039 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16040 freebsd2*)
16041 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16042 hardcode_direct_F77=yes
16043 hardcode_minus_L_F77=yes
16044 hardcode_shlibpath_var_F77=no
16045 ;;
16046
16047 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16048 freebsd* | kfreebsd*-gnu)
16049 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16050 hardcode_libdir_flag_spec_F77='-R$libdir'
16051 hardcode_direct_F77=yes
16052 hardcode_shlibpath_var_F77=no
16053 ;;
16054
16055 hpux9*)
16056 if test "$GCC" = yes; then
16057 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'
16058 else
16059 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'
16060 fi
16061 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16062 hardcode_libdir_separator_F77=:
16063 hardcode_direct_F77=yes
16064
16065 # hardcode_minus_L: Not really in the search PATH,
16066 # but as the default location of the library.
16067 hardcode_minus_L_F77=yes
16068 export_dynamic_flag_spec_F77='${wl}-E'
16069 ;;
16070
16071 hpux10* | hpux11*)
16072 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16073 case "$host_cpu" in
16074 hppa*64*|ia64*)
16075 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16076 ;;
16077 *)
16078 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16079 ;;
16080 esac
16081 else
16082 case "$host_cpu" in
16083 hppa*64*|ia64*)
16084 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
16085 ;;
16086 *)
16087 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16088 ;;
16089 esac
16090 fi
16091 if test "$with_gnu_ld" = no; then
16092 case "$host_cpu" in
16093 hppa*64*)
16094 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16095 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
16096 hardcode_libdir_separator_F77=:
16097 hardcode_direct_F77=no
16098 hardcode_shlibpath_var_F77=no
16099 ;;
16100 ia64*)
16101 hardcode_libdir_flag_spec_F77='-L$libdir'
16102 hardcode_direct_F77=no
16103 hardcode_shlibpath_var_F77=no
16104
16105 # hardcode_minus_L: Not really in the search PATH,
16106 # but as the default location of the library.
16107 hardcode_minus_L_F77=yes
16108 ;;
16109 *)
16110 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
16111 hardcode_libdir_separator_F77=:
16112 hardcode_direct_F77=yes
16113 export_dynamic_flag_spec_F77='${wl}-E'
16114
16115 # hardcode_minus_L: Not really in the search PATH,
16116 # but as the default location of the library.
16117 hardcode_minus_L_F77=yes
16118 ;;
16119 esac
16120 fi
16121 ;;
16122
16123 irix5* | irix6* | nonstopux*)
16124 if test "$GCC" = yes; then
16125 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'
16126 else
16127 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'
16128 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
16129 fi
16130 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16131 hardcode_libdir_separator_F77=:
16132 link_all_deplibs_F77=yes
16133 ;;
16134
16135 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
16136 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16137 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16138 else
16139 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16140 fi
16141 hardcode_libdir_flag_spec_F77='-R$libdir'
16142 hardcode_direct_F77=yes
16143 hardcode_shlibpath_var_F77=no
16144 ;;
16145
16146 newsos6)
16147 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16148 hardcode_direct_F77=yes
16149 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16150 hardcode_libdir_separator_F77=:
16151 hardcode_shlibpath_var_F77=no
16152 ;;
16153
16154 openbsd*)
16155 hardcode_direct_F77=yes
16156 hardcode_shlibpath_var_F77=no
16157 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16158 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16159 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16160 export_dynamic_flag_spec_F77='${wl}-E'
16161 else
16162 case $host_os in
16163 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16164 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16165 hardcode_libdir_flag_spec_F77='-R$libdir'
16166 ;;
16167 *)
16168 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16169 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
16170 ;;
16171 esac
16172 fi
16173 ;;
16174
16175 os2*)
16176 hardcode_libdir_flag_spec_F77='-L$libdir'
16177 hardcode_minus_L_F77=yes
16178 allow_undefined_flag_F77=unsupported
16179 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'
16180 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16181 ;;
16182
16183 osf3*)
16184 if test "$GCC" = yes; then
16185 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16186 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'
16187 else
16188 allow_undefined_flag_F77=' -expect_unresolved \*'
16189 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'
16190 fi
16191 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16192 hardcode_libdir_separator_F77=:
16193 ;;
16194
16195 osf4* | osf5*) # as osf3* with the addition of -msym flag
16196 if test "$GCC" = yes; then
16197 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
16198 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'
16199 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
16200 else
16201 allow_undefined_flag_F77=' -expect_unresolved \*'
16202 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'
16203 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~
16204 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
16205
16206 # Both c and cxx compiler support -rpath directly
16207 hardcode_libdir_flag_spec_F77='-rpath $libdir'
16208 fi
16209 hardcode_libdir_separator_F77=:
16210 ;;
16211
16212 sco3.2v5*)
16213 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16214 hardcode_shlibpath_var_F77=no
16215 export_dynamic_flag_spec_F77='${wl}-Bexport'
16216 runpath_var=LD_RUN_PATH
16217 hardcode_runpath_var=yes
16218 ;;
16219
16220 solaris*)
16221 no_undefined_flag_F77=' -z text'
16222 if test "$GCC" = yes; then
16223 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16224 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16225 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
16226 else
16227 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16228 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16229 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16230 fi
16231 hardcode_libdir_flag_spec_F77='-R$libdir'
16232 hardcode_shlibpath_var_F77=no
16233 case $host_os in
16234 solaris2.[0-5] | solaris2.[0-5].*) ;;
16235 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
16236 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
16237 esac
16238 link_all_deplibs_F77=yes
16239 ;;
16240
16241 sunos4*)
16242 if test "x$host_vendor" = xsequent; then
16243 # Use $CC to link under sequent, because it throws in some extra .o
16244 # files that make .init and .fini sections work.
16245 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16246 else
16247 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16248 fi
16249 hardcode_libdir_flag_spec_F77='-L$libdir'
16250 hardcode_direct_F77=yes
16251 hardcode_minus_L_F77=yes
16252 hardcode_shlibpath_var_F77=no
16253 ;;
16254
16255 sysv4)
16256 case $host_vendor in
16257 sni)
16258 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16259 hardcode_direct_F77=yes # is this really true???
16260 ;;
16261 siemens)
16262 ## LD is ld it makes a PLAMLIB
16263 ## CC just makes a GrossModule.
16264 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16265 reload_cmds_F77='$CC -r -o $output$reload_objs'
16266 hardcode_direct_F77=no
16267 ;;
16268 motorola)
16269 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16270 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
16271 ;;
16272 esac
16273 runpath_var='LD_RUN_PATH'
16274 hardcode_shlibpath_var_F77=no
16275 ;;
16276
16277 sysv4.3*)
16278 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16279 hardcode_shlibpath_var_F77=no
16280 export_dynamic_flag_spec_F77='-Bexport'
16281 ;;
16282
16283 sysv4*MP*)
16284 if test -d /usr/nec; then
16285 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16286 hardcode_shlibpath_var_F77=no
16287 runpath_var=LD_RUN_PATH
16288 hardcode_runpath_var=yes
16289 ld_shlibs_F77=yes
16290 fi
16291 ;;
16292
16293 sysv4.2uw2*)
16294 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16295 hardcode_direct_F77=yes
16296 hardcode_minus_L_F77=no
16297 hardcode_shlibpath_var_F77=no
16298 hardcode_runpath_var=yes
16299 runpath_var=LD_RUN_PATH
16300 ;;
16301
16302 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16303 no_undefined_flag_F77='${wl}-z ${wl}text'
16304 if test "$GCC" = yes; then
16305 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16306 else
16307 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16308 fi
16309 runpath_var='LD_RUN_PATH'
16310 hardcode_shlibpath_var_F77=no
16311 ;;
16312
16313 sysv5*)
16314 no_undefined_flag_F77=' -z text'
16315 # $CC -shared without GNU ld will not create a library from C++
16316 # object files and a static libstdc++, better avoid it by now
16317 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16318 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16319 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
16320 hardcode_libdir_flag_spec_F77=
16321 hardcode_shlibpath_var_F77=no
16322 runpath_var='LD_RUN_PATH'
16323 ;;
16324
16325 uts4*)
16326 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16327 hardcode_libdir_flag_spec_F77='-L$libdir'
16328 hardcode_shlibpath_var_F77=no
16329 ;;
16330
16331 *)
16332 ld_shlibs_F77=no
16333 ;;
16334 esac
16335 fi
16336
16337 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
16338 echo "${ECHO_T}$ld_shlibs_F77" >&6
16339 test "$ld_shlibs_F77" = no && can_build_shared=no
16340
16341 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16342 if test "$GCC" = yes; then
16343 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16344 fi
16345
16346 #
16347 # Do we need to explicitly link libc?
16348 #
16349 case "x$archive_cmds_need_lc_F77" in
16350 x|xyes)
16351 # Assume -lc should be added
16352 archive_cmds_need_lc_F77=yes
16353
16354 if test "$enable_shared" = yes && test "$GCC" = yes; then
16355 case $archive_cmds_F77 in
16356 *'~'*)
16357 # FIXME: we may have to deal with multi-command sequences.
16358 ;;
16359 '$CC '*)
16360 # Test whether the compiler implicitly links with -lc since on some
16361 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16362 # to ld, don't add -lc before -lgcc.
16363 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16364 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16365 $rm conftest*
16366 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16367
16368 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16369 (eval $ac_compile) 2>&5
16370 ac_status=$?
16371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16372 (exit $ac_status); } 2>conftest.err; then
16373 soname=conftest
16374 lib=conftest
16375 libobjs=conftest.$ac_objext
16376 deplibs=
16377 wl=$lt_prog_compiler_wl_F77
16378 compiler_flags=-v
16379 linker_flags=-v
16380 verstring=
16381 output_objdir=.
16382 libname=conftest
16383 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
16384 allow_undefined_flag_F77=
16385 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16386 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16387 ac_status=$?
16388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16389 (exit $ac_status); }
16390 then
16391 archive_cmds_need_lc_F77=no
16392 else
16393 archive_cmds_need_lc_F77=yes
16394 fi
16395 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
16396 else
16397 cat conftest.err 1>&5
16398 fi
16399 $rm conftest*
16400 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
16401 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
16402 ;;
16403 esac
16404 fi
16405 ;;
16406 esac
16407
16408 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16409 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16410 library_names_spec=
16411 libname_spec='lib$name'
16412 soname_spec=
16413 shrext_cmds=".so"
16414 postinstall_cmds=
16415 postuninstall_cmds=
16416 finish_cmds=
16417 finish_eval=
16418 shlibpath_var=
16419 shlibpath_overrides_runpath=unknown
16420 version_type=none
16421 dynamic_linker="$host_os ld.so"
16422 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16423 if test "$GCC" = yes; then
16424 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16425 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16426 # if the path contains ";" then we assume it to be the separator
16427 # otherwise default to the standard path separator (i.e. ":") - it is
16428 # assumed that no part of a normal pathname contains ";" but that should
16429 # okay in the real world where ";" in dirpaths is itself problematic.
16430 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16431 else
16432 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16433 fi
16434 else
16435 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16436 fi
16437 need_lib_prefix=unknown
16438 hardcode_into_libs=no
16439
16440 # when you set need_version to no, make sure it does not cause -set_version
16441 # flags to be left without arguments
16442 need_version=unknown
16443
16444 case $host_os in
16445 aix3*)
16446 version_type=linux
16447 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16448 shlibpath_var=LIBPATH
16449
16450 # AIX 3 has no versioning support, so we append a major version to the name.
16451 soname_spec='${libname}${release}${shared_ext}$major'
16452 ;;
16453
16454 aix4* | aix5*)
16455 version_type=linux
16456 need_lib_prefix=no
16457 need_version=no
16458 hardcode_into_libs=yes
16459 if test "$host_cpu" = ia64; then
16460 # AIX 5 supports IA64
16461 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16462 shlibpath_var=LD_LIBRARY_PATH
16463 else
16464 # With GCC up to 2.95.x, collect2 would create an import file
16465 # for dependence libraries. The import file would start with
16466 # the line `#! .'. This would cause the generated library to
16467 # depend on `.', always an invalid library. This was fixed in
16468 # development snapshots of GCC prior to 3.0.
16469 case $host_os in
16470 aix4 | aix4.[01] | aix4.[01].*)
16471 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16472 echo ' yes '
16473 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16474 :
16475 else
16476 can_build_shared=no
16477 fi
16478 ;;
16479 esac
16480 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16481 # soname into executable. Probably we can add versioning support to
16482 # collect2, so additional links can be useful in future.
16483 if test "$aix_use_runtimelinking" = yes; then
16484 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16485 # instead of lib<name>.a to let people know that these are not
16486 # typical AIX shared libraries.
16487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16488 else
16489 # We preserve .a as extension for shared libraries through AIX4.2
16490 # and later when we are not doing run time linking.
16491 library_names_spec='${libname}${release}.a $libname.a'
16492 soname_spec='${libname}${release}${shared_ext}$major'
16493 fi
16494 shlibpath_var=LIBPATH
16495 fi
16496 ;;
16497
16498 amigaos*)
16499 library_names_spec='$libname.ixlibrary $libname.a'
16500 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16501 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'
16502 ;;
16503
16504 beos*)
16505 library_names_spec='${libname}${shared_ext}'
16506 dynamic_linker="$host_os ld.so"
16507 shlibpath_var=LIBRARY_PATH
16508 ;;
16509
16510 bsdi4*)
16511 version_type=linux
16512 need_version=no
16513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16514 soname_spec='${libname}${release}${shared_ext}$major'
16515 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16516 shlibpath_var=LD_LIBRARY_PATH
16517 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16518 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16519 # the default ld.so.conf also contains /usr/contrib/lib and
16520 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16521 # libtool to hard-code these into programs
16522 ;;
16523
16524 cygwin* | mingw* | pw32*)
16525 version_type=windows
16526 shrext_cmds=".dll"
16527 need_version=no
16528 need_lib_prefix=no
16529
16530 case $GCC,$host_os in
16531 yes,cygwin* | yes,mingw* | yes,pw32*)
16532 library_names_spec='$libname.dll.a'
16533 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16534 postinstall_cmds='base_file=`basename \${file}`~
16535 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16536 dldir=$destdir/`dirname \$dlpath`~
16537 test -d \$dldir || mkdir -p \$dldir~
16538 $install_prog $dir/$dlname \$dldir/$dlname'
16539 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16540 dlpath=$dir/\$dldll~
16541 $rm \$dlpath'
16542 shlibpath_overrides_runpath=yes
16543
16544 case $host_os in
16545 cygwin*)
16546 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16547 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16548 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16549 ;;
16550 mingw*)
16551 # MinGW DLLs use traditional 'lib' prefix
16552 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16553 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16554 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16555 # It is most probably a Windows format PATH printed by
16556 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16557 # path with ; separators, and with drive letters. We can handle the
16558 # drive letters (cygwin fileutils understands them), so leave them,
16559 # especially as we might pass files found there to a mingw objdump,
16560 # which wouldn't understand a cygwinified path. Ahh.
16561 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16562 else
16563 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16564 fi
16565 ;;
16566 pw32*)
16567 # pw32 DLLs use 'pw' prefix rather than 'lib'
16568 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16569 ;;
16570 esac
16571 ;;
16572
16573 *)
16574 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16575 ;;
16576 esac
16577 dynamic_linker='Win32 ld.exe'
16578 # FIXME: first we should search . and the directory the executable is in
16579 shlibpath_var=PATH
16580 ;;
16581
16582 darwin* | rhapsody*)
16583 dynamic_linker="$host_os dyld"
16584 version_type=darwin
16585 need_lib_prefix=no
16586 need_version=no
16587 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16588 soname_spec='${libname}${release}${major}$shared_ext'
16589 shlibpath_overrides_runpath=yes
16590 shlibpath_var=DYLD_LIBRARY_PATH
16591 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16592 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16593 if test "$GCC" = yes; then
16594 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16595 else
16596 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16597 fi
16598 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16599 ;;
16600
16601 dgux*)
16602 version_type=linux
16603 need_lib_prefix=no
16604 need_version=no
16605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16606 soname_spec='${libname}${release}${shared_ext}$major'
16607 shlibpath_var=LD_LIBRARY_PATH
16608 ;;
16609
16610 freebsd1*)
16611 dynamic_linker=no
16612 ;;
16613
16614 kfreebsd*-gnu)
16615 version_type=linux
16616 need_lib_prefix=no
16617 need_version=no
16618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16619 soname_spec='${libname}${release}${shared_ext}$major'
16620 shlibpath_var=LD_LIBRARY_PATH
16621 shlibpath_overrides_runpath=no
16622 hardcode_into_libs=yes
16623 dynamic_linker='GNU ld.so'
16624 ;;
16625
16626 freebsd*)
16627 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16628 version_type=freebsd-$objformat
16629 case $version_type in
16630 freebsd-elf*)
16631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16632 need_version=no
16633 need_lib_prefix=no
16634 ;;
16635 freebsd-*)
16636 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16637 need_version=yes
16638 ;;
16639 esac
16640 shlibpath_var=LD_LIBRARY_PATH
16641 case $host_os in
16642 freebsd2*)
16643 shlibpath_overrides_runpath=yes
16644 ;;
16645 freebsd3.01* | freebsdelf3.01*)
16646 shlibpath_overrides_runpath=yes
16647 hardcode_into_libs=yes
16648 ;;
16649 *) # from 3.2 on
16650 shlibpath_overrides_runpath=no
16651 hardcode_into_libs=yes
16652 ;;
16653 esac
16654 ;;
16655
16656 gnu*)
16657 version_type=linux
16658 need_lib_prefix=no
16659 need_version=no
16660 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16661 soname_spec='${libname}${release}${shared_ext}$major'
16662 shlibpath_var=LD_LIBRARY_PATH
16663 hardcode_into_libs=yes
16664 ;;
16665
16666 hpux9* | hpux10* | hpux11*)
16667 # Give a soname corresponding to the major version so that dld.sl refuses to
16668 # link against other versions.
16669 version_type=sunos
16670 need_lib_prefix=no
16671 need_version=no
16672 case "$host_cpu" in
16673 ia64*)
16674 shrext_cmds='.so'
16675 hardcode_into_libs=yes
16676 dynamic_linker="$host_os dld.so"
16677 shlibpath_var=LD_LIBRARY_PATH
16678 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16680 soname_spec='${libname}${release}${shared_ext}$major'
16681 if test "X$HPUX_IA64_MODE" = X32; then
16682 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16683 else
16684 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16685 fi
16686 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16687 ;;
16688 hppa*64*)
16689 shrext_cmds='.sl'
16690 hardcode_into_libs=yes
16691 dynamic_linker="$host_os dld.sl"
16692 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16693 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16695 soname_spec='${libname}${release}${shared_ext}$major'
16696 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16697 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16698 ;;
16699 *)
16700 shrext_cmds='.sl'
16701 dynamic_linker="$host_os dld.sl"
16702 shlibpath_var=SHLIB_PATH
16703 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16704 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16705 soname_spec='${libname}${release}${shared_ext}$major'
16706 ;;
16707 esac
16708 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16709 postinstall_cmds='chmod 555 $lib'
16710 ;;
16711
16712 irix5* | irix6* | nonstopux*)
16713 case $host_os in
16714 nonstopux*) version_type=nonstopux ;;
16715 *)
16716 if test "$lt_cv_prog_gnu_ld" = yes; then
16717 version_type=linux
16718 else
16719 version_type=irix
16720 fi ;;
16721 esac
16722 need_lib_prefix=no
16723 need_version=no
16724 soname_spec='${libname}${release}${shared_ext}$major'
16725 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
16726 case $host_os in
16727 irix5* | nonstopux*)
16728 libsuff= shlibsuff=
16729 ;;
16730 *)
16731 case $LD in # libtool.m4 will add one of these switches to LD
16732 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
16733 libsuff= shlibsuff= libmagic=32-bit;;
16734 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
16735 libsuff=32 shlibsuff=N32 libmagic=N32;;
16736 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
16737 libsuff=64 shlibsuff=64 libmagic=64-bit;;
16738 *) libsuff= shlibsuff= libmagic=never-match;;
16739 esac
16740 ;;
16741 esac
16742 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
16743 shlibpath_overrides_runpath=no
16744 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
16745 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
16746 hardcode_into_libs=yes
16747 ;;
16748
16749 # No shared lib support for Linux oldld, aout, or coff.
16750 linux*oldld* | linux*aout* | linux*coff*)
16751 dynamic_linker=no
16752 ;;
16753
16754 # This must be Linux ELF.
16755 linux*)
16756 version_type=linux
16757 need_lib_prefix=no
16758 need_version=no
16759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16760 soname_spec='${libname}${release}${shared_ext}$major'
16761 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
16762 shlibpath_var=LD_LIBRARY_PATH
16763 shlibpath_overrides_runpath=no
16764 # This implies no fast_install, which is unacceptable.
16765 # Some rework will be needed to allow for fast_install
16766 # before this can be enabled.
16767 hardcode_into_libs=yes
16768
16769 # Append ld.so.conf contents to the search path
16770 if test -f /etc/ld.so.conf; then
16771 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
16772 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
16773 fi
16774
16775 # We used to test for /lib/ld.so.1 and disable shared libraries on
16776 # powerpc, because MkLinux only supported shared libraries with the
16777 # GNU dynamic linker. Since this was broken with cross compilers,
16778 # most powerpc-linux boxes support dynamic linking these days and
16779 # people can always --disable-shared, the test was removed, and we
16780 # assume the GNU/Linux dynamic linker is in use.
16781 dynamic_linker='GNU/Linux ld.so'
16782 ;;
16783
16784 netbsdelf*-gnu)
16785 version_type=linux
16786 need_lib_prefix=no
16787 need_version=no
16788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16789 soname_spec='${libname}${release}${shared_ext}$major'
16790 shlibpath_var=LD_LIBRARY_PATH
16791 shlibpath_overrides_runpath=no
16792 hardcode_into_libs=yes
16793 dynamic_linker='NetBSD ld.elf_so'
16794 ;;
16795
16796 knetbsd*-gnu)
16797 version_type=linux
16798 need_lib_prefix=no
16799 need_version=no
16800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16801 soname_spec='${libname}${release}${shared_ext}$major'
16802 shlibpath_var=LD_LIBRARY_PATH
16803 shlibpath_overrides_runpath=no
16804 hardcode_into_libs=yes
16805 dynamic_linker='GNU ld.so'
16806 ;;
16807
16808 netbsd*)
16809 version_type=sunos
16810 need_lib_prefix=no
16811 need_version=no
16812 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
16813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16814 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16815 dynamic_linker='NetBSD (a.out) ld.so'
16816 else
16817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16818 soname_spec='${libname}${release}${shared_ext}$major'
16819 dynamic_linker='NetBSD ld.elf_so'
16820 fi
16821 shlibpath_var=LD_LIBRARY_PATH
16822 shlibpath_overrides_runpath=yes
16823 hardcode_into_libs=yes
16824 ;;
16825
16826 newsos6)
16827 version_type=linux
16828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16829 shlibpath_var=LD_LIBRARY_PATH
16830 shlibpath_overrides_runpath=yes
16831 ;;
16832
16833 nto-qnx*)
16834 version_type=linux
16835 need_lib_prefix=no
16836 need_version=no
16837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16838 soname_spec='${libname}${release}${shared_ext}$major'
16839 shlibpath_var=LD_LIBRARY_PATH
16840 shlibpath_overrides_runpath=yes
16841 ;;
16842
16843 openbsd*)
16844 version_type=sunos
16845 need_lib_prefix=no
16846 need_version=yes
16847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16848 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
16849 shlibpath_var=LD_LIBRARY_PATH
16850 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16851 case $host_os in
16852 openbsd2.[89] | openbsd2.[89].*)
16853 shlibpath_overrides_runpath=no
16854 ;;
16855 *)
16856 shlibpath_overrides_runpath=yes
16857 ;;
16858 esac
16859 else
16860 shlibpath_overrides_runpath=yes
16861 fi
16862 ;;
16863
16864 os2*)
16865 libname_spec='$name'
16866 shrext_cmds=".dll"
16867 need_lib_prefix=no
16868 library_names_spec='$libname${shared_ext} $libname.a'
16869 dynamic_linker='OS/2 ld.exe'
16870 shlibpath_var=LIBPATH
16871 ;;
16872
16873 osf3* | osf4* | osf5*)
16874 version_type=osf
16875 need_lib_prefix=no
16876 need_version=no
16877 soname_spec='${libname}${release}${shared_ext}$major'
16878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16879 shlibpath_var=LD_LIBRARY_PATH
16880 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
16881 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
16882 ;;
16883
16884 sco3.2v5*)
16885 version_type=osf
16886 soname_spec='${libname}${release}${shared_ext}$major'
16887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16888 shlibpath_var=LD_LIBRARY_PATH
16889 ;;
16890
16891 solaris*)
16892 version_type=linux
16893 need_lib_prefix=no
16894 need_version=no
16895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16896 soname_spec='${libname}${release}${shared_ext}$major'
16897 shlibpath_var=LD_LIBRARY_PATH
16898 shlibpath_overrides_runpath=yes
16899 hardcode_into_libs=yes
16900 # ldd complains unless libraries are executable
16901 postinstall_cmds='chmod +x $lib'
16902 ;;
16903
16904 sunos4*)
16905 version_type=sunos
16906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
16907 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
16908 shlibpath_var=LD_LIBRARY_PATH
16909 shlibpath_overrides_runpath=yes
16910 if test "$with_gnu_ld" = yes; then
16911 need_lib_prefix=no
16912 fi
16913 need_version=yes
16914 ;;
16915
16916 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16917 version_type=linux
16918 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16919 soname_spec='${libname}${release}${shared_ext}$major'
16920 shlibpath_var=LD_LIBRARY_PATH
16921 case $host_vendor in
16922 sni)
16923 shlibpath_overrides_runpath=no
16924 need_lib_prefix=no
16925 export_dynamic_flag_spec='${wl}-Blargedynsym'
16926 runpath_var=LD_RUN_PATH
16927 ;;
16928 siemens)
16929 need_lib_prefix=no
16930 ;;
16931 motorola)
16932 need_lib_prefix=no
16933 need_version=no
16934 shlibpath_overrides_runpath=no
16935 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16936 ;;
16937 esac
16938 ;;
16939
16940 sysv4*MP*)
16941 if test -d /usr/nec ;then
16942 version_type=linux
16943 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16944 soname_spec='$libname${shared_ext}.$major'
16945 shlibpath_var=LD_LIBRARY_PATH
16946 fi
16947 ;;
16948
16949 uts4*)
16950 version_type=linux
16951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16952 soname_spec='${libname}${release}${shared_ext}$major'
16953 shlibpath_var=LD_LIBRARY_PATH
16954 ;;
16955
16956 *)
16957 dynamic_linker=no
16958 ;;
16959 esac
16960 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
16961 echo "${ECHO_T}$dynamic_linker" >&6
16962 test "$dynamic_linker" = no && can_build_shared=no
16963
16964 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
16965 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
16966 hardcode_action_F77=
16967 if test -n "$hardcode_libdir_flag_spec_F77" || \
16968 test -n "$runpath_var F77" || \
16969 test "X$hardcode_automatic_F77"="Xyes" ; then
16970
16971 # We can hardcode non-existant directories.
16972 if test "$hardcode_direct_F77" != no &&
16973 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16974 # have to relink, otherwise we might link with an installed library
16975 # when we should be linking with a yet-to-be-installed one
16976 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
16977 test "$hardcode_minus_L_F77" != no; then
16978 # Linking always hardcodes the temporary library directory.
16979 hardcode_action_F77=relink
16980 else
16981 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16982 hardcode_action_F77=immediate
16983 fi
16984 else
16985 # We cannot hardcode anything, or else we can only hardcode existing
16986 # directories.
16987 hardcode_action_F77=unsupported
16988 fi
16989 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
16990 echo "${ECHO_T}$hardcode_action_F77" >&6
16991
16992 if test "$hardcode_action_F77" = relink; then
16993 # Fast installation is not supported
16994 enable_fast_install=no
16995 elif test "$shlibpath_overrides_runpath" = yes ||
16996 test "$enable_shared" = no; then
16997 # Fast installation is not necessary
16998 enable_fast_install=needless
16999 fi
17000
17001 striplib=
17002 old_striplib=
17003 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17004 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17005 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17006 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17007 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17008 echo "$as_me:$LINENO: result: yes" >&5
17009 echo "${ECHO_T}yes" >&6
17010 else
17011 # FIXME - insert some real tests, host_os isn't really good enough
17012 case $host_os in
17013 darwin*)
17014 if test -n "$STRIP" ; then
17015 striplib="$STRIP -x"
17016 echo "$as_me:$LINENO: result: yes" >&5
17017 echo "${ECHO_T}yes" >&6
17018 else
17019 echo "$as_me:$LINENO: result: no" >&5
17020 echo "${ECHO_T}no" >&6
17021 fi
17022 ;;
17023 *)
17024 echo "$as_me:$LINENO: result: no" >&5
17025 echo "${ECHO_T}no" >&6
17026 ;;
17027 esac
17028 fi
17029
17030
17031
17032 # The else clause should only fire when bootstrapping the
17033 # libtool distribution, otherwise you forgot to ship ltmain.sh
17034 # with your package, and you will get complaints that there are
17035 # no rules to generate ltmain.sh.
17036 if test -f "$ltmain"; then
17037 # See if we are running on zsh, and set the options which allow our commands through
17038 # without removal of \ escapes.
17039 if test -n "${ZSH_VERSION+set}" ; then
17040 setopt NO_GLOB_SUBST
17041 fi
17042 # Now quote all the things that may contain metacharacters while being
17043 # careful not to overquote the AC_SUBSTed values. We take copies of the
17044 # variables and quote the copies for generation of the libtool script.
17045 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
17046 SED SHELL STRIP \
17047 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
17048 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
17049 deplibs_check_method reload_flag reload_cmds need_locks \
17050 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
17051 lt_cv_sys_global_symbol_to_c_name_address \
17052 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
17053 old_postinstall_cmds old_postuninstall_cmds \
17054 compiler_F77 \
17055 CC_F77 \
17056 LD_F77 \
17057 lt_prog_compiler_wl_F77 \
17058 lt_prog_compiler_pic_F77 \
17059 lt_prog_compiler_static_F77 \
17060 lt_prog_compiler_no_builtin_flag_F77 \
17061 export_dynamic_flag_spec_F77 \
17062 thread_safe_flag_spec_F77 \
17063 whole_archive_flag_spec_F77 \
17064 enable_shared_with_static_runtimes_F77 \
17065 old_archive_cmds_F77 \
17066 old_archive_from_new_cmds_F77 \
17067 predep_objects_F77 \
17068 postdep_objects_F77 \
17069 predeps_F77 \
17070 postdeps_F77 \
17071 compiler_lib_search_path_F77 \
17072 archive_cmds_F77 \
17073 archive_expsym_cmds_F77 \
17074 postinstall_cmds_F77 \
17075 postuninstall_cmds_F77 \
17076 old_archive_from_expsyms_cmds_F77 \
17077 allow_undefined_flag_F77 \
17078 no_undefined_flag_F77 \
17079 export_symbols_cmds_F77 \
17080 hardcode_libdir_flag_spec_F77 \
17081 hardcode_libdir_flag_spec_ld_F77 \
17082 hardcode_libdir_separator_F77 \
17083 hardcode_automatic_F77 \
17084 module_cmds_F77 \
17085 module_expsym_cmds_F77 \
17086 lt_cv_prog_compiler_c_o_F77 \
17087 exclude_expsyms_F77 \
17088 include_expsyms_F77; do
17089
17090 case $var in
17091 old_archive_cmds_F77 | \
17092 old_archive_from_new_cmds_F77 | \
17093 archive_cmds_F77 | \
17094 archive_expsym_cmds_F77 | \
17095 module_cmds_F77 | \
17096 module_expsym_cmds_F77 | \
17097 old_archive_from_expsyms_cmds_F77 | \
17098 export_symbols_cmds_F77 | \
17099 extract_expsyms_cmds | reload_cmds | finish_cmds | \
17100 postinstall_cmds | postuninstall_cmds | \
17101 old_postinstall_cmds | old_postuninstall_cmds | \
17102 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
17103 # Double-quote double-evaled strings.
17104 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
17105 ;;
17106 *)
17107 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
17108 ;;
17109 esac
17110 done
17111
17112 case $lt_echo in
17113 *'\$0 --fallback-echo"')
17114 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
17115 ;;
17116 esac
17117
17118 cfgfile="$ofile"
17119
17120 cat <<__EOF__ >> "$cfgfile"
17121 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
17122
17123 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
17124
17125 # Shell to use when invoking shell scripts.
17126 SHELL=$lt_SHELL
17127
17128 # Whether or not to build shared libraries.
17129 build_libtool_libs=$enable_shared
17130
17131 # Whether or not to build static libraries.
17132 build_old_libs=$enable_static
17133
17134 # Whether or not to add -lc for building shared libraries.
17135 build_libtool_need_lc=$archive_cmds_need_lc_F77
17136
17137 # Whether or not to disallow shared libs when runtime libs are static
17138 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
17139
17140 # Whether or not to optimize for fast installation.
17141 fast_install=$enable_fast_install
17142
17143 # The host system.
17144 host_alias=$host_alias
17145 host=$host
17146
17147 # An echo program that does not interpret backslashes.
17148 echo=$lt_echo
17149
17150 # The archiver.
17151 AR=$lt_AR
17152 AR_FLAGS=$lt_AR_FLAGS
17153
17154 # A C compiler.
17155 LTCC=$lt_LTCC
17156
17157 # A language-specific compiler.
17158 CC=$lt_compiler_F77
17159
17160 # Is the compiler the GNU C compiler?
17161 with_gcc=$GCC_F77
17162
17163 # An ERE matcher.
17164 EGREP=$lt_EGREP
17165
17166 # The linker used to build libraries.
17167 LD=$lt_LD_F77
17168
17169 # Whether we need hard or soft links.
17170 LN_S=$lt_LN_S
17171
17172 # A BSD-compatible nm program.
17173 NM=$lt_NM
17174
17175 # A symbol stripping program
17176 STRIP=$lt_STRIP
17177
17178 # Used to examine libraries when file_magic_cmd begins "file"
17179 MAGIC_CMD=$MAGIC_CMD
17180
17181 # Used on cygwin: DLL creation program.
17182 DLLTOOL="$DLLTOOL"
17183
17184 # Used on cygwin: object dumper.
17185 OBJDUMP="$OBJDUMP"
17186
17187 # Used on cygwin: assembler.
17188 AS="$AS"
17189
17190 # The name of the directory that contains temporary libtool files.
17191 objdir=$objdir
17192
17193 # How to create reloadable object files.
17194 reload_flag=$lt_reload_flag
17195 reload_cmds=$lt_reload_cmds
17196
17197 # How to pass a linker flag through the compiler.
17198 wl=$lt_lt_prog_compiler_wl_F77
17199
17200 # Object file suffix (normally "o").
17201 objext="$ac_objext"
17202
17203 # Old archive suffix (normally "a").
17204 libext="$libext"
17205
17206 # Shared library suffix (normally ".so").
17207 shrext_cmds='$shrext_cmds'
17208
17209 # Executable file suffix (normally "").
17210 exeext="$exeext"
17211
17212 # Additional compiler flags for building library objects.
17213 pic_flag=$lt_lt_prog_compiler_pic_F77
17214 pic_mode=$pic_mode
17215
17216 # What is the maximum length of a command?
17217 max_cmd_len=$lt_cv_sys_max_cmd_len
17218
17219 # Does compiler simultaneously support -c and -o options?
17220 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
17221
17222 # Must we lock files when doing compilation ?
17223 need_locks=$lt_need_locks
17224
17225 # Do we need the lib prefix for modules?
17226 need_lib_prefix=$need_lib_prefix
17227
17228 # Do we need a version for libraries?
17229 need_version=$need_version
17230
17231 # Whether dlopen is supported.
17232 dlopen_support=$enable_dlopen
17233
17234 # Whether dlopen of programs is supported.
17235 dlopen_self=$enable_dlopen_self
17236
17237 # Whether dlopen of statically linked programs is supported.
17238 dlopen_self_static=$enable_dlopen_self_static
17239
17240 # Compiler flag to prevent dynamic linking.
17241 link_static_flag=$lt_lt_prog_compiler_static_F77
17242
17243 # Compiler flag to turn off builtin functions.
17244 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
17245
17246 # Compiler flag to allow reflexive dlopens.
17247 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
17248
17249 # Compiler flag to generate shared objects directly from archives.
17250 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
17251
17252 # Compiler flag to generate thread-safe objects.
17253 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
17254
17255 # Library versioning type.
17256 version_type=$version_type
17257
17258 # Format of library name prefix.
17259 libname_spec=$lt_libname_spec
17260
17261 # List of archive names. First name is the real one, the rest are links.
17262 # The last name is the one that the linker finds with -lNAME.
17263 library_names_spec=$lt_library_names_spec
17264
17265 # The coded name of the library, if different from the real name.
17266 soname_spec=$lt_soname_spec
17267
17268 # Commands used to build and install an old-style archive.
17269 RANLIB=$lt_RANLIB
17270 old_archive_cmds=$lt_old_archive_cmds_F77
17271 old_postinstall_cmds=$lt_old_postinstall_cmds
17272 old_postuninstall_cmds=$lt_old_postuninstall_cmds
17273
17274 # Create an old-style archive from a shared archive.
17275 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
17276
17277 # Create a temporary old-style archive to link instead of a shared archive.
17278 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
17279
17280 # Commands used to build and install a shared archive.
17281 archive_cmds=$lt_archive_cmds_F77
17282 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
17283 postinstall_cmds=$lt_postinstall_cmds
17284 postuninstall_cmds=$lt_postuninstall_cmds
17285
17286 # Commands used to build a loadable module (assumed same as above if empty)
17287 module_cmds=$lt_module_cmds_F77
17288 module_expsym_cmds=$lt_module_expsym_cmds_F77
17289
17290 # Commands to strip libraries.
17291 old_striplib=$lt_old_striplib
17292 striplib=$lt_striplib
17293
17294 # Dependencies to place before the objects being linked to create a
17295 # shared library.
17296 predep_objects=$lt_predep_objects_F77
17297
17298 # Dependencies to place after the objects being linked to create a
17299 # shared library.
17300 postdep_objects=$lt_postdep_objects_F77
17301
17302 # Dependencies to place before the objects being linked to create a
17303 # shared library.
17304 predeps=$lt_predeps_F77
17305
17306 # Dependencies to place after the objects being linked to create a
17307 # shared library.
17308 postdeps=$lt_postdeps_F77
17309
17310 # The library search path used internally by the compiler when linking
17311 # a shared library.
17312 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
17313
17314 # Method to check whether dependent libraries are shared objects.
17315 deplibs_check_method=$lt_deplibs_check_method
17316
17317 # Command to use when deplibs_check_method == file_magic.
17318 file_magic_cmd=$lt_file_magic_cmd
17319
17320 # Flag that allows shared libraries with undefined symbols to be built.
17321 allow_undefined_flag=$lt_allow_undefined_flag_F77
17322
17323 # Flag that forces no undefined symbols.
17324 no_undefined_flag=$lt_no_undefined_flag_F77
17325
17326 # Commands used to finish a libtool library installation in a directory.
17327 finish_cmds=$lt_finish_cmds
17328
17329 # Same as above, but a single script fragment to be evaled but not shown.
17330 finish_eval=$lt_finish_eval
17331
17332 # Take the output of nm and produce a listing of raw symbols and C names.
17333 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
17334
17335 # Transform the output of nm in a proper C declaration
17336 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
17337
17338 # Transform the output of nm in a C name address pair
17339 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
17340
17341 # This is the shared library runtime path variable.
17342 runpath_var=$runpath_var
17343
17344 # This is the shared library path variable.
17345 shlibpath_var=$shlibpath_var
17346
17347 # Is shlibpath searched before the hard-coded library search path?
17348 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
17349
17350 # How to hardcode a shared library path into an executable.
17351 hardcode_action=$hardcode_action_F77
17352
17353 # Whether we should hardcode library paths into libraries.
17354 hardcode_into_libs=$hardcode_into_libs
17355
17356 # Flag to hardcode \$libdir into a binary during linking.
17357 # This must work even if \$libdir does not exist.
17358 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
17359
17360 # If ld is used when linking, flag to hardcode \$libdir into
17361 # a binary during linking. This must work even if \$libdir does
17362 # not exist.
17363 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
17364
17365 # Whether we need a single -rpath flag with a separated argument.
17366 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
17367
17368 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
17369 # resulting binary.
17370 hardcode_direct=$hardcode_direct_F77
17371
17372 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
17373 # resulting binary.
17374 hardcode_minus_L=$hardcode_minus_L_F77
17375
17376 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
17377 # the resulting binary.
17378 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
17379
17380 # Set to yes if building a shared library automatically hardcodes DIR into the library
17381 # and all subsequent libraries and executables linked against it.
17382 hardcode_automatic=$hardcode_automatic_F77
17383
17384 # Variables whose values should be saved in libtool wrapper scripts and
17385 # restored at relink time.
17386 variables_saved_for_relink="$variables_saved_for_relink"
17387
17388 # Whether libtool must link a program against all its dependency libraries.
17389 link_all_deplibs=$link_all_deplibs_F77
17390
17391 # Compile-time system search path for libraries
17392 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
17393
17394 # Run-time system search path for libraries
17395 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
17396
17397 # Fix the shell variable \$srcfile for the compiler.
17398 fix_srcfile_path="$fix_srcfile_path_F77"
17399
17400 # Set to yes if exported symbols are required.
17401 always_export_symbols=$always_export_symbols_F77
17402
17403 # The commands to list exported symbols.
17404 export_symbols_cmds=$lt_export_symbols_cmds_F77
17405
17406 # The commands to extract the exported symbol list from a shared archive.
17407 extract_expsyms_cmds=$lt_extract_expsyms_cmds
17408
17409 # Symbols that should not be listed in the preloaded symbols.
17410 exclude_expsyms=$lt_exclude_expsyms_F77
17411
17412 # Symbols that must always be exported.
17413 include_expsyms=$lt_include_expsyms_F77
17414
17415 # ### END LIBTOOL TAG CONFIG: $tagname
17416
17417 __EOF__
17418
17419
17420 else
17421 # If there is no Makefile yet, we rely on a make rule to execute
17422 # `config.status --recheck' to rerun these tests and create the
17423 # libtool script then.
17424 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
17425 if test -f "$ltmain_in"; then
17426 test -f Makefile && make "$ltmain"
17427 fi
17428 fi
17429
17430
17431 ac_ext=c
17432 ac_cpp='$CPP $CPPFLAGS'
17433 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17434 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17435 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17436
17437 CC="$lt_save_CC"
17438
17439 else
17440 tagname=""
17441 fi
17442 ;;
17443
17444 GCJ)
17445 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
17446
17447
17448
17449 # Source file extension for Java test sources.
17450 ac_ext=java
17451
17452 # Object file extension for compiled Java test sources.
17453 objext=o
17454 objext_GCJ=$objext
17455
17456 # Code to be used in simple compile tests
17457 lt_simple_compile_test_code="class foo {}\n"
17458
17459 # Code to be used in simple link tests
17460 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
17461
17462 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17463
17464 # If no C compiler was specified, use CC.
17465 LTCC=${LTCC-"$CC"}
17466
17467 # Allow CC to be a program name with arguments.
17468 compiler=$CC
17469
17470
17471 # Allow CC to be a program name with arguments.
17472 lt_save_CC="$CC"
17473 CC=${GCJ-"gcj"}
17474 compiler=$CC
17475 compiler_GCJ=$CC
17476
17477 # GCJ did not exist at the time GCC didn't implicitly link libc in.
17478 archive_cmds_need_lc_GCJ=no
17479
17480
17481 lt_prog_compiler_no_builtin_flag_GCJ=
17482
17483 if test "$GCC" = yes; then
17484 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
17485
17486
17487 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
17488 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
17489 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
17490 echo $ECHO_N "(cached) $ECHO_C" >&6
17491 else
17492 lt_cv_prog_compiler_rtti_exceptions=no
17493 ac_outfile=conftest.$ac_objext
17494 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17495 lt_compiler_flag="-fno-rtti -fno-exceptions"
17496 # Insert the option either (1) after the last *FLAGS variable, or
17497 # (2) before a word containing "conftest.", or (3) at the end.
17498 # Note that $ac_compile itself does not contain backslashes and begins
17499 # with a dollar sign (not a hyphen), so the echo should work correctly.
17500 # The option is referenced via a variable to avoid confusing sed.
17501 lt_compile=`echo "$ac_compile" | $SED \
17502 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17503 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17504 -e 's:$: $lt_compiler_flag:'`
17505 (eval echo "\"\$as_me:17505: $lt_compile\"" >&5)
17506 (eval "$lt_compile" 2>conftest.err)
17507 ac_status=$?
17508 cat conftest.err >&5
17509 echo "$as_me:17509: \$? = $ac_status" >&5
17510 if (exit $ac_status) && test -s "$ac_outfile"; then
17511 # The compiler can only warn and ignore the option if not recognized
17512 # So say no if there are warnings
17513 if test ! -s conftest.err; then
17514 lt_cv_prog_compiler_rtti_exceptions=yes
17515 fi
17516 fi
17517 $rm conftest*
17518
17519 fi
17520 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
17521 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
17522
17523 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
17524 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
17525 else
17526 :
17527 fi
17528
17529 fi
17530
17531 lt_prog_compiler_wl_GCJ=
17532 lt_prog_compiler_pic_GCJ=
17533 lt_prog_compiler_static_GCJ=
17534
17535 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17536 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17537
17538 if test "$GCC" = yes; then
17539 lt_prog_compiler_wl_GCJ='-Wl,'
17540 lt_prog_compiler_static_GCJ='-static'
17541
17542 case $host_os in
17543 aix*)
17544 # All AIX code is PIC.
17545 if test "$host_cpu" = ia64; then
17546 # AIX 5 now supports IA64 processor
17547 lt_prog_compiler_static_GCJ='-Bstatic'
17548 fi
17549 ;;
17550
17551 amigaos*)
17552 # FIXME: we need at least 68020 code to build shared libraries, but
17553 # adding the `-m68020' flag to GCC prevents building anything better,
17554 # like `-m68040'.
17555 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
17556 ;;
17557
17558 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17559 # PIC is the default for these OSes.
17560 ;;
17561
17562 mingw* | pw32* | os2*)
17563 # This hack is so that the source file can tell whether it is being
17564 # built for inclusion in a dll (and should export symbols for example).
17565 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17566 ;;
17567
17568 darwin* | rhapsody*)
17569 # PIC is the default on this platform
17570 # Common symbols not allowed in MH_DYLIB files
17571 lt_prog_compiler_pic_GCJ='-fno-common'
17572 ;;
17573
17574 msdosdjgpp*)
17575 # Just because we use GCC doesn't mean we suddenly get shared libraries
17576 # on systems that don't support them.
17577 lt_prog_compiler_can_build_shared_GCJ=no
17578 enable_shared=no
17579 ;;
17580
17581 sysv4*MP*)
17582 if test -d /usr/nec; then
17583 lt_prog_compiler_pic_GCJ=-Kconform_pic
17584 fi
17585 ;;
17586
17587 hpux*)
17588 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17589 # not for PA HP-UX.
17590 case "$host_cpu" in
17591 hppa*64*|ia64*)
17592 # +Z the default
17593 ;;
17594 *)
17595 lt_prog_compiler_pic_GCJ='-fPIC'
17596 ;;
17597 esac
17598 ;;
17599
17600 *)
17601 lt_prog_compiler_pic_GCJ='-fPIC'
17602 ;;
17603 esac
17604 else
17605 # PORTME Check for flag to pass linker flags through the system compiler.
17606 case $host_os in
17607 aix*)
17608 lt_prog_compiler_wl_GCJ='-Wl,'
17609 if test "$host_cpu" = ia64; then
17610 # AIX 5 now supports IA64 processor
17611 lt_prog_compiler_static_GCJ='-Bstatic'
17612 else
17613 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
17614 fi
17615 ;;
17616
17617 mingw* | pw32* | os2*)
17618 # This hack is so that the source file can tell whether it is being
17619 # built for inclusion in a dll (and should export symbols for example).
17620 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
17621 ;;
17622
17623 hpux9* | hpux10* | hpux11*)
17624 lt_prog_compiler_wl_GCJ='-Wl,'
17625 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17626 # not for PA HP-UX.
17627 case "$host_cpu" in
17628 hppa*64*|ia64*)
17629 # +Z the default
17630 ;;
17631 *)
17632 lt_prog_compiler_pic_GCJ='+Z'
17633 ;;
17634 esac
17635 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17636 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
17637 ;;
17638
17639 irix5* | irix6* | nonstopux*)
17640 lt_prog_compiler_wl_GCJ='-Wl,'
17641 # PIC (with -KPIC) is the default.
17642 lt_prog_compiler_static_GCJ='-non_shared'
17643 ;;
17644
17645 newsos6)
17646 lt_prog_compiler_pic_GCJ='-KPIC'
17647 lt_prog_compiler_static_GCJ='-Bstatic'
17648 ;;
17649
17650 linux*)
17651 case $CC in
17652 icc* | ecc*)
17653 lt_prog_compiler_wl_GCJ='-Wl,'
17654 lt_prog_compiler_pic_GCJ='-KPIC'
17655 lt_prog_compiler_static_GCJ='-static'
17656 ;;
17657 ccc*)
17658 lt_prog_compiler_wl_GCJ='-Wl,'
17659 # All Alpha code is PIC.
17660 lt_prog_compiler_static_GCJ='-non_shared'
17661 ;;
17662 esac
17663 ;;
17664
17665 osf3* | osf4* | osf5*)
17666 lt_prog_compiler_wl_GCJ='-Wl,'
17667 # All OSF/1 code is PIC.
17668 lt_prog_compiler_static_GCJ='-non_shared'
17669 ;;
17670
17671 sco3.2v5*)
17672 lt_prog_compiler_pic_GCJ='-Kpic'
17673 lt_prog_compiler_static_GCJ='-dn'
17674 ;;
17675
17676 solaris*)
17677 lt_prog_compiler_wl_GCJ='-Wl,'
17678 lt_prog_compiler_pic_GCJ='-KPIC'
17679 lt_prog_compiler_static_GCJ='-Bstatic'
17680 ;;
17681
17682 sunos4*)
17683 lt_prog_compiler_wl_GCJ='-Qoption ld '
17684 lt_prog_compiler_pic_GCJ='-PIC'
17685 lt_prog_compiler_static_GCJ='-Bstatic'
17686 ;;
17687
17688 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17689 lt_prog_compiler_wl_GCJ='-Wl,'
17690 lt_prog_compiler_pic_GCJ='-KPIC'
17691 lt_prog_compiler_static_GCJ='-Bstatic'
17692 ;;
17693
17694 sysv4*MP*)
17695 if test -d /usr/nec ;then
17696 lt_prog_compiler_pic_GCJ='-Kconform_pic'
17697 lt_prog_compiler_static_GCJ='-Bstatic'
17698 fi
17699 ;;
17700
17701 uts4*)
17702 lt_prog_compiler_pic_GCJ='-pic'
17703 lt_prog_compiler_static_GCJ='-Bstatic'
17704 ;;
17705
17706 *)
17707 lt_prog_compiler_can_build_shared_GCJ=no
17708 ;;
17709 esac
17710 fi
17711
17712 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
17713 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
17714
17715 #
17716 # Check to make sure the PIC flag actually works.
17717 #
17718 if test -n "$lt_prog_compiler_pic_GCJ"; then
17719
17720 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
17721 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
17722 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
17723 echo $ECHO_N "(cached) $ECHO_C" >&6
17724 else
17725 lt_prog_compiler_pic_works_GCJ=no
17726 ac_outfile=conftest.$ac_objext
17727 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17728 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
17729 # Insert the option either (1) after the last *FLAGS variable, or
17730 # (2) before a word containing "conftest.", or (3) at the end.
17731 # Note that $ac_compile itself does not contain backslashes and begins
17732 # with a dollar sign (not a hyphen), so the echo should work correctly.
17733 # The option is referenced via a variable to avoid confusing sed.
17734 lt_compile=`echo "$ac_compile" | $SED \
17735 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17736 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17737 -e 's:$: $lt_compiler_flag:'`
17738 (eval echo "\"\$as_me:17738: $lt_compile\"" >&5)
17739 (eval "$lt_compile" 2>conftest.err)
17740 ac_status=$?
17741 cat conftest.err >&5
17742 echo "$as_me:17742: \$? = $ac_status" >&5
17743 if (exit $ac_status) && test -s "$ac_outfile"; then
17744 # The compiler can only warn and ignore the option if not recognized
17745 # So say no if there are warnings
17746 if test ! -s conftest.err; then
17747 lt_prog_compiler_pic_works_GCJ=yes
17748 fi
17749 fi
17750 $rm conftest*
17751
17752 fi
17753 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
17754 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
17755
17756 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
17757 case $lt_prog_compiler_pic_GCJ in
17758 "" | " "*) ;;
17759 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
17760 esac
17761 else
17762 lt_prog_compiler_pic_GCJ=
17763 lt_prog_compiler_can_build_shared_GCJ=no
17764 fi
17765
17766 fi
17767 case "$host_os" in
17768 # For platforms which do not support PIC, -DPIC is meaningless:
17769 *djgpp*)
17770 lt_prog_compiler_pic_GCJ=
17771 ;;
17772 *)
17773 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
17774 ;;
17775 esac
17776
17777 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17778 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17779 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
17780 echo $ECHO_N "(cached) $ECHO_C" >&6
17781 else
17782 lt_cv_prog_compiler_c_o_GCJ=no
17783 $rm -r conftest 2>/dev/null
17784 mkdir conftest
17785 cd conftest
17786 mkdir out
17787 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
17788
17789 lt_compiler_flag="-o out/conftest2.$ac_objext"
17790 # Insert the option either (1) after the last *FLAGS variable, or
17791 # (2) before a word containing "conftest.", or (3) at the end.
17792 # Note that $ac_compile itself does not contain backslashes and begins
17793 # with a dollar sign (not a hyphen), so the echo should work correctly.
17794 lt_compile=`echo "$ac_compile" | $SED \
17795 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
17796 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17797 -e 's:$: $lt_compiler_flag:'`
17798 (eval echo "\"\$as_me:17798: $lt_compile\"" >&5)
17799 (eval "$lt_compile" 2>out/conftest.err)
17800 ac_status=$?
17801 cat out/conftest.err >&5
17802 echo "$as_me:17802: \$? = $ac_status" >&5
17803 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17804 then
17805 # The compiler can only warn and ignore the option if not recognized
17806 # So say no if there are warnings
17807 if test ! -s out/conftest.err; then
17808 lt_cv_prog_compiler_c_o_GCJ=yes
17809 fi
17810 fi
17811 chmod u+w .
17812 $rm conftest*
17813 # SGI C++ compiler will create directory out/ii_files/ for
17814 # template instantiation
17815 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
17816 $rm out/* && rmdir out
17817 cd ..
17818 rmdir conftest
17819 $rm conftest*
17820
17821 fi
17822 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
17823 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
17824
17825
17826 hard_links="nottested"
17827 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
17828 # do not overwrite the value of need_locks provided by the user
17829 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17830 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17831 hard_links=yes
17832 $rm conftest*
17833 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17834 touch conftest.a
17835 ln conftest.a conftest.b 2>&5 || hard_links=no
17836 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17837 echo "$as_me:$LINENO: result: $hard_links" >&5
17838 echo "${ECHO_T}$hard_links" >&6
17839 if test "$hard_links" = no; then
17840 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17841 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17842 need_locks=warn
17843 fi
17844 else
17845 need_locks=no
17846 fi
17847
17848 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17849 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17850
17851 runpath_var=
17852 allow_undefined_flag_GCJ=
17853 enable_shared_with_static_runtimes_GCJ=no
17854 archive_cmds_GCJ=
17855 archive_expsym_cmds_GCJ=
17856 old_archive_From_new_cmds_GCJ=
17857 old_archive_from_expsyms_cmds_GCJ=
17858 export_dynamic_flag_spec_GCJ=
17859 whole_archive_flag_spec_GCJ=
17860 thread_safe_flag_spec_GCJ=
17861 hardcode_libdir_flag_spec_GCJ=
17862 hardcode_libdir_flag_spec_ld_GCJ=
17863 hardcode_libdir_separator_GCJ=
17864 hardcode_direct_GCJ=no
17865 hardcode_minus_L_GCJ=no
17866 hardcode_shlibpath_var_GCJ=unsupported
17867 link_all_deplibs_GCJ=unknown
17868 hardcode_automatic_GCJ=no
17869 module_cmds_GCJ=
17870 module_expsym_cmds_GCJ=
17871 always_export_symbols_GCJ=no
17872 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17873 # include_expsyms should be a list of space-separated symbols to be *always*
17874 # included in the symbol list
17875 include_expsyms_GCJ=
17876 # exclude_expsyms can be an extended regexp of symbols to exclude
17877 # it will be wrapped by ` (' and `)$', so one must not match beginning or
17878 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
17879 # as well as any symbol that contains `d'.
17880 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
17881 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
17882 # platforms (ab)use it in PIC code, but their linkers get confused if
17883 # the symbol is explicitly referenced. Since portable code cannot
17884 # rely on this symbol name, it's probably fine to never include it in
17885 # preloaded symbol tables.
17886 extract_expsyms_cmds=
17887
17888 case $host_os in
17889 cygwin* | mingw* | pw32*)
17890 # FIXME: the MSVC++ port hasn't been tested in a loooong time
17891 # When not using gcc, we currently assume that we are using
17892 # Microsoft Visual C++.
17893 if test "$GCC" != yes; then
17894 with_gnu_ld=no
17895 fi
17896 ;;
17897 openbsd*)
17898 with_gnu_ld=no
17899 ;;
17900 esac
17901
17902 ld_shlibs_GCJ=yes
17903 if test "$with_gnu_ld" = yes; then
17904 # If archive_cmds runs LD, not CC, wlarc should be empty
17905 wlarc='${wl}'
17906
17907 # See if GNU ld supports shared libraries.
17908 case $host_os in
17909 aix3* | aix4* | aix5*)
17910 # On AIX/PPC, the GNU linker is very broken
17911 if test "$host_cpu" != ia64; then
17912 ld_shlibs_GCJ=no
17913 cat <<EOF 1>&2
17914
17915 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
17916 *** to be unable to reliably create shared libraries on AIX.
17917 *** Therefore, libtool is disabling shared libraries support. If you
17918 *** really care for shared libraries, you may want to modify your PATH
17919 *** so that a non-GNU linker is found, and then restart.
17920
17921 EOF
17922 fi
17923 ;;
17924
17925 amigaos*)
17926 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)'
17927 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17928 hardcode_minus_L_GCJ=yes
17929
17930 # Samuel A. Falvo II <[email protected]> reports
17931 # that the semantics of dynamic libraries on AmigaOS, at least up
17932 # to version 4, is to share data among multiple programs linked
17933 # with the same dynamic library. Since this doesn't match the
17934 # behavior of shared libraries on other platforms, we can't use
17935 # them.
17936 ld_shlibs_GCJ=no
17937 ;;
17938
17939 beos*)
17940 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17941 allow_undefined_flag_GCJ=unsupported
17942 # Joseph Beckenbach <[email protected]> says some releases of gcc
17943 # support --undefined. This deserves some investigation. FIXME
17944 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17945 else
17946 ld_shlibs_GCJ=no
17947 fi
17948 ;;
17949
17950 cygwin* | mingw* | pw32*)
17951 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
17952 # as there is no search path for DLLs.
17953 hardcode_libdir_flag_spec_GCJ='-L$libdir'
17954 allow_undefined_flag_GCJ=unsupported
17955 always_export_symbols_GCJ=no
17956 enable_shared_with_static_runtimes_GCJ=yes
17957 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
17958
17959 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
17960 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17961 # If the export-symbols file already is a .def file (1st line
17962 # is EXPORTS), use it as is; otherwise, prepend...
17963 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
17964 cp $export_symbols $output_objdir/$soname.def;
17965 else
17966 echo EXPORTS > $output_objdir/$soname.def;
17967 cat $export_symbols >> $output_objdir/$soname.def;
17968 fi~
17969 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
17970 else
17971 ld_shlibs=no
17972 fi
17973 ;;
17974
17975 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
17976 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17977 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
17978 wlarc=
17979 else
17980 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
17981 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
17982 fi
17983 ;;
17984
17985 solaris* | sysv5*)
17986 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
17987 ld_shlibs_GCJ=no
17988 cat <<EOF 1>&2
17989
17990 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
17991 *** create shared libraries on Solaris systems. Therefore, libtool
17992 *** is disabling shared libraries support. We urge you to upgrade GNU
17993 *** binutils to release 2.9.1 or newer. Another option is to modify
17994 *** your PATH or compiler configuration so that the native linker is
17995 *** used, and then restart.
17996
17997 EOF
17998 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
17999 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18000 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18001 else
18002 ld_shlibs_GCJ=no
18003 fi
18004 ;;
18005
18006 sunos4*)
18007 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18008 wlarc=
18009 hardcode_direct_GCJ=yes
18010 hardcode_shlibpath_var_GCJ=no
18011 ;;
18012
18013 linux*)
18014 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18015 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18016 archive_cmds_GCJ="$tmp_archive_cmds"
18017 supports_anon_versioning=no
18018 case `$LD -v 2>/dev/null` in
18019 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18020 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18021 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18022 *\ 2.11.*) ;; # other 2.11 versions
18023 *) supports_anon_versioning=yes ;;
18024 esac
18025 if test $supports_anon_versioning = yes; then
18026 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
18027 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18028 $echo "local: *; };" >> $output_objdir/$libname.ver~
18029 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18030 else
18031 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
18032 fi
18033 link_all_deplibs_GCJ=no
18034 else
18035 ld_shlibs_GCJ=no
18036 fi
18037 ;;
18038
18039 *)
18040 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
18041 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18042 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18043 else
18044 ld_shlibs_GCJ=no
18045 fi
18046 ;;
18047 esac
18048
18049 if test "$ld_shlibs_GCJ" = yes; then
18050 runpath_var=LD_RUN_PATH
18051 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
18052 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
18053 # ancient GNU ld didn't support --whole-archive et. al.
18054 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
18055 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18056 else
18057 whole_archive_flag_spec_GCJ=
18058 fi
18059 fi
18060 else
18061 # PORTME fill in a description of your system's linker (not GNU ld)
18062 case $host_os in
18063 aix3*)
18064 allow_undefined_flag_GCJ=unsupported
18065 always_export_symbols_GCJ=yes
18066 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'
18067 # Note: this linker hardcodes the directories in LIBPATH if there
18068 # are no directories specified by -L.
18069 hardcode_minus_L_GCJ=yes
18070 if test "$GCC" = yes && test -z "$link_static_flag"; then
18071 # Neither direct hardcoding nor static linking is supported with a
18072 # broken collect2.
18073 hardcode_direct_GCJ=unsupported
18074 fi
18075 ;;
18076
18077 aix4* | aix5*)
18078 if test "$host_cpu" = ia64; then
18079 # On IA64, the linker does run time linking by default, so we don't
18080 # have to do anything special.
18081 aix_use_runtimelinking=no
18082 exp_sym_flag='-Bexport'
18083 no_entry_flag=""
18084 else
18085 # If we're using GNU nm, then we don't want the "-C" option.
18086 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18087 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
18088 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'
18089 else
18090 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'
18091 fi
18092 aix_use_runtimelinking=no
18093
18094 # Test if we are trying to use run time linking or normal
18095 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18096 # need to do runtime linking.
18097 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
18098 for ld_flag in $LDFLAGS; do
18099 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18100 aix_use_runtimelinking=yes
18101 break
18102 fi
18103 done
18104 esac
18105
18106 exp_sym_flag='-bexport'
18107 no_entry_flag='-bnoentry'
18108 fi
18109
18110 # When large executables or shared objects are built, AIX ld can
18111 # have problems creating the table of contents. If linking a library
18112 # or program results in "error TOC overflow" add -mminimal-toc to
18113 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18114 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18115
18116 archive_cmds_GCJ=''
18117 hardcode_direct_GCJ=yes
18118 hardcode_libdir_separator_GCJ=':'
18119 link_all_deplibs_GCJ=yes
18120
18121 if test "$GCC" = yes; then
18122 case $host_os in aix4.012|aix4.012.*)
18123 # We only want to do this on AIX 4.2 and lower, the check
18124 # below for broken collect2 doesn't work under 4.3+
18125 collect2name=`${CC} -print-prog-name=collect2`
18126 if test -f "$collect2name" && \
18127 strings "$collect2name" | grep resolve_lib_name >/dev/null
18128 then
18129 # We have reworked collect2
18130 hardcode_direct_GCJ=yes
18131 else
18132 # We have old collect2
18133 hardcode_direct_GCJ=unsupported
18134 # It fails to find uninstalled libraries when the uninstalled
18135 # path is not listed in the libpath. Setting hardcode_minus_L
18136 # to unsupported forces relinking
18137 hardcode_minus_L_GCJ=yes
18138 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18139 hardcode_libdir_separator_GCJ=
18140 fi
18141 esac
18142 shared_flag='-shared'
18143 else
18144 # not using gcc
18145 if test "$host_cpu" = ia64; then
18146 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18147 # chokes on -Wl,-G. The following line is correct:
18148 shared_flag='-G'
18149 else
18150 if test "$aix_use_runtimelinking" = yes; then
18151 shared_flag='${wl}-G'
18152 else
18153 shared_flag='${wl}-bM:SRE'
18154 fi
18155 fi
18156 fi
18157
18158 # It seems that -bexpall does not export symbols beginning with
18159 # underscore (_), so it is better to generate a list of symbols to export.
18160 always_export_symbols_GCJ=yes
18161 if test "$aix_use_runtimelinking" = yes; then
18162 # Warning - without using the other runtime loading flags (-brtl),
18163 # -berok will link without error, but may produce a broken library.
18164 allow_undefined_flag_GCJ='-berok'
18165 # Determine the default libpath from the value encoded in an empty executable.
18166 cat >conftest.$ac_ext <<_ACEOF
18167 /* confdefs.h. */
18168 _ACEOF
18169 cat confdefs.h >>conftest.$ac_ext
18170 cat >>conftest.$ac_ext <<_ACEOF
18171 /* end confdefs.h. */
18172
18173 int
18174 main ()
18175 {
18176
18177 ;
18178 return 0;
18179 }
18180 _ACEOF
18181 rm -f conftest.$ac_objext conftest$ac_exeext
18182 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18183 (eval $ac_link) 2>conftest.er1
18184 ac_status=$?
18185 grep -v '^ *+' conftest.er1 >conftest.err
18186 rm -f conftest.er1
18187 cat conftest.err >&5
18188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18189 (exit $ac_status); } &&
18190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18192 (eval $ac_try) 2>&5
18193 ac_status=$?
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); }; } &&
18196 { ac_try='test -s conftest$ac_exeext'
18197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18198 (eval $ac_try) 2>&5
18199 ac_status=$?
18200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18201 (exit $ac_status); }; }; then
18202
18203 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18204 }'`
18205 # Check for a 64-bit object if we didn't find anything.
18206 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18207 }'`; fi
18208 else
18209 echo "$as_me: failed program was:" >&5
18210 sed 's/^/| /' conftest.$ac_ext >&5
18211
18212 fi
18213 rm -f conftest.err conftest.$ac_objext \
18214 conftest$ac_exeext conftest.$ac_ext
18215 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18216
18217 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18218 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18219 else
18220 if test "$host_cpu" = ia64; then
18221 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
18222 allow_undefined_flag_GCJ="-z nodefs"
18223 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
18224 else
18225 # Determine the default libpath from the value encoded in an empty executable.
18226 cat >conftest.$ac_ext <<_ACEOF
18227 /* confdefs.h. */
18228 _ACEOF
18229 cat confdefs.h >>conftest.$ac_ext
18230 cat >>conftest.$ac_ext <<_ACEOF
18231 /* end confdefs.h. */
18232
18233 int
18234 main ()
18235 {
18236
18237 ;
18238 return 0;
18239 }
18240 _ACEOF
18241 rm -f conftest.$ac_objext conftest$ac_exeext
18242 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18243 (eval $ac_link) 2>conftest.er1
18244 ac_status=$?
18245 grep -v '^ *+' conftest.er1 >conftest.err
18246 rm -f conftest.er1
18247 cat conftest.err >&5
18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18249 (exit $ac_status); } &&
18250 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18252 (eval $ac_try) 2>&5
18253 ac_status=$?
18254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18255 (exit $ac_status); }; } &&
18256 { ac_try='test -s conftest$ac_exeext'
18257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
18258 (eval $ac_try) 2>&5
18259 ac_status=$?
18260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18261 (exit $ac_status); }; }; then
18262
18263 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18264 }'`
18265 # Check for a 64-bit object if we didn't find anything.
18266 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
18267 }'`; fi
18268 else
18269 echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18271
18272 fi
18273 rm -f conftest.err conftest.$ac_objext \
18274 conftest$ac_exeext conftest.$ac_ext
18275 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18276
18277 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
18278 # Warning - without using the other run time loading flags,
18279 # -berok will link without error, but may produce a broken library.
18280 no_undefined_flag_GCJ=' ${wl}-bernotok'
18281 allow_undefined_flag_GCJ=' ${wl}-berok'
18282 # -bexpall does not export symbols beginning with underscore (_)
18283 always_export_symbols_GCJ=yes
18284 # Exported symbols can be pulled into shared objects from archives
18285 whole_archive_flag_spec_GCJ=' '
18286 archive_cmds_need_lc_GCJ=yes
18287 # This is similar to how AIX traditionally builds it's shared libraries.
18288 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
18289 fi
18290 fi
18291 ;;
18292
18293 amigaos*)
18294 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)'
18295 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18296 hardcode_minus_L_GCJ=yes
18297 # see comment about different semantics on the GNU ld section
18298 ld_shlibs_GCJ=no
18299 ;;
18300
18301 bsdi4*)
18302 export_dynamic_flag_spec_GCJ=-rdynamic
18303 ;;
18304
18305 cygwin* | mingw* | pw32*)
18306 # When not using gcc, we currently assume that we are using
18307 # Microsoft Visual C++.
18308 # hardcode_libdir_flag_spec is actually meaningless, as there is
18309 # no search path for DLLs.
18310 hardcode_libdir_flag_spec_GCJ=' '
18311 allow_undefined_flag_GCJ=unsupported
18312 # Tell ltmain to make .lib files, not .a files.
18313 libext=lib
18314 # Tell ltmain to make .dll files, not .so files.
18315 shrext_cmds=".dll"
18316 # FIXME: Setting linknames here is a bad hack.
18317 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
18318 # The linker will automatically build a .lib file if we build a DLL.
18319 old_archive_From_new_cmds_GCJ='true'
18320 # FIXME: Should let the user specify the lib program.
18321 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
18322 fix_srcfile_path='`cygpath -w "$srcfile"`'
18323 enable_shared_with_static_runtimes_GCJ=yes
18324 ;;
18325
18326 darwin* | rhapsody*)
18327 if test "$GXX" = yes ; then
18328 archive_cmds_need_lc_GCJ=no
18329 case "$host_os" in
18330 rhapsody* | darwin1.[012])
18331 allow_undefined_flag_GCJ='-undefined suppress'
18332 ;;
18333 *) # Darwin 1.3 on
18334 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
18335 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18336 else
18337 case ${MACOSX_DEPLOYMENT_TARGET} in
18338 10.[012])
18339 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
18340 ;;
18341 10.*)
18342 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
18343 ;;
18344 esac
18345 fi
18346 ;;
18347 esac
18348 lt_int_apple_cc_single_mod=no
18349 output_verbose_link_cmd='echo'
18350 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
18351 lt_int_apple_cc_single_mod=yes
18352 fi
18353 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18354 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
18355 else
18356 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
18357 fi
18358 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
18359 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
18360 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
18361 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18362 else
18363 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
18364 fi
18365 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}'
18366 hardcode_direct_GCJ=no
18367 hardcode_automatic_GCJ=yes
18368 hardcode_shlibpath_var_GCJ=unsupported
18369 whole_archive_flag_spec_GCJ='-all_load $convenience'
18370 link_all_deplibs_GCJ=yes
18371 else
18372 ld_shlibs_GCJ=no
18373 fi
18374 ;;
18375
18376 dgux*)
18377 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18378 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18379 hardcode_shlibpath_var_GCJ=no
18380 ;;
18381
18382 freebsd1*)
18383 ld_shlibs_GCJ=no
18384 ;;
18385
18386 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18387 # support. Future versions do this automatically, but an explicit c++rt0.o
18388 # does not break anything, and helps significantly (at the cost of a little
18389 # extra space).
18390 freebsd2.2*)
18391 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18392 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18393 hardcode_direct_GCJ=yes
18394 hardcode_shlibpath_var_GCJ=no
18395 ;;
18396
18397 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18398 freebsd2*)
18399 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18400 hardcode_direct_GCJ=yes
18401 hardcode_minus_L_GCJ=yes
18402 hardcode_shlibpath_var_GCJ=no
18403 ;;
18404
18405 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18406 freebsd* | kfreebsd*-gnu)
18407 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18408 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18409 hardcode_direct_GCJ=yes
18410 hardcode_shlibpath_var_GCJ=no
18411 ;;
18412
18413 hpux9*)
18414 if test "$GCC" = yes; then
18415 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'
18416 else
18417 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'
18418 fi
18419 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18420 hardcode_libdir_separator_GCJ=:
18421 hardcode_direct_GCJ=yes
18422
18423 # hardcode_minus_L: Not really in the search PATH,
18424 # but as the default location of the library.
18425 hardcode_minus_L_GCJ=yes
18426 export_dynamic_flag_spec_GCJ='${wl}-E'
18427 ;;
18428
18429 hpux10* | hpux11*)
18430 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18431 case "$host_cpu" in
18432 hppa*64*|ia64*)
18433 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18434 ;;
18435 *)
18436 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18437 ;;
18438 esac
18439 else
18440 case "$host_cpu" in
18441 hppa*64*|ia64*)
18442 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
18443 ;;
18444 *)
18445 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18446 ;;
18447 esac
18448 fi
18449 if test "$with_gnu_ld" = no; then
18450 case "$host_cpu" in
18451 hppa*64*)
18452 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18453 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
18454 hardcode_libdir_separator_GCJ=:
18455 hardcode_direct_GCJ=no
18456 hardcode_shlibpath_var_GCJ=no
18457 ;;
18458 ia64*)
18459 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18460 hardcode_direct_GCJ=no
18461 hardcode_shlibpath_var_GCJ=no
18462
18463 # hardcode_minus_L: Not really in the search PATH,
18464 # but as the default location of the library.
18465 hardcode_minus_L_GCJ=yes
18466 ;;
18467 *)
18468 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
18469 hardcode_libdir_separator_GCJ=:
18470 hardcode_direct_GCJ=yes
18471 export_dynamic_flag_spec_GCJ='${wl}-E'
18472
18473 # hardcode_minus_L: Not really in the search PATH,
18474 # but as the default location of the library.
18475 hardcode_minus_L_GCJ=yes
18476 ;;
18477 esac
18478 fi
18479 ;;
18480
18481 irix5* | irix6* | nonstopux*)
18482 if test "$GCC" = yes; then
18483 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'
18484 else
18485 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'
18486 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
18487 fi
18488 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18489 hardcode_libdir_separator_GCJ=:
18490 link_all_deplibs_GCJ=yes
18491 ;;
18492
18493 netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
18494 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
18495 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
18496 else
18497 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
18498 fi
18499 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18500 hardcode_direct_GCJ=yes
18501 hardcode_shlibpath_var_GCJ=no
18502 ;;
18503
18504 newsos6)
18505 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18506 hardcode_direct_GCJ=yes
18507 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18508 hardcode_libdir_separator_GCJ=:
18509 hardcode_shlibpath_var_GCJ=no
18510 ;;
18511
18512 openbsd*)
18513 hardcode_direct_GCJ=yes
18514 hardcode_shlibpath_var_GCJ=no
18515 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18516 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18517 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18518 export_dynamic_flag_spec_GCJ='${wl}-E'
18519 else
18520 case $host_os in
18521 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
18522 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18523 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18524 ;;
18525 *)
18526 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
18527 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
18528 ;;
18529 esac
18530 fi
18531 ;;
18532
18533 os2*)
18534 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18535 hardcode_minus_L_GCJ=yes
18536 allow_undefined_flag_GCJ=unsupported
18537 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'
18538 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
18539 ;;
18540
18541 osf3*)
18542 if test "$GCC" = yes; then
18543 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18544 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'
18545 else
18546 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18547 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'
18548 fi
18549 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18550 hardcode_libdir_separator_GCJ=:
18551 ;;
18552
18553 osf4* | osf5*) # as osf3* with the addition of -msym flag
18554 if test "$GCC" = yes; then
18555 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
18556 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'
18557 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
18558 else
18559 allow_undefined_flag_GCJ=' -expect_unresolved \*'
18560 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'
18561 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~
18562 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
18563
18564 # Both c and cxx compiler support -rpath directly
18565 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
18566 fi
18567 hardcode_libdir_separator_GCJ=:
18568 ;;
18569
18570 sco3.2v5*)
18571 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18572 hardcode_shlibpath_var_GCJ=no
18573 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
18574 runpath_var=LD_RUN_PATH
18575 hardcode_runpath_var=yes
18576 ;;
18577
18578 solaris*)
18579 no_undefined_flag_GCJ=' -z text'
18580 if test "$GCC" = yes; then
18581 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18582 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18583 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
18584 else
18585 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18586 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18587 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18588 fi
18589 hardcode_libdir_flag_spec_GCJ='-R$libdir'
18590 hardcode_shlibpath_var_GCJ=no
18591 case $host_os in
18592 solaris2.[0-5] | solaris2.[0-5].*) ;;
18593 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
18594 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
18595 esac
18596 link_all_deplibs_GCJ=yes
18597 ;;
18598
18599 sunos4*)
18600 if test "x$host_vendor" = xsequent; then
18601 # Use $CC to link under sequent, because it throws in some extra .o
18602 # files that make .init and .fini sections work.
18603 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
18604 else
18605 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
18606 fi
18607 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18608 hardcode_direct_GCJ=yes
18609 hardcode_minus_L_GCJ=yes
18610 hardcode_shlibpath_var_GCJ=no
18611 ;;
18612
18613 sysv4)
18614 case $host_vendor in
18615 sni)
18616 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18617 hardcode_direct_GCJ=yes # is this really true???
18618 ;;
18619 siemens)
18620 ## LD is ld it makes a PLAMLIB
18621 ## CC just makes a GrossModule.
18622 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18623 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
18624 hardcode_direct_GCJ=no
18625 ;;
18626 motorola)
18627 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18628 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
18629 ;;
18630 esac
18631 runpath_var='LD_RUN_PATH'
18632 hardcode_shlibpath_var_GCJ=no
18633 ;;
18634
18635 sysv4.3*)
18636 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18637 hardcode_shlibpath_var_GCJ=no
18638 export_dynamic_flag_spec_GCJ='-Bexport'
18639 ;;
18640
18641 sysv4*MP*)
18642 if test -d /usr/nec; then
18643 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18644 hardcode_shlibpath_var_GCJ=no
18645 runpath_var=LD_RUN_PATH
18646 hardcode_runpath_var=yes
18647 ld_shlibs_GCJ=yes
18648 fi
18649 ;;
18650
18651 sysv4.2uw2*)
18652 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
18653 hardcode_direct_GCJ=yes
18654 hardcode_minus_L_GCJ=no
18655 hardcode_shlibpath_var_GCJ=no
18656 hardcode_runpath_var=yes
18657 runpath_var=LD_RUN_PATH
18658 ;;
18659
18660 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
18661 no_undefined_flag_GCJ='${wl}-z ${wl}text'
18662 if test "$GCC" = yes; then
18663 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18664 else
18665 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18666 fi
18667 runpath_var='LD_RUN_PATH'
18668 hardcode_shlibpath_var_GCJ=no
18669 ;;
18670
18671 sysv5*)
18672 no_undefined_flag_GCJ=' -z text'
18673 # $CC -shared without GNU ld will not create a library from C++
18674 # object files and a static libstdc++, better avoid it by now
18675 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
18676 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
18677 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
18678 hardcode_libdir_flag_spec_GCJ=
18679 hardcode_shlibpath_var_GCJ=no
18680 runpath_var='LD_RUN_PATH'
18681 ;;
18682
18683 uts4*)
18684 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18685 hardcode_libdir_flag_spec_GCJ='-L$libdir'
18686 hardcode_shlibpath_var_GCJ=no
18687 ;;
18688
18689 *)
18690 ld_shlibs_GCJ=no
18691 ;;
18692 esac
18693 fi
18694
18695 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
18696 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
18697 test "$ld_shlibs_GCJ" = no && can_build_shared=no
18698
18699 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
18700 if test "$GCC" = yes; then
18701 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18702 fi
18703
18704 #
18705 # Do we need to explicitly link libc?
18706 #
18707 case "x$archive_cmds_need_lc_GCJ" in
18708 x|xyes)
18709 # Assume -lc should be added
18710 archive_cmds_need_lc_GCJ=yes
18711
18712 if test "$enable_shared" = yes && test "$GCC" = yes; then
18713 case $archive_cmds_GCJ in
18714 *'~'*)
18715 # FIXME: we may have to deal with multi-command sequences.
18716 ;;
18717 '$CC '*)
18718 # Test whether the compiler implicitly links with -lc since on some
18719 # systems, -lgcc has to come before -lc. If gcc already passes -lc
18720 # to ld, don't add -lc before -lgcc.
18721 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
18722 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
18723 $rm conftest*
18724 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18725
18726 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
18727 (eval $ac_compile) 2>&5
18728 ac_status=$?
18729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18730 (exit $ac_status); } 2>conftest.err; then
18731 soname=conftest
18732 lib=conftest
18733 libobjs=conftest.$ac_objext
18734 deplibs=
18735 wl=$lt_prog_compiler_wl_GCJ
18736 compiler_flags=-v
18737 linker_flags=-v
18738 verstring=
18739 output_objdir=.
18740 libname=conftest
18741 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
18742 allow_undefined_flag_GCJ=
18743 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
18744 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
18745 ac_status=$?
18746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18747 (exit $ac_status); }
18748 then
18749 archive_cmds_need_lc_GCJ=no
18750 else
18751 archive_cmds_need_lc_GCJ=yes
18752 fi
18753 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
18754 else
18755 cat conftest.err 1>&5
18756 fi
18757 $rm conftest*
18758 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
18759 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
18760 ;;
18761 esac
18762 fi
18763 ;;
18764 esac
18765
18766 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
18767 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
18768 library_names_spec=
18769 libname_spec='lib$name'
18770 soname_spec=
18771 shrext_cmds=".so"
18772 postinstall_cmds=
18773 postuninstall_cmds=
18774 finish_cmds=
18775 finish_eval=
18776 shlibpath_var=
18777 shlibpath_overrides_runpath=unknown
18778 version_type=none
18779 dynamic_linker="$host_os ld.so"
18780 sys_lib_dlsearch_path_spec="/lib /usr/lib"
18781 if test "$GCC" = yes; then
18782 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18783 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
18784 # if the path contains ";" then we assume it to be the separator
18785 # otherwise default to the standard path separator (i.e. ":") - it is
18786 # assumed that no part of a normal pathname contains ";" but that should
18787 # okay in the real world where ";" in dirpaths is itself problematic.
18788 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18789 else
18790 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18791 fi
18792 else
18793 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
18794 fi
18795 need_lib_prefix=unknown
18796 hardcode_into_libs=no
18797
18798 # when you set need_version to no, make sure it does not cause -set_version
18799 # flags to be left without arguments
18800 need_version=unknown
18801
18802 case $host_os in
18803 aix3*)
18804 version_type=linux
18805 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
18806 shlibpath_var=LIBPATH
18807
18808 # AIX 3 has no versioning support, so we append a major version to the name.
18809 soname_spec='${libname}${release}${shared_ext}$major'
18810 ;;
18811
18812 aix4* | aix5*)
18813 version_type=linux
18814 need_lib_prefix=no
18815 need_version=no
18816 hardcode_into_libs=yes
18817 if test "$host_cpu" = ia64; then
18818 # AIX 5 supports IA64
18819 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
18820 shlibpath_var=LD_LIBRARY_PATH
18821 else
18822 # With GCC up to 2.95.x, collect2 would create an import file
18823 # for dependence libraries. The import file would start with
18824 # the line `#! .'. This would cause the generated library to
18825 # depend on `.', always an invalid library. This was fixed in
18826 # development snapshots of GCC prior to 3.0.
18827 case $host_os in
18828 aix4 | aix4.[01] | aix4.[01].*)
18829 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
18830 echo ' yes '
18831 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
18832 :
18833 else
18834 can_build_shared=no
18835 fi
18836 ;;
18837 esac
18838 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
18839 # soname into executable. Probably we can add versioning support to
18840 # collect2, so additional links can be useful in future.
18841 if test "$aix_use_runtimelinking" = yes; then
18842 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
18843 # instead of lib<name>.a to let people know that these are not
18844 # typical AIX shared libraries.
18845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18846 else
18847 # We preserve .a as extension for shared libraries through AIX4.2
18848 # and later when we are not doing run time linking.
18849 library_names_spec='${libname}${release}.a $libname.a'
18850 soname_spec='${libname}${release}${shared_ext}$major'
18851 fi
18852 shlibpath_var=LIBPATH
18853 fi
18854 ;;
18855
18856 amigaos*)
18857 library_names_spec='$libname.ixlibrary $libname.a'
18858 # Create ${libname}_ixlibrary.a entries in /sys/libs.
18859 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'
18860 ;;
18861
18862 beos*)
18863 library_names_spec='${libname}${shared_ext}'
18864 dynamic_linker="$host_os ld.so"
18865 shlibpath_var=LIBRARY_PATH
18866 ;;
18867
18868 bsdi4*)
18869 version_type=linux
18870 need_version=no
18871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18872 soname_spec='${libname}${release}${shared_ext}$major'
18873 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
18874 shlibpath_var=LD_LIBRARY_PATH
18875 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
18876 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
18877 # the default ld.so.conf also contains /usr/contrib/lib and
18878 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
18879 # libtool to hard-code these into programs
18880 ;;
18881
18882 cygwin* | mingw* | pw32*)
18883 version_type=windows
18884 shrext_cmds=".dll"
18885 need_version=no
18886 need_lib_prefix=no
18887
18888 case $GCC,$host_os in
18889 yes,cygwin* | yes,mingw* | yes,pw32*)
18890 library_names_spec='$libname.dll.a'
18891 # DLL is installed to $(libdir)/../bin by postinstall_cmds
18892 postinstall_cmds='base_file=`basename \${file}`~
18893 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
18894 dldir=$destdir/`dirname \$dlpath`~
18895 test -d \$dldir || mkdir -p \$dldir~
18896 $install_prog $dir/$dlname \$dldir/$dlname'
18897 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
18898 dlpath=$dir/\$dldll~
18899 $rm \$dlpath'
18900 shlibpath_overrides_runpath=yes
18901
18902 case $host_os in
18903 cygwin*)
18904 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
18905 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18906 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
18907 ;;
18908 mingw*)
18909 # MinGW DLLs use traditional 'lib' prefix
18910 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
18911 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
18912 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
18913 # It is most probably a Windows format PATH printed by
18914 # mingw gcc, but we are running on Cygwin. Gcc prints its search
18915 # path with ; separators, and with drive letters. We can handle the
18916 # drive letters (cygwin fileutils understands them), so leave them,
18917 # especially as we might pass files found there to a mingw objdump,
18918 # which wouldn't understand a cygwinified path. Ahh.
18919 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
18920 else
18921 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
18922 fi
18923 ;;
18924 pw32*)
18925 # pw32 DLLs use 'pw' prefix rather than 'lib'
18926 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
18927 ;;
18928 esac
18929 ;;
18930
18931 *)
18932 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
18933 ;;
18934 esac
18935 dynamic_linker='Win32 ld.exe'
18936 # FIXME: first we should search . and the directory the executable is in
18937 shlibpath_var=PATH
18938 ;;
18939
18940 darwin* | rhapsody*)
18941 dynamic_linker="$host_os dyld"
18942 version_type=darwin
18943 need_lib_prefix=no
18944 need_version=no
18945 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
18946 soname_spec='${libname}${release}${major}$shared_ext'
18947 shlibpath_overrides_runpath=yes
18948 shlibpath_var=DYLD_LIBRARY_PATH
18949 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
18950 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
18951 if test "$GCC" = yes; then
18952 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
18953 else
18954 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
18955 fi
18956 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
18957 ;;
18958
18959 dgux*)
18960 version_type=linux
18961 need_lib_prefix=no
18962 need_version=no
18963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
18964 soname_spec='${libname}${release}${shared_ext}$major'
18965 shlibpath_var=LD_LIBRARY_PATH
18966 ;;
18967
18968 freebsd1*)
18969 dynamic_linker=no
18970 ;;
18971
18972 kfreebsd*-gnu)
18973 version_type=linux
18974 need_lib_prefix=no
18975 need_version=no
18976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18977 soname_spec='${libname}${release}${shared_ext}$major'
18978 shlibpath_var=LD_LIBRARY_PATH
18979 shlibpath_overrides_runpath=no
18980 hardcode_into_libs=yes
18981 dynamic_linker='GNU ld.so'
18982 ;;
18983
18984 freebsd*)
18985 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
18986 version_type=freebsd-$objformat
18987 case $version_type in
18988 freebsd-elf*)
18989 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18990 need_version=no
18991 need_lib_prefix=no
18992 ;;
18993 freebsd-*)
18994 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
18995 need_version=yes
18996 ;;
18997 esac
18998 shlibpath_var=LD_LIBRARY_PATH
18999 case $host_os in
19000 freebsd2*)
19001 shlibpath_overrides_runpath=yes
19002 ;;
19003 freebsd3.01* | freebsdelf3.01*)
19004 shlibpath_overrides_runpath=yes
19005 hardcode_into_libs=yes
19006 ;;
19007 *) # from 3.2 on
19008 shlibpath_overrides_runpath=no
19009 hardcode_into_libs=yes
19010 ;;
19011 esac
19012 ;;
19013
19014 gnu*)
19015 version_type=linux
19016 need_lib_prefix=no
19017 need_version=no
19018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19019 soname_spec='${libname}${release}${shared_ext}$major'
19020 shlibpath_var=LD_LIBRARY_PATH
19021 hardcode_into_libs=yes
19022 ;;
19023
19024 hpux9* | hpux10* | hpux11*)
19025 # Give a soname corresponding to the major version so that dld.sl refuses to
19026 # link against other versions.
19027 version_type=sunos
19028 need_lib_prefix=no
19029 need_version=no
19030 case "$host_cpu" in
19031 ia64*)
19032 shrext_cmds='.so'
19033 hardcode_into_libs=yes
19034 dynamic_linker="$host_os dld.so"
19035 shlibpath_var=LD_LIBRARY_PATH
19036 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19037 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19038 soname_spec='${libname}${release}${shared_ext}$major'
19039 if test "X$HPUX_IA64_MODE" = X32; then
19040 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19041 else
19042 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19043 fi
19044 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19045 ;;
19046 hppa*64*)
19047 shrext_cmds='.sl'
19048 hardcode_into_libs=yes
19049 dynamic_linker="$host_os dld.sl"
19050 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19051 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19052 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19053 soname_spec='${libname}${release}${shared_ext}$major'
19054 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19055 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19056 ;;
19057 *)
19058 shrext_cmds='.sl'
19059 dynamic_linker="$host_os dld.sl"
19060 shlibpath_var=SHLIB_PATH
19061 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19062 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19063 soname_spec='${libname}${release}${shared_ext}$major'
19064 ;;
19065 esac
19066 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19067 postinstall_cmds='chmod 555 $lib'
19068 ;;
19069
19070 irix5* | irix6* | nonstopux*)
19071 case $host_os in
19072 nonstopux*) version_type=nonstopux ;;
19073 *)
19074 if test "$lt_cv_prog_gnu_ld" = yes; then
19075 version_type=linux
19076 else
19077 version_type=irix
19078 fi ;;
19079 esac
19080 need_lib_prefix=no
19081 need_version=no
19082 soname_spec='${libname}${release}${shared_ext}$major'
19083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19084 case $host_os in
19085 irix5* | nonstopux*)
19086 libsuff= shlibsuff=
19087 ;;
19088 *)
19089 case $LD in # libtool.m4 will add one of these switches to LD
19090 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19091 libsuff= shlibsuff= libmagic=32-bit;;
19092 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19093 libsuff=32 shlibsuff=N32 libmagic=N32;;
19094 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19095 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19096 *) libsuff= shlibsuff= libmagic=never-match;;
19097 esac
19098 ;;
19099 esac
19100 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19101 shlibpath_overrides_runpath=no
19102 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19103 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19104 hardcode_into_libs=yes
19105 ;;
19106
19107 # No shared lib support for Linux oldld, aout, or coff.
19108 linux*oldld* | linux*aout* | linux*coff*)
19109 dynamic_linker=no
19110 ;;
19111
19112 # This must be Linux ELF.
19113 linux*)
19114 version_type=linux
19115 need_lib_prefix=no
19116 need_version=no
19117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19118 soname_spec='${libname}${release}${shared_ext}$major'
19119 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19120 shlibpath_var=LD_LIBRARY_PATH
19121 shlibpath_overrides_runpath=no
19122 # This implies no fast_install, which is unacceptable.
19123 # Some rework will be needed to allow for fast_install
19124 # before this can be enabled.
19125 hardcode_into_libs=yes
19126
19127 # Append ld.so.conf contents to the search path
19128 if test -f /etc/ld.so.conf; then
19129 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
19130 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19131 fi
19132
19133 # We used to test for /lib/ld.so.1 and disable shared libraries on
19134 # powerpc, because MkLinux only supported shared libraries with the
19135 # GNU dynamic linker. Since this was broken with cross compilers,
19136 # most powerpc-linux boxes support dynamic linking these days and
19137 # people can always --disable-shared, the test was removed, and we
19138 # assume the GNU/Linux dynamic linker is in use.
19139 dynamic_linker='GNU/Linux ld.so'
19140 ;;
19141
19142 netbsdelf*-gnu)
19143 version_type=linux
19144 need_lib_prefix=no
19145 need_version=no
19146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19147 soname_spec='${libname}${release}${shared_ext}$major'
19148 shlibpath_var=LD_LIBRARY_PATH
19149 shlibpath_overrides_runpath=no
19150 hardcode_into_libs=yes
19151 dynamic_linker='NetBSD ld.elf_so'
19152 ;;
19153
19154 knetbsd*-gnu)
19155 version_type=linux
19156 need_lib_prefix=no
19157 need_version=no
19158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19159 soname_spec='${libname}${release}${shared_ext}$major'
19160 shlibpath_var=LD_LIBRARY_PATH
19161 shlibpath_overrides_runpath=no
19162 hardcode_into_libs=yes
19163 dynamic_linker='GNU ld.so'
19164 ;;
19165
19166 netbsd*)
19167 version_type=sunos
19168 need_lib_prefix=no
19169 need_version=no
19170 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19171 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19172 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19173 dynamic_linker='NetBSD (a.out) ld.so'
19174 else
19175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19176 soname_spec='${libname}${release}${shared_ext}$major'
19177 dynamic_linker='NetBSD ld.elf_so'
19178 fi
19179 shlibpath_var=LD_LIBRARY_PATH
19180 shlibpath_overrides_runpath=yes
19181 hardcode_into_libs=yes
19182 ;;
19183
19184 newsos6)
19185 version_type=linux
19186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19187 shlibpath_var=LD_LIBRARY_PATH
19188 shlibpath_overrides_runpath=yes
19189 ;;
19190
19191 nto-qnx*)
19192 version_type=linux
19193 need_lib_prefix=no
19194 need_version=no
19195 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19196 soname_spec='${libname}${release}${shared_ext}$major'
19197 shlibpath_var=LD_LIBRARY_PATH
19198 shlibpath_overrides_runpath=yes
19199 ;;
19200
19201 openbsd*)
19202 version_type=sunos
19203 need_lib_prefix=no
19204 need_version=yes
19205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19206 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19207 shlibpath_var=LD_LIBRARY_PATH
19208 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19209 case $host_os in
19210 openbsd2.[89] | openbsd2.[89].*)
19211 shlibpath_overrides_runpath=no
19212 ;;
19213 *)
19214 shlibpath_overrides_runpath=yes
19215 ;;
19216 esac
19217 else
19218 shlibpath_overrides_runpath=yes
19219 fi
19220 ;;
19221
19222 os2*)
19223 libname_spec='$name'
19224 shrext_cmds=".dll"
19225 need_lib_prefix=no
19226 library_names_spec='$libname${shared_ext} $libname.a'
19227 dynamic_linker='OS/2 ld.exe'
19228 shlibpath_var=LIBPATH
19229 ;;
19230
19231 osf3* | osf4* | osf5*)
19232 version_type=osf
19233 need_lib_prefix=no
19234 need_version=no
19235 soname_spec='${libname}${release}${shared_ext}$major'
19236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19237 shlibpath_var=LD_LIBRARY_PATH
19238 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19239 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19240 ;;
19241
19242 sco3.2v5*)
19243 version_type=osf
19244 soname_spec='${libname}${release}${shared_ext}$major'
19245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19246 shlibpath_var=LD_LIBRARY_PATH
19247 ;;
19248
19249 solaris*)
19250 version_type=linux
19251 need_lib_prefix=no
19252 need_version=no
19253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19254 soname_spec='${libname}${release}${shared_ext}$major'
19255 shlibpath_var=LD_LIBRARY_PATH
19256 shlibpath_overrides_runpath=yes
19257 hardcode_into_libs=yes
19258 # ldd complains unless libraries are executable
19259 postinstall_cmds='chmod +x $lib'
19260 ;;
19261
19262 sunos4*)
19263 version_type=sunos
19264 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19265 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19266 shlibpath_var=LD_LIBRARY_PATH
19267 shlibpath_overrides_runpath=yes
19268 if test "$with_gnu_ld" = yes; then
19269 need_lib_prefix=no
19270 fi
19271 need_version=yes
19272 ;;
19273
19274 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19275 version_type=linux
19276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19277 soname_spec='${libname}${release}${shared_ext}$major'
19278 shlibpath_var=LD_LIBRARY_PATH
19279 case $host_vendor in
19280 sni)
19281 shlibpath_overrides_runpath=no
19282 need_lib_prefix=no
19283 export_dynamic_flag_spec='${wl}-Blargedynsym'
19284 runpath_var=LD_RUN_PATH
19285 ;;
19286 siemens)
19287 need_lib_prefix=no
19288 ;;
19289 motorola)
19290 need_lib_prefix=no
19291 need_version=no
19292 shlibpath_overrides_runpath=no
19293 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19294 ;;
19295 esac
19296 ;;
19297
19298 sysv4*MP*)
19299 if test -d /usr/nec ;then
19300 version_type=linux
19301 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19302 soname_spec='$libname${shared_ext}.$major'
19303 shlibpath_var=LD_LIBRARY_PATH
19304 fi
19305 ;;
19306
19307 uts4*)
19308 version_type=linux
19309 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19310 soname_spec='${libname}${release}${shared_ext}$major'
19311 shlibpath_var=LD_LIBRARY_PATH
19312 ;;
19313
19314 *)
19315 dynamic_linker=no
19316 ;;
19317 esac
19318 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
19319 echo "${ECHO_T}$dynamic_linker" >&6
19320 test "$dynamic_linker" = no && can_build_shared=no
19321
19322 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
19323 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
19324 hardcode_action_GCJ=
19325 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
19326 test -n "$runpath_var GCJ" || \
19327 test "X$hardcode_automatic_GCJ"="Xyes" ; then
19328
19329 # We can hardcode non-existant directories.
19330 if test "$hardcode_direct_GCJ" != no &&
19331 # If the only mechanism to avoid hardcoding is shlibpath_var, we
19332 # have to relink, otherwise we might link with an installed library
19333 # when we should be linking with a yet-to-be-installed one
19334 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
19335 test "$hardcode_minus_L_GCJ" != no; then
19336 # Linking always hardcodes the temporary library directory.
19337 hardcode_action_GCJ=relink
19338 else
19339 # We can link without hardcoding, and we can hardcode nonexisting dirs.
19340 hardcode_action_GCJ=immediate
19341 fi
19342 else
19343 # We cannot hardcode anything, or else we can only hardcode existing
19344 # directories.
19345 hardcode_action_GCJ=unsupported
19346 fi
19347 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
19348 echo "${ECHO_T}$hardcode_action_GCJ" >&6
19349
19350 if test "$hardcode_action_GCJ" = relink; then
19351 # Fast installation is not supported
19352 enable_fast_install=no
19353 elif test "$shlibpath_overrides_runpath" = yes ||
19354 test "$enable_shared" = no; then
19355 # Fast installation is not necessary
19356 enable_fast_install=needless
19357 fi
19358
19359 striplib=
19360 old_striplib=
19361 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
19362 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
19363 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
19364 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
19365 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
19366 echo "$as_me:$LINENO: result: yes" >&5
19367 echo "${ECHO_T}yes" >&6
19368 else
19369 # FIXME - insert some real tests, host_os isn't really good enough
19370 case $host_os in
19371 darwin*)
19372 if test -n "$STRIP" ; then
19373 striplib="$STRIP -x"
19374 echo "$as_me:$LINENO: result: yes" >&5
19375 echo "${ECHO_T}yes" >&6
19376 else
19377 echo "$as_me:$LINENO: result: no" >&5
19378 echo "${ECHO_T}no" >&6
19379 fi
19380 ;;
19381 *)
19382 echo "$as_me:$LINENO: result: no" >&5
19383 echo "${ECHO_T}no" >&6
19384 ;;
19385 esac
19386 fi
19387
19388 if test "x$enable_dlopen" != xyes; then
19389 enable_dlopen=unknown
19390 enable_dlopen_self=unknown
19391 enable_dlopen_self_static=unknown
19392 else
19393 lt_cv_dlopen=no
19394 lt_cv_dlopen_libs=
19395
19396 case $host_os in
19397 beos*)
19398 lt_cv_dlopen="load_add_on"
19399 lt_cv_dlopen_libs=
19400 lt_cv_dlopen_self=yes
19401 ;;
19402
19403 mingw* | pw32*)
19404 lt_cv_dlopen="LoadLibrary"
19405 lt_cv_dlopen_libs=
19406 ;;
19407
19408 cygwin*)
19409 lt_cv_dlopen="dlopen"
19410 lt_cv_dlopen_libs=
19411 ;;
19412
19413 darwin*)
19414 # if libdl is installed we need to link against it
19415 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19416 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19417 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19418 echo $ECHO_N "(cached) $ECHO_C" >&6
19419 else
19420 ac_check_lib_save_LIBS=$LIBS
19421 LIBS="-ldl $LIBS"
19422 cat >conftest.$ac_ext <<_ACEOF
19423 /* confdefs.h. */
19424 _ACEOF
19425 cat confdefs.h >>conftest.$ac_ext
19426 cat >>conftest.$ac_ext <<_ACEOF
19427 /* end confdefs.h. */
19428
19429 /* Override any gcc2 internal prototype to avoid an error. */
19430 #ifdef __cplusplus
19431 extern "C"
19432 #endif
19433 /* We use char because int might match the return type of a gcc2
19434 builtin and then its argument prototype would still apply. */
19435 char dlopen ();
19436 int
19437 main ()
19438 {
19439 dlopen ();
19440 ;
19441 return 0;
19442 }
19443 _ACEOF
19444 rm -f conftest.$ac_objext conftest$ac_exeext
19445 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19446 (eval $ac_link) 2>conftest.er1
19447 ac_status=$?
19448 grep -v '^ *+' conftest.er1 >conftest.err
19449 rm -f conftest.er1
19450 cat conftest.err >&5
19451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19452 (exit $ac_status); } &&
19453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19455 (eval $ac_try) 2>&5
19456 ac_status=$?
19457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19458 (exit $ac_status); }; } &&
19459 { ac_try='test -s conftest$ac_exeext'
19460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19461 (eval $ac_try) 2>&5
19462 ac_status=$?
19463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19464 (exit $ac_status); }; }; then
19465 ac_cv_lib_dl_dlopen=yes
19466 else
19467 echo "$as_me: failed program was:" >&5
19468 sed 's/^/| /' conftest.$ac_ext >&5
19469
19470 ac_cv_lib_dl_dlopen=no
19471 fi
19472 rm -f conftest.err conftest.$ac_objext \
19473 conftest$ac_exeext conftest.$ac_ext
19474 LIBS=$ac_check_lib_save_LIBS
19475 fi
19476 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19477 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19478 if test $ac_cv_lib_dl_dlopen = yes; then
19479 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19480 else
19481
19482 lt_cv_dlopen="dyld"
19483 lt_cv_dlopen_libs=
19484 lt_cv_dlopen_self=yes
19485
19486 fi
19487
19488 ;;
19489
19490 *)
19491 echo "$as_me:$LINENO: checking for shl_load" >&5
19492 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
19493 if test "${ac_cv_func_shl_load+set}" = set; then
19494 echo $ECHO_N "(cached) $ECHO_C" >&6
19495 else
19496 cat >conftest.$ac_ext <<_ACEOF
19497 /* confdefs.h. */
19498 _ACEOF
19499 cat confdefs.h >>conftest.$ac_ext
19500 cat >>conftest.$ac_ext <<_ACEOF
19501 /* end confdefs.h. */
19502 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
19503 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19504 #define shl_load innocuous_shl_load
19505
19506 /* System header to define __stub macros and hopefully few prototypes,
19507 which can conflict with char shl_load (); below.
19508 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19509 <limits.h> exists even on freestanding compilers. */
19510
19511 #ifdef __STDC__
19512 # include <limits.h>
19513 #else
19514 # include <assert.h>
19515 #endif
19516
19517 #undef shl_load
19518
19519 /* Override any gcc2 internal prototype to avoid an error. */
19520 #ifdef __cplusplus
19521 extern "C"
19522 {
19523 #endif
19524 /* We use char because int might match the return type of a gcc2
19525 builtin and then its argument prototype would still apply. */
19526 char shl_load ();
19527 /* The GNU C library defines this for functions which it implements
19528 to always fail with ENOSYS. Some functions are actually named
19529 something starting with __ and the normal name is an alias. */
19530 #if defined (__stub_shl_load) || defined (__stub___shl_load)
19531 choke me
19532 #else
19533 char (*f) () = shl_load;
19534 #endif
19535 #ifdef __cplusplus
19536 }
19537 #endif
19538
19539 int
19540 main ()
19541 {
19542 return f != shl_load;
19543 ;
19544 return 0;
19545 }
19546 _ACEOF
19547 rm -f conftest.$ac_objext conftest$ac_exeext
19548 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19549 (eval $ac_link) 2>conftest.er1
19550 ac_status=$?
19551 grep -v '^ *+' conftest.er1 >conftest.err
19552 rm -f conftest.er1
19553 cat conftest.err >&5
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); } &&
19556 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19558 (eval $ac_try) 2>&5
19559 ac_status=$?
19560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19561 (exit $ac_status); }; } &&
19562 { ac_try='test -s conftest$ac_exeext'
19563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19564 (eval $ac_try) 2>&5
19565 ac_status=$?
19566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19567 (exit $ac_status); }; }; then
19568 ac_cv_func_shl_load=yes
19569 else
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19572
19573 ac_cv_func_shl_load=no
19574 fi
19575 rm -f conftest.err conftest.$ac_objext \
19576 conftest$ac_exeext conftest.$ac_ext
19577 fi
19578 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
19579 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
19580 if test $ac_cv_func_shl_load = yes; then
19581 lt_cv_dlopen="shl_load"
19582 else
19583 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
19584 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
19585 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
19586 echo $ECHO_N "(cached) $ECHO_C" >&6
19587 else
19588 ac_check_lib_save_LIBS=$LIBS
19589 LIBS="-ldld $LIBS"
19590 cat >conftest.$ac_ext <<_ACEOF
19591 /* confdefs.h. */
19592 _ACEOF
19593 cat confdefs.h >>conftest.$ac_ext
19594 cat >>conftest.$ac_ext <<_ACEOF
19595 /* end confdefs.h. */
19596
19597 /* Override any gcc2 internal prototype to avoid an error. */
19598 #ifdef __cplusplus
19599 extern "C"
19600 #endif
19601 /* We use char because int might match the return type of a gcc2
19602 builtin and then its argument prototype would still apply. */
19603 char shl_load ();
19604 int
19605 main ()
19606 {
19607 shl_load ();
19608 ;
19609 return 0;
19610 }
19611 _ACEOF
19612 rm -f conftest.$ac_objext conftest$ac_exeext
19613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19614 (eval $ac_link) 2>conftest.er1
19615 ac_status=$?
19616 grep -v '^ *+' conftest.er1 >conftest.err
19617 rm -f conftest.er1
19618 cat conftest.err >&5
19619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19620 (exit $ac_status); } &&
19621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19623 (eval $ac_try) 2>&5
19624 ac_status=$?
19625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19626 (exit $ac_status); }; } &&
19627 { ac_try='test -s conftest$ac_exeext'
19628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19629 (eval $ac_try) 2>&5
19630 ac_status=$?
19631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19632 (exit $ac_status); }; }; then
19633 ac_cv_lib_dld_shl_load=yes
19634 else
19635 echo "$as_me: failed program was:" >&5
19636 sed 's/^/| /' conftest.$ac_ext >&5
19637
19638 ac_cv_lib_dld_shl_load=no
19639 fi
19640 rm -f conftest.err conftest.$ac_objext \
19641 conftest$ac_exeext conftest.$ac_ext
19642 LIBS=$ac_check_lib_save_LIBS
19643 fi
19644 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
19645 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
19646 if test $ac_cv_lib_dld_shl_load = yes; then
19647 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
19648 else
19649 echo "$as_me:$LINENO: checking for dlopen" >&5
19650 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
19651 if test "${ac_cv_func_dlopen+set}" = set; then
19652 echo $ECHO_N "(cached) $ECHO_C" >&6
19653 else
19654 cat >conftest.$ac_ext <<_ACEOF
19655 /* confdefs.h. */
19656 _ACEOF
19657 cat confdefs.h >>conftest.$ac_ext
19658 cat >>conftest.$ac_ext <<_ACEOF
19659 /* end confdefs.h. */
19660 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
19661 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19662 #define dlopen innocuous_dlopen
19663
19664 /* System header to define __stub macros and hopefully few prototypes,
19665 which can conflict with char dlopen (); below.
19666 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19667 <limits.h> exists even on freestanding compilers. */
19668
19669 #ifdef __STDC__
19670 # include <limits.h>
19671 #else
19672 # include <assert.h>
19673 #endif
19674
19675 #undef dlopen
19676
19677 /* Override any gcc2 internal prototype to avoid an error. */
19678 #ifdef __cplusplus
19679 extern "C"
19680 {
19681 #endif
19682 /* We use char because int might match the return type of a gcc2
19683 builtin and then its argument prototype would still apply. */
19684 char dlopen ();
19685 /* The GNU C library defines this for functions which it implements
19686 to always fail with ENOSYS. Some functions are actually named
19687 something starting with __ and the normal name is an alias. */
19688 #if defined (__stub_dlopen) || defined (__stub___dlopen)
19689 choke me
19690 #else
19691 char (*f) () = dlopen;
19692 #endif
19693 #ifdef __cplusplus
19694 }
19695 #endif
19696
19697 int
19698 main ()
19699 {
19700 return f != dlopen;
19701 ;
19702 return 0;
19703 }
19704 _ACEOF
19705 rm -f conftest.$ac_objext conftest$ac_exeext
19706 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19707 (eval $ac_link) 2>conftest.er1
19708 ac_status=$?
19709 grep -v '^ *+' conftest.er1 >conftest.err
19710 rm -f conftest.er1
19711 cat conftest.err >&5
19712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19713 (exit $ac_status); } &&
19714 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19715 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19716 (eval $ac_try) 2>&5
19717 ac_status=$?
19718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19719 (exit $ac_status); }; } &&
19720 { ac_try='test -s conftest$ac_exeext'
19721 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19722 (eval $ac_try) 2>&5
19723 ac_status=$?
19724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19725 (exit $ac_status); }; }; then
19726 ac_cv_func_dlopen=yes
19727 else
19728 echo "$as_me: failed program was:" >&5
19729 sed 's/^/| /' conftest.$ac_ext >&5
19730
19731 ac_cv_func_dlopen=no
19732 fi
19733 rm -f conftest.err conftest.$ac_objext \
19734 conftest$ac_exeext conftest.$ac_ext
19735 fi
19736 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
19737 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
19738 if test $ac_cv_func_dlopen = yes; then
19739 lt_cv_dlopen="dlopen"
19740 else
19741 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
19742 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
19743 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
19744 echo $ECHO_N "(cached) $ECHO_C" >&6
19745 else
19746 ac_check_lib_save_LIBS=$LIBS
19747 LIBS="-ldl $LIBS"
19748 cat >conftest.$ac_ext <<_ACEOF
19749 /* confdefs.h. */
19750 _ACEOF
19751 cat confdefs.h >>conftest.$ac_ext
19752 cat >>conftest.$ac_ext <<_ACEOF
19753 /* end confdefs.h. */
19754
19755 /* Override any gcc2 internal prototype to avoid an error. */
19756 #ifdef __cplusplus
19757 extern "C"
19758 #endif
19759 /* We use char because int might match the return type of a gcc2
19760 builtin and then its argument prototype would still apply. */
19761 char dlopen ();
19762 int
19763 main ()
19764 {
19765 dlopen ();
19766 ;
19767 return 0;
19768 }
19769 _ACEOF
19770 rm -f conftest.$ac_objext conftest$ac_exeext
19771 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19772 (eval $ac_link) 2>conftest.er1
19773 ac_status=$?
19774 grep -v '^ *+' conftest.er1 >conftest.err
19775 rm -f conftest.er1
19776 cat conftest.err >&5
19777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19778 (exit $ac_status); } &&
19779 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19781 (eval $ac_try) 2>&5
19782 ac_status=$?
19783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19784 (exit $ac_status); }; } &&
19785 { ac_try='test -s conftest$ac_exeext'
19786 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19787 (eval $ac_try) 2>&5
19788 ac_status=$?
19789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19790 (exit $ac_status); }; }; then
19791 ac_cv_lib_dl_dlopen=yes
19792 else
19793 echo "$as_me: failed program was:" >&5
19794 sed 's/^/| /' conftest.$ac_ext >&5
19795
19796 ac_cv_lib_dl_dlopen=no
19797 fi
19798 rm -f conftest.err conftest.$ac_objext \
19799 conftest$ac_exeext conftest.$ac_ext
19800 LIBS=$ac_check_lib_save_LIBS
19801 fi
19802 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
19803 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
19804 if test $ac_cv_lib_dl_dlopen = yes; then
19805 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
19806 else
19807 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
19808 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
19809 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
19810 echo $ECHO_N "(cached) $ECHO_C" >&6
19811 else
19812 ac_check_lib_save_LIBS=$LIBS
19813 LIBS="-lsvld $LIBS"
19814 cat >conftest.$ac_ext <<_ACEOF
19815 /* confdefs.h. */
19816 _ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19820
19821 /* Override any gcc2 internal prototype to avoid an error. */
19822 #ifdef __cplusplus
19823 extern "C"
19824 #endif
19825 /* We use char because int might match the return type of a gcc2
19826 builtin and then its argument prototype would still apply. */
19827 char dlopen ();
19828 int
19829 main ()
19830 {
19831 dlopen ();
19832 ;
19833 return 0;
19834 }
19835 _ACEOF
19836 rm -f conftest.$ac_objext conftest$ac_exeext
19837 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19838 (eval $ac_link) 2>conftest.er1
19839 ac_status=$?
19840 grep -v '^ *+' conftest.er1 >conftest.err
19841 rm -f conftest.er1
19842 cat conftest.err >&5
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); } &&
19845 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19847 (eval $ac_try) 2>&5
19848 ac_status=$?
19849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19850 (exit $ac_status); }; } &&
19851 { ac_try='test -s conftest$ac_exeext'
19852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19853 (eval $ac_try) 2>&5
19854 ac_status=$?
19855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19856 (exit $ac_status); }; }; then
19857 ac_cv_lib_svld_dlopen=yes
19858 else
19859 echo "$as_me: failed program was:" >&5
19860 sed 's/^/| /' conftest.$ac_ext >&5
19861
19862 ac_cv_lib_svld_dlopen=no
19863 fi
19864 rm -f conftest.err conftest.$ac_objext \
19865 conftest$ac_exeext conftest.$ac_ext
19866 LIBS=$ac_check_lib_save_LIBS
19867 fi
19868 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
19869 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
19870 if test $ac_cv_lib_svld_dlopen = yes; then
19871 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
19872 else
19873 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
19874 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
19875 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
19876 echo $ECHO_N "(cached) $ECHO_C" >&6
19877 else
19878 ac_check_lib_save_LIBS=$LIBS
19879 LIBS="-ldld $LIBS"
19880 cat >conftest.$ac_ext <<_ACEOF
19881 /* confdefs.h. */
19882 _ACEOF
19883 cat confdefs.h >>conftest.$ac_ext
19884 cat >>conftest.$ac_ext <<_ACEOF
19885 /* end confdefs.h. */
19886
19887 /* Override any gcc2 internal prototype to avoid an error. */
19888 #ifdef __cplusplus
19889 extern "C"
19890 #endif
19891 /* We use char because int might match the return type of a gcc2
19892 builtin and then its argument prototype would still apply. */
19893 char dld_link ();
19894 int
19895 main ()
19896 {
19897 dld_link ();
19898 ;
19899 return 0;
19900 }
19901 _ACEOF
19902 rm -f conftest.$ac_objext conftest$ac_exeext
19903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19904 (eval $ac_link) 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" || test ! -s conftest.err'
19912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19913 (eval $ac_try) 2>&5
19914 ac_status=$?
19915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19916 (exit $ac_status); }; } &&
19917 { ac_try='test -s conftest$ac_exeext'
19918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19919 (eval $ac_try) 2>&5
19920 ac_status=$?
19921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19922 (exit $ac_status); }; }; then
19923 ac_cv_lib_dld_dld_link=yes
19924 else
19925 echo "$as_me: failed program was:" >&5
19926 sed 's/^/| /' conftest.$ac_ext >&5
19927
19928 ac_cv_lib_dld_dld_link=no
19929 fi
19930 rm -f conftest.err conftest.$ac_objext \
19931 conftest$ac_exeext conftest.$ac_ext
19932 LIBS=$ac_check_lib_save_LIBS
19933 fi
19934 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
19935 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
19936 if test $ac_cv_lib_dld_dld_link = yes; then
19937 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
19938 fi
19939
19940
19941 fi
19942
19943
19944 fi
19945
19946
19947 fi
19948
19949
19950 fi
19951
19952
19953 fi
19954
19955 ;;
19956 esac
19957
19958 if test "x$lt_cv_dlopen" != xno; then
19959 enable_dlopen=yes
19960 else
19961 enable_dlopen=no
19962 fi
19963
19964 case $lt_cv_dlopen in
19965 dlopen)
19966 save_CPPFLAGS="$CPPFLAGS"
19967 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
19968
19969 save_LDFLAGS="$LDFLAGS"
19970 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
19971
19972 save_LIBS="$LIBS"
19973 LIBS="$lt_cv_dlopen_libs $LIBS"
19974
19975 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
19976 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
19977 if test "${lt_cv_dlopen_self+set}" = set; then
19978 echo $ECHO_N "(cached) $ECHO_C" >&6
19979 else
19980 if test "$cross_compiling" = yes; then :
19981 lt_cv_dlopen_self=cross
19982 else
19983 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
19984 lt_status=$lt_dlunknown
19985 cat > conftest.$ac_ext <<EOF
19986 #line 19986 "configure"
19987 #include "confdefs.h"
19988
19989 #if HAVE_DLFCN_H
19990 #include <dlfcn.h>
19991 #endif
19992
19993 #include <stdio.h>
19994
19995 #ifdef RTLD_GLOBAL
19996 # define LT_DLGLOBAL RTLD_GLOBAL
19997 #else
19998 # ifdef DL_GLOBAL
19999 # define LT_DLGLOBAL DL_GLOBAL
20000 # else
20001 # define LT_DLGLOBAL 0
20002 # endif
20003 #endif
20004
20005 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20006 find out it does not work in some platform. */
20007 #ifndef LT_DLLAZY_OR_NOW
20008 # ifdef RTLD_LAZY
20009 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20010 # else
20011 # ifdef DL_LAZY
20012 # define LT_DLLAZY_OR_NOW DL_LAZY
20013 # else
20014 # ifdef RTLD_NOW
20015 # define LT_DLLAZY_OR_NOW RTLD_NOW
20016 # else
20017 # ifdef DL_NOW
20018 # define LT_DLLAZY_OR_NOW DL_NOW
20019 # else
20020 # define LT_DLLAZY_OR_NOW 0
20021 # endif
20022 # endif
20023 # endif
20024 # endif
20025 #endif
20026
20027 #ifdef __cplusplus
20028 extern "C" void exit (int);
20029 #endif
20030
20031 void fnord() { int i=42;}
20032 int main ()
20033 {
20034 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20035 int status = $lt_dlunknown;
20036
20037 if (self)
20038 {
20039 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20040 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20041 /* dlclose (self); */
20042 }
20043
20044 exit (status);
20045 }
20046 EOF
20047 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20048 (eval $ac_link) 2>&5
20049 ac_status=$?
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20052 (./conftest; exit; ) 2>/dev/null
20053 lt_status=$?
20054 case x$lt_status in
20055 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
20056 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
20057 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
20058 esac
20059 else :
20060 # compilation failed
20061 lt_cv_dlopen_self=no
20062 fi
20063 fi
20064 rm -fr conftest*
20065
20066
20067 fi
20068 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
20069 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
20070
20071 if test "x$lt_cv_dlopen_self" = xyes; then
20072 LDFLAGS="$LDFLAGS $link_static_flag"
20073 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
20074 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
20075 if test "${lt_cv_dlopen_self_static+set}" = set; then
20076 echo $ECHO_N "(cached) $ECHO_C" >&6
20077 else
20078 if test "$cross_compiling" = yes; then :
20079 lt_cv_dlopen_self_static=cross
20080 else
20081 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
20082 lt_status=$lt_dlunknown
20083 cat > conftest.$ac_ext <<EOF
20084 #line 20084 "configure"
20085 #include "confdefs.h"
20086
20087 #if HAVE_DLFCN_H
20088 #include <dlfcn.h>
20089 #endif
20090
20091 #include <stdio.h>
20092
20093 #ifdef RTLD_GLOBAL
20094 # define LT_DLGLOBAL RTLD_GLOBAL
20095 #else
20096 # ifdef DL_GLOBAL
20097 # define LT_DLGLOBAL DL_GLOBAL
20098 # else
20099 # define LT_DLGLOBAL 0
20100 # endif
20101 #endif
20102
20103 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
20104 find out it does not work in some platform. */
20105 #ifndef LT_DLLAZY_OR_NOW
20106 # ifdef RTLD_LAZY
20107 # define LT_DLLAZY_OR_NOW RTLD_LAZY
20108 # else
20109 # ifdef DL_LAZY
20110 # define LT_DLLAZY_OR_NOW DL_LAZY
20111 # else
20112 # ifdef RTLD_NOW
20113 # define LT_DLLAZY_OR_NOW RTLD_NOW
20114 # else
20115 # ifdef DL_NOW
20116 # define LT_DLLAZY_OR_NOW DL_NOW
20117 # else
20118 # define LT_DLLAZY_OR_NOW 0
20119 # endif
20120 # endif
20121 # endif
20122 # endif
20123 #endif
20124
20125 #ifdef __cplusplus
20126 extern "C" void exit (int);
20127 #endif
20128
20129 void fnord() { int i=42;}
20130 int main ()
20131 {
20132 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
20133 int status = $lt_dlunknown;
20134
20135 if (self)
20136 {
20137 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
20138 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
20139 /* dlclose (self); */
20140 }
20141
20142 exit (status);
20143 }
20144 EOF
20145 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
20146 (eval $ac_link) 2>&5
20147 ac_status=$?
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
20150 (./conftest; exit; ) 2>/dev/null
20151 lt_status=$?
20152 case x$lt_status in
20153 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
20154 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
20155 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
20156 esac
20157 else :
20158 # compilation failed
20159 lt_cv_dlopen_self_static=no
20160 fi
20161 fi
20162 rm -fr conftest*
20163
20164
20165 fi
20166 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
20167 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
20168 fi
20169
20170 CPPFLAGS="$save_CPPFLAGS"
20171 LDFLAGS="$save_LDFLAGS"
20172 LIBS="$save_LIBS"
20173 ;;
20174 esac
20175
20176 case $lt_cv_dlopen_self in
20177 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
20178 *) enable_dlopen_self=unknown ;;
20179 esac
20180
20181 case $lt_cv_dlopen_self_static in
20182 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
20183 *) enable_dlopen_self_static=unknown ;;
20184 esac
20185 fi
20186
20187
20188 # The else clause should only fire when bootstrapping the
20189 # libtool distribution, otherwise you forgot to ship ltmain.sh
20190 # with your package, and you will get complaints that there are
20191 # no rules to generate ltmain.sh.
20192 if test -f "$ltmain"; then
20193 # See if we are running on zsh, and set the options which allow our commands through
20194 # without removal of \ escapes.
20195 if test -n "${ZSH_VERSION+set}" ; then
20196 setopt NO_GLOB_SUBST
20197 fi
20198 # Now quote all the things that may contain metacharacters while being
20199 # careful not to overquote the AC_SUBSTed values. We take copies of the
20200 # variables and quote the copies for generation of the libtool script.
20201 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20202 SED SHELL STRIP \
20203 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20204 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20205 deplibs_check_method reload_flag reload_cmds need_locks \
20206 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20207 lt_cv_sys_global_symbol_to_c_name_address \
20208 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20209 old_postinstall_cmds old_postuninstall_cmds \
20210 compiler_GCJ \
20211 CC_GCJ \
20212 LD_GCJ \
20213 lt_prog_compiler_wl_GCJ \
20214 lt_prog_compiler_pic_GCJ \
20215 lt_prog_compiler_static_GCJ \
20216 lt_prog_compiler_no_builtin_flag_GCJ \
20217 export_dynamic_flag_spec_GCJ \
20218 thread_safe_flag_spec_GCJ \
20219 whole_archive_flag_spec_GCJ \
20220 enable_shared_with_static_runtimes_GCJ \
20221 old_archive_cmds_GCJ \
20222 old_archive_from_new_cmds_GCJ \
20223 predep_objects_GCJ \
20224 postdep_objects_GCJ \
20225 predeps_GCJ \
20226 postdeps_GCJ \
20227 compiler_lib_search_path_GCJ \
20228 archive_cmds_GCJ \
20229 archive_expsym_cmds_GCJ \
20230 postinstall_cmds_GCJ \
20231 postuninstall_cmds_GCJ \
20232 old_archive_from_expsyms_cmds_GCJ \
20233 allow_undefined_flag_GCJ \
20234 no_undefined_flag_GCJ \
20235 export_symbols_cmds_GCJ \
20236 hardcode_libdir_flag_spec_GCJ \
20237 hardcode_libdir_flag_spec_ld_GCJ \
20238 hardcode_libdir_separator_GCJ \
20239 hardcode_automatic_GCJ \
20240 module_cmds_GCJ \
20241 module_expsym_cmds_GCJ \
20242 lt_cv_prog_compiler_c_o_GCJ \
20243 exclude_expsyms_GCJ \
20244 include_expsyms_GCJ; do
20245
20246 case $var in
20247 old_archive_cmds_GCJ | \
20248 old_archive_from_new_cmds_GCJ | \
20249 archive_cmds_GCJ | \
20250 archive_expsym_cmds_GCJ | \
20251 module_cmds_GCJ | \
20252 module_expsym_cmds_GCJ | \
20253 old_archive_from_expsyms_cmds_GCJ | \
20254 export_symbols_cmds_GCJ | \
20255 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20256 postinstall_cmds | postuninstall_cmds | \
20257 old_postinstall_cmds | old_postuninstall_cmds | \
20258 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20259 # Double-quote double-evaled strings.
20260 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20261 ;;
20262 *)
20263 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20264 ;;
20265 esac
20266 done
20267
20268 case $lt_echo in
20269 *'\$0 --fallback-echo"')
20270 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20271 ;;
20272 esac
20273
20274 cfgfile="$ofile"
20275
20276 cat <<__EOF__ >> "$cfgfile"
20277 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20278
20279 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20280
20281 # Shell to use when invoking shell scripts.
20282 SHELL=$lt_SHELL
20283
20284 # Whether or not to build shared libraries.
20285 build_libtool_libs=$enable_shared
20286
20287 # Whether or not to build static libraries.
20288 build_old_libs=$enable_static
20289
20290 # Whether or not to add -lc for building shared libraries.
20291 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
20292
20293 # Whether or not to disallow shared libs when runtime libs are static
20294 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
20295
20296 # Whether or not to optimize for fast installation.
20297 fast_install=$enable_fast_install
20298
20299 # The host system.
20300 host_alias=$host_alias
20301 host=$host
20302
20303 # An echo program that does not interpret backslashes.
20304 echo=$lt_echo
20305
20306 # The archiver.
20307 AR=$lt_AR
20308 AR_FLAGS=$lt_AR_FLAGS
20309
20310 # A C compiler.
20311 LTCC=$lt_LTCC
20312
20313 # A language-specific compiler.
20314 CC=$lt_compiler_GCJ
20315
20316 # Is the compiler the GNU C compiler?
20317 with_gcc=$GCC_GCJ
20318
20319 # An ERE matcher.
20320 EGREP=$lt_EGREP
20321
20322 # The linker used to build libraries.
20323 LD=$lt_LD_GCJ
20324
20325 # Whether we need hard or soft links.
20326 LN_S=$lt_LN_S
20327
20328 # A BSD-compatible nm program.
20329 NM=$lt_NM
20330
20331 # A symbol stripping program
20332 STRIP=$lt_STRIP
20333
20334 # Used to examine libraries when file_magic_cmd begins "file"
20335 MAGIC_CMD=$MAGIC_CMD
20336
20337 # Used on cygwin: DLL creation program.
20338 DLLTOOL="$DLLTOOL"
20339
20340 # Used on cygwin: object dumper.
20341 OBJDUMP="$OBJDUMP"
20342
20343 # Used on cygwin: assembler.
20344 AS="$AS"
20345
20346 # The name of the directory that contains temporary libtool files.
20347 objdir=$objdir
20348
20349 # How to create reloadable object files.
20350 reload_flag=$lt_reload_flag
20351 reload_cmds=$lt_reload_cmds
20352
20353 # How to pass a linker flag through the compiler.
20354 wl=$lt_lt_prog_compiler_wl_GCJ
20355
20356 # Object file suffix (normally "o").
20357 objext="$ac_objext"
20358
20359 # Old archive suffix (normally "a").
20360 libext="$libext"
20361
20362 # Shared library suffix (normally ".so").
20363 shrext_cmds='$shrext_cmds'
20364
20365 # Executable file suffix (normally "").
20366 exeext="$exeext"
20367
20368 # Additional compiler flags for building library objects.
20369 pic_flag=$lt_lt_prog_compiler_pic_GCJ
20370 pic_mode=$pic_mode
20371
20372 # What is the maximum length of a command?
20373 max_cmd_len=$lt_cv_sys_max_cmd_len
20374
20375 # Does compiler simultaneously support -c and -o options?
20376 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
20377
20378 # Must we lock files when doing compilation ?
20379 need_locks=$lt_need_locks
20380
20381 # Do we need the lib prefix for modules?
20382 need_lib_prefix=$need_lib_prefix
20383
20384 # Do we need a version for libraries?
20385 need_version=$need_version
20386
20387 # Whether dlopen is supported.
20388 dlopen_support=$enable_dlopen
20389
20390 # Whether dlopen of programs is supported.
20391 dlopen_self=$enable_dlopen_self
20392
20393 # Whether dlopen of statically linked programs is supported.
20394 dlopen_self_static=$enable_dlopen_self_static
20395
20396 # Compiler flag to prevent dynamic linking.
20397 link_static_flag=$lt_lt_prog_compiler_static_GCJ
20398
20399 # Compiler flag to turn off builtin functions.
20400 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
20401
20402 # Compiler flag to allow reflexive dlopens.
20403 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
20404
20405 # Compiler flag to generate shared objects directly from archives.
20406 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
20407
20408 # Compiler flag to generate thread-safe objects.
20409 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
20410
20411 # Library versioning type.
20412 version_type=$version_type
20413
20414 # Format of library name prefix.
20415 libname_spec=$lt_libname_spec
20416
20417 # List of archive names. First name is the real one, the rest are links.
20418 # The last name is the one that the linker finds with -lNAME.
20419 library_names_spec=$lt_library_names_spec
20420
20421 # The coded name of the library, if different from the real name.
20422 soname_spec=$lt_soname_spec
20423
20424 # Commands used to build and install an old-style archive.
20425 RANLIB=$lt_RANLIB
20426 old_archive_cmds=$lt_old_archive_cmds_GCJ
20427 old_postinstall_cmds=$lt_old_postinstall_cmds
20428 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20429
20430 # Create an old-style archive from a shared archive.
20431 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
20432
20433 # Create a temporary old-style archive to link instead of a shared archive.
20434 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
20435
20436 # Commands used to build and install a shared archive.
20437 archive_cmds=$lt_archive_cmds_GCJ
20438 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
20439 postinstall_cmds=$lt_postinstall_cmds
20440 postuninstall_cmds=$lt_postuninstall_cmds
20441
20442 # Commands used to build a loadable module (assumed same as above if empty)
20443 module_cmds=$lt_module_cmds_GCJ
20444 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
20445
20446 # Commands to strip libraries.
20447 old_striplib=$lt_old_striplib
20448 striplib=$lt_striplib
20449
20450 # Dependencies to place before the objects being linked to create a
20451 # shared library.
20452 predep_objects=$lt_predep_objects_GCJ
20453
20454 # Dependencies to place after the objects being linked to create a
20455 # shared library.
20456 postdep_objects=$lt_postdep_objects_GCJ
20457
20458 # Dependencies to place before the objects being linked to create a
20459 # shared library.
20460 predeps=$lt_predeps_GCJ
20461
20462 # Dependencies to place after the objects being linked to create a
20463 # shared library.
20464 postdeps=$lt_postdeps_GCJ
20465
20466 # The library search path used internally by the compiler when linking
20467 # a shared library.
20468 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
20469
20470 # Method to check whether dependent libraries are shared objects.
20471 deplibs_check_method=$lt_deplibs_check_method
20472
20473 # Command to use when deplibs_check_method == file_magic.
20474 file_magic_cmd=$lt_file_magic_cmd
20475
20476 # Flag that allows shared libraries with undefined symbols to be built.
20477 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
20478
20479 # Flag that forces no undefined symbols.
20480 no_undefined_flag=$lt_no_undefined_flag_GCJ
20481
20482 # Commands used to finish a libtool library installation in a directory.
20483 finish_cmds=$lt_finish_cmds
20484
20485 # Same as above, but a single script fragment to be evaled but not shown.
20486 finish_eval=$lt_finish_eval
20487
20488 # Take the output of nm and produce a listing of raw symbols and C names.
20489 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20490
20491 # Transform the output of nm in a proper C declaration
20492 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20493
20494 # Transform the output of nm in a C name address pair
20495 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20496
20497 # This is the shared library runtime path variable.
20498 runpath_var=$runpath_var
20499
20500 # This is the shared library path variable.
20501 shlibpath_var=$shlibpath_var
20502
20503 # Is shlibpath searched before the hard-coded library search path?
20504 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20505
20506 # How to hardcode a shared library path into an executable.
20507 hardcode_action=$hardcode_action_GCJ
20508
20509 # Whether we should hardcode library paths into libraries.
20510 hardcode_into_libs=$hardcode_into_libs
20511
20512 # Flag to hardcode \$libdir into a binary during linking.
20513 # This must work even if \$libdir does not exist.
20514 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
20515
20516 # If ld is used when linking, flag to hardcode \$libdir into
20517 # a binary during linking. This must work even if \$libdir does
20518 # not exist.
20519 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
20520
20521 # Whether we need a single -rpath flag with a separated argument.
20522 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
20523
20524 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20525 # resulting binary.
20526 hardcode_direct=$hardcode_direct_GCJ
20527
20528 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20529 # resulting binary.
20530 hardcode_minus_L=$hardcode_minus_L_GCJ
20531
20532 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20533 # the resulting binary.
20534 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
20535
20536 # Set to yes if building a shared library automatically hardcodes DIR into the library
20537 # and all subsequent libraries and executables linked against it.
20538 hardcode_automatic=$hardcode_automatic_GCJ
20539
20540 # Variables whose values should be saved in libtool wrapper scripts and
20541 # restored at relink time.
20542 variables_saved_for_relink="$variables_saved_for_relink"
20543
20544 # Whether libtool must link a program against all its dependency libraries.
20545 link_all_deplibs=$link_all_deplibs_GCJ
20546
20547 # Compile-time system search path for libraries
20548 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20549
20550 # Run-time system search path for libraries
20551 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20552
20553 # Fix the shell variable \$srcfile for the compiler.
20554 fix_srcfile_path="$fix_srcfile_path_GCJ"
20555
20556 # Set to yes if exported symbols are required.
20557 always_export_symbols=$always_export_symbols_GCJ
20558
20559 # The commands to list exported symbols.
20560 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
20561
20562 # The commands to extract the exported symbol list from a shared archive.
20563 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20564
20565 # Symbols that should not be listed in the preloaded symbols.
20566 exclude_expsyms=$lt_exclude_expsyms_GCJ
20567
20568 # Symbols that must always be exported.
20569 include_expsyms=$lt_include_expsyms_GCJ
20570
20571 # ### END LIBTOOL TAG CONFIG: $tagname
20572
20573 __EOF__
20574
20575
20576 else
20577 # If there is no Makefile yet, we rely on a make rule to execute
20578 # `config.status --recheck' to rerun these tests and create the
20579 # libtool script then.
20580 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20581 if test -f "$ltmain_in"; then
20582 test -f Makefile && make "$ltmain"
20583 fi
20584 fi
20585
20586
20587 ac_ext=c
20588 ac_cpp='$CPP $CPPFLAGS'
20589 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20590 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20591 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20592
20593 CC="$lt_save_CC"
20594
20595 else
20596 tagname=""
20597 fi
20598 ;;
20599
20600 RC)
20601
20602
20603
20604 # Source file extension for RC test sources.
20605 ac_ext=rc
20606
20607 # Object file extension for compiled RC test sources.
20608 objext=o
20609 objext_RC=$objext
20610
20611 # Code to be used in simple compile tests
20612 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
20613
20614 # Code to be used in simple link tests
20615 lt_simple_link_test_code="$lt_simple_compile_test_code"
20616
20617 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20618
20619 # If no C compiler was specified, use CC.
20620 LTCC=${LTCC-"$CC"}
20621
20622 # Allow CC to be a program name with arguments.
20623 compiler=$CC
20624
20625
20626 # Allow CC to be a program name with arguments.
20627 lt_save_CC="$CC"
20628 CC=${RC-"windres"}
20629 compiler=$CC
20630 compiler_RC=$CC
20631 lt_cv_prog_compiler_c_o_RC=yes
20632
20633 # The else clause should only fire when bootstrapping the
20634 # libtool distribution, otherwise you forgot to ship ltmain.sh
20635 # with your package, and you will get complaints that there are
20636 # no rules to generate ltmain.sh.
20637 if test -f "$ltmain"; then
20638 # See if we are running on zsh, and set the options which allow our commands through
20639 # without removal of \ escapes.
20640 if test -n "${ZSH_VERSION+set}" ; then
20641 setopt NO_GLOB_SUBST
20642 fi
20643 # Now quote all the things that may contain metacharacters while being
20644 # careful not to overquote the AC_SUBSTed values. We take copies of the
20645 # variables and quote the copies for generation of the libtool script.
20646 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20647 SED SHELL STRIP \
20648 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20649 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20650 deplibs_check_method reload_flag reload_cmds need_locks \
20651 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20652 lt_cv_sys_global_symbol_to_c_name_address \
20653 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20654 old_postinstall_cmds old_postuninstall_cmds \
20655 compiler_RC \
20656 CC_RC \
20657 LD_RC \
20658 lt_prog_compiler_wl_RC \
20659 lt_prog_compiler_pic_RC \
20660 lt_prog_compiler_static_RC \
20661 lt_prog_compiler_no_builtin_flag_RC \
20662 export_dynamic_flag_spec_RC \
20663 thread_safe_flag_spec_RC \
20664 whole_archive_flag_spec_RC \
20665 enable_shared_with_static_runtimes_RC \
20666 old_archive_cmds_RC \
20667 old_archive_from_new_cmds_RC \
20668 predep_objects_RC \
20669 postdep_objects_RC \
20670 predeps_RC \
20671 postdeps_RC \
20672 compiler_lib_search_path_RC \
20673 archive_cmds_RC \
20674 archive_expsym_cmds_RC \
20675 postinstall_cmds_RC \
20676 postuninstall_cmds_RC \
20677 old_archive_from_expsyms_cmds_RC \
20678 allow_undefined_flag_RC \
20679 no_undefined_flag_RC \
20680 export_symbols_cmds_RC \
20681 hardcode_libdir_flag_spec_RC \
20682 hardcode_libdir_flag_spec_ld_RC \
20683 hardcode_libdir_separator_RC \
20684 hardcode_automatic_RC \
20685 module_cmds_RC \
20686 module_expsym_cmds_RC \
20687 lt_cv_prog_compiler_c_o_RC \
20688 exclude_expsyms_RC \
20689 include_expsyms_RC; do
20690
20691 case $var in
20692 old_archive_cmds_RC | \
20693 old_archive_from_new_cmds_RC | \
20694 archive_cmds_RC | \
20695 archive_expsym_cmds_RC | \
20696 module_cmds_RC | \
20697 module_expsym_cmds_RC | \
20698 old_archive_from_expsyms_cmds_RC | \
20699 export_symbols_cmds_RC | \
20700 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20701 postinstall_cmds | postuninstall_cmds | \
20702 old_postinstall_cmds | old_postuninstall_cmds | \
20703 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20704 # Double-quote double-evaled strings.
20705 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20706 ;;
20707 *)
20708 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20709 ;;
20710 esac
20711 done
20712
20713 case $lt_echo in
20714 *'\$0 --fallback-echo"')
20715 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20716 ;;
20717 esac
20718
20719 cfgfile="$ofile"
20720
20721 cat <<__EOF__ >> "$cfgfile"
20722 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20723
20724 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20725
20726 # Shell to use when invoking shell scripts.
20727 SHELL=$lt_SHELL
20728
20729 # Whether or not to build shared libraries.
20730 build_libtool_libs=$enable_shared
20731
20732 # Whether or not to build static libraries.
20733 build_old_libs=$enable_static
20734
20735 # Whether or not to add -lc for building shared libraries.
20736 build_libtool_need_lc=$archive_cmds_need_lc_RC
20737
20738 # Whether or not to disallow shared libs when runtime libs are static
20739 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
20740
20741 # Whether or not to optimize for fast installation.
20742 fast_install=$enable_fast_install
20743
20744 # The host system.
20745 host_alias=$host_alias
20746 host=$host
20747
20748 # An echo program that does not interpret backslashes.
20749 echo=$lt_echo
20750
20751 # The archiver.
20752 AR=$lt_AR
20753 AR_FLAGS=$lt_AR_FLAGS
20754
20755 # A C compiler.
20756 LTCC=$lt_LTCC
20757
20758 # A language-specific compiler.
20759 CC=$lt_compiler_RC
20760
20761 # Is the compiler the GNU C compiler?
20762 with_gcc=$GCC_RC
20763
20764 # An ERE matcher.
20765 EGREP=$lt_EGREP
20766
20767 # The linker used to build libraries.
20768 LD=$lt_LD_RC
20769
20770 # Whether we need hard or soft links.
20771 LN_S=$lt_LN_S
20772
20773 # A BSD-compatible nm program.
20774 NM=$lt_NM
20775
20776 # A symbol stripping program
20777 STRIP=$lt_STRIP
20778
20779 # Used to examine libraries when file_magic_cmd begins "file"
20780 MAGIC_CMD=$MAGIC_CMD
20781
20782 # Used on cygwin: DLL creation program.
20783 DLLTOOL="$DLLTOOL"
20784
20785 # Used on cygwin: object dumper.
20786 OBJDUMP="$OBJDUMP"
20787
20788 # Used on cygwin: assembler.
20789 AS="$AS"
20790
20791 # The name of the directory that contains temporary libtool files.
20792 objdir=$objdir
20793
20794 # How to create reloadable object files.
20795 reload_flag=$lt_reload_flag
20796 reload_cmds=$lt_reload_cmds
20797
20798 # How to pass a linker flag through the compiler.
20799 wl=$lt_lt_prog_compiler_wl_RC
20800
20801 # Object file suffix (normally "o").
20802 objext="$ac_objext"
20803
20804 # Old archive suffix (normally "a").
20805 libext="$libext"
20806
20807 # Shared library suffix (normally ".so").
20808 shrext_cmds='$shrext_cmds'
20809
20810 # Executable file suffix (normally "").
20811 exeext="$exeext"
20812
20813 # Additional compiler flags for building library objects.
20814 pic_flag=$lt_lt_prog_compiler_pic_RC
20815 pic_mode=$pic_mode
20816
20817 # What is the maximum length of a command?
20818 max_cmd_len=$lt_cv_sys_max_cmd_len
20819
20820 # Does compiler simultaneously support -c and -o options?
20821 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
20822
20823 # Must we lock files when doing compilation ?
20824 need_locks=$lt_need_locks
20825
20826 # Do we need the lib prefix for modules?
20827 need_lib_prefix=$need_lib_prefix
20828
20829 # Do we need a version for libraries?
20830 need_version=$need_version
20831
20832 # Whether dlopen is supported.
20833 dlopen_support=$enable_dlopen
20834
20835 # Whether dlopen of programs is supported.
20836 dlopen_self=$enable_dlopen_self
20837
20838 # Whether dlopen of statically linked programs is supported.
20839 dlopen_self_static=$enable_dlopen_self_static
20840
20841 # Compiler flag to prevent dynamic linking.
20842 link_static_flag=$lt_lt_prog_compiler_static_RC
20843
20844 # Compiler flag to turn off builtin functions.
20845 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
20846
20847 # Compiler flag to allow reflexive dlopens.
20848 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
20849
20850 # Compiler flag to generate shared objects directly from archives.
20851 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
20852
20853 # Compiler flag to generate thread-safe objects.
20854 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
20855
20856 # Library versioning type.
20857 version_type=$version_type
20858
20859 # Format of library name prefix.
20860 libname_spec=$lt_libname_spec
20861
20862 # List of archive names. First name is the real one, the rest are links.
20863 # The last name is the one that the linker finds with -lNAME.
20864 library_names_spec=$lt_library_names_spec
20865
20866 # The coded name of the library, if different from the real name.
20867 soname_spec=$lt_soname_spec
20868
20869 # Commands used to build and install an old-style archive.
20870 RANLIB=$lt_RANLIB
20871 old_archive_cmds=$lt_old_archive_cmds_RC
20872 old_postinstall_cmds=$lt_old_postinstall_cmds
20873 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20874
20875 # Create an old-style archive from a shared archive.
20876 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
20877
20878 # Create a temporary old-style archive to link instead of a shared archive.
20879 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
20880
20881 # Commands used to build and install a shared archive.
20882 archive_cmds=$lt_archive_cmds_RC
20883 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
20884 postinstall_cmds=$lt_postinstall_cmds
20885 postuninstall_cmds=$lt_postuninstall_cmds
20886
20887 # Commands used to build a loadable module (assumed same as above if empty)
20888 module_cmds=$lt_module_cmds_RC
20889 module_expsym_cmds=$lt_module_expsym_cmds_RC
20890
20891 # Commands to strip libraries.
20892 old_striplib=$lt_old_striplib
20893 striplib=$lt_striplib
20894
20895 # Dependencies to place before the objects being linked to create a
20896 # shared library.
20897 predep_objects=$lt_predep_objects_RC
20898
20899 # Dependencies to place after the objects being linked to create a
20900 # shared library.
20901 postdep_objects=$lt_postdep_objects_RC
20902
20903 # Dependencies to place before the objects being linked to create a
20904 # shared library.
20905 predeps=$lt_predeps_RC
20906
20907 # Dependencies to place after the objects being linked to create a
20908 # shared library.
20909 postdeps=$lt_postdeps_RC
20910
20911 # The library search path used internally by the compiler when linking
20912 # a shared library.
20913 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
20914
20915 # Method to check whether dependent libraries are shared objects.
20916 deplibs_check_method=$lt_deplibs_check_method
20917
20918 # Command to use when deplibs_check_method == file_magic.
20919 file_magic_cmd=$lt_file_magic_cmd
20920
20921 # Flag that allows shared libraries with undefined symbols to be built.
20922 allow_undefined_flag=$lt_allow_undefined_flag_RC
20923
20924 # Flag that forces no undefined symbols.
20925 no_undefined_flag=$lt_no_undefined_flag_RC
20926
20927 # Commands used to finish a libtool library installation in a directory.
20928 finish_cmds=$lt_finish_cmds
20929
20930 # Same as above, but a single script fragment to be evaled but not shown.
20931 finish_eval=$lt_finish_eval
20932
20933 # Take the output of nm and produce a listing of raw symbols and C names.
20934 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20935
20936 # Transform the output of nm in a proper C declaration
20937 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20938
20939 # Transform the output of nm in a C name address pair
20940 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20941
20942 # This is the shared library runtime path variable.
20943 runpath_var=$runpath_var
20944
20945 # This is the shared library path variable.
20946 shlibpath_var=$shlibpath_var
20947
20948 # Is shlibpath searched before the hard-coded library search path?
20949 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20950
20951 # How to hardcode a shared library path into an executable.
20952 hardcode_action=$hardcode_action_RC
20953
20954 # Whether we should hardcode library paths into libraries.
20955 hardcode_into_libs=$hardcode_into_libs
20956
20957 # Flag to hardcode \$libdir into a binary during linking.
20958 # This must work even if \$libdir does not exist.
20959 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
20960
20961 # If ld is used when linking, flag to hardcode \$libdir into
20962 # a binary during linking. This must work even if \$libdir does
20963 # not exist.
20964 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
20965
20966 # Whether we need a single -rpath flag with a separated argument.
20967 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
20968
20969 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20970 # resulting binary.
20971 hardcode_direct=$hardcode_direct_RC
20972
20973 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20974 # resulting binary.
20975 hardcode_minus_L=$hardcode_minus_L_RC
20976
20977 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20978 # the resulting binary.
20979 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
20980
20981 # Set to yes if building a shared library automatically hardcodes DIR into the library
20982 # and all subsequent libraries and executables linked against it.
20983 hardcode_automatic=$hardcode_automatic_RC
20984
20985 # Variables whose values should be saved in libtool wrapper scripts and
20986 # restored at relink time.
20987 variables_saved_for_relink="$variables_saved_for_relink"
20988
20989 # Whether libtool must link a program against all its dependency libraries.
20990 link_all_deplibs=$link_all_deplibs_RC
20991
20992 # Compile-time system search path for libraries
20993 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20994
20995 # Run-time system search path for libraries
20996 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20997
20998 # Fix the shell variable \$srcfile for the compiler.
20999 fix_srcfile_path="$fix_srcfile_path_RC"
21000
21001 # Set to yes if exported symbols are required.
21002 always_export_symbols=$always_export_symbols_RC
21003
21004 # The commands to list exported symbols.
21005 export_symbols_cmds=$lt_export_symbols_cmds_RC
21006
21007 # The commands to extract the exported symbol list from a shared archive.
21008 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21009
21010 # Symbols that should not be listed in the preloaded symbols.
21011 exclude_expsyms=$lt_exclude_expsyms_RC
21012
21013 # Symbols that must always be exported.
21014 include_expsyms=$lt_include_expsyms_RC
21015
21016 # ### END LIBTOOL TAG CONFIG: $tagname
21017
21018 __EOF__
21019
21020
21021 else
21022 # If there is no Makefile yet, we rely on a make rule to execute
21023 # `config.status --recheck' to rerun these tests and create the
21024 # libtool script then.
21025 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21026 if test -f "$ltmain_in"; then
21027 test -f Makefile && make "$ltmain"
21028 fi
21029 fi
21030
21031
21032 ac_ext=c
21033 ac_cpp='$CPP $CPPFLAGS'
21034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21037
21038 CC="$lt_save_CC"
21039
21040 ;;
21041
21042 *)
21043 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
21044 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
21045 { (exit 1); exit 1; }; }
21046 ;;
21047 esac
21048
21049 # Append the new tag name to the list of available tags.
21050 if test -n "$tagname" ; then
21051 available_tags="$available_tags $tagname"
21052 fi
21053 fi
21054 done
21055 IFS="$lt_save_ifs"
21056
21057 # Now substitute the updated list of available tags.
21058 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
21059 mv "${ofile}T" "$ofile"
21060 chmod +x "$ofile"
21061 else
21062 rm -f "${ofile}T"
21063 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
21064 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
21065 { (exit 1); exit 1; }; }
21066 fi
21067 fi
21068
21069
21070
21071 # This can be used to rebuild libtool when needed
21072 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
21073
21074 # Always use our own libtool.
21075 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
21076
21077 # Prevent multiple expansion
21078
21079
21080
21081
21082
21083
21084
21085
21086
21087
21088
21089
21090
21091
21092
21093
21094
21095
21096
21097
21098
21099 CFLAGS="${ac_save_CFLAGS}"
21100 LDFLAGS="${ac_save_LDFLAGS}"
21101 INCLUDES="-I\$(top_srcdir) -I\$(top_srcdir)/include -I\$(srcdir)"
21102
21103
21104
21105 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
21106 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
21107 if test "${ac_cv_header_stdc+set}" = set; then
21108 echo $ECHO_N "(cached) $ECHO_C" >&6
21109 else
21110 cat >conftest.$ac_ext <<_ACEOF
21111 /* confdefs.h. */
21112 _ACEOF
21113 cat confdefs.h >>conftest.$ac_ext
21114 cat >>conftest.$ac_ext <<_ACEOF
21115 /* end confdefs.h. */
21116 #include <stdlib.h>
21117 #include <stdarg.h>
21118 #include <string.h>
21119 #include <float.h>
21120
21121 int
21122 main ()
21123 {
21124
21125 ;
21126 return 0;
21127 }
21128 _ACEOF
21129 rm -f conftest.$ac_objext
21130 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21131 (eval $ac_compile) 2>conftest.er1
21132 ac_status=$?
21133 grep -v '^ *+' conftest.er1 >conftest.err
21134 rm -f conftest.er1
21135 cat conftest.err >&5
21136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21137 (exit $ac_status); } &&
21138 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21140 (eval $ac_try) 2>&5
21141 ac_status=$?
21142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21143 (exit $ac_status); }; } &&
21144 { ac_try='test -s conftest.$ac_objext'
21145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21146 (eval $ac_try) 2>&5
21147 ac_status=$?
21148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21149 (exit $ac_status); }; }; then
21150 ac_cv_header_stdc=yes
21151 else
21152 echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.$ac_ext >&5
21154
21155 ac_cv_header_stdc=no
21156 fi
21157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21158
21159 if test $ac_cv_header_stdc = yes; then
21160 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
21161 cat >conftest.$ac_ext <<_ACEOF
21162 /* confdefs.h. */
21163 _ACEOF
21164 cat confdefs.h >>conftest.$ac_ext
21165 cat >>conftest.$ac_ext <<_ACEOF
21166 /* end confdefs.h. */
21167 #include <string.h>
21168
21169 _ACEOF
21170 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21171 $EGREP "memchr" >/dev/null 2>&1; then
21172 :
21173 else
21174 ac_cv_header_stdc=no
21175 fi
21176 rm -f conftest*
21177
21178 fi
21179
21180 if test $ac_cv_header_stdc = yes; then
21181 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
21182 cat >conftest.$ac_ext <<_ACEOF
21183 /* confdefs.h. */
21184 _ACEOF
21185 cat confdefs.h >>conftest.$ac_ext
21186 cat >>conftest.$ac_ext <<_ACEOF
21187 /* end confdefs.h. */
21188 #include <stdlib.h>
21189
21190 _ACEOF
21191 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
21192 $EGREP "free" >/dev/null 2>&1; then
21193 :
21194 else
21195 ac_cv_header_stdc=no
21196 fi
21197 rm -f conftest*
21198
21199 fi
21200
21201 if test $ac_cv_header_stdc = yes; then
21202 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
21203 if test "$cross_compiling" = yes; then
21204 :
21205 else
21206 cat >conftest.$ac_ext <<_ACEOF
21207 /* confdefs.h. */
21208 _ACEOF
21209 cat confdefs.h >>conftest.$ac_ext
21210 cat >>conftest.$ac_ext <<_ACEOF
21211 /* end confdefs.h. */
21212 #include <ctype.h>
21213 #if ((' ' & 0x0FF) == 0x020)
21214 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
21215 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
21216 #else
21217 # define ISLOWER(c) \
21218 (('a' <= (c) && (c) <= 'i') \
21219 || ('j' <= (c) && (c) <= 'r') \
21220 || ('s' <= (c) && (c) <= 'z'))
21221 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
21222 #endif
21223
21224 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
21225 int
21226 main ()
21227 {
21228 int i;
21229 for (i = 0; i < 256; i++)
21230 if (XOR (islower (i), ISLOWER (i))
21231 || toupper (i) != TOUPPER (i))
21232 exit(2);
21233 exit (0);
21234 }
21235 _ACEOF
21236 rm -f conftest$ac_exeext
21237 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21238 (eval $ac_link) 2>&5
21239 ac_status=$?
21240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21241 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21243 (eval $ac_try) 2>&5
21244 ac_status=$?
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); }; }; then
21247 :
21248 else
21249 echo "$as_me: program exited with status $ac_status" >&5
21250 echo "$as_me: failed program was:" >&5
21251 sed 's/^/| /' conftest.$ac_ext >&5
21252
21253 ( exit $ac_status )
21254 ac_cv_header_stdc=no
21255 fi
21256 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21257 fi
21258 fi
21259 fi
21260 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
21261 echo "${ECHO_T}$ac_cv_header_stdc" >&6
21262 if test $ac_cv_header_stdc = yes; then
21263
21264 cat >>confdefs.h <<\_ACEOF
21265 #define STDC_HEADERS 1
21266 _ACEOF
21267
21268 fi
21269
21270
21271
21272
21273
21274
21275
21276
21277 for ac_header in fcntl.h limits.h malloc.h strings.h unistd.h stdint.h getopt.h
21278 do
21279 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21280 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21281 echo "$as_me:$LINENO: checking for $ac_header" >&5
21282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21283 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21284 echo $ECHO_N "(cached) $ECHO_C" >&6
21285 fi
21286 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21287 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21288 else
21289 # Is the header compilable?
21290 echo "$as_me:$LINENO: checking $ac_header usability" >&5
21291 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
21292 cat >conftest.$ac_ext <<_ACEOF
21293 /* confdefs.h. */
21294 _ACEOF
21295 cat confdefs.h >>conftest.$ac_ext
21296 cat >>conftest.$ac_ext <<_ACEOF
21297 /* end confdefs.h. */
21298 $ac_includes_default
21299 #include <$ac_header>
21300 _ACEOF
21301 rm -f conftest.$ac_objext
21302 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21303 (eval $ac_compile) 2>conftest.er1
21304 ac_status=$?
21305 grep -v '^ *+' conftest.er1 >conftest.err
21306 rm -f conftest.er1
21307 cat conftest.err >&5
21308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21309 (exit $ac_status); } &&
21310 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21312 (eval $ac_try) 2>&5
21313 ac_status=$?
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); }; } &&
21316 { ac_try='test -s conftest.$ac_objext'
21317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21318 (eval $ac_try) 2>&5
21319 ac_status=$?
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); }; }; then
21322 ac_header_compiler=yes
21323 else
21324 echo "$as_me: failed program was:" >&5
21325 sed 's/^/| /' conftest.$ac_ext >&5
21326
21327 ac_header_compiler=no
21328 fi
21329 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21330 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21331 echo "${ECHO_T}$ac_header_compiler" >&6
21332
21333 # Is the header present?
21334 echo "$as_me:$LINENO: checking $ac_header presence" >&5
21335 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
21336 cat >conftest.$ac_ext <<_ACEOF
21337 /* confdefs.h. */
21338 _ACEOF
21339 cat confdefs.h >>conftest.$ac_ext
21340 cat >>conftest.$ac_ext <<_ACEOF
21341 /* end confdefs.h. */
21342 #include <$ac_header>
21343 _ACEOF
21344 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
21345 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
21346 ac_status=$?
21347 grep -v '^ *+' conftest.er1 >conftest.err
21348 rm -f conftest.er1
21349 cat conftest.err >&5
21350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21351 (exit $ac_status); } >/dev/null; then
21352 if test -s conftest.err; then
21353 ac_cpp_err=$ac_c_preproc_warn_flag
21354 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
21355 else
21356 ac_cpp_err=
21357 fi
21358 else
21359 ac_cpp_err=yes
21360 fi
21361 if test -z "$ac_cpp_err"; then
21362 ac_header_preproc=yes
21363 else
21364 echo "$as_me: failed program was:" >&5
21365 sed 's/^/| /' conftest.$ac_ext >&5
21366
21367 ac_header_preproc=no
21368 fi
21369 rm -f conftest.err conftest.$ac_ext
21370 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21371 echo "${ECHO_T}$ac_header_preproc" >&6
21372
21373 # So? What about this header?
21374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21375 yes:no: )
21376 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21377 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21378 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21379 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21380 ac_header_preproc=yes
21381 ;;
21382 no:yes:* )
21383 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21384 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21385 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21386 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21387 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21388 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21389 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21390 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21391 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21392 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21393 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21394 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21395 (
21396 cat <<\_ASBOX
21397 ## ------------------------------------------ ##
21398 ## Report this to the AC_PACKAGE_NAME lists. ##
21399 ## ------------------------------------------ ##
21400 _ASBOX
21401 ) |
21402 sed "s/^/$as_me: WARNING: /" >&2
21403 ;;
21404 esac
21405 echo "$as_me:$LINENO: checking for $ac_header" >&5
21406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
21407 if eval "test \"\${$as_ac_Header+set}\" = set"; then
21408 echo $ECHO_N "(cached) $ECHO_C" >&6
21409 else
21410 eval "$as_ac_Header=\$ac_header_preproc"
21411 fi
21412 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
21413 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
21414
21415 fi
21416 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21417 cat >>confdefs.h <<_ACEOF
21418 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21419 _ACEOF
21420
21421 fi
21422
21423 done
21424
21425
21426
21427 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
21428 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
21429 if test "${ac_cv_c_const+set}" = set; then
21430 echo $ECHO_N "(cached) $ECHO_C" >&6
21431 else
21432 cat >conftest.$ac_ext <<_ACEOF
21433 /* confdefs.h. */
21434 _ACEOF
21435 cat confdefs.h >>conftest.$ac_ext
21436 cat >>conftest.$ac_ext <<_ACEOF
21437 /* end confdefs.h. */
21438
21439 int
21440 main ()
21441 {
21442 /* FIXME: Include the comments suggested by Paul. */
21443 #ifndef __cplusplus
21444 /* Ultrix mips cc rejects this. */
21445 typedef int charset[2];
21446 const charset x;
21447 /* SunOS 4.1.1 cc rejects this. */
21448 char const *const *ccp;
21449 char **p;
21450 /* NEC SVR4.0.2 mips cc rejects this. */
21451 struct point {int x, y;};
21452 static struct point const zero = {0,0};
21453 /* AIX XL C 1.02.0.0 rejects this.
21454 It does not let you subtract one const X* pointer from another in
21455 an arm of an if-expression whose if-part is not a constant
21456 expression */
21457 const char *g = "string";
21458 ccp = &g + (g ? g-g : 0);
21459 /* HPUX 7.0 cc rejects these. */
21460 ++ccp;
21461 p = (char**) ccp;
21462 ccp = (char const *const *) p;
21463 { /* SCO 3.2v4 cc rejects this. */
21464 char *t;
21465 char const *s = 0 ? (char *) 0 : (char const *) 0;
21466
21467 *t++ = 0;
21468 }
21469 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
21470 int x[] = {25, 17};
21471 const int *foo = &x[0];
21472 ++foo;
21473 }
21474 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
21475 typedef const int *iptr;
21476 iptr p = 0;
21477 ++p;
21478 }
21479 { /* AIX XL C 1.02.0.0 rejects this saying
21480 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
21481 struct s { int j; const int *ap[3]; };
21482 struct s *b; b->j = 5;
21483 }
21484 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
21485 const int foo = 10;
21486 }
21487 #endif
21488
21489 ;
21490 return 0;
21491 }
21492 _ACEOF
21493 rm -f conftest.$ac_objext
21494 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21495 (eval $ac_compile) 2>conftest.er1
21496 ac_status=$?
21497 grep -v '^ *+' conftest.er1 >conftest.err
21498 rm -f conftest.er1
21499 cat conftest.err >&5
21500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21501 (exit $ac_status); } &&
21502 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21504 (eval $ac_try) 2>&5
21505 ac_status=$?
21506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21507 (exit $ac_status); }; } &&
21508 { ac_try='test -s conftest.$ac_objext'
21509 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21510 (eval $ac_try) 2>&5
21511 ac_status=$?
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); }; }; then
21514 ac_cv_c_const=yes
21515 else
21516 echo "$as_me: failed program was:" >&5
21517 sed 's/^/| /' conftest.$ac_ext >&5
21518
21519 ac_cv_c_const=no
21520 fi
21521 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21522 fi
21523 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
21524 echo "${ECHO_T}$ac_cv_c_const" >&6
21525 if test $ac_cv_c_const = no; then
21526
21527 cat >>confdefs.h <<\_ACEOF
21528 #define const
21529 _ACEOF
21530
21531 fi
21532
21533 echo "$as_me:$LINENO: checking for " >&5
21534 echo $ECHO_N "checking for ... $ECHO_C" >&6
21535 if test "${ac_cv_type_+set}" = set; then
21536 echo $ECHO_N "(cached) $ECHO_C" >&6
21537 else
21538 cat >conftest.$ac_ext <<_ACEOF
21539 /* confdefs.h. */
21540 _ACEOF
21541 cat confdefs.h >>conftest.$ac_ext
21542 cat >>conftest.$ac_ext <<_ACEOF
21543 /* end confdefs.h. */
21544 $ac_includes_default
21545 int
21546 main ()
21547 {
21548 if (( *) 0)
21549 return 0;
21550 if (sizeof ())
21551 return 0;
21552 ;
21553 return 0;
21554 }
21555 _ACEOF
21556 rm -f conftest.$ac_objext
21557 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21558 (eval $ac_compile) 2>conftest.er1
21559 ac_status=$?
21560 grep -v '^ *+' conftest.er1 >conftest.err
21561 rm -f conftest.er1
21562 cat conftest.err >&5
21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21564 (exit $ac_status); } &&
21565 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21567 (eval $ac_try) 2>&5
21568 ac_status=$?
21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21570 (exit $ac_status); }; } &&
21571 { ac_try='test -s conftest.$ac_objext'
21572 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21573 (eval $ac_try) 2>&5
21574 ac_status=$?
21575 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21576 (exit $ac_status); }; }; then
21577 ac_cv_type_=yes
21578 else
21579 echo "$as_me: failed program was:" >&5
21580 sed 's/^/| /' conftest.$ac_ext >&5
21581
21582 ac_cv_type_=no
21583 fi
21584 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21585 fi
21586 echo "$as_me:$LINENO: result: $ac_cv_type_" >&5
21587 echo "${ECHO_T}$ac_cv_type_" >&6
21588
21589 echo "$as_me:$LINENO: checking size of " >&5
21590 echo $ECHO_N "checking size of ... $ECHO_C" >&6
21591 if test "${ac_cv_sizeof_+set}" = set; then
21592 echo $ECHO_N "(cached) $ECHO_C" >&6
21593 else
21594 if test "$ac_cv_type_" = yes; then
21595 # The cast to unsigned long works around a bug in the HP C Compiler
21596 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
21597 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
21598 # This bug is HP SR number 8606223364.
21599 if test "$cross_compiling" = yes; then
21600 # Depending upon the size, compute the lo and hi bounds.
21601 cat >conftest.$ac_ext <<_ACEOF
21602 /* confdefs.h. */
21603 _ACEOF
21604 cat confdefs.h >>conftest.$ac_ext
21605 cat >>conftest.$ac_ext <<_ACEOF
21606 /* end confdefs.h. */
21607 $ac_includes_default
21608 int
21609 main ()
21610 {
21611 static int test_array [1 - 2 * !(((long) (sizeof ())) >= 0)];
21612 test_array [0] = 0
21613
21614 ;
21615 return 0;
21616 }
21617 _ACEOF
21618 rm -f conftest.$ac_objext
21619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21620 (eval $ac_compile) 2>conftest.er1
21621 ac_status=$?
21622 grep -v '^ *+' conftest.er1 >conftest.err
21623 rm -f conftest.er1
21624 cat conftest.err >&5
21625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21626 (exit $ac_status); } &&
21627 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21629 (eval $ac_try) 2>&5
21630 ac_status=$?
21631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21632 (exit $ac_status); }; } &&
21633 { ac_try='test -s conftest.$ac_objext'
21634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21635 (eval $ac_try) 2>&5
21636 ac_status=$?
21637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21638 (exit $ac_status); }; }; then
21639 ac_lo=0 ac_mid=0
21640 while :; do
21641 cat >conftest.$ac_ext <<_ACEOF
21642 /* confdefs.h. */
21643 _ACEOF
21644 cat confdefs.h >>conftest.$ac_ext
21645 cat >>conftest.$ac_ext <<_ACEOF
21646 /* end confdefs.h. */
21647 $ac_includes_default
21648 int
21649 main ()
21650 {
21651 static int test_array [1 - 2 * !(((long) (sizeof ())) <= $ac_mid)];
21652 test_array [0] = 0
21653
21654 ;
21655 return 0;
21656 }
21657 _ACEOF
21658 rm -f conftest.$ac_objext
21659 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21660 (eval $ac_compile) 2>conftest.er1
21661 ac_status=$?
21662 grep -v '^ *+' conftest.er1 >conftest.err
21663 rm -f conftest.er1
21664 cat conftest.err >&5
21665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21666 (exit $ac_status); } &&
21667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21669 (eval $ac_try) 2>&5
21670 ac_status=$?
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); }; } &&
21673 { ac_try='test -s conftest.$ac_objext'
21674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21675 (eval $ac_try) 2>&5
21676 ac_status=$?
21677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678 (exit $ac_status); }; }; then
21679 ac_hi=$ac_mid; break
21680 else
21681 echo "$as_me: failed program was:" >&5
21682 sed 's/^/| /' conftest.$ac_ext >&5
21683
21684 ac_lo=`expr $ac_mid + 1`
21685 if test $ac_lo -le $ac_mid; then
21686 ac_lo= ac_hi=
21687 break
21688 fi
21689 ac_mid=`expr 2 '*' $ac_mid + 1`
21690 fi
21691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21692 done
21693 else
21694 echo "$as_me: failed program was:" >&5
21695 sed 's/^/| /' conftest.$ac_ext >&5
21696
21697 cat >conftest.$ac_ext <<_ACEOF
21698 /* confdefs.h. */
21699 _ACEOF
21700 cat confdefs.h >>conftest.$ac_ext
21701 cat >>conftest.$ac_ext <<_ACEOF
21702 /* end confdefs.h. */
21703 $ac_includes_default
21704 int
21705 main ()
21706 {
21707 static int test_array [1 - 2 * !(((long) (sizeof ())) < 0)];
21708 test_array [0] = 0
21709
21710 ;
21711 return 0;
21712 }
21713 _ACEOF
21714 rm -f conftest.$ac_objext
21715 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21716 (eval $ac_compile) 2>conftest.er1
21717 ac_status=$?
21718 grep -v '^ *+' conftest.er1 >conftest.err
21719 rm -f conftest.er1
21720 cat conftest.err >&5
21721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21722 (exit $ac_status); } &&
21723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21725 (eval $ac_try) 2>&5
21726 ac_status=$?
21727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21728 (exit $ac_status); }; } &&
21729 { ac_try='test -s conftest.$ac_objext'
21730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21731 (eval $ac_try) 2>&5
21732 ac_status=$?
21733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21734 (exit $ac_status); }; }; then
21735 ac_hi=-1 ac_mid=-1
21736 while :; do
21737 cat >conftest.$ac_ext <<_ACEOF
21738 /* confdefs.h. */
21739 _ACEOF
21740 cat confdefs.h >>conftest.$ac_ext
21741 cat >>conftest.$ac_ext <<_ACEOF
21742 /* end confdefs.h. */
21743 $ac_includes_default
21744 int
21745 main ()
21746 {
21747 static int test_array [1 - 2 * !(((long) (sizeof ())) >= $ac_mid)];
21748 test_array [0] = 0
21749
21750 ;
21751 return 0;
21752 }
21753 _ACEOF
21754 rm -f conftest.$ac_objext
21755 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21756 (eval $ac_compile) 2>conftest.er1
21757 ac_status=$?
21758 grep -v '^ *+' conftest.er1 >conftest.err
21759 rm -f conftest.er1
21760 cat conftest.err >&5
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); } &&
21763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21765 (eval $ac_try) 2>&5
21766 ac_status=$?
21767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21768 (exit $ac_status); }; } &&
21769 { ac_try='test -s conftest.$ac_objext'
21770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21771 (eval $ac_try) 2>&5
21772 ac_status=$?
21773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21774 (exit $ac_status); }; }; then
21775 ac_lo=$ac_mid; break
21776 else
21777 echo "$as_me: failed program was:" >&5
21778 sed 's/^/| /' conftest.$ac_ext >&5
21779
21780 ac_hi=`expr '(' $ac_mid ')' - 1`
21781 if test $ac_mid -le $ac_hi; then
21782 ac_lo= ac_hi=
21783 break
21784 fi
21785 ac_mid=`expr 2 '*' $ac_mid`
21786 fi
21787 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21788 done
21789 else
21790 echo "$as_me: failed program was:" >&5
21791 sed 's/^/| /' conftest.$ac_ext >&5
21792
21793 ac_lo= ac_hi=
21794 fi
21795 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21796 fi
21797 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21798 # Binary search between lo and hi bounds.
21799 while test "x$ac_lo" != "x$ac_hi"; do
21800 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
21801 cat >conftest.$ac_ext <<_ACEOF
21802 /* confdefs.h. */
21803 _ACEOF
21804 cat confdefs.h >>conftest.$ac_ext
21805 cat >>conftest.$ac_ext <<_ACEOF
21806 /* end confdefs.h. */
21807 $ac_includes_default
21808 int
21809 main ()
21810 {
21811 static int test_array [1 - 2 * !(((long) (sizeof ())) <= $ac_mid)];
21812 test_array [0] = 0
21813
21814 ;
21815 return 0;
21816 }
21817 _ACEOF
21818 rm -f conftest.$ac_objext
21819 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21820 (eval $ac_compile) 2>conftest.er1
21821 ac_status=$?
21822 grep -v '^ *+' conftest.er1 >conftest.err
21823 rm -f conftest.er1
21824 cat conftest.err >&5
21825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21826 (exit $ac_status); } &&
21827 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21829 (eval $ac_try) 2>&5
21830 ac_status=$?
21831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21832 (exit $ac_status); }; } &&
21833 { ac_try='test -s conftest.$ac_objext'
21834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21835 (eval $ac_try) 2>&5
21836 ac_status=$?
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); }; }; then
21839 ac_hi=$ac_mid
21840 else
21841 echo "$as_me: failed program was:" >&5
21842 sed 's/^/| /' conftest.$ac_ext >&5
21843
21844 ac_lo=`expr '(' $ac_mid ')' + 1`
21845 fi
21846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21847 done
21848 case $ac_lo in
21849 ?*) ac_cv_sizeof_=$ac_lo;;
21850 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (), 77
21851 See \`config.log' for more details." >&5
21852 echo "$as_me: error: cannot compute sizeof (), 77
21853 See \`config.log' for more details." >&2;}
21854 { (exit 1); exit 1; }; } ;;
21855 esac
21856 else
21857 if test "$cross_compiling" = yes; then
21858 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
21859 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
21860 { (exit 1); exit 1; }; }
21861 else
21862 cat >conftest.$ac_ext <<_ACEOF
21863 /* confdefs.h. */
21864 _ACEOF
21865 cat confdefs.h >>conftest.$ac_ext
21866 cat >>conftest.$ac_ext <<_ACEOF
21867 /* end confdefs.h. */
21868 $ac_includes_default
21869 long longval () { return (long) (sizeof ()); }
21870 unsigned long ulongval () { return (long) (sizeof ()); }
21871 #include <stdio.h>
21872 #include <stdlib.h>
21873 int
21874 main ()
21875 {
21876
21877 FILE *f = fopen ("conftest.val", "w");
21878 if (! f)
21879 exit (1);
21880 if (((long) (sizeof ())) < 0)
21881 {
21882 long i = longval ();
21883 if (i != ((long) (sizeof ())))
21884 exit (1);
21885 fprintf (f, "%ld\n", i);
21886 }
21887 else
21888 {
21889 unsigned long i = ulongval ();
21890 if (i != ((long) (sizeof ())))
21891 exit (1);
21892 fprintf (f, "%lu\n", i);
21893 }
21894 exit (ferror (f) || fclose (f) != 0);
21895
21896 ;
21897 return 0;
21898 }
21899 _ACEOF
21900 rm -f conftest$ac_exeext
21901 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21902 (eval $ac_link) 2>&5
21903 ac_status=$?
21904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21905 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21907 (eval $ac_try) 2>&5
21908 ac_status=$?
21909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21910 (exit $ac_status); }; }; then
21911 ac_cv_sizeof_=`cat conftest.val`
21912 else
21913 echo "$as_me: program exited with status $ac_status" >&5
21914 echo "$as_me: failed program was:" >&5
21915 sed 's/^/| /' conftest.$ac_ext >&5
21916
21917 ( exit $ac_status )
21918 { { echo "$as_me:$LINENO: error: cannot compute sizeof (), 77
21919 See \`config.log' for more details." >&5
21920 echo "$as_me: error: cannot compute sizeof (), 77
21921 See \`config.log' for more details." >&2;}
21922 { (exit 1); exit 1; }; }
21923 fi
21924 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21925 fi
21926 fi
21927 rm -f conftest.val
21928 else
21929 ac_cv_sizeof_=0
21930 fi
21931 fi
21932 echo "$as_me:$LINENO: result: $ac_cv_sizeof_" >&5
21933 echo "${ECHO_T}$ac_cv_sizeof_" >&6
21934 cat >>confdefs.h <<_ACEOF
21935 #define SIZEOF_ $ac_cv_sizeof_
21936 _ACEOF
21937
21938
21939 echo "$as_me:$LINENO: checking for size_t" >&5
21940 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
21941 if test "${ac_cv_type_size_t+set}" = set; then
21942 echo $ECHO_N "(cached) $ECHO_C" >&6
21943 else
21944 cat >conftest.$ac_ext <<_ACEOF
21945 /* confdefs.h. */
21946 _ACEOF
21947 cat confdefs.h >>conftest.$ac_ext
21948 cat >>conftest.$ac_ext <<_ACEOF
21949 /* end confdefs.h. */
21950 $ac_includes_default
21951 int
21952 main ()
21953 {
21954 if ((size_t *) 0)
21955 return 0;
21956 if (sizeof (size_t))
21957 return 0;
21958 ;
21959 return 0;
21960 }
21961 _ACEOF
21962 rm -f conftest.$ac_objext
21963 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
21964 (eval $ac_compile) 2>conftest.er1
21965 ac_status=$?
21966 grep -v '^ *+' conftest.er1 >conftest.err
21967 rm -f conftest.er1
21968 cat conftest.err >&5
21969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21970 (exit $ac_status); } &&
21971 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21973 (eval $ac_try) 2>&5
21974 ac_status=$?
21975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21976 (exit $ac_status); }; } &&
21977 { ac_try='test -s conftest.$ac_objext'
21978 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21979 (eval $ac_try) 2>&5
21980 ac_status=$?
21981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21982 (exit $ac_status); }; }; then
21983 ac_cv_type_size_t=yes
21984 else
21985 echo "$as_me: failed program was:" >&5
21986 sed 's/^/| /' conftest.$ac_ext >&5
21987
21988 ac_cv_type_size_t=no
21989 fi
21990 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
21991 fi
21992 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
21993 echo "${ECHO_T}$ac_cv_type_size_t" >&6
21994 if test $ac_cv_type_size_t = yes; then
21995 :
21996 else
21997
21998 cat >>confdefs.h <<_ACEOF
21999 #define size_t unsigned
22000 _ACEOF
22001
22002 fi
22003
22004 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
22005 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
22006 if test "${ac_cv_struct_tm+set}" = set; then
22007 echo $ECHO_N "(cached) $ECHO_C" >&6
22008 else
22009 cat >conftest.$ac_ext <<_ACEOF
22010 /* confdefs.h. */
22011 _ACEOF
22012 cat confdefs.h >>conftest.$ac_ext
22013 cat >>conftest.$ac_ext <<_ACEOF
22014 /* end confdefs.h. */
22015 #include <sys/types.h>
22016 #include <time.h>
22017
22018 int
22019 main ()
22020 {
22021 struct tm *tp; tp->tm_sec;
22022 ;
22023 return 0;
22024 }
22025 _ACEOF
22026 rm -f conftest.$ac_objext
22027 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22028 (eval $ac_compile) 2>conftest.er1
22029 ac_status=$?
22030 grep -v '^ *+' conftest.er1 >conftest.err
22031 rm -f conftest.er1
22032 cat conftest.err >&5
22033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22034 (exit $ac_status); } &&
22035 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22037 (eval $ac_try) 2>&5
22038 ac_status=$?
22039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22040 (exit $ac_status); }; } &&
22041 { ac_try='test -s conftest.$ac_objext'
22042 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22043 (eval $ac_try) 2>&5
22044 ac_status=$?
22045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22046 (exit $ac_status); }; }; then
22047 ac_cv_struct_tm=time.h
22048 else
22049 echo "$as_me: failed program was:" >&5
22050 sed 's/^/| /' conftest.$ac_ext >&5
22051
22052 ac_cv_struct_tm=sys/time.h
22053 fi
22054 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22055 fi
22056 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
22057 echo "${ECHO_T}$ac_cv_struct_tm" >&6
22058 if test $ac_cv_struct_tm = sys/time.h; then
22059
22060 cat >>confdefs.h <<\_ACEOF
22061 #define TM_IN_SYS_TIME 1
22062 _ACEOF
22063
22064 fi
22065
22066 echo "$as_me:$LINENO: checking for short" >&5
22067 echo $ECHO_N "checking for short... $ECHO_C" >&6
22068 if test "${ac_cv_type_short+set}" = set; then
22069 echo $ECHO_N "(cached) $ECHO_C" >&6
22070 else
22071 cat >conftest.$ac_ext <<_ACEOF
22072 /* confdefs.h. */
22073 _ACEOF
22074 cat confdefs.h >>conftest.$ac_ext
22075 cat >>conftest.$ac_ext <<_ACEOF
22076 /* end confdefs.h. */
22077 $ac_includes_default
22078 int
22079 main ()
22080 {
22081 if ((short *) 0)
22082 return 0;
22083 if (sizeof (short))
22084 return 0;
22085 ;
22086 return 0;
22087 }
22088 _ACEOF
22089 rm -f conftest.$ac_objext
22090 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22091 (eval $ac_compile) 2>conftest.er1
22092 ac_status=$?
22093 grep -v '^ *+' conftest.er1 >conftest.err
22094 rm -f conftest.er1
22095 cat conftest.err >&5
22096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22097 (exit $ac_status); } &&
22098 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22100 (eval $ac_try) 2>&5
22101 ac_status=$?
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); }; } &&
22104 { ac_try='test -s conftest.$ac_objext'
22105 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22106 (eval $ac_try) 2>&5
22107 ac_status=$?
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); }; }; then
22110 ac_cv_type_short=yes
22111 else
22112 echo "$as_me: failed program was:" >&5
22113 sed 's/^/| /' conftest.$ac_ext >&5
22114
22115 ac_cv_type_short=no
22116 fi
22117 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22118 fi
22119 echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5
22120 echo "${ECHO_T}$ac_cv_type_short" >&6
22121
22122 echo "$as_me:$LINENO: checking size of short" >&5
22123 echo $ECHO_N "checking size of short... $ECHO_C" >&6
22124 if test "${ac_cv_sizeof_short+set}" = set; then
22125 echo $ECHO_N "(cached) $ECHO_C" >&6
22126 else
22127 if test "$ac_cv_type_short" = yes; then
22128 # The cast to unsigned long works around a bug in the HP C Compiler
22129 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22130 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22131 # This bug is HP SR number 8606223364.
22132 if test "$cross_compiling" = yes; then
22133 # Depending upon the size, compute the lo and hi bounds.
22134 cat >conftest.$ac_ext <<_ACEOF
22135 /* confdefs.h. */
22136 _ACEOF
22137 cat confdefs.h >>conftest.$ac_ext
22138 cat >>conftest.$ac_ext <<_ACEOF
22139 /* end confdefs.h. */
22140 $ac_includes_default
22141 int
22142 main ()
22143 {
22144 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)];
22145 test_array [0] = 0
22146
22147 ;
22148 return 0;
22149 }
22150 _ACEOF
22151 rm -f conftest.$ac_objext
22152 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22153 (eval $ac_compile) 2>conftest.er1
22154 ac_status=$?
22155 grep -v '^ *+' conftest.er1 >conftest.err
22156 rm -f conftest.er1
22157 cat conftest.err >&5
22158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22159 (exit $ac_status); } &&
22160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22162 (eval $ac_try) 2>&5
22163 ac_status=$?
22164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22165 (exit $ac_status); }; } &&
22166 { ac_try='test -s conftest.$ac_objext'
22167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22168 (eval $ac_try) 2>&5
22169 ac_status=$?
22170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22171 (exit $ac_status); }; }; then
22172 ac_lo=0 ac_mid=0
22173 while :; do
22174 cat >conftest.$ac_ext <<_ACEOF
22175 /* confdefs.h. */
22176 _ACEOF
22177 cat confdefs.h >>conftest.$ac_ext
22178 cat >>conftest.$ac_ext <<_ACEOF
22179 /* end confdefs.h. */
22180 $ac_includes_default
22181 int
22182 main ()
22183 {
22184 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
22185 test_array [0] = 0
22186
22187 ;
22188 return 0;
22189 }
22190 _ACEOF
22191 rm -f conftest.$ac_objext
22192 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22193 (eval $ac_compile) 2>conftest.er1
22194 ac_status=$?
22195 grep -v '^ *+' conftest.er1 >conftest.err
22196 rm -f conftest.er1
22197 cat conftest.err >&5
22198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22199 (exit $ac_status); } &&
22200 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22202 (eval $ac_try) 2>&5
22203 ac_status=$?
22204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22205 (exit $ac_status); }; } &&
22206 { ac_try='test -s conftest.$ac_objext'
22207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22208 (eval $ac_try) 2>&5
22209 ac_status=$?
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); }; }; then
22212 ac_hi=$ac_mid; break
22213 else
22214 echo "$as_me: failed program was:" >&5
22215 sed 's/^/| /' conftest.$ac_ext >&5
22216
22217 ac_lo=`expr $ac_mid + 1`
22218 if test $ac_lo -le $ac_mid; then
22219 ac_lo= ac_hi=
22220 break
22221 fi
22222 ac_mid=`expr 2 '*' $ac_mid + 1`
22223 fi
22224 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22225 done
22226 else
22227 echo "$as_me: failed program was:" >&5
22228 sed 's/^/| /' conftest.$ac_ext >&5
22229
22230 cat >conftest.$ac_ext <<_ACEOF
22231 /* confdefs.h. */
22232 _ACEOF
22233 cat confdefs.h >>conftest.$ac_ext
22234 cat >>conftest.$ac_ext <<_ACEOF
22235 /* end confdefs.h. */
22236 $ac_includes_default
22237 int
22238 main ()
22239 {
22240 static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)];
22241 test_array [0] = 0
22242
22243 ;
22244 return 0;
22245 }
22246 _ACEOF
22247 rm -f conftest.$ac_objext
22248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22249 (eval $ac_compile) 2>conftest.er1
22250 ac_status=$?
22251 grep -v '^ *+' conftest.er1 >conftest.err
22252 rm -f conftest.er1
22253 cat conftest.err >&5
22254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22255 (exit $ac_status); } &&
22256 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22258 (eval $ac_try) 2>&5
22259 ac_status=$?
22260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22261 (exit $ac_status); }; } &&
22262 { ac_try='test -s conftest.$ac_objext'
22263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22264 (eval $ac_try) 2>&5
22265 ac_status=$?
22266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22267 (exit $ac_status); }; }; then
22268 ac_hi=-1 ac_mid=-1
22269 while :; do
22270 cat >conftest.$ac_ext <<_ACEOF
22271 /* confdefs.h. */
22272 _ACEOF
22273 cat confdefs.h >>conftest.$ac_ext
22274 cat >>conftest.$ac_ext <<_ACEOF
22275 /* end confdefs.h. */
22276 $ac_includes_default
22277 int
22278 main ()
22279 {
22280 static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)];
22281 test_array [0] = 0
22282
22283 ;
22284 return 0;
22285 }
22286 _ACEOF
22287 rm -f conftest.$ac_objext
22288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22289 (eval $ac_compile) 2>conftest.er1
22290 ac_status=$?
22291 grep -v '^ *+' conftest.er1 >conftest.err
22292 rm -f conftest.er1
22293 cat conftest.err >&5
22294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22295 (exit $ac_status); } &&
22296 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22297 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22298 (eval $ac_try) 2>&5
22299 ac_status=$?
22300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22301 (exit $ac_status); }; } &&
22302 { ac_try='test -s conftest.$ac_objext'
22303 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22304 (eval $ac_try) 2>&5
22305 ac_status=$?
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); }; }; then
22308 ac_lo=$ac_mid; break
22309 else
22310 echo "$as_me: failed program was:" >&5
22311 sed 's/^/| /' conftest.$ac_ext >&5
22312
22313 ac_hi=`expr '(' $ac_mid ')' - 1`
22314 if test $ac_mid -le $ac_hi; then
22315 ac_lo= ac_hi=
22316 break
22317 fi
22318 ac_mid=`expr 2 '*' $ac_mid`
22319 fi
22320 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22321 done
22322 else
22323 echo "$as_me: failed program was:" >&5
22324 sed 's/^/| /' conftest.$ac_ext >&5
22325
22326 ac_lo= ac_hi=
22327 fi
22328 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22329 fi
22330 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22331 # Binary search between lo and hi bounds.
22332 while test "x$ac_lo" != "x$ac_hi"; do
22333 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22334 cat >conftest.$ac_ext <<_ACEOF
22335 /* confdefs.h. */
22336 _ACEOF
22337 cat confdefs.h >>conftest.$ac_ext
22338 cat >>conftest.$ac_ext <<_ACEOF
22339 /* end confdefs.h. */
22340 $ac_includes_default
22341 int
22342 main ()
22343 {
22344 static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)];
22345 test_array [0] = 0
22346
22347 ;
22348 return 0;
22349 }
22350 _ACEOF
22351 rm -f conftest.$ac_objext
22352 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22353 (eval $ac_compile) 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" || test ! -s conftest.err'
22361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22362 (eval $ac_try) 2>&5
22363 ac_status=$?
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); }; } &&
22366 { ac_try='test -s conftest.$ac_objext'
22367 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22368 (eval $ac_try) 2>&5
22369 ac_status=$?
22370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22371 (exit $ac_status); }; }; then
22372 ac_hi=$ac_mid
22373 else
22374 echo "$as_me: failed program was:" >&5
22375 sed 's/^/| /' conftest.$ac_ext >&5
22376
22377 ac_lo=`expr '(' $ac_mid ')' + 1`
22378 fi
22379 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22380 done
22381 case $ac_lo in
22382 ?*) ac_cv_sizeof_short=$ac_lo;;
22383 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
22384 See \`config.log' for more details." >&5
22385 echo "$as_me: error: cannot compute sizeof (short), 77
22386 See \`config.log' for more details." >&2;}
22387 { (exit 1); exit 1; }; } ;;
22388 esac
22389 else
22390 if test "$cross_compiling" = yes; then
22391 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22392 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
22393 { (exit 1); exit 1; }; }
22394 else
22395 cat >conftest.$ac_ext <<_ACEOF
22396 /* confdefs.h. */
22397 _ACEOF
22398 cat confdefs.h >>conftest.$ac_ext
22399 cat >>conftest.$ac_ext <<_ACEOF
22400 /* end confdefs.h. */
22401 $ac_includes_default
22402 long longval () { return (long) (sizeof (short)); }
22403 unsigned long ulongval () { return (long) (sizeof (short)); }
22404 #include <stdio.h>
22405 #include <stdlib.h>
22406 int
22407 main ()
22408 {
22409
22410 FILE *f = fopen ("conftest.val", "w");
22411 if (! f)
22412 exit (1);
22413 if (((long) (sizeof (short))) < 0)
22414 {
22415 long i = longval ();
22416 if (i != ((long) (sizeof (short))))
22417 exit (1);
22418 fprintf (f, "%ld\n", i);
22419 }
22420 else
22421 {
22422 unsigned long i = ulongval ();
22423 if (i != ((long) (sizeof (short))))
22424 exit (1);
22425 fprintf (f, "%lu\n", i);
22426 }
22427 exit (ferror (f) || fclose (f) != 0);
22428
22429 ;
22430 return 0;
22431 }
22432 _ACEOF
22433 rm -f conftest$ac_exeext
22434 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22435 (eval $ac_link) 2>&5
22436 ac_status=$?
22437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22438 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22439 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22440 (eval $ac_try) 2>&5
22441 ac_status=$?
22442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22443 (exit $ac_status); }; }; then
22444 ac_cv_sizeof_short=`cat conftest.val`
22445 else
22446 echo "$as_me: program exited with status $ac_status" >&5
22447 echo "$as_me: failed program was:" >&5
22448 sed 's/^/| /' conftest.$ac_ext >&5
22449
22450 ( exit $ac_status )
22451 { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77
22452 See \`config.log' for more details." >&5
22453 echo "$as_me: error: cannot compute sizeof (short), 77
22454 See \`config.log' for more details." >&2;}
22455 { (exit 1); exit 1; }; }
22456 fi
22457 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22458 fi
22459 fi
22460 rm -f conftest.val
22461 else
22462 ac_cv_sizeof_short=0
22463 fi
22464 fi
22465 echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5
22466 echo "${ECHO_T}$ac_cv_sizeof_short" >&6
22467 cat >>confdefs.h <<_ACEOF
22468 #define SIZEOF_SHORT $ac_cv_sizeof_short
22469 _ACEOF
22470
22471
22472 echo "$as_me:$LINENO: checking for unsigned short" >&5
22473 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
22474 if test "${ac_cv_type_unsigned_short+set}" = set; then
22475 echo $ECHO_N "(cached) $ECHO_C" >&6
22476 else
22477 cat >conftest.$ac_ext <<_ACEOF
22478 /* confdefs.h. */
22479 _ACEOF
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h. */
22483 $ac_includes_default
22484 int
22485 main ()
22486 {
22487 if ((unsigned short *) 0)
22488 return 0;
22489 if (sizeof (unsigned short))
22490 return 0;
22491 ;
22492 return 0;
22493 }
22494 _ACEOF
22495 rm -f conftest.$ac_objext
22496 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22497 (eval $ac_compile) 2>conftest.er1
22498 ac_status=$?
22499 grep -v '^ *+' conftest.er1 >conftest.err
22500 rm -f conftest.er1
22501 cat conftest.err >&5
22502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22503 (exit $ac_status); } &&
22504 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22505 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22506 (eval $ac_try) 2>&5
22507 ac_status=$?
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); }; } &&
22510 { ac_try='test -s conftest.$ac_objext'
22511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22512 (eval $ac_try) 2>&5
22513 ac_status=$?
22514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22515 (exit $ac_status); }; }; then
22516 ac_cv_type_unsigned_short=yes
22517 else
22518 echo "$as_me: failed program was:" >&5
22519 sed 's/^/| /' conftest.$ac_ext >&5
22520
22521 ac_cv_type_unsigned_short=no
22522 fi
22523 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22524 fi
22525 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
22526 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
22527
22528 echo "$as_me:$LINENO: checking size of unsigned short" >&5
22529 echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
22530 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
22531 echo $ECHO_N "(cached) $ECHO_C" >&6
22532 else
22533 if test "$ac_cv_type_unsigned_short" = yes; then
22534 # The cast to unsigned long works around a bug in the HP C Compiler
22535 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22536 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22537 # This bug is HP SR number 8606223364.
22538 if test "$cross_compiling" = yes; then
22539 # Depending upon the size, compute the lo and hi bounds.
22540 cat >conftest.$ac_ext <<_ACEOF
22541 /* confdefs.h. */
22542 _ACEOF
22543 cat confdefs.h >>conftest.$ac_ext
22544 cat >>conftest.$ac_ext <<_ACEOF
22545 /* end confdefs.h. */
22546 $ac_includes_default
22547 int
22548 main ()
22549 {
22550 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
22551 test_array [0] = 0
22552
22553 ;
22554 return 0;
22555 }
22556 _ACEOF
22557 rm -f conftest.$ac_objext
22558 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22559 (eval $ac_compile) 2>conftest.er1
22560 ac_status=$?
22561 grep -v '^ *+' conftest.er1 >conftest.err
22562 rm -f conftest.er1
22563 cat conftest.err >&5
22564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22565 (exit $ac_status); } &&
22566 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22567 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22568 (eval $ac_try) 2>&5
22569 ac_status=$?
22570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22571 (exit $ac_status); }; } &&
22572 { ac_try='test -s conftest.$ac_objext'
22573 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22574 (eval $ac_try) 2>&5
22575 ac_status=$?
22576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22577 (exit $ac_status); }; }; then
22578 ac_lo=0 ac_mid=0
22579 while :; do
22580 cat >conftest.$ac_ext <<_ACEOF
22581 /* confdefs.h. */
22582 _ACEOF
22583 cat confdefs.h >>conftest.$ac_ext
22584 cat >>conftest.$ac_ext <<_ACEOF
22585 /* end confdefs.h. */
22586 $ac_includes_default
22587 int
22588 main ()
22589 {
22590 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
22591 test_array [0] = 0
22592
22593 ;
22594 return 0;
22595 }
22596 _ACEOF
22597 rm -f conftest.$ac_objext
22598 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22599 (eval $ac_compile) 2>conftest.er1
22600 ac_status=$?
22601 grep -v '^ *+' conftest.er1 >conftest.err
22602 rm -f conftest.er1
22603 cat conftest.err >&5
22604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605 (exit $ac_status); } &&
22606 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22608 (eval $ac_try) 2>&5
22609 ac_status=$?
22610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22611 (exit $ac_status); }; } &&
22612 { ac_try='test -s conftest.$ac_objext'
22613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22614 (eval $ac_try) 2>&5
22615 ac_status=$?
22616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22617 (exit $ac_status); }; }; then
22618 ac_hi=$ac_mid; break
22619 else
22620 echo "$as_me: failed program was:" >&5
22621 sed 's/^/| /' conftest.$ac_ext >&5
22622
22623 ac_lo=`expr $ac_mid + 1`
22624 if test $ac_lo -le $ac_mid; then
22625 ac_lo= ac_hi=
22626 break
22627 fi
22628 ac_mid=`expr 2 '*' $ac_mid + 1`
22629 fi
22630 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22631 done
22632 else
22633 echo "$as_me: failed program was:" >&5
22634 sed 's/^/| /' conftest.$ac_ext >&5
22635
22636 cat >conftest.$ac_ext <<_ACEOF
22637 /* confdefs.h. */
22638 _ACEOF
22639 cat confdefs.h >>conftest.$ac_ext
22640 cat >>conftest.$ac_ext <<_ACEOF
22641 /* end confdefs.h. */
22642 $ac_includes_default
22643 int
22644 main ()
22645 {
22646 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
22647 test_array [0] = 0
22648
22649 ;
22650 return 0;
22651 }
22652 _ACEOF
22653 rm -f conftest.$ac_objext
22654 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22655 (eval $ac_compile) 2>conftest.er1
22656 ac_status=$?
22657 grep -v '^ *+' conftest.er1 >conftest.err
22658 rm -f conftest.er1
22659 cat conftest.err >&5
22660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22661 (exit $ac_status); } &&
22662 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22663 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22664 (eval $ac_try) 2>&5
22665 ac_status=$?
22666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22667 (exit $ac_status); }; } &&
22668 { ac_try='test -s conftest.$ac_objext'
22669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22670 (eval $ac_try) 2>&5
22671 ac_status=$?
22672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22673 (exit $ac_status); }; }; then
22674 ac_hi=-1 ac_mid=-1
22675 while :; do
22676 cat >conftest.$ac_ext <<_ACEOF
22677 /* confdefs.h. */
22678 _ACEOF
22679 cat confdefs.h >>conftest.$ac_ext
22680 cat >>conftest.$ac_ext <<_ACEOF
22681 /* end confdefs.h. */
22682 $ac_includes_default
22683 int
22684 main ()
22685 {
22686 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
22687 test_array [0] = 0
22688
22689 ;
22690 return 0;
22691 }
22692 _ACEOF
22693 rm -f conftest.$ac_objext
22694 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22695 (eval $ac_compile) 2>conftest.er1
22696 ac_status=$?
22697 grep -v '^ *+' conftest.er1 >conftest.err
22698 rm -f conftest.er1
22699 cat conftest.err >&5
22700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22701 (exit $ac_status); } &&
22702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22704 (eval $ac_try) 2>&5
22705 ac_status=$?
22706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707 (exit $ac_status); }; } &&
22708 { ac_try='test -s conftest.$ac_objext'
22709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22710 (eval $ac_try) 2>&5
22711 ac_status=$?
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); }; }; then
22714 ac_lo=$ac_mid; break
22715 else
22716 echo "$as_me: failed program was:" >&5
22717 sed 's/^/| /' conftest.$ac_ext >&5
22718
22719 ac_hi=`expr '(' $ac_mid ')' - 1`
22720 if test $ac_mid -le $ac_hi; then
22721 ac_lo= ac_hi=
22722 break
22723 fi
22724 ac_mid=`expr 2 '*' $ac_mid`
22725 fi
22726 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22727 done
22728 else
22729 echo "$as_me: failed program was:" >&5
22730 sed 's/^/| /' conftest.$ac_ext >&5
22731
22732 ac_lo= ac_hi=
22733 fi
22734 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22735 fi
22736 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22737 # Binary search between lo and hi bounds.
22738 while test "x$ac_lo" != "x$ac_hi"; do
22739 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
22740 cat >conftest.$ac_ext <<_ACEOF
22741 /* confdefs.h. */
22742 _ACEOF
22743 cat confdefs.h >>conftest.$ac_ext
22744 cat >>conftest.$ac_ext <<_ACEOF
22745 /* end confdefs.h. */
22746 $ac_includes_default
22747 int
22748 main ()
22749 {
22750 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
22751 test_array [0] = 0
22752
22753 ;
22754 return 0;
22755 }
22756 _ACEOF
22757 rm -f conftest.$ac_objext
22758 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22759 (eval $ac_compile) 2>conftest.er1
22760 ac_status=$?
22761 grep -v '^ *+' conftest.er1 >conftest.err
22762 rm -f conftest.er1
22763 cat conftest.err >&5
22764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22765 (exit $ac_status); } &&
22766 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22768 (eval $ac_try) 2>&5
22769 ac_status=$?
22770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22771 (exit $ac_status); }; } &&
22772 { ac_try='test -s conftest.$ac_objext'
22773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22774 (eval $ac_try) 2>&5
22775 ac_status=$?
22776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22777 (exit $ac_status); }; }; then
22778 ac_hi=$ac_mid
22779 else
22780 echo "$as_me: failed program was:" >&5
22781 sed 's/^/| /' conftest.$ac_ext >&5
22782
22783 ac_lo=`expr '(' $ac_mid ')' + 1`
22784 fi
22785 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22786 done
22787 case $ac_lo in
22788 ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
22789 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
22790 See \`config.log' for more details." >&5
22791 echo "$as_me: error: cannot compute sizeof (unsigned short), 77
22792 See \`config.log' for more details." >&2;}
22793 { (exit 1); exit 1; }; } ;;
22794 esac
22795 else
22796 if test "$cross_compiling" = yes; then
22797 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
22798 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
22799 { (exit 1); exit 1; }; }
22800 else
22801 cat >conftest.$ac_ext <<_ACEOF
22802 /* confdefs.h. */
22803 _ACEOF
22804 cat confdefs.h >>conftest.$ac_ext
22805 cat >>conftest.$ac_ext <<_ACEOF
22806 /* end confdefs.h. */
22807 $ac_includes_default
22808 long longval () { return (long) (sizeof (unsigned short)); }
22809 unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
22810 #include <stdio.h>
22811 #include <stdlib.h>
22812 int
22813 main ()
22814 {
22815
22816 FILE *f = fopen ("conftest.val", "w");
22817 if (! f)
22818 exit (1);
22819 if (((long) (sizeof (unsigned short))) < 0)
22820 {
22821 long i = longval ();
22822 if (i != ((long) (sizeof (unsigned short))))
22823 exit (1);
22824 fprintf (f, "%ld\n", i);
22825 }
22826 else
22827 {
22828 unsigned long i = ulongval ();
22829 if (i != ((long) (sizeof (unsigned short))))
22830 exit (1);
22831 fprintf (f, "%lu\n", i);
22832 }
22833 exit (ferror (f) || fclose (f) != 0);
22834
22835 ;
22836 return 0;
22837 }
22838 _ACEOF
22839 rm -f conftest$ac_exeext
22840 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22841 (eval $ac_link) 2>&5
22842 ac_status=$?
22843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22845 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22846 (eval $ac_try) 2>&5
22847 ac_status=$?
22848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22849 (exit $ac_status); }; }; then
22850 ac_cv_sizeof_unsigned_short=`cat conftest.val`
22851 else
22852 echo "$as_me: program exited with status $ac_status" >&5
22853 echo "$as_me: failed program was:" >&5
22854 sed 's/^/| /' conftest.$ac_ext >&5
22855
22856 ( exit $ac_status )
22857 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
22858 See \`config.log' for more details." >&5
22859 echo "$as_me: error: cannot compute sizeof (unsigned short), 77
22860 See \`config.log' for more details." >&2;}
22861 { (exit 1); exit 1; }; }
22862 fi
22863 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22864 fi
22865 fi
22866 rm -f conftest.val
22867 else
22868 ac_cv_sizeof_unsigned_short=0
22869 fi
22870 fi
22871 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
22872 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
22873 cat >>confdefs.h <<_ACEOF
22874 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
22875 _ACEOF
22876
22877
22878 echo "$as_me:$LINENO: checking for int" >&5
22879 echo $ECHO_N "checking for int... $ECHO_C" >&6
22880 if test "${ac_cv_type_int+set}" = set; then
22881 echo $ECHO_N "(cached) $ECHO_C" >&6
22882 else
22883 cat >conftest.$ac_ext <<_ACEOF
22884 /* confdefs.h. */
22885 _ACEOF
22886 cat confdefs.h >>conftest.$ac_ext
22887 cat >>conftest.$ac_ext <<_ACEOF
22888 /* end confdefs.h. */
22889 $ac_includes_default
22890 int
22891 main ()
22892 {
22893 if ((int *) 0)
22894 return 0;
22895 if (sizeof (int))
22896 return 0;
22897 ;
22898 return 0;
22899 }
22900 _ACEOF
22901 rm -f conftest.$ac_objext
22902 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22903 (eval $ac_compile) 2>conftest.er1
22904 ac_status=$?
22905 grep -v '^ *+' conftest.er1 >conftest.err
22906 rm -f conftest.er1
22907 cat conftest.err >&5
22908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22909 (exit $ac_status); } &&
22910 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22911 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22912 (eval $ac_try) 2>&5
22913 ac_status=$?
22914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22915 (exit $ac_status); }; } &&
22916 { ac_try='test -s conftest.$ac_objext'
22917 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22918 (eval $ac_try) 2>&5
22919 ac_status=$?
22920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22921 (exit $ac_status); }; }; then
22922 ac_cv_type_int=yes
22923 else
22924 echo "$as_me: failed program was:" >&5
22925 sed 's/^/| /' conftest.$ac_ext >&5
22926
22927 ac_cv_type_int=no
22928 fi
22929 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
22930 fi
22931 echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5
22932 echo "${ECHO_T}$ac_cv_type_int" >&6
22933
22934 echo "$as_me:$LINENO: checking size of int" >&5
22935 echo $ECHO_N "checking size of int... $ECHO_C" >&6
22936 if test "${ac_cv_sizeof_int+set}" = set; then
22937 echo $ECHO_N "(cached) $ECHO_C" >&6
22938 else
22939 if test "$ac_cv_type_int" = yes; then
22940 # The cast to unsigned long works around a bug in the HP C Compiler
22941 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
22942 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
22943 # This bug is HP SR number 8606223364.
22944 if test "$cross_compiling" = yes; then
22945 # Depending upon the size, compute the lo and hi bounds.
22946 cat >conftest.$ac_ext <<_ACEOF
22947 /* confdefs.h. */
22948 _ACEOF
22949 cat confdefs.h >>conftest.$ac_ext
22950 cat >>conftest.$ac_ext <<_ACEOF
22951 /* end confdefs.h. */
22952 $ac_includes_default
22953 int
22954 main ()
22955 {
22956 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)];
22957 test_array [0] = 0
22958
22959 ;
22960 return 0;
22961 }
22962 _ACEOF
22963 rm -f conftest.$ac_objext
22964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22965 (eval $ac_compile) 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" || test ! -s conftest.err'
22973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22974 (eval $ac_try) 2>&5
22975 ac_status=$?
22976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22977 (exit $ac_status); }; } &&
22978 { ac_try='test -s conftest.$ac_objext'
22979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22980 (eval $ac_try) 2>&5
22981 ac_status=$?
22982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22983 (exit $ac_status); }; }; then
22984 ac_lo=0 ac_mid=0
22985 while :; do
22986 cat >conftest.$ac_ext <<_ACEOF
22987 /* confdefs.h. */
22988 _ACEOF
22989 cat confdefs.h >>conftest.$ac_ext
22990 cat >>conftest.$ac_ext <<_ACEOF
22991 /* end confdefs.h. */
22992 $ac_includes_default
22993 int
22994 main ()
22995 {
22996 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
22997 test_array [0] = 0
22998
22999 ;
23000 return 0;
23001 }
23002 _ACEOF
23003 rm -f conftest.$ac_objext
23004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23005 (eval $ac_compile) 2>conftest.er1
23006 ac_status=$?
23007 grep -v '^ *+' conftest.er1 >conftest.err
23008 rm -f conftest.er1
23009 cat conftest.err >&5
23010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23011 (exit $ac_status); } &&
23012 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23014 (eval $ac_try) 2>&5
23015 ac_status=$?
23016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23017 (exit $ac_status); }; } &&
23018 { ac_try='test -s conftest.$ac_objext'
23019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23020 (eval $ac_try) 2>&5
23021 ac_status=$?
23022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); }; }; then
23024 ac_hi=$ac_mid; break
23025 else
23026 echo "$as_me: failed program was:" >&5
23027 sed 's/^/| /' conftest.$ac_ext >&5
23028
23029 ac_lo=`expr $ac_mid + 1`
23030 if test $ac_lo -le $ac_mid; then
23031 ac_lo= ac_hi=
23032 break
23033 fi
23034 ac_mid=`expr 2 '*' $ac_mid + 1`
23035 fi
23036 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23037 done
23038 else
23039 echo "$as_me: failed program was:" >&5
23040 sed 's/^/| /' conftest.$ac_ext >&5
23041
23042 cat >conftest.$ac_ext <<_ACEOF
23043 /* confdefs.h. */
23044 _ACEOF
23045 cat confdefs.h >>conftest.$ac_ext
23046 cat >>conftest.$ac_ext <<_ACEOF
23047 /* end confdefs.h. */
23048 $ac_includes_default
23049 int
23050 main ()
23051 {
23052 static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)];
23053 test_array [0] = 0
23054
23055 ;
23056 return 0;
23057 }
23058 _ACEOF
23059 rm -f conftest.$ac_objext
23060 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23061 (eval $ac_compile) 2>conftest.er1
23062 ac_status=$?
23063 grep -v '^ *+' conftest.er1 >conftest.err
23064 rm -f conftest.er1
23065 cat conftest.err >&5
23066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); } &&
23068 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23070 (eval $ac_try) 2>&5
23071 ac_status=$?
23072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23073 (exit $ac_status); }; } &&
23074 { ac_try='test -s conftest.$ac_objext'
23075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23076 (eval $ac_try) 2>&5
23077 ac_status=$?
23078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23079 (exit $ac_status); }; }; then
23080 ac_hi=-1 ac_mid=-1
23081 while :; do
23082 cat >conftest.$ac_ext <<_ACEOF
23083 /* confdefs.h. */
23084 _ACEOF
23085 cat confdefs.h >>conftest.$ac_ext
23086 cat >>conftest.$ac_ext <<_ACEOF
23087 /* end confdefs.h. */
23088 $ac_includes_default
23089 int
23090 main ()
23091 {
23092 static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)];
23093 test_array [0] = 0
23094
23095 ;
23096 return 0;
23097 }
23098 _ACEOF
23099 rm -f conftest.$ac_objext
23100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23101 (eval $ac_compile) 2>conftest.er1
23102 ac_status=$?
23103 grep -v '^ *+' conftest.er1 >conftest.err
23104 rm -f conftest.er1
23105 cat conftest.err >&5
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); } &&
23108 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23110 (eval $ac_try) 2>&5
23111 ac_status=$?
23112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23113 (exit $ac_status); }; } &&
23114 { ac_try='test -s conftest.$ac_objext'
23115 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23116 (eval $ac_try) 2>&5
23117 ac_status=$?
23118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23119 (exit $ac_status); }; }; then
23120 ac_lo=$ac_mid; break
23121 else
23122 echo "$as_me: failed program was:" >&5
23123 sed 's/^/| /' conftest.$ac_ext >&5
23124
23125 ac_hi=`expr '(' $ac_mid ')' - 1`
23126 if test $ac_mid -le $ac_hi; then
23127 ac_lo= ac_hi=
23128 break
23129 fi
23130 ac_mid=`expr 2 '*' $ac_mid`
23131 fi
23132 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23133 done
23134 else
23135 echo "$as_me: failed program was:" >&5
23136 sed 's/^/| /' conftest.$ac_ext >&5
23137
23138 ac_lo= ac_hi=
23139 fi
23140 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23141 fi
23142 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23143 # Binary search between lo and hi bounds.
23144 while test "x$ac_lo" != "x$ac_hi"; do
23145 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23146 cat >conftest.$ac_ext <<_ACEOF
23147 /* confdefs.h. */
23148 _ACEOF
23149 cat confdefs.h >>conftest.$ac_ext
23150 cat >>conftest.$ac_ext <<_ACEOF
23151 /* end confdefs.h. */
23152 $ac_includes_default
23153 int
23154 main ()
23155 {
23156 static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)];
23157 test_array [0] = 0
23158
23159 ;
23160 return 0;
23161 }
23162 _ACEOF
23163 rm -f conftest.$ac_objext
23164 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23165 (eval $ac_compile) 2>conftest.er1
23166 ac_status=$?
23167 grep -v '^ *+' conftest.er1 >conftest.err
23168 rm -f conftest.er1
23169 cat conftest.err >&5
23170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171 (exit $ac_status); } &&
23172 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23174 (eval $ac_try) 2>&5
23175 ac_status=$?
23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23177 (exit $ac_status); }; } &&
23178 { ac_try='test -s conftest.$ac_objext'
23179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23180 (eval $ac_try) 2>&5
23181 ac_status=$?
23182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23183 (exit $ac_status); }; }; then
23184 ac_hi=$ac_mid
23185 else
23186 echo "$as_me: failed program was:" >&5
23187 sed 's/^/| /' conftest.$ac_ext >&5
23188
23189 ac_lo=`expr '(' $ac_mid ')' + 1`
23190 fi
23191 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23192 done
23193 case $ac_lo in
23194 ?*) ac_cv_sizeof_int=$ac_lo;;
23195 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23196 See \`config.log' for more details." >&5
23197 echo "$as_me: error: cannot compute sizeof (int), 77
23198 See \`config.log' for more details." >&2;}
23199 { (exit 1); exit 1; }; } ;;
23200 esac
23201 else
23202 if test "$cross_compiling" = yes; then
23203 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
23204 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
23205 { (exit 1); exit 1; }; }
23206 else
23207 cat >conftest.$ac_ext <<_ACEOF
23208 /* confdefs.h. */
23209 _ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h. */
23213 $ac_includes_default
23214 long longval () { return (long) (sizeof (int)); }
23215 unsigned long ulongval () { return (long) (sizeof (int)); }
23216 #include <stdio.h>
23217 #include <stdlib.h>
23218 int
23219 main ()
23220 {
23221
23222 FILE *f = fopen ("conftest.val", "w");
23223 if (! f)
23224 exit (1);
23225 if (((long) (sizeof (int))) < 0)
23226 {
23227 long i = longval ();
23228 if (i != ((long) (sizeof (int))))
23229 exit (1);
23230 fprintf (f, "%ld\n", i);
23231 }
23232 else
23233 {
23234 unsigned long i = ulongval ();
23235 if (i != ((long) (sizeof (int))))
23236 exit (1);
23237 fprintf (f, "%lu\n", i);
23238 }
23239 exit (ferror (f) || fclose (f) != 0);
23240
23241 ;
23242 return 0;
23243 }
23244 _ACEOF
23245 rm -f conftest$ac_exeext
23246 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23247 (eval $ac_link) 2>&5
23248 ac_status=$?
23249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23250 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23251 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23252 (eval $ac_try) 2>&5
23253 ac_status=$?
23254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23255 (exit $ac_status); }; }; then
23256 ac_cv_sizeof_int=`cat conftest.val`
23257 else
23258 echo "$as_me: program exited with status $ac_status" >&5
23259 echo "$as_me: failed program was:" >&5
23260 sed 's/^/| /' conftest.$ac_ext >&5
23261
23262 ( exit $ac_status )
23263 { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77
23264 See \`config.log' for more details." >&5
23265 echo "$as_me: error: cannot compute sizeof (int), 77
23266 See \`config.log' for more details." >&2;}
23267 { (exit 1); exit 1; }; }
23268 fi
23269 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23270 fi
23271 fi
23272 rm -f conftest.val
23273 else
23274 ac_cv_sizeof_int=0
23275 fi
23276 fi
23277 echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5
23278 echo "${ECHO_T}$ac_cv_sizeof_int" >&6
23279 cat >>confdefs.h <<_ACEOF
23280 #define SIZEOF_INT $ac_cv_sizeof_int
23281 _ACEOF
23282
23283
23284 echo "$as_me:$LINENO: checking for unsigned int" >&5
23285 echo $ECHO_N "checking for unsigned int... $ECHO_C" >&6
23286 if test "${ac_cv_type_unsigned_int+set}" = set; then
23287 echo $ECHO_N "(cached) $ECHO_C" >&6
23288 else
23289 cat >conftest.$ac_ext <<_ACEOF
23290 /* confdefs.h. */
23291 _ACEOF
23292 cat confdefs.h >>conftest.$ac_ext
23293 cat >>conftest.$ac_ext <<_ACEOF
23294 /* end confdefs.h. */
23295 $ac_includes_default
23296 int
23297 main ()
23298 {
23299 if ((unsigned int *) 0)
23300 return 0;
23301 if (sizeof (unsigned int))
23302 return 0;
23303 ;
23304 return 0;
23305 }
23306 _ACEOF
23307 rm -f conftest.$ac_objext
23308 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23309 (eval $ac_compile) 2>conftest.er1
23310 ac_status=$?
23311 grep -v '^ *+' conftest.er1 >conftest.err
23312 rm -f conftest.er1
23313 cat conftest.err >&5
23314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23315 (exit $ac_status); } &&
23316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23317 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23318 (eval $ac_try) 2>&5
23319 ac_status=$?
23320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321 (exit $ac_status); }; } &&
23322 { ac_try='test -s conftest.$ac_objext'
23323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23324 (eval $ac_try) 2>&5
23325 ac_status=$?
23326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23327 (exit $ac_status); }; }; then
23328 ac_cv_type_unsigned_int=yes
23329 else
23330 echo "$as_me: failed program was:" >&5
23331 sed 's/^/| /' conftest.$ac_ext >&5
23332
23333 ac_cv_type_unsigned_int=no
23334 fi
23335 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23336 fi
23337 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_int" >&5
23338 echo "${ECHO_T}$ac_cv_type_unsigned_int" >&6
23339
23340 echo "$as_me:$LINENO: checking size of unsigned int" >&5
23341 echo $ECHO_N "checking size of unsigned int... $ECHO_C" >&6
23342 if test "${ac_cv_sizeof_unsigned_int+set}" = set; then
23343 echo $ECHO_N "(cached) $ECHO_C" >&6
23344 else
23345 if test "$ac_cv_type_unsigned_int" = yes; then
23346 # The cast to unsigned long works around a bug in the HP C Compiler
23347 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23348 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23349 # This bug is HP SR number 8606223364.
23350 if test "$cross_compiling" = yes; then
23351 # Depending upon the size, compute the lo and hi bounds.
23352 cat >conftest.$ac_ext <<_ACEOF
23353 /* confdefs.h. */
23354 _ACEOF
23355 cat confdefs.h >>conftest.$ac_ext
23356 cat >>conftest.$ac_ext <<_ACEOF
23357 /* end confdefs.h. */
23358 $ac_includes_default
23359 int
23360 main ()
23361 {
23362 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= 0)];
23363 test_array [0] = 0
23364
23365 ;
23366 return 0;
23367 }
23368 _ACEOF
23369 rm -f conftest.$ac_objext
23370 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23371 (eval $ac_compile) 2>conftest.er1
23372 ac_status=$?
23373 grep -v '^ *+' conftest.er1 >conftest.err
23374 rm -f conftest.er1
23375 cat conftest.err >&5
23376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23377 (exit $ac_status); } &&
23378 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23380 (eval $ac_try) 2>&5
23381 ac_status=$?
23382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23383 (exit $ac_status); }; } &&
23384 { ac_try='test -s conftest.$ac_objext'
23385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23386 (eval $ac_try) 2>&5
23387 ac_status=$?
23388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23389 (exit $ac_status); }; }; then
23390 ac_lo=0 ac_mid=0
23391 while :; do
23392 cat >conftest.$ac_ext <<_ACEOF
23393 /* confdefs.h. */
23394 _ACEOF
23395 cat confdefs.h >>conftest.$ac_ext
23396 cat >>conftest.$ac_ext <<_ACEOF
23397 /* end confdefs.h. */
23398 $ac_includes_default
23399 int
23400 main ()
23401 {
23402 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
23403 test_array [0] = 0
23404
23405 ;
23406 return 0;
23407 }
23408 _ACEOF
23409 rm -f conftest.$ac_objext
23410 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23411 (eval $ac_compile) 2>conftest.er1
23412 ac_status=$?
23413 grep -v '^ *+' conftest.er1 >conftest.err
23414 rm -f conftest.er1
23415 cat conftest.err >&5
23416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23417 (exit $ac_status); } &&
23418 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23420 (eval $ac_try) 2>&5
23421 ac_status=$?
23422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23423 (exit $ac_status); }; } &&
23424 { ac_try='test -s conftest.$ac_objext'
23425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23426 (eval $ac_try) 2>&5
23427 ac_status=$?
23428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23429 (exit $ac_status); }; }; then
23430 ac_hi=$ac_mid; break
23431 else
23432 echo "$as_me: failed program was:" >&5
23433 sed 's/^/| /' conftest.$ac_ext >&5
23434
23435 ac_lo=`expr $ac_mid + 1`
23436 if test $ac_lo -le $ac_mid; then
23437 ac_lo= ac_hi=
23438 break
23439 fi
23440 ac_mid=`expr 2 '*' $ac_mid + 1`
23441 fi
23442 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23443 done
23444 else
23445 echo "$as_me: failed program was:" >&5
23446 sed 's/^/| /' conftest.$ac_ext >&5
23447
23448 cat >conftest.$ac_ext <<_ACEOF
23449 /* confdefs.h. */
23450 _ACEOF
23451 cat confdefs.h >>conftest.$ac_ext
23452 cat >>conftest.$ac_ext <<_ACEOF
23453 /* end confdefs.h. */
23454 $ac_includes_default
23455 int
23456 main ()
23457 {
23458 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) < 0)];
23459 test_array [0] = 0
23460
23461 ;
23462 return 0;
23463 }
23464 _ACEOF
23465 rm -f conftest.$ac_objext
23466 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23467 (eval $ac_compile) 2>conftest.er1
23468 ac_status=$?
23469 grep -v '^ *+' conftest.er1 >conftest.err
23470 rm -f conftest.er1
23471 cat conftest.err >&5
23472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23473 (exit $ac_status); } &&
23474 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23476 (eval $ac_try) 2>&5
23477 ac_status=$?
23478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23479 (exit $ac_status); }; } &&
23480 { ac_try='test -s conftest.$ac_objext'
23481 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23482 (eval $ac_try) 2>&5
23483 ac_status=$?
23484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23485 (exit $ac_status); }; }; then
23486 ac_hi=-1 ac_mid=-1
23487 while :; do
23488 cat >conftest.$ac_ext <<_ACEOF
23489 /* confdefs.h. */
23490 _ACEOF
23491 cat confdefs.h >>conftest.$ac_ext
23492 cat >>conftest.$ac_ext <<_ACEOF
23493 /* end confdefs.h. */
23494 $ac_includes_default
23495 int
23496 main ()
23497 {
23498 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) >= $ac_mid)];
23499 test_array [0] = 0
23500
23501 ;
23502 return 0;
23503 }
23504 _ACEOF
23505 rm -f conftest.$ac_objext
23506 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23507 (eval $ac_compile) 2>conftest.er1
23508 ac_status=$?
23509 grep -v '^ *+' conftest.er1 >conftest.err
23510 rm -f conftest.er1
23511 cat conftest.err >&5
23512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23513 (exit $ac_status); } &&
23514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23516 (eval $ac_try) 2>&5
23517 ac_status=$?
23518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23519 (exit $ac_status); }; } &&
23520 { ac_try='test -s conftest.$ac_objext'
23521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23522 (eval $ac_try) 2>&5
23523 ac_status=$?
23524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23525 (exit $ac_status); }; }; then
23526 ac_lo=$ac_mid; break
23527 else
23528 echo "$as_me: failed program was:" >&5
23529 sed 's/^/| /' conftest.$ac_ext >&5
23530
23531 ac_hi=`expr '(' $ac_mid ')' - 1`
23532 if test $ac_mid -le $ac_hi; then
23533 ac_lo= ac_hi=
23534 break
23535 fi
23536 ac_mid=`expr 2 '*' $ac_mid`
23537 fi
23538 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23539 done
23540 else
23541 echo "$as_me: failed program was:" >&5
23542 sed 's/^/| /' conftest.$ac_ext >&5
23543
23544 ac_lo= ac_hi=
23545 fi
23546 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23547 fi
23548 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23549 # Binary search between lo and hi bounds.
23550 while test "x$ac_lo" != "x$ac_hi"; do
23551 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23552 cat >conftest.$ac_ext <<_ACEOF
23553 /* confdefs.h. */
23554 _ACEOF
23555 cat confdefs.h >>conftest.$ac_ext
23556 cat >>conftest.$ac_ext <<_ACEOF
23557 /* end confdefs.h. */
23558 $ac_includes_default
23559 int
23560 main ()
23561 {
23562 static int test_array [1 - 2 * !(((long) (sizeof (unsigned int))) <= $ac_mid)];
23563 test_array [0] = 0
23564
23565 ;
23566 return 0;
23567 }
23568 _ACEOF
23569 rm -f conftest.$ac_objext
23570 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23571 (eval $ac_compile) 2>conftest.er1
23572 ac_status=$?
23573 grep -v '^ *+' conftest.er1 >conftest.err
23574 rm -f conftest.er1
23575 cat conftest.err >&5
23576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23577 (exit $ac_status); } &&
23578 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23579 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23580 (eval $ac_try) 2>&5
23581 ac_status=$?
23582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23583 (exit $ac_status); }; } &&
23584 { ac_try='test -s conftest.$ac_objext'
23585 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23586 (eval $ac_try) 2>&5
23587 ac_status=$?
23588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23589 (exit $ac_status); }; }; then
23590 ac_hi=$ac_mid
23591 else
23592 echo "$as_me: failed program was:" >&5
23593 sed 's/^/| /' conftest.$ac_ext >&5
23594
23595 ac_lo=`expr '(' $ac_mid ')' + 1`
23596 fi
23597 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23598 done
23599 case $ac_lo in
23600 ?*) ac_cv_sizeof_unsigned_int=$ac_lo;;
23601 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
23602 See \`config.log' for more details." >&5
23603 echo "$as_me: error: cannot compute sizeof (unsigned int), 77
23604 See \`config.log' for more details." >&2;}
23605 { (exit 1); exit 1; }; } ;;
23606 esac
23607 else
23608 if test "$cross_compiling" = yes; then
23609 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
23610 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
23611 { (exit 1); exit 1; }; }
23612 else
23613 cat >conftest.$ac_ext <<_ACEOF
23614 /* confdefs.h. */
23615 _ACEOF
23616 cat confdefs.h >>conftest.$ac_ext
23617 cat >>conftest.$ac_ext <<_ACEOF
23618 /* end confdefs.h. */
23619 $ac_includes_default
23620 long longval () { return (long) (sizeof (unsigned int)); }
23621 unsigned long ulongval () { return (long) (sizeof (unsigned int)); }
23622 #include <stdio.h>
23623 #include <stdlib.h>
23624 int
23625 main ()
23626 {
23627
23628 FILE *f = fopen ("conftest.val", "w");
23629 if (! f)
23630 exit (1);
23631 if (((long) (sizeof (unsigned int))) < 0)
23632 {
23633 long i = longval ();
23634 if (i != ((long) (sizeof (unsigned int))))
23635 exit (1);
23636 fprintf (f, "%ld\n", i);
23637 }
23638 else
23639 {
23640 unsigned long i = ulongval ();
23641 if (i != ((long) (sizeof (unsigned int))))
23642 exit (1);
23643 fprintf (f, "%lu\n", i);
23644 }
23645 exit (ferror (f) || fclose (f) != 0);
23646
23647 ;
23648 return 0;
23649 }
23650 _ACEOF
23651 rm -f conftest$ac_exeext
23652 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23653 (eval $ac_link) 2>&5
23654 ac_status=$?
23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23656 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23657 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23658 (eval $ac_try) 2>&5
23659 ac_status=$?
23660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23661 (exit $ac_status); }; }; then
23662 ac_cv_sizeof_unsigned_int=`cat conftest.val`
23663 else
23664 echo "$as_me: program exited with status $ac_status" >&5
23665 echo "$as_me: failed program was:" >&5
23666 sed 's/^/| /' conftest.$ac_ext >&5
23667
23668 ( exit $ac_status )
23669 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned int), 77
23670 See \`config.log' for more details." >&5
23671 echo "$as_me: error: cannot compute sizeof (unsigned int), 77
23672 See \`config.log' for more details." >&2;}
23673 { (exit 1); exit 1; }; }
23674 fi
23675 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23676 fi
23677 fi
23678 rm -f conftest.val
23679 else
23680 ac_cv_sizeof_unsigned_int=0
23681 fi
23682 fi
23683 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_int" >&5
23684 echo "${ECHO_T}$ac_cv_sizeof_unsigned_int" >&6
23685 cat >>confdefs.h <<_ACEOF
23686 #define SIZEOF_UNSIGNED_INT $ac_cv_sizeof_unsigned_int
23687 _ACEOF
23688
23689
23690 echo "$as_me:$LINENO: checking for long" >&5
23691 echo $ECHO_N "checking for long... $ECHO_C" >&6
23692 if test "${ac_cv_type_long+set}" = set; then
23693 echo $ECHO_N "(cached) $ECHO_C" >&6
23694 else
23695 cat >conftest.$ac_ext <<_ACEOF
23696 /* confdefs.h. */
23697 _ACEOF
23698 cat confdefs.h >>conftest.$ac_ext
23699 cat >>conftest.$ac_ext <<_ACEOF
23700 /* end confdefs.h. */
23701 $ac_includes_default
23702 int
23703 main ()
23704 {
23705 if ((long *) 0)
23706 return 0;
23707 if (sizeof (long))
23708 return 0;
23709 ;
23710 return 0;
23711 }
23712 _ACEOF
23713 rm -f conftest.$ac_objext
23714 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23715 (eval $ac_compile) 2>conftest.er1
23716 ac_status=$?
23717 grep -v '^ *+' conftest.er1 >conftest.err
23718 rm -f conftest.er1
23719 cat conftest.err >&5
23720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23721 (exit $ac_status); } &&
23722 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23724 (eval $ac_try) 2>&5
23725 ac_status=$?
23726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23727 (exit $ac_status); }; } &&
23728 { ac_try='test -s conftest.$ac_objext'
23729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23730 (eval $ac_try) 2>&5
23731 ac_status=$?
23732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23733 (exit $ac_status); }; }; then
23734 ac_cv_type_long=yes
23735 else
23736 echo "$as_me: failed program was:" >&5
23737 sed 's/^/| /' conftest.$ac_ext >&5
23738
23739 ac_cv_type_long=no
23740 fi
23741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23742 fi
23743 echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5
23744 echo "${ECHO_T}$ac_cv_type_long" >&6
23745
23746 echo "$as_me:$LINENO: checking size of long" >&5
23747 echo $ECHO_N "checking size of long... $ECHO_C" >&6
23748 if test "${ac_cv_sizeof_long+set}" = set; then
23749 echo $ECHO_N "(cached) $ECHO_C" >&6
23750 else
23751 if test "$ac_cv_type_long" = yes; then
23752 # The cast to unsigned long works around a bug in the HP C Compiler
23753 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
23754 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
23755 # This bug is HP SR number 8606223364.
23756 if test "$cross_compiling" = yes; then
23757 # Depending upon the size, compute the lo and hi bounds.
23758 cat >conftest.$ac_ext <<_ACEOF
23759 /* confdefs.h. */
23760 _ACEOF
23761 cat confdefs.h >>conftest.$ac_ext
23762 cat >>conftest.$ac_ext <<_ACEOF
23763 /* end confdefs.h. */
23764 $ac_includes_default
23765 int
23766 main ()
23767 {
23768 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)];
23769 test_array [0] = 0
23770
23771 ;
23772 return 0;
23773 }
23774 _ACEOF
23775 rm -f conftest.$ac_objext
23776 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23777 (eval $ac_compile) 2>conftest.er1
23778 ac_status=$?
23779 grep -v '^ *+' conftest.er1 >conftest.err
23780 rm -f conftest.er1
23781 cat conftest.err >&5
23782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23783 (exit $ac_status); } &&
23784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23785 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23786 (eval $ac_try) 2>&5
23787 ac_status=$?
23788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23789 (exit $ac_status); }; } &&
23790 { ac_try='test -s conftest.$ac_objext'
23791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23792 (eval $ac_try) 2>&5
23793 ac_status=$?
23794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23795 (exit $ac_status); }; }; then
23796 ac_lo=0 ac_mid=0
23797 while :; do
23798 cat >conftest.$ac_ext <<_ACEOF
23799 /* confdefs.h. */
23800 _ACEOF
23801 cat confdefs.h >>conftest.$ac_ext
23802 cat >>conftest.$ac_ext <<_ACEOF
23803 /* end confdefs.h. */
23804 $ac_includes_default
23805 int
23806 main ()
23807 {
23808 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
23809 test_array [0] = 0
23810
23811 ;
23812 return 0;
23813 }
23814 _ACEOF
23815 rm -f conftest.$ac_objext
23816 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23817 (eval $ac_compile) 2>conftest.er1
23818 ac_status=$?
23819 grep -v '^ *+' conftest.er1 >conftest.err
23820 rm -f conftest.er1
23821 cat conftest.err >&5
23822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23823 (exit $ac_status); } &&
23824 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23825 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23826 (eval $ac_try) 2>&5
23827 ac_status=$?
23828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23829 (exit $ac_status); }; } &&
23830 { ac_try='test -s conftest.$ac_objext'
23831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23832 (eval $ac_try) 2>&5
23833 ac_status=$?
23834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23835 (exit $ac_status); }; }; then
23836 ac_hi=$ac_mid; break
23837 else
23838 echo "$as_me: failed program was:" >&5
23839 sed 's/^/| /' conftest.$ac_ext >&5
23840
23841 ac_lo=`expr $ac_mid + 1`
23842 if test $ac_lo -le $ac_mid; then
23843 ac_lo= ac_hi=
23844 break
23845 fi
23846 ac_mid=`expr 2 '*' $ac_mid + 1`
23847 fi
23848 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23849 done
23850 else
23851 echo "$as_me: failed program was:" >&5
23852 sed 's/^/| /' conftest.$ac_ext >&5
23853
23854 cat >conftest.$ac_ext <<_ACEOF
23855 /* confdefs.h. */
23856 _ACEOF
23857 cat confdefs.h >>conftest.$ac_ext
23858 cat >>conftest.$ac_ext <<_ACEOF
23859 /* end confdefs.h. */
23860 $ac_includes_default
23861 int
23862 main ()
23863 {
23864 static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)];
23865 test_array [0] = 0
23866
23867 ;
23868 return 0;
23869 }
23870 _ACEOF
23871 rm -f conftest.$ac_objext
23872 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23873 (eval $ac_compile) 2>conftest.er1
23874 ac_status=$?
23875 grep -v '^ *+' conftest.er1 >conftest.err
23876 rm -f conftest.er1
23877 cat conftest.err >&5
23878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23879 (exit $ac_status); } &&
23880 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23882 (eval $ac_try) 2>&5
23883 ac_status=$?
23884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23885 (exit $ac_status); }; } &&
23886 { ac_try='test -s conftest.$ac_objext'
23887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23888 (eval $ac_try) 2>&5
23889 ac_status=$?
23890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23891 (exit $ac_status); }; }; then
23892 ac_hi=-1 ac_mid=-1
23893 while :; do
23894 cat >conftest.$ac_ext <<_ACEOF
23895 /* confdefs.h. */
23896 _ACEOF
23897 cat confdefs.h >>conftest.$ac_ext
23898 cat >>conftest.$ac_ext <<_ACEOF
23899 /* end confdefs.h. */
23900 $ac_includes_default
23901 int
23902 main ()
23903 {
23904 static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)];
23905 test_array [0] = 0
23906
23907 ;
23908 return 0;
23909 }
23910 _ACEOF
23911 rm -f conftest.$ac_objext
23912 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23913 (eval $ac_compile) 2>conftest.er1
23914 ac_status=$?
23915 grep -v '^ *+' conftest.er1 >conftest.err
23916 rm -f conftest.er1
23917 cat conftest.err >&5
23918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23919 (exit $ac_status); } &&
23920 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23921 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23922 (eval $ac_try) 2>&5
23923 ac_status=$?
23924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23925 (exit $ac_status); }; } &&
23926 { ac_try='test -s conftest.$ac_objext'
23927 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23928 (eval $ac_try) 2>&5
23929 ac_status=$?
23930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23931 (exit $ac_status); }; }; then
23932 ac_lo=$ac_mid; break
23933 else
23934 echo "$as_me: failed program was:" >&5
23935 sed 's/^/| /' conftest.$ac_ext >&5
23936
23937 ac_hi=`expr '(' $ac_mid ')' - 1`
23938 if test $ac_mid -le $ac_hi; then
23939 ac_lo= ac_hi=
23940 break
23941 fi
23942 ac_mid=`expr 2 '*' $ac_mid`
23943 fi
23944 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23945 done
23946 else
23947 echo "$as_me: failed program was:" >&5
23948 sed 's/^/| /' conftest.$ac_ext >&5
23949
23950 ac_lo= ac_hi=
23951 fi
23952 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23953 fi
23954 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
23955 # Binary search between lo and hi bounds.
23956 while test "x$ac_lo" != "x$ac_hi"; do
23957 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
23958 cat >conftest.$ac_ext <<_ACEOF
23959 /* confdefs.h. */
23960 _ACEOF
23961 cat confdefs.h >>conftest.$ac_ext
23962 cat >>conftest.$ac_ext <<_ACEOF
23963 /* end confdefs.h. */
23964 $ac_includes_default
23965 int
23966 main ()
23967 {
23968 static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)];
23969 test_array [0] = 0
23970
23971 ;
23972 return 0;
23973 }
23974 _ACEOF
23975 rm -f conftest.$ac_objext
23976 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
23977 (eval $ac_compile) 2>conftest.er1
23978 ac_status=$?
23979 grep -v '^ *+' conftest.er1 >conftest.err
23980 rm -f conftest.er1
23981 cat conftest.err >&5
23982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23983 (exit $ac_status); } &&
23984 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23985 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23986 (eval $ac_try) 2>&5
23987 ac_status=$?
23988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23989 (exit $ac_status); }; } &&
23990 { ac_try='test -s conftest.$ac_objext'
23991 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23992 (eval $ac_try) 2>&5
23993 ac_status=$?
23994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23995 (exit $ac_status); }; }; then
23996 ac_hi=$ac_mid
23997 else
23998 echo "$as_me: failed program was:" >&5
23999 sed 's/^/| /' conftest.$ac_ext >&5
24000
24001 ac_lo=`expr '(' $ac_mid ')' + 1`
24002 fi
24003 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24004 done
24005 case $ac_lo in
24006 ?*) ac_cv_sizeof_long=$ac_lo;;
24007 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
24008 See \`config.log' for more details." >&5
24009 echo "$as_me: error: cannot compute sizeof (long), 77
24010 See \`config.log' for more details." >&2;}
24011 { (exit 1); exit 1; }; } ;;
24012 esac
24013 else
24014 if test "$cross_compiling" = yes; then
24015 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
24016 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
24017 { (exit 1); exit 1; }; }
24018 else
24019 cat >conftest.$ac_ext <<_ACEOF
24020 /* confdefs.h. */
24021 _ACEOF
24022 cat confdefs.h >>conftest.$ac_ext
24023 cat >>conftest.$ac_ext <<_ACEOF
24024 /* end confdefs.h. */
24025 $ac_includes_default
24026 long longval () { return (long) (sizeof (long)); }
24027 unsigned long ulongval () { return (long) (sizeof (long)); }
24028 #include <stdio.h>
24029 #include <stdlib.h>
24030 int
24031 main ()
24032 {
24033
24034 FILE *f = fopen ("conftest.val", "w");
24035 if (! f)
24036 exit (1);
24037 if (((long) (sizeof (long))) < 0)
24038 {
24039 long i = longval ();
24040 if (i != ((long) (sizeof (long))))
24041 exit (1);
24042 fprintf (f, "%ld\n", i);
24043 }
24044 else
24045 {
24046 unsigned long i = ulongval ();
24047 if (i != ((long) (sizeof (long))))
24048 exit (1);
24049 fprintf (f, "%lu\n", i);
24050 }
24051 exit (ferror (f) || fclose (f) != 0);
24052
24053 ;
24054 return 0;
24055 }
24056 _ACEOF
24057 rm -f conftest$ac_exeext
24058 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24059 (eval $ac_link) 2>&5
24060 ac_status=$?
24061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24062 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24064 (eval $ac_try) 2>&5
24065 ac_status=$?
24066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24067 (exit $ac_status); }; }; then
24068 ac_cv_sizeof_long=`cat conftest.val`
24069 else
24070 echo "$as_me: program exited with status $ac_status" >&5
24071 echo "$as_me: failed program was:" >&5
24072 sed 's/^/| /' conftest.$ac_ext >&5
24073
24074 ( exit $ac_status )
24075 { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77
24076 See \`config.log' for more details." >&5
24077 echo "$as_me: error: cannot compute sizeof (long), 77
24078 See \`config.log' for more details." >&2;}
24079 { (exit 1); exit 1; }; }
24080 fi
24081 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24082 fi
24083 fi
24084 rm -f conftest.val
24085 else
24086 ac_cv_sizeof_long=0
24087 fi
24088 fi
24089 echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5
24090 echo "${ECHO_T}$ac_cv_sizeof_long" >&6
24091 cat >>confdefs.h <<_ACEOF
24092 #define SIZEOF_LONG $ac_cv_sizeof_long
24093 _ACEOF
24094
24095
24096 echo "$as_me:$LINENO: checking for unsigned long" >&5
24097 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
24098 if test "${ac_cv_type_unsigned_long+set}" = set; then
24099 echo $ECHO_N "(cached) $ECHO_C" >&6
24100 else
24101 cat >conftest.$ac_ext <<_ACEOF
24102 /* confdefs.h. */
24103 _ACEOF
24104 cat confdefs.h >>conftest.$ac_ext
24105 cat >>conftest.$ac_ext <<_ACEOF
24106 /* end confdefs.h. */
24107 $ac_includes_default
24108 int
24109 main ()
24110 {
24111 if ((unsigned long *) 0)
24112 return 0;
24113 if (sizeof (unsigned long))
24114 return 0;
24115 ;
24116 return 0;
24117 }
24118 _ACEOF
24119 rm -f conftest.$ac_objext
24120 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24121 (eval $ac_compile) 2>conftest.er1
24122 ac_status=$?
24123 grep -v '^ *+' conftest.er1 >conftest.err
24124 rm -f conftest.er1
24125 cat conftest.err >&5
24126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24127 (exit $ac_status); } &&
24128 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24130 (eval $ac_try) 2>&5
24131 ac_status=$?
24132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133 (exit $ac_status); }; } &&
24134 { ac_try='test -s conftest.$ac_objext'
24135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24136 (eval $ac_try) 2>&5
24137 ac_status=$?
24138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24139 (exit $ac_status); }; }; then
24140 ac_cv_type_unsigned_long=yes
24141 else
24142 echo "$as_me: failed program was:" >&5
24143 sed 's/^/| /' conftest.$ac_ext >&5
24144
24145 ac_cv_type_unsigned_long=no
24146 fi
24147 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24148 fi
24149 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
24150 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
24151
24152 echo "$as_me:$LINENO: checking size of unsigned long" >&5
24153 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
24154 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
24155 echo $ECHO_N "(cached) $ECHO_C" >&6
24156 else
24157 if test "$ac_cv_type_unsigned_long" = yes; then
24158 # The cast to unsigned long works around a bug in the HP C Compiler
24159 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
24160 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
24161 # This bug is HP SR number 8606223364.
24162 if test "$cross_compiling" = yes; then
24163 # Depending upon the size, compute the lo and hi bounds.
24164 cat >conftest.$ac_ext <<_ACEOF
24165 /* confdefs.h. */
24166 _ACEOF
24167 cat confdefs.h >>conftest.$ac_ext
24168 cat >>conftest.$ac_ext <<_ACEOF
24169 /* end confdefs.h. */
24170 $ac_includes_default
24171 int
24172 main ()
24173 {
24174 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
24175 test_array [0] = 0
24176
24177 ;
24178 return 0;
24179 }
24180 _ACEOF
24181 rm -f conftest.$ac_objext
24182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24183 (eval $ac_compile) 2>conftest.er1
24184 ac_status=$?
24185 grep -v '^ *+' conftest.er1 >conftest.err
24186 rm -f conftest.er1
24187 cat conftest.err >&5
24188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24189 (exit $ac_status); } &&
24190 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24191 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24192 (eval $ac_try) 2>&5
24193 ac_status=$?
24194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24195 (exit $ac_status); }; } &&
24196 { ac_try='test -s conftest.$ac_objext'
24197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24198 (eval $ac_try) 2>&5
24199 ac_status=$?
24200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24201 (exit $ac_status); }; }; then
24202 ac_lo=0 ac_mid=0
24203 while :; do
24204 cat >conftest.$ac_ext <<_ACEOF
24205 /* confdefs.h. */
24206 _ACEOF
24207 cat confdefs.h >>conftest.$ac_ext
24208 cat >>conftest.$ac_ext <<_ACEOF
24209 /* end confdefs.h. */
24210 $ac_includes_default
24211 int
24212 main ()
24213 {
24214 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
24215 test_array [0] = 0
24216
24217 ;
24218 return 0;
24219 }
24220 _ACEOF
24221 rm -f conftest.$ac_objext
24222 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24223 (eval $ac_compile) 2>conftest.er1
24224 ac_status=$?
24225 grep -v '^ *+' conftest.er1 >conftest.err
24226 rm -f conftest.er1
24227 cat conftest.err >&5
24228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24229 (exit $ac_status); } &&
24230 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24232 (eval $ac_try) 2>&5
24233 ac_status=$?
24234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24235 (exit $ac_status); }; } &&
24236 { ac_try='test -s conftest.$ac_objext'
24237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24238 (eval $ac_try) 2>&5
24239 ac_status=$?
24240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24241 (exit $ac_status); }; }; then
24242 ac_hi=$ac_mid; break
24243 else
24244 echo "$as_me: failed program was:" >&5
24245 sed 's/^/| /' conftest.$ac_ext >&5
24246
24247 ac_lo=`expr $ac_mid + 1`
24248 if test $ac_lo -le $ac_mid; then
24249 ac_lo= ac_hi=
24250 break
24251 fi
24252 ac_mid=`expr 2 '*' $ac_mid + 1`
24253 fi
24254 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24255 done
24256 else
24257 echo "$as_me: failed program was:" >&5
24258 sed 's/^/| /' conftest.$ac_ext >&5
24259
24260 cat >conftest.$ac_ext <<_ACEOF
24261 /* confdefs.h. */
24262 _ACEOF
24263 cat confdefs.h >>conftest.$ac_ext
24264 cat >>conftest.$ac_ext <<_ACEOF
24265 /* end confdefs.h. */
24266 $ac_includes_default
24267 int
24268 main ()
24269 {
24270 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
24271 test_array [0] = 0
24272
24273 ;
24274 return 0;
24275 }
24276 _ACEOF
24277 rm -f conftest.$ac_objext
24278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24279 (eval $ac_compile) 2>conftest.er1
24280 ac_status=$?
24281 grep -v '^ *+' conftest.er1 >conftest.err
24282 rm -f conftest.er1
24283 cat conftest.err >&5
24284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24285 (exit $ac_status); } &&
24286 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24288 (eval $ac_try) 2>&5
24289 ac_status=$?
24290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24291 (exit $ac_status); }; } &&
24292 { ac_try='test -s conftest.$ac_objext'
24293 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24294 (eval $ac_try) 2>&5
24295 ac_status=$?
24296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24297 (exit $ac_status); }; }; then
24298 ac_hi=-1 ac_mid=-1
24299 while :; do
24300 cat >conftest.$ac_ext <<_ACEOF
24301 /* confdefs.h. */
24302 _ACEOF
24303 cat confdefs.h >>conftest.$ac_ext
24304 cat >>conftest.$ac_ext <<_ACEOF
24305 /* end confdefs.h. */
24306 $ac_includes_default
24307 int
24308 main ()
24309 {
24310 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
24311 test_array [0] = 0
24312
24313 ;
24314 return 0;
24315 }
24316 _ACEOF
24317 rm -f conftest.$ac_objext
24318 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24319 (eval $ac_compile) 2>conftest.er1
24320 ac_status=$?
24321 grep -v '^ *+' conftest.er1 >conftest.err
24322 rm -f conftest.er1
24323 cat conftest.err >&5
24324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24325 (exit $ac_status); } &&
24326 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24328 (eval $ac_try) 2>&5
24329 ac_status=$?
24330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24331 (exit $ac_status); }; } &&
24332 { ac_try='test -s conftest.$ac_objext'
24333 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24334 (eval $ac_try) 2>&5
24335 ac_status=$?
24336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24337 (exit $ac_status); }; }; then
24338 ac_lo=$ac_mid; break
24339 else
24340 echo "$as_me: failed program was:" >&5
24341 sed 's/^/| /' conftest.$ac_ext >&5
24342
24343 ac_hi=`expr '(' $ac_mid ')' - 1`
24344 if test $ac_mid -le $ac_hi; then
24345 ac_lo= ac_hi=
24346 break
24347 fi
24348 ac_mid=`expr 2 '*' $ac_mid`
24349 fi
24350 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24351 done
24352 else
24353 echo "$as_me: failed program was:" >&5
24354 sed 's/^/| /' conftest.$ac_ext >&5
24355
24356 ac_lo= ac_hi=
24357 fi
24358 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24359 fi
24360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24361 # Binary search between lo and hi bounds.
24362 while test "x$ac_lo" != "x$ac_hi"; do
24363 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
24364 cat >conftest.$ac_ext <<_ACEOF
24365 /* confdefs.h. */
24366 _ACEOF
24367 cat confdefs.h >>conftest.$ac_ext
24368 cat >>conftest.$ac_ext <<_ACEOF
24369 /* end confdefs.h. */
24370 $ac_includes_default
24371 int
24372 main ()
24373 {
24374 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
24375 test_array [0] = 0
24376
24377 ;
24378 return 0;
24379 }
24380 _ACEOF
24381 rm -f conftest.$ac_objext
24382 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24383 (eval $ac_compile) 2>conftest.er1
24384 ac_status=$?
24385 grep -v '^ *+' conftest.er1 >conftest.err
24386 rm -f conftest.er1
24387 cat conftest.err >&5
24388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24389 (exit $ac_status); } &&
24390 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24392 (eval $ac_try) 2>&5
24393 ac_status=$?
24394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24395 (exit $ac_status); }; } &&
24396 { ac_try='test -s conftest.$ac_objext'
24397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24398 (eval $ac_try) 2>&5
24399 ac_status=$?
24400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24401 (exit $ac_status); }; }; then
24402 ac_hi=$ac_mid
24403 else
24404 echo "$as_me: failed program was:" >&5
24405 sed 's/^/| /' conftest.$ac_ext >&5
24406
24407 ac_lo=`expr '(' $ac_mid ')' + 1`
24408 fi
24409 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24410 done
24411 case $ac_lo in
24412 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
24413 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
24414 See \`config.log' for more details." >&5
24415 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
24416 See \`config.log' for more details." >&2;}
24417 { (exit 1); exit 1; }; } ;;
24418 esac
24419 else
24420 if test "$cross_compiling" = yes; then
24421 { { echo "$as_me:$LINENO: error: internal error: not reached in cross-compile" >&5
24422 echo "$as_me: error: internal error: not reached in cross-compile" >&2;}
24423 { (exit 1); exit 1; }; }
24424 else
24425 cat >conftest.$ac_ext <<_ACEOF
24426 /* confdefs.h. */
24427 _ACEOF
24428 cat confdefs.h >>conftest.$ac_ext
24429 cat >>conftest.$ac_ext <<_ACEOF
24430 /* end confdefs.h. */
24431 $ac_includes_default
24432 long longval () { return (long) (sizeof (unsigned long)); }
24433 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
24434 #include <stdio.h>
24435 #include <stdlib.h>
24436 int
24437 main ()
24438 {
24439
24440 FILE *f = fopen ("conftest.val", "w");
24441 if (! f)
24442 exit (1);
24443 if (((long) (sizeof (unsigned long))) < 0)
24444 {
24445 long i = longval ();
24446 if (i != ((long) (sizeof (unsigned long))))
24447 exit (1);
24448 fprintf (f, "%ld\n", i);
24449 }
24450 else
24451 {
24452 unsigned long i = ulongval ();
24453 if (i != ((long) (sizeof (unsigned long))))
24454 exit (1);
24455 fprintf (f, "%lu\n", i);
24456 }
24457 exit (ferror (f) || fclose (f) != 0);
24458
24459 ;
24460 return 0;
24461 }
24462 _ACEOF
24463 rm -f conftest$ac_exeext
24464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24465 (eval $ac_link) 2>&5
24466 ac_status=$?
24467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24468 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24470 (eval $ac_try) 2>&5
24471 ac_status=$?
24472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24473 (exit $ac_status); }; }; then
24474 ac_cv_sizeof_unsigned_long=`cat conftest.val`
24475 else
24476 echo "$as_me: program exited with status $ac_status" >&5
24477 echo "$as_me: failed program was:" >&5
24478 sed 's/^/| /' conftest.$ac_ext >&5
24479
24480 ( exit $ac_status )
24481 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
24482 See \`config.log' for more details." >&5
24483 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
24484 See \`config.log' for more details." >&2;}
24485 { (exit 1); exit 1; }; }
24486 fi
24487 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24488 fi
24489 fi
24490 rm -f conftest.val
24491 else
24492 ac_cv_sizeof_unsigned_long=0
24493 fi
24494 fi
24495 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
24496 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
24497 cat >>confdefs.h <<_ACEOF
24498 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
24499 _ACEOF
24500
24501
24502
24503 echo "$as_me:$LINENO: checking for uint8_t" >&5
24504 echo $ECHO_N "checking for uint8_t... $ECHO_C" >&6
24505 if test "${ac_cv_type_uint8_t+set}" = set; then
24506 echo $ECHO_N "(cached) $ECHO_C" >&6
24507 else
24508 cat >conftest.$ac_ext <<_ACEOF
24509 /* confdefs.h. */
24510 _ACEOF
24511 cat confdefs.h >>conftest.$ac_ext
24512 cat >>conftest.$ac_ext <<_ACEOF
24513 /* end confdefs.h. */
24514 $ac_includes_default
24515 int
24516 main ()
24517 {
24518 if ((uint8_t *) 0)
24519 return 0;
24520 if (sizeof (uint8_t))
24521 return 0;
24522 ;
24523 return 0;
24524 }
24525 _ACEOF
24526 rm -f conftest.$ac_objext
24527 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24528 (eval $ac_compile) 2>conftest.er1
24529 ac_status=$?
24530 grep -v '^ *+' conftest.er1 >conftest.err
24531 rm -f conftest.er1
24532 cat conftest.err >&5
24533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24534 (exit $ac_status); } &&
24535 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24537 (eval $ac_try) 2>&5
24538 ac_status=$?
24539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24540 (exit $ac_status); }; } &&
24541 { ac_try='test -s conftest.$ac_objext'
24542 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24543 (eval $ac_try) 2>&5
24544 ac_status=$?
24545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24546 (exit $ac_status); }; }; then
24547 ac_cv_type_uint8_t=yes
24548 else
24549 echo "$as_me: failed program was:" >&5
24550 sed 's/^/| /' conftest.$ac_ext >&5
24551
24552 ac_cv_type_uint8_t=no
24553 fi
24554 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24555 fi
24556 echo "$as_me:$LINENO: result: $ac_cv_type_uint8_t" >&5
24557 echo "${ECHO_T}$ac_cv_type_uint8_t" >&6
24558 if test $ac_cv_type_uint8_t = yes; then
24559
24560 cat >>confdefs.h <<_ACEOF
24561 #define HAVE_UINT8_T 1
24562 _ACEOF
24563
24564
24565 fi
24566 echo "$as_me:$LINENO: checking for uint16_t" >&5
24567 echo $ECHO_N "checking for uint16_t... $ECHO_C" >&6
24568 if test "${ac_cv_type_uint16_t+set}" = set; then
24569 echo $ECHO_N "(cached) $ECHO_C" >&6
24570 else
24571 cat >conftest.$ac_ext <<_ACEOF
24572 /* confdefs.h. */
24573 _ACEOF
24574 cat confdefs.h >>conftest.$ac_ext
24575 cat >>conftest.$ac_ext <<_ACEOF
24576 /* end confdefs.h. */
24577 $ac_includes_default
24578 int
24579 main ()
24580 {
24581 if ((uint16_t *) 0)
24582 return 0;
24583 if (sizeof (uint16_t))
24584 return 0;
24585 ;
24586 return 0;
24587 }
24588 _ACEOF
24589 rm -f conftest.$ac_objext
24590 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24591 (eval $ac_compile) 2>conftest.er1
24592 ac_status=$?
24593 grep -v '^ *+' conftest.er1 >conftest.err
24594 rm -f conftest.er1
24595 cat conftest.err >&5
24596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24597 (exit $ac_status); } &&
24598 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24600 (eval $ac_try) 2>&5
24601 ac_status=$?
24602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24603 (exit $ac_status); }; } &&
24604 { ac_try='test -s conftest.$ac_objext'
24605 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24606 (eval $ac_try) 2>&5
24607 ac_status=$?
24608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24609 (exit $ac_status); }; }; then
24610 ac_cv_type_uint16_t=yes
24611 else
24612 echo "$as_me: failed program was:" >&5
24613 sed 's/^/| /' conftest.$ac_ext >&5
24614
24615 ac_cv_type_uint16_t=no
24616 fi
24617 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24618 fi
24619 echo "$as_me:$LINENO: result: $ac_cv_type_uint16_t" >&5
24620 echo "${ECHO_T}$ac_cv_type_uint16_t" >&6
24621 if test $ac_cv_type_uint16_t = yes; then
24622
24623 cat >>confdefs.h <<_ACEOF
24624 #define HAVE_UINT16_T 1
24625 _ACEOF
24626
24627
24628 fi
24629 echo "$as_me:$LINENO: checking for uint32_t" >&5
24630 echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6
24631 if test "${ac_cv_type_uint32_t+set}" = set; then
24632 echo $ECHO_N "(cached) $ECHO_C" >&6
24633 else
24634 cat >conftest.$ac_ext <<_ACEOF
24635 /* confdefs.h. */
24636 _ACEOF
24637 cat confdefs.h >>conftest.$ac_ext
24638 cat >>conftest.$ac_ext <<_ACEOF
24639 /* end confdefs.h. */
24640 $ac_includes_default
24641 int
24642 main ()
24643 {
24644 if ((uint32_t *) 0)
24645 return 0;
24646 if (sizeof (uint32_t))
24647 return 0;
24648 ;
24649 return 0;
24650 }
24651 _ACEOF
24652 rm -f conftest.$ac_objext
24653 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24654 (eval $ac_compile) 2>conftest.er1
24655 ac_status=$?
24656 grep -v '^ *+' conftest.er1 >conftest.err
24657 rm -f conftest.er1
24658 cat conftest.err >&5
24659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24660 (exit $ac_status); } &&
24661 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24662 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24663 (eval $ac_try) 2>&5
24664 ac_status=$?
24665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24666 (exit $ac_status); }; } &&
24667 { ac_try='test -s conftest.$ac_objext'
24668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24669 (eval $ac_try) 2>&5
24670 ac_status=$?
24671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24672 (exit $ac_status); }; }; then
24673 ac_cv_type_uint32_t=yes
24674 else
24675 echo "$as_me: failed program was:" >&5
24676 sed 's/^/| /' conftest.$ac_ext >&5
24677
24678 ac_cv_type_uint32_t=no
24679 fi
24680 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24681 fi
24682 echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5
24683 echo "${ECHO_T}$ac_cv_type_uint32_t" >&6
24684 if test $ac_cv_type_uint32_t = yes; then
24685
24686 cat >>confdefs.h <<_ACEOF
24687 #define HAVE_UINT32_T 1
24688 _ACEOF
24689
24690
24691 fi
24692
24693
24694
24695
24696
24697
24698
24699
24700 if test "${ac_cv_sizeof_unsigned_short}" = "4"; then
24701 cat >>confdefs.h <<\_ACEOF
24702 #define A_UINT32_T unsigned short
24703 _ACEOF
24704
24705 else
24706 if test "${ac_cv_sizeof_unsigned_int}" = "4"; then
24707 cat >>confdefs.h <<\_ACEOF
24708 #define A_UINT32_T unsigned int
24709 _ACEOF
24710
24711 else
24712 if test "${ac_cv_sizeof_unsigned_long}" = "4"; then
24713 cat >>confdefs.h <<\_ACEOF
24714 #define A_UINT32_T unsigned long
24715 _ACEOF
24716
24717 else
24718 { { echo "$as_me:$LINENO: error: CHECK_TYPE_uint32_t - please report to the developper" >&5
24719 echo "$as_me: error: CHECK_TYPE_uint32_t - please report to the developper" >&2;}
24720 { (exit 1); exit 1; }; }
24721 fi
24722 fi
24723 fi
24724
24725
24726
24727
24728
24729 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24730 # for constant arguments. Useless!
24731 echo "$as_me:$LINENO: checking for working alloca.h" >&5
24732 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
24733 if test "${ac_cv_working_alloca_h+set}" = set; then
24734 echo $ECHO_N "(cached) $ECHO_C" >&6
24735 else
24736 cat >conftest.$ac_ext <<_ACEOF
24737 /* confdefs.h. */
24738 _ACEOF
24739 cat confdefs.h >>conftest.$ac_ext
24740 cat >>conftest.$ac_ext <<_ACEOF
24741 /* end confdefs.h. */
24742 #include <alloca.h>
24743 int
24744 main ()
24745 {
24746 char *p = (char *) alloca (2 * sizeof (int));
24747 ;
24748 return 0;
24749 }
24750 _ACEOF
24751 rm -f conftest.$ac_objext conftest$ac_exeext
24752 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24753 (eval $ac_link) 2>conftest.er1
24754 ac_status=$?
24755 grep -v '^ *+' conftest.er1 >conftest.err
24756 rm -f conftest.er1
24757 cat conftest.err >&5
24758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24759 (exit $ac_status); } &&
24760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24762 (eval $ac_try) 2>&5
24763 ac_status=$?
24764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24765 (exit $ac_status); }; } &&
24766 { ac_try='test -s conftest$ac_exeext'
24767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24768 (eval $ac_try) 2>&5
24769 ac_status=$?
24770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24771 (exit $ac_status); }; }; then
24772 ac_cv_working_alloca_h=yes
24773 else
24774 echo "$as_me: failed program was:" >&5
24775 sed 's/^/| /' conftest.$ac_ext >&5
24776
24777 ac_cv_working_alloca_h=no
24778 fi
24779 rm -f conftest.err conftest.$ac_objext \
24780 conftest$ac_exeext conftest.$ac_ext
24781 fi
24782 echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
24783 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6
24784 if test $ac_cv_working_alloca_h = yes; then
24785
24786 cat >>confdefs.h <<\_ACEOF
24787 #define HAVE_ALLOCA_H 1
24788 _ACEOF
24789
24790 fi
24791
24792 echo "$as_me:$LINENO: checking for alloca" >&5
24793 echo $ECHO_N "checking for alloca... $ECHO_C" >&6
24794 if test "${ac_cv_func_alloca_works+set}" = set; then
24795 echo $ECHO_N "(cached) $ECHO_C" >&6
24796 else
24797 cat >conftest.$ac_ext <<_ACEOF
24798 /* confdefs.h. */
24799 _ACEOF
24800 cat confdefs.h >>conftest.$ac_ext
24801 cat >>conftest.$ac_ext <<_ACEOF
24802 /* end confdefs.h. */
24803 #ifdef __GNUC__
24804 # define alloca __builtin_alloca
24805 #else
24806 # ifdef _MSC_VER
24807 # include <malloc.h>
24808 # define alloca _alloca
24809 # else
24810 # if HAVE_ALLOCA_H
24811 # include <alloca.h>
24812 # else
24813 # ifdef _AIX
24814 #pragma alloca
24815 # else
24816 # ifndef alloca /* predefined by HP cc +Olibcalls */
24817 char *alloca ();
24818 # endif
24819 # endif
24820 # endif
24821 # endif
24822 #endif
24823
24824 int
24825 main ()
24826 {
24827 char *p = (char *) alloca (1);
24828 ;
24829 return 0;
24830 }
24831 _ACEOF
24832 rm -f conftest.$ac_objext conftest$ac_exeext
24833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24834 (eval $ac_link) 2>conftest.er1
24835 ac_status=$?
24836 grep -v '^ *+' conftest.er1 >conftest.err
24837 rm -f conftest.er1
24838 cat conftest.err >&5
24839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24840 (exit $ac_status); } &&
24841 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24843 (eval $ac_try) 2>&5
24844 ac_status=$?
24845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); }; } &&
24847 { ac_try='test -s conftest$ac_exeext'
24848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24849 (eval $ac_try) 2>&5
24850 ac_status=$?
24851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24852 (exit $ac_status); }; }; then
24853 ac_cv_func_alloca_works=yes
24854 else
24855 echo "$as_me: failed program was:" >&5
24856 sed 's/^/| /' conftest.$ac_ext >&5
24857
24858 ac_cv_func_alloca_works=no
24859 fi
24860 rm -f conftest.err conftest.$ac_objext \
24861 conftest$ac_exeext conftest.$ac_ext
24862 fi
24863 echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
24864 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6
24865
24866 if test $ac_cv_func_alloca_works = yes; then
24867
24868 cat >>confdefs.h <<\_ACEOF
24869 #define HAVE_ALLOCA 1
24870 _ACEOF
24871
24872 else
24873 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
24874 # that cause trouble. Some versions do not even contain alloca or
24875 # contain a buggy version. If you still want to use their alloca,
24876 # use ar to extract alloca.o from them instead of compiling alloca.c.
24877
24878 ALLOCA=alloca.$ac_objext
24879
24880 cat >>confdefs.h <<\_ACEOF
24881 #define C_ALLOCA 1
24882 _ACEOF
24883
24884
24885 echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
24886 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6
24887 if test "${ac_cv_os_cray+set}" = set; then
24888 echo $ECHO_N "(cached) $ECHO_C" >&6
24889 else
24890 cat >conftest.$ac_ext <<_ACEOF
24891 /* confdefs.h. */
24892 _ACEOF
24893 cat confdefs.h >>conftest.$ac_ext
24894 cat >>conftest.$ac_ext <<_ACEOF
24895 /* end confdefs.h. */
24896 #if defined(CRAY) && ! defined(CRAY2)
24897 webecray
24898 #else
24899 wenotbecray
24900 #endif
24901
24902 _ACEOF
24903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24904 $EGREP "webecray" >/dev/null 2>&1; then
24905 ac_cv_os_cray=yes
24906 else
24907 ac_cv_os_cray=no
24908 fi
24909 rm -f conftest*
24910
24911 fi
24912 echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
24913 echo "${ECHO_T}$ac_cv_os_cray" >&6
24914 if test $ac_cv_os_cray = yes; then
24915 for ac_func in _getb67 GETB67 getb67; do
24916 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24917 echo "$as_me:$LINENO: checking for $ac_func" >&5
24918 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
24919 if eval "test \"\${$as_ac_var+set}\" = set"; then
24920 echo $ECHO_N "(cached) $ECHO_C" >&6
24921 else
24922 cat >conftest.$ac_ext <<_ACEOF
24923 /* confdefs.h. */
24924 _ACEOF
24925 cat confdefs.h >>conftest.$ac_ext
24926 cat >>conftest.$ac_ext <<_ACEOF
24927 /* end confdefs.h. */
24928 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24929 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24930 #define $ac_func innocuous_$ac_func
24931
24932 /* System header to define __stub macros and hopefully few prototypes,
24933 which can conflict with char $ac_func (); below.
24934 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24935 <limits.h> exists even on freestanding compilers. */
24936
24937 #ifdef __STDC__
24938 # include <limits.h>
24939 #else
24940 # include <assert.h>
24941 #endif
24942
24943 #undef $ac_func
24944
24945 /* Override any gcc2 internal prototype to avoid an error. */
24946 #ifdef __cplusplus
24947 extern "C"
24948 {
24949 #endif
24950 /* We use char because int might match the return type of a gcc2
24951 builtin and then its argument prototype would still apply. */
24952 char $ac_func ();
24953 /* The GNU C library defines this for functions which it implements
24954 to always fail with ENOSYS. Some functions are actually named
24955 something starting with __ and the normal name is an alias. */
24956 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
24957 choke me
24958 #else
24959 char (*f) () = $ac_func;
24960 #endif
24961 #ifdef __cplusplus
24962 }
24963 #endif
24964
24965 int
24966 main ()
24967 {
24968 return f != $ac_func;
24969 ;
24970 return 0;
24971 }
24972 _ACEOF
24973 rm -f conftest.$ac_objext conftest$ac_exeext
24974 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24975 (eval $ac_link) 2>conftest.er1
24976 ac_status=$?
24977 grep -v '^ *+' conftest.er1 >conftest.err
24978 rm -f conftest.er1
24979 cat conftest.err >&5
24980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24981 (exit $ac_status); } &&
24982 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24984 (eval $ac_try) 2>&5
24985 ac_status=$?
24986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24987 (exit $ac_status); }; } &&
24988 { ac_try='test -s conftest$ac_exeext'
24989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24990 (eval $ac_try) 2>&5
24991 ac_status=$?
24992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24993 (exit $ac_status); }; }; then
24994 eval "$as_ac_var=yes"
24995 else
24996 echo "$as_me: failed program was:" >&5
24997 sed 's/^/| /' conftest.$ac_ext >&5
24998
24999 eval "$as_ac_var=no"
25000 fi
25001 rm -f conftest.err conftest.$ac_objext \
25002 conftest$ac_exeext conftest.$ac_ext
25003 fi
25004 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25005 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25006 if test `eval echo '${'$as_ac_var'}'` = yes; then
25007
25008 cat >>confdefs.h <<_ACEOF
25009 #define CRAY_STACKSEG_END $ac_func
25010 _ACEOF
25011
25012 break
25013 fi
25014
25015 done
25016 fi
25017
25018 echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
25019 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6
25020 if test "${ac_cv_c_stack_direction+set}" = set; then
25021 echo $ECHO_N "(cached) $ECHO_C" >&6
25022 else
25023 if test "$cross_compiling" = yes; then
25024 ac_cv_c_stack_direction=0
25025 else
25026 cat >conftest.$ac_ext <<_ACEOF
25027 /* confdefs.h. */
25028 _ACEOF
25029 cat confdefs.h >>conftest.$ac_ext
25030 cat >>conftest.$ac_ext <<_ACEOF
25031 /* end confdefs.h. */
25032 int
25033 find_stack_direction ()
25034 {
25035 static char *addr = 0;
25036 auto char dummy;
25037 if (addr == 0)
25038 {
25039 addr = &dummy;
25040 return find_stack_direction ();
25041 }
25042 else
25043 return (&dummy > addr) ? 1 : -1;
25044 }
25045
25046 int
25047 main ()
25048 {
25049 exit (find_stack_direction () < 0);
25050 }
25051 _ACEOF
25052 rm -f conftest$ac_exeext
25053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25054 (eval $ac_link) 2>&5
25055 ac_status=$?
25056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25059 (eval $ac_try) 2>&5
25060 ac_status=$?
25061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25062 (exit $ac_status); }; }; then
25063 ac_cv_c_stack_direction=1
25064 else
25065 echo "$as_me: program exited with status $ac_status" >&5
25066 echo "$as_me: failed program was:" >&5
25067 sed 's/^/| /' conftest.$ac_ext >&5
25068
25069 ( exit $ac_status )
25070 ac_cv_c_stack_direction=-1
25071 fi
25072 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25073 fi
25074 fi
25075 echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
25076 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6
25077
25078 cat >>confdefs.h <<_ACEOF
25079 #define STACK_DIRECTION $ac_cv_c_stack_direction
25080 _ACEOF
25081
25082
25083 fi
25084
25085 echo "$as_me:$LINENO: checking for working memcmp" >&5
25086 echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
25087 if test "${ac_cv_func_memcmp_working+set}" = set; then
25088 echo $ECHO_N "(cached) $ECHO_C" >&6
25089 else
25090 if test "$cross_compiling" = yes; then
25091 ac_cv_func_memcmp_working=no
25092 else
25093 cat >conftest.$ac_ext <<_ACEOF
25094 /* confdefs.h. */
25095 _ACEOF
25096 cat confdefs.h >>conftest.$ac_ext
25097 cat >>conftest.$ac_ext <<_ACEOF
25098 /* end confdefs.h. */
25099 $ac_includes_default
25100 int
25101 main ()
25102 {
25103
25104 /* Some versions of memcmp are not 8-bit clean. */
25105 char c0 = 0x40, c1 = 0x80, c2 = 0x81;
25106 if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
25107 exit (1);
25108
25109 /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
25110 or more and with at least one buffer not starting on a 4-byte boundary.
25111 William Lewis provided this test program. */
25112 {
25113 char foo[21];
25114 char bar[21];
25115 int i;
25116 for (i = 0; i < 4; i++)
25117 {
25118 char *a = foo + i;
25119 char *b = bar + i;
25120 strcpy (a, "--------01111111");
25121 strcpy (b, "--------10000000");
25122 if (memcmp (a, b, 16) >= 0)
25123 exit (1);
25124 }
25125 exit (0);
25126 }
25127
25128 ;
25129 return 0;
25130 }
25131 _ACEOF
25132 rm -f conftest$ac_exeext
25133 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25134 (eval $ac_link) 2>&5
25135 ac_status=$?
25136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25137 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25139 (eval $ac_try) 2>&5
25140 ac_status=$?
25141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25142 (exit $ac_status); }; }; then
25143 ac_cv_func_memcmp_working=yes
25144 else
25145 echo "$as_me: program exited with status $ac_status" >&5
25146 echo "$as_me: failed program was:" >&5
25147 sed 's/^/| /' conftest.$ac_ext >&5
25148
25149 ( exit $ac_status )
25150 ac_cv_func_memcmp_working=no
25151 fi
25152 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25153 fi
25154 fi
25155 echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
25156 echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
25157 test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
25158 "memcmp.$ac_objext" | \
25159 *" memcmp.$ac_objext" | \
25160 "memcmp.$ac_objext "* | \
25161 *" memcmp.$ac_objext "* ) ;;
25162 *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
25163 esac
25164
25165
25166
25167 for ac_func in vprintf
25168 do
25169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25170 echo "$as_me:$LINENO: checking for $ac_func" >&5
25171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25172 if eval "test \"\${$as_ac_var+set}\" = set"; then
25173 echo $ECHO_N "(cached) $ECHO_C" >&6
25174 else
25175 cat >conftest.$ac_ext <<_ACEOF
25176 /* confdefs.h. */
25177 _ACEOF
25178 cat confdefs.h >>conftest.$ac_ext
25179 cat >>conftest.$ac_ext <<_ACEOF
25180 /* end confdefs.h. */
25181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25183 #define $ac_func innocuous_$ac_func
25184
25185 /* System header to define __stub macros and hopefully few prototypes,
25186 which can conflict with char $ac_func (); below.
25187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25188 <limits.h> exists even on freestanding compilers. */
25189
25190 #ifdef __STDC__
25191 # include <limits.h>
25192 #else
25193 # include <assert.h>
25194 #endif
25195
25196 #undef $ac_func
25197
25198 /* Override any gcc2 internal prototype to avoid an error. */
25199 #ifdef __cplusplus
25200 extern "C"
25201 {
25202 #endif
25203 /* We use char because int might match the return type of a gcc2
25204 builtin and then its argument prototype would still apply. */
25205 char $ac_func ();
25206 /* The GNU C library defines this for functions which it implements
25207 to always fail with ENOSYS. Some functions are actually named
25208 something starting with __ and the normal name is an alias. */
25209 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25210 choke me
25211 #else
25212 char (*f) () = $ac_func;
25213 #endif
25214 #ifdef __cplusplus
25215 }
25216 #endif
25217
25218 int
25219 main ()
25220 {
25221 return f != $ac_func;
25222 ;
25223 return 0;
25224 }
25225 _ACEOF
25226 rm -f conftest.$ac_objext conftest$ac_exeext
25227 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25228 (eval $ac_link) 2>conftest.er1
25229 ac_status=$?
25230 grep -v '^ *+' conftest.er1 >conftest.err
25231 rm -f conftest.er1
25232 cat conftest.err >&5
25233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25234 (exit $ac_status); } &&
25235 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25237 (eval $ac_try) 2>&5
25238 ac_status=$?
25239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25240 (exit $ac_status); }; } &&
25241 { ac_try='test -s conftest$ac_exeext'
25242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25243 (eval $ac_try) 2>&5
25244 ac_status=$?
25245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25246 (exit $ac_status); }; }; then
25247 eval "$as_ac_var=yes"
25248 else
25249 echo "$as_me: failed program was:" >&5
25250 sed 's/^/| /' conftest.$ac_ext >&5
25251
25252 eval "$as_ac_var=no"
25253 fi
25254 rm -f conftest.err conftest.$ac_objext \
25255 conftest$ac_exeext conftest.$ac_ext
25256 fi
25257 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25258 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25259 if test `eval echo '${'$as_ac_var'}'` = yes; then
25260 cat >>confdefs.h <<_ACEOF
25261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25262 _ACEOF
25263
25264 echo "$as_me:$LINENO: checking for _doprnt" >&5
25265 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
25266 if test "${ac_cv_func__doprnt+set}" = set; then
25267 echo $ECHO_N "(cached) $ECHO_C" >&6
25268 else
25269 cat >conftest.$ac_ext <<_ACEOF
25270 /* confdefs.h. */
25271 _ACEOF
25272 cat confdefs.h >>conftest.$ac_ext
25273 cat >>conftest.$ac_ext <<_ACEOF
25274 /* end confdefs.h. */
25275 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
25276 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25277 #define _doprnt innocuous__doprnt
25278
25279 /* System header to define __stub macros and hopefully few prototypes,
25280 which can conflict with char _doprnt (); below.
25281 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25282 <limits.h> exists even on freestanding compilers. */
25283
25284 #ifdef __STDC__
25285 # include <limits.h>
25286 #else
25287 # include <assert.h>
25288 #endif
25289
25290 #undef _doprnt
25291
25292 /* Override any gcc2 internal prototype to avoid an error. */
25293 #ifdef __cplusplus
25294 extern "C"
25295 {
25296 #endif
25297 /* We use char because int might match the return type of a gcc2
25298 builtin and then its argument prototype would still apply. */
25299 char _doprnt ();
25300 /* The GNU C library defines this for functions which it implements
25301 to always fail with ENOSYS. Some functions are actually named
25302 something starting with __ and the normal name is an alias. */
25303 #if defined (__stub__doprnt) || defined (__stub____doprnt)
25304 choke me
25305 #else
25306 char (*f) () = _doprnt;
25307 #endif
25308 #ifdef __cplusplus
25309 }
25310 #endif
25311
25312 int
25313 main ()
25314 {
25315 return f != _doprnt;
25316 ;
25317 return 0;
25318 }
25319 _ACEOF
25320 rm -f conftest.$ac_objext conftest$ac_exeext
25321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25322 (eval $ac_link) 2>conftest.er1
25323 ac_status=$?
25324 grep -v '^ *+' conftest.er1 >conftest.err
25325 rm -f conftest.er1
25326 cat conftest.err >&5
25327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25328 (exit $ac_status); } &&
25329 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25331 (eval $ac_try) 2>&5
25332 ac_status=$?
25333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25334 (exit $ac_status); }; } &&
25335 { ac_try='test -s conftest$ac_exeext'
25336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25337 (eval $ac_try) 2>&5
25338 ac_status=$?
25339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25340 (exit $ac_status); }; }; then
25341 ac_cv_func__doprnt=yes
25342 else
25343 echo "$as_me: failed program was:" >&5
25344 sed 's/^/| /' conftest.$ac_ext >&5
25345
25346 ac_cv_func__doprnt=no
25347 fi
25348 rm -f conftest.err conftest.$ac_objext \
25349 conftest$ac_exeext conftest.$ac_ext
25350 fi
25351 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
25352 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
25353 if test $ac_cv_func__doprnt = yes; then
25354
25355 cat >>confdefs.h <<\_ACEOF
25356 #define HAVE_DOPRNT 1
25357 _ACEOF
25358
25359 fi
25360
25361 fi
25362 done
25363
25364
25365
25366
25367
25368
25369
25370
25371 for ac_func in getcwd mktime strdup strerror strtol strtoul
25372 do
25373 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
25374 echo "$as_me:$LINENO: checking for $ac_func" >&5
25375 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
25376 if eval "test \"\${$as_ac_var+set}\" = set"; then
25377 echo $ECHO_N "(cached) $ECHO_C" >&6
25378 else
25379 cat >conftest.$ac_ext <<_ACEOF
25380 /* confdefs.h. */
25381 _ACEOF
25382 cat confdefs.h >>conftest.$ac_ext
25383 cat >>conftest.$ac_ext <<_ACEOF
25384 /* end confdefs.h. */
25385 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
25386 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25387 #define $ac_func innocuous_$ac_func
25388
25389 /* System header to define __stub macros and hopefully few prototypes,
25390 which can conflict with char $ac_func (); below.
25391 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25392 <limits.h> exists even on freestanding compilers. */
25393
25394 #ifdef __STDC__
25395 # include <limits.h>
25396 #else
25397 # include <assert.h>
25398 #endif
25399
25400 #undef $ac_func
25401
25402 /* Override any gcc2 internal prototype to avoid an error. */
25403 #ifdef __cplusplus
25404 extern "C"
25405 {
25406 #endif
25407 /* We use char because int might match the return type of a gcc2
25408 builtin and then its argument prototype would still apply. */
25409 char $ac_func ();
25410 /* The GNU C library defines this for functions which it implements
25411 to always fail with ENOSYS. Some functions are actually named
25412 something starting with __ and the normal name is an alias. */
25413 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
25414 choke me
25415 #else
25416 char (*f) () = $ac_func;
25417 #endif
25418 #ifdef __cplusplus
25419 }
25420 #endif
25421
25422 int
25423 main ()
25424 {
25425 return f != $ac_func;
25426 ;
25427 return 0;
25428 }
25429 _ACEOF
25430 rm -f conftest.$ac_objext conftest$ac_exeext
25431 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25432 (eval $ac_link) 2>conftest.er1
25433 ac_status=$?
25434 grep -v '^ *+' conftest.er1 >conftest.err
25435 rm -f conftest.er1
25436 cat conftest.err >&5
25437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25438 (exit $ac_status); } &&
25439 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25441 (eval $ac_try) 2>&5
25442 ac_status=$?
25443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25444 (exit $ac_status); }; } &&
25445 { ac_try='test -s conftest$ac_exeext'
25446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25447 (eval $ac_try) 2>&5
25448 ac_status=$?
25449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25450 (exit $ac_status); }; }; then
25451 eval "$as_ac_var=yes"
25452 else
25453 echo "$as_me: failed program was:" >&5
25454 sed 's/^/| /' conftest.$ac_ext >&5
25455
25456 eval "$as_ac_var=no"
25457 fi
25458 rm -f conftest.err conftest.$ac_objext \
25459 conftest$ac_exeext conftest.$ac_ext
25460 fi
25461 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
25462 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
25463 if test `eval echo '${'$as_ac_var'}'` = yes; then
25464 cat >>confdefs.h <<_ACEOF
25465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25466 _ACEOF
25467
25468 fi
25469 done
25470
25471
25472
25473 echo "$as_me:$LINENO: checking for rand in -lm" >&5
25474 echo $ECHO_N "checking for rand in -lm... $ECHO_C" >&6
25475 if test "${ac_cv_lib_m_rand+set}" = set; then
25476 echo $ECHO_N "(cached) $ECHO_C" >&6
25477 else
25478 ac_check_lib_save_LIBS=$LIBS
25479 LIBS="-lm $LIBS"
25480 cat >conftest.$ac_ext <<_ACEOF
25481 /* confdefs.h. */
25482 _ACEOF
25483 cat confdefs.h >>conftest.$ac_ext
25484 cat >>conftest.$ac_ext <<_ACEOF
25485 /* end confdefs.h. */
25486
25487 /* Override any gcc2 internal prototype to avoid an error. */
25488 #ifdef __cplusplus
25489 extern "C"
25490 #endif
25491 /* We use char because int might match the return type of a gcc2
25492 builtin and then its argument prototype would still apply. */
25493 char rand ();
25494 int
25495 main ()
25496 {
25497 rand ();
25498 ;
25499 return 0;
25500 }
25501 _ACEOF
25502 rm -f conftest.$ac_objext conftest$ac_exeext
25503 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25504 (eval $ac_link) 2>conftest.er1
25505 ac_status=$?
25506 grep -v '^ *+' conftest.er1 >conftest.err
25507 rm -f conftest.er1
25508 cat conftest.err >&5
25509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25510 (exit $ac_status); } &&
25511 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25512 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25513 (eval $ac_try) 2>&5
25514 ac_status=$?
25515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25516 (exit $ac_status); }; } &&
25517 { ac_try='test -s conftest$ac_exeext'
25518 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25519 (eval $ac_try) 2>&5
25520 ac_status=$?
25521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25522 (exit $ac_status); }; }; then
25523 ac_cv_lib_m_rand=yes
25524 else
25525 echo "$as_me: failed program was:" >&5
25526 sed 's/^/| /' conftest.$ac_ext >&5
25527
25528 ac_cv_lib_m_rand=no
25529 fi
25530 rm -f conftest.err conftest.$ac_objext \
25531 conftest$ac_exeext conftest.$ac_ext
25532 LIBS=$ac_check_lib_save_LIBS
25533 fi
25534 echo "$as_me:$LINENO: result: $ac_cv_lib_m_rand" >&5
25535 echo "${ECHO_T}$ac_cv_lib_m_rand" >&6
25536 if test $ac_cv_lib_m_rand = yes; then
25537 cat >>confdefs.h <<_ACEOF
25538 #define HAVE_LIBM 1
25539 _ACEOF
25540
25541 LIBS="-lm $LIBS"
25542
25543 fi
25544
25545
25546
25547 echo "$as_me:$LINENO: checking for uncompress in -lz" >&5
25548 echo $ECHO_N "checking for uncompress in -lz... $ECHO_C" >&6
25549 if test "${ac_cv_lib_z_uncompress+set}" = set; then
25550 echo $ECHO_N "(cached) $ECHO_C" >&6
25551 else
25552 ac_check_lib_save_LIBS=$LIBS
25553 LIBS="-lz $LIBS"
25554 cat >conftest.$ac_ext <<_ACEOF
25555 /* confdefs.h. */
25556 _ACEOF
25557 cat confdefs.h >>conftest.$ac_ext
25558 cat >>conftest.$ac_ext <<_ACEOF
25559 /* end confdefs.h. */
25560
25561 /* Override any gcc2 internal prototype to avoid an error. */
25562 #ifdef __cplusplus
25563 extern "C"
25564 #endif
25565 /* We use char because int might match the return type of a gcc2
25566 builtin and then its argument prototype would still apply. */
25567 char uncompress ();
25568 int
25569 main ()
25570 {
25571 uncompress ();
25572 ;
25573 return 0;
25574 }
25575 _ACEOF
25576 rm -f conftest.$ac_objext conftest$ac_exeext
25577 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25578 (eval $ac_link) 2>conftest.er1
25579 ac_status=$?
25580 grep -v '^ *+' conftest.er1 >conftest.err
25581 rm -f conftest.er1
25582 cat conftest.err >&5
25583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25584 (exit $ac_status); } &&
25585 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25587 (eval $ac_try) 2>&5
25588 ac_status=$?
25589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25590 (exit $ac_status); }; } &&
25591 { ac_try='test -s conftest$ac_exeext'
25592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25593 (eval $ac_try) 2>&5
25594 ac_status=$?
25595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596 (exit $ac_status); }; }; then
25597 ac_cv_lib_z_uncompress=yes
25598 else
25599 echo "$as_me: failed program was:" >&5
25600 sed 's/^/| /' conftest.$ac_ext >&5
25601
25602 ac_cv_lib_z_uncompress=no
25603 fi
25604 rm -f conftest.err conftest.$ac_objext \
25605 conftest$ac_exeext conftest.$ac_ext
25606 LIBS=$ac_check_lib_save_LIBS
25607 fi
25608 echo "$as_me:$LINENO: result: $ac_cv_lib_z_uncompress" >&5
25609 echo "${ECHO_T}$ac_cv_lib_z_uncompress" >&6
25610 if test $ac_cv_lib_z_uncompress = yes; then
25611 cat >>confdefs.h <<_ACEOF
25612 #define HAVE_LIBZ 1
25613 _ACEOF
25614
25615 LIBS="-lz $LIBS"
25616
25617 else
25618 { { echo "$as_me:$LINENO: error: libz not found!" >&5
25619 echo "$as_me: error: libz not found!" >&2;}
25620 { (exit 1); exit 1; }; }
25621 fi
25622
25623
25624
25625 # Check whether --with-iconv-header or --without-iconv-header was given.
25626 if test "${with_iconv_header+set}" = set; then
25627 withval="$with_iconv_header"
25628 CFLAGS="-I$withval ${CFLAGS}"
25629
25630 fi;
25631
25632
25633 # Check whether --with-iconv-library or --without-iconv-library was given.
25634 if test "${with_iconv_library+set}" = set; then
25635 withval="$with_iconv_library"
25636 LDFLAGS="-L$withval ${LDFLAGS}"; with_libiconv=native
25637 else
25638 with_libiconv=maybe
25639
25640 fi;
25641
25642 if test "${ac_cv_header_iconv_h+set}" = set; then
25643 echo "$as_me:$LINENO: checking for iconv.h" >&5
25644 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
25645 if test "${ac_cv_header_iconv_h+set}" = set; then
25646 echo $ECHO_N "(cached) $ECHO_C" >&6
25647 fi
25648 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
25649 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
25650 else
25651 # Is the header compilable?
25652 echo "$as_me:$LINENO: checking iconv.h usability" >&5
25653 echo $ECHO_N "checking iconv.h usability... $ECHO_C" >&6
25654 cat >conftest.$ac_ext <<_ACEOF
25655 /* confdefs.h. */
25656 _ACEOF
25657 cat confdefs.h >>conftest.$ac_ext
25658 cat >>conftest.$ac_ext <<_ACEOF
25659 /* end confdefs.h. */
25660 $ac_includes_default
25661 #include <iconv.h>
25662 _ACEOF
25663 rm -f conftest.$ac_objext
25664 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25665 (eval $ac_compile) 2>conftest.er1
25666 ac_status=$?
25667 grep -v '^ *+' conftest.er1 >conftest.err
25668 rm -f conftest.er1
25669 cat conftest.err >&5
25670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25671 (exit $ac_status); } &&
25672 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25674 (eval $ac_try) 2>&5
25675 ac_status=$?
25676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25677 (exit $ac_status); }; } &&
25678 { ac_try='test -s conftest.$ac_objext'
25679 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25680 (eval $ac_try) 2>&5
25681 ac_status=$?
25682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25683 (exit $ac_status); }; }; then
25684 ac_header_compiler=yes
25685 else
25686 echo "$as_me: failed program was:" >&5
25687 sed 's/^/| /' conftest.$ac_ext >&5
25688
25689 ac_header_compiler=no
25690 fi
25691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25692 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
25693 echo "${ECHO_T}$ac_header_compiler" >&6
25694
25695 # Is the header present?
25696 echo "$as_me:$LINENO: checking iconv.h presence" >&5
25697 echo $ECHO_N "checking iconv.h presence... $ECHO_C" >&6
25698 cat >conftest.$ac_ext <<_ACEOF
25699 /* confdefs.h. */
25700 _ACEOF
25701 cat confdefs.h >>conftest.$ac_ext
25702 cat >>conftest.$ac_ext <<_ACEOF
25703 /* end confdefs.h. */
25704 #include <iconv.h>
25705 _ACEOF
25706 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
25707 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
25708 ac_status=$?
25709 grep -v '^ *+' conftest.er1 >conftest.err
25710 rm -f conftest.er1
25711 cat conftest.err >&5
25712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25713 (exit $ac_status); } >/dev/null; then
25714 if test -s conftest.err; then
25715 ac_cpp_err=$ac_c_preproc_warn_flag
25716 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
25717 else
25718 ac_cpp_err=
25719 fi
25720 else
25721 ac_cpp_err=yes
25722 fi
25723 if test -z "$ac_cpp_err"; then
25724 ac_header_preproc=yes
25725 else
25726 echo "$as_me: failed program was:" >&5
25727 sed 's/^/| /' conftest.$ac_ext >&5
25728
25729 ac_header_preproc=no
25730 fi
25731 rm -f conftest.err conftest.$ac_ext
25732 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
25733 echo "${ECHO_T}$ac_header_preproc" >&6
25734
25735 # So? What about this header?
25736 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
25737 yes:no: )
25738 { echo "$as_me:$LINENO: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&5
25739 echo "$as_me: WARNING: iconv.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
25740 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the compiler's result" >&5
25741 echo "$as_me: WARNING: iconv.h: proceeding with the compiler's result" >&2;}
25742 ac_header_preproc=yes
25743 ;;
25744 no:yes:* )
25745 { echo "$as_me:$LINENO: WARNING: iconv.h: present but cannot be compiled" >&5
25746 echo "$as_me: WARNING: iconv.h: present but cannot be compiled" >&2;}
25747 { echo "$as_me:$LINENO: WARNING: iconv.h: check for missing prerequisite headers?" >&5
25748 echo "$as_me: WARNING: iconv.h: check for missing prerequisite headers?" >&2;}
25749 { echo "$as_me:$LINENO: WARNING: iconv.h: see the Autoconf documentation" >&5
25750 echo "$as_me: WARNING: iconv.h: see the Autoconf documentation" >&2;}
25751 { echo "$as_me:$LINENO: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&5
25752 echo "$as_me: WARNING: iconv.h: section \"Present But Cannot Be Compiled\"" >&2;}
25753 { echo "$as_me:$LINENO: WARNING: iconv.h: proceeding with the preprocessor's result" >&5
25754 echo "$as_me: WARNING: iconv.h: proceeding with the preprocessor's result" >&2;}
25755 { echo "$as_me:$LINENO: WARNING: iconv.h: in the future, the compiler will take precedence" >&5
25756 echo "$as_me: WARNING: iconv.h: in the future, the compiler will take precedence" >&2;}
25757 (
25758 cat <<\_ASBOX
25759 ## ------------------------------------------ ##
25760 ## Report this to the AC_PACKAGE_NAME lists. ##
25761 ## ------------------------------------------ ##
25762 _ASBOX
25763 ) |
25764 sed "s/^/$as_me: WARNING: /" >&2
25765 ;;
25766 esac
25767 echo "$as_me:$LINENO: checking for iconv.h" >&5
25768 echo $ECHO_N "checking for iconv.h... $ECHO_C" >&6
25769 if test "${ac_cv_header_iconv_h+set}" = set; then
25770 echo $ECHO_N "(cached) $ECHO_C" >&6
25771 else
25772 ac_cv_header_iconv_h=$ac_header_preproc
25773 fi
25774 echo "$as_me:$LINENO: result: $ac_cv_header_iconv_h" >&5
25775 echo "${ECHO_T}$ac_cv_header_iconv_h" >&6
25776
25777 fi
25778 if test $ac_cv_header_iconv_h = yes; then
25779 :
25780 else
25781 { { echo "$as_me:$LINENO: error: iconv.h not found!" >&5
25782 echo "$as_me: error: iconv.h not found!" >&2;}
25783 { (exit 1); exit 1; }; }
25784 fi
25785
25786
25787
25788 found_iconv=no
25789 case $with_libiconv in
25790 maybe)
25791 # Check in the C library first
25792 echo "$as_me:$LINENO: checking for iconv_open" >&5
25793 echo $ECHO_N "checking for iconv_open... $ECHO_C" >&6
25794 if test "${ac_cv_func_iconv_open+set}" = set; then
25795 echo $ECHO_N "(cached) $ECHO_C" >&6
25796 else
25797 cat >conftest.$ac_ext <<_ACEOF
25798 /* confdefs.h. */
25799 _ACEOF
25800 cat confdefs.h >>conftest.$ac_ext
25801 cat >>conftest.$ac_ext <<_ACEOF
25802 /* end confdefs.h. */
25803 /* Define iconv_open to an innocuous variant, in case <limits.h> declares iconv_open.
25804 For example, HP-UX 11i <limits.h> declares gettimeofday. */
25805 #define iconv_open innocuous_iconv_open
25806
25807 /* System header to define __stub macros and hopefully few prototypes,
25808 which can conflict with char iconv_open (); below.
25809 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
25810 <limits.h> exists even on freestanding compilers. */
25811
25812 #ifdef __STDC__
25813 # include <limits.h>
25814 #else
25815 # include <assert.h>
25816 #endif
25817
25818 #undef iconv_open
25819
25820 /* Override any gcc2 internal prototype to avoid an error. */
25821 #ifdef __cplusplus
25822 extern "C"
25823 {
25824 #endif
25825 /* We use char because int might match the return type of a gcc2
25826 builtin and then its argument prototype would still apply. */
25827 char iconv_open ();
25828 /* The GNU C library defines this for functions which it implements
25829 to always fail with ENOSYS. Some functions are actually named
25830 something starting with __ and the normal name is an alias. */
25831 #if defined (__stub_iconv_open) || defined (__stub___iconv_open)
25832 choke me
25833 #else
25834 char (*f) () = iconv_open;
25835 #endif
25836 #ifdef __cplusplus
25837 }
25838 #endif
25839
25840 int
25841 main ()
25842 {
25843 return f != iconv_open;
25844 ;
25845 return 0;
25846 }
25847 _ACEOF
25848 rm -f conftest.$ac_objext conftest$ac_exeext
25849 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25850 (eval $ac_link) 2>conftest.er1
25851 ac_status=$?
25852 grep -v '^ *+' conftest.er1 >conftest.err
25853 rm -f conftest.er1
25854 cat conftest.err >&5
25855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25856 (exit $ac_status); } &&
25857 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25858 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25859 (eval $ac_try) 2>&5
25860 ac_status=$?
25861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25862 (exit $ac_status); }; } &&
25863 { ac_try='test -s conftest$ac_exeext'
25864 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25865 (eval $ac_try) 2>&5
25866 ac_status=$?
25867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25868 (exit $ac_status); }; }; then
25869 ac_cv_func_iconv_open=yes
25870 else
25871 echo "$as_me: failed program was:" >&5
25872 sed 's/^/| /' conftest.$ac_ext >&5
25873
25874 ac_cv_func_iconv_open=no
25875 fi
25876 rm -f conftest.err conftest.$ac_objext \
25877 conftest$ac_exeext conftest.$ac_ext
25878 fi
25879 echo "$as_me:$LINENO: result: $ac_cv_func_iconv_open" >&5
25880 echo "${ECHO_T}$ac_cv_func_iconv_open" >&6
25881 if test $ac_cv_func_iconv_open = yes; then
25882 with_libiconv=no; found_iconv=yes
25883 fi
25884
25885 # Check if we have GNU libiconv
25886 if test $found_iconv = "no"; then
25887 echo "$as_me:$LINENO: checking for libiconv_open in -liconv" >&5
25888 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6
25889 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
25890 echo $ECHO_N "(cached) $ECHO_C" >&6
25891 else
25892 ac_check_lib_save_LIBS=$LIBS
25893 LIBS="-liconv $LIBS"
25894 cat >conftest.$ac_ext <<_ACEOF
25895 /* confdefs.h. */
25896 _ACEOF
25897 cat confdefs.h >>conftest.$ac_ext
25898 cat >>conftest.$ac_ext <<_ACEOF
25899 /* end confdefs.h. */
25900
25901 /* Override any gcc2 internal prototype to avoid an error. */
25902 #ifdef __cplusplus
25903 extern "C"
25904 #endif
25905 /* We use char because int might match the return type of a gcc2
25906 builtin and then its argument prototype would still apply. */
25907 char libiconv_open ();
25908 int
25909 main ()
25910 {
25911 libiconv_open ();
25912 ;
25913 return 0;
25914 }
25915 _ACEOF
25916 rm -f conftest.$ac_objext conftest$ac_exeext
25917 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25918 (eval $ac_link) 2>conftest.er1
25919 ac_status=$?
25920 grep -v '^ *+' conftest.er1 >conftest.err
25921 rm -f conftest.er1
25922 cat conftest.err >&5
25923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25924 (exit $ac_status); } &&
25925 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25926 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25927 (eval $ac_try) 2>&5
25928 ac_status=$?
25929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25930 (exit $ac_status); }; } &&
25931 { ac_try='test -s conftest$ac_exeext'
25932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25933 (eval $ac_try) 2>&5
25934 ac_status=$?
25935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25936 (exit $ac_status); }; }; then
25937 ac_cv_lib_iconv_libiconv_open=yes
25938 else
25939 echo "$as_me: failed program was:" >&5
25940 sed 's/^/| /' conftest.$ac_ext >&5
25941
25942 ac_cv_lib_iconv_libiconv_open=no
25943 fi
25944 rm -f conftest.err conftest.$ac_objext \
25945 conftest$ac_exeext conftest.$ac_ext
25946 LIBS=$ac_check_lib_save_LIBS
25947 fi
25948 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv_open" >&5
25949 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6
25950 if test $ac_cv_lib_iconv_libiconv_open = yes; then
25951 with_libiconv=gnu; found_iconv=yes
25952 fi
25953
25954 fi
25955 # Check if we have a iconv in -liconv, possibly from vendor
25956 if test $found_iconv = "no"; then
25957 echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
25958 echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6
25959 if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
25960 echo $ECHO_N "(cached) $ECHO_C" >&6
25961 else
25962 ac_check_lib_save_LIBS=$LIBS
25963 LIBS="-liconv $LIBS"
25964 cat >conftest.$ac_ext <<_ACEOF
25965 /* confdefs.h. */
25966 _ACEOF
25967 cat confdefs.h >>conftest.$ac_ext
25968 cat >>conftest.$ac_ext <<_ACEOF
25969 /* end confdefs.h. */
25970
25971 /* Override any gcc2 internal prototype to avoid an error. */
25972 #ifdef __cplusplus
25973 extern "C"
25974 #endif
25975 /* We use char because int might match the return type of a gcc2
25976 builtin and then its argument prototype would still apply. */
25977 char iconv_open ();
25978 int
25979 main ()
25980 {
25981 iconv_open ();
25982 ;
25983 return 0;
25984 }
25985 _ACEOF
25986 rm -f conftest.$ac_objext conftest$ac_exeext
25987 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
25988 (eval $ac_link) 2>conftest.er1
25989 ac_status=$?
25990 grep -v '^ *+' conftest.er1 >conftest.err
25991 rm -f conftest.er1
25992 cat conftest.err >&5
25993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25994 (exit $ac_status); } &&
25995 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25997 (eval $ac_try) 2>&5
25998 ac_status=$?
25999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26000 (exit $ac_status); }; } &&
26001 { ac_try='test -s conftest$ac_exeext'
26002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26003 (eval $ac_try) 2>&5
26004 ac_status=$?
26005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26006 (exit $ac_status); }; }; then
26007 ac_cv_lib_iconv_iconv_open=yes
26008 else
26009 echo "$as_me: failed program was:" >&5
26010 sed 's/^/| /' conftest.$ac_ext >&5
26011
26012 ac_cv_lib_iconv_iconv_open=no
26013 fi
26014 rm -f conftest.err conftest.$ac_objext \
26015 conftest$ac_exeext conftest.$ac_ext
26016 LIBS=$ac_check_lib_save_LIBS
26017 fi
26018 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
26019 echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6
26020 if test $ac_cv_lib_iconv_iconv_open = yes; then
26021 with_libiconv=native; found_iconv=yes
26022 fi
26023
26024 fi
26025 ;;
26026 no)
26027 echo "$as_me:$LINENO: checking for iconv_open" >&5
26028 echo $ECHO_N "checking for iconv_open... $ECHO_C" >&6
26029 if test "${ac_cv_func_iconv_open+set}" = set; then
26030 echo $ECHO_N "(cached) $ECHO_C" >&6
26031 else
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 /* Define iconv_open to an innocuous variant, in case <limits.h> declares iconv_open.
26039 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26040 #define iconv_open innocuous_iconv_open
26041
26042 /* System header to define __stub macros and hopefully few prototypes,
26043 which can conflict with char iconv_open (); below.
26044 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26045 <limits.h> exists even on freestanding compilers. */
26046
26047 #ifdef __STDC__
26048 # include <limits.h>
26049 #else
26050 # include <assert.h>
26051 #endif
26052
26053 #undef iconv_open
26054
26055 /* Override any gcc2 internal prototype to avoid an error. */
26056 #ifdef __cplusplus
26057 extern "C"
26058 {
26059 #endif
26060 /* We use char because int might match the return type of a gcc2
26061 builtin and then its argument prototype would still apply. */
26062 char iconv_open ();
26063 /* The GNU C library defines this for functions which it implements
26064 to always fail with ENOSYS. Some functions are actually named
26065 something starting with __ and the normal name is an alias. */
26066 #if defined (__stub_iconv_open) || defined (__stub___iconv_open)
26067 choke me
26068 #else
26069 char (*f) () = iconv_open;
26070 #endif
26071 #ifdef __cplusplus
26072 }
26073 #endif
26074
26075 int
26076 main ()
26077 {
26078 return f != iconv_open;
26079 ;
26080 return 0;
26081 }
26082 _ACEOF
26083 rm -f conftest.$ac_objext conftest$ac_exeext
26084 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26085 (eval $ac_link) 2>conftest.er1
26086 ac_status=$?
26087 grep -v '^ *+' conftest.er1 >conftest.err
26088 rm -f conftest.er1
26089 cat conftest.err >&5
26090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26091 (exit $ac_status); } &&
26092 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26093 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26094 (eval $ac_try) 2>&5
26095 ac_status=$?
26096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26097 (exit $ac_status); }; } &&
26098 { ac_try='test -s conftest$ac_exeext'
26099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26100 (eval $ac_try) 2>&5
26101 ac_status=$?
26102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26103 (exit $ac_status); }; }; then
26104 ac_cv_func_iconv_open=yes
26105 else
26106 echo "$as_me: failed program was:" >&5
26107 sed 's/^/| /' conftest.$ac_ext >&5
26108
26109 ac_cv_func_iconv_open=no
26110 fi
26111 rm -f conftest.err conftest.$ac_objext \
26112 conftest$ac_exeext conftest.$ac_ext
26113 fi
26114 echo "$as_me:$LINENO: result: $ac_cv_func_iconv_open" >&5
26115 echo "${ECHO_T}$ac_cv_func_iconv_open" >&6
26116 if test $ac_cv_func_iconv_open = yes; then
26117 with_libiconv=no; found_iconv=yes
26118 fi
26119
26120 ;;
26121 gnu|yes)
26122 echo "$as_me:$LINENO: checking for libiconv_open in -liconv" >&5
26123 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6
26124 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
26125 echo $ECHO_N "(cached) $ECHO_C" >&6
26126 else
26127 ac_check_lib_save_LIBS=$LIBS
26128 LIBS="-liconv $LIBS"
26129 cat >conftest.$ac_ext <<_ACEOF
26130 /* confdefs.h. */
26131 _ACEOF
26132 cat confdefs.h >>conftest.$ac_ext
26133 cat >>conftest.$ac_ext <<_ACEOF
26134 /* end confdefs.h. */
26135
26136 /* Override any gcc2 internal prototype to avoid an error. */
26137 #ifdef __cplusplus
26138 extern "C"
26139 #endif
26140 /* We use char because int might match the return type of a gcc2
26141 builtin and then its argument prototype would still apply. */
26142 char libiconv_open ();
26143 int
26144 main ()
26145 {
26146 libiconv_open ();
26147 ;
26148 return 0;
26149 }
26150 _ACEOF
26151 rm -f conftest.$ac_objext conftest$ac_exeext
26152 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26153 (eval $ac_link) 2>conftest.er1
26154 ac_status=$?
26155 grep -v '^ *+' conftest.er1 >conftest.err
26156 rm -f conftest.er1
26157 cat conftest.err >&5
26158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26159 (exit $ac_status); } &&
26160 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26161 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26162 (eval $ac_try) 2>&5
26163 ac_status=$?
26164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26165 (exit $ac_status); }; } &&
26166 { ac_try='test -s conftest$ac_exeext'
26167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26168 (eval $ac_try) 2>&5
26169 ac_status=$?
26170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26171 (exit $ac_status); }; }; then
26172 ac_cv_lib_iconv_libiconv_open=yes
26173 else
26174 echo "$as_me: failed program was:" >&5
26175 sed 's/^/| /' conftest.$ac_ext >&5
26176
26177 ac_cv_lib_iconv_libiconv_open=no
26178 fi
26179 rm -f conftest.err conftest.$ac_objext \
26180 conftest$ac_exeext conftest.$ac_ext
26181 LIBS=$ac_check_lib_save_LIBS
26182 fi
26183 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv_open" >&5
26184 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6
26185 if test $ac_cv_lib_iconv_libiconv_open = yes; then
26186 with_libiconv=gnu; found_iconv=yes
26187 fi
26188
26189 ;;
26190 native)
26191 echo "native"
26192 echo $LDFLAGS
26193 # Check if we have GNU libiconv
26194 if test $found_iconv = "no"; then
26195 echo "$as_me:$LINENO: checking for libiconv_open in -liconv" >&5
26196 echo $ECHO_N "checking for libiconv_open in -liconv... $ECHO_C" >&6
26197 if test "${ac_cv_lib_iconv_libiconv_open+set}" = set; then
26198 echo $ECHO_N "(cached) $ECHO_C" >&6
26199 else
26200 ac_check_lib_save_LIBS=$LIBS
26201 LIBS="-liconv $LIBS"
26202 cat >conftest.$ac_ext <<_ACEOF
26203 /* confdefs.h. */
26204 _ACEOF
26205 cat confdefs.h >>conftest.$ac_ext
26206 cat >>conftest.$ac_ext <<_ACEOF
26207 /* end confdefs.h. */
26208
26209 /* Override any gcc2 internal prototype to avoid an error. */
26210 #ifdef __cplusplus
26211 extern "C"
26212 #endif
26213 /* We use char because int might match the return type of a gcc2
26214 builtin and then its argument prototype would still apply. */
26215 char libiconv_open ();
26216 int
26217 main ()
26218 {
26219 libiconv_open ();
26220 ;
26221 return 0;
26222 }
26223 _ACEOF
26224 rm -f conftest.$ac_objext conftest$ac_exeext
26225 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26226 (eval $ac_link) 2>conftest.er1
26227 ac_status=$?
26228 grep -v '^ *+' conftest.er1 >conftest.err
26229 rm -f conftest.er1
26230 cat conftest.err >&5
26231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26232 (exit $ac_status); } &&
26233 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26235 (eval $ac_try) 2>&5
26236 ac_status=$?
26237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26238 (exit $ac_status); }; } &&
26239 { ac_try='test -s conftest$ac_exeext'
26240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26241 (eval $ac_try) 2>&5
26242 ac_status=$?
26243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26244 (exit $ac_status); }; }; then
26245 ac_cv_lib_iconv_libiconv_open=yes
26246 else
26247 echo "$as_me: failed program was:" >&5
26248 sed 's/^/| /' conftest.$ac_ext >&5
26249
26250 ac_cv_lib_iconv_libiconv_open=no
26251 fi
26252 rm -f conftest.err conftest.$ac_objext \
26253 conftest$ac_exeext conftest.$ac_ext
26254 LIBS=$ac_check_lib_save_LIBS
26255 fi
26256 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_libiconv_open" >&5
26257 echo "${ECHO_T}$ac_cv_lib_iconv_libiconv_open" >&6
26258 if test $ac_cv_lib_iconv_libiconv_open = yes; then
26259 with_libiconv=gnu; found_iconv=yes
26260 fi
26261
26262 fi
26263 # Check if we have a iconv in -liconv, possibly from vendor
26264 if test $found_iconv = "no"; then
26265 echo "$as_me:$LINENO: checking for iconv_open in -liconv" >&5
26266 echo $ECHO_N "checking for iconv_open in -liconv... $ECHO_C" >&6
26267 if test "${ac_cv_lib_iconv_iconv_open+set}" = set; then
26268 echo $ECHO_N "(cached) $ECHO_C" >&6
26269 else
26270 ac_check_lib_save_LIBS=$LIBS
26271 LIBS="-liconv $LIBS"
26272 cat >conftest.$ac_ext <<_ACEOF
26273 /* confdefs.h. */
26274 _ACEOF
26275 cat confdefs.h >>conftest.$ac_ext
26276 cat >>conftest.$ac_ext <<_ACEOF
26277 /* end confdefs.h. */
26278
26279 /* Override any gcc2 internal prototype to avoid an error. */
26280 #ifdef __cplusplus
26281 extern "C"
26282 #endif
26283 /* We use char because int might match the return type of a gcc2
26284 builtin and then its argument prototype would still apply. */
26285 char iconv_open ();
26286 int
26287 main ()
26288 {
26289 iconv_open ();
26290 ;
26291 return 0;
26292 }
26293 _ACEOF
26294 rm -f conftest.$ac_objext conftest$ac_exeext
26295 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26296 (eval $ac_link) 2>conftest.er1
26297 ac_status=$?
26298 grep -v '^ *+' conftest.er1 >conftest.err
26299 rm -f conftest.er1
26300 cat conftest.err >&5
26301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26302 (exit $ac_status); } &&
26303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26305 (eval $ac_try) 2>&5
26306 ac_status=$?
26307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26308 (exit $ac_status); }; } &&
26309 { ac_try='test -s conftest$ac_exeext'
26310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26311 (eval $ac_try) 2>&5
26312 ac_status=$?
26313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26314 (exit $ac_status); }; }; then
26315 ac_cv_lib_iconv_iconv_open=yes
26316 else
26317 echo "$as_me: failed program was:" >&5
26318 sed 's/^/| /' conftest.$ac_ext >&5
26319
26320 ac_cv_lib_iconv_iconv_open=no
26321 fi
26322 rm -f conftest.err conftest.$ac_objext \
26323 conftest$ac_exeext conftest.$ac_ext
26324 LIBS=$ac_check_lib_save_LIBS
26325 fi
26326 echo "$as_me:$LINENO: result: $ac_cv_lib_iconv_iconv_open" >&5
26327 echo "${ECHO_T}$ac_cv_lib_iconv_iconv_open" >&6
26328 if test $ac_cv_lib_iconv_iconv_open = yes; then
26329 with_libiconv=native; found_iconv=yes
26330 fi
26331
26332 fi
26333 ;;
26334 esac
26335
26336 if test "x$found_iconv" = "xno" ; then
26337 { { echo "$as_me:$LINENO: error: *** No iconv() implementation found in C library or libiconv" >&5
26338 echo "$as_me: error: *** No iconv() implementation found in C library or libiconv" >&2;}
26339 { (exit 1); exit 1; }; }
26340 fi
26341
26342 if test x$with_libiconv != xno ; then
26343 case " $INTLLIBS " in
26344 *[\ \ ]-liconv[\ \ ]*) ;;
26345 *) ICONV_LIBS="-liconv" ;;
26346 esac
26347 fi
26348
26349 case $with_libiconv in
26350 gnu)
26351
26352 cat >>confdefs.h <<\_ACEOF
26353 #define USE_LIBICONV_GNU 1
26354 _ACEOF
26355
26356 ;;
26357 native)
26358
26359 cat >>confdefs.h <<\_ACEOF
26360 #define USE_LIBICONV_NATIVE 1
26361 _ACEOF
26362
26363 ;;
26364 esac
26365
26366 echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
26367 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6
26368 if test "${am_cv_langinfo_codeset+set}" = set; then
26369 echo $ECHO_N "(cached) $ECHO_C" >&6
26370 else
26371 cat >conftest.$ac_ext <<_ACEOF
26372 /* confdefs.h. */
26373 _ACEOF
26374 cat confdefs.h >>conftest.$ac_ext
26375 cat >>conftest.$ac_ext <<_ACEOF
26376 /* end confdefs.h. */
26377 #include <langinfo.h>
26378 int
26379 main ()
26380 {
26381 char* cs = nl_langinfo(CODESET);
26382 ;
26383 return 0;
26384 }
26385 _ACEOF
26386 rm -f conftest.$ac_objext conftest$ac_exeext
26387 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26388 (eval $ac_link) 2>conftest.er1
26389 ac_status=$?
26390 grep -v '^ *+' conftest.er1 >conftest.err
26391 rm -f conftest.er1
26392 cat conftest.err >&5
26393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26394 (exit $ac_status); } &&
26395 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26397 (eval $ac_try) 2>&5
26398 ac_status=$?
26399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26400 (exit $ac_status); }; } &&
26401 { ac_try='test -s conftest$ac_exeext'
26402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26403 (eval $ac_try) 2>&5
26404 ac_status=$?
26405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26406 (exit $ac_status); }; }; then
26407 am_cv_langinfo_codeset=yes
26408 else
26409 echo "$as_me: failed program was:" >&5
26410 sed 's/^/| /' conftest.$ac_ext >&5
26411
26412 am_cv_langinfo_codeset=no
26413 fi
26414 rm -f conftest.err conftest.$ac_objext \
26415 conftest$ac_exeext conftest.$ac_ext
26416
26417 fi
26418 echo "$as_me:$LINENO: result: $am_cv_langinfo_codeset" >&5
26419 echo "${ECHO_T}$am_cv_langinfo_codeset" >&6
26420 if test $am_cv_langinfo_codeset = yes; then
26421
26422 cat >>confdefs.h <<\_ACEOF
26423 #define HAVE_LANGINFO_CODESET 1
26424 _ACEOF
26425
26426 fi
26427
26428
26429
26430
26431 # Check whether --with-id3tag-header or --without-id3tag-header was given.
26432 if test "${with_id3tag_header+set}" = set; then
26433 withval="$with_id3tag_header"
26434 CFLAGS="-I$withval ${CFLAGS}"
26435
26436 fi;
26437
26438
26439 # Check whether --with-id3tag-library or --without-id3tag-library was given.
26440 if test "${with_id3tag_library+set}" = set; then
26441 withval="$with_id3tag_library"
26442 LDFLAGS="-L$withval ${LDFLAGS}"
26443
26444 fi;
26445
26446 if test "${ac_cv_header_id3tag_h+set}" = set; then
26447 echo "$as_me:$LINENO: checking for id3tag.h" >&5
26448 echo $ECHO_N "checking for id3tag.h... $ECHO_C" >&6
26449 if test "${ac_cv_header_id3tag_h+set}" = set; then
26450 echo $ECHO_N "(cached) $ECHO_C" >&6
26451 fi
26452 echo "$as_me:$LINENO: result: $ac_cv_header_id3tag_h" >&5
26453 echo "${ECHO_T}$ac_cv_header_id3tag_h" >&6
26454 else
26455 # Is the header compilable?
26456 echo "$as_me:$LINENO: checking id3tag.h usability" >&5
26457 echo $ECHO_N "checking id3tag.h usability... $ECHO_C" >&6
26458 cat >conftest.$ac_ext <<_ACEOF
26459 /* confdefs.h. */
26460 _ACEOF
26461 cat confdefs.h >>conftest.$ac_ext
26462 cat >>conftest.$ac_ext <<_ACEOF
26463 /* end confdefs.h. */
26464 $ac_includes_default
26465 #include <id3tag.h>
26466 _ACEOF
26467 rm -f conftest.$ac_objext
26468 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26469 (eval $ac_compile) 2>conftest.er1
26470 ac_status=$?
26471 grep -v '^ *+' conftest.er1 >conftest.err
26472 rm -f conftest.er1
26473 cat conftest.err >&5
26474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26475 (exit $ac_status); } &&
26476 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26477 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26478 (eval $ac_try) 2>&5
26479 ac_status=$?
26480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26481 (exit $ac_status); }; } &&
26482 { ac_try='test -s conftest.$ac_objext'
26483 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26484 (eval $ac_try) 2>&5
26485 ac_status=$?
26486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26487 (exit $ac_status); }; }; then
26488 ac_header_compiler=yes
26489 else
26490 echo "$as_me: failed program was:" >&5
26491 sed 's/^/| /' conftest.$ac_ext >&5
26492
26493 ac_header_compiler=no
26494 fi
26495 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26496 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26497 echo "${ECHO_T}$ac_header_compiler" >&6
26498
26499 # Is the header present?
26500 echo "$as_me:$LINENO: checking id3tag.h presence" >&5
26501 echo $ECHO_N "checking id3tag.h presence... $ECHO_C" >&6
26502 cat >conftest.$ac_ext <<_ACEOF
26503 /* confdefs.h. */
26504 _ACEOF
26505 cat confdefs.h >>conftest.$ac_ext
26506 cat >>conftest.$ac_ext <<_ACEOF
26507 /* end confdefs.h. */
26508 #include <id3tag.h>
26509 _ACEOF
26510 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26511 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26512 ac_status=$?
26513 grep -v '^ *+' conftest.er1 >conftest.err
26514 rm -f conftest.er1
26515 cat conftest.err >&5
26516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26517 (exit $ac_status); } >/dev/null; then
26518 if test -s conftest.err; then
26519 ac_cpp_err=$ac_c_preproc_warn_flag
26520 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26521 else
26522 ac_cpp_err=
26523 fi
26524 else
26525 ac_cpp_err=yes
26526 fi
26527 if test -z "$ac_cpp_err"; then
26528 ac_header_preproc=yes
26529 else
26530 echo "$as_me: failed program was:" >&5
26531 sed 's/^/| /' conftest.$ac_ext >&5
26532
26533 ac_header_preproc=no
26534 fi
26535 rm -f conftest.err conftest.$ac_ext
26536 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26537 echo "${ECHO_T}$ac_header_preproc" >&6
26538
26539 # So? What about this header?
26540 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26541 yes:no: )
26542 { echo "$as_me:$LINENO: WARNING: id3tag.h: accepted by the compiler, rejected by the preprocessor!" >&5
26543 echo "$as_me: WARNING: id3tag.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26544 { echo "$as_me:$LINENO: WARNING: id3tag.h: proceeding with the compiler's result" >&5
26545 echo "$as_me: WARNING: id3tag.h: proceeding with the compiler's result" >&2;}
26546 ac_header_preproc=yes
26547 ;;
26548 no:yes:* )
26549 { echo "$as_me:$LINENO: WARNING: id3tag.h: present but cannot be compiled" >&5
26550 echo "$as_me: WARNING: id3tag.h: present but cannot be compiled" >&2;}
26551 { echo "$as_me:$LINENO: WARNING: id3tag.h: check for missing prerequisite headers?" >&5
26552 echo "$as_me: WARNING: id3tag.h: check for missing prerequisite headers?" >&2;}
26553 { echo "$as_me:$LINENO: WARNING: id3tag.h: see the Autoconf documentation" >&5
26554 echo "$as_me: WARNING: id3tag.h: see the Autoconf documentation" >&2;}
26555 { echo "$as_me:$LINENO: WARNING: id3tag.h: section \"Present But Cannot Be Compiled\"" >&5
26556 echo "$as_me: WARNING: id3tag.h: section \"Present But Cannot Be Compiled\"" >&2;}
26557 { echo "$as_me:$LINENO: WARNING: id3tag.h: proceeding with the preprocessor's result" >&5
26558 echo "$as_me: WARNING: id3tag.h: proceeding with the preprocessor's result" >&2;}
26559 { echo "$as_me:$LINENO: WARNING: id3tag.h: in the future, the compiler will take precedence" >&5
26560 echo "$as_me: WARNING: id3tag.h: in the future, the compiler will take precedence" >&2;}
26561 (
26562 cat <<\_ASBOX
26563 ## ------------------------------------------ ##
26564 ## Report this to the AC_PACKAGE_NAME lists. ##
26565 ## ------------------------------------------ ##
26566 _ASBOX
26567 ) |
26568 sed "s/^/$as_me: WARNING: /" >&2
26569 ;;
26570 esac
26571 echo "$as_me:$LINENO: checking for id3tag.h" >&5
26572 echo $ECHO_N "checking for id3tag.h... $ECHO_C" >&6
26573 if test "${ac_cv_header_id3tag_h+set}" = set; then
26574 echo $ECHO_N "(cached) $ECHO_C" >&6
26575 else
26576 ac_cv_header_id3tag_h=$ac_header_preproc
26577 fi
26578 echo "$as_me:$LINENO: result: $ac_cv_header_id3tag_h" >&5
26579 echo "${ECHO_T}$ac_cv_header_id3tag_h" >&6
26580
26581 fi
26582 if test $ac_cv_header_id3tag_h = yes; then
26583 :
26584 else
26585 { { echo "$as_me:$LINENO: error: id3tag header not found!" >&5
26586 echo "$as_me: error: id3tag header not found!" >&2;}
26587 { (exit 1); exit 1; }; }
26588
26589 fi
26590
26591
26592 echo "$as_me:$LINENO: checking for id3_file_fdopen in -lid3tag" >&5
26593 echo $ECHO_N "checking for id3_file_fdopen in -lid3tag... $ECHO_C" >&6
26594 if test "${ac_cv_lib_id3tag_id3_file_fdopen+set}" = set; then
26595 echo $ECHO_N "(cached) $ECHO_C" >&6
26596 else
26597 ac_check_lib_save_LIBS=$LIBS
26598 LIBS="-lid3tag $LIBS"
26599 cat >conftest.$ac_ext <<_ACEOF
26600 /* confdefs.h. */
26601 _ACEOF
26602 cat confdefs.h >>conftest.$ac_ext
26603 cat >>conftest.$ac_ext <<_ACEOF
26604 /* end confdefs.h. */
26605
26606 /* Override any gcc2 internal prototype to avoid an error. */
26607 #ifdef __cplusplus
26608 extern "C"
26609 #endif
26610 /* We use char because int might match the return type of a gcc2
26611 builtin and then its argument prototype would still apply. */
26612 char id3_file_fdopen ();
26613 int
26614 main ()
26615 {
26616 id3_file_fdopen ();
26617 ;
26618 return 0;
26619 }
26620 _ACEOF
26621 rm -f conftest.$ac_objext conftest$ac_exeext
26622 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26623 (eval $ac_link) 2>conftest.er1
26624 ac_status=$?
26625 grep -v '^ *+' conftest.er1 >conftest.err
26626 rm -f conftest.er1
26627 cat conftest.err >&5
26628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26629 (exit $ac_status); } &&
26630 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26632 (eval $ac_try) 2>&5
26633 ac_status=$?
26634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26635 (exit $ac_status); }; } &&
26636 { ac_try='test -s conftest$ac_exeext'
26637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26638 (eval $ac_try) 2>&5
26639 ac_status=$?
26640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26641 (exit $ac_status); }; }; then
26642 ac_cv_lib_id3tag_id3_file_fdopen=yes
26643 else
26644 echo "$as_me: failed program was:" >&5
26645 sed 's/^/| /' conftest.$ac_ext >&5
26646
26647 ac_cv_lib_id3tag_id3_file_fdopen=no
26648 fi
26649 rm -f conftest.err conftest.$ac_objext \
26650 conftest$ac_exeext conftest.$ac_ext
26651 LIBS=$ac_check_lib_save_LIBS
26652 fi
26653 echo "$as_me:$LINENO: result: $ac_cv_lib_id3tag_id3_file_fdopen" >&5
26654 echo "${ECHO_T}$ac_cv_lib_id3tag_id3_file_fdopen" >&6
26655 if test $ac_cv_lib_id3tag_id3_file_fdopen = yes; then
26656 ID3TAG_LIBS="-lid3tag"
26657 else
26658 { { echo "$as_me:$LINENO: error: id3tag library is not found!" >&5
26659 echo "$as_me: error: id3tag library is not found!" >&2;}
26660 { (exit 1); exit 1; }; }
26661
26662 fi
26663
26664 echo "$as_me:$LINENO: checking for id3_file_gettag in -lid3tag" >&5
26665 echo $ECHO_N "checking for id3_file_gettag in -lid3tag... $ECHO_C" >&6
26666 if test "${ac_cv_lib_id3tag_id3_file_gettag+set}" = set; then
26667 echo $ECHO_N "(cached) $ECHO_C" >&6
26668 else
26669 ac_check_lib_save_LIBS=$LIBS
26670 LIBS="-lid3tag $LIBS"
26671 cat >conftest.$ac_ext <<_ACEOF
26672 /* confdefs.h. */
26673 _ACEOF
26674 cat confdefs.h >>conftest.$ac_ext
26675 cat >>conftest.$ac_ext <<_ACEOF
26676 /* end confdefs.h. */
26677
26678 /* Override any gcc2 internal prototype to avoid an error. */
26679 #ifdef __cplusplus
26680 extern "C"
26681 #endif
26682 /* We use char because int might match the return type of a gcc2
26683 builtin and then its argument prototype would still apply. */
26684 char id3_file_gettag ();
26685 int
26686 main ()
26687 {
26688 id3_file_gettag ();
26689 ;
26690 return 0;
26691 }
26692 _ACEOF
26693 rm -f conftest.$ac_objext conftest$ac_exeext
26694 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26695 (eval $ac_link) 2>conftest.er1
26696 ac_status=$?
26697 grep -v '^ *+' conftest.er1 >conftest.err
26698 rm -f conftest.er1
26699 cat conftest.err >&5
26700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26701 (exit $ac_status); } &&
26702 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26704 (eval $ac_try) 2>&5
26705 ac_status=$?
26706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26707 (exit $ac_status); }; } &&
26708 { ac_try='test -s conftest$ac_exeext'
26709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26710 (eval $ac_try) 2>&5
26711 ac_status=$?
26712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26713 (exit $ac_status); }; }; then
26714 ac_cv_lib_id3tag_id3_file_gettag=yes
26715 else
26716 echo "$as_me: failed program was:" >&5
26717 sed 's/^/| /' conftest.$ac_ext >&5
26718
26719 ac_cv_lib_id3tag_id3_file_gettag=no
26720 fi
26721 rm -f conftest.err conftest.$ac_objext \
26722 conftest$ac_exeext conftest.$ac_ext
26723 LIBS=$ac_check_lib_save_LIBS
26724 fi
26725 echo "$as_me:$LINENO: result: $ac_cv_lib_id3tag_id3_file_gettag" >&5
26726 echo "${ECHO_T}$ac_cv_lib_id3tag_id3_file_gettag" >&6
26727 if test $ac_cv_lib_id3tag_id3_file_gettag = yes; then
26728 CFLAGS="-DHAVE_LIBID3TAG_GETTAG ${CFLAGS}"
26729
26730 fi
26731
26732
26733 with_regex=no
26734
26735
26736
26737 for ac_func in regcomp regexec regfree
26738 do
26739 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
26740 echo "$as_me:$LINENO: checking for $ac_func" >&5
26741 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
26742 if eval "test \"\${$as_ac_var+set}\" = set"; then
26743 echo $ECHO_N "(cached) $ECHO_C" >&6
26744 else
26745 cat >conftest.$ac_ext <<_ACEOF
26746 /* confdefs.h. */
26747 _ACEOF
26748 cat confdefs.h >>conftest.$ac_ext
26749 cat >>conftest.$ac_ext <<_ACEOF
26750 /* end confdefs.h. */
26751 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
26752 For example, HP-UX 11i <limits.h> declares gettimeofday. */
26753 #define $ac_func innocuous_$ac_func
26754
26755 /* System header to define __stub macros and hopefully few prototypes,
26756 which can conflict with char $ac_func (); below.
26757 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
26758 <limits.h> exists even on freestanding compilers. */
26759
26760 #ifdef __STDC__
26761 # include <limits.h>
26762 #else
26763 # include <assert.h>
26764 #endif
26765
26766 #undef $ac_func
26767
26768 /* Override any gcc2 internal prototype to avoid an error. */
26769 #ifdef __cplusplus
26770 extern "C"
26771 {
26772 #endif
26773 /* We use char because int might match the return type of a gcc2
26774 builtin and then its argument prototype would still apply. */
26775 char $ac_func ();
26776 /* The GNU C library defines this for functions which it implements
26777 to always fail with ENOSYS. Some functions are actually named
26778 something starting with __ and the normal name is an alias. */
26779 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
26780 choke me
26781 #else
26782 char (*f) () = $ac_func;
26783 #endif
26784 #ifdef __cplusplus
26785 }
26786 #endif
26787
26788 int
26789 main ()
26790 {
26791 return f != $ac_func;
26792 ;
26793 return 0;
26794 }
26795 _ACEOF
26796 rm -f conftest.$ac_objext conftest$ac_exeext
26797 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26798 (eval $ac_link) 2>conftest.er1
26799 ac_status=$?
26800 grep -v '^ *+' conftest.er1 >conftest.err
26801 rm -f conftest.er1
26802 cat conftest.err >&5
26803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26804 (exit $ac_status); } &&
26805 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26807 (eval $ac_try) 2>&5
26808 ac_status=$?
26809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26810 (exit $ac_status); }; } &&
26811 { ac_try='test -s conftest$ac_exeext'
26812 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26813 (eval $ac_try) 2>&5
26814 ac_status=$?
26815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26816 (exit $ac_status); }; }; then
26817 eval "$as_ac_var=yes"
26818 else
26819 echo "$as_me: failed program was:" >&5
26820 sed 's/^/| /' conftest.$ac_ext >&5
26821
26822 eval "$as_ac_var=no"
26823 fi
26824 rm -f conftest.err conftest.$ac_objext \
26825 conftest$ac_exeext conftest.$ac_ext
26826 fi
26827 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
26828 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
26829 if test `eval echo '${'$as_ac_var'}'` = yes; then
26830 cat >>confdefs.h <<_ACEOF
26831 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
26832 _ACEOF
26833 with_regex=posix
26834
26835 fi
26836 done
26837
26838
26839 if test "${ac_cv_header_rxposix_h+set}" = set; then
26840 echo "$as_me:$LINENO: checking for rxposix.h" >&5
26841 echo $ECHO_N "checking for rxposix.h... $ECHO_C" >&6
26842 if test "${ac_cv_header_rxposix_h+set}" = set; then
26843 echo $ECHO_N "(cached) $ECHO_C" >&6
26844 fi
26845 echo "$as_me:$LINENO: result: $ac_cv_header_rxposix_h" >&5
26846 echo "${ECHO_T}$ac_cv_header_rxposix_h" >&6
26847 else
26848 # Is the header compilable?
26849 echo "$as_me:$LINENO: checking rxposix.h usability" >&5
26850 echo $ECHO_N "checking rxposix.h usability... $ECHO_C" >&6
26851 cat >conftest.$ac_ext <<_ACEOF
26852 /* confdefs.h. */
26853 _ACEOF
26854 cat confdefs.h >>conftest.$ac_ext
26855 cat >>conftest.$ac_ext <<_ACEOF
26856 /* end confdefs.h. */
26857 $ac_includes_default
26858 #include <rxposix.h>
26859 _ACEOF
26860 rm -f conftest.$ac_objext
26861 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26862 (eval $ac_compile) 2>conftest.er1
26863 ac_status=$?
26864 grep -v '^ *+' conftest.er1 >conftest.err
26865 rm -f conftest.er1
26866 cat conftest.err >&5
26867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26868 (exit $ac_status); } &&
26869 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
26870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26871 (eval $ac_try) 2>&5
26872 ac_status=$?
26873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26874 (exit $ac_status); }; } &&
26875 { ac_try='test -s conftest.$ac_objext'
26876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26877 (eval $ac_try) 2>&5
26878 ac_status=$?
26879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26880 (exit $ac_status); }; }; then
26881 ac_header_compiler=yes
26882 else
26883 echo "$as_me: failed program was:" >&5
26884 sed 's/^/| /' conftest.$ac_ext >&5
26885
26886 ac_header_compiler=no
26887 fi
26888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26889 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
26890 echo "${ECHO_T}$ac_header_compiler" >&6
26891
26892 # Is the header present?
26893 echo "$as_me:$LINENO: checking rxposix.h presence" >&5
26894 echo $ECHO_N "checking rxposix.h presence... $ECHO_C" >&6
26895 cat >conftest.$ac_ext <<_ACEOF
26896 /* confdefs.h. */
26897 _ACEOF
26898 cat confdefs.h >>conftest.$ac_ext
26899 cat >>conftest.$ac_ext <<_ACEOF
26900 /* end confdefs.h. */
26901 #include <rxposix.h>
26902 _ACEOF
26903 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
26904 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
26905 ac_status=$?
26906 grep -v '^ *+' conftest.er1 >conftest.err
26907 rm -f conftest.er1
26908 cat conftest.err >&5
26909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26910 (exit $ac_status); } >/dev/null; then
26911 if test -s conftest.err; then
26912 ac_cpp_err=$ac_c_preproc_warn_flag
26913 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
26914 else
26915 ac_cpp_err=
26916 fi
26917 else
26918 ac_cpp_err=yes
26919 fi
26920 if test -z "$ac_cpp_err"; then
26921 ac_header_preproc=yes
26922 else
26923 echo "$as_me: failed program was:" >&5
26924 sed 's/^/| /' conftest.$ac_ext >&5
26925
26926 ac_header_preproc=no
26927 fi
26928 rm -f conftest.err conftest.$ac_ext
26929 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
26930 echo "${ECHO_T}$ac_header_preproc" >&6
26931
26932 # So? What about this header?
26933 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
26934 yes:no: )
26935 { echo "$as_me:$LINENO: WARNING: rxposix.h: accepted by the compiler, rejected by the preprocessor!" >&5
26936 echo "$as_me: WARNING: rxposix.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
26937 { echo "$as_me:$LINENO: WARNING: rxposix.h: proceeding with the compiler's result" >&5
26938 echo "$as_me: WARNING: rxposix.h: proceeding with the compiler's result" >&2;}
26939 ac_header_preproc=yes
26940 ;;
26941 no:yes:* )
26942 { echo "$as_me:$LINENO: WARNING: rxposix.h: present but cannot be compiled" >&5
26943 echo "$as_me: WARNING: rxposix.h: present but cannot be compiled" >&2;}
26944 { echo "$as_me:$LINENO: WARNING: rxposix.h: check for missing prerequisite headers?" >&5
26945 echo "$as_me: WARNING: rxposix.h: check for missing prerequisite headers?" >&2;}
26946 { echo "$as_me:$LINENO: WARNING: rxposix.h: see the Autoconf documentation" >&5
26947 echo "$as_me: WARNING: rxposix.h: see the Autoconf documentation" >&2;}
26948 { echo "$as_me:$LINENO: WARNING: rxposix.h: section \"Present But Cannot Be Compiled\"" >&5
26949 echo "$as_me: WARNING: rxposix.h: section \"Present But Cannot Be Compiled\"" >&2;}
26950 { echo "$as_me:$LINENO: WARNING: rxposix.h: proceeding with the preprocessor's result" >&5
26951 echo "$as_me: WARNING: rxposix.h: proceeding with the preprocessor's result" >&2;}
26952 { echo "$as_me:$LINENO: WARNING: rxposix.h: in the future, the compiler will take precedence" >&5
26953 echo "$as_me: WARNING: rxposix.h: in the future, the compiler will take precedence" >&2;}
26954 (
26955 cat <<\_ASBOX
26956 ## ------------------------------------------ ##
26957 ## Report this to the AC_PACKAGE_NAME lists. ##
26958 ## ------------------------------------------ ##
26959 _ASBOX
26960 ) |
26961 sed "s/^/$as_me: WARNING: /" >&2
26962 ;;
26963 esac
26964 echo "$as_me:$LINENO: checking for rxposix.h" >&5
26965 echo $ECHO_N "checking for rxposix.h... $ECHO_C" >&6
26966 if test "${ac_cv_header_rxposix_h+set}" = set; then
26967 echo $ECHO_N "(cached) $ECHO_C" >&6
26968 else
26969 ac_cv_header_rxposix_h=$ac_header_preproc
26970 fi
26971 echo "$as_me:$LINENO: result: $ac_cv_header_rxposix_h" >&5
26972 echo "${ECHO_T}$ac_cv_header_rxposix_h" >&6
26973
26974 fi
26975
26976
26977 echo "$as_me:$LINENO: checking for regexec in -lrx" >&5
26978 echo $ECHO_N "checking for regexec in -lrx... $ECHO_C" >&6
26979 if test "${ac_cv_lib_rx_regexec+set}" = set; then
26980 echo $ECHO_N "(cached) $ECHO_C" >&6
26981 else
26982 ac_check_lib_save_LIBS=$LIBS
26983 LIBS="-lrx $LIBS"
26984 cat >conftest.$ac_ext <<_ACEOF
26985 /* confdefs.h. */
26986 _ACEOF
26987 cat confdefs.h >>conftest.$ac_ext
26988 cat >>conftest.$ac_ext <<_ACEOF
26989 /* end confdefs.h. */
26990
26991 /* Override any gcc2 internal prototype to avoid an error. */
26992 #ifdef __cplusplus
26993 extern "C"
26994 #endif
26995 /* We use char because int might match the return type of a gcc2
26996 builtin and then its argument prototype would still apply. */
26997 char regexec ();
26998 int
26999 main ()
27000 {
27001 regexec ();
27002 ;
27003 return 0;
27004 }
27005 _ACEOF
27006 rm -f conftest.$ac_objext conftest$ac_exeext
27007 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27008 (eval $ac_link) 2>conftest.er1
27009 ac_status=$?
27010 grep -v '^ *+' conftest.er1 >conftest.err
27011 rm -f conftest.er1
27012 cat conftest.err >&5
27013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27014 (exit $ac_status); } &&
27015 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
27016 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27017 (eval $ac_try) 2>&5
27018 ac_status=$?
27019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27020 (exit $ac_status); }; } &&
27021 { ac_try='test -s conftest$ac_exeext'
27022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27023 (eval $ac_try) 2>&5
27024 ac_status=$?
27025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27026 (exit $ac_status); }; }; then
27027 ac_cv_lib_rx_regexec=yes
27028 else
27029 echo "$as_me: failed program was:" >&5
27030 sed 's/^/| /' conftest.$ac_ext >&5
27031
27032 ac_cv_lib_rx_regexec=no
27033 fi
27034 rm -f conftest.err conftest.$ac_objext \
27035 conftest$ac_exeext conftest.$ac_ext
27036 LIBS=$ac_check_lib_save_LIBS
27037 fi
27038 echo "$as_me:$LINENO: result: $ac_cv_lib_rx_regexec" >&5
27039 echo "${ECHO_T}$ac_cv_lib_rx_regexec" >&6
27040 if test $ac_cv_lib_rx_regexec = yes; then
27041 with_regex=rx
27042 fi
27043
27044
27045 case $with_regex in
27046 posix)
27047
27048 cat >>confdefs.h <<\_ACEOF
27049 #define HAVE_POSIX_REGEX 1
27050 _ACEOF
27051
27052 REGEX_LIBS=""
27053 ;;
27054 rx)
27055
27056 cat >>confdefs.h <<\_ACEOF
27057 #define HAVE_GNU_RX 1
27058 _ACEOF
27059
27060 REGEX_LIBS="-lrx"
27061 ;;
27062 no)
27063 { { echo "$as_me:$LINENO: error: *** No regex implementation found in C library or GNU Rx" >&5
27064 echo "$as_me: error: *** No regex implementation found in C library or GNU Rx" >&2;}
27065 { (exit 1); exit 1; }; }
27066 ;;
27067 esac
27068
27069 # Check whether --enable-debug or --disable-debug was given.
27070 if test "${enable_debug+set}" = set; then
27071 enableval="$enable_debug"
27072
27073 fi;
27074
27075 if test "$enable_debug" = "yes"; then
27076 CFLAGS="-DDEBUG -O -g ${CFLAGS}"
27077 fi
27078
27079
27080
27081
27082
27083
27084
27085
27086
27087 ac_config_files="$ac_config_files Makefile cui/Makefile libh10db/Makefile libucs2/Makefile libgetmediainfo/Makefile easyh10.spec"
27088
27089 cat >confcache <<\_ACEOF
27090 # This file is a shell script that caches the results of configure
27091 # tests run on this system so they can be shared between configure
27092 # scripts and configure runs, see configure's option --config-cache.
27093 # It is not useful on other systems. If it contains results you don't
27094 # want to keep, you may remove or edit it.
27095 #
27096 # config.status only pays attention to the cache file if you give it
27097 # the --recheck option to rerun configure.
27098 #
27099 # `ac_cv_env_foo' variables (set or unset) will be overridden when
27100 # loading this file, other *unset* `ac_cv_foo' will be assigned the
27101 # following values.
27102
27103 _ACEOF
27104
27105 # The following way of writing the cache mishandles newlines in values,
27106 # but we know of no workaround that is simple, portable, and efficient.
27107 # So, don't put newlines in cache variables' values.
27108 # Ultrix sh set writes to stderr and can't be redirected directly,
27109 # and sets the high bit in the cache file unless we assign to the vars.
27110 {
27111 (set) 2>&1 |
27112 case `(ac_space=' '; set | grep ac_space) 2>&1` in
27113 *ac_space=\ *)
27114 # `set' does not quote correctly, so add quotes (double-quote
27115 # substitution turns \\\\ into \\, and sed turns \\ into \).
27116 sed -n \
27117 "s/'/'\\\\''/g;
27118 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
27119 ;;
27120 *)
27121 # `set' quotes correctly as required by POSIX, so do not add quotes.
27122 sed -n \
27123 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
27124 ;;
27125 esac;
27126 } |
27127 sed '
27128 t clear
27129 : clear
27130 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
27131 t end
27132 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
27133 : end' >>confcache
27134 if diff $cache_file confcache >/dev/null 2>&1; then :; else
27135 if test -w $cache_file; then
27136 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
27137 cat confcache >$cache_file
27138 else
27139 echo "not updating unwritable cache $cache_file"
27140 fi
27141 fi
27142 rm -f confcache
27143
27144 test "x$prefix" = xNONE && prefix=$ac_default_prefix
27145 # Let make expand exec_prefix.
27146 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
27147
27148 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27149 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27150 # trailing colons and then remove the whole line if VPATH becomes empty
27151 # (actually we leave an empty line to preserve line numbers).
27152 if test "x$srcdir" = x.; then
27153 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27154 s/:*\$(srcdir):*/:/;
27155 s/:*\${srcdir}:*/:/;
27156 s/:*@srcdir@:*/:/;
27157 s/^\([^=]*=[ ]*\):*/\1/;
27158 s/:*$//;
27159 s/^[^=]*=[ ]*$//;
27160 }'
27161 fi
27162
27163 DEFS=-DHAVE_CONFIG_H
27164
27165 ac_libobjs=
27166 ac_ltlibobjs=
27167 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
27168 # 1. Remove the extension, and $U if already installed.
27169 ac_i=`echo "$ac_i" |
27170 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
27171 # 2. Add them.
27172 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
27173 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
27174 done
27175 LIBOBJS=$ac_libobjs
27176
27177 LTLIBOBJS=$ac_ltlibobjs
27178
27179
27180 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
27181 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
27182 Usually this means the macro was only invoked conditionally." >&5
27183 echo "$as_me: error: conditional \"AMDEP\" was never defined.
27184 Usually this means the macro was only invoked conditionally." >&2;}
27185 { (exit 1); exit 1; }; }
27186 fi
27187 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
27188 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
27189 Usually this means the macro was only invoked conditionally." >&5
27190 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
27191 Usually this means the macro was only invoked conditionally." >&2;}
27192 { (exit 1); exit 1; }; }
27193 fi
27194 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
27195 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
27196 Usually this means the macro was only invoked conditionally." >&5
27197 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
27198 Usually this means the macro was only invoked conditionally." >&2;}
27199 { (exit 1); exit 1; }; }
27200 fi
27201 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
27202 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
27203 Usually this means the macro was only invoked conditionally." >&5
27204 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
27205 Usually this means the macro was only invoked conditionally." >&2;}
27206 { (exit 1); exit 1; }; }
27207 fi
27208
27209 : ${CONFIG_STATUS=./config.status}
27210 ac_clean_files_save=$ac_clean_files
27211 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
27212 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
27213 echo "$as_me: creating $CONFIG_STATUS" >&6;}
27214 cat >$CONFIG_STATUS <<_ACEOF
27215 #! $SHELL
27216 # Generated by $as_me.
27217 # Run this file to recreate the current configuration.
27218 # Compiler output produced by configure, useful for debugging
27219 # configure, is in config.log if it exists.
27220
27221 debug=false
27222 ac_cs_recheck=false
27223 ac_cs_silent=false
27224 SHELL=\${CONFIG_SHELL-$SHELL}
27225 _ACEOF
27226
27227 cat >>$CONFIG_STATUS <<\_ACEOF
27228 ## --------------------- ##
27229 ## M4sh Initialization. ##
27230 ## --------------------- ##
27231
27232 # Be Bourne compatible
27233 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
27234 emulate sh
27235 NULLCMD=:
27236 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
27237 # is contrary to our usage. Disable this feature.
27238 alias -g '${1+"$@"}'='"$@"'
27239 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
27240 set -o posix
27241 fi
27242 DUALCASE=1; export DUALCASE # for MKS sh
27243
27244 # Support unset when possible.
27245 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
27246 as_unset=unset
27247 else
27248 as_unset=false
27249 fi
27250
27251
27252 # Work around bugs in pre-3.0 UWIN ksh.
27253 $as_unset ENV MAIL MAILPATH
27254 PS1='$ '
27255 PS2='> '
27256 PS4='+ '
27257
27258 # NLS nuisances.
27259 for as_var in \
27260 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
27261 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
27262 LC_TELEPHONE LC_TIME
27263 do
27264 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
27265 eval $as_var=C; export $as_var
27266 else
27267 $as_unset $as_var
27268 fi
27269 done
27270
27271 # Required to use basename.
27272 if expr a : '\(a\)' >/dev/null 2>&1; then
27273 as_expr=expr
27274 else
27275 as_expr=false
27276 fi
27277
27278 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
27279 as_basename=basename
27280 else
27281 as_basename=false
27282 fi
27283
27284
27285 # Name of the executable.
27286 as_me=`$as_basename "$0" ||
27287 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27288 X"$0" : 'X\(//\)$' \| \
27289 X"$0" : 'X\(/\)$' \| \
27290 . : '\(.\)' 2>/dev/null ||
27291 echo X/"$0" |
27292 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
27293 /^X\/\(\/\/\)$/{ s//\1/; q; }
27294 /^X\/\(\/\).*/{ s//\1/; q; }
27295 s/.*/./; q'`
27296
27297
27298 # PATH needs CR, and LINENO needs CR and PATH.
27299 # Avoid depending upon Character Ranges.
27300 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27301 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27302 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27303 as_cr_digits='0123456789'
27304 as_cr_alnum=$as_cr_Letters$as_cr_digits
27305
27306 # The user is always right.
27307 if test "${PATH_SEPARATOR+set}" != set; then
27308 echo "#! /bin/sh" >conf$$.sh
27309 echo "exit 0" >>conf$$.sh
27310 chmod +x conf$$.sh
27311 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
27312 PATH_SEPARATOR=';'
27313 else
27314 PATH_SEPARATOR=:
27315 fi
27316 rm -f conf$$.sh
27317 fi
27318
27319
27320 as_lineno_1=$LINENO
27321 as_lineno_2=$LINENO
27322 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27323 test "x$as_lineno_1" != "x$as_lineno_2" &&
27324 test "x$as_lineno_3" = "x$as_lineno_2" || {
27325 # Find who we are. Look in the path if we contain no path at all
27326 # relative or not.
27327 case $0 in
27328 *[\\/]* ) as_myself=$0 ;;
27329 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27330 for as_dir in $PATH
27331 do
27332 IFS=$as_save_IFS
27333 test -z "$as_dir" && as_dir=.
27334 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
27335 done
27336
27337 ;;
27338 esac
27339 # We did not find ourselves, most probably we were run as `sh COMMAND'
27340 # in which case we are not to be found in the path.
27341 if test "x$as_myself" = x; then
27342 as_myself=$0
27343 fi
27344 if test ! -f "$as_myself"; then
27345 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
27346 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
27347 { (exit 1); exit 1; }; }
27348 fi
27349 case $CONFIG_SHELL in
27350 '')
27351 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
27352 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
27353 do
27354 IFS=$as_save_IFS
27355 test -z "$as_dir" && as_dir=.
27356 for as_base in sh bash ksh sh5; do
27357 case $as_dir in
27358 /*)
27359 if ("$as_dir/$as_base" -c '
27360 as_lineno_1=$LINENO
27361 as_lineno_2=$LINENO
27362 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
27363 test "x$as_lineno_1" != "x$as_lineno_2" &&
27364 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
27365 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
27366 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
27367 CONFIG_SHELL=$as_dir/$as_base
27368 export CONFIG_SHELL
27369 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
27370 fi;;
27371 esac
27372 done
27373 done
27374 ;;
27375 esac
27376
27377 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
27378 # uniformly replaced by the line number. The first 'sed' inserts a
27379 # line-number line before each line; the second 'sed' does the real
27380 # work. The second script uses 'N' to pair each line-number line
27381 # with the numbered line, and appends trailing '-' during
27382 # substitution so that $LINENO is not a special case at line end.
27383 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
27384 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
27385 sed '=' <$as_myself |
27386 sed '
27387 N
27388 s,$,-,
27389 : loop
27390 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
27391 t loop
27392 s,-$,,
27393 s,^['$as_cr_digits']*\n,,
27394 ' >$as_me.lineno &&
27395 chmod +x $as_me.lineno ||
27396 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
27397 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
27398 { (exit 1); exit 1; }; }
27399
27400 # Don't try to exec as it changes $[0], causing all sort of problems
27401 # (the dirname of $[0] is not the place where we might find the
27402 # original and so on. Autoconf is especially sensible to this).
27403 . ./$as_me.lineno
27404 # Exit status is that of the last command.
27405 exit
27406 }
27407
27408
27409 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
27410 *c*,-n*) ECHO_N= ECHO_C='
27411 ' ECHO_T=' ' ;;
27412 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
27413 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
27414 esac
27415
27416 if expr a : '\(a\)' >/dev/null 2>&1; then
27417 as_expr=expr
27418 else
27419 as_expr=false
27420 fi
27421
27422 rm -f conf$$ conf$$.exe conf$$.file
27423 echo >conf$$.file
27424 if ln -s conf$$.file conf$$ 2>/dev/null; then
27425 # We could just check for DJGPP; but this test a) works b) is more generic
27426 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
27427 if test -f conf$$.exe; then
27428 # Don't use ln at all; we don't have any links
27429 as_ln_s='cp -p'
27430 else
27431 as_ln_s='ln -s'
27432 fi
27433 elif ln conf$$.file conf$$ 2>/dev/null; then
27434 as_ln_s=ln
27435 else
27436 as_ln_s='cp -p'
27437 fi
27438 rm -f conf$$ conf$$.exe conf$$.file
27439
27440 if mkdir -p . 2>/dev/null; then
27441 as_mkdir_p=:
27442 else
27443 test -d ./-p && rmdir ./-p
27444 as_mkdir_p=false
27445 fi
27446
27447 as_executable_p="test -f"
27448
27449 # Sed expression to map a string onto a valid CPP name.
27450 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27451
27452 # Sed expression to map a string onto a valid variable name.
27453 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27454
27455
27456 # IFS
27457 # We need space, tab and new line, in precisely that order.
27458 as_nl='
27459 '
27460 IFS=" $as_nl"
27461
27462 # CDPATH.
27463 $as_unset CDPATH
27464
27465 exec 6>&1
27466
27467 # Open the log real soon, to keep \$[0] and so on meaningful, and to
27468 # report actual input values of CONFIG_FILES etc. instead of their
27469 # values after options handling. Logging --version etc. is OK.
27470 exec 5>>config.log
27471 {
27472 echo
27473 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27474 ## Running $as_me. ##
27475 _ASBOX
27476 } >&5
27477 cat >&5 <<_CSEOF
27478
27479 This file was extended by $as_me, which was
27480 generated by GNU Autoconf 2.59. Invocation command line was
27481
27482 CONFIG_FILES = $CONFIG_FILES
27483 CONFIG_HEADERS = $CONFIG_HEADERS
27484 CONFIG_LINKS = $CONFIG_LINKS
27485 CONFIG_COMMANDS = $CONFIG_COMMANDS
27486 $ $0 $@
27487
27488 _CSEOF
27489 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
27490 echo >&5
27491 _ACEOF
27492
27493 # Files that config.status was made for.
27494 if test -n "$ac_config_files"; then
27495 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
27496 fi
27497
27498 if test -n "$ac_config_headers"; then
27499 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
27500 fi
27501
27502 if test -n "$ac_config_links"; then
27503 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
27504 fi
27505
27506 if test -n "$ac_config_commands"; then
27507 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
27508 fi
27509
27510 cat >>$CONFIG_STATUS <<\_ACEOF
27511
27512 ac_cs_usage="\
27513 \`$as_me' instantiates files from templates according to the
27514 current configuration.
27515
27516 Usage: $0 [OPTIONS] [FILE]...
27517
27518 -h, --help print this help, then exit
27519 -V, --version print version number, then exit
27520 -q, --quiet do not print progress messages
27521 -d, --debug don't remove temporary files
27522 --recheck update $as_me by reconfiguring in the same conditions
27523 --file=FILE[:TEMPLATE]
27524 instantiate the configuration file FILE
27525 --header=FILE[:TEMPLATE]
27526 instantiate the configuration header FILE
27527
27528 Configuration files:
27529 $config_files
27530
27531 Configuration headers:
27532 $config_headers
27533
27534 Configuration commands:
27535 $config_commands
27536
27537 Report bugs to <[email protected]>."
27538 _ACEOF
27539
27540 cat >>$CONFIG_STATUS <<_ACEOF
27541 ac_cs_version="\\
27542 config.status
27543 configured by $0, generated by GNU Autoconf 2.59,
27544 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
27545
27546 Copyright (C) 2003 Free Software Foundation, Inc.
27547 This config.status script is free software; the Free Software Foundation
27548 gives unlimited permission to copy, distribute and modify it."
27549 srcdir=$srcdir
27550 INSTALL="$INSTALL"
27551 _ACEOF
27552
27553 cat >>$CONFIG_STATUS <<\_ACEOF
27554 # If no file are specified by the user, then we need to provide default
27555 # value. By we need to know if files were specified by the user.
27556 ac_need_defaults=:
27557 while test $# != 0
27558 do
27559 case $1 in
27560 --*=*)
27561 ac_option=`expr "x$1" : 'x\([^=]*\)='`
27562 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
27563 ac_shift=:
27564 ;;
27565 -*)
27566 ac_option=$1
27567 ac_optarg=$2
27568 ac_shift=shift
27569 ;;
27570 *) # This is not an option, so the user has probably given explicit
27571 # arguments.
27572 ac_option=$1
27573 ac_need_defaults=false;;
27574 esac
27575
27576 case $ac_option in
27577 # Handling of the options.
27578 _ACEOF
27579 cat >>$CONFIG_STATUS <<\_ACEOF
27580 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27581 ac_cs_recheck=: ;;
27582 --version | --vers* | -V )
27583 echo "$ac_cs_version"; exit 0 ;;
27584 --he | --h)
27585 # Conflict between --help and --header
27586 { { echo "$as_me:$LINENO: error: ambiguous option: $1
27587 Try \`$0 --help' for more information." >&5
27588 echo "$as_me: error: ambiguous option: $1
27589 Try \`$0 --help' for more information." >&2;}
27590 { (exit 1); exit 1; }; };;
27591 --help | --hel | -h )
27592 echo "$ac_cs_usage"; exit 0 ;;
27593 --debug | --d* | -d )
27594 debug=: ;;
27595 --file | --fil | --fi | --f )
27596 $ac_shift
27597 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
27598 ac_need_defaults=false;;
27599 --header | --heade | --head | --hea )
27600 $ac_shift
27601 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
27602 ac_need_defaults=false;;
27603 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27604 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27605 ac_cs_silent=: ;;
27606
27607 # This is an error.
27608 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
27609 Try \`$0 --help' for more information." >&5
27610 echo "$as_me: error: unrecognized option: $1
27611 Try \`$0 --help' for more information." >&2;}
27612 { (exit 1); exit 1; }; } ;;
27613
27614 *) ac_config_targets="$ac_config_targets $1" ;;
27615
27616 esac
27617 shift
27618 done
27619
27620 ac_configure_extra_args=
27621
27622 if $ac_cs_silent; then
27623 exec 6>/dev/null
27624 ac_configure_extra_args="$ac_configure_extra_args --silent"
27625 fi
27626
27627 _ACEOF
27628 cat >>$CONFIG_STATUS <<_ACEOF
27629 if \$ac_cs_recheck; then
27630 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
27631 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27632 fi
27633
27634 _ACEOF
27635
27636 cat >>$CONFIG_STATUS <<_ACEOF
27637 #
27638 # INIT-COMMANDS section.
27639 #
27640
27641 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27642
27643 _ACEOF
27644
27645
27646
27647 cat >>$CONFIG_STATUS <<\_ACEOF
27648 for ac_config_target in $ac_config_targets
27649 do
27650 case "$ac_config_target" in
27651 # Handling of arguments.
27652 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27653 "cui/Makefile" ) CONFIG_FILES="$CONFIG_FILES cui/Makefile" ;;
27654 "libh10db/Makefile" ) CONFIG_FILES="$CONFIG_FILES libh10db/Makefile" ;;
27655 "libucs2/Makefile" ) CONFIG_FILES="$CONFIG_FILES libucs2/Makefile" ;;
27656 "libgetmediainfo/Makefile" ) CONFIG_FILES="$CONFIG_FILES libgetmediainfo/Makefile" ;;
27657 "easyh10.spec" ) CONFIG_FILES="$CONFIG_FILES easyh10.spec" ;;
27658 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27659 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27660 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
27661 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
27662 { (exit 1); exit 1; }; };;
27663 esac
27664 done
27665
27666 # If the user did not use the arguments to specify the items to instantiate,
27667 # then the envvar interface is used. Set only those that are not.
27668 # We use the long form for the default assignment because of an extremely
27669 # bizarre bug on SunOS 4.1.3.
27670 if $ac_need_defaults; then
27671 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27672 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27673 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27674 fi
27675
27676 # Have a temporary directory for convenience. Make it in the build tree
27677 # simply because there is no reason to put it here, and in addition,
27678 # creating and moving files from /tmp can sometimes cause problems.
27679 # Create a temporary directory, and hook for its removal unless debugging.
27680 $debug ||
27681 {
27682 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
27683 trap '{ (exit 1); exit 1; }' 1 2 13 15
27684 }
27685
27686 # Create a (secure) tmp directory for tmp files.
27687
27688 {
27689 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
27690 test -n "$tmp" && test -d "$tmp"
27691 } ||
27692 {
27693 tmp=./confstat$$-$RANDOM
27694 (umask 077 && mkdir $tmp)
27695 } ||
27696 {
27697 echo "$me: cannot create a temporary directory in ." >&2
27698 { (exit 1); exit 1; }
27699 }
27700
27701 _ACEOF
27702
27703 cat >>$CONFIG_STATUS <<_ACEOF
27704
27705 #
27706 # CONFIG_FILES section.
27707 #
27708
27709 # No need to generate the scripts if there are no CONFIG_FILES.
27710 # This happens for instance when ./config.status config.h
27711 if test -n "\$CONFIG_FILES"; then
27712 # Protect against being on the right side of a sed subst in config.status.
27713 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
27714 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
27715 s,@SHELL@,$SHELL,;t t
27716 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
27717 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
27718 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
27719 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
27720 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
27721 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
27722 s,@exec_prefix@,$exec_prefix,;t t
27723 s,@prefix@,$prefix,;t t
27724 s,@program_transform_name@,$program_transform_name,;t t
27725 s,@bindir@,$bindir,;t t
27726 s,@sbindir@,$sbindir,;t t
27727 s,@libexecdir@,$libexecdir,;t t
27728 s,@datadir@,$datadir,;t t
27729 s,@sysconfdir@,$sysconfdir,;t t
27730 s,@sharedstatedir@,$sharedstatedir,;t t
27731 s,@localstatedir@,$localstatedir,;t t
27732 s,@libdir@,$libdir,;t t
27733 s,@includedir@,$includedir,;t t
27734 s,@oldincludedir@,$oldincludedir,;t t
27735 s,@infodir@,$infodir,;t t
27736 s,@mandir@,$mandir,;t t
27737 s,@build_alias@,$build_alias,;t t
27738 s,@host_alias@,$host_alias,;t t
27739 s,@target_alias@,$target_alias,;t t
27740 s,@DEFS@,$DEFS,;t t
27741 s,@ECHO_C@,$ECHO_C,;t t
27742 s,@ECHO_N@,$ECHO_N,;t t
27743 s,@ECHO_T@,$ECHO_T,;t t
27744 s,@LIBS@,$LIBS,;t t
27745 s,@build@,$build,;t t
27746 s,@build_cpu@,$build_cpu,;t t
27747 s,@build_vendor@,$build_vendor,;t t
27748 s,@build_os@,$build_os,;t t
27749 s,@host@,$host,;t t
27750 s,@host_cpu@,$host_cpu,;t t
27751 s,@host_vendor@,$host_vendor,;t t
27752 s,@host_os@,$host_os,;t t
27753 s,@CC@,$CC,;t t
27754 s,@CFLAGS@,$CFLAGS,;t t
27755 s,@LDFLAGS@,$LDFLAGS,;t t
27756 s,@CPPFLAGS@,$CPPFLAGS,;t t
27757 s,@ac_ct_CC@,$ac_ct_CC,;t t
27758 s,@EXEEXT@,$EXEEXT,;t t
27759 s,@OBJEXT@,$OBJEXT,;t t
27760 s,@CPP@,$CPP,;t t
27761 s,@EGREP@,$EGREP,;t t
27762 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
27763 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
27764 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
27765 s,@CYGPATH_W@,$CYGPATH_W,;t t
27766 s,@PACKAGE@,$PACKAGE,;t t
27767 s,@VERSION@,$VERSION,;t t
27768 s,@ACLOCAL@,$ACLOCAL,;t t
27769 s,@AUTOCONF@,$AUTOCONF,;t t
27770 s,@AUTOMAKE@,$AUTOMAKE,;t t
27771 s,@AUTOHEADER@,$AUTOHEADER,;t t
27772 s,@MAKEINFO@,$MAKEINFO,;t t
27773 s,@install_sh@,$install_sh,;t t
27774 s,@STRIP@,$STRIP,;t t
27775 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
27776 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
27777 s,@mkdir_p@,$mkdir_p,;t t
27778 s,@AWK@,$AWK,;t t
27779 s,@SET_MAKE@,$SET_MAKE,;t t
27780 s,@am__leading_dot@,$am__leading_dot,;t t
27781 s,@AMTAR@,$AMTAR,;t t
27782 s,@am__tar@,$am__tar,;t t
27783 s,@am__untar@,$am__untar,;t t
27784 s,@DEPDIR@,$DEPDIR,;t t
27785 s,@am__include@,$am__include,;t t
27786 s,@am__quote@,$am__quote,;t t
27787 s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
27788 s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
27789 s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
27790 s,@CCDEPMODE@,$CCDEPMODE,;t t
27791 s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
27792 s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
27793 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
27794 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
27795 s,@MAINT@,$MAINT,;t t
27796 s,@U@,$U,;t t
27797 s,@ANSI2KNR@,$ANSI2KNR,;t t
27798 s,@LN_S@,$LN_S,;t t
27799 s,@ECHO@,$ECHO,;t t
27800 s,@AR@,$AR,;t t
27801 s,@ac_ct_AR@,$ac_ct_AR,;t t
27802 s,@RANLIB@,$RANLIB,;t t
27803 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
27804 s,@CXX@,$CXX,;t t
27805 s,@CXXFLAGS@,$CXXFLAGS,;t t
27806 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
27807 s,@CXXDEPMODE@,$CXXDEPMODE,;t t
27808 s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
27809 s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
27810 s,@CXXCPP@,$CXXCPP,;t t
27811 s,@F77@,$F77,;t t
27812 s,@FFLAGS@,$FFLAGS,;t t
27813 s,@ac_ct_F77@,$ac_ct_F77,;t t
27814 s,@LIBTOOL@,$LIBTOOL,;t t
27815 s,@ALLOCA@,$ALLOCA,;t t
27816 s,@LIBOBJS@,$LIBOBJS,;t t
27817 s,@INCLUDES@,$INCLUDES,;t t
27818 s,@ID3TAG_LIBS@,$ID3TAG_LIBS,;t t
27819 s,@ICONV_LIBS@,$ICONV_LIBS,;t t
27820 s,@REGEX_LIBS@,$REGEX_LIBS,;t t
27821 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
27822 CEOF
27823
27824 _ACEOF
27825
27826 cat >>$CONFIG_STATUS <<\_ACEOF
27827 # Split the substitutions into bite-sized pieces for seds with
27828 # small command number limits, like on Digital OSF/1 and HP-UX.
27829 ac_max_sed_lines=48
27830 ac_sed_frag=1 # Number of current file.
27831 ac_beg=1 # First line for current file.
27832 ac_end=$ac_max_sed_lines # Line after last line for current file.
27833 ac_more_lines=:
27834 ac_sed_cmds=
27835 while $ac_more_lines; do
27836 if test $ac_beg -gt 1; then
27837 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27838 else
27839 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
27840 fi
27841 if test ! -s $tmp/subs.frag; then
27842 ac_more_lines=false
27843 else
27844 # The purpose of the label and of the branching condition is to
27845 # speed up the sed processing (if there are no `@' at all, there
27846 # is no need to browse any of the substitutions).
27847 # These are the two extra sed commands mentioned above.
27848 (echo ':t
27849 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
27850 if test -z "$ac_sed_cmds"; then
27851 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
27852 else
27853 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
27854 fi
27855 ac_sed_frag=`expr $ac_sed_frag + 1`
27856 ac_beg=$ac_end
27857 ac_end=`expr $ac_end + $ac_max_sed_lines`
27858 fi
27859 done
27860 if test -z "$ac_sed_cmds"; then
27861 ac_sed_cmds=cat
27862 fi
27863 fi # test -n "$CONFIG_FILES"
27864
27865 _ACEOF
27866 cat >>$CONFIG_STATUS <<\_ACEOF
27867 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
27868 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
27869 case $ac_file in
27870 - | *:- | *:-:* ) # input from stdin
27871 cat >$tmp/stdin
27872 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27873 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27874 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
27875 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
27876 * ) ac_file_in=$ac_file.in ;;
27877 esac
27878
27879 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
27880 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
27881 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27882 X"$ac_file" : 'X\(//\)[^/]' \| \
27883 X"$ac_file" : 'X\(//\)$' \| \
27884 X"$ac_file" : 'X\(/\)' \| \
27885 . : '\(.\)' 2>/dev/null ||
27886 echo X"$ac_file" |
27887 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27888 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27889 /^X\(\/\/\)$/{ s//\1/; q; }
27890 /^X\(\/\).*/{ s//\1/; q; }
27891 s/.*/./; q'`
27892 { if $as_mkdir_p; then
27893 mkdir -p "$ac_dir"
27894 else
27895 as_dir="$ac_dir"
27896 as_dirs=
27897 while test ! -d "$as_dir"; do
27898 as_dirs="$as_dir $as_dirs"
27899 as_dir=`(dirname "$as_dir") 2>/dev/null ||
27900 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27901 X"$as_dir" : 'X\(//\)[^/]' \| \
27902 X"$as_dir" : 'X\(//\)$' \| \
27903 X"$as_dir" : 'X\(/\)' \| \
27904 . : '\(.\)' 2>/dev/null ||
27905 echo X"$as_dir" |
27906 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
27907 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
27908 /^X\(\/\/\)$/{ s//\1/; q; }
27909 /^X\(\/\).*/{ s//\1/; q; }
27910 s/.*/./; q'`
27911 done
27912 test ! -n "$as_dirs" || mkdir $as_dirs
27913 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
27914 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
27915 { (exit 1); exit 1; }; }; }
27916
27917 ac_builddir=.
27918
27919 if test "$ac_dir" != .; then
27920 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
27921 # A "../" for each directory in $ac_dir_suffix.
27922 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
27923 else
27924 ac_dir_suffix= ac_top_builddir=
27925 fi
27926
27927 case $srcdir in
27928 .) # No --srcdir option. We are building in place.
27929 ac_srcdir=.
27930 if test -z "$ac_top_builddir"; then
27931 ac_top_srcdir=.
27932 else
27933 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
27934 fi ;;
27935 [\\/]* | ?:[\\/]* ) # Absolute path.
27936 ac_srcdir=$srcdir$ac_dir_suffix;
27937 ac_top_srcdir=$srcdir ;;
27938 *) # Relative path.
27939 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
27940 ac_top_srcdir=$ac_top_builddir$srcdir ;;
27941 esac
27942
27943 # Do not use `cd foo && pwd` to compute absolute paths, because
27944 # the directories may not exist.
27945 case `pwd` in
27946 .) ac_abs_builddir="$ac_dir";;
27947 *)
27948 case "$ac_dir" in
27949 .) ac_abs_builddir=`pwd`;;
27950 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
27951 *) ac_abs_builddir=`pwd`/"$ac_dir";;
27952 esac;;
27953 esac
27954 case $ac_abs_builddir in
27955 .) ac_abs_top_builddir=${ac_top_builddir}.;;
27956 *)
27957 case ${ac_top_builddir}. in
27958 .) ac_abs_top_builddir=$ac_abs_builddir;;
27959 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
27960 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
27961 esac;;
27962 esac
27963 case $ac_abs_builddir in
27964 .) ac_abs_srcdir=$ac_srcdir;;
27965 *)
27966 case $ac_srcdir in
27967 .) ac_abs_srcdir=$ac_abs_builddir;;
27968 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
27969 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
27970 esac;;
27971 esac
27972 case $ac_abs_builddir in
27973 .) ac_abs_top_srcdir=$ac_top_srcdir;;
27974 *)
27975 case $ac_top_srcdir in
27976 .) ac_abs_top_srcdir=$ac_abs_builddir;;
27977 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
27978 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
27979 esac;;
27980 esac
27981
27982
27983 case $INSTALL in
27984 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27985 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
27986 esac
27987
27988 # Let's still pretend it is `configure' which instantiates (i.e., don't
27989 # use $as_me), people would be surprised to read:
27990 # /* config.h. Generated by config.status. */
27991 if test x"$ac_file" = x-; then
27992 configure_input=
27993 else
27994 configure_input="$ac_file. "
27995 fi
27996 configure_input=$configure_input"Generated from `echo $ac_file_in |
27997 sed 's,.*/,,'` by configure."
27998
27999 # First look for the input files in the build tree, otherwise in the
28000 # src tree.
28001 ac_file_inputs=`IFS=:
28002 for f in $ac_file_in; do
28003 case $f in
28004 -) echo $tmp/stdin ;;
28005 [\\/$]*)
28006 # Absolute (can't be DOS-style, as IFS=:)
28007 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28008 echo "$as_me: error: cannot find input file: $f" >&2;}
28009 { (exit 1); exit 1; }; }
28010 echo "$f";;
28011 *) # Relative
28012 if test -f "$f"; then
28013 # Build tree
28014 echo "$f"
28015 elif test -f "$srcdir/$f"; then
28016 # Source tree
28017 echo "$srcdir/$f"
28018 else
28019 # /dev/null tree
28020 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28021 echo "$as_me: error: cannot find input file: $f" >&2;}
28022 { (exit 1); exit 1; }; }
28023 fi;;
28024 esac
28025 done` || { (exit 1); exit 1; }
28026
28027 if test x"$ac_file" != x-; then
28028 { echo "$as_me:$LINENO: creating $ac_file" >&5
28029 echo "$as_me: creating $ac_file" >&6;}
28030 rm -f "$ac_file"
28031 fi
28032 _ACEOF
28033 cat >>$CONFIG_STATUS <<_ACEOF
28034 sed "$ac_vpsub
28035 $extrasub
28036 _ACEOF
28037 cat >>$CONFIG_STATUS <<\_ACEOF
28038 :t
28039 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28040 s,@configure_input@,$configure_input,;t t
28041 s,@srcdir@,$ac_srcdir,;t t
28042 s,@abs_srcdir@,$ac_abs_srcdir,;t t
28043 s,@top_srcdir@,$ac_top_srcdir,;t t
28044 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
28045 s,@builddir@,$ac_builddir,;t t
28046 s,@abs_builddir@,$ac_abs_builddir,;t t
28047 s,@top_builddir@,$ac_top_builddir,;t t
28048 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
28049 s,@INSTALL@,$ac_INSTALL,;t t
28050 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
28051 rm -f $tmp/stdin
28052 if test x"$ac_file" != x-; then
28053 mv $tmp/out $ac_file
28054 else
28055 cat $tmp/out
28056 rm -f $tmp/out
28057 fi
28058
28059 done
28060 _ACEOF
28061 cat >>$CONFIG_STATUS <<\_ACEOF
28062
28063 #
28064 # CONFIG_HEADER section.
28065 #
28066
28067 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
28068 # NAME is the cpp macro being defined and VALUE is the value it is being given.
28069 #
28070 # ac_d sets the value in "#define NAME VALUE" lines.
28071 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
28072 ac_dB='[ ].*$,\1#\2'
28073 ac_dC=' '
28074 ac_dD=',;t'
28075 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
28076 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
28077 ac_uB='$,\1#\2define\3'
28078 ac_uC=' '
28079 ac_uD=',;t'
28080
28081 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
28082 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
28083 case $ac_file in
28084 - | *:- | *:-:* ) # input from stdin
28085 cat >$tmp/stdin
28086 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28087 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28088 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
28089 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
28090 * ) ac_file_in=$ac_file.in ;;
28091 esac
28092
28093 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
28094 echo "$as_me: creating $ac_file" >&6;}
28095
28096 # First look for the input files in the build tree, otherwise in the
28097 # src tree.
28098 ac_file_inputs=`IFS=:
28099 for f in $ac_file_in; do
28100 case $f in
28101 -) echo $tmp/stdin ;;
28102 [\\/$]*)
28103 # Absolute (can't be DOS-style, as IFS=:)
28104 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28105 echo "$as_me: error: cannot find input file: $f" >&2;}
28106 { (exit 1); exit 1; }; }
28107 # Do quote $f, to prevent DOS paths from being IFS'd.
28108 echo "$f";;
28109 *) # Relative
28110 if test -f "$f"; then
28111 # Build tree
28112 echo "$f"
28113 elif test -f "$srcdir/$f"; then
28114 # Source tree
28115 echo "$srcdir/$f"
28116 else
28117 # /dev/null tree
28118 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
28119 echo "$as_me: error: cannot find input file: $f" >&2;}
28120 { (exit 1); exit 1; }; }
28121 fi;;
28122 esac
28123 done` || { (exit 1); exit 1; }
28124 # Remove the trailing spaces.
28125 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
28126
28127 _ACEOF
28128
28129 # Transform confdefs.h into two sed scripts, `conftest.defines' and
28130 # `conftest.undefs', that substitutes the proper values into
28131 # config.h.in to produce config.h. The first handles `#define'
28132 # templates, and the second `#undef' templates.
28133 # And first: Protect against being on the right side of a sed subst in
28134 # config.status. Protect against being in an unquoted here document
28135 # in config.status.
28136 rm -f conftest.defines conftest.undefs
28137 # Using a here document instead of a string reduces the quoting nightmare.
28138 # Putting comments in sed scripts is not portable.
28139 #
28140 # `end' is used to avoid that the second main sed command (meant for
28141 # 0-ary CPP macros) applies to n-ary macro definitions.
28142 # See the Autoconf documentation for `clear'.
28143 cat >confdef2sed.sed <<\_ACEOF
28144 s/[\\&,]/\\&/g
28145 s,[\\$`],\\&,g
28146 t clear
28147 : clear
28148 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
28149 t end
28150 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
28151 : end
28152 _ACEOF
28153 # If some macros were called several times there might be several times
28154 # the same #defines, which is useless. Nevertheless, we may not want to
28155 # sort them, since we want the *last* AC-DEFINE to be honored.
28156 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
28157 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
28158 rm -f confdef2sed.sed
28159
28160 # This sed command replaces #undef with comments. This is necessary, for
28161 # example, in the case of _POSIX_SOURCE, which is predefined and required
28162 # on some systems where configure will not decide to define it.
28163 cat >>conftest.undefs <<\_ACEOF
28164 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
28165 _ACEOF
28166
28167 # Break up conftest.defines because some shells have a limit on the size
28168 # of here documents, and old seds have small limits too (100 cmds).
28169 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
28170 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
28171 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
28172 echo ' :' >>$CONFIG_STATUS
28173 rm -f conftest.tail
28174 while grep . conftest.defines >/dev/null
28175 do
28176 # Write a limited-size here document to $tmp/defines.sed.
28177 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
28178 # Speed up: don't consider the non `#define' lines.
28179 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
28180 # Work around the forget-to-reset-the-flag bug.
28181 echo 't clr' >>$CONFIG_STATUS
28182 echo ': clr' >>$CONFIG_STATUS
28183 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
28184 echo 'CEOF
28185 sed -f $tmp/defines.sed $tmp/in >$tmp/out
28186 rm -f $tmp/in
28187 mv $tmp/out $tmp/in
28188 ' >>$CONFIG_STATUS
28189 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
28190 rm -f conftest.defines
28191 mv conftest.tail conftest.defines
28192 done
28193 rm -f conftest.defines
28194 echo ' fi # grep' >>$CONFIG_STATUS
28195 echo >>$CONFIG_STATUS
28196
28197 # Break up conftest.undefs because some shells have a limit on the size
28198 # of here documents, and old seds have small limits too (100 cmds).
28199 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
28200 rm -f conftest.tail
28201 while grep . conftest.undefs >/dev/null
28202 do
28203 # Write a limited-size here document to $tmp/undefs.sed.
28204 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
28205 # Speed up: don't consider the non `#undef'
28206 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
28207 # Work around the forget-to-reset-the-flag bug.
28208 echo 't clr' >>$CONFIG_STATUS
28209 echo ': clr' >>$CONFIG_STATUS
28210 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
28211 echo 'CEOF
28212 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
28213 rm -f $tmp/in
28214 mv $tmp/out $tmp/in
28215 ' >>$CONFIG_STATUS
28216 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
28217 rm -f conftest.undefs
28218 mv conftest.tail conftest.undefs
28219 done
28220 rm -f conftest.undefs
28221
28222 cat >>$CONFIG_STATUS <<\_ACEOF
28223 # Let's still pretend it is `configure' which instantiates (i.e., don't
28224 # use $as_me), people would be surprised to read:
28225 # /* config.h. Generated by config.status. */
28226 if test x"$ac_file" = x-; then
28227 echo "/* Generated by configure. */" >$tmp/config.h
28228 else
28229 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
28230 fi
28231 cat $tmp/in >>$tmp/config.h
28232 rm -f $tmp/in
28233 if test x"$ac_file" != x-; then
28234 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
28235 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
28236 echo "$as_me: $ac_file is unchanged" >&6;}
28237 else
28238 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
28239 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28240 X"$ac_file" : 'X\(//\)[^/]' \| \
28241 X"$ac_file" : 'X\(//\)$' \| \
28242 X"$ac_file" : 'X\(/\)' \| \
28243 . : '\(.\)' 2>/dev/null ||
28244 echo X"$ac_file" |
28245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28246 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28247 /^X\(\/\/\)$/{ s//\1/; q; }
28248 /^X\(\/\).*/{ s//\1/; q; }
28249 s/.*/./; q'`
28250 { if $as_mkdir_p; then
28251 mkdir -p "$ac_dir"
28252 else
28253 as_dir="$ac_dir"
28254 as_dirs=
28255 while test ! -d "$as_dir"; do
28256 as_dirs="$as_dir $as_dirs"
28257 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28258 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28259 X"$as_dir" : 'X\(//\)[^/]' \| \
28260 X"$as_dir" : 'X\(//\)$' \| \
28261 X"$as_dir" : 'X\(/\)' \| \
28262 . : '\(.\)' 2>/dev/null ||
28263 echo X"$as_dir" |
28264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28265 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28266 /^X\(\/\/\)$/{ s//\1/; q; }
28267 /^X\(\/\).*/{ s//\1/; q; }
28268 s/.*/./; q'`
28269 done
28270 test ! -n "$as_dirs" || mkdir $as_dirs
28271 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28272 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28273 { (exit 1); exit 1; }; }; }
28274
28275 rm -f $ac_file
28276 mv $tmp/config.h $ac_file
28277 fi
28278 else
28279 cat $tmp/config.h
28280 rm -f $tmp/config.h
28281 fi
28282 # Compute $ac_file's index in $config_headers.
28283 _am_stamp_count=1
28284 for _am_header in $config_headers :; do
28285 case $_am_header in
28286 $ac_file | $ac_file:* )
28287 break ;;
28288 * )
28289 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28290 esac
28291 done
28292 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
28293 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28294 X$ac_file : 'X\(//\)[^/]' \| \
28295 X$ac_file : 'X\(//\)$' \| \
28296 X$ac_file : 'X\(/\)' \| \
28297 . : '\(.\)' 2>/dev/null ||
28298 echo X$ac_file |
28299 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28300 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28301 /^X\(\/\/\)$/{ s//\1/; q; }
28302 /^X\(\/\).*/{ s//\1/; q; }
28303 s/.*/./; q'`/stamp-h$_am_stamp_count
28304 done
28305 _ACEOF
28306 cat >>$CONFIG_STATUS <<\_ACEOF
28307
28308 #
28309 # CONFIG_COMMANDS section.
28310 #
28311 for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
28312 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
28313 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
28314 ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
28315 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28316 X"$ac_dest" : 'X\(//\)[^/]' \| \
28317 X"$ac_dest" : 'X\(//\)$' \| \
28318 X"$ac_dest" : 'X\(/\)' \| \
28319 . : '\(.\)' 2>/dev/null ||
28320 echo X"$ac_dest" |
28321 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28322 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28323 /^X\(\/\/\)$/{ s//\1/; q; }
28324 /^X\(\/\).*/{ s//\1/; q; }
28325 s/.*/./; q'`
28326 { if $as_mkdir_p; then
28327 mkdir -p "$ac_dir"
28328 else
28329 as_dir="$ac_dir"
28330 as_dirs=
28331 while test ! -d "$as_dir"; do
28332 as_dirs="$as_dir $as_dirs"
28333 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28334 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28335 X"$as_dir" : 'X\(//\)[^/]' \| \
28336 X"$as_dir" : 'X\(//\)$' \| \
28337 X"$as_dir" : 'X\(/\)' \| \
28338 . : '\(.\)' 2>/dev/null ||
28339 echo X"$as_dir" |
28340 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28341 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28342 /^X\(\/\/\)$/{ s//\1/; q; }
28343 /^X\(\/\).*/{ s//\1/; q; }
28344 s/.*/./; q'`
28345 done
28346 test ! -n "$as_dirs" || mkdir $as_dirs
28347 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
28348 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
28349 { (exit 1); exit 1; }; }; }
28350
28351 ac_builddir=.
28352
28353 if test "$ac_dir" != .; then
28354 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
28355 # A "../" for each directory in $ac_dir_suffix.
28356 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
28357 else
28358 ac_dir_suffix= ac_top_builddir=
28359 fi
28360
28361 case $srcdir in
28362 .) # No --srcdir option. We are building in place.
28363 ac_srcdir=.
28364 if test -z "$ac_top_builddir"; then
28365 ac_top_srcdir=.
28366 else
28367 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
28368 fi ;;
28369 [\\/]* | ?:[\\/]* ) # Absolute path.
28370 ac_srcdir=$srcdir$ac_dir_suffix;
28371 ac_top_srcdir=$srcdir ;;
28372 *) # Relative path.
28373 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
28374 ac_top_srcdir=$ac_top_builddir$srcdir ;;
28375 esac
28376
28377 # Do not use `cd foo && pwd` to compute absolute paths, because
28378 # the directories may not exist.
28379 case `pwd` in
28380 .) ac_abs_builddir="$ac_dir";;
28381 *)
28382 case "$ac_dir" in
28383 .) ac_abs_builddir=`pwd`;;
28384 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
28385 *) ac_abs_builddir=`pwd`/"$ac_dir";;
28386 esac;;
28387 esac
28388 case $ac_abs_builddir in
28389 .) ac_abs_top_builddir=${ac_top_builddir}.;;
28390 *)
28391 case ${ac_top_builddir}. in
28392 .) ac_abs_top_builddir=$ac_abs_builddir;;
28393 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
28394 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
28395 esac;;
28396 esac
28397 case $ac_abs_builddir in
28398 .) ac_abs_srcdir=$ac_srcdir;;
28399 *)
28400 case $ac_srcdir in
28401 .) ac_abs_srcdir=$ac_abs_builddir;;
28402 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
28403 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
28404 esac;;
28405 esac
28406 case $ac_abs_builddir in
28407 .) ac_abs_top_srcdir=$ac_top_srcdir;;
28408 *)
28409 case $ac_top_srcdir in
28410 .) ac_abs_top_srcdir=$ac_abs_builddir;;
28411 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
28412 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
28413 esac;;
28414 esac
28415
28416
28417 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
28418 echo "$as_me: executing $ac_dest commands" >&6;}
28419 case $ac_dest in
28420 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
28421 # Strip MF so we end up with the name of the file.
28422 mf=`echo "$mf" | sed -e 's/:.*$//'`
28423 # Check whether this is an Automake generated Makefile or not.
28424 # We used to match only the files named `Makefile.in', but
28425 # some people rename them; so instead we look at the file content.
28426 # Grep'ing the first line is not enough: some people post-process
28427 # each Makefile.in and add a new line on top of each file to say so.
28428 # So let's grep whole file.
28429 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
28430 dirpart=`(dirname "$mf") 2>/dev/null ||
28431 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28432 X"$mf" : 'X\(//\)[^/]' \| \
28433 X"$mf" : 'X\(//\)$' \| \
28434 X"$mf" : 'X\(/\)' \| \
28435 . : '\(.\)' 2>/dev/null ||
28436 echo X"$mf" |
28437 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28438 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28439 /^X\(\/\/\)$/{ s//\1/; q; }
28440 /^X\(\/\).*/{ s//\1/; q; }
28441 s/.*/./; q'`
28442 else
28443 continue
28444 fi
28445 # Extract the definition of DEPDIR, am__include, and am__quote
28446 # from the Makefile without running `make'.
28447 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28448 test -z "$DEPDIR" && continue
28449 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28450 test -z "am__include" && continue
28451 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28452 # When using ansi2knr, U may be empty or an underscore; expand it
28453 U=`sed -n 's/^U = //p' < "$mf"`
28454 # Find all dependency output files, they are included files with
28455 # $(DEPDIR) in their names. We invoke sed twice because it is the
28456 # simplest approach to changing $(DEPDIR) to its actual value in the
28457 # expansion.
28458 for file in `sed -n "
28459 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28460 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28461 # Make sure the directory exists.
28462 test -f "$dirpart/$file" && continue
28463 fdir=`(dirname "$file") 2>/dev/null ||
28464 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28465 X"$file" : 'X\(//\)[^/]' \| \
28466 X"$file" : 'X\(//\)$' \| \
28467 X"$file" : 'X\(/\)' \| \
28468 . : '\(.\)' 2>/dev/null ||
28469 echo X"$file" |
28470 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28471 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28472 /^X\(\/\/\)$/{ s//\1/; q; }
28473 /^X\(\/\).*/{ s//\1/; q; }
28474 s/.*/./; q'`
28475 { if $as_mkdir_p; then
28476 mkdir -p $dirpart/$fdir
28477 else
28478 as_dir=$dirpart/$fdir
28479 as_dirs=
28480 while test ! -d "$as_dir"; do
28481 as_dirs="$as_dir $as_dirs"
28482 as_dir=`(dirname "$as_dir") 2>/dev/null ||
28483 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28484 X"$as_dir" : 'X\(//\)[^/]' \| \
28485 X"$as_dir" : 'X\(//\)$' \| \
28486 X"$as_dir" : 'X\(/\)' \| \
28487 . : '\(.\)' 2>/dev/null ||
28488 echo X"$as_dir" |
28489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
28490 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
28491 /^X\(\/\/\)$/{ s//\1/; q; }
28492 /^X\(\/\).*/{ s//\1/; q; }
28493 s/.*/./; q'`
28494 done
28495 test ! -n "$as_dirs" || mkdir $as_dirs
28496 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
28497 echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
28498 { (exit 1); exit 1; }; }; }
28499
28500 # echo "creating $dirpart/$file"
28501 echo '# dummy' > "$dirpart/$file"
28502 done
28503 done
28504 ;;
28505 esac
28506 done
28507 _ACEOF
28508
28509 cat >>$CONFIG_STATUS <<\_ACEOF
28510
28511 { (exit 0); exit 0; }
28512 _ACEOF
28513 chmod +x $CONFIG_STATUS
28514 ac_clean_files=$ac_clean_files_save
28515
28516
28517 # configure is writing to config.log, and then calls config.status.
28518 # config.status does its own redirection, appending to config.log.
28519 # Unfortunately, on DOS this fails, as config.log is still kept open
28520 # by configure, so config.status won't be able to write to it; its
28521 # output is simply discarded. So we exec the FD to /dev/null,
28522 # effectively closing config.log, so it can be properly (re)opened and
28523 # appended to by config.status. When coming back to configure, we
28524 # need to make the FD available again.
28525 if test "$no_create" != yes; then
28526 ac_cs_success=:
28527 ac_config_status_args=
28528 test "$silent" = yes &&
28529 ac_config_status_args="$ac_config_status_args --quiet"
28530 exec 5>/dev/null
28531 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28532 exec 5>>config.log
28533 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28534 # would make configure fail if this is the last instruction.
28535 $ac_cs_success || { (exit 1); exit 1; }
28536 fi
28537