hppa: Improve handling of REG+D addresses when generating PA 2.0 code
[official-gcc.git] / libgm2 / configure
blob13861f0ff93eed1e32236fca6b6b6697acf8cbfd
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for package-unused version-unused.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1
201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
205 PATH=/empty FPATH=/empty; export PATH FPATH
206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
280 exit 1
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
298 { eval $1=; unset $1;}
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
351 /^X\(\/\/\)$/{
352 s//\1/
355 /^X\(\/\).*/{
356 s//\1/
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
384 eval $1+=\$2
386 else
387 as_fn_append ()
389 eval $1=\$$1\$2
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
401 as_val=$(( $* ))
403 else
404 as_fn_arith ()
406 as_val=`expr "$@" || test $? -eq 1`
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
455 /^X\/\(\/\/\)$/{
456 s//\1/
459 /^X\/\(\/\).*/{
460 s//\1/
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
486 :lineno
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
542 else
543 as_ln_s='cp -pR'
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 SHELL=${CONFIG_SHELL-/bin/sh}
567 test -n "$DJDIR" || exec 7<&0 </dev/null
568 exec 6>&1
570 # Name of the host.
571 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
572 # so uname gets run too.
573 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
576 # Initializations.
578 ac_default_prefix=/usr/local
579 ac_clean_files=
580 ac_config_libobj_dir=.
581 LIBOBJS=
582 cross_compiling=no
583 subdirs=
584 MFLAGS=
585 MAKEFLAGS=
587 # Identity of this package.
588 PACKAGE_NAME='package-unused'
589 PACKAGE_TARNAME='libgm2'
590 PACKAGE_VERSION='version-unused'
591 PACKAGE_STRING='package-unused version-unused'
592 PACKAGE_BUGREPORT=''
593 PACKAGE_URL=''
595 ac_unique_file="Makefile.am"
596 # Factoring default headers for most tests.
597 ac_includes_default="\
598 #include <stdio.h>
599 #ifdef HAVE_SYS_TYPES_H
600 # include <sys/types.h>
601 #endif
602 #ifdef HAVE_SYS_STAT_H
603 # include <sys/stat.h>
604 #endif
605 #ifdef STDC_HEADERS
606 # include <stdlib.h>
607 # include <stddef.h>
608 #else
609 # ifdef HAVE_STDLIB_H
610 # include <stdlib.h>
611 # endif
612 #endif
613 #ifdef HAVE_STRING_H
614 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
615 # include <memory.h>
616 # endif
617 # include <string.h>
618 #endif
619 #ifdef HAVE_STRINGS_H
620 # include <strings.h>
621 #endif
622 #ifdef HAVE_INTTYPES_H
623 # include <inttypes.h>
624 #endif
625 #ifdef HAVE_STDINT_H
626 # include <stdint.h>
627 #endif
628 #ifdef HAVE_UNISTD_H
629 # include <unistd.h>
630 #endif"
632 ac_unique_file="Makefile.am"
633 ac_subst_vars='am__EXEEXT_FALSE
634 am__EXEEXT_TRUE
635 LTLIBOBJS
636 LIBOBJS
637 get_gcc_base_ver
638 TARGET_DARWIN_FALSE
639 TARGET_DARWIN_TRUE
640 BUILD_LOGLIB_FALSE
641 BUILD_LOGLIB_TRUE
642 BUILD_CORLIB_FALSE
643 BUILD_CORLIB_TRUE
644 BUILD_ISOLIB_FALSE
645 BUILD_ISOLIB_TRUE
646 BUILD_PIMLIB_FALSE
647 BUILD_PIMLIB_TRUE
648 GM2_FOR_TARGET
649 CC_FOR_BUILD
650 enable_static
651 enable_shared
652 ENABLE_DARWIN_AT_RPATH_FALSE
653 ENABLE_DARWIN_AT_RPATH_TRUE
654 OTOOL64
655 OTOOL
656 LIPO
657 NMEDIT
658 DSYMUTIL
659 OBJDUMP
660 ac_ct_DUMPBIN
661 DUMPBIN
663 FGREP
665 LIBTOOL
667 am__fastdepCCAS_FALSE
668 am__fastdepCCAS_TRUE
669 CCASDEPMODE
670 CCASFLAGS
671 CCAS
672 toolexeclibdir
673 toolexecdir
674 slibdir
675 target_subdir
676 host_subdir
677 build_subdir
678 build_libsubdir
679 target_noncanonical
680 host_noncanonical
681 AM_BACKSLASH
682 AM_DEFAULT_VERBOSITY
683 AM_DEFAULT_V
684 AM_V
685 am__fastdepCXX_FALSE
686 am__fastdepCXX_TRUE
687 CXXDEPMODE
688 am__fastdepCC_FALSE
689 am__fastdepCC_TRUE
690 CCDEPMODE
691 am__nodep
692 AMDEPBACKSLASH
693 AMDEP_FALSE
694 AMDEP_TRUE
695 am__quote
696 am__include
697 DEPDIR
698 am__untar
699 am__tar
700 AMTAR
701 am__leading_dot
702 SET_MAKE
704 mkdir_p
705 MKDIR_P
706 INSTALL_STRIP_PROGRAM
707 STRIP
708 install_sh
709 MAKEINFO
710 AUTOHEADER
711 AUTOMAKE
712 AUTOCONF
713 ACLOCAL
714 VERSION
715 PACKAGE
716 CYGPATH_W
717 am__isrc
718 INSTALL_DATA
719 INSTALL_SCRIPT
720 INSTALL_PROGRAM
721 GLIBCXX_LIBS
722 CXXCPP
723 ac_ct_CXX
724 CXXFLAGS
726 MAINT
727 MAINTAINER_MODE_FALSE
728 MAINTAINER_MODE_TRUE
729 RANLIB
732 LN_S
733 toplevel_srcdir
734 toplevel_builddir
735 glibcxx_srcdir
736 glibcxx_builddir
737 target_os
738 target_vendor
739 target_cpu
740 target
741 host_os
742 host_vendor
743 host_cpu
744 host
745 build_os
746 build_vendor
747 build_cpu
748 build
749 EGREP
750 GREP
752 OBJEXT
753 EXEEXT
754 ac_ct_CC
755 CPPFLAGS
756 LDFLAGS
757 CFLAGS
759 multi_basedir
760 libtool_VERSION
761 target_alias
762 host_alias
763 build_alias
764 LIBS
765 ECHO_T
766 ECHO_N
767 ECHO_C
768 DEFS
769 mandir
770 localedir
771 libdir
772 psdir
773 pdfdir
774 dvidir
775 htmldir
776 infodir
777 docdir
778 oldincludedir
779 includedir
780 localstatedir
781 sharedstatedir
782 sysconfdir
783 datadir
784 datarootdir
785 libexecdir
786 sbindir
787 bindir
788 program_transform_name
789 prefix
790 exec_prefix
791 PACKAGE_URL
792 PACKAGE_BUGREPORT
793 PACKAGE_STRING
794 PACKAGE_VERSION
795 PACKAGE_TARNAME
796 PACKAGE_NAME
797 PATH_SEPARATOR
798 SHELL'
799 ac_subst_files=''
800 ac_user_opts='
801 enable_option_checking
802 enable_multilib
803 with_target_subdir
804 with_cross_host
805 with_newlib
806 enable_maintainer_mode
807 enable_libstdcxx_time
808 enable_dependency_tracking
809 enable_silent_rules
810 with_build_libsubdir
811 enable_version_specific_runtime_libs
812 with_slibdir
813 enable_shared
814 enable_static
815 with_pic
816 enable_fast_install
817 with_gnu_ld
818 enable_libtool_lock
819 enable_darwin_at_rpath
820 with_gcc_major_version_only
822 ac_precious_vars='build_alias
823 host_alias
824 target_alias
826 CFLAGS
827 LDFLAGS
828 LIBS
829 CPPFLAGS
832 CXXFLAGS
834 CXXCPP'
837 # Initialize some variables set by options.
838 ac_init_help=
839 ac_init_version=false
840 ac_unrecognized_opts=
841 ac_unrecognized_sep=
842 # The variables have the same names as the options, with
843 # dashes changed to underlines.
844 cache_file=/dev/null
845 exec_prefix=NONE
846 no_create=
847 no_recursion=
848 prefix=NONE
849 program_prefix=NONE
850 program_suffix=NONE
851 program_transform_name=s,x,x,
852 silent=
853 site=
854 srcdir=
855 verbose=
856 x_includes=NONE
857 x_libraries=NONE
859 # Installation directory options.
860 # These are left unexpanded so users can "make install exec_prefix=/foo"
861 # and all the variables that are supposed to be based on exec_prefix
862 # by default will actually change.
863 # Use braces instead of parens because sh, perl, etc. also accept them.
864 # (The list follows the same order as the GNU Coding Standards.)
865 bindir='${exec_prefix}/bin'
866 sbindir='${exec_prefix}/sbin'
867 libexecdir='${exec_prefix}/libexec'
868 datarootdir='${prefix}/share'
869 datadir='${datarootdir}'
870 sysconfdir='${prefix}/etc'
871 sharedstatedir='${prefix}/com'
872 localstatedir='${prefix}/var'
873 includedir='${prefix}/include'
874 oldincludedir='/usr/include'
875 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
876 infodir='${datarootdir}/info'
877 htmldir='${docdir}'
878 dvidir='${docdir}'
879 pdfdir='${docdir}'
880 psdir='${docdir}'
881 libdir='${exec_prefix}/lib'
882 localedir='${datarootdir}/locale'
883 mandir='${datarootdir}/man'
885 ac_prev=
886 ac_dashdash=
887 for ac_option
889 # If the previous option needs an argument, assign it.
890 if test -n "$ac_prev"; then
891 eval $ac_prev=\$ac_option
892 ac_prev=
893 continue
896 case $ac_option in
897 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
898 *=) ac_optarg= ;;
899 *) ac_optarg=yes ;;
900 esac
902 # Accept the important Cygnus configure options, so we can diagnose typos.
904 case $ac_dashdash$ac_option in
906 ac_dashdash=yes ;;
908 -bindir | --bindir | --bindi | --bind | --bin | --bi)
909 ac_prev=bindir ;;
910 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
911 bindir=$ac_optarg ;;
913 -build | --build | --buil | --bui | --bu)
914 ac_prev=build_alias ;;
915 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
916 build_alias=$ac_optarg ;;
918 -cache-file | --cache-file | --cache-fil | --cache-fi \
919 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
920 ac_prev=cache_file ;;
921 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
922 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
923 cache_file=$ac_optarg ;;
925 --config-cache | -C)
926 cache_file=config.cache ;;
928 -datadir | --datadir | --datadi | --datad)
929 ac_prev=datadir ;;
930 -datadir=* | --datadir=* | --datadi=* | --datad=*)
931 datadir=$ac_optarg ;;
933 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
934 | --dataroo | --dataro | --datar)
935 ac_prev=datarootdir ;;
936 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
937 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
938 datarootdir=$ac_optarg ;;
940 -disable-* | --disable-*)
941 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
942 # Reject names that are not valid shell variable names.
943 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
944 as_fn_error $? "invalid feature name: $ac_useropt"
945 ac_useropt_orig=$ac_useropt
946 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
947 case $ac_user_opts in
949 "enable_$ac_useropt"
950 "*) ;;
951 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
952 ac_unrecognized_sep=', ';;
953 esac
954 eval enable_$ac_useropt=no ;;
956 -docdir | --docdir | --docdi | --doc | --do)
957 ac_prev=docdir ;;
958 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
959 docdir=$ac_optarg ;;
961 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
962 ac_prev=dvidir ;;
963 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
964 dvidir=$ac_optarg ;;
966 -enable-* | --enable-*)
967 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
968 # Reject names that are not valid shell variable names.
969 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
970 as_fn_error $? "invalid feature name: $ac_useropt"
971 ac_useropt_orig=$ac_useropt
972 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
973 case $ac_user_opts in
975 "enable_$ac_useropt"
976 "*) ;;
977 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
978 ac_unrecognized_sep=', ';;
979 esac
980 eval enable_$ac_useropt=\$ac_optarg ;;
982 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
983 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
984 | --exec | --exe | --ex)
985 ac_prev=exec_prefix ;;
986 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
987 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
988 | --exec=* | --exe=* | --ex=*)
989 exec_prefix=$ac_optarg ;;
991 -gas | --gas | --ga | --g)
992 # Obsolete; use --with-gas.
993 with_gas=yes ;;
995 -help | --help | --hel | --he | -h)
996 ac_init_help=long ;;
997 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
998 ac_init_help=recursive ;;
999 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1000 ac_init_help=short ;;
1002 -host | --host | --hos | --ho)
1003 ac_prev=host_alias ;;
1004 -host=* | --host=* | --hos=* | --ho=*)
1005 host_alias=$ac_optarg ;;
1007 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1008 ac_prev=htmldir ;;
1009 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1010 | --ht=*)
1011 htmldir=$ac_optarg ;;
1013 -includedir | --includedir | --includedi | --included | --include \
1014 | --includ | --inclu | --incl | --inc)
1015 ac_prev=includedir ;;
1016 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1017 | --includ=* | --inclu=* | --incl=* | --inc=*)
1018 includedir=$ac_optarg ;;
1020 -infodir | --infodir | --infodi | --infod | --info | --inf)
1021 ac_prev=infodir ;;
1022 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1023 infodir=$ac_optarg ;;
1025 -libdir | --libdir | --libdi | --libd)
1026 ac_prev=libdir ;;
1027 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1028 libdir=$ac_optarg ;;
1030 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1031 | --libexe | --libex | --libe)
1032 ac_prev=libexecdir ;;
1033 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1034 | --libexe=* | --libex=* | --libe=*)
1035 libexecdir=$ac_optarg ;;
1037 -localedir | --localedir | --localedi | --localed | --locale)
1038 ac_prev=localedir ;;
1039 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1040 localedir=$ac_optarg ;;
1042 -localstatedir | --localstatedir | --localstatedi | --localstated \
1043 | --localstate | --localstat | --localsta | --localst | --locals)
1044 ac_prev=localstatedir ;;
1045 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1046 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1047 localstatedir=$ac_optarg ;;
1049 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1050 ac_prev=mandir ;;
1051 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1052 mandir=$ac_optarg ;;
1054 -nfp | --nfp | --nf)
1055 # Obsolete; use --without-fp.
1056 with_fp=no ;;
1058 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1059 | --no-cr | --no-c | -n)
1060 no_create=yes ;;
1062 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1063 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1064 no_recursion=yes ;;
1066 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1067 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1068 | --oldin | --oldi | --old | --ol | --o)
1069 ac_prev=oldincludedir ;;
1070 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1071 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1072 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1073 oldincludedir=$ac_optarg ;;
1075 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1076 ac_prev=prefix ;;
1077 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1078 prefix=$ac_optarg ;;
1080 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1081 | --program-pre | --program-pr | --program-p)
1082 ac_prev=program_prefix ;;
1083 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1084 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1085 program_prefix=$ac_optarg ;;
1087 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1088 | --program-suf | --program-su | --program-s)
1089 ac_prev=program_suffix ;;
1090 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1091 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1092 program_suffix=$ac_optarg ;;
1094 -program-transform-name | --program-transform-name \
1095 | --program-transform-nam | --program-transform-na \
1096 | --program-transform-n | --program-transform- \
1097 | --program-transform | --program-transfor \
1098 | --program-transfo | --program-transf \
1099 | --program-trans | --program-tran \
1100 | --progr-tra | --program-tr | --program-t)
1101 ac_prev=program_transform_name ;;
1102 -program-transform-name=* | --program-transform-name=* \
1103 | --program-transform-nam=* | --program-transform-na=* \
1104 | --program-transform-n=* | --program-transform-=* \
1105 | --program-transform=* | --program-transfor=* \
1106 | --program-transfo=* | --program-transf=* \
1107 | --program-trans=* | --program-tran=* \
1108 | --progr-tra=* | --program-tr=* | --program-t=*)
1109 program_transform_name=$ac_optarg ;;
1111 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1112 ac_prev=pdfdir ;;
1113 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1114 pdfdir=$ac_optarg ;;
1116 -psdir | --psdir | --psdi | --psd | --ps)
1117 ac_prev=psdir ;;
1118 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1119 psdir=$ac_optarg ;;
1121 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1122 | -silent | --silent | --silen | --sile | --sil)
1123 silent=yes ;;
1125 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1126 ac_prev=sbindir ;;
1127 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1128 | --sbi=* | --sb=*)
1129 sbindir=$ac_optarg ;;
1131 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1132 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1133 | --sharedst | --shareds | --shared | --share | --shar \
1134 | --sha | --sh)
1135 ac_prev=sharedstatedir ;;
1136 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1137 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1138 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1139 | --sha=* | --sh=*)
1140 sharedstatedir=$ac_optarg ;;
1142 -site | --site | --sit)
1143 ac_prev=site ;;
1144 -site=* | --site=* | --sit=*)
1145 site=$ac_optarg ;;
1147 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1148 ac_prev=srcdir ;;
1149 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1150 srcdir=$ac_optarg ;;
1152 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1153 | --syscon | --sysco | --sysc | --sys | --sy)
1154 ac_prev=sysconfdir ;;
1155 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1156 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1157 sysconfdir=$ac_optarg ;;
1159 -target | --target | --targe | --targ | --tar | --ta | --t)
1160 ac_prev=target_alias ;;
1161 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1162 target_alias=$ac_optarg ;;
1164 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1165 verbose=yes ;;
1167 -version | --version | --versio | --versi | --vers | -V)
1168 ac_init_version=: ;;
1170 -with-* | --with-*)
1171 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1172 # Reject names that are not valid shell variable names.
1173 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1174 as_fn_error $? "invalid package name: $ac_useropt"
1175 ac_useropt_orig=$ac_useropt
1176 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1177 case $ac_user_opts in
1179 "with_$ac_useropt"
1180 "*) ;;
1181 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1182 ac_unrecognized_sep=', ';;
1183 esac
1184 eval with_$ac_useropt=\$ac_optarg ;;
1186 -without-* | --without-*)
1187 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1188 # Reject names that are not valid shell variable names.
1189 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1190 as_fn_error $? "invalid package name: $ac_useropt"
1191 ac_useropt_orig=$ac_useropt
1192 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1193 case $ac_user_opts in
1195 "with_$ac_useropt"
1196 "*) ;;
1197 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1198 ac_unrecognized_sep=', ';;
1199 esac
1200 eval with_$ac_useropt=no ;;
1202 --x)
1203 # Obsolete; use --with-x.
1204 with_x=yes ;;
1206 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1207 | --x-incl | --x-inc | --x-in | --x-i)
1208 ac_prev=x_includes ;;
1209 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1210 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1211 x_includes=$ac_optarg ;;
1213 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1214 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1215 ac_prev=x_libraries ;;
1216 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1217 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1218 x_libraries=$ac_optarg ;;
1220 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1221 Try \`$0 --help' for more information"
1224 *=*)
1225 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1226 # Reject names that are not valid shell variable names.
1227 case $ac_envvar in #(
1228 '' | [0-9]* | *[!_$as_cr_alnum]* )
1229 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1230 esac
1231 eval $ac_envvar=\$ac_optarg
1232 export $ac_envvar ;;
1235 # FIXME: should be removed in autoconf 3.0.
1236 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1237 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1238 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1239 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1242 esac
1243 done
1245 if test -n "$ac_prev"; then
1246 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1247 as_fn_error $? "missing argument to $ac_option"
1250 if test -n "$ac_unrecognized_opts"; then
1251 case $enable_option_checking in
1252 no) ;;
1253 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1254 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1255 esac
1258 # Check all directory arguments for consistency.
1259 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1260 datadir sysconfdir sharedstatedir localstatedir includedir \
1261 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1262 libdir localedir mandir
1264 eval ac_val=\$$ac_var
1265 # Remove trailing slashes.
1266 case $ac_val in
1267 */ )
1268 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1269 eval $ac_var=\$ac_val;;
1270 esac
1271 # Be sure to have absolute directory names.
1272 case $ac_val in
1273 [\\/$]* | ?:[\\/]* ) continue;;
1274 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1275 esac
1276 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1277 done
1279 # There might be people who depend on the old broken behavior: `$host'
1280 # used to hold the argument of --host etc.
1281 # FIXME: To remove some day.
1282 build=$build_alias
1283 host=$host_alias
1284 target=$target_alias
1286 # FIXME: To remove some day.
1287 if test "x$host_alias" != x; then
1288 if test "x$build_alias" = x; then
1289 cross_compiling=maybe
1290 elif test "x$build_alias" != "x$host_alias"; then
1291 cross_compiling=yes
1295 ac_tool_prefix=
1296 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1298 test "$silent" = yes && exec 6>/dev/null
1301 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1302 ac_ls_di=`ls -di .` &&
1303 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1304 as_fn_error $? "working directory cannot be determined"
1305 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1306 as_fn_error $? "pwd does not report name of working directory"
1309 # Find the source files, if location was not specified.
1310 if test -z "$srcdir"; then
1311 ac_srcdir_defaulted=yes
1312 # Try the directory containing this script, then the parent directory.
1313 ac_confdir=`$as_dirname -- "$as_myself" ||
1314 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1315 X"$as_myself" : 'X\(//\)[^/]' \| \
1316 X"$as_myself" : 'X\(//\)$' \| \
1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1318 $as_echo X"$as_myself" |
1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1320 s//\1/
1323 /^X\(\/\/\)[^/].*/{
1324 s//\1/
1327 /^X\(\/\/\)$/{
1328 s//\1/
1331 /^X\(\/\).*/{
1332 s//\1/
1335 s/.*/./; q'`
1336 srcdir=$ac_confdir
1337 if test ! -r "$srcdir/$ac_unique_file"; then
1338 srcdir=..
1340 else
1341 ac_srcdir_defaulted=no
1343 if test ! -r "$srcdir/$ac_unique_file"; then
1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1345 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1347 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1348 ac_abs_confdir=`(
1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1350 pwd)`
1351 # When building in place, set srcdir=.
1352 if test "$ac_abs_confdir" = "$ac_pwd"; then
1353 srcdir=.
1355 # Remove unnecessary trailing slashes from srcdir.
1356 # Double slashes in file names in object file debugging info
1357 # mess up M-x gdb in Emacs.
1358 case $srcdir in
1359 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1360 esac
1361 for ac_var in $ac_precious_vars; do
1362 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1363 eval ac_env_${ac_var}_value=\$${ac_var}
1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1365 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1366 done
1369 # Report the --help message.
1371 if test "$ac_init_help" = "long"; then
1372 # Omit some internal or obsolete options to make the list less imposing.
1373 # This message is too long to be a string in the A/UX 3.1 sh.
1374 cat <<_ACEOF
1375 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1377 Usage: $0 [OPTION]... [VAR=VALUE]...
1379 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1380 VAR=VALUE. See below for descriptions of some of the useful variables.
1382 Defaults for the options are specified in brackets.
1384 Configuration:
1385 -h, --help display this help and exit
1386 --help=short display options specific to this package
1387 --help=recursive display the short help of all the included packages
1388 -V, --version display version information and exit
1389 -q, --quiet, --silent do not print \`checking ...' messages
1390 --cache-file=FILE cache test results in FILE [disabled]
1391 -C, --config-cache alias for \`--cache-file=config.cache'
1392 -n, --no-create do not create output files
1393 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1395 Installation directories:
1396 --prefix=PREFIX install architecture-independent files in PREFIX
1397 [$ac_default_prefix]
1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1399 [PREFIX]
1401 By default, \`make install' will install all the files in
1402 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1403 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1404 for instance \`--prefix=\$HOME'.
1406 For better control, use the options below.
1408 Fine tuning of the installation directories:
1409 --bindir=DIR user executables [EPREFIX/bin]
1410 --sbindir=DIR system admin executables [EPREFIX/sbin]
1411 --libexecdir=DIR program executables [EPREFIX/libexec]
1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1415 --libdir=DIR object code libraries [EPREFIX/lib]
1416 --includedir=DIR C header files [PREFIX/include]
1417 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1420 --infodir=DIR info documentation [DATAROOTDIR/info]
1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1422 --mandir=DIR man documentation [DATAROOTDIR/man]
1423 --docdir=DIR documentation root [DATAROOTDIR/doc/libgm2]
1424 --htmldir=DIR html documentation [DOCDIR]
1425 --dvidir=DIR dvi documentation [DOCDIR]
1426 --pdfdir=DIR pdf documentation [DOCDIR]
1427 --psdir=DIR ps documentation [DOCDIR]
1428 _ACEOF
1430 cat <<\_ACEOF
1432 Program names:
1433 --program-prefix=PREFIX prepend PREFIX to installed program names
1434 --program-suffix=SUFFIX append SUFFIX to installed program names
1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1437 System types:
1438 --build=BUILD configure for building on BUILD [guessed]
1439 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1440 --target=TARGET configure for building compilers for TARGET [HOST]
1441 _ACEOF
1444 if test -n "$ac_init_help"; then
1445 case $ac_init_help in
1446 short | recursive ) echo "Configuration of package-unused version-unused:";;
1447 esac
1448 cat <<\_ACEOF
1450 Optional Features:
1451 --disable-option-checking ignore unrecognized --enable/--with options
1452 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1453 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1454 --enable-multilib build many library versions (default)
1455 --enable-maintainer-mode
1456 enable make rules and dependencies not useful (and
1457 sometimes confusing) to the casual installer
1458 --enable-libstdcxx-time[=KIND]
1459 use KIND for check type [default=auto]
1460 --enable-dependency-tracking
1461 do not reject slow dependency extractors
1462 --disable-dependency-tracking
1463 speeds up one-time build
1464 --enable-silent-rules less verbose build output (undo: "make V=1")
1465 --disable-silent-rules verbose build output (undo: "make V=0")
1466 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1467 --enable-maintainer-mode
1468 enable make rules and dependencies not useful (and
1469 sometimes confusing) to the casual installer
1470 --enable-shared[=PKGS] build shared libraries [default=yes]
1471 --enable-static[=PKGS] build static libraries [default=yes]
1472 --enable-fast-install[=PKGS]
1473 optimize for fast installation [default=yes]
1474 --disable-libtool-lock avoid locking (might break parallel builds)
1475 --enable-darwin-at-rpath
1476 install libraries with @rpath/library-name, requires
1477 rpaths to be added to executables
1479 Optional Packages:
1480 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1481 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1482 --with-target-subdir=SUBDIR
1483 configuring in a subdirectory
1484 --with-cross-host=HOST configuring with a cross compiler
1485 --with-newlib assume newlib as a system C library
1486 --with-cross-host=HOST Configuring with a cross compiler
1487 --with-build-libsubdir=DIR Directory where to find libraries for build system
1488 --with-slibdir=DIR shared libraries in DIR LIBDIR
1489 --with-pic try to use only PIC/non-PIC objects [default=use
1490 both]
1491 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1492 --with-gcc-major-version-only
1493 use only GCC major number in filesystem paths
1495 Some influential environment variables:
1496 CC C compiler command
1497 CFLAGS C compiler flags
1498 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1499 nonstandard directory <lib dir>
1500 LIBS libraries to pass to the linker, e.g. -l<library>
1501 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1502 you have headers in a nonstandard directory <include dir>
1503 CPP C preprocessor
1504 CXX C++ compiler command
1505 CXXFLAGS C++ compiler flags
1506 CXXCPP C++ preprocessor
1507 CCAS assembler compiler command (defaults to CC)
1508 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1510 Use these variables to override the choices made by `configure' or to help
1511 it to find libraries and programs with nonstandard names/locations.
1513 Report bugs to the package provider.
1514 _ACEOF
1515 ac_status=$?
1518 if test "$ac_init_help" = "recursive"; then
1519 # If there are subdirs, report their specific --help.
1520 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1521 test -d "$ac_dir" ||
1522 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1523 continue
1524 ac_builddir=.
1526 case "$ac_dir" in
1527 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1529 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1530 # A ".." for each directory in $ac_dir_suffix.
1531 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1532 case $ac_top_builddir_sub in
1533 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1534 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1535 esac ;;
1536 esac
1537 ac_abs_top_builddir=$ac_pwd
1538 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1539 # for backward compatibility:
1540 ac_top_builddir=$ac_top_build_prefix
1542 case $srcdir in
1543 .) # We are building in place.
1544 ac_srcdir=.
1545 ac_top_srcdir=$ac_top_builddir_sub
1546 ac_abs_top_srcdir=$ac_pwd ;;
1547 [\\/]* | ?:[\\/]* ) # Absolute name.
1548 ac_srcdir=$srcdir$ac_dir_suffix;
1549 ac_top_srcdir=$srcdir
1550 ac_abs_top_srcdir=$srcdir ;;
1551 *) # Relative name.
1552 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1553 ac_top_srcdir=$ac_top_build_prefix$srcdir
1554 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1555 esac
1556 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1558 cd "$ac_dir" || { ac_status=$?; continue; }
1559 # Check for guested configure.
1560 if test -f "$ac_srcdir/configure.gnu"; then
1561 echo &&
1562 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1563 elif test -f "$ac_srcdir/configure"; then
1564 echo &&
1565 $SHELL "$ac_srcdir/configure" --help=recursive
1566 else
1567 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1568 fi || ac_status=$?
1569 cd "$ac_pwd" || { ac_status=$?; break; }
1570 done
1573 test -n "$ac_init_help" && exit $ac_status
1574 if $ac_init_version; then
1575 cat <<\_ACEOF
1576 package-unused configure version-unused
1577 generated by GNU Autoconf 2.69
1579 Copyright (C) 2012 Free Software Foundation, Inc.
1580 This configure script is free software; the Free Software Foundation
1581 gives unlimited permission to copy, distribute and modify it.
1582 _ACEOF
1583 exit
1586 ## ------------------------ ##
1587 ## Autoconf initialization. ##
1588 ## ------------------------ ##
1590 # ac_fn_c_try_compile LINENO
1591 # --------------------------
1592 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1593 ac_fn_c_try_compile ()
1595 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1596 rm -f conftest.$ac_objext
1597 if { { ac_try="$ac_compile"
1598 case "(($ac_try" in
1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1600 *) ac_try_echo=$ac_try;;
1601 esac
1602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1603 $as_echo "$ac_try_echo"; } >&5
1604 (eval "$ac_compile") 2>conftest.err
1605 ac_status=$?
1606 if test -s conftest.err; then
1607 grep -v '^ *+' conftest.err >conftest.er1
1608 cat conftest.er1 >&5
1609 mv -f conftest.er1 conftest.err
1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1612 test $ac_status = 0; } && {
1613 test -z "$ac_c_werror_flag" ||
1614 test ! -s conftest.err
1615 } && test -s conftest.$ac_objext; then :
1616 ac_retval=0
1617 else
1618 $as_echo "$as_me: failed program was:" >&5
1619 sed 's/^/| /' conftest.$ac_ext >&5
1621 ac_retval=1
1623 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1624 as_fn_set_status $ac_retval
1626 } # ac_fn_c_try_compile
1628 # ac_fn_c_try_cpp LINENO
1629 # ----------------------
1630 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1631 ac_fn_c_try_cpp ()
1633 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1634 if { { ac_try="$ac_cpp conftest.$ac_ext"
1635 case "(($ac_try" in
1636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1637 *) ac_try_echo=$ac_try;;
1638 esac
1639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1640 $as_echo "$ac_try_echo"; } >&5
1641 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1642 ac_status=$?
1643 if test -s conftest.err; then
1644 grep -v '^ *+' conftest.err >conftest.er1
1645 cat conftest.er1 >&5
1646 mv -f conftest.er1 conftest.err
1648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1649 test $ac_status = 0; } > conftest.i && {
1650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1651 test ! -s conftest.err
1652 }; then :
1653 ac_retval=0
1654 else
1655 $as_echo "$as_me: failed program was:" >&5
1656 sed 's/^/| /' conftest.$ac_ext >&5
1658 ac_retval=1
1660 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1661 as_fn_set_status $ac_retval
1663 } # ac_fn_c_try_cpp
1665 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1666 # -------------------------------------------------------
1667 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1668 # the include files in INCLUDES and setting the cache variable VAR
1669 # accordingly.
1670 ac_fn_c_check_header_mongrel ()
1672 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1673 if eval \${$3+:} false; then :
1674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1675 $as_echo_n "checking for $2... " >&6; }
1676 if eval \${$3+:} false; then :
1677 $as_echo_n "(cached) " >&6
1679 eval ac_res=\$$3
1680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1681 $as_echo "$ac_res" >&6; }
1682 else
1683 # Is the header compilable?
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1685 $as_echo_n "checking $2 usability... " >&6; }
1686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1687 /* end confdefs.h. */
1689 #include <$2>
1690 _ACEOF
1691 if ac_fn_c_try_compile "$LINENO"; then :
1692 ac_header_compiler=yes
1693 else
1694 ac_header_compiler=no
1696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1698 $as_echo "$ac_header_compiler" >&6; }
1700 # Is the header present?
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1702 $as_echo_n "checking $2 presence... " >&6; }
1703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1704 /* end confdefs.h. */
1705 #include <$2>
1706 _ACEOF
1707 if ac_fn_c_try_cpp "$LINENO"; then :
1708 ac_header_preproc=yes
1709 else
1710 ac_header_preproc=no
1712 rm -f conftest.err conftest.i conftest.$ac_ext
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1714 $as_echo "$ac_header_preproc" >&6; }
1716 # So? What about this header?
1717 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1718 yes:no: )
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1720 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1722 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1724 no:yes:* )
1725 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1726 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1728 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1730 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1732 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1734 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1736 esac
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1738 $as_echo_n "checking for $2... " >&6; }
1739 if eval \${$3+:} false; then :
1740 $as_echo_n "(cached) " >&6
1741 else
1742 eval "$3=\$ac_header_compiler"
1744 eval ac_res=\$$3
1745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1746 $as_echo "$ac_res" >&6; }
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1750 } # ac_fn_c_check_header_mongrel
1752 # ac_fn_c_try_run LINENO
1753 # ----------------------
1754 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1755 # that executables *can* be run.
1756 ac_fn_c_try_run ()
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 if { { ac_try="$ac_link"
1760 case "(($ac_try" in
1761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1762 *) ac_try_echo=$ac_try;;
1763 esac
1764 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1765 $as_echo "$ac_try_echo"; } >&5
1766 (eval "$ac_link") 2>&5
1767 ac_status=$?
1768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1769 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1770 { { case "(($ac_try" in
1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1772 *) ac_try_echo=$ac_try;;
1773 esac
1774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1775 $as_echo "$ac_try_echo"; } >&5
1776 (eval "$ac_try") 2>&5
1777 ac_status=$?
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; }; }; then :
1780 ac_retval=0
1781 else
1782 $as_echo "$as_me: program exited with status $ac_status" >&5
1783 $as_echo "$as_me: failed program was:" >&5
1784 sed 's/^/| /' conftest.$ac_ext >&5
1786 ac_retval=$ac_status
1788 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1789 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1790 as_fn_set_status $ac_retval
1792 } # ac_fn_c_try_run
1794 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1795 # -------------------------------------------------------
1796 # Tests whether HEADER exists and can be compiled using the include files in
1797 # INCLUDES, setting the cache variable VAR accordingly.
1798 ac_fn_c_check_header_compile ()
1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1802 $as_echo_n "checking for $2... " >&6; }
1803 if eval \${$3+:} false; then :
1804 $as_echo_n "(cached) " >&6
1805 else
1806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1807 /* end confdefs.h. */
1809 #include <$2>
1810 _ACEOF
1811 if ac_fn_c_try_compile "$LINENO"; then :
1812 eval "$3=yes"
1813 else
1814 eval "$3=no"
1816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1818 eval ac_res=\$$3
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1820 $as_echo "$ac_res" >&6; }
1821 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1823 } # ac_fn_c_check_header_compile
1825 # ac_fn_cxx_try_compile LINENO
1826 # ----------------------------
1827 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1828 ac_fn_cxx_try_compile ()
1830 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1831 rm -f conftest.$ac_objext
1832 if { { ac_try="$ac_compile"
1833 case "(($ac_try" in
1834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1835 *) ac_try_echo=$ac_try;;
1836 esac
1837 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1838 $as_echo "$ac_try_echo"; } >&5
1839 (eval "$ac_compile") 2>conftest.err
1840 ac_status=$?
1841 if test -s conftest.err; then
1842 grep -v '^ *+' conftest.err >conftest.er1
1843 cat conftest.er1 >&5
1844 mv -f conftest.er1 conftest.err
1846 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1847 test $ac_status = 0; } && {
1848 test -z "$ac_cxx_werror_flag" ||
1849 test ! -s conftest.err
1850 } && test -s conftest.$ac_objext; then :
1851 ac_retval=0
1852 else
1853 $as_echo "$as_me: failed program was:" >&5
1854 sed 's/^/| /' conftest.$ac_ext >&5
1856 ac_retval=1
1858 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1859 as_fn_set_status $ac_retval
1861 } # ac_fn_cxx_try_compile
1863 # ac_fn_cxx_try_cpp LINENO
1864 # ------------------------
1865 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1866 ac_fn_cxx_try_cpp ()
1868 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1869 if { { ac_try="$ac_cpp conftest.$ac_ext"
1870 case "(($ac_try" in
1871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1872 *) ac_try_echo=$ac_try;;
1873 esac
1874 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1875 $as_echo "$ac_try_echo"; } >&5
1876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1877 ac_status=$?
1878 if test -s conftest.err; then
1879 grep -v '^ *+' conftest.err >conftest.er1
1880 cat conftest.er1 >&5
1881 mv -f conftest.er1 conftest.err
1883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1884 test $ac_status = 0; } > conftest.i && {
1885 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1886 test ! -s conftest.err
1887 }; then :
1888 ac_retval=0
1889 else
1890 $as_echo "$as_me: failed program was:" >&5
1891 sed 's/^/| /' conftest.$ac_ext >&5
1893 ac_retval=1
1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896 as_fn_set_status $ac_retval
1898 } # ac_fn_cxx_try_cpp
1900 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1901 # ---------------------------------------------------------
1902 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1903 # the include files in INCLUDES and setting the cache variable VAR
1904 # accordingly.
1905 ac_fn_cxx_check_header_mongrel ()
1907 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1908 if eval \${$3+:} false; then :
1909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1910 $as_echo_n "checking for $2... " >&6; }
1911 if eval \${$3+:} false; then :
1912 $as_echo_n "(cached) " >&6
1914 eval ac_res=\$$3
1915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1916 $as_echo "$ac_res" >&6; }
1917 else
1918 # Is the header compilable?
1919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1920 $as_echo_n "checking $2 usability... " >&6; }
1921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1922 /* end confdefs.h. */
1924 #include <$2>
1925 _ACEOF
1926 if ac_fn_cxx_try_compile "$LINENO"; then :
1927 ac_header_compiler=yes
1928 else
1929 ac_header_compiler=no
1931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1933 $as_echo "$ac_header_compiler" >&6; }
1935 # Is the header present?
1936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1937 $as_echo_n "checking $2 presence... " >&6; }
1938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1939 /* end confdefs.h. */
1940 #include <$2>
1941 _ACEOF
1942 if ac_fn_cxx_try_cpp "$LINENO"; then :
1943 ac_header_preproc=yes
1944 else
1945 ac_header_preproc=no
1947 rm -f conftest.err conftest.i conftest.$ac_ext
1948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1949 $as_echo "$ac_header_preproc" >&6; }
1951 # So? What about this header?
1952 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1953 yes:no: )
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1955 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1957 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1959 no:yes:* )
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1961 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1962 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1963 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1965 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1967 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1968 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1969 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1971 esac
1972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1973 $as_echo_n "checking for $2... " >&6; }
1974 if eval \${$3+:} false; then :
1975 $as_echo_n "(cached) " >&6
1976 else
1977 eval "$3=\$ac_header_compiler"
1979 eval ac_res=\$$3
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1981 $as_echo "$ac_res" >&6; }
1983 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1985 } # ac_fn_cxx_check_header_mongrel
1987 # ac_fn_cxx_try_link LINENO
1988 # -------------------------
1989 # Try to link conftest.$ac_ext, and return whether this succeeded.
1990 ac_fn_cxx_try_link ()
1992 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1993 rm -f conftest.$ac_objext conftest$ac_exeext
1994 if { { ac_try="$ac_link"
1995 case "(($ac_try" in
1996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1997 *) ac_try_echo=$ac_try;;
1998 esac
1999 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2000 $as_echo "$ac_try_echo"; } >&5
2001 (eval "$ac_link") 2>conftest.err
2002 ac_status=$?
2003 if test -s conftest.err; then
2004 grep -v '^ *+' conftest.err >conftest.er1
2005 cat conftest.er1 >&5
2006 mv -f conftest.er1 conftest.err
2008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2009 test $ac_status = 0; } && {
2010 test -z "$ac_cxx_werror_flag" ||
2011 test ! -s conftest.err
2012 } && test -s conftest$ac_exeext && {
2013 test "$cross_compiling" = yes ||
2014 test -x conftest$ac_exeext
2015 }; then :
2016 ac_retval=0
2017 else
2018 $as_echo "$as_me: failed program was:" >&5
2019 sed 's/^/| /' conftest.$ac_ext >&5
2021 ac_retval=1
2023 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2024 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2025 # interfere with the next link command; also delete a directory that is
2026 # left behind by Apple's compiler. We do this before executing the actions.
2027 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2028 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2029 as_fn_set_status $ac_retval
2031 } # ac_fn_cxx_try_link
2033 # ac_fn_cxx_check_func LINENO FUNC VAR
2034 # ------------------------------------
2035 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2036 ac_fn_cxx_check_func ()
2038 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2040 $as_echo_n "checking for $2... " >&6; }
2041 if eval \${$3+:} false; then :
2042 $as_echo_n "(cached) " >&6
2043 else
2044 if test x$gcc_no_link = xyes; then
2045 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2049 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2050 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2051 #define $2 innocuous_$2
2053 /* System header to define __stub macros and hopefully few prototypes,
2054 which can conflict with char $2 (); below.
2055 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2056 <limits.h> exists even on freestanding compilers. */
2058 #ifdef __STDC__
2059 # include <limits.h>
2060 #else
2061 # include <assert.h>
2062 #endif
2064 #undef $2
2066 /* Override any GCC internal prototype to avoid an error.
2067 Use char because int might match the return type of a GCC
2068 builtin and then its argument prototype would still apply. */
2069 #ifdef __cplusplus
2070 extern "C"
2071 #endif
2072 char $2 ();
2073 /* The GNU C library defines this for functions which it implements
2074 to always fail with ENOSYS. Some functions are actually named
2075 something starting with __ and the normal name is an alias. */
2076 #if defined __stub_$2 || defined __stub___$2
2077 choke me
2078 #endif
2081 main ()
2083 return $2 ();
2085 return 0;
2087 _ACEOF
2088 if ac_fn_cxx_try_link "$LINENO"; then :
2089 eval "$3=yes"
2090 else
2091 eval "$3=no"
2093 rm -f core conftest.err conftest.$ac_objext \
2094 conftest$ac_exeext conftest.$ac_ext
2096 eval ac_res=\$$3
2097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2098 $as_echo "$ac_res" >&6; }
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2101 } # ac_fn_cxx_check_func
2103 # ac_fn_c_try_link LINENO
2104 # -----------------------
2105 # Try to link conftest.$ac_ext, and return whether this succeeded.
2106 ac_fn_c_try_link ()
2108 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2109 rm -f conftest.$ac_objext conftest$ac_exeext
2110 if { { ac_try="$ac_link"
2111 case "(($ac_try" in
2112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2113 *) ac_try_echo=$ac_try;;
2114 esac
2115 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2116 $as_echo "$ac_try_echo"; } >&5
2117 (eval "$ac_link") 2>conftest.err
2118 ac_status=$?
2119 if test -s conftest.err; then
2120 grep -v '^ *+' conftest.err >conftest.er1
2121 cat conftest.er1 >&5
2122 mv -f conftest.er1 conftest.err
2124 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2125 test $ac_status = 0; } && {
2126 test -z "$ac_c_werror_flag" ||
2127 test ! -s conftest.err
2128 } && test -s conftest$ac_exeext && {
2129 test "$cross_compiling" = yes ||
2130 test -x conftest$ac_exeext
2131 }; then :
2132 ac_retval=0
2133 else
2134 $as_echo "$as_me: failed program was:" >&5
2135 sed 's/^/| /' conftest.$ac_ext >&5
2137 ac_retval=1
2139 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2140 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2141 # interfere with the next link command; also delete a directory that is
2142 # left behind by Apple's compiler. We do this before executing the actions.
2143 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2144 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145 as_fn_set_status $ac_retval
2147 } # ac_fn_c_try_link
2149 # ac_fn_c_check_func LINENO FUNC VAR
2150 # ----------------------------------
2151 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2152 ac_fn_c_check_func ()
2154 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2156 $as_echo_n "checking for $2... " >&6; }
2157 if eval \${$3+:} false; then :
2158 $as_echo_n "(cached) " >&6
2159 else
2160 if test x$gcc_no_link = xyes; then
2161 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
2163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2164 /* end confdefs.h. */
2165 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2166 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2167 #define $2 innocuous_$2
2169 /* System header to define __stub macros and hopefully few prototypes,
2170 which can conflict with char $2 (); below.
2171 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2172 <limits.h> exists even on freestanding compilers. */
2174 #ifdef __STDC__
2175 # include <limits.h>
2176 #else
2177 # include <assert.h>
2178 #endif
2180 #undef $2
2182 /* Override any GCC internal prototype to avoid an error.
2183 Use char because int might match the return type of a GCC
2184 builtin and then its argument prototype would still apply. */
2185 #ifdef __cplusplus
2186 extern "C"
2187 #endif
2188 char $2 ();
2189 /* The GNU C library defines this for functions which it implements
2190 to always fail with ENOSYS. Some functions are actually named
2191 something starting with __ and the normal name is an alias. */
2192 #if defined __stub_$2 || defined __stub___$2
2193 choke me
2194 #endif
2197 main ()
2199 return $2 ();
2201 return 0;
2203 _ACEOF
2204 if ac_fn_c_try_link "$LINENO"; then :
2205 eval "$3=yes"
2206 else
2207 eval "$3=no"
2209 rm -f core conftest.err conftest.$ac_objext \
2210 conftest$ac_exeext conftest.$ac_ext
2212 eval ac_res=\$$3
2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2214 $as_echo "$ac_res" >&6; }
2215 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2217 } # ac_fn_c_check_func
2219 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2220 # -------------------------------------------
2221 # Tests whether TYPE exists after having included INCLUDES, setting cache
2222 # variable VAR accordingly.
2223 ac_fn_c_check_type ()
2225 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2227 $as_echo_n "checking for $2... " >&6; }
2228 if eval \${$3+:} false; then :
2229 $as_echo_n "(cached) " >&6
2230 else
2231 eval "$3=no"
2232 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2233 /* end confdefs.h. */
2236 main ()
2238 if (sizeof ($2))
2239 return 0;
2241 return 0;
2243 _ACEOF
2244 if ac_fn_c_try_compile "$LINENO"; then :
2245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2246 /* end confdefs.h. */
2249 main ()
2251 if (sizeof (($2)))
2252 return 0;
2254 return 0;
2256 _ACEOF
2257 if ac_fn_c_try_compile "$LINENO"; then :
2259 else
2260 eval "$3=yes"
2262 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2266 eval ac_res=\$$3
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268 $as_echo "$ac_res" >&6; }
2269 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2271 } # ac_fn_c_check_type
2273 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2274 # ---------------------------------------------
2275 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2276 # accordingly.
2277 ac_fn_c_check_decl ()
2279 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2280 as_decl_name=`echo $2|sed 's/ *(.*//'`
2281 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2283 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2284 if eval \${$3+:} false; then :
2285 $as_echo_n "(cached) " >&6
2286 else
2287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2288 /* end confdefs.h. */
2291 main ()
2293 #ifndef $as_decl_name
2294 #ifdef __cplusplus
2295 (void) $as_decl_use;
2296 #else
2297 (void) $as_decl_name;
2298 #endif
2299 #endif
2302 return 0;
2304 _ACEOF
2305 if ac_fn_c_try_compile "$LINENO"; then :
2306 eval "$3=yes"
2307 else
2308 eval "$3=no"
2310 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2312 eval ac_res=\$$3
2313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2314 $as_echo "$ac_res" >&6; }
2315 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2317 } # ac_fn_c_check_decl
2318 cat >config.log <<_ACEOF
2319 This file contains any messages produced by compilers while
2320 running configure, to aid debugging if configure makes a mistake.
2322 It was created by package-unused $as_me version-unused, which was
2323 generated by GNU Autoconf 2.69. Invocation command line was
2325 $ $0 $@
2327 _ACEOF
2328 exec 5>>config.log
2330 cat <<_ASUNAME
2331 ## --------- ##
2332 ## Platform. ##
2333 ## --------- ##
2335 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2336 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2337 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2338 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2339 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2341 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2342 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2344 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2345 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2346 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2347 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2348 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2349 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2350 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2352 _ASUNAME
2354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2355 for as_dir in $PATH
2357 IFS=$as_save_IFS
2358 test -z "$as_dir" && as_dir=.
2359 $as_echo "PATH: $as_dir"
2360 done
2361 IFS=$as_save_IFS
2363 } >&5
2365 cat >&5 <<_ACEOF
2368 ## ----------- ##
2369 ## Core tests. ##
2370 ## ----------- ##
2372 _ACEOF
2375 # Keep a trace of the command line.
2376 # Strip out --no-create and --no-recursion so they do not pile up.
2377 # Strip out --silent because we don't want to record it for future runs.
2378 # Also quote any args containing shell meta-characters.
2379 # Make two passes to allow for proper duplicate-argument suppression.
2380 ac_configure_args=
2381 ac_configure_args0=
2382 ac_configure_args1=
2383 ac_must_keep_next=false
2384 for ac_pass in 1 2
2386 for ac_arg
2388 case $ac_arg in
2389 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2390 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2391 | -silent | --silent | --silen | --sile | --sil)
2392 continue ;;
2393 *\'*)
2394 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2395 esac
2396 case $ac_pass in
2397 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2399 as_fn_append ac_configure_args1 " '$ac_arg'"
2400 if test $ac_must_keep_next = true; then
2401 ac_must_keep_next=false # Got value, back to normal.
2402 else
2403 case $ac_arg in
2404 *=* | --config-cache | -C | -disable-* | --disable-* \
2405 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2406 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2407 | -with-* | --with-* | -without-* | --without-* | --x)
2408 case "$ac_configure_args0 " in
2409 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2410 esac
2412 -* ) ac_must_keep_next=true ;;
2413 esac
2415 as_fn_append ac_configure_args " '$ac_arg'"
2417 esac
2418 done
2419 done
2420 { ac_configure_args0=; unset ac_configure_args0;}
2421 { ac_configure_args1=; unset ac_configure_args1;}
2423 # When interrupted or exit'd, cleanup temporary files, and complete
2424 # config.log. We remove comments because anyway the quotes in there
2425 # would cause problems or look ugly.
2426 # WARNING: Use '\'' to represent an apostrophe within the trap.
2427 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2428 trap 'exit_status=$?
2429 # Save into config.log some information that might help in debugging.
2431 echo
2433 $as_echo "## ---------------- ##
2434 ## Cache variables. ##
2435 ## ---------------- ##"
2436 echo
2437 # The following way of writing the cache mishandles newlines in values,
2439 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2440 eval ac_val=\$$ac_var
2441 case $ac_val in #(
2442 *${as_nl}*)
2443 case $ac_var in #(
2444 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2445 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2446 esac
2447 case $ac_var in #(
2448 _ | IFS | as_nl) ;; #(
2449 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2450 *) { eval $ac_var=; unset $ac_var;} ;;
2451 esac ;;
2452 esac
2453 done
2454 (set) 2>&1 |
2455 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2456 *${as_nl}ac_space=\ *)
2457 sed -n \
2458 "s/'\''/'\''\\\\'\'''\''/g;
2459 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2460 ;; #(
2462 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2464 esac |
2465 sort
2467 echo
2469 $as_echo "## ----------------- ##
2470 ## Output variables. ##
2471 ## ----------------- ##"
2472 echo
2473 for ac_var in $ac_subst_vars
2475 eval ac_val=\$$ac_var
2476 case $ac_val in
2477 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2478 esac
2479 $as_echo "$ac_var='\''$ac_val'\''"
2480 done | sort
2481 echo
2483 if test -n "$ac_subst_files"; then
2484 $as_echo "## ------------------- ##
2485 ## File substitutions. ##
2486 ## ------------------- ##"
2487 echo
2488 for ac_var in $ac_subst_files
2490 eval ac_val=\$$ac_var
2491 case $ac_val in
2492 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2493 esac
2494 $as_echo "$ac_var='\''$ac_val'\''"
2495 done | sort
2496 echo
2499 if test -s confdefs.h; then
2500 $as_echo "## ----------- ##
2501 ## confdefs.h. ##
2502 ## ----------- ##"
2503 echo
2504 cat confdefs.h
2505 echo
2507 test "$ac_signal" != 0 &&
2508 $as_echo "$as_me: caught signal $ac_signal"
2509 $as_echo "$as_me: exit $exit_status"
2510 } >&5
2511 rm -f core *.core core.conftest.* &&
2512 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2513 exit $exit_status
2515 for ac_signal in 1 2 13 15; do
2516 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2517 done
2518 ac_signal=0
2520 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2521 rm -f -r conftest* confdefs.h
2523 $as_echo "/* confdefs.h */" > confdefs.h
2525 # Predefined preprocessor variables.
2527 cat >>confdefs.h <<_ACEOF
2528 #define PACKAGE_NAME "$PACKAGE_NAME"
2529 _ACEOF
2531 cat >>confdefs.h <<_ACEOF
2532 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2533 _ACEOF
2535 cat >>confdefs.h <<_ACEOF
2536 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2537 _ACEOF
2539 cat >>confdefs.h <<_ACEOF
2540 #define PACKAGE_STRING "$PACKAGE_STRING"
2541 _ACEOF
2543 cat >>confdefs.h <<_ACEOF
2544 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2545 _ACEOF
2547 cat >>confdefs.h <<_ACEOF
2548 #define PACKAGE_URL "$PACKAGE_URL"
2549 _ACEOF
2552 # Let the site file select an alternate cache file if it wants to.
2553 # Prefer an explicitly selected file to automatically selected ones.
2554 ac_site_file1=NONE
2555 ac_site_file2=NONE
2556 if test -n "$CONFIG_SITE"; then
2557 # We do not want a PATH search for config.site.
2558 case $CONFIG_SITE in #((
2559 -*) ac_site_file1=./$CONFIG_SITE;;
2560 */*) ac_site_file1=$CONFIG_SITE;;
2561 *) ac_site_file1=./$CONFIG_SITE;;
2562 esac
2563 elif test "x$prefix" != xNONE; then
2564 ac_site_file1=$prefix/share/config.site
2565 ac_site_file2=$prefix/etc/config.site
2566 else
2567 ac_site_file1=$ac_default_prefix/share/config.site
2568 ac_site_file2=$ac_default_prefix/etc/config.site
2570 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2572 test "x$ac_site_file" = xNONE && continue
2573 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2575 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2576 sed 's/^/| /' "$ac_site_file" >&5
2577 . "$ac_site_file" \
2578 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2579 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2580 as_fn_error $? "failed to load site script $ac_site_file
2581 See \`config.log' for more details" "$LINENO" 5; }
2583 done
2585 if test -r "$cache_file"; then
2586 # Some versions of bash will fail to source /dev/null (special files
2587 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2588 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2590 $as_echo "$as_me: loading cache $cache_file" >&6;}
2591 case $cache_file in
2592 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2593 *) . "./$cache_file";;
2594 esac
2596 else
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2598 $as_echo "$as_me: creating cache $cache_file" >&6;}
2599 >$cache_file
2602 # Check that the precious variables saved in the cache have kept the same
2603 # value.
2604 ac_cache_corrupted=false
2605 for ac_var in $ac_precious_vars; do
2606 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2607 eval ac_new_set=\$ac_env_${ac_var}_set
2608 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2609 eval ac_new_val=\$ac_env_${ac_var}_value
2610 case $ac_old_set,$ac_new_set in
2611 set,)
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2613 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2614 ac_cache_corrupted=: ;;
2615 ,set)
2616 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2617 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2618 ac_cache_corrupted=: ;;
2619 ,);;
2621 if test "x$ac_old_val" != "x$ac_new_val"; then
2622 # differences in whitespace do not lead to failure.
2623 ac_old_val_w=`echo x $ac_old_val`
2624 ac_new_val_w=`echo x $ac_new_val`
2625 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2626 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2627 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2628 ac_cache_corrupted=:
2629 else
2630 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2631 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2632 eval $ac_var=\$ac_old_val
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2635 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2637 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2638 fi;;
2639 esac
2640 # Pass precious variables to config.status.
2641 if test "$ac_new_set" = set; then
2642 case $ac_new_val in
2643 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2644 *) ac_arg=$ac_var=$ac_new_val ;;
2645 esac
2646 case " $ac_configure_args " in
2647 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2648 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2649 esac
2651 done
2652 if $ac_cache_corrupted; then
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2654 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2656 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2657 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2659 ## -------------------- ##
2660 ## Main body of script. ##
2661 ## -------------------- ##
2663 ac_ext=c
2664 ac_cpp='$CPP $CPPFLAGS'
2665 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2666 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2667 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2674 # AC_CONFIG_MACRO_DIR([config])
2675 ac_config_headers="$ac_config_headers config.h"
2678 libtool_VERSION=19:0:0
2681 # Default to --enable-multilib
2682 # Check whether --enable-multilib was given.
2683 if test "${enable_multilib+set}" = set; then :
2684 enableval=$enable_multilib; case "$enableval" in
2685 yes) multilib=yes ;;
2686 no) multilib=no ;;
2687 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2688 esac
2689 else
2690 multilib=yes
2694 # We may get other options which we leave undocumented:
2695 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2696 # See config-ml.in if you want the gory details.
2698 if test "$srcdir" = "."; then
2699 if test "$with_target_subdir" != "."; then
2700 multi_basedir="$srcdir/$with_multisrctop../.."
2701 else
2702 multi_basedir="$srcdir/$with_multisrctop.."
2704 else
2705 multi_basedir="$srcdir/.."
2709 # Even if the default multilib is not a cross compilation,
2710 # it may be that some of the other multilibs are.
2711 if test $cross_compiling = no && test $multilib = yes \
2712 && test "x${with_multisubdir}" != x ; then
2713 cross_compiling=maybe
2716 ac_config_commands="$ac_config_commands default-1"
2721 ac_aux_dir=
2722 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2723 if test -f "$ac_dir/install-sh"; then
2724 ac_aux_dir=$ac_dir
2725 ac_install_sh="$ac_aux_dir/install-sh -c"
2726 break
2727 elif test -f "$ac_dir/install.sh"; then
2728 ac_aux_dir=$ac_dir
2729 ac_install_sh="$ac_aux_dir/install.sh -c"
2730 break
2731 elif test -f "$ac_dir/shtool"; then
2732 ac_aux_dir=$ac_dir
2733 ac_install_sh="$ac_aux_dir/shtool install -c"
2734 break
2736 done
2737 if test -z "$ac_aux_dir"; then
2738 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2741 # These three variables are undocumented and unsupported,
2742 # and are intended to be withdrawn in a future Autoconf release.
2743 # They can cause serious problems if a builder's source tree is in a directory
2744 # whose full name contains unusual characters.
2745 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2746 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2747 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2750 # Expand $ac_aux_dir to an absolute path.
2751 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2753 ac_ext=c
2754 ac_cpp='$CPP $CPPFLAGS'
2755 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2756 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2757 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2758 if test -n "$ac_tool_prefix"; then
2759 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2760 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2762 $as_echo_n "checking for $ac_word... " >&6; }
2763 if ${ac_cv_prog_CC+:} false; then :
2764 $as_echo_n "(cached) " >&6
2765 else
2766 if test -n "$CC"; then
2767 ac_cv_prog_CC="$CC" # Let the user override the test.
2768 else
2769 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2770 for as_dir in $PATH
2772 IFS=$as_save_IFS
2773 test -z "$as_dir" && as_dir=.
2774 for ac_exec_ext in '' $ac_executable_extensions; do
2775 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2776 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2777 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2778 break 2
2780 done
2781 done
2782 IFS=$as_save_IFS
2786 CC=$ac_cv_prog_CC
2787 if test -n "$CC"; then
2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2789 $as_echo "$CC" >&6; }
2790 else
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2792 $as_echo "no" >&6; }
2797 if test -z "$ac_cv_prog_CC"; then
2798 ac_ct_CC=$CC
2799 # Extract the first word of "gcc", so it can be a program name with args.
2800 set dummy gcc; ac_word=$2
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2802 $as_echo_n "checking for $ac_word... " >&6; }
2803 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2804 $as_echo_n "(cached) " >&6
2805 else
2806 if test -n "$ac_ct_CC"; then
2807 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2808 else
2809 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2810 for as_dir in $PATH
2812 IFS=$as_save_IFS
2813 test -z "$as_dir" && as_dir=.
2814 for ac_exec_ext in '' $ac_executable_extensions; do
2815 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2816 ac_cv_prog_ac_ct_CC="gcc"
2817 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2818 break 2
2820 done
2821 done
2822 IFS=$as_save_IFS
2826 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2827 if test -n "$ac_ct_CC"; then
2828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2829 $as_echo "$ac_ct_CC" >&6; }
2830 else
2831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2832 $as_echo "no" >&6; }
2835 if test "x$ac_ct_CC" = x; then
2836 CC=""
2837 else
2838 case $cross_compiling:$ac_tool_warned in
2839 yes:)
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2841 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2842 ac_tool_warned=yes ;;
2843 esac
2844 CC=$ac_ct_CC
2846 else
2847 CC="$ac_cv_prog_CC"
2850 if test -z "$CC"; then
2851 if test -n "$ac_tool_prefix"; then
2852 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2853 set dummy ${ac_tool_prefix}cc; ac_word=$2
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2855 $as_echo_n "checking for $ac_word... " >&6; }
2856 if ${ac_cv_prog_CC+:} false; then :
2857 $as_echo_n "(cached) " >&6
2858 else
2859 if test -n "$CC"; then
2860 ac_cv_prog_CC="$CC" # Let the user override the test.
2861 else
2862 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2863 for as_dir in $PATH
2865 IFS=$as_save_IFS
2866 test -z "$as_dir" && as_dir=.
2867 for ac_exec_ext in '' $ac_executable_extensions; do
2868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2869 ac_cv_prog_CC="${ac_tool_prefix}cc"
2870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2871 break 2
2873 done
2874 done
2875 IFS=$as_save_IFS
2879 CC=$ac_cv_prog_CC
2880 if test -n "$CC"; then
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2882 $as_echo "$CC" >&6; }
2883 else
2884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2885 $as_echo "no" >&6; }
2891 if test -z "$CC"; then
2892 # Extract the first word of "cc", so it can be a program name with args.
2893 set dummy cc; ac_word=$2
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2895 $as_echo_n "checking for $ac_word... " >&6; }
2896 if ${ac_cv_prog_CC+:} false; then :
2897 $as_echo_n "(cached) " >&6
2898 else
2899 if test -n "$CC"; then
2900 ac_cv_prog_CC="$CC" # Let the user override the test.
2901 else
2902 ac_prog_rejected=no
2903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2904 for as_dir in $PATH
2906 IFS=$as_save_IFS
2907 test -z "$as_dir" && as_dir=.
2908 for ac_exec_ext in '' $ac_executable_extensions; do
2909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2910 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2911 ac_prog_rejected=yes
2912 continue
2914 ac_cv_prog_CC="cc"
2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2916 break 2
2918 done
2919 done
2920 IFS=$as_save_IFS
2922 if test $ac_prog_rejected = yes; then
2923 # We found a bogon in the path, so make sure we never use it.
2924 set dummy $ac_cv_prog_CC
2925 shift
2926 if test $# != 0; then
2927 # We chose a different compiler from the bogus one.
2928 # However, it has the same basename, so the bogon will be chosen
2929 # first if we set CC to just the basename; use the full file name.
2930 shift
2931 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2936 CC=$ac_cv_prog_CC
2937 if test -n "$CC"; then
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2939 $as_echo "$CC" >&6; }
2940 else
2941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2942 $as_echo "no" >&6; }
2947 if test -z "$CC"; then
2948 if test -n "$ac_tool_prefix"; then
2949 for ac_prog in cl.exe
2951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2952 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2954 $as_echo_n "checking for $ac_word... " >&6; }
2955 if ${ac_cv_prog_CC+:} false; then :
2956 $as_echo_n "(cached) " >&6
2957 else
2958 if test -n "$CC"; then
2959 ac_cv_prog_CC="$CC" # Let the user override the test.
2960 else
2961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2962 for as_dir in $PATH
2964 IFS=$as_save_IFS
2965 test -z "$as_dir" && as_dir=.
2966 for ac_exec_ext in '' $ac_executable_extensions; do
2967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2968 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2970 break 2
2972 done
2973 done
2974 IFS=$as_save_IFS
2978 CC=$ac_cv_prog_CC
2979 if test -n "$CC"; then
2980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2981 $as_echo "$CC" >&6; }
2982 else
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2984 $as_echo "no" >&6; }
2988 test -n "$CC" && break
2989 done
2991 if test -z "$CC"; then
2992 ac_ct_CC=$CC
2993 for ac_prog in cl.exe
2995 # Extract the first word of "$ac_prog", so it can be a program name with args.
2996 set dummy $ac_prog; ac_word=$2
2997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2998 $as_echo_n "checking for $ac_word... " >&6; }
2999 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3000 $as_echo_n "(cached) " >&6
3001 else
3002 if test -n "$ac_ct_CC"; then
3003 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3004 else
3005 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3006 for as_dir in $PATH
3008 IFS=$as_save_IFS
3009 test -z "$as_dir" && as_dir=.
3010 for ac_exec_ext in '' $ac_executable_extensions; do
3011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3012 ac_cv_prog_ac_ct_CC="$ac_prog"
3013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3014 break 2
3016 done
3017 done
3018 IFS=$as_save_IFS
3022 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3023 if test -n "$ac_ct_CC"; then
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3025 $as_echo "$ac_ct_CC" >&6; }
3026 else
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3028 $as_echo "no" >&6; }
3032 test -n "$ac_ct_CC" && break
3033 done
3035 if test "x$ac_ct_CC" = x; then
3036 CC=""
3037 else
3038 case $cross_compiling:$ac_tool_warned in
3039 yes:)
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3041 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3042 ac_tool_warned=yes ;;
3043 esac
3044 CC=$ac_ct_CC
3051 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3052 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3053 as_fn_error $? "no acceptable C compiler found in \$PATH
3054 See \`config.log' for more details" "$LINENO" 5; }
3056 # Provide some information about the compiler.
3057 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3058 set X $ac_compile
3059 ac_compiler=$2
3060 for ac_option in --version -v -V -qversion; do
3061 { { ac_try="$ac_compiler $ac_option >&5"
3062 case "(($ac_try" in
3063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3064 *) ac_try_echo=$ac_try;;
3065 esac
3066 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3067 $as_echo "$ac_try_echo"; } >&5
3068 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3069 ac_status=$?
3070 if test -s conftest.err; then
3071 sed '10a\
3072 ... rest of stderr output deleted ...
3073 10q' conftest.err >conftest.er1
3074 cat conftest.er1 >&5
3076 rm -f conftest.er1 conftest.err
3077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3078 test $ac_status = 0; }
3079 done
3081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3082 /* end confdefs.h. */
3083 #include <stdio.h>
3085 main ()
3087 printf ("hello world\n");
3089 return 0;
3091 _ACEOF
3092 # FIXME: Cleanup?
3093 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3094 (eval $ac_link) 2>&5
3095 ac_status=$?
3096 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3097 test $ac_status = 0; }; then :
3098 gcc_no_link=no
3099 else
3100 gcc_no_link=yes
3102 if test x$gcc_no_link = xyes; then
3103 # Setting cross_compile will disable run tests; it will
3104 # also disable AC_CHECK_FILE but that's generally
3105 # correct if we can't link.
3106 cross_compiling=yes
3107 EXEEXT=
3108 else
3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h. */
3113 main ()
3117 return 0;
3119 _ACEOF
3120 ac_clean_files_save=$ac_clean_files
3121 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3122 # Try to create an executable without -o first, disregard a.out.
3123 # It will help us diagnose broken compilers, and finding out an intuition
3124 # of exeext.
3125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3126 $as_echo_n "checking whether the C compiler works... " >&6; }
3127 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3129 # The possible output files:
3130 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3132 ac_rmfiles=
3133 for ac_file in $ac_files
3135 case $ac_file in
3136 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3137 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3138 esac
3139 done
3140 rm -f $ac_rmfiles
3142 if { { ac_try="$ac_link_default"
3143 case "(($ac_try" in
3144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3145 *) ac_try_echo=$ac_try;;
3146 esac
3147 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3148 $as_echo "$ac_try_echo"; } >&5
3149 (eval "$ac_link_default") 2>&5
3150 ac_status=$?
3151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3152 test $ac_status = 0; }; then :
3153 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3154 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3155 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3156 # so that the user can short-circuit this test for compilers unknown to
3157 # Autoconf.
3158 for ac_file in $ac_files ''
3160 test -f "$ac_file" || continue
3161 case $ac_file in
3162 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3164 [ab].out )
3165 # We found the default executable, but exeext='' is most
3166 # certainly right.
3167 break;;
3168 *.* )
3169 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3170 then :; else
3171 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3173 # We set ac_cv_exeext here because the later test for it is not
3174 # safe: cross compilers may not add the suffix if given an `-o'
3175 # argument, so we may need to know it at that point already.
3176 # Even if this section looks crufty: it has the advantage of
3177 # actually working.
3178 break;;
3180 break;;
3181 esac
3182 done
3183 test "$ac_cv_exeext" = no && ac_cv_exeext=
3185 else
3186 ac_file=''
3188 if test -z "$ac_file"; then :
3189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3190 $as_echo "no" >&6; }
3191 $as_echo "$as_me: failed program was:" >&5
3192 sed 's/^/| /' conftest.$ac_ext >&5
3194 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3195 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3196 as_fn_error 77 "C compiler cannot create executables
3197 See \`config.log' for more details" "$LINENO" 5; }
3198 else
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3200 $as_echo "yes" >&6; }
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3203 $as_echo_n "checking for C compiler default output file name... " >&6; }
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3205 $as_echo "$ac_file" >&6; }
3206 ac_exeext=$ac_cv_exeext
3208 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3209 ac_clean_files=$ac_clean_files_save
3210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3211 $as_echo_n "checking for suffix of executables... " >&6; }
3212 if { { ac_try="$ac_link"
3213 case "(($ac_try" in
3214 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3215 *) ac_try_echo=$ac_try;;
3216 esac
3217 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3218 $as_echo "$ac_try_echo"; } >&5
3219 (eval "$ac_link") 2>&5
3220 ac_status=$?
3221 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3222 test $ac_status = 0; }; then :
3223 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3224 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3225 # work properly (i.e., refer to `conftest.exe'), while it won't with
3226 # `rm'.
3227 for ac_file in conftest.exe conftest conftest.*; do
3228 test -f "$ac_file" || continue
3229 case $ac_file in
3230 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3231 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3232 break;;
3233 * ) break;;
3234 esac
3235 done
3236 else
3237 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3238 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3239 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3240 See \`config.log' for more details" "$LINENO" 5; }
3242 rm -f conftest conftest$ac_cv_exeext
3243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3244 $as_echo "$ac_cv_exeext" >&6; }
3246 rm -f conftest.$ac_ext
3247 EXEEXT=$ac_cv_exeext
3248 ac_exeext=$EXEEXT
3249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3250 /* end confdefs.h. */
3251 #include <stdio.h>
3253 main ()
3255 FILE *f = fopen ("conftest.out", "w");
3256 return ferror (f) || fclose (f) != 0;
3259 return 0;
3261 _ACEOF
3262 ac_clean_files="$ac_clean_files conftest.out"
3263 # Check that the compiler produces executables we can run. If not, either
3264 # the compiler is broken, or we cross compile.
3265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3266 $as_echo_n "checking whether we are cross compiling... " >&6; }
3267 if test "$cross_compiling" != yes; then
3268 { { ac_try="$ac_link"
3269 case "(($ac_try" in
3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3271 *) ac_try_echo=$ac_try;;
3272 esac
3273 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3274 $as_echo "$ac_try_echo"; } >&5
3275 (eval "$ac_link") 2>&5
3276 ac_status=$?
3277 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3278 test $ac_status = 0; }
3279 if { ac_try='./conftest$ac_cv_exeext'
3280 { { case "(($ac_try" in
3281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3282 *) ac_try_echo=$ac_try;;
3283 esac
3284 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3285 $as_echo "$ac_try_echo"; } >&5
3286 (eval "$ac_try") 2>&5
3287 ac_status=$?
3288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3289 test $ac_status = 0; }; }; then
3290 cross_compiling=no
3291 else
3292 if test "$cross_compiling" = maybe; then
3293 cross_compiling=yes
3294 else
3295 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3297 as_fn_error $? "cannot run C compiled programs.
3298 If you meant to cross compile, use \`--host'.
3299 See \`config.log' for more details" "$LINENO" 5; }
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3304 $as_echo "$cross_compiling" >&6; }
3306 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3307 ac_clean_files=$ac_clean_files_save
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3310 $as_echo_n "checking for suffix of object files... " >&6; }
3311 if ${ac_cv_objext+:} false; then :
3312 $as_echo_n "(cached) " >&6
3313 else
3314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3315 /* end confdefs.h. */
3318 main ()
3322 return 0;
3324 _ACEOF
3325 rm -f conftest.o conftest.obj
3326 if { { ac_try="$ac_compile"
3327 case "(($ac_try" in
3328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3329 *) ac_try_echo=$ac_try;;
3330 esac
3331 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3332 $as_echo "$ac_try_echo"; } >&5
3333 (eval "$ac_compile") 2>&5
3334 ac_status=$?
3335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3336 test $ac_status = 0; }; then :
3337 for ac_file in conftest.o conftest.obj conftest.*; do
3338 test -f "$ac_file" || continue;
3339 case $ac_file in
3340 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3341 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3342 break;;
3343 esac
3344 done
3345 else
3346 $as_echo "$as_me: failed program was:" >&5
3347 sed 's/^/| /' conftest.$ac_ext >&5
3349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3351 as_fn_error $? "cannot compute suffix of object files: cannot compile
3352 See \`config.log' for more details" "$LINENO" 5; }
3354 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3357 $as_echo "$ac_cv_objext" >&6; }
3358 OBJEXT=$ac_cv_objext
3359 ac_objext=$OBJEXT
3360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3361 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3362 if ${ac_cv_c_compiler_gnu+:} false; then :
3363 $as_echo_n "(cached) " >&6
3364 else
3365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3366 /* end confdefs.h. */
3369 main ()
3371 #ifndef __GNUC__
3372 choke me
3373 #endif
3376 return 0;
3378 _ACEOF
3379 if ac_fn_c_try_compile "$LINENO"; then :
3380 ac_compiler_gnu=yes
3381 else
3382 ac_compiler_gnu=no
3384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3385 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3389 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3390 if test $ac_compiler_gnu = yes; then
3391 GCC=yes
3392 else
3393 GCC=
3395 ac_test_CFLAGS=${CFLAGS+set}
3396 ac_save_CFLAGS=$CFLAGS
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3398 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3399 if ${ac_cv_prog_cc_g+:} false; then :
3400 $as_echo_n "(cached) " >&6
3401 else
3402 ac_save_c_werror_flag=$ac_c_werror_flag
3403 ac_c_werror_flag=yes
3404 ac_cv_prog_cc_g=no
3405 CFLAGS="-g"
3406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3407 /* end confdefs.h. */
3410 main ()
3414 return 0;
3416 _ACEOF
3417 if ac_fn_c_try_compile "$LINENO"; then :
3418 ac_cv_prog_cc_g=yes
3419 else
3420 CFLAGS=""
3421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3422 /* end confdefs.h. */
3425 main ()
3429 return 0;
3431 _ACEOF
3432 if ac_fn_c_try_compile "$LINENO"; then :
3434 else
3435 ac_c_werror_flag=$ac_save_c_werror_flag
3436 CFLAGS="-g"
3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h. */
3441 main ()
3445 return 0;
3447 _ACEOF
3448 if ac_fn_c_try_compile "$LINENO"; then :
3449 ac_cv_prog_cc_g=yes
3451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3456 ac_c_werror_flag=$ac_save_c_werror_flag
3458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3459 $as_echo "$ac_cv_prog_cc_g" >&6; }
3460 if test "$ac_test_CFLAGS" = set; then
3461 CFLAGS=$ac_save_CFLAGS
3462 elif test $ac_cv_prog_cc_g = yes; then
3463 if test "$GCC" = yes; then
3464 CFLAGS="-g -O2"
3465 else
3466 CFLAGS="-g"
3468 else
3469 if test "$GCC" = yes; then
3470 CFLAGS="-O2"
3471 else
3472 CFLAGS=
3475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3476 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3477 if ${ac_cv_prog_cc_c89+:} false; then :
3478 $as_echo_n "(cached) " >&6
3479 else
3480 ac_cv_prog_cc_c89=no
3481 ac_save_CC=$CC
3482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3483 /* end confdefs.h. */
3484 #include <stdarg.h>
3485 #include <stdio.h>
3486 struct stat;
3487 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3488 struct buf { int x; };
3489 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3490 static char *e (p, i)
3491 char **p;
3492 int i;
3494 return p[i];
3496 static char *f (char * (*g) (char **, int), char **p, ...)
3498 char *s;
3499 va_list v;
3500 va_start (v,p);
3501 s = g (p, va_arg (v,int));
3502 va_end (v);
3503 return s;
3506 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3507 function prototypes and stuff, but not '\xHH' hex character constants.
3508 These don't provoke an error unfortunately, instead are silently treated
3509 as 'x'. The following induces an error, until -std is added to get
3510 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3511 array size at least. It's necessary to write '\x00'==0 to get something
3512 that's true only with -std. */
3513 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3515 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3516 inside strings and character constants. */
3517 #define FOO(x) 'x'
3518 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3520 int test (int i, double x);
3521 struct s1 {int (*f) (int a);};
3522 struct s2 {int (*f) (double a);};
3523 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3524 int argc;
3525 char **argv;
3527 main ()
3529 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3531 return 0;
3533 _ACEOF
3534 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3535 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3537 CC="$ac_save_CC $ac_arg"
3538 if ac_fn_c_try_compile "$LINENO"; then :
3539 ac_cv_prog_cc_c89=$ac_arg
3541 rm -f core conftest.err conftest.$ac_objext
3542 test "x$ac_cv_prog_cc_c89" != "xno" && break
3543 done
3544 rm -f conftest.$ac_ext
3545 CC=$ac_save_CC
3548 # AC_CACHE_VAL
3549 case "x$ac_cv_prog_cc_c89" in
3551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3552 $as_echo "none needed" >&6; } ;;
3553 xno)
3554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3555 $as_echo "unsupported" >&6; } ;;
3557 CC="$CC $ac_cv_prog_cc_c89"
3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3559 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3560 esac
3561 if test "x$ac_cv_prog_cc_c89" != xno; then :
3565 ac_ext=c
3566 ac_cpp='$CPP $CPPFLAGS'
3567 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3568 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3569 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3571 ac_ext=c
3572 ac_cpp='$CPP $CPPFLAGS'
3573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3577 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3578 if ${am_cv_prog_cc_c_o+:} false; then :
3579 $as_echo_n "(cached) " >&6
3580 else
3581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3582 /* end confdefs.h. */
3585 main ()
3589 return 0;
3591 _ACEOF
3592 # Make sure it works both with $CC and with simple cc.
3593 # Following AC_PROG_CC_C_O, we do the test twice because some
3594 # compilers refuse to overwrite an existing .o file with -o,
3595 # though they will create one.
3596 am_cv_prog_cc_c_o=yes
3597 for am_i in 1 2; do
3598 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3599 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3600 ac_status=$?
3601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602 (exit $ac_status); } \
3603 && test -f conftest2.$ac_objext; then
3604 : OK
3605 else
3606 am_cv_prog_cc_c_o=no
3607 break
3609 done
3610 rm -f core conftest*
3611 unset am_i
3613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3614 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3615 if test "$am_cv_prog_cc_c_o" != yes; then
3616 # Losing compiler, so override with the script.
3617 # FIXME: It is wrong to rewrite CC.
3618 # But if we don't then we get into trouble of one sort or another.
3619 # A longer-term fix would be to have automake use am__CC in this case,
3620 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3621 CC="$am_aux_dir/compile $CC"
3623 ac_ext=c
3624 ac_cpp='$CPP $CPPFLAGS'
3625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3631 ac_ext=c
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3637 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3638 # On Suns, sometimes $CPP names a directory.
3639 if test -n "$CPP" && test -d "$CPP"; then
3640 CPP=
3642 if test -z "$CPP"; then
3643 if ${ac_cv_prog_CPP+:} false; then :
3644 $as_echo_n "(cached) " >&6
3645 else
3646 # Double quotes because CPP needs to be expanded
3647 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3649 ac_preproc_ok=false
3650 for ac_c_preproc_warn_flag in '' yes
3652 # Use a header file that comes with gcc, so configuring glibc
3653 # with a fresh cross-compiler works.
3654 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3655 # <limits.h> exists even on freestanding compilers.
3656 # On the NeXT, cc -E runs the code through the compiler's parser,
3657 # not just through cpp. "Syntax error" is here to catch this case.
3658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3659 /* end confdefs.h. */
3660 #ifdef __STDC__
3661 # include <limits.h>
3662 #else
3663 # include <assert.h>
3664 #endif
3665 Syntax error
3666 _ACEOF
3667 if ac_fn_c_try_cpp "$LINENO"; then :
3669 else
3670 # Broken: fails on valid input.
3671 continue
3673 rm -f conftest.err conftest.i conftest.$ac_ext
3675 # OK, works on sane cases. Now check whether nonexistent headers
3676 # can be detected and how.
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3679 #include <ac_nonexistent.h>
3680 _ACEOF
3681 if ac_fn_c_try_cpp "$LINENO"; then :
3682 # Broken: success on invalid input.
3683 continue
3684 else
3685 # Passes both tests.
3686 ac_preproc_ok=:
3687 break
3689 rm -f conftest.err conftest.i conftest.$ac_ext
3691 done
3692 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3693 rm -f conftest.i conftest.err conftest.$ac_ext
3694 if $ac_preproc_ok; then :
3695 break
3698 done
3699 ac_cv_prog_CPP=$CPP
3702 CPP=$ac_cv_prog_CPP
3703 else
3704 ac_cv_prog_CPP=$CPP
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3707 $as_echo "$CPP" >&6; }
3708 ac_preproc_ok=false
3709 for ac_c_preproc_warn_flag in '' yes
3711 # Use a header file that comes with gcc, so configuring glibc
3712 # with a fresh cross-compiler works.
3713 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3714 # <limits.h> exists even on freestanding compilers.
3715 # On the NeXT, cc -E runs the code through the compiler's parser,
3716 # not just through cpp. "Syntax error" is here to catch this case.
3717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3718 /* end confdefs.h. */
3719 #ifdef __STDC__
3720 # include <limits.h>
3721 #else
3722 # include <assert.h>
3723 #endif
3724 Syntax error
3725 _ACEOF
3726 if ac_fn_c_try_cpp "$LINENO"; then :
3728 else
3729 # Broken: fails on valid input.
3730 continue
3732 rm -f conftest.err conftest.i conftest.$ac_ext
3734 # OK, works on sane cases. Now check whether nonexistent headers
3735 # can be detected and how.
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3738 #include <ac_nonexistent.h>
3739 _ACEOF
3740 if ac_fn_c_try_cpp "$LINENO"; then :
3741 # Broken: success on invalid input.
3742 continue
3743 else
3744 # Passes both tests.
3745 ac_preproc_ok=:
3746 break
3748 rm -f conftest.err conftest.i conftest.$ac_ext
3750 done
3751 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3752 rm -f conftest.i conftest.err conftest.$ac_ext
3753 if $ac_preproc_ok; then :
3755 else
3756 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3757 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3758 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3759 See \`config.log' for more details" "$LINENO" 5; }
3762 ac_ext=c
3763 ac_cpp='$CPP $CPPFLAGS'
3764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3770 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3771 if ${ac_cv_path_GREP+:} false; then :
3772 $as_echo_n "(cached) " >&6
3773 else
3774 if test -z "$GREP"; then
3775 ac_path_GREP_found=false
3776 # Loop through the user's path and test for each of PROGNAME-LIST
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3780 IFS=$as_save_IFS
3781 test -z "$as_dir" && as_dir=.
3782 for ac_prog in grep ggrep; do
3783 for ac_exec_ext in '' $ac_executable_extensions; do
3784 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3785 as_fn_executable_p "$ac_path_GREP" || continue
3786 # Check for GNU ac_path_GREP and select it if it is found.
3787 # Check for GNU $ac_path_GREP
3788 case `"$ac_path_GREP" --version 2>&1` in
3789 *GNU*)
3790 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3792 ac_count=0
3793 $as_echo_n 0123456789 >"conftest.in"
3794 while :
3796 cat "conftest.in" "conftest.in" >"conftest.tmp"
3797 mv "conftest.tmp" "conftest.in"
3798 cp "conftest.in" "conftest.nl"
3799 $as_echo 'GREP' >> "conftest.nl"
3800 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3801 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3802 as_fn_arith $ac_count + 1 && ac_count=$as_val
3803 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3804 # Best one so far, save it but keep looking for a better one
3805 ac_cv_path_GREP="$ac_path_GREP"
3806 ac_path_GREP_max=$ac_count
3808 # 10*(2^10) chars as input seems more than enough
3809 test $ac_count -gt 10 && break
3810 done
3811 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3812 esac
3814 $ac_path_GREP_found && break 3
3815 done
3816 done
3817 done
3818 IFS=$as_save_IFS
3819 if test -z "$ac_cv_path_GREP"; then
3820 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3822 else
3823 ac_cv_path_GREP=$GREP
3827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3828 $as_echo "$ac_cv_path_GREP" >&6; }
3829 GREP="$ac_cv_path_GREP"
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3833 $as_echo_n "checking for egrep... " >&6; }
3834 if ${ac_cv_path_EGREP+:} false; then :
3835 $as_echo_n "(cached) " >&6
3836 else
3837 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3838 then ac_cv_path_EGREP="$GREP -E"
3839 else
3840 if test -z "$EGREP"; then
3841 ac_path_EGREP_found=false
3842 # Loop through the user's path and test for each of PROGNAME-LIST
3843 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3844 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3846 IFS=$as_save_IFS
3847 test -z "$as_dir" && as_dir=.
3848 for ac_prog in egrep; do
3849 for ac_exec_ext in '' $ac_executable_extensions; do
3850 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3851 as_fn_executable_p "$ac_path_EGREP" || continue
3852 # Check for GNU ac_path_EGREP and select it if it is found.
3853 # Check for GNU $ac_path_EGREP
3854 case `"$ac_path_EGREP" --version 2>&1` in
3855 *GNU*)
3856 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3858 ac_count=0
3859 $as_echo_n 0123456789 >"conftest.in"
3860 while :
3862 cat "conftest.in" "conftest.in" >"conftest.tmp"
3863 mv "conftest.tmp" "conftest.in"
3864 cp "conftest.in" "conftest.nl"
3865 $as_echo 'EGREP' >> "conftest.nl"
3866 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3867 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3868 as_fn_arith $ac_count + 1 && ac_count=$as_val
3869 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3870 # Best one so far, save it but keep looking for a better one
3871 ac_cv_path_EGREP="$ac_path_EGREP"
3872 ac_path_EGREP_max=$ac_count
3874 # 10*(2^10) chars as input seems more than enough
3875 test $ac_count -gt 10 && break
3876 done
3877 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3878 esac
3880 $ac_path_EGREP_found && break 3
3881 done
3882 done
3883 done
3884 IFS=$as_save_IFS
3885 if test -z "$ac_cv_path_EGREP"; then
3886 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3888 else
3889 ac_cv_path_EGREP=$EGREP
3894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3895 $as_echo "$ac_cv_path_EGREP" >&6; }
3896 EGREP="$ac_cv_path_EGREP"
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3900 $as_echo_n "checking for ANSI C header files... " >&6; }
3901 if ${ac_cv_header_stdc+:} false; then :
3902 $as_echo_n "(cached) " >&6
3903 else
3904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3905 /* end confdefs.h. */
3906 #include <stdlib.h>
3907 #include <stdarg.h>
3908 #include <string.h>
3909 #include <float.h>
3912 main ()
3916 return 0;
3918 _ACEOF
3919 if ac_fn_c_try_compile "$LINENO"; then :
3920 ac_cv_header_stdc=yes
3921 else
3922 ac_cv_header_stdc=no
3924 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3926 if test $ac_cv_header_stdc = yes; then
3927 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3929 /* end confdefs.h. */
3930 #include <string.h>
3932 _ACEOF
3933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3934 $EGREP "memchr" >/dev/null 2>&1; then :
3936 else
3937 ac_cv_header_stdc=no
3939 rm -f conftest*
3943 if test $ac_cv_header_stdc = yes; then
3944 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3946 /* end confdefs.h. */
3947 #include <stdlib.h>
3949 _ACEOF
3950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3951 $EGREP "free" >/dev/null 2>&1; then :
3953 else
3954 ac_cv_header_stdc=no
3956 rm -f conftest*
3960 if test $ac_cv_header_stdc = yes; then
3961 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3962 if test "$cross_compiling" = yes; then :
3964 else
3965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3966 /* end confdefs.h. */
3967 #include <ctype.h>
3968 #include <stdlib.h>
3969 #if ((' ' & 0x0FF) == 0x020)
3970 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3971 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3972 #else
3973 # define ISLOWER(c) \
3974 (('a' <= (c) && (c) <= 'i') \
3975 || ('j' <= (c) && (c) <= 'r') \
3976 || ('s' <= (c) && (c) <= 'z'))
3977 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3978 #endif
3980 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3982 main ()
3984 int i;
3985 for (i = 0; i < 256; i++)
3986 if (XOR (islower (i), ISLOWER (i))
3987 || toupper (i) != TOUPPER (i))
3988 return 2;
3989 return 0;
3991 _ACEOF
3992 if ac_fn_c_try_run "$LINENO"; then :
3994 else
3995 ac_cv_header_stdc=no
3997 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3998 conftest.$ac_objext conftest.beam conftest.$ac_ext
4003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4004 $as_echo "$ac_cv_header_stdc" >&6; }
4005 if test $ac_cv_header_stdc = yes; then
4007 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4011 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4012 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4013 inttypes.h stdint.h unistd.h
4014 do :
4015 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4016 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4018 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4019 cat >>confdefs.h <<_ACEOF
4020 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4021 _ACEOF
4025 done
4029 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4030 if test "x$ac_cv_header_minix_config_h" = xyes; then :
4031 MINIX=yes
4032 else
4033 MINIX=
4037 if test "$MINIX" = yes; then
4039 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4042 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4045 $as_echo "#define _MINIX 1" >>confdefs.h
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4051 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4052 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4056 /* end confdefs.h. */
4058 # define __EXTENSIONS__ 1
4059 $ac_includes_default
4061 main ()
4065 return 0;
4067 _ACEOF
4068 if ac_fn_c_try_compile "$LINENO"; then :
4069 ac_cv_safe_to_define___extensions__=yes
4070 else
4071 ac_cv_safe_to_define___extensions__=no
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4076 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4077 test $ac_cv_safe_to_define___extensions__ = yes &&
4078 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4080 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4082 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4084 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4086 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4090 # Do not delete or change the following two lines. For why, see
4091 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
4092 # Make sure we can run config.sub.
4093 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4094 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4097 $as_echo_n "checking build system type... " >&6; }
4098 if ${ac_cv_build+:} false; then :
4099 $as_echo_n "(cached) " >&6
4100 else
4101 ac_build_alias=$build_alias
4102 test "x$ac_build_alias" = x &&
4103 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4104 test "x$ac_build_alias" = x &&
4105 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4106 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4107 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4111 $as_echo "$ac_cv_build" >&6; }
4112 case $ac_cv_build in
4113 *-*-*) ;;
4114 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4115 esac
4116 build=$ac_cv_build
4117 ac_save_IFS=$IFS; IFS='-'
4118 set x $ac_cv_build
4119 shift
4120 build_cpu=$1
4121 build_vendor=$2
4122 shift; shift
4123 # Remember, the first character of IFS is used to create $*,
4124 # except with old shells:
4125 build_os=$*
4126 IFS=$ac_save_IFS
4127 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4131 $as_echo_n "checking host system type... " >&6; }
4132 if ${ac_cv_host+:} false; then :
4133 $as_echo_n "(cached) " >&6
4134 else
4135 if test "x$host_alias" = x; then
4136 ac_cv_host=$ac_cv_build
4137 else
4138 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4139 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4144 $as_echo "$ac_cv_host" >&6; }
4145 case $ac_cv_host in
4146 *-*-*) ;;
4147 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4148 esac
4149 host=$ac_cv_host
4150 ac_save_IFS=$IFS; IFS='-'
4151 set x $ac_cv_host
4152 shift
4153 host_cpu=$1
4154 host_vendor=$2
4155 shift; shift
4156 # Remember, the first character of IFS is used to create $*,
4157 # except with old shells:
4158 host_os=$*
4159 IFS=$ac_save_IFS
4160 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4164 $as_echo_n "checking target system type... " >&6; }
4165 if ${ac_cv_target+:} false; then :
4166 $as_echo_n "(cached) " >&6
4167 else
4168 if test "x$target_alias" = x; then
4169 ac_cv_target=$ac_cv_host
4170 else
4171 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4172 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4177 $as_echo "$ac_cv_target" >&6; }
4178 case $ac_cv_target in
4179 *-*-*) ;;
4180 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4181 esac
4182 target=$ac_cv_target
4183 ac_save_IFS=$IFS; IFS='-'
4184 set x $ac_cv_target
4185 shift
4186 target_cpu=$1
4187 target_vendor=$2
4188 shift; shift
4189 # Remember, the first character of IFS is used to create $*,
4190 # except with old shells:
4191 target_os=$*
4192 IFS=$ac_save_IFS
4193 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4196 # The aliases save the names the user supplied, while $host etc.
4197 # will get canonicalized.
4198 test -n "$target_alias" &&
4199 test "$program_prefix$program_suffix$program_transform_name" = \
4200 NONENONEs,x,x, &&
4201 program_prefix=${target_alias}-
4203 target_alias=${target_alias-$host_alias}
4206 if test "$build" != "$host"; then
4207 # We are being configured with some form of cross compiler.
4208 GLIBCXX_IS_NATIVE=false
4209 case "$host","$target" in
4210 # Darwin crosses can use the host system's libraries and headers,
4211 # because of the fat library support. Of course, it must be the
4212 # same version of Darwin on both sides. Allow the user to
4213 # just say --target=foo-darwin without a version number to mean
4214 # "the version on this system".
4215 *-*-darwin*,*-*-darwin*)
4216 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
4217 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
4218 if test $hostos = $targetos || test $targetos = darwin ; then
4219 GLIBCXX_IS_NATIVE=true
4226 esac
4227 else
4228 GLIBCXX_IS_NATIVE=true
4231 # Runs configure.host, and assorted other critical bits. Sets
4232 # up critical shell variables.
4234 # Keep these sync'd with the list in Makefile.am. The first provides an
4235 # expandable list at autoconf time; the second provides an expandable list
4236 # (i.e., shell variable) at configure time.
4238 SUBDIRS=''
4240 # These need to be absolute paths, yet at the same time need to
4241 # canonicalize only relative paths, because then amd will not unmount
4242 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
4243 glibcxx_builddir=`${PWDCMD-pwd}`
4244 case $srcdir in
4245 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
4246 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
4247 esac
4248 toplevel_builddir=${glibcxx_builddir}/..
4249 toplevel_srcdir=${glibcxx_srcdir}/..
4255 # We use these options to decide which functions to include. They are
4256 # set from the top level.
4258 # Check whether --with-target-subdir was given.
4259 if test "${with_target_subdir+set}" = set; then :
4260 withval=$with_target_subdir;
4265 # Check whether --with-cross-host was given.
4266 if test "${with_cross_host+set}" = set; then :
4267 withval=$with_cross_host;
4272 # Check whether --with-newlib was given.
4273 if test "${with_newlib+set}" = set; then :
4274 withval=$with_newlib;
4278 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
4279 # available). Uncomment the next line to force a particular method.
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4281 $as_echo_n "checking whether ln -s works... " >&6; }
4282 LN_S=$as_ln_s
4283 if test "$LN_S" = "ln -s"; then
4284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4285 $as_echo "yes" >&6; }
4286 else
4287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4288 $as_echo "no, using $LN_S" >&6; }
4291 #LN_S='cp -p'
4293 if test -n "$ac_tool_prefix"; then
4294 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4295 set dummy ${ac_tool_prefix}as; ac_word=$2
4296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4297 $as_echo_n "checking for $ac_word... " >&6; }
4298 if ${ac_cv_prog_AS+:} false; then :
4299 $as_echo_n "(cached) " >&6
4300 else
4301 if test -n "$AS"; then
4302 ac_cv_prog_AS="$AS" # Let the user override the test.
4303 else
4304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4305 for as_dir in $PATH
4307 IFS=$as_save_IFS
4308 test -z "$as_dir" && as_dir=.
4309 for ac_exec_ext in '' $ac_executable_extensions; do
4310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4311 ac_cv_prog_AS="${ac_tool_prefix}as"
4312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4313 break 2
4315 done
4316 done
4317 IFS=$as_save_IFS
4321 AS=$ac_cv_prog_AS
4322 if test -n "$AS"; then
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4324 $as_echo "$AS" >&6; }
4325 else
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4327 $as_echo "no" >&6; }
4332 if test -z "$ac_cv_prog_AS"; then
4333 ac_ct_AS=$AS
4334 # Extract the first word of "as", so it can be a program name with args.
4335 set dummy as; ac_word=$2
4336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4337 $as_echo_n "checking for $ac_word... " >&6; }
4338 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4339 $as_echo_n "(cached) " >&6
4340 else
4341 if test -n "$ac_ct_AS"; then
4342 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4343 else
4344 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4345 for as_dir in $PATH
4347 IFS=$as_save_IFS
4348 test -z "$as_dir" && as_dir=.
4349 for ac_exec_ext in '' $ac_executable_extensions; do
4350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4351 ac_cv_prog_ac_ct_AS="as"
4352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4353 break 2
4355 done
4356 done
4357 IFS=$as_save_IFS
4361 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4362 if test -n "$ac_ct_AS"; then
4363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4364 $as_echo "$ac_ct_AS" >&6; }
4365 else
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4367 $as_echo "no" >&6; }
4370 if test "x$ac_ct_AS" = x; then
4371 AS=""
4372 else
4373 case $cross_compiling:$ac_tool_warned in
4374 yes:)
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4376 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4377 ac_tool_warned=yes ;;
4378 esac
4379 AS=$ac_ct_AS
4381 else
4382 AS="$ac_cv_prog_AS"
4385 if test -n "$ac_tool_prefix"; then
4386 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4387 set dummy ${ac_tool_prefix}ar; ac_word=$2
4388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4389 $as_echo_n "checking for $ac_word... " >&6; }
4390 if ${ac_cv_prog_AR+:} false; then :
4391 $as_echo_n "(cached) " >&6
4392 else
4393 if test -n "$AR"; then
4394 ac_cv_prog_AR="$AR" # Let the user override the test.
4395 else
4396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4397 for as_dir in $PATH
4399 IFS=$as_save_IFS
4400 test -z "$as_dir" && as_dir=.
4401 for ac_exec_ext in '' $ac_executable_extensions; do
4402 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4403 ac_cv_prog_AR="${ac_tool_prefix}ar"
4404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4405 break 2
4407 done
4408 done
4409 IFS=$as_save_IFS
4413 AR=$ac_cv_prog_AR
4414 if test -n "$AR"; then
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4416 $as_echo "$AR" >&6; }
4417 else
4418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4419 $as_echo "no" >&6; }
4424 if test -z "$ac_cv_prog_AR"; then
4425 ac_ct_AR=$AR
4426 # Extract the first word of "ar", so it can be a program name with args.
4427 set dummy ar; ac_word=$2
4428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4429 $as_echo_n "checking for $ac_word... " >&6; }
4430 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4431 $as_echo_n "(cached) " >&6
4432 else
4433 if test -n "$ac_ct_AR"; then
4434 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4435 else
4436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4437 for as_dir in $PATH
4439 IFS=$as_save_IFS
4440 test -z "$as_dir" && as_dir=.
4441 for ac_exec_ext in '' $ac_executable_extensions; do
4442 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4443 ac_cv_prog_ac_ct_AR="ar"
4444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4445 break 2
4447 done
4448 done
4449 IFS=$as_save_IFS
4453 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4454 if test -n "$ac_ct_AR"; then
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4456 $as_echo "$ac_ct_AR" >&6; }
4457 else
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4459 $as_echo "no" >&6; }
4462 if test "x$ac_ct_AR" = x; then
4463 AR=""
4464 else
4465 case $cross_compiling:$ac_tool_warned in
4466 yes:)
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4469 ac_tool_warned=yes ;;
4470 esac
4471 AR=$ac_ct_AR
4473 else
4474 AR="$ac_cv_prog_AR"
4477 if test -n "$ac_tool_prefix"; then
4478 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4479 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4481 $as_echo_n "checking for $ac_word... " >&6; }
4482 if ${ac_cv_prog_RANLIB+:} false; then :
4483 $as_echo_n "(cached) " >&6
4484 else
4485 if test -n "$RANLIB"; then
4486 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4487 else
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH
4491 IFS=$as_save_IFS
4492 test -z "$as_dir" && as_dir=.
4493 for ac_exec_ext in '' $ac_executable_extensions; do
4494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4495 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4497 break 2
4499 done
4500 done
4501 IFS=$as_save_IFS
4505 RANLIB=$ac_cv_prog_RANLIB
4506 if test -n "$RANLIB"; then
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4508 $as_echo "$RANLIB" >&6; }
4509 else
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4511 $as_echo "no" >&6; }
4516 if test -z "$ac_cv_prog_RANLIB"; then
4517 ac_ct_RANLIB=$RANLIB
4518 # Extract the first word of "ranlib", so it can be a program name with args.
4519 set dummy ranlib; ac_word=$2
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4521 $as_echo_n "checking for $ac_word... " >&6; }
4522 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4523 $as_echo_n "(cached) " >&6
4524 else
4525 if test -n "$ac_ct_RANLIB"; then
4526 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4527 else
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_exec_ext in '' $ac_executable_extensions; do
4534 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4535 ac_cv_prog_ac_ct_RANLIB="ranlib"
4536 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4537 break 2
4539 done
4540 done
4541 IFS=$as_save_IFS
4545 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4546 if test -n "$ac_ct_RANLIB"; then
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4548 $as_echo "$ac_ct_RANLIB" >&6; }
4549 else
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4551 $as_echo "no" >&6; }
4554 if test "x$ac_ct_RANLIB" = x; then
4555 RANLIB="ranlib-not-found-in-path-error"
4556 else
4557 case $cross_compiling:$ac_tool_warned in
4558 yes:)
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4560 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4561 ac_tool_warned=yes ;;
4562 esac
4563 RANLIB=$ac_ct_RANLIB
4565 else
4566 RANLIB="$ac_cv_prog_RANLIB"
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4572 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4573 # Check whether --enable-maintainer-mode was given.
4574 if test "${enable_maintainer_mode+set}" = set; then :
4575 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4576 else
4577 USE_MAINTAINER_MODE=no
4580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4581 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4582 if test $USE_MAINTAINER_MODE = yes; then
4583 MAINTAINER_MODE_TRUE=
4584 MAINTAINER_MODE_FALSE='#'
4585 else
4586 MAINTAINER_MODE_TRUE='#'
4587 MAINTAINER_MODE_FALSE=
4590 MAINT=$MAINTAINER_MODE_TRUE
4594 # Set up safe default values for all subsequent AM_CONDITIONAL tests
4595 # which are themselves conditionally expanded.
4596 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
4597 ## other macros from doing the same. This should be automated.) -pme
4599 # Check for C library flavor since GNU/Linux platforms use different
4600 # configuration directories depending on the C library in use.
4601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4602 /* end confdefs.h. */
4604 #include <stdio.h>
4605 #if __UCLIBC__
4606 _using_uclibc
4607 #endif
4609 _ACEOF
4610 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4611 $EGREP "_using_uclibc" >/dev/null 2>&1; then :
4612 uclibc=yes
4613 else
4614 uclibc=no
4616 rm -f conftest*
4619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4620 /* end confdefs.h. */
4622 #include <stdio.h>
4623 #if __BIONIC__
4624 _using_bionic
4625 #endif
4627 _ACEOF
4628 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4629 $EGREP "_using_bionic" >/dev/null 2>&1; then :
4630 bionic=yes
4631 else
4632 bionic=no
4634 rm -f conftest*
4637 # Find platform-specific directories containing configuration info.
4638 # Also possibly modify flags used elsewhere, as needed by the platform.
4640 . $glibcxx_srcdir/configure.host
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: CPU config directory is $cpu_include_dir" >&5
4642 $as_echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
4643 { $as_echo "$as_me:${as_lineno-$LINENO}: OS config directory is $os_include_dir" >&5
4644 $as_echo "$as_me: OS config directory is $os_include_dir" >&6;}
4648 # For gettimeofday support.
4649 ac_ext=cpp
4650 ac_cpp='$CXXCPP $CPPFLAGS'
4651 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4652 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4653 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4654 if test -z "$CXX"; then
4655 if test -n "$CCC"; then
4656 CXX=$CCC
4657 else
4658 if test -n "$ac_tool_prefix"; then
4659 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4661 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4662 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664 $as_echo_n "checking for $ac_word... " >&6; }
4665 if ${ac_cv_prog_CXX+:} false; then :
4666 $as_echo_n "(cached) " >&6
4667 else
4668 if test -n "$CXX"; then
4669 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4670 else
4671 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4672 for as_dir in $PATH
4674 IFS=$as_save_IFS
4675 test -z "$as_dir" && as_dir=.
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4678 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4679 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4680 break 2
4682 done
4683 done
4684 IFS=$as_save_IFS
4688 CXX=$ac_cv_prog_CXX
4689 if test -n "$CXX"; then
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4691 $as_echo "$CXX" >&6; }
4692 else
4693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4694 $as_echo "no" >&6; }
4698 test -n "$CXX" && break
4699 done
4701 if test -z "$CXX"; then
4702 ac_ct_CXX=$CXX
4703 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4705 # Extract the first word of "$ac_prog", so it can be a program name with args.
4706 set dummy $ac_prog; ac_word=$2
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4708 $as_echo_n "checking for $ac_word... " >&6; }
4709 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4710 $as_echo_n "(cached) " >&6
4711 else
4712 if test -n "$ac_ct_CXX"; then
4713 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4714 else
4715 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4716 for as_dir in $PATH
4718 IFS=$as_save_IFS
4719 test -z "$as_dir" && as_dir=.
4720 for ac_exec_ext in '' $ac_executable_extensions; do
4721 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4722 ac_cv_prog_ac_ct_CXX="$ac_prog"
4723 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4724 break 2
4726 done
4727 done
4728 IFS=$as_save_IFS
4732 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4733 if test -n "$ac_ct_CXX"; then
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4735 $as_echo "$ac_ct_CXX" >&6; }
4736 else
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4738 $as_echo "no" >&6; }
4742 test -n "$ac_ct_CXX" && break
4743 done
4745 if test "x$ac_ct_CXX" = x; then
4746 CXX="g++"
4747 else
4748 case $cross_compiling:$ac_tool_warned in
4749 yes:)
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4752 ac_tool_warned=yes ;;
4753 esac
4754 CXX=$ac_ct_CXX
4760 # Provide some information about the compiler.
4761 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4762 set X $ac_compile
4763 ac_compiler=$2
4764 for ac_option in --version -v -V -qversion; do
4765 { { ac_try="$ac_compiler $ac_option >&5"
4766 case "(($ac_try" in
4767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4768 *) ac_try_echo=$ac_try;;
4769 esac
4770 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4771 $as_echo "$ac_try_echo"; } >&5
4772 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4773 ac_status=$?
4774 if test -s conftest.err; then
4775 sed '10a\
4776 ... rest of stderr output deleted ...
4777 10q' conftest.err >conftest.er1
4778 cat conftest.er1 >&5
4780 rm -f conftest.er1 conftest.err
4781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4782 test $ac_status = 0; }
4783 done
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4786 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4787 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4794 main ()
4796 #ifndef __GNUC__
4797 choke me
4798 #endif
4801 return 0;
4803 _ACEOF
4804 if ac_fn_cxx_try_compile "$LINENO"; then :
4805 ac_compiler_gnu=yes
4806 else
4807 ac_compiler_gnu=no
4809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4810 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4814 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4815 if test $ac_compiler_gnu = yes; then
4816 GXX=yes
4817 else
4818 GXX=
4820 ac_test_CXXFLAGS=${CXXFLAGS+set}
4821 ac_save_CXXFLAGS=$CXXFLAGS
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4823 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4824 if ${ac_cv_prog_cxx_g+:} false; then :
4825 $as_echo_n "(cached) " >&6
4826 else
4827 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4828 ac_cxx_werror_flag=yes
4829 ac_cv_prog_cxx_g=no
4830 CXXFLAGS="-g"
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4835 main ()
4839 return 0;
4841 _ACEOF
4842 if ac_fn_cxx_try_compile "$LINENO"; then :
4843 ac_cv_prog_cxx_g=yes
4844 else
4845 CXXFLAGS=""
4846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4847 /* end confdefs.h. */
4850 main ()
4854 return 0;
4856 _ACEOF
4857 if ac_fn_cxx_try_compile "$LINENO"; then :
4859 else
4860 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4861 CXXFLAGS="-g"
4862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4863 /* end confdefs.h. */
4866 main ()
4870 return 0;
4872 _ACEOF
4873 if ac_fn_cxx_try_compile "$LINENO"; then :
4874 ac_cv_prog_cxx_g=yes
4876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4881 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4884 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4885 if test "$ac_test_CXXFLAGS" = set; then
4886 CXXFLAGS=$ac_save_CXXFLAGS
4887 elif test $ac_cv_prog_cxx_g = yes; then
4888 if test "$GXX" = yes; then
4889 CXXFLAGS="-g -O2"
4890 else
4891 CXXFLAGS="-g"
4893 else
4894 if test "$GXX" = yes; then
4895 CXXFLAGS="-O2"
4896 else
4897 CXXFLAGS=
4900 ac_ext=cpp
4901 ac_cpp='$CXXCPP $CPPFLAGS'
4902 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4903 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4904 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4907 ac_ext=cpp
4908 ac_cpp='$CXXCPP $CPPFLAGS'
4909 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4910 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4911 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4913 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4914 if test -z "$CXXCPP"; then
4915 if ${ac_cv_prog_CXXCPP+:} false; then :
4916 $as_echo_n "(cached) " >&6
4917 else
4918 # Double quotes because CXXCPP needs to be expanded
4919 for CXXCPP in "$CXX -E" "/lib/cpp"
4921 ac_preproc_ok=false
4922 for ac_cxx_preproc_warn_flag in '' yes
4924 # Use a header file that comes with gcc, so configuring glibc
4925 # with a fresh cross-compiler works.
4926 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4927 # <limits.h> exists even on freestanding compilers.
4928 # On the NeXT, cc -E runs the code through the compiler's parser,
4929 # not just through cpp. "Syntax error" is here to catch this case.
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4932 #ifdef __STDC__
4933 # include <limits.h>
4934 #else
4935 # include <assert.h>
4936 #endif
4937 Syntax error
4938 _ACEOF
4939 if ac_fn_cxx_try_cpp "$LINENO"; then :
4941 else
4942 # Broken: fails on valid input.
4943 continue
4945 rm -f conftest.err conftest.i conftest.$ac_ext
4947 # OK, works on sane cases. Now check whether nonexistent headers
4948 # can be detected and how.
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4951 #include <ac_nonexistent.h>
4952 _ACEOF
4953 if ac_fn_cxx_try_cpp "$LINENO"; then :
4954 # Broken: success on invalid input.
4955 continue
4956 else
4957 # Passes both tests.
4958 ac_preproc_ok=:
4959 break
4961 rm -f conftest.err conftest.i conftest.$ac_ext
4963 done
4964 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4965 rm -f conftest.i conftest.err conftest.$ac_ext
4966 if $ac_preproc_ok; then :
4967 break
4970 done
4971 ac_cv_prog_CXXCPP=$CXXCPP
4974 CXXCPP=$ac_cv_prog_CXXCPP
4975 else
4976 ac_cv_prog_CXXCPP=$CXXCPP
4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4979 $as_echo "$CXXCPP" >&6; }
4980 ac_preproc_ok=false
4981 for ac_cxx_preproc_warn_flag in '' yes
4983 # Use a header file that comes with gcc, so configuring glibc
4984 # with a fresh cross-compiler works.
4985 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4986 # <limits.h> exists even on freestanding compilers.
4987 # On the NeXT, cc -E runs the code through the compiler's parser,
4988 # not just through cpp. "Syntax error" is here to catch this case.
4989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4990 /* end confdefs.h. */
4991 #ifdef __STDC__
4992 # include <limits.h>
4993 #else
4994 # include <assert.h>
4995 #endif
4996 Syntax error
4997 _ACEOF
4998 if ac_fn_cxx_try_cpp "$LINENO"; then :
5000 else
5001 # Broken: fails on valid input.
5002 continue
5004 rm -f conftest.err conftest.i conftest.$ac_ext
5006 # OK, works on sane cases. Now check whether nonexistent headers
5007 # can be detected and how.
5008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5009 /* end confdefs.h. */
5010 #include <ac_nonexistent.h>
5011 _ACEOF
5012 if ac_fn_cxx_try_cpp "$LINENO"; then :
5013 # Broken: success on invalid input.
5014 continue
5015 else
5016 # Passes both tests.
5017 ac_preproc_ok=:
5018 break
5020 rm -f conftest.err conftest.i conftest.$ac_ext
5022 done
5023 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5024 rm -f conftest.i conftest.err conftest.$ac_ext
5025 if $ac_preproc_ok; then :
5027 else
5028 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5029 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5030 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5031 See \`config.log' for more details" "$LINENO" 5; }
5034 ac_ext=cpp
5035 ac_cpp='$CXXCPP $CPPFLAGS'
5036 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5037 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5038 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday" >&5
5044 $as_echo_n "checking for gettimeofday... " >&6; }
5047 ac_ext=cpp
5048 ac_cpp='$CXXCPP $CPPFLAGS'
5049 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5050 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5051 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5053 ac_save_CXXFLAGS="$CXXFLAGS"
5054 CXXFLAGS="$CXXFLAGS -fno-exceptions"
5056 ac_has_gettimeofday=no;
5057 for ac_header in sys/time.h
5058 do :
5059 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
5060 if test "x$ac_cv_header_sys_time_h" = xyes; then :
5061 cat >>confdefs.h <<_ACEOF
5062 #define HAVE_SYS_TIME_H 1
5063 _ACEOF
5064 ac_has_sys_time_h=yes
5065 else
5066 ac_has_sys_time_h=no
5069 done
5071 if test x"$ac_has_sys_time_h" = x"yes"; then
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday" >&5
5073 $as_echo_n "checking for gettimeofday... " >&6; }
5074 if test x$gcc_no_link = xyes; then
5075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5076 /* end confdefs.h. */
5077 #include <sys/time.h>
5079 main ()
5081 timeval tv; gettimeofday(&tv, 0);
5083 return 0;
5085 _ACEOF
5086 if ac_fn_cxx_try_compile "$LINENO"; then :
5087 ac_has_gettimeofday=yes
5088 else
5089 ac_has_gettimeofday=no
5091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5092 else
5093 if test x$gcc_no_link = xyes; then
5094 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h. */
5098 #include <sys/time.h>
5100 main ()
5102 timeval tv; gettimeofday(&tv, 0);
5104 return 0;
5106 _ACEOF
5107 if ac_fn_cxx_try_link "$LINENO"; then :
5108 ac_has_gettimeofday=yes
5109 else
5110 ac_has_gettimeofday=no
5112 rm -f core conftest.err conftest.$ac_objext \
5113 conftest$ac_exeext conftest.$ac_ext
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_gettimeofday" >&5
5117 $as_echo "$ac_has_gettimeofday" >&6; }
5120 if test x"$ac_has_gettimeofday" = x"yes"; then
5122 $as_echo "#define _GLIBCXX_USE_GETTIMEOFDAY 1" >>confdefs.h
5126 CXXFLAGS="$ac_save_CXXFLAGS"
5127 ac_ext=c
5128 ac_cpp='$CPP $CPPFLAGS'
5129 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5130 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5131 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5135 # For clock_gettime, nanosleep and sched_yield support.
5138 # Check whether --enable-libstdcxx-time was given.
5139 if test "${enable_libstdcxx_time+set}" = set; then :
5140 enableval=$enable_libstdcxx_time;
5141 case "$enableval" in
5142 yes|no|rt) ;;
5143 *) as_fn_error $? "Unknown argument to enable/disable libstdcxx-time" "$LINENO" 5 ;;
5144 esac
5146 else
5147 enable_libstdcxx_time=auto
5153 ac_ext=cpp
5154 ac_cpp='$CXXCPP $CPPFLAGS'
5155 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5156 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5157 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5159 ac_save_CXXFLAGS="$CXXFLAGS"
5160 CXXFLAGS="$CXXFLAGS -fno-exceptions"
5161 ac_save_LIBS="$LIBS"
5163 ac_has_clock_monotonic=no
5164 ac_has_clock_realtime=no
5165 ac_has_nanosleep=no
5166 ac_has_sched_yield=no
5168 if test x"$enable_libstdcxx_time" = x"auto"; then
5170 case "${target_os}" in
5171 cygwin*)
5172 ac_has_nanosleep=yes
5174 mingw*)
5175 ac_has_win32_sleep=yes
5176 ac_has_sched_yield=yes
5178 darwin*)
5179 ac_has_nanosleep=yes
5180 ac_has_sched_yield=yes
5182 # VxWorks has nanosleep as soon as the kernel is configured with
5183 # INCLUDE_POSIX_TIMERS, which is normally/most-often the case.
5184 vxworks*)
5185 ac_has_nanosleep=yes
5187 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
5188 # Don't use link test for freestanding library, in case gcc_no_link=yes
5189 if test x"$is_hosted" = xyes; then
5190 # Versions of glibc before 2.17 needed -lrt for clock_gettime.
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
5192 $as_echo_n "checking for library containing clock_gettime... " >&6; }
5193 if ${ac_cv_search_clock_gettime+:} false; then :
5194 $as_echo_n "(cached) " >&6
5195 else
5196 ac_func_search_save_LIBS=$LIBS
5197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5198 /* end confdefs.h. */
5200 /* Override any GCC internal prototype to avoid an error.
5201 Use char because int might match the return type of a GCC
5202 builtin and then its argument prototype would still apply. */
5203 #ifdef __cplusplus
5204 extern "C"
5205 #endif
5206 char clock_gettime ();
5208 main ()
5210 return clock_gettime ();
5212 return 0;
5214 _ACEOF
5215 for ac_lib in '' rt; do
5216 if test -z "$ac_lib"; then
5217 ac_res="none required"
5218 else
5219 ac_res=-l$ac_lib
5220 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5222 if test x$gcc_no_link = xyes; then
5223 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5225 if ac_fn_cxx_try_link "$LINENO"; then :
5226 ac_cv_search_clock_gettime=$ac_res
5228 rm -f core conftest.err conftest.$ac_objext \
5229 conftest$ac_exeext
5230 if ${ac_cv_search_clock_gettime+:} false; then :
5231 break
5233 done
5234 if ${ac_cv_search_clock_gettime+:} false; then :
5236 else
5237 ac_cv_search_clock_gettime=no
5239 rm conftest.$ac_ext
5240 LIBS=$ac_func_search_save_LIBS
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
5243 $as_echo "$ac_cv_search_clock_gettime" >&6; }
5244 ac_res=$ac_cv_search_clock_gettime
5245 if test "$ac_res" != no; then :
5246 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5250 if test x"$ac_cv_search_clock_gettime" = x"none required"; then
5251 ac_has_clock_monotonic=yes
5252 ac_has_clock_realtime=yes
5255 ac_has_nanosleep=yes
5256 ac_has_sched_yield=yes
5258 freebsd*|netbsd*|dragonfly*|rtems*)
5259 ac_has_clock_monotonic=yes
5260 ac_has_clock_realtime=yes
5261 ac_has_nanosleep=yes
5262 ac_has_sched_yield=yes
5264 openbsd*)
5265 ac_has_clock_monotonic=yes
5266 ac_has_clock_realtime=yes
5267 ac_has_nanosleep=yes
5269 solaris*)
5270 ac_has_clock_monotonic=yes
5271 ac_has_clock_realtime=yes
5272 ac_has_nanosleep=yes
5273 ac_has_sched_yield=yes
5275 uclinux*)
5276 ac_has_nanosleep=yes
5277 ac_has_sched_yield=yes
5278 esac
5280 elif test x"$enable_libstdcxx_time" != x"no"; then
5282 if test x"$enable_libstdcxx_time" = x"rt"; then
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
5284 $as_echo_n "checking for library containing clock_gettime... " >&6; }
5285 if ${ac_cv_search_clock_gettime+:} false; then :
5286 $as_echo_n "(cached) " >&6
5287 else
5288 ac_func_search_save_LIBS=$LIBS
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5292 /* Override any GCC internal prototype to avoid an error.
5293 Use char because int might match the return type of a GCC
5294 builtin and then its argument prototype would still apply. */
5295 #ifdef __cplusplus
5296 extern "C"
5297 #endif
5298 char clock_gettime ();
5300 main ()
5302 return clock_gettime ();
5304 return 0;
5306 _ACEOF
5307 for ac_lib in '' rt; do
5308 if test -z "$ac_lib"; then
5309 ac_res="none required"
5310 else
5311 ac_res=-l$ac_lib
5312 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5314 if test x$gcc_no_link = xyes; then
5315 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5317 if ac_fn_cxx_try_link "$LINENO"; then :
5318 ac_cv_search_clock_gettime=$ac_res
5320 rm -f core conftest.err conftest.$ac_objext \
5321 conftest$ac_exeext
5322 if ${ac_cv_search_clock_gettime+:} false; then :
5323 break
5325 done
5326 if ${ac_cv_search_clock_gettime+:} false; then :
5328 else
5329 ac_cv_search_clock_gettime=no
5331 rm conftest.$ac_ext
5332 LIBS=$ac_func_search_save_LIBS
5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
5335 $as_echo "$ac_cv_search_clock_gettime" >&6; }
5336 ac_res=$ac_cv_search_clock_gettime
5337 if test "$ac_res" != no; then :
5338 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
5343 $as_echo_n "checking for library containing nanosleep... " >&6; }
5344 if ${ac_cv_search_nanosleep+:} false; then :
5345 $as_echo_n "(cached) " >&6
5346 else
5347 ac_func_search_save_LIBS=$LIBS
5348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5349 /* end confdefs.h. */
5351 /* Override any GCC internal prototype to avoid an error.
5352 Use char because int might match the return type of a GCC
5353 builtin and then its argument prototype would still apply. */
5354 #ifdef __cplusplus
5355 extern "C"
5356 #endif
5357 char nanosleep ();
5359 main ()
5361 return nanosleep ();
5363 return 0;
5365 _ACEOF
5366 for ac_lib in '' rt; do
5367 if test -z "$ac_lib"; then
5368 ac_res="none required"
5369 else
5370 ac_res=-l$ac_lib
5371 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5373 if test x$gcc_no_link = xyes; then
5374 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5376 if ac_fn_cxx_try_link "$LINENO"; then :
5377 ac_cv_search_nanosleep=$ac_res
5379 rm -f core conftest.err conftest.$ac_objext \
5380 conftest$ac_exeext
5381 if ${ac_cv_search_nanosleep+:} false; then :
5382 break
5384 done
5385 if ${ac_cv_search_nanosleep+:} false; then :
5387 else
5388 ac_cv_search_nanosleep=no
5390 rm conftest.$ac_ext
5391 LIBS=$ac_func_search_save_LIBS
5393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
5394 $as_echo "$ac_cv_search_nanosleep" >&6; }
5395 ac_res=$ac_cv_search_nanosleep
5396 if test "$ac_res" != no; then :
5397 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5401 else
5402 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5403 if test "x$ac_cv_func_clock_gettime" = xyes; then :
5407 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5408 if test "x$ac_cv_func_nanosleep" = xyes; then :
5414 case "$ac_cv_search_clock_gettime" in
5415 -l*) GLIBCXX_LIBS=$ac_cv_search_clock_gettime
5417 esac
5418 case "$ac_cv_search_nanosleep" in
5419 -l*) GLIBCXX_LIBS="$GLIBCXX_LIBS $ac_cv_search_nanosleep"
5421 esac
5423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
5424 $as_echo_n "checking for library containing sched_yield... " >&6; }
5425 if ${ac_cv_search_sched_yield+:} false; then :
5426 $as_echo_n "(cached) " >&6
5427 else
5428 ac_func_search_save_LIBS=$LIBS
5429 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5430 /* end confdefs.h. */
5432 /* Override any GCC internal prototype to avoid an error.
5433 Use char because int might match the return type of a GCC
5434 builtin and then its argument prototype would still apply. */
5435 #ifdef __cplusplus
5436 extern "C"
5437 #endif
5438 char sched_yield ();
5440 main ()
5442 return sched_yield ();
5444 return 0;
5446 _ACEOF
5447 for ac_lib in '' rt; do
5448 if test -z "$ac_lib"; then
5449 ac_res="none required"
5450 else
5451 ac_res=-l$ac_lib
5452 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5454 if test x$gcc_no_link = xyes; then
5455 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5457 if ac_fn_cxx_try_link "$LINENO"; then :
5458 ac_cv_search_sched_yield=$ac_res
5460 rm -f core conftest.err conftest.$ac_objext \
5461 conftest$ac_exeext
5462 if ${ac_cv_search_sched_yield+:} false; then :
5463 break
5465 done
5466 if ${ac_cv_search_sched_yield+:} false; then :
5468 else
5469 ac_cv_search_sched_yield=no
5471 rm conftest.$ac_ext
5472 LIBS=$ac_func_search_save_LIBS
5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
5475 $as_echo "$ac_cv_search_sched_yield" >&6; }
5476 ac_res=$ac_cv_search_sched_yield
5477 if test "$ac_res" != no; then :
5478 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5483 case "$ac_cv_search_sched_yield" in
5484 -lrt*)
5485 if test x"$enable_libstdcxx_time" = x"rt"; then
5486 GLIBCXX_LIBS="$GLIBCXX_LIBS $ac_cv_search_sched_yield"
5487 ac_has_sched_yield=yes
5491 ac_has_sched_yield=yes
5493 esac
5495 for ac_header in unistd.h
5496 do :
5497 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5498 if test "x$ac_cv_header_unistd_h" = xyes; then :
5499 cat >>confdefs.h <<_ACEOF
5500 #define HAVE_UNISTD_H 1
5501 _ACEOF
5502 ac_has_unistd_h=yes
5503 else
5504 ac_has_unistd_h=no
5507 done
5510 if test x"$ac_has_unistd_h" = x"yes"; then
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock" >&5
5512 $as_echo_n "checking for monotonic clock... " >&6; }
5513 if test x$gcc_no_link = xyes; then
5514 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5518 #include <unistd.h>
5519 #include <time.h>
5522 main ()
5524 #if _POSIX_TIMERS > 0 && defined(_POSIX_MONOTONIC_CLOCK)
5525 timespec tp;
5526 #endif
5527 clock_gettime(CLOCK_MONOTONIC, &tp);
5530 return 0;
5532 _ACEOF
5533 if ac_fn_cxx_try_link "$LINENO"; then :
5534 ac_has_clock_monotonic=yes
5535 else
5536 ac_has_clock_monotonic=no
5538 rm -f core conftest.err conftest.$ac_objext \
5539 conftest$ac_exeext conftest.$ac_ext
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_clock_monotonic" >&5
5542 $as_echo "$ac_has_clock_monotonic" >&6; }
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for realtime clock" >&5
5545 $as_echo_n "checking for realtime clock... " >&6; }
5546 if test x$gcc_no_link = xyes; then
5547 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5550 /* end confdefs.h. */
5551 #include <unistd.h>
5552 #include <time.h>
5555 main ()
5557 #if _POSIX_TIMERS > 0
5558 timespec tp;
5559 #endif
5560 clock_gettime(CLOCK_REALTIME, &tp);
5563 return 0;
5565 _ACEOF
5566 if ac_fn_cxx_try_link "$LINENO"; then :
5567 ac_has_clock_realtime=yes
5568 else
5569 ac_has_clock_realtime=no
5571 rm -f core conftest.err conftest.$ac_objext \
5572 conftest$ac_exeext conftest.$ac_ext
5574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_clock_realtime" >&5
5575 $as_echo "$ac_has_clock_realtime" >&6; }
5577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep" >&5
5578 $as_echo_n "checking for nanosleep... " >&6; }
5579 if test x$gcc_no_link = xyes; then
5580 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5583 /* end confdefs.h. */
5584 #include <unistd.h>
5585 #include <time.h>
5588 main ()
5590 #if _POSIX_TIMERS > 0
5591 timespec tp;
5592 #endif
5593 nanosleep(&tp, 0);
5596 return 0;
5598 _ACEOF
5599 if ac_fn_cxx_try_link "$LINENO"; then :
5600 ac_has_nanosleep=yes
5601 else
5602 ac_has_nanosleep=no
5604 rm -f core conftest.err conftest.$ac_objext \
5605 conftest$ac_exeext conftest.$ac_ext
5607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_nanosleep" >&5
5608 $as_echo "$ac_has_nanosleep" >&6; }
5612 if test x"$ac_has_clock_monotonic" != x"yes"; then
5613 case ${target_os} in
5614 linux* | uclinux*)
5615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
5616 $as_echo_n "checking for clock_gettime syscall... " >&6; }
5617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5618 /* end confdefs.h. */
5619 #include <unistd.h>
5620 #include <time.h>
5621 #include <sys/syscall.h>
5624 main ()
5626 #if _POSIX_TIMERS > 0 && defined(_POSIX_MONOTONIC_CLOCK)
5627 timespec tp;
5628 #endif
5629 syscall(SYS_clock_gettime, CLOCK_MONOTONIC, &tp);
5630 syscall(SYS_clock_gettime, CLOCK_REALTIME, &tp);
5633 return 0;
5635 _ACEOF
5636 if ac_fn_cxx_try_compile "$LINENO"; then :
5637 ac_has_clock_gettime_syscall=yes
5638 else
5639 ac_has_clock_gettime_syscall=no
5641 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_clock_gettime_syscall" >&5
5643 $as_echo "$ac_has_clock_gettime_syscall" >&6; }
5644 if test x"$ac_has_clock_gettime_syscall" = x"yes"; then
5646 $as_echo "#define _GLIBCXX_USE_CLOCK_GETTIME_SYSCALL 1" >>confdefs.h
5648 ac_has_clock_monotonic=yes
5649 ac_has_clock_realtime=yes
5650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec that matches syscall" >&5
5651 $as_echo_n "checking for struct timespec that matches syscall... " >&6; }
5652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5654 #include <time.h>
5655 #include <sys/syscall.h>
5658 main ()
5660 #ifdef SYS_clock_gettime64
5661 #if SYS_clock_gettime64 != SYS_clock_gettime
5662 // We need to use SYS_clock_gettime and libc appears to
5663 // also know about the SYS_clock_gettime64 syscall.
5664 // Check that userspace doesn't use time64 version of timespec.
5665 static_assert(sizeof(timespec::tv_sec) == sizeof(long),
5666 "struct timespec must be compatible with SYS_clock_gettime");
5667 #endif
5668 #endif
5671 return 0;
5673 _ACEOF
5674 if ac_fn_cxx_try_compile "$LINENO"; then :
5675 ac_timespec_matches_syscall=yes
5676 else
5677 ac_timespec_matches_syscall=no
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_timespec_matches_syscall" >&5
5681 $as_echo "$ac_timespec_matches_syscall" >&6; }
5682 if test x"$ac_timespec_matches_syscall" = no; then
5683 as_fn_error $? "struct timespec is not compatible with SYS_clock_gettime, please report a bug to http://gcc.gnu.org/bugzilla" "$LINENO" 5
5685 fi;;
5686 esac
5689 if test x"$ac_has_clock_monotonic" = x"yes"; then
5691 $as_echo "#define _GLIBCXX_USE_CLOCK_MONOTONIC 1" >>confdefs.h
5695 if test x"$ac_has_clock_realtime" = x"yes"; then
5697 $as_echo "#define _GLIBCXX_USE_CLOCK_REALTIME 1" >>confdefs.h
5701 if test x"$ac_has_sched_yield" = x"yes"; then
5703 $as_echo "#define _GLIBCXX_USE_SCHED_YIELD 1" >>confdefs.h
5707 if test x"$ac_has_nanosleep" = x"yes"; then
5709 $as_echo "#define _GLIBCXX_USE_NANOSLEEP 1" >>confdefs.h
5711 elif test x"$ac_has_win32_sleep" = x"yes"; then
5713 $as_echo "#define _GLIBCXX_USE_WIN32_SLEEP 1" >>confdefs.h
5715 else
5716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sleep" >&5
5717 $as_echo_n "checking for sleep... " >&6; }
5718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5719 /* end confdefs.h. */
5720 #include <unistd.h>
5722 main ()
5724 sleep(1)
5726 return 0;
5728 _ACEOF
5729 if ac_fn_cxx_try_compile "$LINENO"; then :
5730 ac_has_sleep=yes
5731 else
5732 ac_has_sleep=no
5734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5735 if test x"$ac_has_sleep" = x"yes"; then
5737 $as_echo "#define HAVE_SLEEP 1" >>confdefs.h
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_sleep" >&5
5741 $as_echo "$ac_has_sleep" >&6; }
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usleep" >&5
5743 $as_echo_n "checking for usleep... " >&6; }
5744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5745 /* end confdefs.h. */
5746 #include <unistd.h>
5748 main ()
5750 sleep(1);
5751 usleep(100);
5753 return 0;
5755 _ACEOF
5756 if ac_fn_cxx_try_compile "$LINENO"; then :
5757 ac_has_usleep=yes
5758 else
5759 ac_has_usleep=no
5761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762 if test x"$ac_has_usleep" = x"yes"; then
5764 $as_echo "#define HAVE_USLEEP 1" >>confdefs.h
5767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_usleep" >&5
5768 $as_echo "$ac_has_usleep" >&6; }
5771 if test x"$ac_has_nanosleep$ac_has_win32_sleep$ac_has_sleep" = x"nonono"; then
5773 $as_echo "#define _GLIBCXX_NO_SLEEP 1" >>confdefs.h
5779 CXXFLAGS="$ac_save_CXXFLAGS"
5780 LIBS="$ac_save_LIBS"
5781 ac_ext=c
5782 ac_cpp='$CPP $CPPFLAGS'
5783 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5784 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5785 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5789 am__api_version='1.15'
5791 # Find a good install program. We prefer a C program (faster),
5792 # so one script is as good as another. But avoid the broken or
5793 # incompatible versions:
5794 # SysV /etc/install, /usr/sbin/install
5795 # SunOS /usr/etc/install
5796 # IRIX /sbin/install
5797 # AIX /bin/install
5798 # AmigaOS /C/install, which installs bootblocks on floppy discs
5799 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5800 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5801 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5802 # OS/2's system install, which has a completely different semantic
5803 # ./install, which can be erroneously created by make from ./install.sh.
5804 # Reject install programs that cannot install multiple files.
5805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5806 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5807 if test -z "$INSTALL"; then
5808 if ${ac_cv_path_install+:} false; then :
5809 $as_echo_n "(cached) " >&6
5810 else
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5814 IFS=$as_save_IFS
5815 test -z "$as_dir" && as_dir=.
5816 # Account for people who put trailing slashes in PATH elements.
5817 case $as_dir/ in #((
5818 ./ | .// | /[cC]/* | \
5819 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5820 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5821 /usr/ucb/* ) ;;
5823 # OSF1 and SCO ODT 3.0 have their own names for install.
5824 # Don't use installbsd from OSF since it installs stuff as root
5825 # by default.
5826 for ac_prog in ginstall scoinst install; do
5827 for ac_exec_ext in '' $ac_executable_extensions; do
5828 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5829 if test $ac_prog = install &&
5830 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5831 # AIX install. It has an incompatible calling convention.
5833 elif test $ac_prog = install &&
5834 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5835 # program-specific install script used by HP pwplus--don't use.
5837 else
5838 rm -rf conftest.one conftest.two conftest.dir
5839 echo one > conftest.one
5840 echo two > conftest.two
5841 mkdir conftest.dir
5842 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5843 test -s conftest.one && test -s conftest.two &&
5844 test -s conftest.dir/conftest.one &&
5845 test -s conftest.dir/conftest.two
5846 then
5847 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5848 break 3
5852 done
5853 done
5855 esac
5857 done
5858 IFS=$as_save_IFS
5860 rm -rf conftest.one conftest.two conftest.dir
5863 if test "${ac_cv_path_install+set}" = set; then
5864 INSTALL=$ac_cv_path_install
5865 else
5866 # As a last resort, use the slow shell script. Don't cache a
5867 # value for INSTALL within a source directory, because that will
5868 # break other packages using the cache if that directory is
5869 # removed, or if the value is a relative name.
5870 INSTALL=$ac_install_sh
5873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5874 $as_echo "$INSTALL" >&6; }
5876 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5877 # It thinks the first close brace ends the variable substitution.
5878 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5880 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5882 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5885 $as_echo_n "checking whether build environment is sane... " >&6; }
5886 # Reject unsafe characters in $srcdir or the absolute working directory
5887 # name. Accept space and tab only in the latter.
5888 am_lf='
5890 case `pwd` in
5891 *[\\\"\#\$\&\'\`$am_lf]*)
5892 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5893 esac
5894 case $srcdir in
5895 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5896 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5897 esac
5899 # Do 'set' in a subshell so we don't clobber the current shell's
5900 # arguments. Must try -L first in case configure is actually a
5901 # symlink; some systems play weird games with the mod time of symlinks
5902 # (eg FreeBSD returns the mod time of the symlink's containing
5903 # directory).
5904 if (
5905 am_has_slept=no
5906 for am_try in 1 2; do
5907 echo "timestamp, slept: $am_has_slept" > conftest.file
5908 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5909 if test "$*" = "X"; then
5910 # -L didn't work.
5911 set X `ls -t "$srcdir/configure" conftest.file`
5913 if test "$*" != "X $srcdir/configure conftest.file" \
5914 && test "$*" != "X conftest.file $srcdir/configure"; then
5916 # If neither matched, then we have a broken ls. This can happen
5917 # if, for instance, CONFIG_SHELL is bash and it inherits a
5918 # broken ls alias from the environment. This has actually
5919 # happened. Such a system could not be considered "sane".
5920 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5921 alias in your environment" "$LINENO" 5
5923 if test "$2" = conftest.file || test $am_try -eq 2; then
5924 break
5926 # Just in case.
5927 sleep 1
5928 am_has_slept=yes
5929 done
5930 test "$2" = conftest.file
5932 then
5933 # Ok.
5935 else
5936 as_fn_error $? "newly created file is older than distributed files!
5937 Check your system clock" "$LINENO" 5
5939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5940 $as_echo "yes" >&6; }
5941 # If we didn't sleep, we still need to ensure time stamps of config.status and
5942 # generated files are strictly newer.
5943 am_sleep_pid=
5944 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5945 ( sleep 1 ) &
5946 am_sleep_pid=$!
5949 rm -f conftest.file
5951 test "$program_prefix" != NONE &&
5952 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5953 # Use a double $ so make ignores it.
5954 test "$program_suffix" != NONE &&
5955 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5956 # Double any \ or $.
5957 # By default was `s,x,x', remove it if useless.
5958 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5959 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5961 if test x"${MISSING+set}" != xset; then
5962 case $am_aux_dir in
5963 *\ * | *\ *)
5964 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5966 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5967 esac
5969 # Use eval to expand $SHELL
5970 if eval "$MISSING --is-lightweight"; then
5971 am_missing_run="$MISSING "
5972 else
5973 am_missing_run=
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5975 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5978 if test x"${install_sh+set}" != xset; then
5979 case $am_aux_dir in
5980 *\ * | *\ *)
5981 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5983 install_sh="\${SHELL} $am_aux_dir/install-sh"
5984 esac
5987 # Installed binaries are usually stripped using 'strip' when the user
5988 # run "make install-strip". However 'strip' might not be the right
5989 # tool to use in cross-compilation environments, therefore Automake
5990 # will honor the 'STRIP' environment variable to overrule this program.
5991 if test "$cross_compiling" != no; then
5992 if test -n "$ac_tool_prefix"; then
5993 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5994 set dummy ${ac_tool_prefix}strip; ac_word=$2
5995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5996 $as_echo_n "checking for $ac_word... " >&6; }
5997 if ${ac_cv_prog_STRIP+:} false; then :
5998 $as_echo_n "(cached) " >&6
5999 else
6000 if test -n "$STRIP"; then
6001 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6002 else
6003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6004 for as_dir in $PATH
6006 IFS=$as_save_IFS
6007 test -z "$as_dir" && as_dir=.
6008 for ac_exec_ext in '' $ac_executable_extensions; do
6009 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6010 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6011 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6012 break 2
6014 done
6015 done
6016 IFS=$as_save_IFS
6020 STRIP=$ac_cv_prog_STRIP
6021 if test -n "$STRIP"; then
6022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6023 $as_echo "$STRIP" >&6; }
6024 else
6025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6026 $as_echo "no" >&6; }
6031 if test -z "$ac_cv_prog_STRIP"; then
6032 ac_ct_STRIP=$STRIP
6033 # Extract the first word of "strip", so it can be a program name with args.
6034 set dummy strip; ac_word=$2
6035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6036 $as_echo_n "checking for $ac_word... " >&6; }
6037 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6038 $as_echo_n "(cached) " >&6
6039 else
6040 if test -n "$ac_ct_STRIP"; then
6041 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6042 else
6043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6044 for as_dir in $PATH
6046 IFS=$as_save_IFS
6047 test -z "$as_dir" && as_dir=.
6048 for ac_exec_ext in '' $ac_executable_extensions; do
6049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6050 ac_cv_prog_ac_ct_STRIP="strip"
6051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6052 break 2
6054 done
6055 done
6056 IFS=$as_save_IFS
6060 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6061 if test -n "$ac_ct_STRIP"; then
6062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6063 $as_echo "$ac_ct_STRIP" >&6; }
6064 else
6065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6066 $as_echo "no" >&6; }
6069 if test "x$ac_ct_STRIP" = x; then
6070 STRIP=":"
6071 else
6072 case $cross_compiling:$ac_tool_warned in
6073 yes:)
6074 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6075 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6076 ac_tool_warned=yes ;;
6077 esac
6078 STRIP=$ac_ct_STRIP
6080 else
6081 STRIP="$ac_cv_prog_STRIP"
6085 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6088 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6089 if test -z "$MKDIR_P"; then
6090 if ${ac_cv_path_mkdir+:} false; then :
6091 $as_echo_n "(cached) " >&6
6092 else
6093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6094 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6096 IFS=$as_save_IFS
6097 test -z "$as_dir" && as_dir=.
6098 for ac_prog in mkdir gmkdir; do
6099 for ac_exec_ext in '' $ac_executable_extensions; do
6100 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6101 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6102 'mkdir (GNU coreutils) '* | \
6103 'mkdir (coreutils) '* | \
6104 'mkdir (fileutils) '4.1*)
6105 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6106 break 3;;
6107 esac
6108 done
6109 done
6110 done
6111 IFS=$as_save_IFS
6115 test -d ./--version && rmdir ./--version
6116 if test "${ac_cv_path_mkdir+set}" = set; then
6117 MKDIR_P="$ac_cv_path_mkdir -p"
6118 else
6119 # As a last resort, use the slow shell script. Don't cache a
6120 # value for MKDIR_P within a source directory, because that will
6121 # break other packages using the cache if that directory is
6122 # removed, or if the value is a relative name.
6123 MKDIR_P="$ac_install_sh -d"
6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6127 $as_echo "$MKDIR_P" >&6; }
6129 for ac_prog in gawk mawk nawk awk
6131 # Extract the first word of "$ac_prog", so it can be a program name with args.
6132 set dummy $ac_prog; ac_word=$2
6133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6134 $as_echo_n "checking for $ac_word... " >&6; }
6135 if ${ac_cv_prog_AWK+:} false; then :
6136 $as_echo_n "(cached) " >&6
6137 else
6138 if test -n "$AWK"; then
6139 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6140 else
6141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6142 for as_dir in $PATH
6144 IFS=$as_save_IFS
6145 test -z "$as_dir" && as_dir=.
6146 for ac_exec_ext in '' $ac_executable_extensions; do
6147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6148 ac_cv_prog_AWK="$ac_prog"
6149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6150 break 2
6152 done
6153 done
6154 IFS=$as_save_IFS
6158 AWK=$ac_cv_prog_AWK
6159 if test -n "$AWK"; then
6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6161 $as_echo "$AWK" >&6; }
6162 else
6163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6164 $as_echo "no" >&6; }
6168 test -n "$AWK" && break
6169 done
6171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6172 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6173 set x ${MAKE-make}
6174 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6175 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6176 $as_echo_n "(cached) " >&6
6177 else
6178 cat >conftest.make <<\_ACEOF
6179 SHELL = /bin/sh
6180 all:
6181 @echo '@@@%%%=$(MAKE)=@@@%%%'
6182 _ACEOF
6183 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6184 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6185 *@@@%%%=?*=@@@%%%*)
6186 eval ac_cv_prog_make_${ac_make}_set=yes;;
6188 eval ac_cv_prog_make_${ac_make}_set=no;;
6189 esac
6190 rm -f conftest.make
6192 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6194 $as_echo "yes" >&6; }
6195 SET_MAKE=
6196 else
6197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6198 $as_echo "no" >&6; }
6199 SET_MAKE="MAKE=${MAKE-make}"
6202 rm -rf .tst 2>/dev/null
6203 mkdir .tst 2>/dev/null
6204 if test -d .tst; then
6205 am__leading_dot=.
6206 else
6207 am__leading_dot=_
6209 rmdir .tst 2>/dev/null
6211 DEPDIR="${am__leading_dot}deps"
6213 ac_config_commands="$ac_config_commands depfiles"
6216 am_make=${MAKE-make}
6217 cat > confinc << 'END'
6218 am__doit:
6219 @echo this is the am__doit target
6220 .PHONY: am__doit
6222 # If we don't find an include directive, just comment out the code.
6223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
6224 $as_echo_n "checking for style of include used by $am_make... " >&6; }
6225 am__include="#"
6226 am__quote=
6227 _am_result=none
6228 # First try GNU make style include.
6229 echo "include confinc" > confmf
6230 # Ignore all kinds of additional output from 'make'.
6231 case `$am_make -s -f confmf 2> /dev/null` in #(
6232 *the\ am__doit\ target*)
6233 am__include=include
6234 am__quote=
6235 _am_result=GNU
6237 esac
6238 # Now try BSD make style include.
6239 if test "$am__include" = "#"; then
6240 echo '.include "confinc"' > confmf
6241 case `$am_make -s -f confmf 2> /dev/null` in #(
6242 *the\ am__doit\ target*)
6243 am__include=.include
6244 am__quote="\""
6245 _am_result=BSD
6247 esac
6251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
6252 $as_echo "$_am_result" >&6; }
6253 rm -f confinc confmf
6255 # Check whether --enable-dependency-tracking was given.
6256 if test "${enable_dependency_tracking+set}" = set; then :
6257 enableval=$enable_dependency_tracking;
6260 if test "x$enable_dependency_tracking" != xno; then
6261 am_depcomp="$ac_aux_dir/depcomp"
6262 AMDEPBACKSLASH='\'
6263 am__nodep='_no'
6265 if test "x$enable_dependency_tracking" != xno; then
6266 AMDEP_TRUE=
6267 AMDEP_FALSE='#'
6268 else
6269 AMDEP_TRUE='#'
6270 AMDEP_FALSE=
6274 # Check whether --enable-silent-rules was given.
6275 if test "${enable_silent_rules+set}" = set; then :
6276 enableval=$enable_silent_rules;
6279 case $enable_silent_rules in # (((
6280 yes) AM_DEFAULT_VERBOSITY=0;;
6281 no) AM_DEFAULT_VERBOSITY=1;;
6282 *) AM_DEFAULT_VERBOSITY=1;;
6283 esac
6284 am_make=${MAKE-make}
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
6286 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
6287 if ${am_cv_make_support_nested_variables+:} false; then :
6288 $as_echo_n "(cached) " >&6
6289 else
6290 if $as_echo 'TRUE=$(BAR$(V))
6291 BAR0=false
6292 BAR1=true
6294 am__doit:
6295 @$(TRUE)
6296 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
6297 am_cv_make_support_nested_variables=yes
6298 else
6299 am_cv_make_support_nested_variables=no
6302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
6303 $as_echo "$am_cv_make_support_nested_variables" >&6; }
6304 if test $am_cv_make_support_nested_variables = yes; then
6305 AM_V='$(V)'
6306 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6307 else
6308 AM_V=$AM_DEFAULT_VERBOSITY
6309 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6311 AM_BACKSLASH='\'
6313 if test "`cd $srcdir && pwd`" != "`pwd`"; then
6314 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6315 # is not polluted with repeated "-I."
6316 am__isrc=' -I$(srcdir)'
6317 # test to see if srcdir already configured
6318 if test -f $srcdir/config.status; then
6319 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6323 # test whether we have cygpath
6324 if test -z "$CYGPATH_W"; then
6325 if (cygpath --version) >/dev/null 2>/dev/null; then
6326 CYGPATH_W='cygpath -w'
6327 else
6328 CYGPATH_W=echo
6333 # Define the identity of the package.
6334 PACKAGE='libgm2'
6335 VERSION='version-unused'
6338 # Some tools Automake needs.
6340 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6343 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6346 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6349 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6352 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6354 # For better backward compatibility. To be removed once Automake 1.9.x
6355 # dies out for good. For more background, see:
6356 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
6357 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
6358 mkdir_p='$(MKDIR_P)'
6360 # We need awk for the "check" target (and possibly the TAP driver). The
6361 # system "awk" is bad on some platforms.
6362 # Always define AMTAR for backward compatibility. Yes, it's still used
6363 # in the wild :-( We should find a proper way to deprecate it ...
6364 AMTAR='$${TAR-tar}'
6367 # We'll loop over all known methods to create a tar archive until one works.
6368 _am_tools='gnutar pax cpio none'
6370 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
6376 depcc="$CC" am_compiler_list=
6378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6379 $as_echo_n "checking dependency style of $depcc... " >&6; }
6380 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6381 $as_echo_n "(cached) " >&6
6382 else
6383 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6384 # We make a subdir and do the tests there. Otherwise we can end up
6385 # making bogus files that we don't know about and never remove. For
6386 # instance it was reported that on HP-UX the gcc test will end up
6387 # making a dummy file named 'D' -- because '-MD' means "put the output
6388 # in D".
6389 rm -rf conftest.dir
6390 mkdir conftest.dir
6391 # Copy depcomp to subdir because otherwise we won't find it if we're
6392 # using a relative directory.
6393 cp "$am_depcomp" conftest.dir
6394 cd conftest.dir
6395 # We will build objects and dependencies in a subdirectory because
6396 # it helps to detect inapplicable dependency modes. For instance
6397 # both Tru64's cc and ICC support -MD to output dependencies as a
6398 # side effect of compilation, but ICC will put the dependencies in
6399 # the current directory while Tru64 will put them in the object
6400 # directory.
6401 mkdir sub
6403 am_cv_CC_dependencies_compiler_type=none
6404 if test "$am_compiler_list" = ""; then
6405 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6407 am__universal=false
6408 case " $depcc " in #(
6409 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6410 esac
6412 for depmode in $am_compiler_list; do
6413 # Setup a source with many dependencies, because some compilers
6414 # like to wrap large dependency lists on column 80 (with \), and
6415 # we should not choose a depcomp mode which is confused by this.
6417 # We need to recreate these files for each test, as the compiler may
6418 # overwrite some of them when testing with obscure command lines.
6419 # This happens at least with the AIX C compiler.
6420 : > sub/conftest.c
6421 for i in 1 2 3 4 5 6; do
6422 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6423 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6424 # Solaris 10 /bin/sh.
6425 echo '/* dummy */' > sub/conftst$i.h
6426 done
6427 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6429 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6430 # mode. It turns out that the SunPro C++ compiler does not properly
6431 # handle '-M -o', and we need to detect this. Also, some Intel
6432 # versions had trouble with output in subdirs.
6433 am__obj=sub/conftest.${OBJEXT-o}
6434 am__minus_obj="-o $am__obj"
6435 case $depmode in
6436 gcc)
6437 # This depmode causes a compiler race in universal mode.
6438 test "$am__universal" = false || continue
6440 nosideeffect)
6441 # After this tag, mechanisms are not by side-effect, so they'll
6442 # only be used when explicitly requested.
6443 if test "x$enable_dependency_tracking" = xyes; then
6444 continue
6445 else
6446 break
6449 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6450 # This compiler won't grok '-c -o', but also, the minuso test has
6451 # not run yet. These depmodes are late enough in the game, and
6452 # so weak that their functioning should not be impacted.
6453 am__obj=conftest.${OBJEXT-o}
6454 am__minus_obj=
6456 none) break ;;
6457 esac
6458 if depmode=$depmode \
6459 source=sub/conftest.c object=$am__obj \
6460 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6461 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6462 >/dev/null 2>conftest.err &&
6463 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6464 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6465 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6466 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6467 # icc doesn't choke on unknown options, it will just issue warnings
6468 # or remarks (even with -Werror). So we grep stderr for any message
6469 # that says an option was ignored or not supported.
6470 # When given -MP, icc 7.0 and 7.1 complain thusly:
6471 # icc: Command line warning: ignoring option '-M'; no argument required
6472 # The diagnosis changed in icc 8.0:
6473 # icc: Command line remark: option '-MP' not supported
6474 if (grep 'ignoring option' conftest.err ||
6475 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6476 am_cv_CC_dependencies_compiler_type=$depmode
6477 break
6480 done
6482 cd ..
6483 rm -rf conftest.dir
6484 else
6485 am_cv_CC_dependencies_compiler_type=none
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6490 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6491 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6494 test "x$enable_dependency_tracking" != xno \
6495 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6496 am__fastdepCC_TRUE=
6497 am__fastdepCC_FALSE='#'
6498 else
6499 am__fastdepCC_TRUE='#'
6500 am__fastdepCC_FALSE=
6504 depcc="$CXX" am_compiler_list=
6506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6507 $as_echo_n "checking dependency style of $depcc... " >&6; }
6508 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6509 $as_echo_n "(cached) " >&6
6510 else
6511 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6512 # We make a subdir and do the tests there. Otherwise we can end up
6513 # making bogus files that we don't know about and never remove. For
6514 # instance it was reported that on HP-UX the gcc test will end up
6515 # making a dummy file named 'D' -- because '-MD' means "put the output
6516 # in D".
6517 rm -rf conftest.dir
6518 mkdir conftest.dir
6519 # Copy depcomp to subdir because otherwise we won't find it if we're
6520 # using a relative directory.
6521 cp "$am_depcomp" conftest.dir
6522 cd conftest.dir
6523 # We will build objects and dependencies in a subdirectory because
6524 # it helps to detect inapplicable dependency modes. For instance
6525 # both Tru64's cc and ICC support -MD to output dependencies as a
6526 # side effect of compilation, but ICC will put the dependencies in
6527 # the current directory while Tru64 will put them in the object
6528 # directory.
6529 mkdir sub
6531 am_cv_CXX_dependencies_compiler_type=none
6532 if test "$am_compiler_list" = ""; then
6533 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6535 am__universal=false
6536 case " $depcc " in #(
6537 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6538 esac
6540 for depmode in $am_compiler_list; do
6541 # Setup a source with many dependencies, because some compilers
6542 # like to wrap large dependency lists on column 80 (with \), and
6543 # we should not choose a depcomp mode which is confused by this.
6545 # We need to recreate these files for each test, as the compiler may
6546 # overwrite some of them when testing with obscure command lines.
6547 # This happens at least with the AIX C compiler.
6548 : > sub/conftest.c
6549 for i in 1 2 3 4 5 6; do
6550 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6551 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6552 # Solaris 10 /bin/sh.
6553 echo '/* dummy */' > sub/conftst$i.h
6554 done
6555 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6557 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6558 # mode. It turns out that the SunPro C++ compiler does not properly
6559 # handle '-M -o', and we need to detect this. Also, some Intel
6560 # versions had trouble with output in subdirs.
6561 am__obj=sub/conftest.${OBJEXT-o}
6562 am__minus_obj="-o $am__obj"
6563 case $depmode in
6564 gcc)
6565 # This depmode causes a compiler race in universal mode.
6566 test "$am__universal" = false || continue
6568 nosideeffect)
6569 # After this tag, mechanisms are not by side-effect, so they'll
6570 # only be used when explicitly requested.
6571 if test "x$enable_dependency_tracking" = xyes; then
6572 continue
6573 else
6574 break
6577 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6578 # This compiler won't grok '-c -o', but also, the minuso test has
6579 # not run yet. These depmodes are late enough in the game, and
6580 # so weak that their functioning should not be impacted.
6581 am__obj=conftest.${OBJEXT-o}
6582 am__minus_obj=
6584 none) break ;;
6585 esac
6586 if depmode=$depmode \
6587 source=sub/conftest.c object=$am__obj \
6588 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6589 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6590 >/dev/null 2>conftest.err &&
6591 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6592 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6593 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6594 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6595 # icc doesn't choke on unknown options, it will just issue warnings
6596 # or remarks (even with -Werror). So we grep stderr for any message
6597 # that says an option was ignored or not supported.
6598 # When given -MP, icc 7.0 and 7.1 complain thusly:
6599 # icc: Command line warning: ignoring option '-M'; no argument required
6600 # The diagnosis changed in icc 8.0:
6601 # icc: Command line remark: option '-MP' not supported
6602 if (grep 'ignoring option' conftest.err ||
6603 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6604 am_cv_CXX_dependencies_compiler_type=$depmode
6605 break
6608 done
6610 cd ..
6611 rm -rf conftest.dir
6612 else
6613 am_cv_CXX_dependencies_compiler_type=none
6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6618 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6619 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6622 test "x$enable_dependency_tracking" != xno \
6623 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6624 am__fastdepCXX_TRUE=
6625 am__fastdepCXX_FALSE='#'
6626 else
6627 am__fastdepCXX_TRUE='#'
6628 am__fastdepCXX_FALSE=
6633 # POSIX will say in a future version that running "rm -f" with no argument
6634 # is OK; and we want to be able to make that assumption in our Makefile
6635 # recipes. So use an aggressive probe to check that the usage we want is
6636 # actually supported "in the wild" to an acceptable degree.
6637 # See automake bug#10828.
6638 # To make any issue more visible, cause the running configure to be aborted
6639 # by default if the 'rm' program in use doesn't match our expectations; the
6640 # user can still override this though.
6641 if rm -f && rm -fr && rm -rf; then : OK; else
6642 cat >&2 <<'END'
6643 Oops!
6645 Your 'rm' program seems unable to run without file operands specified
6646 on the command line, even when the '-f' option is present. This is contrary
6647 to the behaviour of most rm programs out there, and not conforming with
6648 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6650 Please tell bug-automake@gnu.org about your system, including the value
6651 of your $PATH and any error possibly output before this message. This
6652 can help us improve future automake versions.
6655 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6656 echo 'Configuration will proceed anyway, since you have set the' >&2
6657 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6658 echo >&2
6659 else
6660 cat >&2 <<'END'
6661 Aborting the configuration process, to ensure you take notice of the issue.
6663 You can download and install GNU coreutils to get an 'rm' implementation
6664 that behaves properly: <http://www.gnu.org/software/coreutils/>.
6666 If you want to complete the configuration process using your problematic
6667 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6668 to "yes", and re-run configure.
6671 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6680 # Check whether --with-cross-host was given.
6681 if test "${with_cross_host+set}" = set; then :
6682 withval=$with_cross_host;
6686 # Checks for header files.
6687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6688 $as_echo_n "checking for ANSI C header files... " >&6; }
6689 if ${ac_cv_header_stdc+:} false; then :
6690 $as_echo_n "(cached) " >&6
6691 else
6692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6693 /* end confdefs.h. */
6694 #include <stdlib.h>
6695 #include <stdarg.h>
6696 #include <string.h>
6697 #include <float.h>
6700 main ()
6704 return 0;
6706 _ACEOF
6707 if ac_fn_c_try_compile "$LINENO"; then :
6708 ac_cv_header_stdc=yes
6709 else
6710 ac_cv_header_stdc=no
6712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6714 if test $ac_cv_header_stdc = yes; then
6715 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6717 /* end confdefs.h. */
6718 #include <string.h>
6720 _ACEOF
6721 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6722 $EGREP "memchr" >/dev/null 2>&1; then :
6724 else
6725 ac_cv_header_stdc=no
6727 rm -f conftest*
6731 if test $ac_cv_header_stdc = yes; then
6732 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6733 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6734 /* end confdefs.h. */
6735 #include <stdlib.h>
6737 _ACEOF
6738 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6739 $EGREP "free" >/dev/null 2>&1; then :
6741 else
6742 ac_cv_header_stdc=no
6744 rm -f conftest*
6748 if test $ac_cv_header_stdc = yes; then
6749 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6750 if test "$cross_compiling" = yes; then :
6752 else
6753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6754 /* end confdefs.h. */
6755 #include <ctype.h>
6756 #include <stdlib.h>
6757 #if ((' ' & 0x0FF) == 0x020)
6758 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6759 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6760 #else
6761 # define ISLOWER(c) \
6762 (('a' <= (c) && (c) <= 'i') \
6763 || ('j' <= (c) && (c) <= 'r') \
6764 || ('s' <= (c) && (c) <= 'z'))
6765 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6766 #endif
6768 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6770 main ()
6772 int i;
6773 for (i = 0; i < 256; i++)
6774 if (XOR (islower (i), ISLOWER (i))
6775 || toupper (i) != TOUPPER (i))
6776 return 2;
6777 return 0;
6779 _ACEOF
6780 if ac_fn_c_try_run "$LINENO"; then :
6782 else
6783 ac_cv_header_stdc=no
6785 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6786 conftest.$ac_objext conftest.beam conftest.$ac_ext
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6792 $as_echo "$ac_cv_header_stdc" >&6; }
6793 if test $ac_cv_header_stdc = yes; then
6795 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6800 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6801 if ${ac_cv_header_sys_wait_h+:} false; then :
6802 $as_echo_n "(cached) " >&6
6803 else
6804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6805 /* end confdefs.h. */
6806 #include <sys/types.h>
6807 #include <sys/wait.h>
6808 #ifndef WEXITSTATUS
6809 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6810 #endif
6811 #ifndef WIFEXITED
6812 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6813 #endif
6816 main ()
6818 int s;
6819 wait (&s);
6820 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6822 return 0;
6824 _ACEOF
6825 if ac_fn_c_try_compile "$LINENO"; then :
6826 ac_cv_header_sys_wait_h=yes
6827 else
6828 ac_cv_header_sys_wait_h=no
6830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6833 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6834 if test $ac_cv_header_sys_wait_h = yes; then
6836 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6840 ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
6841 if test "x$ac_cv_header_math_h" = xyes; then :
6843 $as_echo "#define HAVE_MATH_H 1" >>confdefs.h
6849 for ac_header in getopt.h limits.h stddef.h string.h strings.h \
6850 stdlib.h time.h \
6851 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
6852 sys/resource.h sys/param.h sys/times.h sys/stat.h \
6853 sys/socket.h \
6854 sys/wait.h sys/ioctl.h errno.h sys/errno.h \
6855 pwd.h direct.h dirent.h signal.h malloc.h langinfo.h \
6856 pthread.h stdarg.h stdio.h sys/types.h termios.h \
6857 netinet/in.h netdb.h sys/uio.h sys/stat.h wchar.h
6858 do :
6859 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6860 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6861 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6862 cat >>confdefs.h <<_ACEOF
6863 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6864 _ACEOF
6868 done
6872 case ${build_alias} in
6873 "") build_noncanonical=${build} ;;
6874 *) build_noncanonical=${build_alias} ;;
6875 esac
6877 case ${host_alias} in
6878 "") host_noncanonical=${build_noncanonical} ;;
6879 *) host_noncanonical=${host_alias} ;;
6880 esac
6884 case ${target_alias} in
6885 "") target_noncanonical=${host_noncanonical} ;;
6886 *) target_noncanonical=${target_alias} ;;
6887 esac
6892 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
6893 # have matching libraries, they should use host libraries: Makefile.tpl
6894 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
6895 # However, they still use the build modules, because the corresponding
6896 # host modules (e.g. bison) are only built for the host when bootstrap
6897 # finishes. So:
6898 # - build_subdir is where we find build modules, and never changes.
6899 # - build_libsubdir is where we find build libraries, and can be overridden.
6901 # Prefix 'build-' so this never conflicts with target_subdir.
6902 build_subdir="build-${build_noncanonical}"
6904 # Check whether --with-build-libsubdir was given.
6905 if test "${with_build_libsubdir+set}" = set; then :
6906 withval=$with_build_libsubdir; build_libsubdir="$withval"
6907 else
6908 build_libsubdir="$build_subdir"
6911 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
6912 if ( test $srcdir = . && test -d gcc ) \
6913 || test -d $srcdir/../host-${host_noncanonical}; then
6914 host_subdir="host-${host_noncanonical}"
6915 else
6916 host_subdir=.
6918 # No prefix.
6919 target_subdir=${target_noncanonical}
6922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
6923 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
6924 # Check whether --enable-version-specific-runtime-libs was given.
6925 if test "${enable_version_specific_runtime_libs+set}" = set; then :
6926 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
6927 yes) version_specific_libs=yes ;;
6928 no) version_specific_libs=no ;;
6929 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
6930 esac
6931 else
6932 version_specific_libs=no
6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
6936 $as_echo "$version_specific_libs" >&6; }
6939 # Check whether --with-slibdir was given.
6940 if test "${with_slibdir+set}" = set; then :
6941 withval=$with_slibdir; slibdir="$with_slibdir"
6942 else
6943 if test "${version_specific_libs}" = yes; then
6944 slibdir='$(libsubdir)'
6945 elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
6946 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
6947 else
6948 slibdir='$(libdir)'
6954 # Command-line options.
6955 # Very limited version of AC_MAINTAINER_MODE.
6956 # Check whether --enable-maintainer-mode was given.
6957 if test "${enable_maintainer_mode+set}" = set; then :
6958 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
6959 yes) MAINT='' ;;
6960 no) MAINT='#' ;;
6961 *) as_fn_error $? "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
6962 esac
6963 maintainer_mode=${enableval}
6964 else
6965 MAINT='#'
6969 toolexecdir=no
6970 toolexeclibdir=no
6972 # Calculate toolexeclibdir
6973 # Also toolexecdir, though it's only used in toolexeclibdir
6974 case ${version_specific_libs} in
6975 yes)
6976 # Need the gcc compiler version to know where to install libraries
6977 # and header files if --enable-version-specific-runtime-libs option
6978 # is selected.
6979 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
6980 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
6983 if test -n "$with_cross_host" &&
6984 test x"$with_cross_host" != x"no"; then
6985 # Install a library built with a cross compiler in tooldir, not libdir.
6986 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
6987 toolexeclibdir='$(toolexecdir)/lib'
6988 else
6989 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
6990 toolexeclibdir='$(libdir)'
6992 multi_os_directory=`$CC -print-multi-os-directory`
6993 case $multi_os_directory in
6994 .) ;; # Avoid trailing /.
6995 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
6996 esac
6998 esac
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
7008 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
7009 # Check whether --enable-maintainer-mode was given.
7010 if test "${enable_maintainer_mode+set}" = set; then :
7011 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
7012 else
7013 USE_MAINTAINER_MODE=no
7016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
7017 $as_echo "$USE_MAINTAINER_MODE" >&6; }
7018 if test $USE_MAINTAINER_MODE = yes; then
7019 MAINTAINER_MODE_TRUE=
7020 MAINTAINER_MODE_FALSE='#'
7021 else
7022 MAINTAINER_MODE_TRUE='#'
7023 MAINTAINER_MODE_FALSE=
7026 MAINT=$MAINTAINER_MODE_TRUE
7030 # Check the compiler.
7031 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
7032 # We must force CC to /not/ be precious variables; otherwise
7033 # the wrong, non-multilib-adjusted value will be used in multilibs.
7034 # As a side effect, we have to subst CFLAGS ourselves.
7038 ac_ext=c
7039 ac_cpp='$CPP $CPPFLAGS'
7040 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7041 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7042 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7043 if test -n "$ac_tool_prefix"; then
7044 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
7045 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7047 $as_echo_n "checking for $ac_word... " >&6; }
7048 if ${ac_cv_prog_CC+:} false; then :
7049 $as_echo_n "(cached) " >&6
7050 else
7051 if test -n "$CC"; then
7052 ac_cv_prog_CC="$CC" # Let the user override the test.
7053 else
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 for as_dir in $PATH
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7061 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 break 2
7065 done
7066 done
7067 IFS=$as_save_IFS
7071 CC=$ac_cv_prog_CC
7072 if test -n "$CC"; then
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7074 $as_echo "$CC" >&6; }
7075 else
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077 $as_echo "no" >&6; }
7082 if test -z "$ac_cv_prog_CC"; then
7083 ac_ct_CC=$CC
7084 # Extract the first word of "gcc", so it can be a program name with args.
7085 set dummy gcc; ac_word=$2
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7087 $as_echo_n "checking for $ac_word... " >&6; }
7088 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7089 $as_echo_n "(cached) " >&6
7090 else
7091 if test -n "$ac_ct_CC"; then
7092 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7093 else
7094 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7095 for as_dir in $PATH
7097 IFS=$as_save_IFS
7098 test -z "$as_dir" && as_dir=.
7099 for ac_exec_ext in '' $ac_executable_extensions; do
7100 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7101 ac_cv_prog_ac_ct_CC="gcc"
7102 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7103 break 2
7105 done
7106 done
7107 IFS=$as_save_IFS
7111 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7112 if test -n "$ac_ct_CC"; then
7113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7114 $as_echo "$ac_ct_CC" >&6; }
7115 else
7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7117 $as_echo "no" >&6; }
7120 if test "x$ac_ct_CC" = x; then
7121 CC=""
7122 else
7123 case $cross_compiling:$ac_tool_warned in
7124 yes:)
7125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7126 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7127 ac_tool_warned=yes ;;
7128 esac
7129 CC=$ac_ct_CC
7131 else
7132 CC="$ac_cv_prog_CC"
7135 if test -z "$CC"; then
7136 if test -n "$ac_tool_prefix"; then
7137 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7138 set dummy ${ac_tool_prefix}cc; ac_word=$2
7139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7140 $as_echo_n "checking for $ac_word... " >&6; }
7141 if ${ac_cv_prog_CC+:} false; then :
7142 $as_echo_n "(cached) " >&6
7143 else
7144 if test -n "$CC"; then
7145 ac_cv_prog_CC="$CC" # Let the user override the test.
7146 else
7147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7148 for as_dir in $PATH
7150 IFS=$as_save_IFS
7151 test -z "$as_dir" && as_dir=.
7152 for ac_exec_ext in '' $ac_executable_extensions; do
7153 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7154 ac_cv_prog_CC="${ac_tool_prefix}cc"
7155 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7156 break 2
7158 done
7159 done
7160 IFS=$as_save_IFS
7164 CC=$ac_cv_prog_CC
7165 if test -n "$CC"; then
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7167 $as_echo "$CC" >&6; }
7168 else
7169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7170 $as_echo "no" >&6; }
7176 if test -z "$CC"; then
7177 # Extract the first word of "cc", so it can be a program name with args.
7178 set dummy cc; ac_word=$2
7179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7180 $as_echo_n "checking for $ac_word... " >&6; }
7181 if ${ac_cv_prog_CC+:} false; then :
7182 $as_echo_n "(cached) " >&6
7183 else
7184 if test -n "$CC"; then
7185 ac_cv_prog_CC="$CC" # Let the user override the test.
7186 else
7187 ac_prog_rejected=no
7188 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7189 for as_dir in $PATH
7191 IFS=$as_save_IFS
7192 test -z "$as_dir" && as_dir=.
7193 for ac_exec_ext in '' $ac_executable_extensions; do
7194 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7195 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7196 ac_prog_rejected=yes
7197 continue
7199 ac_cv_prog_CC="cc"
7200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7201 break 2
7203 done
7204 done
7205 IFS=$as_save_IFS
7207 if test $ac_prog_rejected = yes; then
7208 # We found a bogon in the path, so make sure we never use it.
7209 set dummy $ac_cv_prog_CC
7210 shift
7211 if test $# != 0; then
7212 # We chose a different compiler from the bogus one.
7213 # However, it has the same basename, so the bogon will be chosen
7214 # first if we set CC to just the basename; use the full file name.
7215 shift
7216 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
7221 CC=$ac_cv_prog_CC
7222 if test -n "$CC"; then
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7224 $as_echo "$CC" >&6; }
7225 else
7226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7227 $as_echo "no" >&6; }
7232 if test -z "$CC"; then
7233 if test -n "$ac_tool_prefix"; then
7234 for ac_prog in cl.exe
7236 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7237 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7239 $as_echo_n "checking for $ac_word... " >&6; }
7240 if ${ac_cv_prog_CC+:} false; then :
7241 $as_echo_n "(cached) " >&6
7242 else
7243 if test -n "$CC"; then
7244 ac_cv_prog_CC="$CC" # Let the user override the test.
7245 else
7246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7247 for as_dir in $PATH
7249 IFS=$as_save_IFS
7250 test -z "$as_dir" && as_dir=.
7251 for ac_exec_ext in '' $ac_executable_extensions; do
7252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7253 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7255 break 2
7257 done
7258 done
7259 IFS=$as_save_IFS
7263 CC=$ac_cv_prog_CC
7264 if test -n "$CC"; then
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7266 $as_echo "$CC" >&6; }
7267 else
7268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7269 $as_echo "no" >&6; }
7273 test -n "$CC" && break
7274 done
7276 if test -z "$CC"; then
7277 ac_ct_CC=$CC
7278 for ac_prog in cl.exe
7280 # Extract the first word of "$ac_prog", so it can be a program name with args.
7281 set dummy $ac_prog; ac_word=$2
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7283 $as_echo_n "checking for $ac_word... " >&6; }
7284 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7285 $as_echo_n "(cached) " >&6
7286 else
7287 if test -n "$ac_ct_CC"; then
7288 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7289 else
7290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7291 for as_dir in $PATH
7293 IFS=$as_save_IFS
7294 test -z "$as_dir" && as_dir=.
7295 for ac_exec_ext in '' $ac_executable_extensions; do
7296 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7297 ac_cv_prog_ac_ct_CC="$ac_prog"
7298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7299 break 2
7301 done
7302 done
7303 IFS=$as_save_IFS
7307 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7308 if test -n "$ac_ct_CC"; then
7309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7310 $as_echo "$ac_ct_CC" >&6; }
7311 else
7312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313 $as_echo "no" >&6; }
7317 test -n "$ac_ct_CC" && break
7318 done
7320 if test "x$ac_ct_CC" = x; then
7321 CC=""
7322 else
7323 case $cross_compiling:$ac_tool_warned in
7324 yes:)
7325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7326 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7327 ac_tool_warned=yes ;;
7328 esac
7329 CC=$ac_ct_CC
7336 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7337 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7338 as_fn_error $? "no acceptable C compiler found in \$PATH
7339 See \`config.log' for more details" "$LINENO" 5; }
7341 # Provide some information about the compiler.
7342 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7343 set X $ac_compile
7344 ac_compiler=$2
7345 for ac_option in --version -v -V -qversion; do
7346 { { ac_try="$ac_compiler $ac_option >&5"
7347 case "(($ac_try" in
7348 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7349 *) ac_try_echo=$ac_try;;
7350 esac
7351 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7352 $as_echo "$ac_try_echo"; } >&5
7353 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7354 ac_status=$?
7355 if test -s conftest.err; then
7356 sed '10a\
7357 ... rest of stderr output deleted ...
7358 10q' conftest.err >conftest.er1
7359 cat conftest.er1 >&5
7361 rm -f conftest.er1 conftest.err
7362 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7363 test $ac_status = 0; }
7364 done
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7367 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7368 if ${ac_cv_c_compiler_gnu+:} false; then :
7369 $as_echo_n "(cached) " >&6
7370 else
7371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7372 /* end confdefs.h. */
7375 main ()
7377 #ifndef __GNUC__
7378 choke me
7379 #endif
7382 return 0;
7384 _ACEOF
7385 if ac_fn_c_try_compile "$LINENO"; then :
7386 ac_compiler_gnu=yes
7387 else
7388 ac_compiler_gnu=no
7390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7391 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7395 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7396 if test $ac_compiler_gnu = yes; then
7397 GCC=yes
7398 else
7399 GCC=
7401 ac_test_CFLAGS=${CFLAGS+set}
7402 ac_save_CFLAGS=$CFLAGS
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7404 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7405 if ${ac_cv_prog_cc_g+:} false; then :
7406 $as_echo_n "(cached) " >&6
7407 else
7408 ac_save_c_werror_flag=$ac_c_werror_flag
7409 ac_c_werror_flag=yes
7410 ac_cv_prog_cc_g=no
7411 CFLAGS="-g"
7412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7413 /* end confdefs.h. */
7416 main ()
7420 return 0;
7422 _ACEOF
7423 if ac_fn_c_try_compile "$LINENO"; then :
7424 ac_cv_prog_cc_g=yes
7425 else
7426 CFLAGS=""
7427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7428 /* end confdefs.h. */
7431 main ()
7435 return 0;
7437 _ACEOF
7438 if ac_fn_c_try_compile "$LINENO"; then :
7440 else
7441 ac_c_werror_flag=$ac_save_c_werror_flag
7442 CFLAGS="-g"
7443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7444 /* end confdefs.h. */
7447 main ()
7451 return 0;
7453 _ACEOF
7454 if ac_fn_c_try_compile "$LINENO"; then :
7455 ac_cv_prog_cc_g=yes
7457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7462 ac_c_werror_flag=$ac_save_c_werror_flag
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7465 $as_echo "$ac_cv_prog_cc_g" >&6; }
7466 if test "$ac_test_CFLAGS" = set; then
7467 CFLAGS=$ac_save_CFLAGS
7468 elif test $ac_cv_prog_cc_g = yes; then
7469 if test "$GCC" = yes; then
7470 CFLAGS="-g -O2"
7471 else
7472 CFLAGS="-g"
7474 else
7475 if test "$GCC" = yes; then
7476 CFLAGS="-O2"
7477 else
7478 CFLAGS=
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7482 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7483 if ${ac_cv_prog_cc_c89+:} false; then :
7484 $as_echo_n "(cached) " >&6
7485 else
7486 ac_cv_prog_cc_c89=no
7487 ac_save_CC=$CC
7488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7489 /* end confdefs.h. */
7490 #include <stdarg.h>
7491 #include <stdio.h>
7492 struct stat;
7493 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7494 struct buf { int x; };
7495 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7496 static char *e (p, i)
7497 char **p;
7498 int i;
7500 return p[i];
7502 static char *f (char * (*g) (char **, int), char **p, ...)
7504 char *s;
7505 va_list v;
7506 va_start (v,p);
7507 s = g (p, va_arg (v,int));
7508 va_end (v);
7509 return s;
7512 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7513 function prototypes and stuff, but not '\xHH' hex character constants.
7514 These don't provoke an error unfortunately, instead are silently treated
7515 as 'x'. The following induces an error, until -std is added to get
7516 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7517 array size at least. It's necessary to write '\x00'==0 to get something
7518 that's true only with -std. */
7519 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7521 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7522 inside strings and character constants. */
7523 #define FOO(x) 'x'
7524 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7526 int test (int i, double x);
7527 struct s1 {int (*f) (int a);};
7528 struct s2 {int (*f) (double a);};
7529 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7530 int argc;
7531 char **argv;
7533 main ()
7535 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7537 return 0;
7539 _ACEOF
7540 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7541 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7543 CC="$ac_save_CC $ac_arg"
7544 if ac_fn_c_try_compile "$LINENO"; then :
7545 ac_cv_prog_cc_c89=$ac_arg
7547 rm -f core conftest.err conftest.$ac_objext
7548 test "x$ac_cv_prog_cc_c89" != "xno" && break
7549 done
7550 rm -f conftest.$ac_ext
7551 CC=$ac_save_CC
7554 # AC_CACHE_VAL
7555 case "x$ac_cv_prog_cc_c89" in
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7558 $as_echo "none needed" >&6; } ;;
7559 xno)
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7561 $as_echo "unsupported" >&6; } ;;
7563 CC="$CC $ac_cv_prog_cc_c89"
7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7565 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7566 esac
7567 if test "x$ac_cv_prog_cc_c89" != xno; then :
7571 ac_ext=c
7572 ac_cpp='$CPP $CPPFLAGS'
7573 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7574 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7575 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7577 ac_ext=c
7578 ac_cpp='$CPP $CPPFLAGS'
7579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7583 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
7584 if ${am_cv_prog_cc_c_o+:} false; then :
7585 $as_echo_n "(cached) " >&6
7586 else
7587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7588 /* end confdefs.h. */
7591 main ()
7595 return 0;
7597 _ACEOF
7598 # Make sure it works both with $CC and with simple cc.
7599 # Following AC_PROG_CC_C_O, we do the test twice because some
7600 # compilers refuse to overwrite an existing .o file with -o,
7601 # though they will create one.
7602 am_cv_prog_cc_c_o=yes
7603 for am_i in 1 2; do
7604 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7605 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7606 ac_status=$?
7607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7608 (exit $ac_status); } \
7609 && test -f conftest2.$ac_objext; then
7610 : OK
7611 else
7612 am_cv_prog_cc_c_o=no
7613 break
7615 done
7616 rm -f core conftest*
7617 unset am_i
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7620 $as_echo "$am_cv_prog_cc_c_o" >&6; }
7621 if test "$am_cv_prog_cc_c_o" != yes; then
7622 # Losing compiler, so override with the script.
7623 # FIXME: It is wrong to rewrite CC.
7624 # But if we don't then we get into trouble of one sort or another.
7625 # A longer-term fix would be to have automake use am__CC in this case,
7626 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7627 CC="$am_aux_dir/compile $CC"
7629 ac_ext=c
7630 ac_cpp='$CPP $CPPFLAGS'
7631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7636 ac_ext=cpp
7637 ac_cpp='$CXXCPP $CPPFLAGS'
7638 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7639 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7640 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7641 if test -z "$CXX"; then
7642 if test -n "$CCC"; then
7643 CXX=$CCC
7644 else
7645 if test -n "$ac_tool_prefix"; then
7646 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7648 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7649 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7651 $as_echo_n "checking for $ac_word... " >&6; }
7652 if ${ac_cv_prog_CXX+:} false; then :
7653 $as_echo_n "(cached) " >&6
7654 else
7655 if test -n "$CXX"; then
7656 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7657 else
7658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7659 for as_dir in $PATH
7661 IFS=$as_save_IFS
7662 test -z "$as_dir" && as_dir=.
7663 for ac_exec_ext in '' $ac_executable_extensions; do
7664 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7665 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7666 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7667 break 2
7669 done
7670 done
7671 IFS=$as_save_IFS
7675 CXX=$ac_cv_prog_CXX
7676 if test -n "$CXX"; then
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7678 $as_echo "$CXX" >&6; }
7679 else
7680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7681 $as_echo "no" >&6; }
7685 test -n "$CXX" && break
7686 done
7688 if test -z "$CXX"; then
7689 ac_ct_CXX=$CXX
7690 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7692 # Extract the first word of "$ac_prog", so it can be a program name with args.
7693 set dummy $ac_prog; ac_word=$2
7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7695 $as_echo_n "checking for $ac_word... " >&6; }
7696 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7697 $as_echo_n "(cached) " >&6
7698 else
7699 if test -n "$ac_ct_CXX"; then
7700 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7701 else
7702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7703 for as_dir in $PATH
7705 IFS=$as_save_IFS
7706 test -z "$as_dir" && as_dir=.
7707 for ac_exec_ext in '' $ac_executable_extensions; do
7708 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7709 ac_cv_prog_ac_ct_CXX="$ac_prog"
7710 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7711 break 2
7713 done
7714 done
7715 IFS=$as_save_IFS
7719 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7720 if test -n "$ac_ct_CXX"; then
7721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7722 $as_echo "$ac_ct_CXX" >&6; }
7723 else
7724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7725 $as_echo "no" >&6; }
7729 test -n "$ac_ct_CXX" && break
7730 done
7732 if test "x$ac_ct_CXX" = x; then
7733 CXX="g++"
7734 else
7735 case $cross_compiling:$ac_tool_warned in
7736 yes:)
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7738 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7739 ac_tool_warned=yes ;;
7740 esac
7741 CXX=$ac_ct_CXX
7747 # Provide some information about the compiler.
7748 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7749 set X $ac_compile
7750 ac_compiler=$2
7751 for ac_option in --version -v -V -qversion; do
7752 { { ac_try="$ac_compiler $ac_option >&5"
7753 case "(($ac_try" in
7754 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7755 *) ac_try_echo=$ac_try;;
7756 esac
7757 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7758 $as_echo "$ac_try_echo"; } >&5
7759 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7760 ac_status=$?
7761 if test -s conftest.err; then
7762 sed '10a\
7763 ... rest of stderr output deleted ...
7764 10q' conftest.err >conftest.er1
7765 cat conftest.er1 >&5
7767 rm -f conftest.er1 conftest.err
7768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7769 test $ac_status = 0; }
7770 done
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7773 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7774 if ${ac_cv_cxx_compiler_gnu+:} false; then :
7775 $as_echo_n "(cached) " >&6
7776 else
7777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7778 /* end confdefs.h. */
7781 main ()
7783 #ifndef __GNUC__
7784 choke me
7785 #endif
7788 return 0;
7790 _ACEOF
7791 if ac_fn_cxx_try_compile "$LINENO"; then :
7792 ac_compiler_gnu=yes
7793 else
7794 ac_compiler_gnu=no
7796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7797 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7801 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7802 if test $ac_compiler_gnu = yes; then
7803 GXX=yes
7804 else
7805 GXX=
7807 ac_test_CXXFLAGS=${CXXFLAGS+set}
7808 ac_save_CXXFLAGS=$CXXFLAGS
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7810 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7811 if ${ac_cv_prog_cxx_g+:} false; then :
7812 $as_echo_n "(cached) " >&6
7813 else
7814 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7815 ac_cxx_werror_flag=yes
7816 ac_cv_prog_cxx_g=no
7817 CXXFLAGS="-g"
7818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7819 /* end confdefs.h. */
7822 main ()
7826 return 0;
7828 _ACEOF
7829 if ac_fn_cxx_try_compile "$LINENO"; then :
7830 ac_cv_prog_cxx_g=yes
7831 else
7832 CXXFLAGS=""
7833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7834 /* end confdefs.h. */
7837 main ()
7841 return 0;
7843 _ACEOF
7844 if ac_fn_cxx_try_compile "$LINENO"; then :
7846 else
7847 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7848 CXXFLAGS="-g"
7849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7850 /* end confdefs.h. */
7853 main ()
7857 return 0;
7859 _ACEOF
7860 if ac_fn_cxx_try_compile "$LINENO"; then :
7861 ac_cv_prog_cxx_g=yes
7863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7867 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7868 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7871 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7872 if test "$ac_test_CXXFLAGS" = set; then
7873 CXXFLAGS=$ac_save_CXXFLAGS
7874 elif test $ac_cv_prog_cxx_g = yes; then
7875 if test "$GXX" = yes; then
7876 CXXFLAGS="-g -O2"
7877 else
7878 CXXFLAGS="-g"
7880 else
7881 if test "$GXX" = yes; then
7882 CXXFLAGS="-O2"
7883 else
7884 CXXFLAGS=
7887 ac_ext=c
7888 ac_cpp='$CPP $CPPFLAGS'
7889 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7890 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7891 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7893 # By default we simply use the C compiler to build assembly code.
7895 test "${CCAS+set}" = set || CCAS=$CC
7896 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
7900 depcc="$CCAS" am_compiler_list=
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7903 $as_echo_n "checking dependency style of $depcc... " >&6; }
7904 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
7905 $as_echo_n "(cached) " >&6
7906 else
7907 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7908 # We make a subdir and do the tests there. Otherwise we can end up
7909 # making bogus files that we don't know about and never remove. For
7910 # instance it was reported that on HP-UX the gcc test will end up
7911 # making a dummy file named 'D' -- because '-MD' means "put the output
7912 # in D".
7913 rm -rf conftest.dir
7914 mkdir conftest.dir
7915 # Copy depcomp to subdir because otherwise we won't find it if we're
7916 # using a relative directory.
7917 cp "$am_depcomp" conftest.dir
7918 cd conftest.dir
7919 # We will build objects and dependencies in a subdirectory because
7920 # it helps to detect inapplicable dependency modes. For instance
7921 # both Tru64's cc and ICC support -MD to output dependencies as a
7922 # side effect of compilation, but ICC will put the dependencies in
7923 # the current directory while Tru64 will put them in the object
7924 # directory.
7925 mkdir sub
7927 am_cv_CCAS_dependencies_compiler_type=none
7928 if test "$am_compiler_list" = ""; then
7929 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7931 am__universal=false
7934 for depmode in $am_compiler_list; do
7935 # Setup a source with many dependencies, because some compilers
7936 # like to wrap large dependency lists on column 80 (with \), and
7937 # we should not choose a depcomp mode which is confused by this.
7939 # We need to recreate these files for each test, as the compiler may
7940 # overwrite some of them when testing with obscure command lines.
7941 # This happens at least with the AIX C compiler.
7942 : > sub/conftest.c
7943 for i in 1 2 3 4 5 6; do
7944 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7945 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7946 # Solaris 10 /bin/sh.
7947 echo '/* dummy */' > sub/conftst$i.h
7948 done
7949 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7951 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7952 # mode. It turns out that the SunPro C++ compiler does not properly
7953 # handle '-M -o', and we need to detect this. Also, some Intel
7954 # versions had trouble with output in subdirs.
7955 am__obj=sub/conftest.${OBJEXT-o}
7956 am__minus_obj="-o $am__obj"
7957 case $depmode in
7958 gcc)
7959 # This depmode causes a compiler race in universal mode.
7960 test "$am__universal" = false || continue
7962 nosideeffect)
7963 # After this tag, mechanisms are not by side-effect, so they'll
7964 # only be used when explicitly requested.
7965 if test "x$enable_dependency_tracking" = xyes; then
7966 continue
7967 else
7968 break
7971 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7972 # This compiler won't grok '-c -o', but also, the minuso test has
7973 # not run yet. These depmodes are late enough in the game, and
7974 # so weak that their functioning should not be impacted.
7975 am__obj=conftest.${OBJEXT-o}
7976 am__minus_obj=
7978 none) break ;;
7979 esac
7980 if depmode=$depmode \
7981 source=sub/conftest.c object=$am__obj \
7982 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7983 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7984 >/dev/null 2>conftest.err &&
7985 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7986 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7987 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7988 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7989 # icc doesn't choke on unknown options, it will just issue warnings
7990 # or remarks (even with -Werror). So we grep stderr for any message
7991 # that says an option was ignored or not supported.
7992 # When given -MP, icc 7.0 and 7.1 complain thusly:
7993 # icc: Command line warning: ignoring option '-M'; no argument required
7994 # The diagnosis changed in icc 8.0:
7995 # icc: Command line remark: option '-MP' not supported
7996 if (grep 'ignoring option' conftest.err ||
7997 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7998 am_cv_CCAS_dependencies_compiler_type=$depmode
7999 break
8002 done
8004 cd ..
8005 rm -rf conftest.dir
8006 else
8007 am_cv_CCAS_dependencies_compiler_type=none
8011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
8012 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
8013 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
8016 test "x$enable_dependency_tracking" != xno \
8017 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
8018 am__fastdepCCAS_TRUE=
8019 am__fastdepCCAS_FALSE='#'
8020 else
8021 am__fastdepCCAS_TRUE='#'
8022 am__fastdepCCAS_FALSE=
8030 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
8031 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
8032 # in both places for now and restore CFLAGS at the end of config.
8033 save_CFLAGS="$CFLAGS"
8035 # Find other programs we need.
8036 if test -n "$ac_tool_prefix"; then
8037 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8038 set dummy ${ac_tool_prefix}ar; ac_word=$2
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8040 $as_echo_n "checking for $ac_word... " >&6; }
8041 if ${ac_cv_prog_AR+:} false; then :
8042 $as_echo_n "(cached) " >&6
8043 else
8044 if test -n "$AR"; then
8045 ac_cv_prog_AR="$AR" # Let the user override the test.
8046 else
8047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8048 for as_dir in $PATH
8050 IFS=$as_save_IFS
8051 test -z "$as_dir" && as_dir=.
8052 for ac_exec_ext in '' $ac_executable_extensions; do
8053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8054 ac_cv_prog_AR="${ac_tool_prefix}ar"
8055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8056 break 2
8058 done
8059 done
8060 IFS=$as_save_IFS
8064 AR=$ac_cv_prog_AR
8065 if test -n "$AR"; then
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8067 $as_echo "$AR" >&6; }
8068 else
8069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8070 $as_echo "no" >&6; }
8075 if test -z "$ac_cv_prog_AR"; then
8076 ac_ct_AR=$AR
8077 # Extract the first word of "ar", so it can be a program name with args.
8078 set dummy ar; ac_word=$2
8079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8080 $as_echo_n "checking for $ac_word... " >&6; }
8081 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8082 $as_echo_n "(cached) " >&6
8083 else
8084 if test -n "$ac_ct_AR"; then
8085 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8086 else
8087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088 for as_dir in $PATH
8090 IFS=$as_save_IFS
8091 test -z "$as_dir" && as_dir=.
8092 for ac_exec_ext in '' $ac_executable_extensions; do
8093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8094 ac_cv_prog_ac_ct_AR="ar"
8095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8096 break 2
8098 done
8099 done
8100 IFS=$as_save_IFS
8104 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8105 if test -n "$ac_ct_AR"; then
8106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8107 $as_echo "$ac_ct_AR" >&6; }
8108 else
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8110 $as_echo "no" >&6; }
8113 if test "x$ac_ct_AR" = x; then
8114 AR=""
8115 else
8116 case $cross_compiling:$ac_tool_warned in
8117 yes:)
8118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8120 ac_tool_warned=yes ;;
8121 esac
8122 AR=$ac_ct_AR
8124 else
8125 AR="$ac_cv_prog_AR"
8128 if test -n "$ac_tool_prefix"; then
8129 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
8130 set dummy ${ac_tool_prefix}nm; ac_word=$2
8131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8132 $as_echo_n "checking for $ac_word... " >&6; }
8133 if ${ac_cv_prog_NM+:} false; then :
8134 $as_echo_n "(cached) " >&6
8135 else
8136 if test -n "$NM"; then
8137 ac_cv_prog_NM="$NM" # Let the user override the test.
8138 else
8139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8140 for as_dir in $PATH
8142 IFS=$as_save_IFS
8143 test -z "$as_dir" && as_dir=.
8144 for ac_exec_ext in '' $ac_executable_extensions; do
8145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8146 ac_cv_prog_NM="${ac_tool_prefix}nm"
8147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8148 break 2
8150 done
8151 done
8152 IFS=$as_save_IFS
8156 NM=$ac_cv_prog_NM
8157 if test -n "$NM"; then
8158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8159 $as_echo "$NM" >&6; }
8160 else
8161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8162 $as_echo "no" >&6; }
8167 if test -z "$ac_cv_prog_NM"; then
8168 ac_ct_NM=$NM
8169 # Extract the first word of "nm", so it can be a program name with args.
8170 set dummy nm; ac_word=$2
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172 $as_echo_n "checking for $ac_word... " >&6; }
8173 if ${ac_cv_prog_ac_ct_NM+:} false; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 if test -n "$ac_ct_NM"; then
8177 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
8178 else
8179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8180 for as_dir in $PATH
8182 IFS=$as_save_IFS
8183 test -z "$as_dir" && as_dir=.
8184 for ac_exec_ext in '' $ac_executable_extensions; do
8185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8186 ac_cv_prog_ac_ct_NM="nm"
8187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8188 break 2
8190 done
8191 done
8192 IFS=$as_save_IFS
8196 ac_ct_NM=$ac_cv_prog_ac_ct_NM
8197 if test -n "$ac_ct_NM"; then
8198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
8199 $as_echo "$ac_ct_NM" >&6; }
8200 else
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8202 $as_echo "no" >&6; }
8205 if test "x$ac_ct_NM" = x; then
8206 NM=""
8207 else
8208 case $cross_compiling:$ac_tool_warned in
8209 yes:)
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8212 ac_tool_warned=yes ;;
8213 esac
8214 NM=$ac_ct_NM
8216 else
8217 NM="$ac_cv_prog_NM"
8220 if test -n "$ac_tool_prefix"; then
8221 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8222 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8224 $as_echo_n "checking for $ac_word... " >&6; }
8225 if ${ac_cv_prog_RANLIB+:} false; then :
8226 $as_echo_n "(cached) " >&6
8227 else
8228 if test -n "$RANLIB"; then
8229 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8230 else
8231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232 for as_dir in $PATH
8234 IFS=$as_save_IFS
8235 test -z "$as_dir" && as_dir=.
8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8238 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8240 break 2
8242 done
8243 done
8244 IFS=$as_save_IFS
8248 RANLIB=$ac_cv_prog_RANLIB
8249 if test -n "$RANLIB"; then
8250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8251 $as_echo "$RANLIB" >&6; }
8252 else
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8254 $as_echo "no" >&6; }
8259 if test -z "$ac_cv_prog_RANLIB"; then
8260 ac_ct_RANLIB=$RANLIB
8261 # Extract the first word of "ranlib", so it can be a program name with args.
8262 set dummy ranlib; ac_word=$2
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8264 $as_echo_n "checking for $ac_word... " >&6; }
8265 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8266 $as_echo_n "(cached) " >&6
8267 else
8268 if test -n "$ac_ct_RANLIB"; then
8269 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8270 else
8271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8272 for as_dir in $PATH
8274 IFS=$as_save_IFS
8275 test -z "$as_dir" && as_dir=.
8276 for ac_exec_ext in '' $ac_executable_extensions; do
8277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8278 ac_cv_prog_ac_ct_RANLIB="ranlib"
8279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8280 break 2
8282 done
8283 done
8284 IFS=$as_save_IFS
8288 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8289 if test -n "$ac_ct_RANLIB"; then
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8291 $as_echo "$ac_ct_RANLIB" >&6; }
8292 else
8293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8294 $as_echo "no" >&6; }
8297 if test "x$ac_ct_RANLIB" = x; then
8298 RANLIB="ranlib-not-found-in-path-error"
8299 else
8300 case $cross_compiling:$ac_tool_warned in
8301 yes:)
8302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8304 ac_tool_warned=yes ;;
8305 esac
8306 RANLIB=$ac_ct_RANLIB
8308 else
8309 RANLIB="$ac_cv_prog_RANLIB"
8312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8313 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8314 set x ${MAKE-make}
8315 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8316 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8317 $as_echo_n "(cached) " >&6
8318 else
8319 cat >conftest.make <<\_ACEOF
8320 SHELL = /bin/sh
8321 all:
8322 @echo '@@@%%%=$(MAKE)=@@@%%%'
8323 _ACEOF
8324 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8325 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8326 *@@@%%%=?*=@@@%%%*)
8327 eval ac_cv_prog_make_${ac_make}_set=yes;;
8329 eval ac_cv_prog_make_${ac_make}_set=no;;
8330 esac
8331 rm -f conftest.make
8333 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8335 $as_echo "yes" >&6; }
8336 SET_MAKE=
8337 else
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8339 $as_echo "no" >&6; }
8340 SET_MAKE="MAKE=${MAKE-make}"
8345 case `pwd` in
8346 *\ * | *\ *)
8347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8348 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8349 esac
8353 macro_version='2.2.7a'
8354 macro_revision='1.3134'
8368 ltmain="$ac_aux_dir/ltmain.sh"
8370 # Backslashify metacharacters that are still active within
8371 # double-quoted strings.
8372 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8374 # Same as above, but do not quote variable references.
8375 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8377 # Sed substitution to delay expansion of an escaped shell variable in a
8378 # double_quote_subst'ed string.
8379 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8381 # Sed substitution to delay expansion of an escaped single quote.
8382 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8384 # Sed substitution to avoid accidental globbing in evaled expressions
8385 no_glob_subst='s/\*/\\\*/g'
8387 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8388 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8389 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8392 $as_echo_n "checking how to print strings... " >&6; }
8393 # Test print first, because it will be a builtin if present.
8394 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
8395 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8396 ECHO='print -r --'
8397 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8398 ECHO='printf %s\n'
8399 else
8400 # Use this function as a fallback that always works.
8401 func_fallback_echo ()
8403 eval 'cat <<_LTECHO_EOF
8405 _LTECHO_EOF'
8407 ECHO='func_fallback_echo'
8410 # func_echo_all arg...
8411 # Invoke $ECHO with all args, space-separated.
8412 func_echo_all ()
8414 $ECHO ""
8417 case "$ECHO" in
8418 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8419 $as_echo "printf" >&6; } ;;
8420 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8421 $as_echo "print -r" >&6; } ;;
8422 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8423 $as_echo "cat" >&6; } ;;
8424 esac
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8440 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8441 if ${ac_cv_path_SED+:} false; then :
8442 $as_echo_n "(cached) " >&6
8443 else
8444 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8445 for ac_i in 1 2 3 4 5 6 7; do
8446 ac_script="$ac_script$as_nl$ac_script"
8447 done
8448 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8449 { ac_script=; unset ac_script;}
8450 if test -z "$SED"; then
8451 ac_path_SED_found=false
8452 # Loop through the user's path and test for each of PROGNAME-LIST
8453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454 for as_dir in $PATH
8456 IFS=$as_save_IFS
8457 test -z "$as_dir" && as_dir=.
8458 for ac_prog in sed gsed; do
8459 for ac_exec_ext in '' $ac_executable_extensions; do
8460 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8461 as_fn_executable_p "$ac_path_SED" || continue
8462 # Check for GNU ac_path_SED and select it if it is found.
8463 # Check for GNU $ac_path_SED
8464 case `"$ac_path_SED" --version 2>&1` in
8465 *GNU*)
8466 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8468 ac_count=0
8469 $as_echo_n 0123456789 >"conftest.in"
8470 while :
8472 cat "conftest.in" "conftest.in" >"conftest.tmp"
8473 mv "conftest.tmp" "conftest.in"
8474 cp "conftest.in" "conftest.nl"
8475 $as_echo '' >> "conftest.nl"
8476 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8477 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8478 as_fn_arith $ac_count + 1 && ac_count=$as_val
8479 if test $ac_count -gt ${ac_path_SED_max-0}; then
8480 # Best one so far, save it but keep looking for a better one
8481 ac_cv_path_SED="$ac_path_SED"
8482 ac_path_SED_max=$ac_count
8484 # 10*(2^10) chars as input seems more than enough
8485 test $ac_count -gt 10 && break
8486 done
8487 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8488 esac
8490 $ac_path_SED_found && break 3
8491 done
8492 done
8493 done
8494 IFS=$as_save_IFS
8495 if test -z "$ac_cv_path_SED"; then
8496 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8498 else
8499 ac_cv_path_SED=$SED
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8504 $as_echo "$ac_cv_path_SED" >&6; }
8505 SED="$ac_cv_path_SED"
8506 rm -f conftest.sed
8508 test -z "$SED" && SED=sed
8509 Xsed="$SED -e 1s/^X//"
8521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8522 $as_echo_n "checking for fgrep... " >&6; }
8523 if ${ac_cv_path_FGREP+:} false; then :
8524 $as_echo_n "(cached) " >&6
8525 else
8526 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8527 then ac_cv_path_FGREP="$GREP -F"
8528 else
8529 if test -z "$FGREP"; then
8530 ac_path_FGREP_found=false
8531 # Loop through the user's path and test for each of PROGNAME-LIST
8532 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8533 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8535 IFS=$as_save_IFS
8536 test -z "$as_dir" && as_dir=.
8537 for ac_prog in fgrep; do
8538 for ac_exec_ext in '' $ac_executable_extensions; do
8539 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8540 as_fn_executable_p "$ac_path_FGREP" || continue
8541 # Check for GNU ac_path_FGREP and select it if it is found.
8542 # Check for GNU $ac_path_FGREP
8543 case `"$ac_path_FGREP" --version 2>&1` in
8544 *GNU*)
8545 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8547 ac_count=0
8548 $as_echo_n 0123456789 >"conftest.in"
8549 while :
8551 cat "conftest.in" "conftest.in" >"conftest.tmp"
8552 mv "conftest.tmp" "conftest.in"
8553 cp "conftest.in" "conftest.nl"
8554 $as_echo 'FGREP' >> "conftest.nl"
8555 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8556 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8557 as_fn_arith $ac_count + 1 && ac_count=$as_val
8558 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8559 # Best one so far, save it but keep looking for a better one
8560 ac_cv_path_FGREP="$ac_path_FGREP"
8561 ac_path_FGREP_max=$ac_count
8563 # 10*(2^10) chars as input seems more than enough
8564 test $ac_count -gt 10 && break
8565 done
8566 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8567 esac
8569 $ac_path_FGREP_found && break 3
8570 done
8571 done
8572 done
8573 IFS=$as_save_IFS
8574 if test -z "$ac_cv_path_FGREP"; then
8575 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8577 else
8578 ac_cv_path_FGREP=$FGREP
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8584 $as_echo "$ac_cv_path_FGREP" >&6; }
8585 FGREP="$ac_cv_path_FGREP"
8588 test -z "$GREP" && GREP=grep
8608 # Check whether --with-gnu-ld was given.
8609 if test "${with_gnu_ld+set}" = set; then :
8610 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8611 else
8612 with_gnu_ld=no
8615 ac_prog=ld
8616 if test "$GCC" = yes; then
8617 # Check if gcc -print-prog-name=ld gives a path.
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8619 $as_echo_n "checking for ld used by $CC... " >&6; }
8620 case $host in
8621 *-*-mingw*)
8622 # gcc leaves a trailing carriage return which upsets mingw
8623 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8625 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8626 esac
8627 case $ac_prog in
8628 # Accept absolute paths.
8629 [\\/]* | ?:[\\/]*)
8630 re_direlt='/[^/][^/]*/\.\./'
8631 # Canonicalize the pathname of ld
8632 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8633 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8634 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8635 done
8636 test -z "$LD" && LD="$ac_prog"
8639 # If it fails, then pretend we aren't using GCC.
8640 ac_prog=ld
8643 # If it is relative, then search for the first ld in PATH.
8644 with_gnu_ld=unknown
8646 esac
8647 elif test "$with_gnu_ld" = yes; then
8648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8649 $as_echo_n "checking for GNU ld... " >&6; }
8650 else
8651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8652 $as_echo_n "checking for non-GNU ld... " >&6; }
8654 if ${lt_cv_path_LD+:} false; then :
8655 $as_echo_n "(cached) " >&6
8656 else
8657 if test -z "$LD"; then
8658 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8659 for ac_dir in $PATH; do
8660 IFS="$lt_save_ifs"
8661 test -z "$ac_dir" && ac_dir=.
8662 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8663 lt_cv_path_LD="$ac_dir/$ac_prog"
8664 # Check to see if the program is GNU ld. I'd rather use --version,
8665 # but apparently some variants of GNU ld only accept -v.
8666 # Break only if it was the GNU/non-GNU ld that we prefer.
8667 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8668 *GNU* | *'with BFD'*)
8669 test "$with_gnu_ld" != no && break
8672 test "$with_gnu_ld" != yes && break
8674 esac
8676 done
8677 IFS="$lt_save_ifs"
8678 else
8679 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8683 LD="$lt_cv_path_LD"
8684 if test -n "$LD"; then
8685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8686 $as_echo "$LD" >&6; }
8687 else
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8689 $as_echo "no" >&6; }
8691 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8693 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8694 if ${lt_cv_prog_gnu_ld+:} false; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8698 case `$LD -v 2>&1 </dev/null` in
8699 *GNU* | *'with BFD'*)
8700 lt_cv_prog_gnu_ld=yes
8703 lt_cv_prog_gnu_ld=no
8705 esac
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8708 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8709 with_gnu_ld=$lt_cv_prog_gnu_ld
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8720 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8721 if ${lt_cv_path_NM+:} false; then :
8722 $as_echo_n "(cached) " >&6
8723 else
8724 if test -n "$NM"; then
8725 # Let the user override the nm to test.
8726 lt_nm_to_check="$NM"
8727 else
8728 lt_nm_to_check="${ac_tool_prefix}nm"
8729 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8730 lt_nm_to_check="$lt_nm_to_check nm"
8733 for lt_tmp_nm in "$lt_nm_to_check"; do
8734 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8735 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8736 IFS="$lt_save_ifs"
8737 test -z "$ac_dir" && ac_dir=.
8738 # Strip out any user-provided options from the nm to test twice,
8739 # the first time to test to see if nm (rather than its options) has
8740 # an explicit path, the second time to yield a file which can be
8741 # nm'ed itself.
8742 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
8743 case "$tmp_nm_path" in
8744 */*|*\\*) tmp_nm="$lt_tmp_nm";;
8745 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
8746 esac
8747 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
8748 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
8749 # Check to see if the nm accepts a BSD-compat flag.
8750 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8751 # nm: unknown option "B" ignored
8752 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
8753 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
8754 break
8757 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
8758 *$tmp_nm*)
8759 lt_cv_path_NM="$tmp_nm -p"
8760 break
8763 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8764 continue # so that we can try to find one that supports BSD flags
8766 esac
8768 esac
8770 done
8771 IFS="$lt_save_ifs"
8772 done
8773 : ${lt_cv_path_NM=no}
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8776 $as_echo "$lt_cv_path_NM" >&6; }
8777 if test "$lt_cv_path_NM" != "no"; then
8778 NM="$lt_cv_path_NM"
8779 else
8780 # Didn't find any BSD compatible name lister, look for dumpbin.
8781 if test -n "$DUMPBIN"; then :
8782 # Let the user override the test.
8783 else
8784 if test -n "$ac_tool_prefix"; then
8785 for ac_prog in dumpbin "link -dump"
8787 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8788 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8790 $as_echo_n "checking for $ac_word... " >&6; }
8791 if ${ac_cv_prog_DUMPBIN+:} false; then :
8792 $as_echo_n "(cached) " >&6
8793 else
8794 if test -n "$DUMPBIN"; then
8795 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8796 else
8797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8798 for as_dir in $PATH
8800 IFS=$as_save_IFS
8801 test -z "$as_dir" && as_dir=.
8802 for ac_exec_ext in '' $ac_executable_extensions; do
8803 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8804 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8806 break 2
8808 done
8809 done
8810 IFS=$as_save_IFS
8814 DUMPBIN=$ac_cv_prog_DUMPBIN
8815 if test -n "$DUMPBIN"; then
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8817 $as_echo "$DUMPBIN" >&6; }
8818 else
8819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8820 $as_echo "no" >&6; }
8824 test -n "$DUMPBIN" && break
8825 done
8827 if test -z "$DUMPBIN"; then
8828 ac_ct_DUMPBIN=$DUMPBIN
8829 for ac_prog in dumpbin "link -dump"
8831 # Extract the first word of "$ac_prog", so it can be a program name with args.
8832 set dummy $ac_prog; ac_word=$2
8833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8834 $as_echo_n "checking for $ac_word... " >&6; }
8835 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8836 $as_echo_n "(cached) " >&6
8837 else
8838 if test -n "$ac_ct_DUMPBIN"; then
8839 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8840 else
8841 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8842 for as_dir in $PATH
8844 IFS=$as_save_IFS
8845 test -z "$as_dir" && as_dir=.
8846 for ac_exec_ext in '' $ac_executable_extensions; do
8847 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8848 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8849 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8850 break 2
8852 done
8853 done
8854 IFS=$as_save_IFS
8858 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8859 if test -n "$ac_ct_DUMPBIN"; then
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8861 $as_echo "$ac_ct_DUMPBIN" >&6; }
8862 else
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8864 $as_echo "no" >&6; }
8868 test -n "$ac_ct_DUMPBIN" && break
8869 done
8871 if test "x$ac_ct_DUMPBIN" = x; then
8872 DUMPBIN=":"
8873 else
8874 case $cross_compiling:$ac_tool_warned in
8875 yes:)
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8877 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8878 ac_tool_warned=yes ;;
8879 esac
8880 DUMPBIN=$ac_ct_DUMPBIN
8884 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8885 *COFF*)
8886 DUMPBIN="$DUMPBIN -symbols"
8889 DUMPBIN=:
8891 esac
8894 if test "$DUMPBIN" != ":"; then
8895 NM="$DUMPBIN"
8898 test -z "$NM" && NM=nm
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8906 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8907 if ${lt_cv_nm_interface+:} false; then :
8908 $as_echo_n "(cached) " >&6
8909 else
8910 lt_cv_nm_interface="BSD nm"
8911 echo "int some_variable = 0;" > conftest.$ac_ext
8912 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8913 (eval "$ac_compile" 2>conftest.err)
8914 cat conftest.err >&5
8915 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8916 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8917 cat conftest.err >&5
8918 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8919 cat conftest.out >&5
8920 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8921 lt_cv_nm_interface="MS dumpbin"
8923 rm -f conftest*
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8926 $as_echo "$lt_cv_nm_interface" >&6; }
8928 # find the maximum length of command line arguments
8929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8930 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8931 if ${lt_cv_sys_max_cmd_len+:} false; then :
8932 $as_echo_n "(cached) " >&6
8933 else
8935 teststring="ABCD"
8937 case $build_os in
8938 msdosdjgpp*)
8939 # On DJGPP, this test can blow up pretty badly due to problems in libc
8940 # (any single argument exceeding 2000 bytes causes a buffer overrun
8941 # during glob expansion). Even if it were fixed, the result of this
8942 # check would be larger than it should be.
8943 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8946 gnu*)
8947 # Under GNU Hurd, this test is not required because there is
8948 # no limit to the length of command line arguments.
8949 # Libtool will interpret -1 as no limit whatsoever
8950 lt_cv_sys_max_cmd_len=-1;
8953 cygwin* | mingw* | cegcc*)
8954 # On Win9x/ME, this test blows up -- it succeeds, but takes
8955 # about 5 minutes as the teststring grows exponentially.
8956 # Worse, since 9x/ME are not pre-emptively multitasking,
8957 # you end up with a "frozen" computer, even though with patience
8958 # the test eventually succeeds (with a max line length of 256k).
8959 # Instead, let's just punt: use the minimum linelength reported by
8960 # all of the supported platforms: 8192 (on NT/2K/XP).
8961 lt_cv_sys_max_cmd_len=8192;
8964 mint*)
8965 # On MiNT this can take a long time and run out of memory.
8966 lt_cv_sys_max_cmd_len=8192;
8969 amigaos*)
8970 # On AmigaOS with pdksh, this test takes hours, literally.
8971 # So we just punt and use a minimum line length of 8192.
8972 lt_cv_sys_max_cmd_len=8192;
8975 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8976 # This has been around since 386BSD, at least. Likely further.
8977 if test -x /sbin/sysctl; then
8978 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8979 elif test -x /usr/sbin/sysctl; then
8980 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8981 else
8982 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8984 # And add a safety zone
8985 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8986 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8989 interix*)
8990 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8991 lt_cv_sys_max_cmd_len=196608
8994 osf*)
8995 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8996 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8997 # nice to cause kernel panics so lets avoid the loop below.
8998 # First set a reasonable default.
8999 lt_cv_sys_max_cmd_len=16384
9001 if test -x /sbin/sysconfig; then
9002 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
9003 *1*) lt_cv_sys_max_cmd_len=-1 ;;
9004 esac
9007 sco3.2v5*)
9008 lt_cv_sys_max_cmd_len=102400
9010 sysv5* | sco5v6* | sysv4.2uw2*)
9011 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
9012 if test -n "$kargmax"; then
9013 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
9014 else
9015 lt_cv_sys_max_cmd_len=32768
9019 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
9020 if test -n "$lt_cv_sys_max_cmd_len"; then
9021 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
9022 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
9023 else
9024 # Make teststring a little bigger before we do anything with it.
9025 # a 1K string should be a reasonable start.
9026 for i in 1 2 3 4 5 6 7 8 ; do
9027 teststring=$teststring$teststring
9028 done
9029 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
9030 # If test is not a shell built-in, we'll probably end up computing a
9031 # maximum length that is only half of the actual maximum length, but
9032 # we can't tell.
9033 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
9034 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
9035 test $i != 17 # 1/2 MB should be enough
9037 i=`expr $i + 1`
9038 teststring=$teststring$teststring
9039 done
9040 # Only check the string length outside the loop.
9041 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
9042 teststring=
9043 # Add a significant safety factor because C++ compilers can tack on
9044 # massive amounts of additional arguments before passing them to the
9045 # linker. It appears as though 1/2 is a usable value.
9046 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9049 esac
9053 if test -n $lt_cv_sys_max_cmd_len ; then
9054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9055 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9056 else
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9058 $as_echo "none" >&6; }
9060 max_cmd_len=$lt_cv_sys_max_cmd_len
9067 : ${CP="cp -f"}
9068 : ${MV="mv -f"}
9069 : ${RM="rm -f"}
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9072 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9073 # Try some XSI features
9074 xsi_shell=no
9075 ( _lt_dummy="a/b/c"
9076 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9077 = c,a/b,, \
9078 && eval 'test $(( 1 + 1 )) -eq 2 \
9079 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9080 && xsi_shell=yes
9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9082 $as_echo "$xsi_shell" >&6; }
9085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9086 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9087 lt_shell_append=no
9088 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9089 >/dev/null 2>&1 \
9090 && lt_shell_append=yes
9091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9092 $as_echo "$lt_shell_append" >&6; }
9095 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9096 lt_unset=unset
9097 else
9098 lt_unset=false
9105 # test EBCDIC or ASCII
9106 case `echo X|tr X '\101'` in
9107 A) # ASCII based system
9108 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9109 lt_SP2NL='tr \040 \012'
9110 lt_NL2SP='tr \015\012 \040\040'
9112 *) # EBCDIC based system
9113 lt_SP2NL='tr \100 \n'
9114 lt_NL2SP='tr \r\n \100\100'
9116 esac
9126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9127 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9128 if ${lt_cv_ld_reload_flag+:} false; then :
9129 $as_echo_n "(cached) " >&6
9130 else
9131 lt_cv_ld_reload_flag='-r'
9133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9134 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9135 reload_flag=$lt_cv_ld_reload_flag
9136 case $reload_flag in
9137 "" | " "*) ;;
9138 *) reload_flag=" $reload_flag" ;;
9139 esac
9140 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9141 case $host_os in
9142 darwin*)
9143 if test "$GCC" = yes; then
9144 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9145 else
9146 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9149 esac
9159 if test -n "$ac_tool_prefix"; then
9160 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9161 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9163 $as_echo_n "checking for $ac_word... " >&6; }
9164 if ${ac_cv_prog_OBJDUMP+:} false; then :
9165 $as_echo_n "(cached) " >&6
9166 else
9167 if test -n "$OBJDUMP"; then
9168 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9169 else
9170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9171 for as_dir in $PATH
9173 IFS=$as_save_IFS
9174 test -z "$as_dir" && as_dir=.
9175 for ac_exec_ext in '' $ac_executable_extensions; do
9176 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9177 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9178 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9179 break 2
9181 done
9182 done
9183 IFS=$as_save_IFS
9187 OBJDUMP=$ac_cv_prog_OBJDUMP
9188 if test -n "$OBJDUMP"; then
9189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9190 $as_echo "$OBJDUMP" >&6; }
9191 else
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9193 $as_echo "no" >&6; }
9198 if test -z "$ac_cv_prog_OBJDUMP"; then
9199 ac_ct_OBJDUMP=$OBJDUMP
9200 # Extract the first word of "objdump", so it can be a program name with args.
9201 set dummy objdump; ac_word=$2
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9203 $as_echo_n "checking for $ac_word... " >&6; }
9204 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9205 $as_echo_n "(cached) " >&6
9206 else
9207 if test -n "$ac_ct_OBJDUMP"; then
9208 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9209 else
9210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9211 for as_dir in $PATH
9213 IFS=$as_save_IFS
9214 test -z "$as_dir" && as_dir=.
9215 for ac_exec_ext in '' $ac_executable_extensions; do
9216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9217 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9219 break 2
9221 done
9222 done
9223 IFS=$as_save_IFS
9227 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9228 if test -n "$ac_ct_OBJDUMP"; then
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9230 $as_echo "$ac_ct_OBJDUMP" >&6; }
9231 else
9232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9233 $as_echo "no" >&6; }
9236 if test "x$ac_ct_OBJDUMP" = x; then
9237 OBJDUMP="false"
9238 else
9239 case $cross_compiling:$ac_tool_warned in
9240 yes:)
9241 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9242 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9243 ac_tool_warned=yes ;;
9244 esac
9245 OBJDUMP=$ac_ct_OBJDUMP
9247 else
9248 OBJDUMP="$ac_cv_prog_OBJDUMP"
9251 test -z "$OBJDUMP" && OBJDUMP=objdump
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9262 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9263 if ${lt_cv_deplibs_check_method+:} false; then :
9264 $as_echo_n "(cached) " >&6
9265 else
9266 lt_cv_file_magic_cmd='$MAGIC_CMD'
9267 lt_cv_file_magic_test_file=
9268 lt_cv_deplibs_check_method='unknown'
9269 # Need to set the preceding variable on all platforms that support
9270 # interlibrary dependencies.
9271 # 'none' -- dependencies not supported.
9272 # `unknown' -- same as none, but documents that we really don't know.
9273 # 'pass_all' -- all dependencies passed with no checks.
9274 # 'test_compile' -- check by making test program.
9275 # 'file_magic [[regex]]' -- check by looking for files in library path
9276 # which responds to the $file_magic_cmd with a given extended regex.
9277 # If you have `file' or equivalent on your system and you're not sure
9278 # whether `pass_all' will *always* work, you probably want this one.
9280 case $host_os in
9281 aix[4-9]*)
9282 lt_cv_deplibs_check_method=pass_all
9285 beos*)
9286 lt_cv_deplibs_check_method=pass_all
9289 bsdi[45]*)
9290 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9291 lt_cv_file_magic_cmd='/usr/bin/file -L'
9292 lt_cv_file_magic_test_file=/shlib/libc.so
9295 cygwin*)
9296 # func_win32_libid is a shell function defined in ltmain.sh
9297 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9298 lt_cv_file_magic_cmd='func_win32_libid'
9301 mingw* | pw32*)
9302 # Base MSYS/MinGW do not provide the 'file' command needed by
9303 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9304 # unless we find 'file', for example because we are cross-compiling.
9305 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
9306 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
9307 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9308 lt_cv_file_magic_cmd='func_win32_libid'
9309 else
9310 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9311 lt_cv_file_magic_cmd='$OBJDUMP -f'
9315 cegcc*)
9316 # use the weaker test based on 'objdump'. See mingw*.
9317 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9318 lt_cv_file_magic_cmd='$OBJDUMP -f'
9321 darwin* | rhapsody*)
9322 lt_cv_deplibs_check_method=pass_all
9325 freebsd* | dragonfly*)
9326 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9327 case $host_cpu in
9328 i*86 )
9329 # Not sure whether the presence of OpenBSD here was a mistake.
9330 # Let's accept both of them until this is cleared up.
9331 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9332 lt_cv_file_magic_cmd=/usr/bin/file
9333 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9335 esac
9336 else
9337 lt_cv_deplibs_check_method=pass_all
9341 gnu*)
9342 lt_cv_deplibs_check_method=pass_all
9345 haiku*)
9346 lt_cv_deplibs_check_method=pass_all
9349 hpux10.20* | hpux11*)
9350 lt_cv_file_magic_cmd=/usr/bin/file
9351 case $host_cpu in
9352 ia64*)
9353 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9354 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9356 hppa*64*)
9357 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
9358 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9361 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9362 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9364 esac
9367 interix[3-9]*)
9368 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9369 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9372 irix5* | irix6* | nonstopux*)
9373 case $LD in
9374 *-32|*"-32 ") libmagic=32-bit;;
9375 *-n32|*"-n32 ") libmagic=N32;;
9376 *-64|*"-64 ") libmagic=64-bit;;
9377 *) libmagic=never-match;;
9378 esac
9379 lt_cv_deplibs_check_method=pass_all
9382 # This must be Linux ELF.
9383 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9384 lt_cv_deplibs_check_method=pass_all
9387 netbsd*)
9388 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9389 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9390 else
9391 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9395 newos6*)
9396 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9397 lt_cv_file_magic_cmd=/usr/bin/file
9398 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9401 *nto* | *qnx*)
9402 lt_cv_deplibs_check_method=pass_all
9405 openbsd*)
9406 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9407 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9408 else
9409 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9413 osf3* | osf4* | osf5*)
9414 lt_cv_deplibs_check_method=pass_all
9417 rdos*)
9418 lt_cv_deplibs_check_method=pass_all
9421 solaris*)
9422 lt_cv_deplibs_check_method=pass_all
9425 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9426 lt_cv_deplibs_check_method=pass_all
9429 sysv4 | sysv4.3*)
9430 case $host_vendor in
9431 motorola)
9432 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]'
9433 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9435 ncr)
9436 lt_cv_deplibs_check_method=pass_all
9438 sequent)
9439 lt_cv_file_magic_cmd='/bin/file'
9440 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9442 sni)
9443 lt_cv_file_magic_cmd='/bin/file'
9444 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9445 lt_cv_file_magic_test_file=/lib/libc.so
9447 siemens)
9448 lt_cv_deplibs_check_method=pass_all
9451 lt_cv_deplibs_check_method=pass_all
9453 esac
9456 tpf*)
9457 lt_cv_deplibs_check_method=pass_all
9459 vxworks*)
9460 # Assume VxWorks cross toolchains are built on Linux, possibly
9461 # as canadian for Windows hosts.
9462 lt_cv_deplibs_check_method=pass_all
9464 esac
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9468 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9469 file_magic_cmd=$lt_cv_file_magic_cmd
9470 deplibs_check_method=$lt_cv_deplibs_check_method
9471 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9484 plugin_option=
9485 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
9486 for plugin in $plugin_names; do
9487 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
9488 if test x$plugin_so = x$plugin; then
9489 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
9491 if test x$plugin_so != x$plugin; then
9492 plugin_option="--plugin $plugin_so"
9493 break
9495 done
9497 if test -n "$ac_tool_prefix"; then
9498 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9499 set dummy ${ac_tool_prefix}ar; ac_word=$2
9500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9501 $as_echo_n "checking for $ac_word... " >&6; }
9502 if ${ac_cv_prog_AR+:} false; then :
9503 $as_echo_n "(cached) " >&6
9504 else
9505 if test -n "$AR"; then
9506 ac_cv_prog_AR="$AR" # Let the user override the test.
9507 else
9508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9509 for as_dir in $PATH
9511 IFS=$as_save_IFS
9512 test -z "$as_dir" && as_dir=.
9513 for ac_exec_ext in '' $ac_executable_extensions; do
9514 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9515 ac_cv_prog_AR="${ac_tool_prefix}ar"
9516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9517 break 2
9519 done
9520 done
9521 IFS=$as_save_IFS
9525 AR=$ac_cv_prog_AR
9526 if test -n "$AR"; then
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9528 $as_echo "$AR" >&6; }
9529 else
9530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9531 $as_echo "no" >&6; }
9536 if test -z "$ac_cv_prog_AR"; then
9537 ac_ct_AR=$AR
9538 # Extract the first word of "ar", so it can be a program name with args.
9539 set dummy ar; ac_word=$2
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9541 $as_echo_n "checking for $ac_word... " >&6; }
9542 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9543 $as_echo_n "(cached) " >&6
9544 else
9545 if test -n "$ac_ct_AR"; then
9546 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9547 else
9548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9549 for as_dir in $PATH
9551 IFS=$as_save_IFS
9552 test -z "$as_dir" && as_dir=.
9553 for ac_exec_ext in '' $ac_executable_extensions; do
9554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9555 ac_cv_prog_ac_ct_AR="ar"
9556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9557 break 2
9559 done
9560 done
9561 IFS=$as_save_IFS
9565 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9566 if test -n "$ac_ct_AR"; then
9567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9568 $as_echo "$ac_ct_AR" >&6; }
9569 else
9570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9571 $as_echo "no" >&6; }
9574 if test "x$ac_ct_AR" = x; then
9575 AR="false"
9576 else
9577 case $cross_compiling:$ac_tool_warned in
9578 yes:)
9579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9581 ac_tool_warned=yes ;;
9582 esac
9583 AR=$ac_ct_AR
9585 else
9586 AR="$ac_cv_prog_AR"
9589 test -z "$AR" && AR=ar
9590 if test -n "$plugin_option"; then
9591 if $AR --help 2>&1 | grep -q "\--plugin"; then
9592 touch conftest.c
9593 $AR $plugin_option rc conftest.a conftest.c
9594 if test "$?" != 0; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
9596 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
9597 else
9598 AR="$AR $plugin_option"
9600 rm -f conftest.*
9603 test -z "$AR_FLAGS" && AR_FLAGS=cru
9615 if test -n "$ac_tool_prefix"; then
9616 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9617 set dummy ${ac_tool_prefix}strip; ac_word=$2
9618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9619 $as_echo_n "checking for $ac_word... " >&6; }
9620 if ${ac_cv_prog_STRIP+:} false; then :
9621 $as_echo_n "(cached) " >&6
9622 else
9623 if test -n "$STRIP"; then
9624 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9625 else
9626 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9627 for as_dir in $PATH
9629 IFS=$as_save_IFS
9630 test -z "$as_dir" && as_dir=.
9631 for ac_exec_ext in '' $ac_executable_extensions; do
9632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9633 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9635 break 2
9637 done
9638 done
9639 IFS=$as_save_IFS
9643 STRIP=$ac_cv_prog_STRIP
9644 if test -n "$STRIP"; then
9645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9646 $as_echo "$STRIP" >&6; }
9647 else
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9649 $as_echo "no" >&6; }
9654 if test -z "$ac_cv_prog_STRIP"; then
9655 ac_ct_STRIP=$STRIP
9656 # Extract the first word of "strip", so it can be a program name with args.
9657 set dummy strip; ac_word=$2
9658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9659 $as_echo_n "checking for $ac_word... " >&6; }
9660 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9661 $as_echo_n "(cached) " >&6
9662 else
9663 if test -n "$ac_ct_STRIP"; then
9664 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9665 else
9666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9667 for as_dir in $PATH
9669 IFS=$as_save_IFS
9670 test -z "$as_dir" && as_dir=.
9671 for ac_exec_ext in '' $ac_executable_extensions; do
9672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9673 ac_cv_prog_ac_ct_STRIP="strip"
9674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9675 break 2
9677 done
9678 done
9679 IFS=$as_save_IFS
9683 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9684 if test -n "$ac_ct_STRIP"; then
9685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9686 $as_echo "$ac_ct_STRIP" >&6; }
9687 else
9688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9689 $as_echo "no" >&6; }
9692 if test "x$ac_ct_STRIP" = x; then
9693 STRIP=":"
9694 else
9695 case $cross_compiling:$ac_tool_warned in
9696 yes:)
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9698 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9699 ac_tool_warned=yes ;;
9700 esac
9701 STRIP=$ac_ct_STRIP
9703 else
9704 STRIP="$ac_cv_prog_STRIP"
9707 test -z "$STRIP" && STRIP=:
9714 if test -n "$ac_tool_prefix"; then
9715 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9716 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9718 $as_echo_n "checking for $ac_word... " >&6; }
9719 if ${ac_cv_prog_RANLIB+:} false; then :
9720 $as_echo_n "(cached) " >&6
9721 else
9722 if test -n "$RANLIB"; then
9723 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9724 else
9725 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9726 for as_dir in $PATH
9728 IFS=$as_save_IFS
9729 test -z "$as_dir" && as_dir=.
9730 for ac_exec_ext in '' $ac_executable_extensions; do
9731 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9732 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9733 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9734 break 2
9736 done
9737 done
9738 IFS=$as_save_IFS
9742 RANLIB=$ac_cv_prog_RANLIB
9743 if test -n "$RANLIB"; then
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9745 $as_echo "$RANLIB" >&6; }
9746 else
9747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9748 $as_echo "no" >&6; }
9753 if test -z "$ac_cv_prog_RANLIB"; then
9754 ac_ct_RANLIB=$RANLIB
9755 # Extract the first word of "ranlib", so it can be a program name with args.
9756 set dummy ranlib; ac_word=$2
9757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9758 $as_echo_n "checking for $ac_word... " >&6; }
9759 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9760 $as_echo_n "(cached) " >&6
9761 else
9762 if test -n "$ac_ct_RANLIB"; then
9763 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9764 else
9765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9766 for as_dir in $PATH
9768 IFS=$as_save_IFS
9769 test -z "$as_dir" && as_dir=.
9770 for ac_exec_ext in '' $ac_executable_extensions; do
9771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9772 ac_cv_prog_ac_ct_RANLIB="ranlib"
9773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9774 break 2
9776 done
9777 done
9778 IFS=$as_save_IFS
9782 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9783 if test -n "$ac_ct_RANLIB"; then
9784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9785 $as_echo "$ac_ct_RANLIB" >&6; }
9786 else
9787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9788 $as_echo "no" >&6; }
9791 if test "x$ac_ct_RANLIB" = x; then
9792 RANLIB=":"
9793 else
9794 case $cross_compiling:$ac_tool_warned in
9795 yes:)
9796 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9797 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9798 ac_tool_warned=yes ;;
9799 esac
9800 RANLIB=$ac_ct_RANLIB
9802 else
9803 RANLIB="$ac_cv_prog_RANLIB"
9806 test -z "$RANLIB" && RANLIB=:
9807 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
9808 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
9809 RANLIB="$RANLIB $plugin_option"
9818 # Determine commands to create old-style static archives.
9819 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9820 old_postinstall_cmds='chmod 644 $oldlib'
9821 old_postuninstall_cmds=
9823 if test -n "$RANLIB"; then
9824 case $host_os in
9825 openbsd*)
9826 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9829 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9831 esac
9832 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9835 case $host_os in
9836 darwin*)
9837 lock_old_archive_extraction=yes ;;
9839 lock_old_archive_extraction=no ;;
9840 esac
9880 # If no C compiler was specified, use CC.
9881 LTCC=${LTCC-"$CC"}
9883 # If no C compiler flags were specified, use CFLAGS.
9884 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9886 # Allow CC to be a program name with arguments.
9887 compiler=$CC
9890 # Check for command to grab the raw symbol name followed by C symbol from nm.
9891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9892 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9893 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9894 $as_echo_n "(cached) " >&6
9895 else
9897 # These are sane defaults that work on at least a few old systems.
9898 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9900 # Character class describing NM global symbol codes.
9901 symcode='[BCDEGRST]'
9903 # Regexp to match symbols that can be accessed directly from C.
9904 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9906 # Define system-specific variables.
9907 case $host_os in
9908 aix*)
9909 symcode='[BCDT]'
9911 cygwin* | mingw* | pw32* | cegcc*)
9912 symcode='[ABCDGISTW]'
9914 hpux*)
9915 if test "$host_cpu" = ia64; then
9916 symcode='[ABCDEGRST]'
9919 irix* | nonstopux*)
9920 symcode='[BCDEGRST]'
9922 osf*)
9923 symcode='[BCDEGQRST]'
9925 solaris*)
9926 symcode='[BCDRT]'
9928 sco3.2v5*)
9929 symcode='[DT]'
9931 sysv4.2uw2*)
9932 symcode='[DT]'
9934 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9935 symcode='[ABDT]'
9937 sysv4)
9938 symcode='[DFNSTU]'
9940 esac
9942 # If we're using GNU nm, then use its standard symbol codes.
9943 case `$NM -V 2>&1` in
9944 *GNU* | *'with BFD'*)
9945 symcode='[ABCDGIRSTW]' ;;
9946 esac
9948 # Transform an extracted symbol line into a proper C declaration.
9949 # Some systems (esp. on ia64) link data and code symbols differently,
9950 # so use this general approach.
9951 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9953 # Transform an extracted symbol line into symbol name and symbol address
9954 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9955 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
9957 # Handle CRLF in mingw tool chain
9958 opt_cr=
9959 case $build_os in
9960 mingw*)
9961 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9963 esac
9965 # Try without a prefix underscore, then with it.
9966 for ac_symprfx in "" "_"; do
9968 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9969 symxfrm="\\1 $ac_symprfx\\2 \\2"
9971 # Write the raw and C identifiers.
9972 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9973 # Fake it for dumpbin and say T for any non-static function
9974 # and D for any global variable.
9975 # Also find C++ and __fastcall symbols from MSVC++,
9976 # which start with @ or ?.
9977 lt_cv_sys_global_symbol_pipe="$AWK '"\
9978 " {last_section=section; section=\$ 3};"\
9979 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9980 " \$ 0!~/External *\|/{next};"\
9981 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9982 " {if(hide[section]) next};"\
9983 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9984 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9985 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9986 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9987 " ' prfx=^$ac_symprfx"
9988 else
9989 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9992 # Check to see that the pipe works correctly.
9993 pipe_works=no
9995 rm -f conftest*
9996 cat > conftest.$ac_ext <<_LT_EOF
9997 #ifdef __cplusplus
9998 extern "C" {
9999 #endif
10000 char nm_test_var;
10001 void nm_test_func(void);
10002 void nm_test_func(void){}
10003 #ifdef __cplusplus
10005 #endif
10006 int main(){nm_test_var='a';nm_test_func();return(0);}
10007 _LT_EOF
10009 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10010 (eval $ac_compile) 2>&5
10011 ac_status=$?
10012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10013 test $ac_status = 0; }; then
10014 # Now try to grab the symbols.
10015 nlist=conftest.nm
10016 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
10017 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
10018 ac_status=$?
10019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10020 test $ac_status = 0; } && test -s "$nlist"; then
10021 # Try sorting and uniquifying the output.
10022 if sort "$nlist" | uniq > "$nlist"T; then
10023 mv -f "$nlist"T "$nlist"
10024 else
10025 rm -f "$nlist"T
10028 # Make sure that we snagged all the symbols we need.
10029 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
10030 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
10031 cat <<_LT_EOF > conftest.$ac_ext
10032 #ifdef __cplusplus
10033 extern "C" {
10034 #endif
10036 _LT_EOF
10037 # Now generate the symbol file.
10038 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
10040 cat <<_LT_EOF >> conftest.$ac_ext
10042 /* The mapping between symbol names and symbols. */
10043 const struct {
10044 const char *name;
10045 void *address;
10047 lt__PROGRAM__LTX_preloaded_symbols[] =
10049 { "@PROGRAM@", (void *) 0 },
10050 _LT_EOF
10051 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10052 cat <<\_LT_EOF >> conftest.$ac_ext
10053 {0, (void *) 0}
10056 /* This works around a problem in FreeBSD linker */
10057 #ifdef FREEBSD_WORKAROUND
10058 static const void *lt_preloaded_setup() {
10059 return lt__PROGRAM__LTX_preloaded_symbols;
10061 #endif
10063 #ifdef __cplusplus
10065 #endif
10066 _LT_EOF
10067 # Now try linking the two files.
10068 mv conftest.$ac_objext conftstm.$ac_objext
10069 lt_save_LIBS="$LIBS"
10070 lt_save_CFLAGS="$CFLAGS"
10071 LIBS="conftstm.$ac_objext"
10072 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10074 (eval $ac_link) 2>&5
10075 ac_status=$?
10076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10077 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10078 pipe_works=yes
10080 LIBS="$lt_save_LIBS"
10081 CFLAGS="$lt_save_CFLAGS"
10082 else
10083 echo "cannot find nm_test_func in $nlist" >&5
10085 else
10086 echo "cannot find nm_test_var in $nlist" >&5
10088 else
10089 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10091 else
10092 echo "$progname: failed program was:" >&5
10093 cat conftest.$ac_ext >&5
10095 rm -rf conftest* conftst*
10097 # Do not use the global_symbol_pipe unless it works.
10098 if test "$pipe_works" = yes; then
10099 break
10100 else
10101 lt_cv_sys_global_symbol_pipe=
10103 done
10107 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10108 lt_cv_sys_global_symbol_to_cdecl=
10110 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10112 $as_echo "failed" >&6; }
10113 else
10114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10115 $as_echo "ok" >&6; }
10139 # Check whether --enable-libtool-lock was given.
10140 if test "${enable_libtool_lock+set}" = set; then :
10141 enableval=$enable_libtool_lock;
10144 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10146 # Some flags need to be propagated to the compiler or linker for good
10147 # libtool support.
10148 case $host in
10149 ia64-*-hpux*)
10150 # Find out which ABI we are using.
10151 echo 'int i;' > conftest.$ac_ext
10152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10153 (eval $ac_compile) 2>&5
10154 ac_status=$?
10155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10156 test $ac_status = 0; }; then
10157 case `/usr/bin/file conftest.$ac_objext` in
10158 *ELF-32*)
10159 HPUX_IA64_MODE="32"
10161 *ELF-64*)
10162 HPUX_IA64_MODE="64"
10164 esac
10166 rm -rf conftest*
10168 *-*-irix6*)
10169 # Find out which ABI we are using.
10170 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10171 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10172 (eval $ac_compile) 2>&5
10173 ac_status=$?
10174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10175 test $ac_status = 0; }; then
10176 if test "$lt_cv_prog_gnu_ld" = yes; then
10177 case `/usr/bin/file conftest.$ac_objext` in
10178 *32-bit*)
10179 LD="${LD-ld} -melf32bsmip"
10181 *N32*)
10182 LD="${LD-ld} -melf32bmipn32"
10184 *64-bit*)
10185 LD="${LD-ld} -melf64bmip"
10187 esac
10188 else
10189 case `/usr/bin/file conftest.$ac_objext` in
10190 *32-bit*)
10191 LD="${LD-ld} -32"
10193 *N32*)
10194 LD="${LD-ld} -n32"
10196 *64-bit*)
10197 LD="${LD-ld} -64"
10199 esac
10202 rm -rf conftest*
10205 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10206 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10207 # Find out which ABI we are using.
10208 echo 'int i;' > conftest.$ac_ext
10209 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10210 (eval $ac_compile) 2>&5
10211 ac_status=$?
10212 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10213 test $ac_status = 0; }; then
10214 case `/usr/bin/file conftest.o` in
10215 *32-bit*)
10216 case $host in
10217 x86_64-*kfreebsd*-gnu)
10218 LD="${LD-ld} -m elf_i386_fbsd"
10220 x86_64-*linux*)
10221 case `/usr/bin/file conftest.o` in
10222 *x86-64*)
10223 LD="${LD-ld} -m elf32_x86_64"
10226 LD="${LD-ld} -m elf_i386"
10228 esac
10230 powerpc64le-*linux*)
10231 LD="${LD-ld} -m elf32lppclinux"
10233 powerpc64-*linux*)
10234 LD="${LD-ld} -m elf32ppclinux"
10236 s390x-*linux*)
10237 LD="${LD-ld} -m elf_s390"
10239 sparc64-*linux*)
10240 LD="${LD-ld} -m elf32_sparc"
10242 esac
10244 *64-bit*)
10245 case $host in
10246 x86_64-*kfreebsd*-gnu)
10247 LD="${LD-ld} -m elf_x86_64_fbsd"
10249 x86_64-*linux*)
10250 LD="${LD-ld} -m elf_x86_64"
10252 powerpcle-*linux*)
10253 LD="${LD-ld} -m elf64lppc"
10255 powerpc-*linux*)
10256 LD="${LD-ld} -m elf64ppc"
10258 s390*-*linux*|s390*-*tpf*)
10259 LD="${LD-ld} -m elf64_s390"
10261 sparc*-*linux*)
10262 LD="${LD-ld} -m elf64_sparc"
10264 esac
10266 esac
10268 rm -rf conftest*
10271 *-*-sco3.2v5*)
10272 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10273 SAVE_CFLAGS="$CFLAGS"
10274 CFLAGS="$CFLAGS -belf"
10275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10276 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10277 if ${lt_cv_cc_needs_belf+:} false; then :
10278 $as_echo_n "(cached) " >&6
10279 else
10280 ac_ext=c
10281 ac_cpp='$CPP $CPPFLAGS'
10282 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10283 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10284 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10286 if test x$gcc_no_link = xyes; then
10287 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10290 /* end confdefs.h. */
10293 main ()
10297 return 0;
10299 _ACEOF
10300 if ac_fn_c_try_link "$LINENO"; then :
10301 lt_cv_cc_needs_belf=yes
10302 else
10303 lt_cv_cc_needs_belf=no
10305 rm -f core conftest.err conftest.$ac_objext \
10306 conftest$ac_exeext conftest.$ac_ext
10307 ac_ext=c
10308 ac_cpp='$CPP $CPPFLAGS'
10309 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10310 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10311 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10315 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10316 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10317 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10318 CFLAGS="$SAVE_CFLAGS"
10321 sparc*-*solaris*)
10322 # Find out which ABI we are using.
10323 echo 'int i;' > conftest.$ac_ext
10324 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10325 (eval $ac_compile) 2>&5
10326 ac_status=$?
10327 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10328 test $ac_status = 0; }; then
10329 case `/usr/bin/file conftest.o` in
10330 *64-bit*)
10331 case $lt_cv_prog_gnu_ld in
10332 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10334 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10335 LD="${LD-ld} -64"
10338 esac
10340 esac
10342 rm -rf conftest*
10344 esac
10346 need_locks="$enable_libtool_lock"
10349 case $host_os in
10350 rhapsody* | darwin*)
10351 if test -n "$ac_tool_prefix"; then
10352 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10353 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10355 $as_echo_n "checking for $ac_word... " >&6; }
10356 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10357 $as_echo_n "(cached) " >&6
10358 else
10359 if test -n "$DSYMUTIL"; then
10360 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10361 else
10362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10363 for as_dir in $PATH
10365 IFS=$as_save_IFS
10366 test -z "$as_dir" && as_dir=.
10367 for ac_exec_ext in '' $ac_executable_extensions; do
10368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10369 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10371 break 2
10373 done
10374 done
10375 IFS=$as_save_IFS
10379 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10380 if test -n "$DSYMUTIL"; then
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10382 $as_echo "$DSYMUTIL" >&6; }
10383 else
10384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10385 $as_echo "no" >&6; }
10390 if test -z "$ac_cv_prog_DSYMUTIL"; then
10391 ac_ct_DSYMUTIL=$DSYMUTIL
10392 # Extract the first word of "dsymutil", so it can be a program name with args.
10393 set dummy dsymutil; ac_word=$2
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10395 $as_echo_n "checking for $ac_word... " >&6; }
10396 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10397 $as_echo_n "(cached) " >&6
10398 else
10399 if test -n "$ac_ct_DSYMUTIL"; then
10400 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10401 else
10402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10403 for as_dir in $PATH
10405 IFS=$as_save_IFS
10406 test -z "$as_dir" && as_dir=.
10407 for ac_exec_ext in '' $ac_executable_extensions; do
10408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10409 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10411 break 2
10413 done
10414 done
10415 IFS=$as_save_IFS
10419 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10420 if test -n "$ac_ct_DSYMUTIL"; then
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10422 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10423 else
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10425 $as_echo "no" >&6; }
10428 if test "x$ac_ct_DSYMUTIL" = x; then
10429 DSYMUTIL=":"
10430 else
10431 case $cross_compiling:$ac_tool_warned in
10432 yes:)
10433 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10434 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10435 ac_tool_warned=yes ;;
10436 esac
10437 DSYMUTIL=$ac_ct_DSYMUTIL
10439 else
10440 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10443 if test -n "$ac_tool_prefix"; then
10444 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10445 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10447 $as_echo_n "checking for $ac_word... " >&6; }
10448 if ${ac_cv_prog_NMEDIT+:} false; then :
10449 $as_echo_n "(cached) " >&6
10450 else
10451 if test -n "$NMEDIT"; then
10452 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10453 else
10454 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10455 for as_dir in $PATH
10457 IFS=$as_save_IFS
10458 test -z "$as_dir" && as_dir=.
10459 for ac_exec_ext in '' $ac_executable_extensions; do
10460 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10461 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10462 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10463 break 2
10465 done
10466 done
10467 IFS=$as_save_IFS
10471 NMEDIT=$ac_cv_prog_NMEDIT
10472 if test -n "$NMEDIT"; then
10473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10474 $as_echo "$NMEDIT" >&6; }
10475 else
10476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10477 $as_echo "no" >&6; }
10482 if test -z "$ac_cv_prog_NMEDIT"; then
10483 ac_ct_NMEDIT=$NMEDIT
10484 # Extract the first word of "nmedit", so it can be a program name with args.
10485 set dummy nmedit; ac_word=$2
10486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10487 $as_echo_n "checking for $ac_word... " >&6; }
10488 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10489 $as_echo_n "(cached) " >&6
10490 else
10491 if test -n "$ac_ct_NMEDIT"; then
10492 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10493 else
10494 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10495 for as_dir in $PATH
10497 IFS=$as_save_IFS
10498 test -z "$as_dir" && as_dir=.
10499 for ac_exec_ext in '' $ac_executable_extensions; do
10500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10501 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10503 break 2
10505 done
10506 done
10507 IFS=$as_save_IFS
10511 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10512 if test -n "$ac_ct_NMEDIT"; then
10513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10514 $as_echo "$ac_ct_NMEDIT" >&6; }
10515 else
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 $as_echo "no" >&6; }
10520 if test "x$ac_ct_NMEDIT" = x; then
10521 NMEDIT=":"
10522 else
10523 case $cross_compiling:$ac_tool_warned in
10524 yes:)
10525 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10526 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10527 ac_tool_warned=yes ;;
10528 esac
10529 NMEDIT=$ac_ct_NMEDIT
10531 else
10532 NMEDIT="$ac_cv_prog_NMEDIT"
10535 if test -n "$ac_tool_prefix"; then
10536 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10537 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10539 $as_echo_n "checking for $ac_word... " >&6; }
10540 if ${ac_cv_prog_LIPO+:} false; then :
10541 $as_echo_n "(cached) " >&6
10542 else
10543 if test -n "$LIPO"; then
10544 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10545 else
10546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10547 for as_dir in $PATH
10549 IFS=$as_save_IFS
10550 test -z "$as_dir" && as_dir=.
10551 for ac_exec_ext in '' $ac_executable_extensions; do
10552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10553 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10555 break 2
10557 done
10558 done
10559 IFS=$as_save_IFS
10563 LIPO=$ac_cv_prog_LIPO
10564 if test -n "$LIPO"; then
10565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10566 $as_echo "$LIPO" >&6; }
10567 else
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10569 $as_echo "no" >&6; }
10574 if test -z "$ac_cv_prog_LIPO"; then
10575 ac_ct_LIPO=$LIPO
10576 # Extract the first word of "lipo", so it can be a program name with args.
10577 set dummy lipo; ac_word=$2
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10579 $as_echo_n "checking for $ac_word... " >&6; }
10580 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10581 $as_echo_n "(cached) " >&6
10582 else
10583 if test -n "$ac_ct_LIPO"; then
10584 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10585 else
10586 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10587 for as_dir in $PATH
10589 IFS=$as_save_IFS
10590 test -z "$as_dir" && as_dir=.
10591 for ac_exec_ext in '' $ac_executable_extensions; do
10592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10593 ac_cv_prog_ac_ct_LIPO="lipo"
10594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10595 break 2
10597 done
10598 done
10599 IFS=$as_save_IFS
10603 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10604 if test -n "$ac_ct_LIPO"; then
10605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10606 $as_echo "$ac_ct_LIPO" >&6; }
10607 else
10608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10609 $as_echo "no" >&6; }
10612 if test "x$ac_ct_LIPO" = x; then
10613 LIPO=":"
10614 else
10615 case $cross_compiling:$ac_tool_warned in
10616 yes:)
10617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10618 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10619 ac_tool_warned=yes ;;
10620 esac
10621 LIPO=$ac_ct_LIPO
10623 else
10624 LIPO="$ac_cv_prog_LIPO"
10627 if test -n "$ac_tool_prefix"; then
10628 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10629 set dummy ${ac_tool_prefix}otool; ac_word=$2
10630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10631 $as_echo_n "checking for $ac_word... " >&6; }
10632 if ${ac_cv_prog_OTOOL+:} false; then :
10633 $as_echo_n "(cached) " >&6
10634 else
10635 if test -n "$OTOOL"; then
10636 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10637 else
10638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10639 for as_dir in $PATH
10641 IFS=$as_save_IFS
10642 test -z "$as_dir" && as_dir=.
10643 for ac_exec_ext in '' $ac_executable_extensions; do
10644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10645 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10647 break 2
10649 done
10650 done
10651 IFS=$as_save_IFS
10655 OTOOL=$ac_cv_prog_OTOOL
10656 if test -n "$OTOOL"; then
10657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10658 $as_echo "$OTOOL" >&6; }
10659 else
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10661 $as_echo "no" >&6; }
10666 if test -z "$ac_cv_prog_OTOOL"; then
10667 ac_ct_OTOOL=$OTOOL
10668 # Extract the first word of "otool", so it can be a program name with args.
10669 set dummy otool; ac_word=$2
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10671 $as_echo_n "checking for $ac_word... " >&6; }
10672 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10673 $as_echo_n "(cached) " >&6
10674 else
10675 if test -n "$ac_ct_OTOOL"; then
10676 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10677 else
10678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10679 for as_dir in $PATH
10681 IFS=$as_save_IFS
10682 test -z "$as_dir" && as_dir=.
10683 for ac_exec_ext in '' $ac_executable_extensions; do
10684 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10685 ac_cv_prog_ac_ct_OTOOL="otool"
10686 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10687 break 2
10689 done
10690 done
10691 IFS=$as_save_IFS
10695 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10696 if test -n "$ac_ct_OTOOL"; then
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10698 $as_echo "$ac_ct_OTOOL" >&6; }
10699 else
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10701 $as_echo "no" >&6; }
10704 if test "x$ac_ct_OTOOL" = x; then
10705 OTOOL=":"
10706 else
10707 case $cross_compiling:$ac_tool_warned in
10708 yes:)
10709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10710 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10711 ac_tool_warned=yes ;;
10712 esac
10713 OTOOL=$ac_ct_OTOOL
10715 else
10716 OTOOL="$ac_cv_prog_OTOOL"
10719 if test -n "$ac_tool_prefix"; then
10720 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10721 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10723 $as_echo_n "checking for $ac_word... " >&6; }
10724 if ${ac_cv_prog_OTOOL64+:} false; then :
10725 $as_echo_n "(cached) " >&6
10726 else
10727 if test -n "$OTOOL64"; then
10728 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10729 else
10730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10731 for as_dir in $PATH
10733 IFS=$as_save_IFS
10734 test -z "$as_dir" && as_dir=.
10735 for ac_exec_ext in '' $ac_executable_extensions; do
10736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10737 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10739 break 2
10741 done
10742 done
10743 IFS=$as_save_IFS
10747 OTOOL64=$ac_cv_prog_OTOOL64
10748 if test -n "$OTOOL64"; then
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10750 $as_echo "$OTOOL64" >&6; }
10751 else
10752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10753 $as_echo "no" >&6; }
10758 if test -z "$ac_cv_prog_OTOOL64"; then
10759 ac_ct_OTOOL64=$OTOOL64
10760 # Extract the first word of "otool64", so it can be a program name with args.
10761 set dummy otool64; ac_word=$2
10762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10763 $as_echo_n "checking for $ac_word... " >&6; }
10764 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10765 $as_echo_n "(cached) " >&6
10766 else
10767 if test -n "$ac_ct_OTOOL64"; then
10768 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10769 else
10770 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10771 for as_dir in $PATH
10773 IFS=$as_save_IFS
10774 test -z "$as_dir" && as_dir=.
10775 for ac_exec_ext in '' $ac_executable_extensions; do
10776 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10777 ac_cv_prog_ac_ct_OTOOL64="otool64"
10778 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10779 break 2
10781 done
10782 done
10783 IFS=$as_save_IFS
10787 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10788 if test -n "$ac_ct_OTOOL64"; then
10789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10790 $as_echo "$ac_ct_OTOOL64" >&6; }
10791 else
10792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10793 $as_echo "no" >&6; }
10796 if test "x$ac_ct_OTOOL64" = x; then
10797 OTOOL64=":"
10798 else
10799 case $cross_compiling:$ac_tool_warned in
10800 yes:)
10801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10802 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10803 ac_tool_warned=yes ;;
10804 esac
10805 OTOOL64=$ac_ct_OTOOL64
10807 else
10808 OTOOL64="$ac_cv_prog_OTOOL64"
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10838 $as_echo_n "checking for -single_module linker flag... " >&6; }
10839 if ${lt_cv_apple_cc_single_mod+:} false; then :
10840 $as_echo_n "(cached) " >&6
10841 else
10842 lt_cv_apple_cc_single_mod=no
10843 if test -z "${LT_MULTI_MODULE}"; then
10844 # By default we will add the -single_module flag. You can override
10845 # by either setting the environment variable LT_MULTI_MODULE
10846 # non-empty at configure time, or by adding -multi_module to the
10847 # link flags.
10848 rm -rf libconftest.dylib*
10849 echo "int foo(void){return 1;}" > conftest.c
10850 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10851 -dynamiclib -Wl,-single_module conftest.c" >&5
10852 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10853 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10854 _lt_result=$?
10855 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10856 lt_cv_apple_cc_single_mod=yes
10857 else
10858 cat conftest.err >&5
10860 rm -rf libconftest.dylib*
10861 rm -f conftest.*
10864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10865 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10867 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10868 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10869 $as_echo_n "(cached) " >&6
10870 else
10871 lt_cv_ld_exported_symbols_list=no
10872 save_LDFLAGS=$LDFLAGS
10873 echo "_main" > conftest.sym
10874 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10875 if test x$gcc_no_link = xyes; then
10876 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10879 /* end confdefs.h. */
10882 main ()
10886 return 0;
10888 _ACEOF
10889 if ac_fn_c_try_link "$LINENO"; then :
10890 lt_cv_ld_exported_symbols_list=yes
10891 else
10892 lt_cv_ld_exported_symbols_list=no
10894 rm -f core conftest.err conftest.$ac_objext \
10895 conftest$ac_exeext conftest.$ac_ext
10896 LDFLAGS="$save_LDFLAGS"
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10900 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10902 $as_echo_n "checking for -force_load linker flag... " >&6; }
10903 if ${lt_cv_ld_force_load+:} false; then :
10904 $as_echo_n "(cached) " >&6
10905 else
10906 lt_cv_ld_force_load=no
10907 cat > conftest.c << _LT_EOF
10908 int forced_loaded() { return 2;}
10909 _LT_EOF
10910 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10911 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10912 echo "$AR cru libconftest.a conftest.o" >&5
10913 $AR cru libconftest.a conftest.o 2>&5
10914 cat > conftest.c << _LT_EOF
10915 int main() { return 0;}
10916 _LT_EOF
10917 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10918 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10919 _lt_result=$?
10920 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
10921 lt_cv_ld_force_load=yes
10922 else
10923 cat conftest.err >&5
10925 rm -f conftest.err libconftest.a conftest conftest.c
10926 rm -rf conftest.dSYM
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10930 $as_echo "$lt_cv_ld_force_load" >&6; }
10931 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
10932 # build without first building modern cctools / linker.
10933 case $host_cpu-$host_os in
10934 *-rhapsody* | *-darwin1.[012])
10935 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10936 *-darwin1.*)
10937 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10938 *-darwin*)
10939 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
10940 # deployment target is forced to an earlier version.
10941 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
10942 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
10944 10.[012][,.]*)
10945 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10949 esac
10951 esac
10952 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10953 _lt_dar_single_mod='$single_module'
10955 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10956 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10957 else
10958 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10960 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10961 _lt_dsymutil='~$DSYMUTIL $lib || :'
10962 else
10963 _lt_dsymutil=
10966 esac
10968 for ac_header in dlfcn.h
10969 do :
10970 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10972 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10973 cat >>confdefs.h <<_ACEOF
10974 #define HAVE_DLFCN_H 1
10975 _ACEOF
10979 done
10985 # Set options
10989 enable_dlopen=no
10992 enable_win32_dll=no
10995 # Check whether --enable-shared was given.
10996 if test "${enable_shared+set}" = set; then :
10997 enableval=$enable_shared; p=${PACKAGE-default}
10998 case $enableval in
10999 yes) enable_shared=yes ;;
11000 no) enable_shared=no ;;
11002 enable_shared=no
11003 # Look at the argument we got. We use all the common list separators.
11004 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11005 for pkg in $enableval; do
11006 IFS="$lt_save_ifs"
11007 if test "X$pkg" = "X$p"; then
11008 enable_shared=yes
11010 done
11011 IFS="$lt_save_ifs"
11013 esac
11014 else
11015 enable_shared=yes
11026 # Check whether --enable-static was given.
11027 if test "${enable_static+set}" = set; then :
11028 enableval=$enable_static; p=${PACKAGE-default}
11029 case $enableval in
11030 yes) enable_static=yes ;;
11031 no) enable_static=no ;;
11033 enable_static=no
11034 # Look at the argument we got. We use all the common list separators.
11035 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11036 for pkg in $enableval; do
11037 IFS="$lt_save_ifs"
11038 if test "X$pkg" = "X$p"; then
11039 enable_static=yes
11041 done
11042 IFS="$lt_save_ifs"
11044 esac
11045 else
11046 enable_static=yes
11058 # Check whether --with-pic was given.
11059 if test "${with_pic+set}" = set; then :
11060 withval=$with_pic; pic_mode="$withval"
11061 else
11062 pic_mode=default
11066 test -z "$pic_mode" && pic_mode=default
11074 # Check whether --enable-fast-install was given.
11075 if test "${enable_fast_install+set}" = set; then :
11076 enableval=$enable_fast_install; p=${PACKAGE-default}
11077 case $enableval in
11078 yes) enable_fast_install=yes ;;
11079 no) enable_fast_install=no ;;
11081 enable_fast_install=no
11082 # Look at the argument we got. We use all the common list separators.
11083 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11084 for pkg in $enableval; do
11085 IFS="$lt_save_ifs"
11086 if test "X$pkg" = "X$p"; then
11087 enable_fast_install=yes
11089 done
11090 IFS="$lt_save_ifs"
11092 esac
11093 else
11094 enable_fast_install=yes
11107 # This can be used to rebuild libtool when needed
11108 LIBTOOL_DEPS="$ltmain"
11110 # Always use our own libtool.
11111 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11138 test -z "$LN_S" && LN_S="ln -s"
11153 if test -n "${ZSH_VERSION+set}" ; then
11154 setopt NO_GLOB_SUBST
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11158 $as_echo_n "checking for objdir... " >&6; }
11159 if ${lt_cv_objdir+:} false; then :
11160 $as_echo_n "(cached) " >&6
11161 else
11162 rm -f .libs 2>/dev/null
11163 mkdir .libs 2>/dev/null
11164 if test -d .libs; then
11165 lt_cv_objdir=.libs
11166 else
11167 # MS-DOS does not allow filenames that begin with a dot.
11168 lt_cv_objdir=_libs
11170 rmdir .libs 2>/dev/null
11172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11173 $as_echo "$lt_cv_objdir" >&6; }
11174 objdir=$lt_cv_objdir
11180 cat >>confdefs.h <<_ACEOF
11181 #define LT_OBJDIR "$lt_cv_objdir/"
11182 _ACEOF
11187 case $host_os in
11188 aix3*)
11189 # AIX sometimes has problems with the GCC collect2 program. For some
11190 # reason, if we set the COLLECT_NAMES environment variable, the problems
11191 # vanish in a puff of smoke.
11192 if test "X${COLLECT_NAMES+set}" != Xset; then
11193 COLLECT_NAMES=
11194 export COLLECT_NAMES
11197 esac
11199 # Global variables:
11200 ofile=libtool
11201 can_build_shared=yes
11203 # All known linkers require a `.a' archive for static linking (except MSVC,
11204 # which needs '.lib').
11205 libext=a
11207 with_gnu_ld="$lt_cv_prog_gnu_ld"
11209 old_CC="$CC"
11210 old_CFLAGS="$CFLAGS"
11212 # Set sane defaults for various variables
11213 test -z "$CC" && CC=cc
11214 test -z "$LTCC" && LTCC=$CC
11215 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11216 test -z "$LD" && LD=ld
11217 test -z "$ac_objext" && ac_objext=o
11219 for cc_temp in $compiler""; do
11220 case $cc_temp in
11221 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11222 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11223 \-*) ;;
11224 *) break;;
11225 esac
11226 done
11227 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11230 # Only perform the check for file, if the check method requires it
11231 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11232 case $deplibs_check_method in
11233 file_magic*)
11234 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11236 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11237 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11238 $as_echo_n "(cached) " >&6
11239 else
11240 case $MAGIC_CMD in
11241 [\\/*] | ?:[\\/]*)
11242 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11245 lt_save_MAGIC_CMD="$MAGIC_CMD"
11246 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11247 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11248 for ac_dir in $ac_dummy; do
11249 IFS="$lt_save_ifs"
11250 test -z "$ac_dir" && ac_dir=.
11251 if test -f $ac_dir/${ac_tool_prefix}file; then
11252 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11253 if test -n "$file_magic_test_file"; then
11254 case $deplibs_check_method in
11255 "file_magic "*)
11256 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11257 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11258 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11259 $EGREP "$file_magic_regex" > /dev/null; then
11261 else
11262 cat <<_LT_EOF 1>&2
11264 *** Warning: the command libtool uses to detect shared libraries,
11265 *** $file_magic_cmd, produces output that libtool cannot recognize.
11266 *** The result is that libtool may fail to recognize shared libraries
11267 *** as such. This will affect the creation of libtool libraries that
11268 *** depend on shared libraries, but programs linked with such libtool
11269 *** libraries will work regardless of this problem. Nevertheless, you
11270 *** may want to report the problem to your system manager and/or to
11271 *** bug-libtool@gnu.org
11273 _LT_EOF
11274 fi ;;
11275 esac
11277 break
11279 done
11280 IFS="$lt_save_ifs"
11281 MAGIC_CMD="$lt_save_MAGIC_CMD"
11283 esac
11286 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11287 if test -n "$MAGIC_CMD"; then
11288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11289 $as_echo "$MAGIC_CMD" >&6; }
11290 else
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11292 $as_echo "no" >&6; }
11299 if test -z "$lt_cv_path_MAGIC_CMD"; then
11300 if test -n "$ac_tool_prefix"; then
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11302 $as_echo_n "checking for file... " >&6; }
11303 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11304 $as_echo_n "(cached) " >&6
11305 else
11306 case $MAGIC_CMD in
11307 [\\/*] | ?:[\\/]*)
11308 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11311 lt_save_MAGIC_CMD="$MAGIC_CMD"
11312 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11313 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11314 for ac_dir in $ac_dummy; do
11315 IFS="$lt_save_ifs"
11316 test -z "$ac_dir" && ac_dir=.
11317 if test -f $ac_dir/file; then
11318 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11319 if test -n "$file_magic_test_file"; then
11320 case $deplibs_check_method in
11321 "file_magic "*)
11322 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11323 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11324 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11325 $EGREP "$file_magic_regex" > /dev/null; then
11327 else
11328 cat <<_LT_EOF 1>&2
11330 *** Warning: the command libtool uses to detect shared libraries,
11331 *** $file_magic_cmd, produces output that libtool cannot recognize.
11332 *** The result is that libtool may fail to recognize shared libraries
11333 *** as such. This will affect the creation of libtool libraries that
11334 *** depend on shared libraries, but programs linked with such libtool
11335 *** libraries will work regardless of this problem. Nevertheless, you
11336 *** may want to report the problem to your system manager and/or to
11337 *** bug-libtool@gnu.org
11339 _LT_EOF
11340 fi ;;
11341 esac
11343 break
11345 done
11346 IFS="$lt_save_ifs"
11347 MAGIC_CMD="$lt_save_MAGIC_CMD"
11349 esac
11352 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11353 if test -n "$MAGIC_CMD"; then
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11355 $as_echo "$MAGIC_CMD" >&6; }
11356 else
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11358 $as_echo "no" >&6; }
11362 else
11363 MAGIC_CMD=:
11369 esac
11371 # Use C for the default configuration in the libtool script
11373 lt_save_CC="$CC"
11374 ac_ext=c
11375 ac_cpp='$CPP $CPPFLAGS'
11376 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11377 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11378 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11381 # Source file extension for C test sources.
11382 ac_ext=c
11384 # Object file extension for compiled C test sources.
11385 objext=o
11386 objext=$objext
11388 # Code to be used in simple compile tests
11389 lt_simple_compile_test_code="int some_variable = 0;"
11391 # Code to be used in simple link tests
11392 lt_simple_link_test_code='int main(){return(0);}'
11400 # If no C compiler was specified, use CC.
11401 LTCC=${LTCC-"$CC"}
11403 # If no C compiler flags were specified, use CFLAGS.
11404 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11406 # Allow CC to be a program name with arguments.
11407 compiler=$CC
11409 # Save the default compiler, since it gets overwritten when the other
11410 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11411 compiler_DEFAULT=$CC
11413 # save warnings/boilerplate of simple test code
11414 ac_outfile=conftest.$ac_objext
11415 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11416 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11417 _lt_compiler_boilerplate=`cat conftest.err`
11418 $RM conftest*
11420 ac_outfile=conftest.$ac_objext
11421 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11422 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11423 _lt_linker_boilerplate=`cat conftest.err`
11424 $RM -r conftest*
11427 ## CAVEAT EMPTOR:
11428 ## There is no encapsulation within the following macros, do not change
11429 ## the running order or otherwise move them around unless you know exactly
11430 ## what you are doing...
11431 if test -n "$compiler"; then
11433 lt_prog_compiler_no_builtin_flag=
11435 if test "$GCC" = yes; then
11436 case $cc_basename in
11437 nvcc*)
11438 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11440 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11441 esac
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11444 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11445 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11446 $as_echo_n "(cached) " >&6
11447 else
11448 lt_cv_prog_compiler_rtti_exceptions=no
11449 ac_outfile=conftest.$ac_objext
11450 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11451 lt_compiler_flag="-fno-rtti -fno-exceptions"
11452 # Insert the option either (1) after the last *FLAGS variable, or
11453 # (2) before a word containing "conftest.", or (3) at the end.
11454 # Note that $ac_compile itself does not contain backslashes and begins
11455 # with a dollar sign (not a hyphen), so the echo should work correctly.
11456 # The option is referenced via a variable to avoid confusing sed.
11457 lt_compile=`echo "$ac_compile" | $SED \
11458 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11459 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11460 -e 's:$: $lt_compiler_flag:'`
11461 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11462 (eval "$lt_compile" 2>conftest.err)
11463 ac_status=$?
11464 cat conftest.err >&5
11465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11466 if (exit $ac_status) && test -s "$ac_outfile"; then
11467 # The compiler can only warn and ignore the option if not recognized
11468 # So say no if there are warnings other than the usual output.
11469 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11470 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11471 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11472 lt_cv_prog_compiler_rtti_exceptions=yes
11475 $RM conftest*
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11479 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11481 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11482 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11483 else
11494 lt_prog_compiler_wl=
11495 lt_prog_compiler_pic=
11496 lt_prog_compiler_static=
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11499 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11501 if test "$GCC" = yes; then
11502 lt_prog_compiler_wl='-Wl,'
11503 lt_prog_compiler_static='-static'
11505 case $host_os in
11506 aix*)
11507 # All AIX code is PIC.
11508 if test "$host_cpu" = ia64; then
11509 # AIX 5 now supports IA64 processor
11510 lt_prog_compiler_static='-Bstatic'
11512 lt_prog_compiler_pic='-fPIC'
11515 amigaos*)
11516 case $host_cpu in
11517 powerpc)
11518 # see comment about AmigaOS4 .so support
11519 lt_prog_compiler_pic='-fPIC'
11521 m68k)
11522 # FIXME: we need at least 68020 code to build shared libraries, but
11523 # adding the `-m68020' flag to GCC prevents building anything better,
11524 # like `-m68040'.
11525 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11527 esac
11530 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11531 # PIC is the default for these OSes.
11534 mingw* | cygwin* | pw32* | os2* | cegcc*)
11535 # This hack is so that the source file can tell whether it is being
11536 # built for inclusion in a dll (and should export symbols for example).
11537 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11538 # (--disable-auto-import) libraries
11539 lt_prog_compiler_pic='-DDLL_EXPORT'
11542 darwin* | rhapsody*)
11543 # PIC is the default on this platform
11544 # Common symbols not allowed in MH_DYLIB files
11545 lt_prog_compiler_pic='-fno-common'
11548 haiku*)
11549 # PIC is the default for Haiku.
11550 # The "-static" flag exists, but is broken.
11551 lt_prog_compiler_static=
11554 hpux*)
11555 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11556 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11557 # sets the default TLS model and affects inlining.
11558 case $host_cpu in
11559 hppa*64*)
11560 # +Z the default
11563 lt_prog_compiler_pic='-fPIC'
11565 esac
11568 interix[3-9]*)
11569 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11570 # Instead, we relocate shared libraries at runtime.
11573 msdosdjgpp*)
11574 # Just because we use GCC doesn't mean we suddenly get shared libraries
11575 # on systems that don't support them.
11576 lt_prog_compiler_can_build_shared=no
11577 enable_shared=no
11580 *nto* | *qnx*)
11581 # QNX uses GNU C++, but need to define -shared option too, otherwise
11582 # it will coredump.
11583 lt_prog_compiler_pic='-fPIC -shared'
11586 sysv4*MP*)
11587 if test -d /usr/nec; then
11588 lt_prog_compiler_pic=-Kconform_pic
11593 lt_prog_compiler_pic='-fPIC'
11595 esac
11597 case $cc_basename in
11598 nvcc*) # Cuda Compiler Driver 2.2
11599 lt_prog_compiler_wl='-Xlinker '
11600 lt_prog_compiler_pic='-Xcompiler -fPIC'
11602 esac
11603 else
11604 # PORTME Check for flag to pass linker flags through the system compiler.
11605 case $host_os in
11606 aix*)
11607 lt_prog_compiler_wl='-Wl,'
11608 if test "$host_cpu" = ia64; then
11609 # AIX 5 now supports IA64 processor
11610 lt_prog_compiler_static='-Bstatic'
11611 else
11612 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11616 mingw* | cygwin* | pw32* | os2* | cegcc*)
11617 # This hack is so that the source file can tell whether it is being
11618 # built for inclusion in a dll (and should export symbols for example).
11619 lt_prog_compiler_pic='-DDLL_EXPORT'
11622 hpux9* | hpux10* | hpux11*)
11623 lt_prog_compiler_wl='-Wl,'
11624 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11625 # not for PA HP-UX.
11626 case $host_cpu in
11627 hppa*64*|ia64*)
11628 # +Z the default
11631 lt_prog_compiler_pic='+Z'
11633 esac
11634 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11635 lt_prog_compiler_static='${wl}-a ${wl}archive'
11638 irix5* | irix6* | nonstopux*)
11639 lt_prog_compiler_wl='-Wl,'
11640 # PIC (with -KPIC) is the default.
11641 lt_prog_compiler_static='-non_shared'
11644 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11645 case $cc_basename in
11646 # old Intel for x86_64 which still supported -KPIC.
11647 ecc*)
11648 lt_prog_compiler_wl='-Wl,'
11649 lt_prog_compiler_pic='-KPIC'
11650 lt_prog_compiler_static='-static'
11652 # icc used to be incompatible with GCC.
11653 # ICC 10 doesn't accept -KPIC any more.
11654 icc* | ifort*)
11655 lt_prog_compiler_wl='-Wl,'
11656 lt_prog_compiler_pic='-fPIC'
11657 lt_prog_compiler_static='-static'
11659 # Lahey Fortran 8.1.
11660 lf95*)
11661 lt_prog_compiler_wl='-Wl,'
11662 lt_prog_compiler_pic='--shared'
11663 lt_prog_compiler_static='--static'
11665 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11666 # Portland Group compilers (*not* the Pentium gcc compiler,
11667 # which looks to be a dead project)
11668 lt_prog_compiler_wl='-Wl,'
11669 lt_prog_compiler_pic='-fpic'
11670 lt_prog_compiler_static='-Bstatic'
11672 ccc*)
11673 lt_prog_compiler_wl='-Wl,'
11674 # All Alpha code is PIC.
11675 lt_prog_compiler_static='-non_shared'
11677 xl* | bgxl* | bgf* | mpixl*)
11678 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11679 lt_prog_compiler_wl='-Wl,'
11680 lt_prog_compiler_pic='-qpic'
11681 lt_prog_compiler_static='-qstaticlink'
11684 case `$CC -V 2>&1 | sed 5q` in
11685 *Sun\ F* | *Sun*Fortran*)
11686 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11687 lt_prog_compiler_pic='-KPIC'
11688 lt_prog_compiler_static='-Bstatic'
11689 lt_prog_compiler_wl=''
11691 *Sun\ C*)
11692 # Sun C 5.9
11693 lt_prog_compiler_pic='-KPIC'
11694 lt_prog_compiler_static='-Bstatic'
11695 lt_prog_compiler_wl='-Wl,'
11697 esac
11699 esac
11702 newsos6)
11703 lt_prog_compiler_pic='-KPIC'
11704 lt_prog_compiler_static='-Bstatic'
11707 *nto* | *qnx*)
11708 # QNX uses GNU C++, but need to define -shared option too, otherwise
11709 # it will coredump.
11710 lt_prog_compiler_pic='-fPIC -shared'
11713 osf3* | osf4* | osf5*)
11714 lt_prog_compiler_wl='-Wl,'
11715 # All OSF/1 code is PIC.
11716 lt_prog_compiler_static='-non_shared'
11719 rdos*)
11720 lt_prog_compiler_static='-non_shared'
11723 solaris*)
11724 lt_prog_compiler_pic='-KPIC'
11725 lt_prog_compiler_static='-Bstatic'
11726 case $cc_basename in
11727 f77* | f90* | f95*)
11728 lt_prog_compiler_wl='-Qoption ld ';;
11730 lt_prog_compiler_wl='-Wl,';;
11731 esac
11734 sunos4*)
11735 lt_prog_compiler_wl='-Qoption ld '
11736 lt_prog_compiler_pic='-PIC'
11737 lt_prog_compiler_static='-Bstatic'
11740 sysv4 | sysv4.2uw2* | sysv4.3*)
11741 lt_prog_compiler_wl='-Wl,'
11742 lt_prog_compiler_pic='-KPIC'
11743 lt_prog_compiler_static='-Bstatic'
11746 sysv4*MP*)
11747 if test -d /usr/nec ;then
11748 lt_prog_compiler_pic='-Kconform_pic'
11749 lt_prog_compiler_static='-Bstatic'
11753 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11754 lt_prog_compiler_wl='-Wl,'
11755 lt_prog_compiler_pic='-KPIC'
11756 lt_prog_compiler_static='-Bstatic'
11759 unicos*)
11760 lt_prog_compiler_wl='-Wl,'
11761 lt_prog_compiler_can_build_shared=no
11764 uts4*)
11765 lt_prog_compiler_pic='-pic'
11766 lt_prog_compiler_static='-Bstatic'
11770 lt_prog_compiler_can_build_shared=no
11772 esac
11775 case $host_os in
11776 # For platforms which do not support PIC, -DPIC is meaningless:
11777 *djgpp*)
11778 lt_prog_compiler_pic=
11781 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11783 esac
11784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
11785 $as_echo "$lt_prog_compiler_pic" >&6; }
11793 # Check to make sure the PIC flag actually works.
11795 if test -n "$lt_prog_compiler_pic"; then
11796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11797 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11798 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11799 $as_echo_n "(cached) " >&6
11800 else
11801 lt_cv_prog_compiler_pic_works=no
11802 ac_outfile=conftest.$ac_objext
11803 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11804 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11805 # Insert the option either (1) after the last *FLAGS variable, or
11806 # (2) before a word containing "conftest.", or (3) at the end.
11807 # Note that $ac_compile itself does not contain backslashes and begins
11808 # with a dollar sign (not a hyphen), so the echo should work correctly.
11809 # The option is referenced via a variable to avoid confusing sed.
11810 lt_compile=`echo "$ac_compile" | $SED \
11811 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11812 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11813 -e 's:$: $lt_compiler_flag:'`
11814 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11815 (eval "$lt_compile" 2>conftest.err)
11816 ac_status=$?
11817 cat conftest.err >&5
11818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11819 if (exit $ac_status) && test -s "$ac_outfile"; then
11820 # The compiler can only warn and ignore the option if not recognized
11821 # So say no if there are warnings other than the usual output.
11822 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11823 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11824 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11825 lt_cv_prog_compiler_pic_works=yes
11828 $RM conftest*
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11832 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11834 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11835 case $lt_prog_compiler_pic in
11836 "" | " "*) ;;
11837 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11838 esac
11839 else
11840 lt_prog_compiler_pic=
11841 lt_prog_compiler_can_build_shared=no
11852 # Check to make sure the static flag actually works.
11854 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11856 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11857 if ${lt_cv_prog_compiler_static_works+:} false; then :
11858 $as_echo_n "(cached) " >&6
11859 else
11860 lt_cv_prog_compiler_static_works=no
11861 save_LDFLAGS="$LDFLAGS"
11862 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11863 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11864 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11865 # The linker can only warn and ignore the option if not recognized
11866 # So say no if there are warnings
11867 if test -s conftest.err; then
11868 # Append any errors to the config.log.
11869 cat conftest.err 1>&5
11870 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11871 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11872 if diff conftest.exp conftest.er2 >/dev/null; then
11873 lt_cv_prog_compiler_static_works=yes
11875 else
11876 lt_cv_prog_compiler_static_works=yes
11879 $RM -r conftest*
11880 LDFLAGS="$save_LDFLAGS"
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11884 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11886 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11888 else
11889 lt_prog_compiler_static=
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11899 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11900 if ${lt_cv_prog_compiler_c_o+:} false; then :
11901 $as_echo_n "(cached) " >&6
11902 else
11903 lt_cv_prog_compiler_c_o=no
11904 $RM -r conftest 2>/dev/null
11905 mkdir conftest
11906 cd conftest
11907 mkdir out
11908 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11910 lt_compiler_flag="-o out/conftest2.$ac_objext"
11911 # Insert the option either (1) after the last *FLAGS variable, or
11912 # (2) before a word containing "conftest.", or (3) at the end.
11913 # Note that $ac_compile itself does not contain backslashes and begins
11914 # with a dollar sign (not a hyphen), so the echo should work correctly.
11915 lt_compile=`echo "$ac_compile" | $SED \
11916 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11917 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11918 -e 's:$: $lt_compiler_flag:'`
11919 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11920 (eval "$lt_compile" 2>out/conftest.err)
11921 ac_status=$?
11922 cat out/conftest.err >&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11925 then
11926 # The compiler can only warn and ignore the option if not recognized
11927 # So say no if there are warnings
11928 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11929 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11930 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11931 lt_cv_prog_compiler_c_o=yes
11934 chmod u+w . 2>&5
11935 $RM conftest*
11936 # SGI C++ compiler will create directory out/ii_files/ for
11937 # template instantiation
11938 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11939 $RM out/* && rmdir out
11940 cd ..
11941 $RM -r conftest
11942 $RM conftest*
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11946 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11954 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11955 if ${lt_cv_prog_compiler_c_o+:} false; then :
11956 $as_echo_n "(cached) " >&6
11957 else
11958 lt_cv_prog_compiler_c_o=no
11959 $RM -r conftest 2>/dev/null
11960 mkdir conftest
11961 cd conftest
11962 mkdir out
11963 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11965 lt_compiler_flag="-o out/conftest2.$ac_objext"
11966 # Insert the option either (1) after the last *FLAGS variable, or
11967 # (2) before a word containing "conftest.", or (3) at the end.
11968 # Note that $ac_compile itself does not contain backslashes and begins
11969 # with a dollar sign (not a hyphen), so the echo should work correctly.
11970 lt_compile=`echo "$ac_compile" | $SED \
11971 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11972 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11973 -e 's:$: $lt_compiler_flag:'`
11974 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11975 (eval "$lt_compile" 2>out/conftest.err)
11976 ac_status=$?
11977 cat out/conftest.err >&5
11978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11979 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11980 then
11981 # The compiler can only warn and ignore the option if not recognized
11982 # So say no if there are warnings
11983 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11984 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11985 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11986 lt_cv_prog_compiler_c_o=yes
11989 chmod u+w . 2>&5
11990 $RM conftest*
11991 # SGI C++ compiler will create directory out/ii_files/ for
11992 # template instantiation
11993 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11994 $RM out/* && rmdir out
11995 cd ..
11996 $RM -r conftest
11997 $RM conftest*
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12001 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12006 hard_links="nottested"
12007 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12008 # do not overwrite the value of need_locks provided by the user
12009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12010 $as_echo_n "checking if we can lock with hard links... " >&6; }
12011 hard_links=yes
12012 $RM conftest*
12013 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12014 touch conftest.a
12015 ln conftest.a conftest.b 2>&5 || hard_links=no
12016 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12018 $as_echo "$hard_links" >&6; }
12019 if test "$hard_links" = no; then
12020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12021 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12022 need_locks=warn
12024 else
12025 need_locks=no
12033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12034 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12036 runpath_var=
12037 allow_undefined_flag=
12038 always_export_symbols=no
12039 archive_cmds=
12040 archive_expsym_cmds=
12041 compiler_needs_object=no
12042 enable_shared_with_static_runtimes=no
12043 export_dynamic_flag_spec=
12044 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12045 hardcode_automatic=no
12046 hardcode_direct=no
12047 hardcode_direct_absolute=no
12048 hardcode_libdir_flag_spec=
12049 hardcode_libdir_flag_spec_ld=
12050 hardcode_libdir_separator=
12051 hardcode_minus_L=no
12052 hardcode_shlibpath_var=unsupported
12053 inherit_rpath=no
12054 link_all_deplibs=unknown
12055 module_cmds=
12056 module_expsym_cmds=
12057 old_archive_from_new_cmds=
12058 old_archive_from_expsyms_cmds=
12059 thread_safe_flag_spec=
12060 whole_archive_flag_spec=
12061 # include_expsyms should be a list of space-separated symbols to be *always*
12062 # included in the symbol list
12063 include_expsyms=
12064 # exclude_expsyms can be an extended regexp of symbols to exclude
12065 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12066 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12067 # as well as any symbol that contains `d'.
12068 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12069 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12070 # platforms (ab)use it in PIC code, but their linkers get confused if
12071 # the symbol is explicitly referenced. Since portable code cannot
12072 # rely on this symbol name, it's probably fine to never include it in
12073 # preloaded symbol tables.
12074 # Exclude shared library initialization/finalization symbols.
12075 extract_expsyms_cmds=
12077 case $host_os in
12078 cygwin* | mingw* | pw32* | cegcc*)
12079 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12080 # When not using gcc, we currently assume that we are using
12081 # Microsoft Visual C++.
12082 if test "$GCC" != yes; then
12083 with_gnu_ld=no
12086 interix*)
12087 # we just hope/assume this is gcc and not c89 (= MSVC++)
12088 with_gnu_ld=yes
12090 openbsd*)
12091 with_gnu_ld=no
12093 esac
12095 ld_shlibs=yes
12097 # On some targets, GNU ld is compatible enough with the native linker
12098 # that we're better off using the native interface for both.
12099 lt_use_gnu_ld_interface=no
12100 if test "$with_gnu_ld" = yes; then
12101 case $host_os in
12102 aix*)
12103 # The AIX port of GNU ld has always aspired to compatibility
12104 # with the native linker. However, as the warning in the GNU ld
12105 # block says, versions before 2.19.5* couldn't really create working
12106 # shared libraries, regardless of the interface used.
12107 case `$LD -v 2>&1` in
12108 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12109 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12110 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12112 lt_use_gnu_ld_interface=yes
12114 esac
12117 lt_use_gnu_ld_interface=yes
12119 esac
12122 if test "$lt_use_gnu_ld_interface" = yes; then
12123 # If archive_cmds runs LD, not CC, wlarc should be empty
12124 wlarc='${wl}'
12126 # Set some defaults for GNU ld with shared library support. These
12127 # are reset later if shared libraries are not supported. Putting them
12128 # here allows them to be overridden if necessary.
12129 runpath_var=LD_RUN_PATH
12130 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12131 export_dynamic_flag_spec='${wl}--export-dynamic'
12132 # ancient GNU ld didn't support --whole-archive et. al.
12133 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12134 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12135 else
12136 whole_archive_flag_spec=
12138 supports_anon_versioning=no
12139 case `$LD -v 2>&1` in
12140 *GNU\ gold*) supports_anon_versioning=yes ;;
12141 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12142 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12143 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12144 *\ 2.11.*) ;; # other 2.11 versions
12145 *) supports_anon_versioning=yes ;;
12146 esac
12148 # See if GNU ld supports shared libraries.
12149 case $host_os in
12150 aix[3-9]*)
12151 # On AIX/PPC, the GNU linker is very broken
12152 if test "$host_cpu" != ia64; then
12153 ld_shlibs=no
12154 cat <<_LT_EOF 1>&2
12156 *** Warning: the GNU linker, at least up to release 2.19, is reported
12157 *** to be unable to reliably create shared libraries on AIX.
12158 *** Therefore, libtool is disabling shared libraries support. If you
12159 *** really care for shared libraries, you may want to install binutils
12160 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12161 *** You will then need to restart the configuration process.
12163 _LT_EOF
12167 amigaos*)
12168 case $host_cpu in
12169 powerpc)
12170 # see comment about AmigaOS4 .so support
12171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12172 archive_expsym_cmds=''
12174 m68k)
12175 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)'
12176 hardcode_libdir_flag_spec='-L$libdir'
12177 hardcode_minus_L=yes
12179 esac
12182 beos*)
12183 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12184 allow_undefined_flag=unsupported
12185 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12186 # support --undefined. This deserves some investigation. FIXME
12187 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12188 else
12189 ld_shlibs=no
12193 cygwin* | mingw* | pw32* | cegcc*)
12194 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12195 # as there is no search path for DLLs.
12196 hardcode_libdir_flag_spec='-L$libdir'
12197 export_dynamic_flag_spec='${wl}--export-all-symbols'
12198 allow_undefined_flag=unsupported
12199 always_export_symbols=no
12200 enable_shared_with_static_runtimes=yes
12201 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12203 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12205 # If the export-symbols file already is a .def file (1st line
12206 # is EXPORTS), use it as is; otherwise, prepend...
12207 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12208 cp $export_symbols $output_objdir/$soname.def;
12209 else
12210 echo EXPORTS > $output_objdir/$soname.def;
12211 cat $export_symbols >> $output_objdir/$soname.def;
12213 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12214 else
12215 ld_shlibs=no
12219 haiku*)
12220 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12221 link_all_deplibs=yes
12224 interix[3-9]*)
12225 hardcode_direct=no
12226 hardcode_shlibpath_var=no
12227 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12228 export_dynamic_flag_spec='${wl}-E'
12229 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12230 # Instead, shared libraries are loaded at an image base (0x10000000 by
12231 # default) and relocated if they conflict, which is a slow very memory
12232 # consuming and fragmenting process. To avoid this, we pick a random,
12233 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12234 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12235 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12236 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12239 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
12240 tmp_diet=no
12241 if test "$host_os" = linux-dietlibc; then
12242 case $cc_basename in
12243 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12244 esac
12246 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12247 && test "$tmp_diet" = no
12248 then
12249 tmp_addflag=' $pic_flag'
12250 tmp_sharedflag='-shared'
12251 case $cc_basename,$host_cpu in
12252 pgcc*) # Portland Group C compiler
12253 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12254 tmp_addflag=' $pic_flag'
12256 pgf77* | pgf90* | pgf95* | pgfortran*)
12257 # Portland Group f77 and f90 compilers
12258 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12259 tmp_addflag=' $pic_flag -Mnomain' ;;
12260 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12261 tmp_addflag=' -i_dynamic' ;;
12262 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12263 tmp_addflag=' -i_dynamic -nofor_main' ;;
12264 ifc* | ifort*) # Intel Fortran compiler
12265 tmp_addflag=' -nofor_main' ;;
12266 lf95*) # Lahey Fortran 8.1
12267 whole_archive_flag_spec=
12268 tmp_sharedflag='--shared' ;;
12269 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12270 tmp_sharedflag='-qmkshrobj'
12271 tmp_addflag= ;;
12272 nvcc*) # Cuda Compiler Driver 2.2
12273 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12274 compiler_needs_object=yes
12276 esac
12277 case `$CC -V 2>&1 | sed 5q` in
12278 *Sun\ C*) # Sun C 5.9
12279 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
12280 compiler_needs_object=yes
12281 tmp_sharedflag='-G' ;;
12282 *Sun\ F*) # Sun Fortran 8.3
12283 tmp_sharedflag='-G' ;;
12284 esac
12285 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12287 if test "x$supports_anon_versioning" = xyes; then
12288 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12289 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12290 echo "local: *; };" >> $output_objdir/$libname.ver~
12291 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12294 case $cc_basename in
12295 xlf* | bgf* | bgxlf* | mpixlf*)
12296 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12297 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12298 hardcode_libdir_flag_spec=
12299 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12300 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12301 if test "x$supports_anon_versioning" = xyes; then
12302 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12303 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12304 echo "local: *; };" >> $output_objdir/$libname.ver~
12305 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12308 esac
12309 else
12310 ld_shlibs=no
12314 netbsd*)
12315 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12316 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12317 wlarc=
12318 else
12319 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12320 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12324 solaris*)
12325 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12326 ld_shlibs=no
12327 cat <<_LT_EOF 1>&2
12329 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12330 *** create shared libraries on Solaris systems. Therefore, libtool
12331 *** is disabling shared libraries support. We urge you to upgrade GNU
12332 *** binutils to release 2.9.1 or newer. Another option is to modify
12333 *** your PATH or compiler configuration so that the native linker is
12334 *** used, and then restart.
12336 _LT_EOF
12337 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12338 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12339 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12340 else
12341 ld_shlibs=no
12345 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12346 case `$LD -v 2>&1` in
12347 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12348 ld_shlibs=no
12349 cat <<_LT_EOF 1>&2
12351 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12352 *** reliably create shared libraries on SCO systems. Therefore, libtool
12353 *** is disabling shared libraries support. We urge you to upgrade GNU
12354 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12355 *** your PATH or compiler configuration so that the native linker is
12356 *** used, and then restart.
12358 _LT_EOF
12361 # For security reasons, it is highly recommended that you always
12362 # use absolute paths for naming shared libraries, and exclude the
12363 # DT_RUNPATH tag from executables and libraries. But doing so
12364 # requires that you compile everything twice, which is a pain.
12365 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12366 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12367 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12368 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12369 else
12370 ld_shlibs=no
12373 esac
12376 sunos4*)
12377 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12378 wlarc=
12379 hardcode_direct=yes
12380 hardcode_shlibpath_var=no
12384 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12385 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12386 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12387 else
12388 ld_shlibs=no
12391 esac
12393 if test "$ld_shlibs" = no; then
12394 runpath_var=
12395 hardcode_libdir_flag_spec=
12396 export_dynamic_flag_spec=
12397 whole_archive_flag_spec=
12399 else
12400 # PORTME fill in a description of your system's linker (not GNU ld)
12401 case $host_os in
12402 aix3*)
12403 allow_undefined_flag=unsupported
12404 always_export_symbols=yes
12405 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'
12406 # Note: this linker hardcodes the directories in LIBPATH if there
12407 # are no directories specified by -L.
12408 hardcode_minus_L=yes
12409 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12410 # Neither direct hardcoding nor static linking is supported with a
12411 # broken collect2.
12412 hardcode_direct=unsupported
12416 aix[4-9]*)
12417 if test "$host_cpu" = ia64; then
12418 # On IA64, the linker does run time linking by default, so we don't
12419 # have to do anything special.
12420 aix_use_runtimelinking=no
12421 exp_sym_flag='-Bexport'
12422 no_entry_flag=""
12423 else
12424 # If we're using GNU nm, then we don't want the "-C" option.
12425 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12426 # Also, AIX nm treats weak defined symbols like other global
12427 # defined symbols, whereas GNU nm marks them as "W".
12428 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12429 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12430 else
12431 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12433 aix_use_runtimelinking=no
12435 # Test if we are trying to use run time linking or normal
12436 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12437 # need to do runtime linking.
12438 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12439 for ld_flag in $LDFLAGS; do
12440 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12441 aix_use_runtimelinking=yes
12442 break
12444 done
12446 esac
12448 exp_sym_flag='-bexport'
12449 no_entry_flag='-bnoentry'
12452 # When large executables or shared objects are built, AIX ld can
12453 # have problems creating the table of contents. If linking a library
12454 # or program results in "error TOC overflow" add -mminimal-toc to
12455 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12456 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12458 archive_cmds=''
12459 hardcode_direct=yes
12460 hardcode_direct_absolute=yes
12461 hardcode_libdir_separator=':'
12462 link_all_deplibs=yes
12463 file_list_spec='${wl}-f,'
12465 if test "$GCC" = yes; then
12466 case $host_os in aix4.[012]|aix4.[012].*)
12467 # We only want to do this on AIX 4.2 and lower, the check
12468 # below for broken collect2 doesn't work under 4.3+
12469 collect2name=`${CC} -print-prog-name=collect2`
12470 if test -f "$collect2name" &&
12471 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12472 then
12473 # We have reworked collect2
12475 else
12476 # We have old collect2
12477 hardcode_direct=unsupported
12478 # It fails to find uninstalled libraries when the uninstalled
12479 # path is not listed in the libpath. Setting hardcode_minus_L
12480 # to unsupported forces relinking
12481 hardcode_minus_L=yes
12482 hardcode_libdir_flag_spec='-L$libdir'
12483 hardcode_libdir_separator=
12486 esac
12487 shared_flag='-shared'
12488 if test "$aix_use_runtimelinking" = yes; then
12489 shared_flag="$shared_flag "'${wl}-G'
12491 else
12492 # not using gcc
12493 if test "$host_cpu" = ia64; then
12494 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12495 # chokes on -Wl,-G. The following line is correct:
12496 shared_flag='-G'
12497 else
12498 if test "$aix_use_runtimelinking" = yes; then
12499 shared_flag='${wl}-G'
12500 else
12501 shared_flag='${wl}-bM:SRE'
12506 export_dynamic_flag_spec='${wl}-bexpall'
12507 # It seems that -bexpall does not export symbols beginning with
12508 # underscore (_), so it is better to generate a list of symbols to export.
12509 always_export_symbols=yes
12510 if test "$aix_use_runtimelinking" = yes; then
12511 # Warning - without using the other runtime loading flags (-brtl),
12512 # -berok will link without error, but may produce a broken library.
12513 allow_undefined_flag='-berok'
12514 # Determine the default libpath from the value encoded in an
12515 # empty executable.
12516 if test x$gcc_no_link = xyes; then
12517 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12520 /* end confdefs.h. */
12523 main ()
12527 return 0;
12529 _ACEOF
12530 if ac_fn_c_try_link "$LINENO"; then :
12532 lt_aix_libpath_sed='
12533 /Import File Strings/,/^$/ {
12534 /^0/ {
12535 s/^0 *\(.*\)$/\1/
12539 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12540 # Check for a 64-bit object if we didn't find anything.
12541 if test -z "$aix_libpath"; then
12542 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12545 rm -f core conftest.err conftest.$ac_objext \
12546 conftest$ac_exeext conftest.$ac_ext
12547 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12549 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12550 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12551 else
12552 if test "$host_cpu" = ia64; then
12553 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12554 allow_undefined_flag="-z nodefs"
12555 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
12556 else
12557 # Determine the default libpath from the value encoded in an
12558 # empty executable.
12559 if test x$gcc_no_link = xyes; then
12560 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12563 /* end confdefs.h. */
12566 main ()
12570 return 0;
12572 _ACEOF
12573 if ac_fn_c_try_link "$LINENO"; then :
12575 lt_aix_libpath_sed='
12576 /Import File Strings/,/^$/ {
12577 /^0/ {
12578 s/^0 *\(.*\)$/\1/
12582 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12583 # Check for a 64-bit object if we didn't find anything.
12584 if test -z "$aix_libpath"; then
12585 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12588 rm -f core conftest.err conftest.$ac_objext \
12589 conftest$ac_exeext conftest.$ac_ext
12590 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12592 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12593 # Warning - without using the other run time loading flags,
12594 # -berok will link without error, but may produce a broken library.
12595 no_undefined_flag=' ${wl}-bernotok'
12596 allow_undefined_flag=' ${wl}-berok'
12597 if test "$with_gnu_ld" = yes; then
12598 # We only use this code for GNU lds that support --whole-archive.
12599 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12600 else
12601 # Exported symbols can be pulled into shared objects from archives
12602 whole_archive_flag_spec='$convenience'
12604 archive_cmds_need_lc=yes
12605 # This is similar to how AIX traditionally builds its shared libraries.
12606 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12611 amigaos*)
12612 case $host_cpu in
12613 powerpc)
12614 # see comment about AmigaOS4 .so support
12615 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12616 archive_expsym_cmds=''
12618 m68k)
12619 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)'
12620 hardcode_libdir_flag_spec='-L$libdir'
12621 hardcode_minus_L=yes
12623 esac
12626 bsdi[45]*)
12627 export_dynamic_flag_spec=-rdynamic
12630 cygwin* | mingw* | pw32* | cegcc*)
12631 # When not using gcc, we currently assume that we are using
12632 # Microsoft Visual C++.
12633 # hardcode_libdir_flag_spec is actually meaningless, as there is
12634 # no search path for DLLs.
12635 hardcode_libdir_flag_spec=' '
12636 allow_undefined_flag=unsupported
12637 # Tell ltmain to make .lib files, not .a files.
12638 libext=lib
12639 # Tell ltmain to make .dll files, not .so files.
12640 shrext_cmds=".dll"
12641 # FIXME: Setting linknames here is a bad hack.
12642 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12643 # The linker will automatically build a .lib file if we build a DLL.
12644 old_archive_from_new_cmds='true'
12645 # FIXME: Should let the user specify the lib program.
12646 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12647 fix_srcfile_path='`cygpath -w "$srcfile"`'
12648 enable_shared_with_static_runtimes=yes
12651 darwin* | rhapsody*)
12655 # Publish an arg to allow the user to select that Darwin host (and target)
12656 # libraries should be given install-names like @rpath/libfoo.dylib. This
12657 # requires that the user of the library then adds an 'rpath' to the DSO that
12658 # needs access.
12659 # NOTE: there are defaults below, for systems that support rpaths. The person
12660 # configuring can override the defaults for any system version that supports
12661 # them - they are, however, forced off for system versions without support.
12662 # Check whether --enable-darwin-at-rpath was given.
12663 if test "${enable_darwin_at_rpath+set}" = set; then :
12664 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
12665 # This is not supported before macOS 10.5 / Darwin9.
12666 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
12667 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
12668 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
12669 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
12670 enable_darwin_at_rpath=no
12672 esac
12674 else
12675 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
12676 # As above, before 10.5 / Darwin9 this does not work.
12677 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
12678 enable_darwin_at_rpath=no
12681 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
12682 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
12683 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
12684 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
12685 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
12686 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
12687 enable_darwin_at_rpath=yes
12689 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
12690 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
12692 esac
12697 archive_cmds_need_lc=no
12698 hardcode_direct=no
12699 hardcode_automatic=yes
12700 hardcode_shlibpath_var=unsupported
12701 if test "$lt_cv_ld_force_load" = "yes"; then
12702 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
12703 else
12704 whole_archive_flag_spec=''
12706 link_all_deplibs=yes
12707 allow_undefined_flag="$_lt_dar_allow_undefined"
12708 case $cc_basename in
12709 ifort*) _lt_dar_can_shared=yes ;;
12710 *) _lt_dar_can_shared=$GCC ;;
12711 esac
12712 if test "$_lt_dar_can_shared" = "yes"; then
12713 output_verbose_link_cmd=func_echo_all
12714 _lt_install_name='\$rpath/\$soname'
12715 if test "x$enable_darwin_at_rpath" = "xyes"; then
12716 _lt_install_name='@rpath/\$soname'
12718 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
12719 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12720 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
12721 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
12723 else
12724 ld_shlibs=no
12729 dgux*)
12730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12731 hardcode_libdir_flag_spec='-L$libdir'
12732 hardcode_shlibpath_var=no
12735 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12736 # support. Future versions do this automatically, but an explicit c++rt0.o
12737 # does not break anything, and helps significantly (at the cost of a little
12738 # extra space).
12739 freebsd2.2*)
12740 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12741 hardcode_libdir_flag_spec='-R$libdir'
12742 hardcode_direct=yes
12743 hardcode_shlibpath_var=no
12746 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12747 freebsd2.*)
12748 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12749 hardcode_direct=yes
12750 hardcode_minus_L=yes
12751 hardcode_shlibpath_var=no
12754 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12755 freebsd* | dragonfly*)
12756 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12757 hardcode_libdir_flag_spec='-R$libdir'
12758 hardcode_direct=yes
12759 hardcode_shlibpath_var=no
12762 hpux9*)
12763 if test "$GCC" = yes; then
12764 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'
12765 else
12766 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'
12768 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12769 hardcode_libdir_separator=:
12770 hardcode_direct=yes
12772 # hardcode_minus_L: Not really in the search PATH,
12773 # but as the default location of the library.
12774 hardcode_minus_L=yes
12775 export_dynamic_flag_spec='${wl}-E'
12778 hpux10*)
12779 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12780 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12781 else
12782 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12784 if test "$with_gnu_ld" = no; then
12785 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12786 hardcode_libdir_flag_spec_ld='+b $libdir'
12787 hardcode_libdir_separator=:
12788 hardcode_direct=yes
12789 hardcode_direct_absolute=yes
12790 export_dynamic_flag_spec='${wl}-E'
12791 # hardcode_minus_L: Not really in the search PATH,
12792 # but as the default location of the library.
12793 hardcode_minus_L=yes
12797 hpux11*)
12798 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12799 case $host_cpu in
12800 hppa*64*)
12801 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12803 ia64*)
12804 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12807 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12809 esac
12810 else
12811 case $host_cpu in
12812 hppa*64*)
12813 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12815 ia64*)
12816 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12820 # Older versions of the 11.00 compiler do not understand -b yet
12821 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12823 $as_echo_n "checking if $CC understands -b... " >&6; }
12824 if ${lt_cv_prog_compiler__b+:} false; then :
12825 $as_echo_n "(cached) " >&6
12826 else
12827 lt_cv_prog_compiler__b=no
12828 save_LDFLAGS="$LDFLAGS"
12829 LDFLAGS="$LDFLAGS -b"
12830 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12831 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12832 # The linker can only warn and ignore the option if not recognized
12833 # So say no if there are warnings
12834 if test -s conftest.err; then
12835 # Append any errors to the config.log.
12836 cat conftest.err 1>&5
12837 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12838 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12839 if diff conftest.exp conftest.er2 >/dev/null; then
12840 lt_cv_prog_compiler__b=yes
12842 else
12843 lt_cv_prog_compiler__b=yes
12846 $RM -r conftest*
12847 LDFLAGS="$save_LDFLAGS"
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12851 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12853 if test x"$lt_cv_prog_compiler__b" = xyes; then
12854 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12855 else
12856 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12860 esac
12862 if test "$with_gnu_ld" = no; then
12863 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12864 hardcode_libdir_separator=:
12866 case $host_cpu in
12867 hppa*64*|ia64*)
12868 hardcode_direct=no
12869 hardcode_shlibpath_var=no
12872 hardcode_direct=yes
12873 hardcode_direct_absolute=yes
12874 export_dynamic_flag_spec='${wl}-E'
12876 # hardcode_minus_L: Not really in the search PATH,
12877 # but as the default location of the library.
12878 hardcode_minus_L=yes
12880 esac
12884 irix5* | irix6* | nonstopux*)
12885 if test "$GCC" = yes; then
12886 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12887 # Try to use the -exported_symbol ld option, if it does not
12888 # work, assume that -exports_file does not work either and
12889 # implicitly export all symbols.
12890 save_LDFLAGS="$LDFLAGS"
12891 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12892 if test x$gcc_no_link = xyes; then
12893 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12896 /* end confdefs.h. */
12897 int foo(void) {}
12898 _ACEOF
12899 if ac_fn_c_try_link "$LINENO"; then :
12900 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12903 rm -f core conftest.err conftest.$ac_objext \
12904 conftest$ac_exeext conftest.$ac_ext
12905 LDFLAGS="$save_LDFLAGS"
12906 else
12907 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12908 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12910 archive_cmds_need_lc='no'
12911 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12912 hardcode_libdir_separator=:
12913 inherit_rpath=yes
12914 link_all_deplibs=yes
12917 netbsd*)
12918 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12919 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12920 else
12921 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12923 hardcode_libdir_flag_spec='-R$libdir'
12924 hardcode_direct=yes
12925 hardcode_shlibpath_var=no
12928 newsos6)
12929 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12930 hardcode_direct=yes
12931 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12932 hardcode_libdir_separator=:
12933 hardcode_shlibpath_var=no
12936 *nto* | *qnx*)
12939 openbsd*)
12940 if test -f /usr/libexec/ld.so; then
12941 hardcode_direct=yes
12942 hardcode_shlibpath_var=no
12943 hardcode_direct_absolute=yes
12944 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12945 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12946 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12947 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12948 export_dynamic_flag_spec='${wl}-E'
12949 else
12950 case $host_os in
12951 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12952 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12953 hardcode_libdir_flag_spec='-R$libdir'
12956 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12957 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12959 esac
12961 else
12962 ld_shlibs=no
12966 os2*)
12967 hardcode_libdir_flag_spec='-L$libdir'
12968 hardcode_minus_L=yes
12969 allow_undefined_flag=unsupported
12970 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'
12971 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12974 osf3*)
12975 if test "$GCC" = yes; then
12976 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12977 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12978 else
12979 allow_undefined_flag=' -expect_unresolved \*'
12980 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12982 archive_cmds_need_lc='no'
12983 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12984 hardcode_libdir_separator=:
12987 osf4* | osf5*) # as osf3* with the addition of -msym flag
12988 if test "$GCC" = yes; then
12989 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12990 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12991 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12992 else
12993 allow_undefined_flag=' -expect_unresolved \*'
12994 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
12995 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
12996 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
12998 # Both c and cxx compiler support -rpath directly
12999 hardcode_libdir_flag_spec='-rpath $libdir'
13001 archive_cmds_need_lc='no'
13002 hardcode_libdir_separator=:
13005 solaris*)
13006 no_undefined_flag=' -z defs'
13007 if test "$GCC" = yes; then
13008 wlarc='${wl}'
13009 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13010 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13011 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13012 else
13013 case `$CC -V 2>&1` in
13014 *"Compilers 5.0"*)
13015 wlarc=''
13016 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13017 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13018 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13021 wlarc='${wl}'
13022 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13023 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13024 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13026 esac
13028 hardcode_libdir_flag_spec='-R$libdir'
13029 hardcode_shlibpath_var=no
13030 case $host_os in
13031 solaris2.[0-5] | solaris2.[0-5].*) ;;
13033 # The compiler driver will combine and reorder linker options,
13034 # but understands `-z linker_flag'. GCC discards it without `$wl',
13035 # but is careful enough not to reorder.
13036 # Supported since Solaris 2.6 (maybe 2.5.1?)
13037 if test "$GCC" = yes; then
13038 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13039 else
13040 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13043 esac
13044 link_all_deplibs=yes
13047 sunos4*)
13048 if test "x$host_vendor" = xsequent; then
13049 # Use $CC to link under sequent, because it throws in some extra .o
13050 # files that make .init and .fini sections work.
13051 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13052 else
13053 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13055 hardcode_libdir_flag_spec='-L$libdir'
13056 hardcode_direct=yes
13057 hardcode_minus_L=yes
13058 hardcode_shlibpath_var=no
13061 sysv4)
13062 case $host_vendor in
13063 sni)
13064 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13065 hardcode_direct=yes # is this really true???
13067 siemens)
13068 ## LD is ld it makes a PLAMLIB
13069 ## CC just makes a GrossModule.
13070 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13071 reload_cmds='$CC -r -o $output$reload_objs'
13072 hardcode_direct=no
13074 motorola)
13075 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13076 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13078 esac
13079 runpath_var='LD_RUN_PATH'
13080 hardcode_shlibpath_var=no
13083 sysv4.3*)
13084 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13085 hardcode_shlibpath_var=no
13086 export_dynamic_flag_spec='-Bexport'
13089 sysv4*MP*)
13090 if test -d /usr/nec; then
13091 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13092 hardcode_shlibpath_var=no
13093 runpath_var=LD_RUN_PATH
13094 hardcode_runpath_var=yes
13095 ld_shlibs=yes
13099 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13100 no_undefined_flag='${wl}-z,text'
13101 archive_cmds_need_lc=no
13102 hardcode_shlibpath_var=no
13103 runpath_var='LD_RUN_PATH'
13105 if test "$GCC" = yes; then
13106 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13107 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13108 else
13109 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13110 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13114 sysv5* | sco3.2v5* | sco5v6*)
13115 # Note: We can NOT use -z defs as we might desire, because we do not
13116 # link with -lc, and that would cause any symbols used from libc to
13117 # always be unresolved, which means just about no library would
13118 # ever link correctly. If we're not using GNU ld we use -z text
13119 # though, which does catch some bad symbols but isn't as heavy-handed
13120 # as -z defs.
13121 no_undefined_flag='${wl}-z,text'
13122 allow_undefined_flag='${wl}-z,nodefs'
13123 archive_cmds_need_lc=no
13124 hardcode_shlibpath_var=no
13125 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13126 hardcode_libdir_separator=':'
13127 link_all_deplibs=yes
13128 export_dynamic_flag_spec='${wl}-Bexport'
13129 runpath_var='LD_RUN_PATH'
13131 if test "$GCC" = yes; then
13132 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13133 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13134 else
13135 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13136 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13140 uts4*)
13141 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13142 hardcode_libdir_flag_spec='-L$libdir'
13143 hardcode_shlibpath_var=no
13147 ld_shlibs=no
13149 esac
13151 if test x$host_vendor = xsni; then
13152 case $host in
13153 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13154 export_dynamic_flag_spec='${wl}-Blargedynsym'
13156 esac
13160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13161 $as_echo "$ld_shlibs" >&6; }
13162 test "$ld_shlibs" = no && can_build_shared=no
13164 with_gnu_ld=$with_gnu_ld
13181 # Do we need to explicitly link libc?
13183 case "x$archive_cmds_need_lc" in
13184 x|xyes)
13185 # Assume -lc should be added
13186 archive_cmds_need_lc=yes
13188 if test "$enable_shared" = yes && test "$GCC" = yes; then
13189 case $archive_cmds in
13190 *'~'*)
13191 # FIXME: we may have to deal with multi-command sequences.
13193 '$CC '*)
13194 # Test whether the compiler implicitly links with -lc since on some
13195 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13196 # to ld, don't add -lc before -lgcc.
13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13198 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13199 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13200 $as_echo_n "(cached) " >&6
13201 else
13202 $RM conftest*
13203 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13205 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13206 (eval $ac_compile) 2>&5
13207 ac_status=$?
13208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13209 test $ac_status = 0; } 2>conftest.err; then
13210 soname=conftest
13211 lib=conftest
13212 libobjs=conftest.$ac_objext
13213 deplibs=
13214 wl=$lt_prog_compiler_wl
13215 pic_flag=$lt_prog_compiler_pic
13216 compiler_flags=-v
13217 linker_flags=-v
13218 verstring=
13219 output_objdir=.
13220 libname=conftest
13221 lt_save_allow_undefined_flag=$allow_undefined_flag
13222 allow_undefined_flag=
13223 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13224 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13225 ac_status=$?
13226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13227 test $ac_status = 0; }
13228 then
13229 lt_cv_archive_cmds_need_lc=no
13230 else
13231 lt_cv_archive_cmds_need_lc=yes
13233 allow_undefined_flag=$lt_save_allow_undefined_flag
13234 else
13235 cat conftest.err 1>&5
13237 $RM conftest*
13240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13241 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13242 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13244 esac
13247 esac
13405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13406 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13408 if test "$GCC" = yes; then
13409 case $host_os in
13410 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13411 *) lt_awk_arg="/^libraries:/" ;;
13412 esac
13413 case $host_os in
13414 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13415 *) lt_sed_strip_eq="s,=/,/,g" ;;
13416 esac
13417 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13418 case $lt_search_path_spec in
13419 *\;*)
13420 # if the path contains ";" then we assume it to be the separator
13421 # otherwise default to the standard path separator (i.e. ":") - it is
13422 # assumed that no part of a normal pathname contains ";" but that should
13423 # okay in the real world where ";" in dirpaths is itself problematic.
13424 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13427 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13429 esac
13430 # Ok, now we have the path, separated by spaces, we can step through it
13431 # and add multilib dir if necessary.
13432 lt_tmp_lt_search_path_spec=
13433 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13434 for lt_sys_path in $lt_search_path_spec; do
13435 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13436 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13437 else
13438 test -d "$lt_sys_path" && \
13439 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13441 done
13442 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13443 BEGIN {RS=" "; FS="/|\n";} {
13444 lt_foo="";
13445 lt_count=0;
13446 for (lt_i = NF; lt_i > 0; lt_i--) {
13447 if ($lt_i != "" && $lt_i != ".") {
13448 if ($lt_i == "..") {
13449 lt_count++;
13450 } else {
13451 if (lt_count == 0) {
13452 lt_foo="/" $lt_i lt_foo;
13453 } else {
13454 lt_count--;
13459 if (lt_foo != "") { lt_freq[lt_foo]++; }
13460 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13462 # AWK program above erroneously prepends '/' to C:/dos/paths
13463 # for these hosts.
13464 case $host_os in
13465 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13466 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13467 esac
13468 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13469 else
13470 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13472 library_names_spec=
13473 libname_spec='lib$name'
13474 soname_spec=
13475 shrext_cmds=".so"
13476 postinstall_cmds=
13477 postuninstall_cmds=
13478 finish_cmds=
13479 finish_eval=
13480 shlibpath_var=
13481 shlibpath_overrides_runpath=unknown
13482 version_type=none
13483 dynamic_linker="$host_os ld.so"
13484 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13485 need_lib_prefix=unknown
13486 hardcode_into_libs=no
13488 # when you set need_version to no, make sure it does not cause -set_version
13489 # flags to be left without arguments
13490 need_version=unknown
13492 case $host_os in
13493 aix3*)
13494 version_type=linux
13495 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13496 shlibpath_var=LIBPATH
13498 # AIX 3 has no versioning support, so we append a major version to the name.
13499 soname_spec='${libname}${release}${shared_ext}$major'
13502 aix[4-9]*)
13503 version_type=linux
13504 need_lib_prefix=no
13505 need_version=no
13506 hardcode_into_libs=yes
13507 if test "$host_cpu" = ia64; then
13508 # AIX 5 supports IA64
13509 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13510 shlibpath_var=LD_LIBRARY_PATH
13511 else
13512 # With GCC up to 2.95.x, collect2 would create an import file
13513 # for dependence libraries. The import file would start with
13514 # the line `#! .'. This would cause the generated library to
13515 # depend on `.', always an invalid library. This was fixed in
13516 # development snapshots of GCC prior to 3.0.
13517 case $host_os in
13518 aix4 | aix4.[01] | aix4.[01].*)
13519 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13520 echo ' yes '
13521 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13523 else
13524 can_build_shared=no
13527 esac
13528 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13529 # soname into executable. Probably we can add versioning support to
13530 # collect2, so additional links can be useful in future.
13531 if test "$aix_use_runtimelinking" = yes; then
13532 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13533 # instead of lib<name>.a to let people know that these are not
13534 # typical AIX shared libraries.
13535 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13536 else
13537 # We preserve .a as extension for shared libraries through AIX4.2
13538 # and later when we are not doing run time linking.
13539 library_names_spec='${libname}${release}.a $libname.a'
13540 soname_spec='${libname}${release}${shared_ext}$major'
13542 shlibpath_var=LIBPATH
13546 amigaos*)
13547 case $host_cpu in
13548 powerpc)
13549 # Since July 2007 AmigaOS4 officially supports .so libraries.
13550 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13551 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13553 m68k)
13554 library_names_spec='$libname.ixlibrary $libname.a'
13555 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13556 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
13558 esac
13561 beos*)
13562 library_names_spec='${libname}${shared_ext}'
13563 dynamic_linker="$host_os ld.so"
13564 shlibpath_var=LIBRARY_PATH
13567 bsdi[45]*)
13568 version_type=linux
13569 need_version=no
13570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13571 soname_spec='${libname}${release}${shared_ext}$major'
13572 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13573 shlibpath_var=LD_LIBRARY_PATH
13574 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13575 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13576 # the default ld.so.conf also contains /usr/contrib/lib and
13577 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13578 # libtool to hard-code these into programs
13581 cygwin* | mingw* | pw32* | cegcc*)
13582 version_type=windows
13583 shrext_cmds=".dll"
13584 need_version=no
13585 need_lib_prefix=no
13587 case $GCC,$host_os in
13588 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13589 library_names_spec='$libname.dll.a'
13590 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13591 postinstall_cmds='base_file=`basename \${file}`~
13592 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13593 dldir=$destdir/`dirname \$dlpath`~
13594 test -d \$dldir || mkdir -p \$dldir~
13595 $install_prog $dir/$dlname \$dldir/$dlname~
13596 chmod a+x \$dldir/$dlname~
13597 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13598 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13600 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13601 dlpath=$dir/\$dldll~
13602 $RM \$dlpath'
13603 shlibpath_overrides_runpath=yes
13605 case $host_os in
13606 cygwin*)
13607 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13608 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13610 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13612 mingw* | cegcc*)
13613 # MinGW DLLs use traditional 'lib' prefix
13614 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13616 pw32*)
13617 # pw32 DLLs use 'pw' prefix rather than 'lib'
13618 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13620 esac
13624 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13626 esac
13627 dynamic_linker='Win32 ld.exe'
13628 # FIXME: first we should search . and the directory the executable is in
13629 shlibpath_var=PATH
13632 darwin* | rhapsody*)
13633 dynamic_linker="$host_os dyld"
13634 version_type=darwin
13635 need_lib_prefix=no
13636 need_version=no
13637 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13638 soname_spec='${libname}${release}${major}$shared_ext'
13639 shlibpath_overrides_runpath=yes
13640 shlibpath_var=DYLD_LIBRARY_PATH
13641 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13643 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13644 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13647 dgux*)
13648 version_type=linux
13649 need_lib_prefix=no
13650 need_version=no
13651 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13652 soname_spec='${libname}${release}${shared_ext}$major'
13653 shlibpath_var=LD_LIBRARY_PATH
13656 freebsd* | dragonfly*)
13657 # DragonFly does not have aout. When/if they implement a new
13658 # versioning mechanism, adjust this.
13659 if test -x /usr/bin/objformat; then
13660 objformat=`/usr/bin/objformat`
13661 else
13662 case $host_os in
13663 freebsd[23].*) objformat=aout ;;
13664 *) objformat=elf ;;
13665 esac
13667 version_type=freebsd-$objformat
13668 case $version_type in
13669 freebsd-elf*)
13670 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13671 need_version=no
13672 need_lib_prefix=no
13674 freebsd-*)
13675 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13676 need_version=yes
13678 esac
13679 shlibpath_var=LD_LIBRARY_PATH
13680 case $host_os in
13681 freebsd2.*)
13682 shlibpath_overrides_runpath=yes
13684 freebsd3.[01]* | freebsdelf3.[01]*)
13685 shlibpath_overrides_runpath=yes
13686 hardcode_into_libs=yes
13688 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13689 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13690 shlibpath_overrides_runpath=no
13691 hardcode_into_libs=yes
13693 *) # from 4.6 on, and DragonFly
13694 shlibpath_overrides_runpath=yes
13695 hardcode_into_libs=yes
13697 esac
13700 haiku*)
13701 version_type=linux
13702 need_lib_prefix=no
13703 need_version=no
13704 dynamic_linker="$host_os runtime_loader"
13705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13706 soname_spec='${libname}${release}${shared_ext}$major'
13707 shlibpath_var=LIBRARY_PATH
13708 shlibpath_overrides_runpath=yes
13709 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13710 hardcode_into_libs=yes
13713 hpux9* | hpux10* | hpux11*)
13714 # Give a soname corresponding to the major version so that dld.sl refuses to
13715 # link against other versions.
13716 version_type=sunos
13717 need_lib_prefix=no
13718 need_version=no
13719 case $host_cpu in
13720 ia64*)
13721 shrext_cmds='.so'
13722 hardcode_into_libs=yes
13723 dynamic_linker="$host_os dld.so"
13724 shlibpath_var=LD_LIBRARY_PATH
13725 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13726 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13727 soname_spec='${libname}${release}${shared_ext}$major'
13728 if test "X$HPUX_IA64_MODE" = X32; then
13729 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13730 else
13731 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13733 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13735 hppa*64*)
13736 shrext_cmds='.sl'
13737 hardcode_into_libs=yes
13738 dynamic_linker="$host_os dld.sl"
13739 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13740 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13742 soname_spec='${libname}${release}${shared_ext}$major'
13743 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13744 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13747 shrext_cmds='.sl'
13748 dynamic_linker="$host_os dld.sl"
13749 shlibpath_var=SHLIB_PATH
13750 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13752 soname_spec='${libname}${release}${shared_ext}$major'
13754 esac
13755 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13756 postinstall_cmds='chmod 555 $lib'
13757 # or fails outright, so override atomically:
13758 install_override_mode=555
13761 interix[3-9]*)
13762 version_type=linux
13763 need_lib_prefix=no
13764 need_version=no
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 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13768 shlibpath_var=LD_LIBRARY_PATH
13769 shlibpath_overrides_runpath=no
13770 hardcode_into_libs=yes
13773 irix5* | irix6* | nonstopux*)
13774 case $host_os in
13775 nonstopux*) version_type=nonstopux ;;
13777 if test "$lt_cv_prog_gnu_ld" = yes; then
13778 version_type=linux
13779 else
13780 version_type=irix
13781 fi ;;
13782 esac
13783 need_lib_prefix=no
13784 need_version=no
13785 soname_spec='${libname}${release}${shared_ext}$major'
13786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13787 case $host_os in
13788 irix5* | nonstopux*)
13789 libsuff= shlibsuff=
13792 case $LD in # libtool.m4 will add one of these switches to LD
13793 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13794 libsuff= shlibsuff= libmagic=32-bit;;
13795 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13796 libsuff=32 shlibsuff=N32 libmagic=N32;;
13797 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13798 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13799 *) libsuff= shlibsuff= libmagic=never-match;;
13800 esac
13802 esac
13803 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13804 shlibpath_overrides_runpath=no
13805 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13806 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13807 hardcode_into_libs=yes
13810 # No shared lib support for Linux oldld, aout, or coff.
13811 linux*oldld* | linux*aout* | linux*coff*)
13812 dynamic_linker=no
13815 # This must be Linux ELF.
13817 # uclinux* changes (here and below) have been submitted to the libtool
13818 # project, but have not yet been accepted: they are GCC-local changes
13819 # for the time being. (See
13820 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
13821 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
13822 version_type=linux
13823 need_lib_prefix=no
13824 need_version=no
13825 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13826 soname_spec='${libname}${release}${shared_ext}$major'
13827 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13828 shlibpath_var=LD_LIBRARY_PATH
13829 shlibpath_overrides_runpath=no
13831 # Some binutils ld are patched to set DT_RUNPATH
13832 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13833 $as_echo_n "(cached) " >&6
13834 else
13835 lt_cv_shlibpath_overrides_runpath=no
13836 save_LDFLAGS=$LDFLAGS
13837 save_libdir=$libdir
13838 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13839 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13840 if test x$gcc_no_link = xyes; then
13841 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13844 /* end confdefs.h. */
13847 main ()
13851 return 0;
13853 _ACEOF
13854 if ac_fn_c_try_link "$LINENO"; then :
13855 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13856 lt_cv_shlibpath_overrides_runpath=yes
13859 rm -f core conftest.err conftest.$ac_objext \
13860 conftest$ac_exeext conftest.$ac_ext
13861 LDFLAGS=$save_LDFLAGS
13862 libdir=$save_libdir
13866 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13868 # This implies no fast_install, which is unacceptable.
13869 # Some rework will be needed to allow for fast_install
13870 # before this can be enabled.
13871 hardcode_into_libs=yes
13873 # Append ld.so.conf contents to the search path
13874 if test -f /etc/ld.so.conf; then
13875 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
13876 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13879 # We used to test for /lib/ld.so.1 and disable shared libraries on
13880 # powerpc, because MkLinux only supported shared libraries with the
13881 # GNU dynamic linker. Since this was broken with cross compilers,
13882 # most powerpc-linux boxes support dynamic linking these days and
13883 # people can always --disable-shared, the test was removed, and we
13884 # assume the GNU/Linux dynamic linker is in use.
13885 dynamic_linker='GNU/Linux ld.so'
13888 netbsd*)
13889 version_type=sunos
13890 need_lib_prefix=no
13891 need_version=no
13892 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13894 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13895 dynamic_linker='NetBSD (a.out) ld.so'
13896 else
13897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13898 soname_spec='${libname}${release}${shared_ext}$major'
13899 dynamic_linker='NetBSD ld.elf_so'
13901 shlibpath_var=LD_LIBRARY_PATH
13902 shlibpath_overrides_runpath=yes
13903 hardcode_into_libs=yes
13906 newsos6)
13907 version_type=linux
13908 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13909 shlibpath_var=LD_LIBRARY_PATH
13910 shlibpath_overrides_runpath=yes
13913 *nto* | *qnx*)
13914 version_type=qnx
13915 need_lib_prefix=no
13916 need_version=no
13917 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13918 soname_spec='${libname}${release}${shared_ext}$major'
13919 shlibpath_var=LD_LIBRARY_PATH
13920 shlibpath_overrides_runpath=no
13921 hardcode_into_libs=yes
13922 dynamic_linker='ldqnx.so'
13925 openbsd*)
13926 version_type=sunos
13927 sys_lib_dlsearch_path_spec="/usr/lib"
13928 need_lib_prefix=no
13929 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13930 case $host_os in
13931 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13932 *) need_version=no ;;
13933 esac
13934 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13935 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13936 shlibpath_var=LD_LIBRARY_PATH
13937 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13938 case $host_os in
13939 openbsd2.[89] | openbsd2.[89].*)
13940 shlibpath_overrides_runpath=no
13943 shlibpath_overrides_runpath=yes
13945 esac
13946 else
13947 shlibpath_overrides_runpath=yes
13951 os2*)
13952 libname_spec='$name'
13953 shrext_cmds=".dll"
13954 need_lib_prefix=no
13955 library_names_spec='$libname${shared_ext} $libname.a'
13956 dynamic_linker='OS/2 ld.exe'
13957 shlibpath_var=LIBPATH
13960 osf3* | osf4* | osf5*)
13961 version_type=osf
13962 need_lib_prefix=no
13963 need_version=no
13964 soname_spec='${libname}${release}${shared_ext}$major'
13965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13966 shlibpath_var=LD_LIBRARY_PATH
13967 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13968 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13971 rdos*)
13972 dynamic_linker=no
13975 solaris*)
13976 version_type=linux
13977 need_lib_prefix=no
13978 need_version=no
13979 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13980 soname_spec='${libname}${release}${shared_ext}$major'
13981 shlibpath_var=LD_LIBRARY_PATH
13982 shlibpath_overrides_runpath=yes
13983 hardcode_into_libs=yes
13984 # ldd complains unless libraries are executable
13985 postinstall_cmds='chmod +x $lib'
13988 sunos4*)
13989 version_type=sunos
13990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13991 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13992 shlibpath_var=LD_LIBRARY_PATH
13993 shlibpath_overrides_runpath=yes
13994 if test "$with_gnu_ld" = yes; then
13995 need_lib_prefix=no
13997 need_version=yes
14000 sysv4 | sysv4.3*)
14001 version_type=linux
14002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14003 soname_spec='${libname}${release}${shared_ext}$major'
14004 shlibpath_var=LD_LIBRARY_PATH
14005 case $host_vendor in
14006 sni)
14007 shlibpath_overrides_runpath=no
14008 need_lib_prefix=no
14009 runpath_var=LD_RUN_PATH
14011 siemens)
14012 need_lib_prefix=no
14014 motorola)
14015 need_lib_prefix=no
14016 need_version=no
14017 shlibpath_overrides_runpath=no
14018 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14020 esac
14023 sysv4*MP*)
14024 if test -d /usr/nec ;then
14025 version_type=linux
14026 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14027 soname_spec='$libname${shared_ext}.$major'
14028 shlibpath_var=LD_LIBRARY_PATH
14032 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14033 version_type=freebsd-elf
14034 need_lib_prefix=no
14035 need_version=no
14036 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14037 soname_spec='${libname}${release}${shared_ext}$major'
14038 shlibpath_var=LD_LIBRARY_PATH
14039 shlibpath_overrides_runpath=yes
14040 hardcode_into_libs=yes
14041 if test "$with_gnu_ld" = yes; then
14042 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14043 else
14044 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14045 case $host_os in
14046 sco3.2v5*)
14047 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14049 esac
14051 sys_lib_dlsearch_path_spec='/usr/lib'
14054 tpf*)
14055 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14056 version_type=linux
14057 need_lib_prefix=no
14058 need_version=no
14059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14060 shlibpath_var=LD_LIBRARY_PATH
14061 shlibpath_overrides_runpath=no
14062 hardcode_into_libs=yes
14065 uts4*)
14066 version_type=linux
14067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14068 soname_spec='${libname}${release}${shared_ext}$major'
14069 shlibpath_var=LD_LIBRARY_PATH
14072 # Shared libraries for VwWorks, >= 7 only at this stage
14073 # and (fpic) still incompatible with "large" code models
14074 # in a few configurations. Only for RTP mode in any case,
14075 # and upon explicit request at configure time.
14076 vxworks7*)
14077 dynamic_linker=no
14078 case ${with_multisubdir}-${enable_shared} in
14079 *large*)
14081 *mrtp*-yes)
14082 version_type=linux
14083 need_lib_prefix=no
14084 need_version=no
14085 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14086 soname_spec='${libname}${release}${shared_ext}$major'
14087 dynamic_linker="$host_os module_loader"
14089 esac
14092 dynamic_linker=no
14094 esac
14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14096 $as_echo "$dynamic_linker" >&6; }
14097 test "$dynamic_linker" = no && can_build_shared=no
14099 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14100 if test "$GCC" = yes; then
14101 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14104 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14105 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14107 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14108 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14203 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14204 hardcode_action=
14205 if test -n "$hardcode_libdir_flag_spec" ||
14206 test -n "$runpath_var" ||
14207 test "X$hardcode_automatic" = "Xyes" ; then
14209 # We can hardcode non-existent directories.
14210 if test "$hardcode_direct" != no &&
14211 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14212 # have to relink, otherwise we might link with an installed library
14213 # when we should be linking with a yet-to-be-installed one
14214 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14215 test "$hardcode_minus_L" != no; then
14216 # Linking always hardcodes the temporary library directory.
14217 hardcode_action=relink
14218 else
14219 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14220 hardcode_action=immediate
14222 else
14223 # We cannot hardcode anything, or else we can only hardcode existing
14224 # directories.
14225 hardcode_action=unsupported
14227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14228 $as_echo "$hardcode_action" >&6; }
14230 if test "$hardcode_action" = relink ||
14231 test "$inherit_rpath" = yes; then
14232 # Fast installation is not supported
14233 enable_fast_install=no
14234 elif test "$shlibpath_overrides_runpath" = yes ||
14235 test "$enable_shared" = no; then
14236 # Fast installation is not necessary
14237 enable_fast_install=needless
14245 if test "x$enable_dlopen" != xyes; then
14246 enable_dlopen=unknown
14247 enable_dlopen_self=unknown
14248 enable_dlopen_self_static=unknown
14249 else
14250 lt_cv_dlopen=no
14251 lt_cv_dlopen_libs=
14253 case $host_os in
14254 beos*)
14255 lt_cv_dlopen="load_add_on"
14256 lt_cv_dlopen_libs=
14257 lt_cv_dlopen_self=yes
14260 mingw* | pw32* | cegcc*)
14261 lt_cv_dlopen="LoadLibrary"
14262 lt_cv_dlopen_libs=
14265 cygwin*)
14266 lt_cv_dlopen="dlopen"
14267 lt_cv_dlopen_libs=
14270 darwin*)
14271 # if libdl is installed we need to link against it
14272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14273 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14274 if ${ac_cv_lib_dl_dlopen+:} false; then :
14275 $as_echo_n "(cached) " >&6
14276 else
14277 ac_check_lib_save_LIBS=$LIBS
14278 LIBS="-ldl $LIBS"
14279 if test x$gcc_no_link = xyes; then
14280 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14283 /* end confdefs.h. */
14285 /* Override any GCC internal prototype to avoid an error.
14286 Use char because int might match the return type of a GCC
14287 builtin and then its argument prototype would still apply. */
14288 #ifdef __cplusplus
14289 extern "C"
14290 #endif
14291 char dlopen ();
14293 main ()
14295 return dlopen ();
14297 return 0;
14299 _ACEOF
14300 if ac_fn_c_try_link "$LINENO"; then :
14301 ac_cv_lib_dl_dlopen=yes
14302 else
14303 ac_cv_lib_dl_dlopen=no
14305 rm -f core conftest.err conftest.$ac_objext \
14306 conftest$ac_exeext conftest.$ac_ext
14307 LIBS=$ac_check_lib_save_LIBS
14309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14310 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14311 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14312 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14313 else
14315 lt_cv_dlopen="dyld"
14316 lt_cv_dlopen_libs=
14317 lt_cv_dlopen_self=yes
14324 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14325 if test "x$ac_cv_func_shl_load" = xyes; then :
14326 lt_cv_dlopen="shl_load"
14327 else
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14329 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14330 if ${ac_cv_lib_dld_shl_load+:} false; then :
14331 $as_echo_n "(cached) " >&6
14332 else
14333 ac_check_lib_save_LIBS=$LIBS
14334 LIBS="-ldld $LIBS"
14335 if test x$gcc_no_link = xyes; then
14336 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14339 /* end confdefs.h. */
14341 /* Override any GCC internal prototype to avoid an error.
14342 Use char because int might match the return type of a GCC
14343 builtin and then its argument prototype would still apply. */
14344 #ifdef __cplusplus
14345 extern "C"
14346 #endif
14347 char shl_load ();
14349 main ()
14351 return shl_load ();
14353 return 0;
14355 _ACEOF
14356 if ac_fn_c_try_link "$LINENO"; then :
14357 ac_cv_lib_dld_shl_load=yes
14358 else
14359 ac_cv_lib_dld_shl_load=no
14361 rm -f core conftest.err conftest.$ac_objext \
14362 conftest$ac_exeext conftest.$ac_ext
14363 LIBS=$ac_check_lib_save_LIBS
14365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14366 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14367 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14368 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14369 else
14370 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14371 if test "x$ac_cv_func_dlopen" = xyes; then :
14372 lt_cv_dlopen="dlopen"
14373 else
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14375 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14376 if ${ac_cv_lib_dl_dlopen+:} false; then :
14377 $as_echo_n "(cached) " >&6
14378 else
14379 ac_check_lib_save_LIBS=$LIBS
14380 LIBS="-ldl $LIBS"
14381 if test x$gcc_no_link = xyes; then
14382 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14385 /* end confdefs.h. */
14387 /* Override any GCC internal prototype to avoid an error.
14388 Use char because int might match the return type of a GCC
14389 builtin and then its argument prototype would still apply. */
14390 #ifdef __cplusplus
14391 extern "C"
14392 #endif
14393 char dlopen ();
14395 main ()
14397 return dlopen ();
14399 return 0;
14401 _ACEOF
14402 if ac_fn_c_try_link "$LINENO"; then :
14403 ac_cv_lib_dl_dlopen=yes
14404 else
14405 ac_cv_lib_dl_dlopen=no
14407 rm -f core conftest.err conftest.$ac_objext \
14408 conftest$ac_exeext conftest.$ac_ext
14409 LIBS=$ac_check_lib_save_LIBS
14411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14412 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14413 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14414 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14415 else
14416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14417 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14418 if ${ac_cv_lib_svld_dlopen+:} false; then :
14419 $as_echo_n "(cached) " >&6
14420 else
14421 ac_check_lib_save_LIBS=$LIBS
14422 LIBS="-lsvld $LIBS"
14423 if test x$gcc_no_link = xyes; then
14424 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427 /* end confdefs.h. */
14429 /* Override any GCC internal prototype to avoid an error.
14430 Use char because int might match the return type of a GCC
14431 builtin and then its argument prototype would still apply. */
14432 #ifdef __cplusplus
14433 extern "C"
14434 #endif
14435 char dlopen ();
14437 main ()
14439 return dlopen ();
14441 return 0;
14443 _ACEOF
14444 if ac_fn_c_try_link "$LINENO"; then :
14445 ac_cv_lib_svld_dlopen=yes
14446 else
14447 ac_cv_lib_svld_dlopen=no
14449 rm -f core conftest.err conftest.$ac_objext \
14450 conftest$ac_exeext conftest.$ac_ext
14451 LIBS=$ac_check_lib_save_LIBS
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14454 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14455 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14456 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14457 else
14458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14459 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14460 if ${ac_cv_lib_dld_dld_link+:} false; then :
14461 $as_echo_n "(cached) " >&6
14462 else
14463 ac_check_lib_save_LIBS=$LIBS
14464 LIBS="-ldld $LIBS"
14465 if test x$gcc_no_link = xyes; then
14466 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14469 /* end confdefs.h. */
14471 /* Override any GCC internal prototype to avoid an error.
14472 Use char because int might match the return type of a GCC
14473 builtin and then its argument prototype would still apply. */
14474 #ifdef __cplusplus
14475 extern "C"
14476 #endif
14477 char dld_link ();
14479 main ()
14481 return dld_link ();
14483 return 0;
14485 _ACEOF
14486 if ac_fn_c_try_link "$LINENO"; then :
14487 ac_cv_lib_dld_dld_link=yes
14488 else
14489 ac_cv_lib_dld_dld_link=no
14491 rm -f core conftest.err conftest.$ac_objext \
14492 conftest$ac_exeext conftest.$ac_ext
14493 LIBS=$ac_check_lib_save_LIBS
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14496 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14497 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14498 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14517 esac
14519 if test "x$lt_cv_dlopen" != xno; then
14520 enable_dlopen=yes
14521 else
14522 enable_dlopen=no
14525 case $lt_cv_dlopen in
14526 dlopen)
14527 save_CPPFLAGS="$CPPFLAGS"
14528 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14530 save_LDFLAGS="$LDFLAGS"
14531 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14533 save_LIBS="$LIBS"
14534 LIBS="$lt_cv_dlopen_libs $LIBS"
14536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14537 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14538 if ${lt_cv_dlopen_self+:} false; then :
14539 $as_echo_n "(cached) " >&6
14540 else
14541 if test "$cross_compiling" = yes; then :
14542 lt_cv_dlopen_self=cross
14543 else
14544 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14545 lt_status=$lt_dlunknown
14546 cat > conftest.$ac_ext <<_LT_EOF
14547 #line 14547 "configure"
14548 #include "confdefs.h"
14550 #if HAVE_DLFCN_H
14551 #include <dlfcn.h>
14552 #endif
14554 #include <stdio.h>
14556 #ifdef RTLD_GLOBAL
14557 # define LT_DLGLOBAL RTLD_GLOBAL
14558 #else
14559 # ifdef DL_GLOBAL
14560 # define LT_DLGLOBAL DL_GLOBAL
14561 # else
14562 # define LT_DLGLOBAL 0
14563 # endif
14564 #endif
14566 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14567 find out it does not work in some platform. */
14568 #ifndef LT_DLLAZY_OR_NOW
14569 # ifdef RTLD_LAZY
14570 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14571 # else
14572 # ifdef DL_LAZY
14573 # define LT_DLLAZY_OR_NOW DL_LAZY
14574 # else
14575 # ifdef RTLD_NOW
14576 # define LT_DLLAZY_OR_NOW RTLD_NOW
14577 # else
14578 # ifdef DL_NOW
14579 # define LT_DLLAZY_OR_NOW DL_NOW
14580 # else
14581 # define LT_DLLAZY_OR_NOW 0
14582 # endif
14583 # endif
14584 # endif
14585 # endif
14586 #endif
14588 /* When -fvisbility=hidden is used, assume the code has been annotated
14589 correspondingly for the symbols needed. */
14590 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14591 void fnord () __attribute__((visibility("default")));
14592 #endif
14594 void fnord () { int i=42; }
14595 int main ()
14597 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14598 int status = $lt_dlunknown;
14600 if (self)
14602 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14603 else
14605 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14606 else puts (dlerror ());
14608 /* dlclose (self); */
14610 else
14611 puts (dlerror ());
14613 return status;
14615 _LT_EOF
14616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14617 (eval $ac_link) 2>&5
14618 ac_status=$?
14619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14620 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14621 (./conftest; exit; ) >&5 2>/dev/null
14622 lt_status=$?
14623 case x$lt_status in
14624 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14625 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14626 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14627 esac
14628 else :
14629 # compilation failed
14630 lt_cv_dlopen_self=no
14633 rm -fr conftest*
14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14638 $as_echo "$lt_cv_dlopen_self" >&6; }
14640 if test "x$lt_cv_dlopen_self" = xyes; then
14641 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14643 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14644 if ${lt_cv_dlopen_self_static+:} false; then :
14645 $as_echo_n "(cached) " >&6
14646 else
14647 if test "$cross_compiling" = yes; then :
14648 lt_cv_dlopen_self_static=cross
14649 else
14650 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14651 lt_status=$lt_dlunknown
14652 cat > conftest.$ac_ext <<_LT_EOF
14653 #line 14653 "configure"
14654 #include "confdefs.h"
14656 #if HAVE_DLFCN_H
14657 #include <dlfcn.h>
14658 #endif
14660 #include <stdio.h>
14662 #ifdef RTLD_GLOBAL
14663 # define LT_DLGLOBAL RTLD_GLOBAL
14664 #else
14665 # ifdef DL_GLOBAL
14666 # define LT_DLGLOBAL DL_GLOBAL
14667 # else
14668 # define LT_DLGLOBAL 0
14669 # endif
14670 #endif
14672 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14673 find out it does not work in some platform. */
14674 #ifndef LT_DLLAZY_OR_NOW
14675 # ifdef RTLD_LAZY
14676 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14677 # else
14678 # ifdef DL_LAZY
14679 # define LT_DLLAZY_OR_NOW DL_LAZY
14680 # else
14681 # ifdef RTLD_NOW
14682 # define LT_DLLAZY_OR_NOW RTLD_NOW
14683 # else
14684 # ifdef DL_NOW
14685 # define LT_DLLAZY_OR_NOW DL_NOW
14686 # else
14687 # define LT_DLLAZY_OR_NOW 0
14688 # endif
14689 # endif
14690 # endif
14691 # endif
14692 #endif
14694 /* When -fvisbility=hidden is used, assume the code has been annotated
14695 correspondingly for the symbols needed. */
14696 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14697 void fnord () __attribute__((visibility("default")));
14698 #endif
14700 void fnord () { int i=42; }
14701 int main ()
14703 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14704 int status = $lt_dlunknown;
14706 if (self)
14708 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14709 else
14711 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14712 else puts (dlerror ());
14714 /* dlclose (self); */
14716 else
14717 puts (dlerror ());
14719 return status;
14721 _LT_EOF
14722 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14723 (eval $ac_link) 2>&5
14724 ac_status=$?
14725 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14726 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14727 (./conftest; exit; ) >&5 2>/dev/null
14728 lt_status=$?
14729 case x$lt_status in
14730 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14731 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14732 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14733 esac
14734 else :
14735 # compilation failed
14736 lt_cv_dlopen_self_static=no
14739 rm -fr conftest*
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14744 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14747 CPPFLAGS="$save_CPPFLAGS"
14748 LDFLAGS="$save_LDFLAGS"
14749 LIBS="$save_LIBS"
14751 esac
14753 case $lt_cv_dlopen_self in
14754 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14755 *) enable_dlopen_self=unknown ;;
14756 esac
14758 case $lt_cv_dlopen_self_static in
14759 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14760 *) enable_dlopen_self_static=unknown ;;
14761 esac
14780 striplib=
14781 old_striplib=
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14783 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14784 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14785 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14786 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14788 $as_echo "yes" >&6; }
14789 else
14790 # FIXME - insert some real tests, host_os isn't really good enough
14791 case $host_os in
14792 darwin*)
14793 if test -n "$STRIP" ; then
14794 striplib="$STRIP -x"
14795 old_striplib="$STRIP -S"
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14797 $as_echo "yes" >&6; }
14798 else
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14800 $as_echo "no" >&6; }
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14805 $as_echo "no" >&6; }
14807 esac
14821 # Report which library types will actually be built
14822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14823 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14825 $as_echo "$can_build_shared" >&6; }
14827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14828 $as_echo_n "checking whether to build shared libraries... " >&6; }
14829 test "$can_build_shared" = "no" && enable_shared=no
14831 # On AIX, shared libraries and static libraries use the same namespace, and
14832 # are all built from PIC.
14833 case $host_os in
14834 aix3*)
14835 test "$enable_shared" = yes && enable_static=no
14836 if test -n "$RANLIB"; then
14837 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14838 postinstall_cmds='$RANLIB $lib'
14842 aix[4-9]*)
14843 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14844 test "$enable_shared" = yes && enable_static=no
14847 esac
14848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14849 $as_echo "$enable_shared" >&6; }
14851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14852 $as_echo_n "checking whether to build static libraries... " >&6; }
14853 # Make sure either enable_shared or enable_static is yes.
14854 test "$enable_shared" = yes || enable_static=yes
14855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14856 $as_echo "$enable_static" >&6; }
14862 ac_ext=c
14863 ac_cpp='$CPP $CPPFLAGS'
14864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14868 CC="$lt_save_CC"
14870 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14871 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14872 (test "X$CXX" != "Xg++"))) ; then
14873 ac_ext=cpp
14874 ac_cpp='$CXXCPP $CPPFLAGS'
14875 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14876 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14877 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14879 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14880 if test -z "$CXXCPP"; then
14881 if ${ac_cv_prog_CXXCPP+:} false; then :
14882 $as_echo_n "(cached) " >&6
14883 else
14884 # Double quotes because CXXCPP needs to be expanded
14885 for CXXCPP in "$CXX -E" "/lib/cpp"
14887 ac_preproc_ok=false
14888 for ac_cxx_preproc_warn_flag in '' yes
14890 # Use a header file that comes with gcc, so configuring glibc
14891 # with a fresh cross-compiler works.
14892 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14893 # <limits.h> exists even on freestanding compilers.
14894 # On the NeXT, cc -E runs the code through the compiler's parser,
14895 # not just through cpp. "Syntax error" is here to catch this case.
14896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14897 /* end confdefs.h. */
14898 #ifdef __STDC__
14899 # include <limits.h>
14900 #else
14901 # include <assert.h>
14902 #endif
14903 Syntax error
14904 _ACEOF
14905 if ac_fn_cxx_try_cpp "$LINENO"; then :
14907 else
14908 # Broken: fails on valid input.
14909 continue
14911 rm -f conftest.err conftest.i conftest.$ac_ext
14913 # OK, works on sane cases. Now check whether nonexistent headers
14914 # can be detected and how.
14915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14916 /* end confdefs.h. */
14917 #include <ac_nonexistent.h>
14918 _ACEOF
14919 if ac_fn_cxx_try_cpp "$LINENO"; then :
14920 # Broken: success on invalid input.
14921 continue
14922 else
14923 # Passes both tests.
14924 ac_preproc_ok=:
14925 break
14927 rm -f conftest.err conftest.i conftest.$ac_ext
14929 done
14930 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14931 rm -f conftest.i conftest.err conftest.$ac_ext
14932 if $ac_preproc_ok; then :
14933 break
14936 done
14937 ac_cv_prog_CXXCPP=$CXXCPP
14940 CXXCPP=$ac_cv_prog_CXXCPP
14941 else
14942 ac_cv_prog_CXXCPP=$CXXCPP
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14945 $as_echo "$CXXCPP" >&6; }
14946 ac_preproc_ok=false
14947 for ac_cxx_preproc_warn_flag in '' yes
14949 # Use a header file that comes with gcc, so configuring glibc
14950 # with a fresh cross-compiler works.
14951 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14952 # <limits.h> exists even on freestanding compilers.
14953 # On the NeXT, cc -E runs the code through the compiler's parser,
14954 # not just through cpp. "Syntax error" is here to catch this case.
14955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14956 /* end confdefs.h. */
14957 #ifdef __STDC__
14958 # include <limits.h>
14959 #else
14960 # include <assert.h>
14961 #endif
14962 Syntax error
14963 _ACEOF
14964 if ac_fn_cxx_try_cpp "$LINENO"; then :
14966 else
14967 # Broken: fails on valid input.
14968 continue
14970 rm -f conftest.err conftest.i conftest.$ac_ext
14972 # OK, works on sane cases. Now check whether nonexistent headers
14973 # can be detected and how.
14974 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14975 /* end confdefs.h. */
14976 #include <ac_nonexistent.h>
14977 _ACEOF
14978 if ac_fn_cxx_try_cpp "$LINENO"; then :
14979 # Broken: success on invalid input.
14980 continue
14981 else
14982 # Passes both tests.
14983 ac_preproc_ok=:
14984 break
14986 rm -f conftest.err conftest.i conftest.$ac_ext
14988 done
14989 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14990 rm -f conftest.i conftest.err conftest.$ac_ext
14991 if $ac_preproc_ok; then :
14993 else
14994 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14995 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14996 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14997 See \`config.log' for more details" "$LINENO" 5; }
15000 ac_ext=c
15001 ac_cpp='$CPP $CPPFLAGS'
15002 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15003 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15004 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15006 else
15007 _lt_caught_CXX_error=yes
15010 ac_ext=cpp
15011 ac_cpp='$CXXCPP $CPPFLAGS'
15012 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15013 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15014 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15016 archive_cmds_need_lc_CXX=no
15017 allow_undefined_flag_CXX=
15018 always_export_symbols_CXX=no
15019 archive_expsym_cmds_CXX=
15020 compiler_needs_object_CXX=no
15021 export_dynamic_flag_spec_CXX=
15022 hardcode_direct_CXX=no
15023 hardcode_direct_absolute_CXX=no
15024 hardcode_libdir_flag_spec_CXX=
15025 hardcode_libdir_flag_spec_ld_CXX=
15026 hardcode_libdir_separator_CXX=
15027 hardcode_minus_L_CXX=no
15028 hardcode_shlibpath_var_CXX=unsupported
15029 hardcode_automatic_CXX=no
15030 inherit_rpath_CXX=no
15031 module_cmds_CXX=
15032 module_expsym_cmds_CXX=
15033 link_all_deplibs_CXX=unknown
15034 old_archive_cmds_CXX=$old_archive_cmds
15035 reload_flag_CXX=$reload_flag
15036 reload_cmds_CXX=$reload_cmds
15037 no_undefined_flag_CXX=
15038 whole_archive_flag_spec_CXX=
15039 enable_shared_with_static_runtimes_CXX=no
15041 # Source file extension for C++ test sources.
15042 ac_ext=cpp
15044 # Object file extension for compiled C++ test sources.
15045 objext=o
15046 objext_CXX=$objext
15048 # No sense in running all these tests if we already determined that
15049 # the CXX compiler isn't working. Some variables (like enable_shared)
15050 # are currently assumed to apply to all compilers on this platform,
15051 # and will be corrupted by setting them based on a non-working compiler.
15052 if test "$_lt_caught_CXX_error" != yes; then
15053 # Code to be used in simple compile tests
15054 lt_simple_compile_test_code="int some_variable = 0;"
15056 # Code to be used in simple link tests
15057 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15059 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15066 # If no C compiler was specified, use CC.
15067 LTCC=${LTCC-"$CC"}
15069 # If no C compiler flags were specified, use CFLAGS.
15070 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15072 # Allow CC to be a program name with arguments.
15073 compiler=$CC
15076 # save warnings/boilerplate of simple test code
15077 ac_outfile=conftest.$ac_objext
15078 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15079 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15080 _lt_compiler_boilerplate=`cat conftest.err`
15081 $RM conftest*
15083 ac_outfile=conftest.$ac_objext
15084 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15085 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15086 _lt_linker_boilerplate=`cat conftest.err`
15087 $RM -r conftest*
15090 # Allow CC to be a program name with arguments.
15091 lt_save_CC=$CC
15092 lt_save_LD=$LD
15093 lt_save_GCC=$GCC
15094 GCC=$GXX
15095 lt_save_with_gnu_ld=$with_gnu_ld
15096 lt_save_path_LD=$lt_cv_path_LD
15097 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15098 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15099 else
15100 $as_unset lt_cv_prog_gnu_ld
15102 if test -n "${lt_cv_path_LDCXX+set}"; then
15103 lt_cv_path_LD=$lt_cv_path_LDCXX
15104 else
15105 $as_unset lt_cv_path_LD
15107 test -z "${LDCXX+set}" || LD=$LDCXX
15108 CC=${CXX-"c++"}
15109 compiler=$CC
15110 compiler_CXX=$CC
15111 for cc_temp in $compiler""; do
15112 case $cc_temp in
15113 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15114 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15115 \-*) ;;
15116 *) break;;
15117 esac
15118 done
15119 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15122 if test -n "$compiler"; then
15123 # We don't want -fno-exception when compiling C++ code, so set the
15124 # no_builtin_flag separately
15125 if test "$GXX" = yes; then
15126 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15127 else
15128 lt_prog_compiler_no_builtin_flag_CXX=
15131 if test "$GXX" = yes; then
15132 # Set up default GNU C++ configuration
15136 # Check whether --with-gnu-ld was given.
15137 if test "${with_gnu_ld+set}" = set; then :
15138 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15139 else
15140 with_gnu_ld=no
15143 ac_prog=ld
15144 if test "$GCC" = yes; then
15145 # Check if gcc -print-prog-name=ld gives a path.
15146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15147 $as_echo_n "checking for ld used by $CC... " >&6; }
15148 case $host in
15149 *-*-mingw*)
15150 # gcc leaves a trailing carriage return which upsets mingw
15151 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15153 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15154 esac
15155 case $ac_prog in
15156 # Accept absolute paths.
15157 [\\/]* | ?:[\\/]*)
15158 re_direlt='/[^/][^/]*/\.\./'
15159 # Canonicalize the pathname of ld
15160 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15161 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15162 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15163 done
15164 test -z "$LD" && LD="$ac_prog"
15167 # If it fails, then pretend we aren't using GCC.
15168 ac_prog=ld
15171 # If it is relative, then search for the first ld in PATH.
15172 with_gnu_ld=unknown
15174 esac
15175 elif test "$with_gnu_ld" = yes; then
15176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15177 $as_echo_n "checking for GNU ld... " >&6; }
15178 else
15179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15180 $as_echo_n "checking for non-GNU ld... " >&6; }
15182 if ${lt_cv_path_LD+:} false; then :
15183 $as_echo_n "(cached) " >&6
15184 else
15185 if test -z "$LD"; then
15186 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15187 for ac_dir in $PATH; do
15188 IFS="$lt_save_ifs"
15189 test -z "$ac_dir" && ac_dir=.
15190 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15191 lt_cv_path_LD="$ac_dir/$ac_prog"
15192 # Check to see if the program is GNU ld. I'd rather use --version,
15193 # but apparently some variants of GNU ld only accept -v.
15194 # Break only if it was the GNU/non-GNU ld that we prefer.
15195 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15196 *GNU* | *'with BFD'*)
15197 test "$with_gnu_ld" != no && break
15200 test "$with_gnu_ld" != yes && break
15202 esac
15204 done
15205 IFS="$lt_save_ifs"
15206 else
15207 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15211 LD="$lt_cv_path_LD"
15212 if test -n "$LD"; then
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15214 $as_echo "$LD" >&6; }
15215 else
15216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15217 $as_echo "no" >&6; }
15219 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15221 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15222 if ${lt_cv_prog_gnu_ld+:} false; then :
15223 $as_echo_n "(cached) " >&6
15224 else
15225 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15226 case `$LD -v 2>&1 </dev/null` in
15227 *GNU* | *'with BFD'*)
15228 lt_cv_prog_gnu_ld=yes
15231 lt_cv_prog_gnu_ld=no
15233 esac
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15236 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15237 with_gnu_ld=$lt_cv_prog_gnu_ld
15245 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15246 # archiving commands below assume that GNU ld is being used.
15247 if test "$with_gnu_ld" = yes; then
15248 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15249 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15251 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15252 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15254 # If archive_cmds runs LD, not CC, wlarc should be empty
15255 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15256 # investigate it a little bit more. (MM)
15257 wlarc='${wl}'
15259 # ancient GNU ld didn't support --whole-archive et. al.
15260 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15261 $GREP 'no-whole-archive' > /dev/null; then
15262 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15263 else
15264 whole_archive_flag_spec_CXX=
15266 else
15267 with_gnu_ld=no
15268 wlarc=
15270 # A generic and very simple default shared library creation
15271 # command for GNU C++ for the case where it uses the native
15272 # linker, instead of GNU ld. If possible, this setting should
15273 # overridden to take advantage of the native linker features on
15274 # the platform it is being used on.
15275 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15278 # Commands to make compiler produce verbose output that lists
15279 # what "hidden" libraries, object files and flags are used when
15280 # linking a shared library.
15281 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15283 else
15284 GXX=no
15285 with_gnu_ld=no
15286 wlarc=
15289 # PORTME: fill in a description of your system's C++ link characteristics
15290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15291 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15292 ld_shlibs_CXX=yes
15293 case $host_os in
15294 aix3*)
15295 # FIXME: insert proper C++ library support
15296 ld_shlibs_CXX=no
15298 aix[4-9]*)
15299 if test "$host_cpu" = ia64; then
15300 # On IA64, the linker does run time linking by default, so we don't
15301 # have to do anything special.
15302 aix_use_runtimelinking=no
15303 exp_sym_flag='-Bexport'
15304 no_entry_flag=""
15305 else
15306 aix_use_runtimelinking=no
15308 # Test if we are trying to use run time linking or normal
15309 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15310 # need to do runtime linking.
15311 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15312 for ld_flag in $LDFLAGS; do
15313 case $ld_flag in
15314 *-brtl*)
15315 aix_use_runtimelinking=yes
15316 break
15318 esac
15319 done
15321 esac
15323 exp_sym_flag='-bexport'
15324 no_entry_flag='-bnoentry'
15327 # When large executables or shared objects are built, AIX ld can
15328 # have problems creating the table of contents. If linking a library
15329 # or program results in "error TOC overflow" add -mminimal-toc to
15330 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15331 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15333 archive_cmds_CXX=''
15334 hardcode_direct_CXX=yes
15335 hardcode_direct_absolute_CXX=yes
15336 hardcode_libdir_separator_CXX=':'
15337 link_all_deplibs_CXX=yes
15338 file_list_spec_CXX='${wl}-f,'
15340 if test "$GXX" = yes; then
15341 case $host_os in aix4.[012]|aix4.[012].*)
15342 # We only want to do this on AIX 4.2 and lower, the check
15343 # below for broken collect2 doesn't work under 4.3+
15344 collect2name=`${CC} -print-prog-name=collect2`
15345 if test -f "$collect2name" &&
15346 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15347 then
15348 # We have reworked collect2
15350 else
15351 # We have old collect2
15352 hardcode_direct_CXX=unsupported
15353 # It fails to find uninstalled libraries when the uninstalled
15354 # path is not listed in the libpath. Setting hardcode_minus_L
15355 # to unsupported forces relinking
15356 hardcode_minus_L_CXX=yes
15357 hardcode_libdir_flag_spec_CXX='-L$libdir'
15358 hardcode_libdir_separator_CXX=
15360 esac
15361 shared_flag='-shared'
15362 if test "$aix_use_runtimelinking" = yes; then
15363 shared_flag="$shared_flag "'${wl}-G'
15365 else
15366 # not using gcc
15367 if test "$host_cpu" = ia64; then
15368 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15369 # chokes on -Wl,-G. The following line is correct:
15370 shared_flag='-G'
15371 else
15372 if test "$aix_use_runtimelinking" = yes; then
15373 shared_flag='${wl}-G'
15374 else
15375 shared_flag='${wl}-bM:SRE'
15380 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15381 # It seems that -bexpall does not export symbols beginning with
15382 # underscore (_), so it is better to generate a list of symbols to
15383 # export.
15384 always_export_symbols_CXX=yes
15385 if test "$aix_use_runtimelinking" = yes; then
15386 # Warning - without using the other runtime loading flags (-brtl),
15387 # -berok will link without error, but may produce a broken library.
15388 allow_undefined_flag_CXX='-berok'
15389 # Determine the default libpath from the value encoded in an empty
15390 # executable.
15391 if test x$gcc_no_link = xyes; then
15392 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15395 /* end confdefs.h. */
15398 main ()
15402 return 0;
15404 _ACEOF
15405 if ac_fn_cxx_try_link "$LINENO"; then :
15407 lt_aix_libpath_sed='
15408 /Import File Strings/,/^$/ {
15409 /^0/ {
15410 s/^0 *\(.*\)$/\1/
15414 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15415 # Check for a 64-bit object if we didn't find anything.
15416 if test -z "$aix_libpath"; then
15417 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15420 rm -f core conftest.err conftest.$ac_objext \
15421 conftest$ac_exeext conftest.$ac_ext
15422 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15424 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15426 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15427 else
15428 if test "$host_cpu" = ia64; then
15429 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15430 allow_undefined_flag_CXX="-z nodefs"
15431 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
15432 else
15433 # Determine the default libpath from the value encoded in an
15434 # empty executable.
15435 if test x$gcc_no_link = xyes; then
15436 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15439 /* end confdefs.h. */
15442 main ()
15446 return 0;
15448 _ACEOF
15449 if ac_fn_cxx_try_link "$LINENO"; then :
15451 lt_aix_libpath_sed='
15452 /Import File Strings/,/^$/ {
15453 /^0/ {
15454 s/^0 *\(.*\)$/\1/
15458 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15459 # Check for a 64-bit object if we didn't find anything.
15460 if test -z "$aix_libpath"; then
15461 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15464 rm -f core conftest.err conftest.$ac_objext \
15465 conftest$ac_exeext conftest.$ac_ext
15466 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15468 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15469 # Warning - without using the other run time loading flags,
15470 # -berok will link without error, but may produce a broken library.
15471 no_undefined_flag_CXX=' ${wl}-bernotok'
15472 allow_undefined_flag_CXX=' ${wl}-berok'
15473 if test "$with_gnu_ld" = yes; then
15474 # We only use this code for GNU lds that support --whole-archive.
15475 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15476 else
15477 # Exported symbols can be pulled into shared objects from archives
15478 whole_archive_flag_spec_CXX='$convenience'
15480 archive_cmds_need_lc_CXX=yes
15481 # This is similar to how AIX traditionally builds its shared
15482 # libraries.
15483 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15488 beos*)
15489 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15490 allow_undefined_flag_CXX=unsupported
15491 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15492 # support --undefined. This deserves some investigation. FIXME
15493 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15494 else
15495 ld_shlibs_CXX=no
15499 chorus*)
15500 case $cc_basename in
15502 # FIXME: insert proper C++ library support
15503 ld_shlibs_CXX=no
15505 esac
15508 cygwin* | mingw* | pw32* | cegcc*)
15509 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15510 # as there is no search path for DLLs.
15511 hardcode_libdir_flag_spec_CXX='-L$libdir'
15512 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
15513 allow_undefined_flag_CXX=unsupported
15514 always_export_symbols_CXX=no
15515 enable_shared_with_static_runtimes_CXX=yes
15517 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15518 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15519 # If the export-symbols file already is a .def file (1st line
15520 # is EXPORTS), use it as is; otherwise, prepend...
15521 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15522 cp $export_symbols $output_objdir/$soname.def;
15523 else
15524 echo EXPORTS > $output_objdir/$soname.def;
15525 cat $export_symbols >> $output_objdir/$soname.def;
15527 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15528 else
15529 ld_shlibs_CXX=no
15532 darwin* | rhapsody*)
15536 # Publish an arg to allow the user to select that Darwin host (and target)
15537 # libraries should be given install-names like @rpath/libfoo.dylib. This
15538 # requires that the user of the library then adds an 'rpath' to the DSO that
15539 # needs access.
15540 # NOTE: there are defaults below, for systems that support rpaths. The person
15541 # configuring can override the defaults for any system version that supports
15542 # them - they are, however, forced off for system versions without support.
15543 # Check whether --enable-darwin-at-rpath was given.
15544 if test "${enable_darwin_at_rpath+set}" = set; then :
15545 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
15546 # This is not supported before macOS 10.5 / Darwin9.
15547 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
15548 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
15549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
15550 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
15551 enable_darwin_at_rpath=no
15553 esac
15555 else
15556 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
15557 # As above, before 10.5 / Darwin9 this does not work.
15558 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
15559 enable_darwin_at_rpath=no
15562 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
15563 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
15564 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
15565 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
15566 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
15567 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
15568 enable_darwin_at_rpath=yes
15570 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
15571 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
15573 esac
15578 archive_cmds_need_lc_CXX=no
15579 hardcode_direct_CXX=no
15580 hardcode_automatic_CXX=yes
15581 hardcode_shlibpath_var_CXX=unsupported
15582 if test "$lt_cv_ld_force_load" = "yes"; then
15583 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
15584 else
15585 whole_archive_flag_spec_CXX=''
15587 link_all_deplibs_CXX=yes
15588 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15589 case $cc_basename in
15590 ifort*) _lt_dar_can_shared=yes ;;
15591 *) _lt_dar_can_shared=$GCC ;;
15592 esac
15593 if test "$_lt_dar_can_shared" = "yes"; then
15594 output_verbose_link_cmd=func_echo_all
15595 _lt_install_name='\$rpath/\$soname'
15596 if test "x$enable_darwin_at_rpath" = "xyes"; then
15597 _lt_install_name='@rpath/\$soname'
15599 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
15600 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15601 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dar_export_syms}${_lt_dsymutil}"
15602 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
15603 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15604 _lt_install_name='\$rpath/\$soname'
15605 if test "x$enable_darwin_at_rpath" = "xyes"; then
15606 _lt_install_name='@rpath/\$soname'
15608 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring${_lt_dsymutil}"
15609 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
15612 else
15613 ld_shlibs_CXX=no
15618 dgux*)
15619 case $cc_basename in
15620 ec++*)
15621 # FIXME: insert proper C++ library support
15622 ld_shlibs_CXX=no
15624 ghcx*)
15625 # Green Hills C++ Compiler
15626 # FIXME: insert proper C++ library support
15627 ld_shlibs_CXX=no
15630 # FIXME: insert proper C++ library support
15631 ld_shlibs_CXX=no
15633 esac
15636 freebsd2.*)
15637 # C++ shared libraries reported to be fairly broken before
15638 # switch to ELF
15639 ld_shlibs_CXX=no
15642 freebsd-elf*)
15643 archive_cmds_need_lc_CXX=no
15646 freebsd* | dragonfly*)
15647 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15648 # conventions
15649 ld_shlibs_CXX=yes
15652 gnu*)
15655 haiku*)
15656 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15657 link_all_deplibs_CXX=yes
15660 hpux9*)
15661 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15662 hardcode_libdir_separator_CXX=:
15663 export_dynamic_flag_spec_CXX='${wl}-E'
15664 hardcode_direct_CXX=yes
15665 hardcode_minus_L_CXX=yes # Not in the search PATH,
15666 # but as the default
15667 # location of the library.
15669 case $cc_basename in
15670 CC*)
15671 # FIXME: insert proper C++ library support
15672 ld_shlibs_CXX=no
15674 aCC*)
15675 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'
15676 # Commands to make compiler produce verbose output that lists
15677 # what "hidden" libraries, object files and flags are used when
15678 # linking a shared library.
15680 # There doesn't appear to be a way to prevent this compiler from
15681 # explicitly linking system object files so we need to strip them
15682 # from the output so that they don't get included in the library
15683 # dependencies.
15684 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
15687 if test "$GXX" = yes; then
15688 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'
15689 else
15690 # FIXME: insert proper C++ library support
15691 ld_shlibs_CXX=no
15694 esac
15697 hpux10*|hpux11*)
15698 if test $with_gnu_ld = no; then
15699 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15700 hardcode_libdir_separator_CXX=:
15702 case $host_cpu in
15703 hppa*64*|ia64*)
15706 export_dynamic_flag_spec_CXX='${wl}-E'
15708 esac
15710 case $host_cpu in
15711 hppa*64*|ia64*)
15712 hardcode_direct_CXX=no
15713 hardcode_shlibpath_var_CXX=no
15716 hardcode_direct_CXX=yes
15717 hardcode_direct_absolute_CXX=yes
15718 hardcode_minus_L_CXX=yes # Not in the search PATH,
15719 # but as the default
15720 # location of the library.
15722 esac
15724 case $cc_basename in
15725 CC*)
15726 # FIXME: insert proper C++ library support
15727 ld_shlibs_CXX=no
15729 aCC*)
15730 case $host_cpu in
15731 hppa*64*)
15732 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15734 ia64*)
15735 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15738 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15740 esac
15741 # Commands to make compiler produce verbose output that lists
15742 # what "hidden" libraries, object files and flags are used when
15743 # linking a shared library.
15745 # There doesn't appear to be a way to prevent this compiler from
15746 # explicitly linking system object files so we need to strip them
15747 # from the output so that they don't get included in the library
15748 # dependencies.
15749 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; func_echo_all "$list"'
15752 if test "$GXX" = yes; then
15753 if test $with_gnu_ld = no; then
15754 case $host_cpu in
15755 hppa*64*)
15756 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15758 ia64*)
15759 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15762 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'
15764 esac
15766 else
15767 # FIXME: insert proper C++ library support
15768 ld_shlibs_CXX=no
15771 esac
15774 interix[3-9]*)
15775 hardcode_direct_CXX=no
15776 hardcode_shlibpath_var_CXX=no
15777 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15778 export_dynamic_flag_spec_CXX='${wl}-E'
15779 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15780 # Instead, shared libraries are loaded at an image base (0x10000000 by
15781 # default) and relocated if they conflict, which is a slow very memory
15782 # consuming and fragmenting process. To avoid this, we pick a random,
15783 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15784 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15785 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15786 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15788 irix5* | irix6*)
15789 case $cc_basename in
15790 CC*)
15791 # SGI C++
15792 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
15794 # Archives containing C++ object files must be created using
15795 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15796 # necessary to make sure instantiated templates are included
15797 # in the archive.
15798 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15801 if test "$GXX" = yes; then
15802 if test "$with_gnu_ld" = no; then
15803 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15804 else
15805 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
15808 link_all_deplibs_CXX=yes
15810 esac
15811 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15812 hardcode_libdir_separator_CXX=:
15813 inherit_rpath_CXX=yes
15816 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15817 case $cc_basename in
15818 KCC*)
15819 # Kuck and Associates, Inc. (KAI) C++ Compiler
15821 # KCC will only create a shared library if the output file
15822 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15823 # to its proper name (with version) after linking.
15824 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'
15825 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'
15826 # Commands to make compiler produce verbose output that lists
15827 # what "hidden" libraries, object files and flags are used when
15828 # linking a shared library.
15830 # There doesn't appear to be a way to prevent this compiler from
15831 # explicitly linking system object files so we need to strip them
15832 # from the output so that they don't get included in the library
15833 # dependencies.
15834 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; func_echo_all "$list"'
15836 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15837 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15839 # Archives containing C++ object files must be created using
15840 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15841 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15843 icpc* | ecpc* )
15844 # Intel C++
15845 with_gnu_ld=yes
15846 # version 8.0 and above of icpc choke on multiply defined symbols
15847 # if we add $predep_objects and $postdep_objects, however 7.1 and
15848 # earlier do not add the objects themselves.
15849 case `$CC -V 2>&1` in
15850 *"Version 7."*)
15851 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15852 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'
15854 *) # Version 8.0 or newer
15855 tmp_idyn=
15856 case $host_cpu in
15857 ia64*) tmp_idyn=' -i_dynamic';;
15858 esac
15859 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15860 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15862 esac
15863 archive_cmds_need_lc_CXX=no
15864 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15865 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15866 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15868 pgCC* | pgcpp*)
15869 # Portland Group C++ compiler
15870 case `$CC -V` in
15871 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15872 prelink_cmds_CXX='tpldir=Template.dir~
15873 rm -rf $tpldir~
15874 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15875 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15876 old_archive_cmds_CXX='tpldir=Template.dir~
15877 rm -rf $tpldir~
15878 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15879 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15880 $RANLIB $oldlib'
15881 archive_cmds_CXX='tpldir=Template.dir~
15882 rm -rf $tpldir~
15883 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15884 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15885 archive_expsym_cmds_CXX='tpldir=Template.dir~
15886 rm -rf $tpldir~
15887 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15888 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15890 *) # Version 6 and above use weak symbols
15891 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15892 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15894 esac
15896 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15897 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15898 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15900 cxx*)
15901 # Compaq C++
15902 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15903 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'
15905 runpath_var=LD_RUN_PATH
15906 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15907 hardcode_libdir_separator_CXX=:
15909 # Commands to make compiler produce verbose output that lists
15910 # what "hidden" libraries, object files and flags are used when
15911 # linking a shared library.
15913 # There doesn't appear to be a way to prevent this compiler from
15914 # explicitly linking system object files so we need to strip them
15915 # from the output so that they don't get included in the library
15916 # dependencies.
15917 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed'
15919 xl* | mpixl* | bgxl*)
15920 # IBM XL 8.0 on PPC, with GNU ld
15921 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15922 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15923 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15924 if test "x$supports_anon_versioning" = xyes; then
15925 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15926 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15927 echo "local: *; };" >> $output_objdir/$libname.ver~
15928 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15932 case `$CC -V 2>&1 | sed 5q` in
15933 *Sun\ C*)
15934 # Sun C++ 5.9
15935 no_undefined_flag_CXX=' -zdefs'
15936 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15937 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
15938 hardcode_libdir_flag_spec_CXX='-R$libdir'
15939 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
15940 compiler_needs_object_CXX=yes
15942 # Not sure whether something based on
15943 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15944 # would be better.
15945 output_verbose_link_cmd='func_echo_all'
15947 # Archives containing C++ object files must be created using
15948 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15949 # necessary to make sure instantiated templates are included
15950 # in the archive.
15951 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15953 esac
15955 esac
15958 lynxos*)
15959 # FIXME: insert proper C++ library support
15960 ld_shlibs_CXX=no
15963 m88k*)
15964 # FIXME: insert proper C++ library support
15965 ld_shlibs_CXX=no
15968 mvs*)
15969 case $cc_basename in
15970 cxx*)
15971 # FIXME: insert proper C++ library support
15972 ld_shlibs_CXX=no
15975 # FIXME: insert proper C++ library support
15976 ld_shlibs_CXX=no
15978 esac
15981 netbsd*)
15982 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15983 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15984 wlarc=
15985 hardcode_libdir_flag_spec_CXX='-R$libdir'
15986 hardcode_direct_CXX=yes
15987 hardcode_shlibpath_var_CXX=no
15989 # Workaround some broken pre-1.5 toolchains
15990 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15993 *nto* | *qnx*)
15994 ld_shlibs_CXX=yes
15997 openbsd2*)
15998 # C++ shared libraries are fairly broken
15999 ld_shlibs_CXX=no
16002 openbsd*)
16003 if test -f /usr/libexec/ld.so; then
16004 hardcode_direct_CXX=yes
16005 hardcode_shlibpath_var_CXX=no
16006 hardcode_direct_absolute_CXX=yes
16007 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16008 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16009 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16010 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16011 export_dynamic_flag_spec_CXX='${wl}-E'
16012 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16014 output_verbose_link_cmd=func_echo_all
16015 else
16016 ld_shlibs_CXX=no
16020 osf3* | osf4* | osf5*)
16021 case $cc_basename in
16022 KCC*)
16023 # Kuck and Associates, Inc. (KAI) C++ Compiler
16025 # KCC will only create a shared library if the output file
16026 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16027 # to its proper name (with version) after linking.
16028 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'
16030 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
16031 hardcode_libdir_separator_CXX=:
16033 # Archives containing C++ object files must be created using
16034 # the KAI C++ compiler.
16035 case $host in
16036 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
16037 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
16038 esac
16040 RCC*)
16041 # Rational C++ 2.4.1
16042 # FIXME: insert proper C++ library support
16043 ld_shlibs_CXX=no
16045 cxx*)
16046 case $host in
16047 osf3*)
16048 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16049 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16050 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16053 allow_undefined_flag_CXX=' -expect_unresolved \*'
16054 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
16055 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16056 echo "-hidden">> $lib.exp~
16057 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
16058 $RM $lib.exp'
16059 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16061 esac
16063 hardcode_libdir_separator_CXX=:
16065 # Commands to make compiler produce verbose output that lists
16066 # what "hidden" libraries, object files and flags are used when
16067 # linking a shared library.
16069 # There doesn't appear to be a way to prevent this compiler from
16070 # explicitly linking system object files so we need to strip them
16071 # from the output so that they don't get included in the library
16072 # dependencies.
16073 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"'
16076 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16077 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16078 case $host in
16079 osf3*)
16080 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16083 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" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16085 esac
16087 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16088 hardcode_libdir_separator_CXX=:
16090 # Commands to make compiler produce verbose output that lists
16091 # what "hidden" libraries, object files and flags are used when
16092 # linking a shared library.
16093 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16095 else
16096 # FIXME: insert proper C++ library support
16097 ld_shlibs_CXX=no
16100 esac
16103 psos*)
16104 # FIXME: insert proper C++ library support
16105 ld_shlibs_CXX=no
16108 sunos4*)
16109 case $cc_basename in
16110 CC*)
16111 # Sun C++ 4.x
16112 # FIXME: insert proper C++ library support
16113 ld_shlibs_CXX=no
16115 lcc*)
16116 # Lucid
16117 # FIXME: insert proper C++ library support
16118 ld_shlibs_CXX=no
16121 # FIXME: insert proper C++ library support
16122 ld_shlibs_CXX=no
16124 esac
16127 solaris*)
16128 case $cc_basename in
16129 CC*)
16130 # Sun C++ 4.2, 5.x and Centerline C++
16131 archive_cmds_need_lc_CXX=yes
16132 no_undefined_flag_CXX=' -zdefs'
16133 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16134 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16135 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16137 hardcode_libdir_flag_spec_CXX='-R$libdir'
16138 hardcode_shlibpath_var_CXX=no
16139 case $host_os in
16140 solaris2.[0-5] | solaris2.[0-5].*) ;;
16142 # The compiler driver will combine and reorder linker options,
16143 # but understands `-z linker_flag'.
16144 # Supported since Solaris 2.6 (maybe 2.5.1?)
16145 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16147 esac
16148 link_all_deplibs_CXX=yes
16150 output_verbose_link_cmd='func_echo_all'
16152 # Archives containing C++ object files must be created using
16153 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16154 # necessary to make sure instantiated templates are included
16155 # in the archive.
16156 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16158 gcx*)
16159 # Green Hills C++ Compiler
16160 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16162 # The C++ compiler must be used to create the archive.
16163 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16166 # GNU C++ compiler with Solaris linker
16167 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16168 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16169 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16170 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16171 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16172 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16174 # Commands to make compiler produce verbose output that lists
16175 # what "hidden" libraries, object files and flags are used when
16176 # linking a shared library.
16177 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16178 else
16179 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16180 # platform.
16181 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16182 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16183 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16185 # Commands to make compiler produce verbose output that lists
16186 # what "hidden" libraries, object files and flags are used when
16187 # linking a shared library.
16188 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16191 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16192 case $host_os in
16193 solaris2.[0-5] | solaris2.[0-5].*) ;;
16195 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16197 esac
16200 esac
16203 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16204 no_undefined_flag_CXX='${wl}-z,text'
16205 archive_cmds_need_lc_CXX=no
16206 hardcode_shlibpath_var_CXX=no
16207 runpath_var='LD_RUN_PATH'
16209 case $cc_basename in
16210 CC*)
16211 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16212 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16215 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16216 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16218 esac
16221 sysv5* | sco3.2v5* | sco5v6*)
16222 # Note: We can NOT use -z defs as we might desire, because we do not
16223 # link with -lc, and that would cause any symbols used from libc to
16224 # always be unresolved, which means just about no library would
16225 # ever link correctly. If we're not using GNU ld we use -z text
16226 # though, which does catch some bad symbols but isn't as heavy-handed
16227 # as -z defs.
16228 no_undefined_flag_CXX='${wl}-z,text'
16229 allow_undefined_flag_CXX='${wl}-z,nodefs'
16230 archive_cmds_need_lc_CXX=no
16231 hardcode_shlibpath_var_CXX=no
16232 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16233 hardcode_libdir_separator_CXX=':'
16234 link_all_deplibs_CXX=yes
16235 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16236 runpath_var='LD_RUN_PATH'
16238 case $cc_basename in
16239 CC*)
16240 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16241 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16242 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16243 '"$old_archive_cmds_CXX"
16244 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16245 '"$reload_cmds_CXX"
16248 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16249 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16251 esac
16254 tandem*)
16255 case $cc_basename in
16256 NCC*)
16257 # NonStop-UX NCC 3.20
16258 # FIXME: insert proper C++ library support
16259 ld_shlibs_CXX=no
16262 # FIXME: insert proper C++ library support
16263 ld_shlibs_CXX=no
16265 esac
16268 vxworks*)
16269 # For VxWorks ports, we assume the use of a GNU linker with
16270 # standard elf conventions.
16271 ld_shlibs_CXX=yes
16275 # FIXME: insert proper C++ library support
16276 ld_shlibs_CXX=no
16278 esac
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16281 $as_echo "$ld_shlibs_CXX" >&6; }
16282 test "$ld_shlibs_CXX" = no && can_build_shared=no
16284 GCC_CXX="$GXX"
16285 LD_CXX="$LD"
16287 ## CAVEAT EMPTOR:
16288 ## There is no encapsulation within the following macros, do not change
16289 ## the running order or otherwise move them around unless you know exactly
16290 ## what you are doing...
16291 # Dependencies to place before and after the object being linked:
16292 predep_objects_CXX=
16293 postdep_objects_CXX=
16294 predeps_CXX=
16295 postdeps_CXX=
16296 compiler_lib_search_path_CXX=
16298 cat > conftest.$ac_ext <<_LT_EOF
16299 class Foo
16301 public:
16302 Foo (void) { a = 0; }
16303 private:
16304 int a;
16306 _LT_EOF
16308 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16309 (eval $ac_compile) 2>&5
16310 ac_status=$?
16311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16312 test $ac_status = 0; }; then
16313 # Parse the compiler output and extract the necessary
16314 # objects, libraries and library flags.
16316 # Sentinel used to keep track of whether or not we are before
16317 # the conftest object file.
16318 pre_test_object_deps_done=no
16320 for p in `eval "$output_verbose_link_cmd"`; do
16321 case $p in
16323 -L* | -R* | -l*)
16324 # Some compilers place space between "-{L,R}" and the path.
16325 # Remove the space.
16326 if test $p = "-L" ||
16327 test $p = "-R"; then
16328 prev=$p
16329 continue
16330 else
16331 prev=
16334 if test "$pre_test_object_deps_done" = no; then
16335 case $p in
16336 -L* | -R*)
16337 # Internal compiler library paths should come after those
16338 # provided the user. The postdeps already come after the
16339 # user supplied libs so there is no need to process them.
16340 if test -z "$compiler_lib_search_path_CXX"; then
16341 compiler_lib_search_path_CXX="${prev}${p}"
16342 else
16343 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16346 # The "-l" case would never come before the object being
16347 # linked, so don't bother handling this case.
16348 esac
16349 else
16350 if test -z "$postdeps_CXX"; then
16351 postdeps_CXX="${prev}${p}"
16352 else
16353 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16358 *.$objext)
16359 # This assumes that the test object file only shows up
16360 # once in the compiler output.
16361 if test "$p" = "conftest.$objext"; then
16362 pre_test_object_deps_done=yes
16363 continue
16366 if test "$pre_test_object_deps_done" = no; then
16367 if test -z "$predep_objects_CXX"; then
16368 predep_objects_CXX="$p"
16369 else
16370 predep_objects_CXX="$predep_objects_CXX $p"
16372 else
16373 if test -z "$postdep_objects_CXX"; then
16374 postdep_objects_CXX="$p"
16375 else
16376 postdep_objects_CXX="$postdep_objects_CXX $p"
16381 *) ;; # Ignore the rest.
16383 esac
16384 done
16386 # Clean up.
16387 rm -f a.out a.exe
16388 else
16389 echo "libtool.m4: error: problem compiling CXX test program"
16392 $RM -f confest.$objext
16394 # PORTME: override above test on systems where it is broken
16395 case $host_os in
16396 interix[3-9]*)
16397 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16398 # hack all around it, let's just trust "g++" to DTRT.
16399 predep_objects_CXX=
16400 postdep_objects_CXX=
16401 postdeps_CXX=
16404 linux*)
16405 case `$CC -V 2>&1 | sed 5q` in
16406 *Sun\ C*)
16407 # Sun C++ 5.9
16409 # The more standards-conforming stlport4 library is
16410 # incompatible with the Cstd library. Avoid specifying
16411 # it if it's in CXXFLAGS. Ignore libCrun as
16412 # -library=stlport4 depends on it.
16413 case " $CXX $CXXFLAGS " in
16414 *" -library=stlport4 "*)
16415 solaris_use_stlport4=yes
16417 esac
16419 if test "$solaris_use_stlport4" != yes; then
16420 postdeps_CXX='-library=Cstd -library=Crun'
16423 esac
16426 solaris*)
16427 case $cc_basename in
16428 CC*)
16429 # The more standards-conforming stlport4 library is
16430 # incompatible with the Cstd library. Avoid specifying
16431 # it if it's in CXXFLAGS. Ignore libCrun as
16432 # -library=stlport4 depends on it.
16433 case " $CXX $CXXFLAGS " in
16434 *" -library=stlport4 "*)
16435 solaris_use_stlport4=yes
16437 esac
16439 # Adding this requires a known-good setup of shared libraries for
16440 # Sun compiler versions before 5.6, else PIC objects from an old
16441 # archive will be linked into the output, leading to subtle bugs.
16442 if test "$solaris_use_stlport4" != yes; then
16443 postdeps_CXX='-library=Cstd -library=Crun'
16446 esac
16448 esac
16451 case " $postdeps_CXX " in
16452 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16453 esac
16454 compiler_lib_search_dirs_CXX=
16455 if test -n "${compiler_lib_search_path_CXX}"; then
16456 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16489 lt_prog_compiler_wl_CXX=
16490 lt_prog_compiler_pic_CXX=
16491 lt_prog_compiler_static_CXX=
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16494 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16496 # C++ specific cases for pic, static, wl, etc.
16497 if test "$GXX" = yes; then
16498 lt_prog_compiler_wl_CXX='-Wl,'
16499 lt_prog_compiler_static_CXX='-static'
16501 case $host_os in
16502 aix*)
16503 # All AIX code is PIC.
16504 if test "$host_cpu" = ia64; then
16505 # AIX 5 now supports IA64 processor
16506 lt_prog_compiler_static_CXX='-Bstatic'
16508 lt_prog_compiler_pic_CXX='-fPIC'
16511 amigaos*)
16512 case $host_cpu in
16513 powerpc)
16514 # see comment about AmigaOS4 .so support
16515 lt_prog_compiler_pic_CXX='-fPIC'
16517 m68k)
16518 # FIXME: we need at least 68020 code to build shared libraries, but
16519 # adding the `-m68020' flag to GCC prevents building anything better,
16520 # like `-m68040'.
16521 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16523 esac
16526 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16527 # PIC is the default for these OSes.
16529 mingw* | cygwin* | os2* | pw32* | cegcc*)
16530 # This hack is so that the source file can tell whether it is being
16531 # built for inclusion in a dll (and should export symbols for example).
16532 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16533 # (--disable-auto-import) libraries
16534 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16536 darwin* | rhapsody*)
16537 # PIC is the default on this platform
16538 # Common symbols not allowed in MH_DYLIB files
16539 lt_prog_compiler_pic_CXX='-fno-common'
16541 *djgpp*)
16542 # DJGPP does not support shared libraries at all
16543 lt_prog_compiler_pic_CXX=
16545 haiku*)
16546 # PIC is the default for Haiku.
16547 # The "-static" flag exists, but is broken.
16548 lt_prog_compiler_static_CXX=
16550 interix[3-9]*)
16551 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16552 # Instead, we relocate shared libraries at runtime.
16554 sysv4*MP*)
16555 if test -d /usr/nec; then
16556 lt_prog_compiler_pic_CXX=-Kconform_pic
16559 hpux*)
16560 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16561 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16562 # sets the default TLS model and affects inlining.
16563 case $host_cpu in
16564 hppa*64*)
16567 lt_prog_compiler_pic_CXX='-fPIC'
16569 esac
16571 *qnx* | *nto*)
16572 # QNX uses GNU C++, but need to define -shared option too, otherwise
16573 # it will coredump.
16574 lt_prog_compiler_pic_CXX='-fPIC -shared'
16577 lt_prog_compiler_pic_CXX='-fPIC'
16579 esac
16580 else
16581 case $host_os in
16582 aix[4-9]*)
16583 # All AIX code is PIC.
16584 if test "$host_cpu" = ia64; then
16585 # AIX 5 now supports IA64 processor
16586 lt_prog_compiler_static_CXX='-Bstatic'
16587 else
16588 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16591 chorus*)
16592 case $cc_basename in
16593 cxch68*)
16594 # Green Hills C++ Compiler
16595 # _LT_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"
16597 esac
16599 dgux*)
16600 case $cc_basename in
16601 ec++*)
16602 lt_prog_compiler_pic_CXX='-KPIC'
16604 ghcx*)
16605 # Green Hills C++ Compiler
16606 lt_prog_compiler_pic_CXX='-pic'
16610 esac
16612 freebsd* | dragonfly*)
16613 # FreeBSD uses GNU C++
16615 hpux9* | hpux10* | hpux11*)
16616 case $cc_basename in
16617 CC*)
16618 lt_prog_compiler_wl_CXX='-Wl,'
16619 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16620 if test "$host_cpu" != ia64; then
16621 lt_prog_compiler_pic_CXX='+Z'
16624 aCC*)
16625 lt_prog_compiler_wl_CXX='-Wl,'
16626 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16627 case $host_cpu in
16628 hppa*64*|ia64*)
16629 # +Z the default
16632 lt_prog_compiler_pic_CXX='+Z'
16634 esac
16638 esac
16640 interix*)
16641 # This is c89, which is MS Visual C++ (no shared libs)
16642 # Anyone wants to do a port?
16644 irix5* | irix6* | nonstopux*)
16645 case $cc_basename in
16646 CC*)
16647 lt_prog_compiler_wl_CXX='-Wl,'
16648 lt_prog_compiler_static_CXX='-non_shared'
16649 # CC pic flag -KPIC is the default.
16653 esac
16655 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16656 case $cc_basename in
16657 KCC*)
16658 # KAI C++ Compiler
16659 lt_prog_compiler_wl_CXX='--backend -Wl,'
16660 lt_prog_compiler_pic_CXX='-fPIC'
16662 ecpc* )
16663 # old Intel C++ for x86_64 which still supported -KPIC.
16664 lt_prog_compiler_wl_CXX='-Wl,'
16665 lt_prog_compiler_pic_CXX='-KPIC'
16666 lt_prog_compiler_static_CXX='-static'
16668 icpc* )
16669 # Intel C++, used to be incompatible with GCC.
16670 # ICC 10 doesn't accept -KPIC any more.
16671 lt_prog_compiler_wl_CXX='-Wl,'
16672 lt_prog_compiler_pic_CXX='-fPIC'
16673 lt_prog_compiler_static_CXX='-static'
16675 pgCC* | pgcpp*)
16676 # Portland Group C++ compiler
16677 lt_prog_compiler_wl_CXX='-Wl,'
16678 lt_prog_compiler_pic_CXX='-fpic'
16679 lt_prog_compiler_static_CXX='-Bstatic'
16681 cxx*)
16682 # Compaq C++
16683 # Make sure the PIC flag is empty. It appears that all Alpha
16684 # Linux and Compaq Tru64 Unix objects are PIC.
16685 lt_prog_compiler_pic_CXX=
16686 lt_prog_compiler_static_CXX='-non_shared'
16688 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16689 # IBM XL 8.0, 9.0 on PPC and BlueGene
16690 lt_prog_compiler_wl_CXX='-Wl,'
16691 lt_prog_compiler_pic_CXX='-qpic'
16692 lt_prog_compiler_static_CXX='-qstaticlink'
16695 case `$CC -V 2>&1 | sed 5q` in
16696 *Sun\ C*)
16697 # Sun C++ 5.9
16698 lt_prog_compiler_pic_CXX='-KPIC'
16699 lt_prog_compiler_static_CXX='-Bstatic'
16700 lt_prog_compiler_wl_CXX='-Qoption ld '
16702 esac
16704 esac
16706 lynxos*)
16708 m88k*)
16710 mvs*)
16711 case $cc_basename in
16712 cxx*)
16713 lt_prog_compiler_pic_CXX='-W c,exportall'
16717 esac
16719 netbsd*)
16721 *qnx* | *nto*)
16722 # QNX uses GNU C++, but need to define -shared option too, otherwise
16723 # it will coredump.
16724 lt_prog_compiler_pic_CXX='-fPIC -shared'
16726 osf3* | osf4* | osf5*)
16727 case $cc_basename in
16728 KCC*)
16729 lt_prog_compiler_wl_CXX='--backend -Wl,'
16731 RCC*)
16732 # Rational C++ 2.4.1
16733 lt_prog_compiler_pic_CXX='-pic'
16735 cxx*)
16736 # Digital/Compaq C++
16737 lt_prog_compiler_wl_CXX='-Wl,'
16738 # Make sure the PIC flag is empty. It appears that all Alpha
16739 # Linux and Compaq Tru64 Unix objects are PIC.
16740 lt_prog_compiler_pic_CXX=
16741 lt_prog_compiler_static_CXX='-non_shared'
16745 esac
16747 psos*)
16749 solaris*)
16750 case $cc_basename in
16751 CC*)
16752 # Sun C++ 4.2, 5.x and Centerline C++
16753 lt_prog_compiler_pic_CXX='-KPIC'
16754 lt_prog_compiler_static_CXX='-Bstatic'
16755 lt_prog_compiler_wl_CXX='-Qoption ld '
16757 gcx*)
16758 # Green Hills C++ Compiler
16759 lt_prog_compiler_pic_CXX='-PIC'
16763 esac
16765 sunos4*)
16766 case $cc_basename in
16767 CC*)
16768 # Sun C++ 4.x
16769 lt_prog_compiler_pic_CXX='-pic'
16770 lt_prog_compiler_static_CXX='-Bstatic'
16772 lcc*)
16773 # Lucid
16774 lt_prog_compiler_pic_CXX='-pic'
16778 esac
16780 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16781 case $cc_basename in
16782 CC*)
16783 lt_prog_compiler_wl_CXX='-Wl,'
16784 lt_prog_compiler_pic_CXX='-KPIC'
16785 lt_prog_compiler_static_CXX='-Bstatic'
16787 esac
16789 tandem*)
16790 case $cc_basename in
16791 NCC*)
16792 # NonStop-UX NCC 3.20
16793 lt_prog_compiler_pic_CXX='-KPIC'
16797 esac
16799 vxworks*)
16802 lt_prog_compiler_can_build_shared_CXX=no
16804 esac
16807 case $host_os in
16808 # For platforms which do not support PIC, -DPIC is meaningless:
16809 *djgpp*)
16810 lt_prog_compiler_pic_CXX=
16813 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16815 esac
16816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
16817 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16822 # Check to make sure the PIC flag actually works.
16824 if test -n "$lt_prog_compiler_pic_CXX"; then
16825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16826 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16827 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16828 $as_echo_n "(cached) " >&6
16829 else
16830 lt_cv_prog_compiler_pic_works_CXX=no
16831 ac_outfile=conftest.$ac_objext
16832 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16833 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16834 # Insert the option either (1) after the last *FLAGS variable, or
16835 # (2) before a word containing "conftest.", or (3) at the end.
16836 # Note that $ac_compile itself does not contain backslashes and begins
16837 # with a dollar sign (not a hyphen), so the echo should work correctly.
16838 # The option is referenced via a variable to avoid confusing sed.
16839 lt_compile=`echo "$ac_compile" | $SED \
16840 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16841 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16842 -e 's:$: $lt_compiler_flag:'`
16843 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16844 (eval "$lt_compile" 2>conftest.err)
16845 ac_status=$?
16846 cat conftest.err >&5
16847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16848 if (exit $ac_status) && test -s "$ac_outfile"; then
16849 # The compiler can only warn and ignore the option if not recognized
16850 # So say no if there are warnings other than the usual output.
16851 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16852 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16853 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16854 lt_cv_prog_compiler_pic_works_CXX=yes
16857 $RM conftest*
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16861 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16863 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16864 case $lt_prog_compiler_pic_CXX in
16865 "" | " "*) ;;
16866 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16867 esac
16868 else
16869 lt_prog_compiler_pic_CXX=
16870 lt_prog_compiler_can_build_shared_CXX=no
16878 # Check to make sure the static flag actually works.
16880 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16882 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16883 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16884 $as_echo_n "(cached) " >&6
16885 else
16886 lt_cv_prog_compiler_static_works_CXX=no
16887 save_LDFLAGS="$LDFLAGS"
16888 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16889 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16890 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16891 # The linker can only warn and ignore the option if not recognized
16892 # So say no if there are warnings
16893 if test -s conftest.err; then
16894 # Append any errors to the config.log.
16895 cat conftest.err 1>&5
16896 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16897 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16898 if diff conftest.exp conftest.er2 >/dev/null; then
16899 lt_cv_prog_compiler_static_works_CXX=yes
16901 else
16902 lt_cv_prog_compiler_static_works_CXX=yes
16905 $RM -r conftest*
16906 LDFLAGS="$save_LDFLAGS"
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16910 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16912 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16914 else
16915 lt_prog_compiler_static_CXX=
16921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16922 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16923 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16924 $as_echo_n "(cached) " >&6
16925 else
16926 lt_cv_prog_compiler_c_o_CXX=no
16927 $RM -r conftest 2>/dev/null
16928 mkdir conftest
16929 cd conftest
16930 mkdir out
16931 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16933 lt_compiler_flag="-o out/conftest2.$ac_objext"
16934 # Insert the option either (1) after the last *FLAGS variable, or
16935 # (2) before a word containing "conftest.", or (3) at the end.
16936 # Note that $ac_compile itself does not contain backslashes and begins
16937 # with a dollar sign (not a hyphen), so the echo should work correctly.
16938 lt_compile=`echo "$ac_compile" | $SED \
16939 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16940 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16941 -e 's:$: $lt_compiler_flag:'`
16942 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16943 (eval "$lt_compile" 2>out/conftest.err)
16944 ac_status=$?
16945 cat out/conftest.err >&5
16946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16947 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16948 then
16949 # The compiler can only warn and ignore the option if not recognized
16950 # So say no if there are warnings
16951 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16952 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16953 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16954 lt_cv_prog_compiler_c_o_CXX=yes
16957 chmod u+w . 2>&5
16958 $RM conftest*
16959 # SGI C++ compiler will create directory out/ii_files/ for
16960 # template instantiation
16961 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16962 $RM out/* && rmdir out
16963 cd ..
16964 $RM -r conftest
16965 $RM conftest*
16968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16969 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16974 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16975 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16976 $as_echo_n "(cached) " >&6
16977 else
16978 lt_cv_prog_compiler_c_o_CXX=no
16979 $RM -r conftest 2>/dev/null
16980 mkdir conftest
16981 cd conftest
16982 mkdir out
16983 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16985 lt_compiler_flag="-o out/conftest2.$ac_objext"
16986 # Insert the option either (1) after the last *FLAGS variable, or
16987 # (2) before a word containing "conftest.", or (3) at the end.
16988 # Note that $ac_compile itself does not contain backslashes and begins
16989 # with a dollar sign (not a hyphen), so the echo should work correctly.
16990 lt_compile=`echo "$ac_compile" | $SED \
16991 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16992 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16993 -e 's:$: $lt_compiler_flag:'`
16994 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16995 (eval "$lt_compile" 2>out/conftest.err)
16996 ac_status=$?
16997 cat out/conftest.err >&5
16998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16999 if (exit $ac_status) && test -s out/conftest2.$ac_objext
17000 then
17001 # The compiler can only warn and ignore the option if not recognized
17002 # So say no if there are warnings
17003 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
17004 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
17005 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
17006 lt_cv_prog_compiler_c_o_CXX=yes
17009 chmod u+w . 2>&5
17010 $RM conftest*
17011 # SGI C++ compiler will create directory out/ii_files/ for
17012 # template instantiation
17013 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
17014 $RM out/* && rmdir out
17015 cd ..
17016 $RM -r conftest
17017 $RM conftest*
17020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17021 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
17026 hard_links="nottested"
17027 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
17028 # do not overwrite the value of need_locks provided by the user
17029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
17030 $as_echo_n "checking if we can lock with hard links... " >&6; }
17031 hard_links=yes
17032 $RM conftest*
17033 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17034 touch conftest.a
17035 ln conftest.a conftest.b 2>&5 || hard_links=no
17036 ln conftest.a conftest.b 2>/dev/null && hard_links=no
17037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
17038 $as_echo "$hard_links" >&6; }
17039 if test "$hard_links" = no; then
17040 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17041 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17042 need_locks=warn
17044 else
17045 need_locks=no
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17051 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17053 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17054 case $host_os in
17055 aix[4-9]*)
17056 # If we're using GNU nm, then we don't want the "-C" option.
17057 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17058 # Also, AIX nm treats weak defined symbols like other global defined
17059 # symbols, whereas GNU nm marks them as "W".
17060 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17061 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17062 else
17063 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
17066 pw32*)
17067 export_symbols_cmds_CXX="$ltdll_cmds"
17069 cygwin* | mingw* | cegcc*)
17070 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
17073 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17075 esac
17076 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17079 $as_echo "$ld_shlibs_CXX" >&6; }
17080 test "$ld_shlibs_CXX" = no && can_build_shared=no
17082 with_gnu_ld_CXX=$with_gnu_ld
17090 # Do we need to explicitly link libc?
17092 case "x$archive_cmds_need_lc_CXX" in
17093 x|xyes)
17094 # Assume -lc should be added
17095 archive_cmds_need_lc_CXX=yes
17097 if test "$enable_shared" = yes && test "$GCC" = yes; then
17098 case $archive_cmds_CXX in
17099 *'~'*)
17100 # FIXME: we may have to deal with multi-command sequences.
17102 '$CC '*)
17103 # Test whether the compiler implicitly links with -lc since on some
17104 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17105 # to ld, don't add -lc before -lgcc.
17106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17107 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17108 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17109 $as_echo_n "(cached) " >&6
17110 else
17111 $RM conftest*
17112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17114 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17115 (eval $ac_compile) 2>&5
17116 ac_status=$?
17117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17118 test $ac_status = 0; } 2>conftest.err; then
17119 soname=conftest
17120 lib=conftest
17121 libobjs=conftest.$ac_objext
17122 deplibs=
17123 wl=$lt_prog_compiler_wl_CXX
17124 pic_flag=$lt_prog_compiler_pic_CXX
17125 compiler_flags=-v
17126 linker_flags=-v
17127 verstring=
17128 output_objdir=.
17129 libname=conftest
17130 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17131 allow_undefined_flag_CXX=
17132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17133 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17134 ac_status=$?
17135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17136 test $ac_status = 0; }
17137 then
17138 lt_cv_archive_cmds_need_lc_CXX=no
17139 else
17140 lt_cv_archive_cmds_need_lc_CXX=yes
17142 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17143 else
17144 cat conftest.err 1>&5
17146 $RM conftest*
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17150 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17151 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17153 esac
17156 esac
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17222 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17224 library_names_spec=
17225 libname_spec='lib$name'
17226 soname_spec=
17227 shrext_cmds=".so"
17228 postinstall_cmds=
17229 postuninstall_cmds=
17230 finish_cmds=
17231 finish_eval=
17232 shlibpath_var=
17233 shlibpath_overrides_runpath=unknown
17234 version_type=none
17235 dynamic_linker="$host_os ld.so"
17236 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17237 need_lib_prefix=unknown
17238 hardcode_into_libs=no
17240 # when you set need_version to no, make sure it does not cause -set_version
17241 # flags to be left without arguments
17242 need_version=unknown
17244 case $host_os in
17245 aix3*)
17246 version_type=linux
17247 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17248 shlibpath_var=LIBPATH
17250 # AIX 3 has no versioning support, so we append a major version to the name.
17251 soname_spec='${libname}${release}${shared_ext}$major'
17254 aix[4-9]*)
17255 version_type=linux
17256 need_lib_prefix=no
17257 need_version=no
17258 hardcode_into_libs=yes
17259 if test "$host_cpu" = ia64; then
17260 # AIX 5 supports IA64
17261 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17262 shlibpath_var=LD_LIBRARY_PATH
17263 else
17264 # With GCC up to 2.95.x, collect2 would create an import file
17265 # for dependence libraries. The import file would start with
17266 # the line `#! .'. This would cause the generated library to
17267 # depend on `.', always an invalid library. This was fixed in
17268 # development snapshots of GCC prior to 3.0.
17269 case $host_os in
17270 aix4 | aix4.[01] | aix4.[01].*)
17271 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17272 echo ' yes '
17273 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17275 else
17276 can_build_shared=no
17279 esac
17280 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17281 # soname into executable. Probably we can add versioning support to
17282 # collect2, so additional links can be useful in future.
17283 if test "$aix_use_runtimelinking" = yes; then
17284 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17285 # instead of lib<name>.a to let people know that these are not
17286 # typical AIX shared libraries.
17287 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17288 else
17289 # We preserve .a as extension for shared libraries through AIX4.2
17290 # and later when we are not doing run time linking.
17291 library_names_spec='${libname}${release}.a $libname.a'
17292 soname_spec='${libname}${release}${shared_ext}$major'
17294 shlibpath_var=LIBPATH
17298 amigaos*)
17299 case $host_cpu in
17300 powerpc)
17301 # Since July 2007 AmigaOS4 officially supports .so libraries.
17302 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17305 m68k)
17306 library_names_spec='$libname.ixlibrary $libname.a'
17307 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17308 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
17310 esac
17313 beos*)
17314 library_names_spec='${libname}${shared_ext}'
17315 dynamic_linker="$host_os ld.so"
17316 shlibpath_var=LIBRARY_PATH
17319 bsdi[45]*)
17320 version_type=linux
17321 need_version=no
17322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17323 soname_spec='${libname}${release}${shared_ext}$major'
17324 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17325 shlibpath_var=LD_LIBRARY_PATH
17326 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17327 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17328 # the default ld.so.conf also contains /usr/contrib/lib and
17329 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17330 # libtool to hard-code these into programs
17333 cygwin* | mingw* | pw32* | cegcc*)
17334 version_type=windows
17335 shrext_cmds=".dll"
17336 need_version=no
17337 need_lib_prefix=no
17339 case $GCC,$host_os in
17340 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17341 library_names_spec='$libname.dll.a'
17342 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17343 postinstall_cmds='base_file=`basename \${file}`~
17344 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17345 dldir=$destdir/`dirname \$dlpath`~
17346 test -d \$dldir || mkdir -p \$dldir~
17347 $install_prog $dir/$dlname \$dldir/$dlname~
17348 chmod a+x \$dldir/$dlname~
17349 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17350 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17352 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17353 dlpath=$dir/\$dldll~
17354 $RM \$dlpath'
17355 shlibpath_overrides_runpath=yes
17357 case $host_os in
17358 cygwin*)
17359 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17360 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17363 mingw* | cegcc*)
17364 # MinGW DLLs use traditional 'lib' prefix
17365 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17367 pw32*)
17368 # pw32 DLLs use 'pw' prefix rather than 'lib'
17369 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17371 esac
17375 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17377 esac
17378 dynamic_linker='Win32 ld.exe'
17379 # FIXME: first we should search . and the directory the executable is in
17380 shlibpath_var=PATH
17383 darwin* | rhapsody*)
17384 dynamic_linker="$host_os dyld"
17385 version_type=darwin
17386 need_lib_prefix=no
17387 need_version=no
17388 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17389 soname_spec='${libname}${release}${major}$shared_ext'
17390 shlibpath_overrides_runpath=yes
17391 shlibpath_var=DYLD_LIBRARY_PATH
17392 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17394 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17397 dgux*)
17398 version_type=linux
17399 need_lib_prefix=no
17400 need_version=no
17401 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17402 soname_spec='${libname}${release}${shared_ext}$major'
17403 shlibpath_var=LD_LIBRARY_PATH
17406 freebsd* | dragonfly*)
17407 # DragonFly does not have aout. When/if they implement a new
17408 # versioning mechanism, adjust this.
17409 if test -x /usr/bin/objformat; then
17410 objformat=`/usr/bin/objformat`
17411 else
17412 case $host_os in
17413 freebsd[23].*) objformat=aout ;;
17414 *) objformat=elf ;;
17415 esac
17417 version_type=freebsd-$objformat
17418 case $version_type in
17419 freebsd-elf*)
17420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17421 need_version=no
17422 need_lib_prefix=no
17424 freebsd-*)
17425 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17426 need_version=yes
17428 esac
17429 shlibpath_var=LD_LIBRARY_PATH
17430 case $host_os in
17431 freebsd2.*)
17432 shlibpath_overrides_runpath=yes
17434 freebsd3.[01]* | freebsdelf3.[01]*)
17435 shlibpath_overrides_runpath=yes
17436 hardcode_into_libs=yes
17438 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17439 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17440 shlibpath_overrides_runpath=no
17441 hardcode_into_libs=yes
17443 *) # from 4.6 on, and DragonFly
17444 shlibpath_overrides_runpath=yes
17445 hardcode_into_libs=yes
17447 esac
17450 haiku*)
17451 version_type=linux
17452 need_lib_prefix=no
17453 need_version=no
17454 dynamic_linker="$host_os runtime_loader"
17455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17456 soname_spec='${libname}${release}${shared_ext}$major'
17457 shlibpath_var=LIBRARY_PATH
17458 shlibpath_overrides_runpath=yes
17459 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17460 hardcode_into_libs=yes
17463 hpux9* | hpux10* | hpux11*)
17464 # Give a soname corresponding to the major version so that dld.sl refuses to
17465 # link against other versions.
17466 version_type=sunos
17467 need_lib_prefix=no
17468 need_version=no
17469 case $host_cpu in
17470 ia64*)
17471 shrext_cmds='.so'
17472 hardcode_into_libs=yes
17473 dynamic_linker="$host_os dld.so"
17474 shlibpath_var=LD_LIBRARY_PATH
17475 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17477 soname_spec='${libname}${release}${shared_ext}$major'
17478 if test "X$HPUX_IA64_MODE" = X32; then
17479 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17480 else
17481 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17483 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17485 hppa*64*)
17486 shrext_cmds='.sl'
17487 hardcode_into_libs=yes
17488 dynamic_linker="$host_os dld.sl"
17489 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17490 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17492 soname_spec='${libname}${release}${shared_ext}$major'
17493 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17494 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17497 shrext_cmds='.sl'
17498 dynamic_linker="$host_os dld.sl"
17499 shlibpath_var=SHLIB_PATH
17500 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17502 soname_spec='${libname}${release}${shared_ext}$major'
17504 esac
17505 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17506 postinstall_cmds='chmod 555 $lib'
17507 # or fails outright, so override atomically:
17508 install_override_mode=555
17511 interix[3-9]*)
17512 version_type=linux
17513 need_lib_prefix=no
17514 need_version=no
17515 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17516 soname_spec='${libname}${release}${shared_ext}$major'
17517 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17518 shlibpath_var=LD_LIBRARY_PATH
17519 shlibpath_overrides_runpath=no
17520 hardcode_into_libs=yes
17523 irix5* | irix6* | nonstopux*)
17524 case $host_os in
17525 nonstopux*) version_type=nonstopux ;;
17527 if test "$lt_cv_prog_gnu_ld" = yes; then
17528 version_type=linux
17529 else
17530 version_type=irix
17531 fi ;;
17532 esac
17533 need_lib_prefix=no
17534 need_version=no
17535 soname_spec='${libname}${release}${shared_ext}$major'
17536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17537 case $host_os in
17538 irix5* | nonstopux*)
17539 libsuff= shlibsuff=
17542 case $LD in # libtool.m4 will add one of these switches to LD
17543 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17544 libsuff= shlibsuff= libmagic=32-bit;;
17545 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17546 libsuff=32 shlibsuff=N32 libmagic=N32;;
17547 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17548 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17549 *) libsuff= shlibsuff= libmagic=never-match;;
17550 esac
17552 esac
17553 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17554 shlibpath_overrides_runpath=no
17555 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17556 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17557 hardcode_into_libs=yes
17560 # No shared lib support for Linux oldld, aout, or coff.
17561 linux*oldld* | linux*aout* | linux*coff*)
17562 dynamic_linker=no
17565 # This must be Linux ELF.
17567 # uclinux* changes (here and below) have been submitted to the libtool
17568 # project, but have not yet been accepted: they are GCC-local changes
17569 # for the time being. (See
17570 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
17571 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
17572 version_type=linux
17573 need_lib_prefix=no
17574 need_version=no
17575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17576 soname_spec='${libname}${release}${shared_ext}$major'
17577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17578 shlibpath_var=LD_LIBRARY_PATH
17579 shlibpath_overrides_runpath=no
17581 # Some binutils ld are patched to set DT_RUNPATH
17582 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17583 $as_echo_n "(cached) " >&6
17584 else
17585 lt_cv_shlibpath_overrides_runpath=no
17586 save_LDFLAGS=$LDFLAGS
17587 save_libdir=$libdir
17588 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17589 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17590 if test x$gcc_no_link = xyes; then
17591 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17594 /* end confdefs.h. */
17597 main ()
17601 return 0;
17603 _ACEOF
17604 if ac_fn_cxx_try_link "$LINENO"; then :
17605 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17606 lt_cv_shlibpath_overrides_runpath=yes
17609 rm -f core conftest.err conftest.$ac_objext \
17610 conftest$ac_exeext conftest.$ac_ext
17611 LDFLAGS=$save_LDFLAGS
17612 libdir=$save_libdir
17616 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17618 # This implies no fast_install, which is unacceptable.
17619 # Some rework will be needed to allow for fast_install
17620 # before this can be enabled.
17621 hardcode_into_libs=yes
17623 # Append ld.so.conf contents to the search path
17624 if test -f /etc/ld.so.conf; then
17625 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
17626 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17629 # We used to test for /lib/ld.so.1 and disable shared libraries on
17630 # powerpc, because MkLinux only supported shared libraries with the
17631 # GNU dynamic linker. Since this was broken with cross compilers,
17632 # most powerpc-linux boxes support dynamic linking these days and
17633 # people can always --disable-shared, the test was removed, and we
17634 # assume the GNU/Linux dynamic linker is in use.
17635 dynamic_linker='GNU/Linux ld.so'
17638 netbsd*)
17639 version_type=sunos
17640 need_lib_prefix=no
17641 need_version=no
17642 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17644 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17645 dynamic_linker='NetBSD (a.out) ld.so'
17646 else
17647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17648 soname_spec='${libname}${release}${shared_ext}$major'
17649 dynamic_linker='NetBSD ld.elf_so'
17651 shlibpath_var=LD_LIBRARY_PATH
17652 shlibpath_overrides_runpath=yes
17653 hardcode_into_libs=yes
17656 newsos6)
17657 version_type=linux
17658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17659 shlibpath_var=LD_LIBRARY_PATH
17660 shlibpath_overrides_runpath=yes
17663 *nto* | *qnx*)
17664 version_type=qnx
17665 need_lib_prefix=no
17666 need_version=no
17667 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17668 soname_spec='${libname}${release}${shared_ext}$major'
17669 shlibpath_var=LD_LIBRARY_PATH
17670 shlibpath_overrides_runpath=no
17671 hardcode_into_libs=yes
17672 dynamic_linker='ldqnx.so'
17675 openbsd*)
17676 version_type=sunos
17677 sys_lib_dlsearch_path_spec="/usr/lib"
17678 need_lib_prefix=no
17679 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17680 case $host_os in
17681 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17682 *) need_version=no ;;
17683 esac
17684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17685 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17686 shlibpath_var=LD_LIBRARY_PATH
17687 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17688 case $host_os in
17689 openbsd2.[89] | openbsd2.[89].*)
17690 shlibpath_overrides_runpath=no
17693 shlibpath_overrides_runpath=yes
17695 esac
17696 else
17697 shlibpath_overrides_runpath=yes
17701 os2*)
17702 libname_spec='$name'
17703 shrext_cmds=".dll"
17704 need_lib_prefix=no
17705 library_names_spec='$libname${shared_ext} $libname.a'
17706 dynamic_linker='OS/2 ld.exe'
17707 shlibpath_var=LIBPATH
17710 osf3* | osf4* | osf5*)
17711 version_type=osf
17712 need_lib_prefix=no
17713 need_version=no
17714 soname_spec='${libname}${release}${shared_ext}$major'
17715 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17716 shlibpath_var=LD_LIBRARY_PATH
17717 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17718 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17721 rdos*)
17722 dynamic_linker=no
17725 solaris*)
17726 version_type=linux
17727 need_lib_prefix=no
17728 need_version=no
17729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17730 soname_spec='${libname}${release}${shared_ext}$major'
17731 shlibpath_var=LD_LIBRARY_PATH
17732 shlibpath_overrides_runpath=yes
17733 hardcode_into_libs=yes
17734 # ldd complains unless libraries are executable
17735 postinstall_cmds='chmod +x $lib'
17738 sunos4*)
17739 version_type=sunos
17740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17741 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17742 shlibpath_var=LD_LIBRARY_PATH
17743 shlibpath_overrides_runpath=yes
17744 if test "$with_gnu_ld" = yes; then
17745 need_lib_prefix=no
17747 need_version=yes
17750 sysv4 | sysv4.3*)
17751 version_type=linux
17752 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17753 soname_spec='${libname}${release}${shared_ext}$major'
17754 shlibpath_var=LD_LIBRARY_PATH
17755 case $host_vendor in
17756 sni)
17757 shlibpath_overrides_runpath=no
17758 need_lib_prefix=no
17759 runpath_var=LD_RUN_PATH
17761 siemens)
17762 need_lib_prefix=no
17764 motorola)
17765 need_lib_prefix=no
17766 need_version=no
17767 shlibpath_overrides_runpath=no
17768 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17770 esac
17773 sysv4*MP*)
17774 if test -d /usr/nec ;then
17775 version_type=linux
17776 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17777 soname_spec='$libname${shared_ext}.$major'
17778 shlibpath_var=LD_LIBRARY_PATH
17782 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17783 version_type=freebsd-elf
17784 need_lib_prefix=no
17785 need_version=no
17786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17787 soname_spec='${libname}${release}${shared_ext}$major'
17788 shlibpath_var=LD_LIBRARY_PATH
17789 shlibpath_overrides_runpath=yes
17790 hardcode_into_libs=yes
17791 if test "$with_gnu_ld" = yes; then
17792 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17793 else
17794 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17795 case $host_os in
17796 sco3.2v5*)
17797 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17799 esac
17801 sys_lib_dlsearch_path_spec='/usr/lib'
17804 tpf*)
17805 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17806 version_type=linux
17807 need_lib_prefix=no
17808 need_version=no
17809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17810 shlibpath_var=LD_LIBRARY_PATH
17811 shlibpath_overrides_runpath=no
17812 hardcode_into_libs=yes
17815 uts4*)
17816 version_type=linux
17817 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17818 soname_spec='${libname}${release}${shared_ext}$major'
17819 shlibpath_var=LD_LIBRARY_PATH
17822 # Shared libraries for VwWorks, >= 7 only at this stage
17823 # and (fpic) still incompatible with "large" code models
17824 # in a few configurations. Only for RTP mode in any case,
17825 # and upon explicit request at configure time.
17826 vxworks7*)
17827 dynamic_linker=no
17828 case ${with_multisubdir}-${enable_shared} in
17829 *large*)
17831 *mrtp*-yes)
17832 version_type=linux
17833 need_lib_prefix=no
17834 need_version=no
17835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17836 soname_spec='${libname}${release}${shared_ext}$major'
17837 dynamic_linker="$host_os module_loader"
17839 esac
17842 dynamic_linker=no
17844 esac
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17846 $as_echo "$dynamic_linker" >&6; }
17847 test "$dynamic_linker" = no && can_build_shared=no
17849 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17850 if test "$GCC" = yes; then
17851 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17854 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17855 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17857 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17858 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17899 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17900 hardcode_action_CXX=
17901 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17902 test -n "$runpath_var_CXX" ||
17903 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17905 # We can hardcode non-existent directories.
17906 if test "$hardcode_direct_CXX" != no &&
17907 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17908 # have to relink, otherwise we might link with an installed library
17909 # when we should be linking with a yet-to-be-installed one
17910 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17911 test "$hardcode_minus_L_CXX" != no; then
17912 # Linking always hardcodes the temporary library directory.
17913 hardcode_action_CXX=relink
17914 else
17915 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17916 hardcode_action_CXX=immediate
17918 else
17919 # We cannot hardcode anything, or else we can only hardcode existing
17920 # directories.
17921 hardcode_action_CXX=unsupported
17923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17924 $as_echo "$hardcode_action_CXX" >&6; }
17926 if test "$hardcode_action_CXX" = relink ||
17927 test "$inherit_rpath_CXX" = yes; then
17928 # Fast installation is not supported
17929 enable_fast_install=no
17930 elif test "$shlibpath_overrides_runpath" = yes ||
17931 test "$enable_shared" = no; then
17932 # Fast installation is not necessary
17933 enable_fast_install=needless
17942 fi # test -n "$compiler"
17944 CC=$lt_save_CC
17945 LDCXX=$LD
17946 LD=$lt_save_LD
17947 GCC=$lt_save_GCC
17948 with_gnu_ld=$lt_save_with_gnu_ld
17949 lt_cv_path_LDCXX=$lt_cv_path_LD
17950 lt_cv_path_LD=$lt_save_path_LD
17951 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17952 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17953 fi # test "$_lt_caught_CXX_error" != yes
17955 ac_ext=c
17956 ac_cpp='$CPP $CPPFLAGS'
17957 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17958 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17959 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17973 ac_config_commands="$ac_config_commands libtool"
17978 # Only expand once:
17982 enable_dlopen=yes
17987 if test x$enable_darwin_at_rpath = xyes; then
17988 ENABLE_DARWIN_AT_RPATH_TRUE=
17989 ENABLE_DARWIN_AT_RPATH_FALSE='#'
17990 else
17991 ENABLE_DARWIN_AT_RPATH_TRUE='#'
17992 ENABLE_DARWIN_AT_RPATH_FALSE=
17999 if test "${multilib}" = "yes"; then
18000 multilib_arg="--enable-multilib"
18001 else
18002 multilib_arg=
18005 ac_fn_c_check_type "$LINENO" "struct timezone" "ac_cv_type_struct_timezone" "$ac_includes_default"
18006 if test "x$ac_cv_type_struct_timezone" = xyes; then :
18008 cat >>confdefs.h <<_ACEOF
18009 #define HAVE_STRUCT_TIMEZONE 1
18010 _ACEOF
18014 ac_fn_c_check_type "$LINENO" "struct stat" "ac_cv_type_struct_stat" "$ac_includes_default"
18015 if test "x$ac_cv_type_struct_stat" = xyes; then :
18017 cat >>confdefs.h <<_ACEOF
18018 #define HAVE_STRUCT_STAT 1
18019 _ACEOF
18023 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
18024 if test "x$ac_cv_type_struct_timespec" = xyes; then :
18026 cat >>confdefs.h <<_ACEOF
18027 #define HAVE_STRUCT_TIMESPEC 1
18028 _ACEOF
18032 ac_fn_c_check_type "$LINENO" "struct timeval" "ac_cv_type_struct_timeval" "$ac_includes_default"
18033 if test "x$ac_cv_type_struct_timeval" = xyes; then :
18035 cat >>confdefs.h <<_ACEOF
18036 #define HAVE_STRUCT_TIMEVAL 1
18037 _ACEOF
18041 ac_fn_c_check_type "$LINENO" "struct tm" "ac_cv_type_struct_tm" "$ac_includes_default"
18042 if test "x$ac_cv_type_struct_tm" = xyes; then :
18044 cat >>confdefs.h <<_ACEOF
18045 #define HAVE_STRUCT_TM 1
18046 _ACEOF
18052 # Check if struct tm contains the tm_gmtoff field.
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
18054 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
18055 if ${ac_cv_struct_tm_gmtoff+:} false; then :
18056 $as_echo_n "(cached) " >&6
18057 else
18058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18059 /* end confdefs.h. */
18061 #include <time.h>
18064 main ()
18067 struct tm tm;
18068 tm.tm_gmtoff = 1;
18071 return 0;
18073 _ACEOF
18074 if ac_fn_c_try_compile "$LINENO"; then :
18075 ac_cv_struct_tm_gmtoff=yes
18076 else
18077 ac_cv_struct_tm_gmtoff=no
18080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_gmtoff" >&5
18084 $as_echo "$ac_cv_struct_tm_gmtoff" >&6; }
18086 if (test "$ac_cv_struct_tm_gmtoff" = "yes"); then
18087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end detects struct tm with the tm_gmtoff field." >&5
18088 $as_echo_n "checking m2 front end detects struct tm with the tm_gmtoff field.... " >&6; }
18090 $as_echo "#define HAVE_TM_TM_GMTOFF 1" >>confdefs.h
18094 ac_ext=c
18095 ac_cpp='$CPP $CPPFLAGS'
18096 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18097 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18098 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18100 # Check the compiler.
18101 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
18102 # We must force CC to /not/ be precious variables; otherwise
18103 # the wrong, non-multilib-adjusted value will be used in multilibs.
18104 # As a side effect, we have to subst CFLAGS ourselves.
18108 ac_ext=c
18109 ac_cpp='$CPP $CPPFLAGS'
18110 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18111 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18112 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18113 if test -n "$ac_tool_prefix"; then
18114 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18115 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18117 $as_echo_n "checking for $ac_word... " >&6; }
18118 if ${ac_cv_prog_CC+:} false; then :
18119 $as_echo_n "(cached) " >&6
18120 else
18121 if test -n "$CC"; then
18122 ac_cv_prog_CC="$CC" # Let the user override the test.
18123 else
18124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18125 for as_dir in $PATH
18127 IFS=$as_save_IFS
18128 test -z "$as_dir" && as_dir=.
18129 for ac_exec_ext in '' $ac_executable_extensions; do
18130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18131 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18133 break 2
18135 done
18136 done
18137 IFS=$as_save_IFS
18141 CC=$ac_cv_prog_CC
18142 if test -n "$CC"; then
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18144 $as_echo "$CC" >&6; }
18145 else
18146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18147 $as_echo "no" >&6; }
18152 if test -z "$ac_cv_prog_CC"; then
18153 ac_ct_CC=$CC
18154 # Extract the first word of "gcc", so it can be a program name with args.
18155 set dummy gcc; ac_word=$2
18156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18157 $as_echo_n "checking for $ac_word... " >&6; }
18158 if ${ac_cv_prog_ac_ct_CC+:} false; then :
18159 $as_echo_n "(cached) " >&6
18160 else
18161 if test -n "$ac_ct_CC"; then
18162 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18163 else
18164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18165 for as_dir in $PATH
18167 IFS=$as_save_IFS
18168 test -z "$as_dir" && as_dir=.
18169 for ac_exec_ext in '' $ac_executable_extensions; do
18170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18171 ac_cv_prog_ac_ct_CC="gcc"
18172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18173 break 2
18175 done
18176 done
18177 IFS=$as_save_IFS
18181 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18182 if test -n "$ac_ct_CC"; then
18183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18184 $as_echo "$ac_ct_CC" >&6; }
18185 else
18186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18187 $as_echo "no" >&6; }
18190 if test "x$ac_ct_CC" = x; then
18191 CC=""
18192 else
18193 case $cross_compiling:$ac_tool_warned in
18194 yes:)
18195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18197 ac_tool_warned=yes ;;
18198 esac
18199 CC=$ac_ct_CC
18201 else
18202 CC="$ac_cv_prog_CC"
18205 if test -z "$CC"; then
18206 if test -n "$ac_tool_prefix"; then
18207 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18208 set dummy ${ac_tool_prefix}cc; ac_word=$2
18209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18210 $as_echo_n "checking for $ac_word... " >&6; }
18211 if ${ac_cv_prog_CC+:} false; then :
18212 $as_echo_n "(cached) " >&6
18213 else
18214 if test -n "$CC"; then
18215 ac_cv_prog_CC="$CC" # Let the user override the test.
18216 else
18217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18218 for as_dir in $PATH
18220 IFS=$as_save_IFS
18221 test -z "$as_dir" && as_dir=.
18222 for ac_exec_ext in '' $ac_executable_extensions; do
18223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18224 ac_cv_prog_CC="${ac_tool_prefix}cc"
18225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18226 break 2
18228 done
18229 done
18230 IFS=$as_save_IFS
18234 CC=$ac_cv_prog_CC
18235 if test -n "$CC"; then
18236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18237 $as_echo "$CC" >&6; }
18238 else
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18240 $as_echo "no" >&6; }
18246 if test -z "$CC"; then
18247 # Extract the first word of "cc", so it can be a program name with args.
18248 set dummy cc; ac_word=$2
18249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18250 $as_echo_n "checking for $ac_word... " >&6; }
18251 if ${ac_cv_prog_CC+:} false; then :
18252 $as_echo_n "(cached) " >&6
18253 else
18254 if test -n "$CC"; then
18255 ac_cv_prog_CC="$CC" # Let the user override the test.
18256 else
18257 ac_prog_rejected=no
18258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18259 for as_dir in $PATH
18261 IFS=$as_save_IFS
18262 test -z "$as_dir" && as_dir=.
18263 for ac_exec_ext in '' $ac_executable_extensions; do
18264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18265 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18266 ac_prog_rejected=yes
18267 continue
18269 ac_cv_prog_CC="cc"
18270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18271 break 2
18273 done
18274 done
18275 IFS=$as_save_IFS
18277 if test $ac_prog_rejected = yes; then
18278 # We found a bogon in the path, so make sure we never use it.
18279 set dummy $ac_cv_prog_CC
18280 shift
18281 if test $# != 0; then
18282 # We chose a different compiler from the bogus one.
18283 # However, it has the same basename, so the bogon will be chosen
18284 # first if we set CC to just the basename; use the full file name.
18285 shift
18286 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18291 CC=$ac_cv_prog_CC
18292 if test -n "$CC"; then
18293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18294 $as_echo "$CC" >&6; }
18295 else
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18297 $as_echo "no" >&6; }
18302 if test -z "$CC"; then
18303 if test -n "$ac_tool_prefix"; then
18304 for ac_prog in cl.exe
18306 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18307 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18309 $as_echo_n "checking for $ac_word... " >&6; }
18310 if ${ac_cv_prog_CC+:} false; then :
18311 $as_echo_n "(cached) " >&6
18312 else
18313 if test -n "$CC"; then
18314 ac_cv_prog_CC="$CC" # Let the user override the test.
18315 else
18316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18317 for as_dir in $PATH
18319 IFS=$as_save_IFS
18320 test -z "$as_dir" && as_dir=.
18321 for ac_exec_ext in '' $ac_executable_extensions; do
18322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18323 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18325 break 2
18327 done
18328 done
18329 IFS=$as_save_IFS
18333 CC=$ac_cv_prog_CC
18334 if test -n "$CC"; then
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18336 $as_echo "$CC" >&6; }
18337 else
18338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18339 $as_echo "no" >&6; }
18343 test -n "$CC" && break
18344 done
18346 if test -z "$CC"; then
18347 ac_ct_CC=$CC
18348 for ac_prog in cl.exe
18350 # Extract the first word of "$ac_prog", so it can be a program name with args.
18351 set dummy $ac_prog; ac_word=$2
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18353 $as_echo_n "checking for $ac_word... " >&6; }
18354 if ${ac_cv_prog_ac_ct_CC+:} false; then :
18355 $as_echo_n "(cached) " >&6
18356 else
18357 if test -n "$ac_ct_CC"; then
18358 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18359 else
18360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18361 for as_dir in $PATH
18363 IFS=$as_save_IFS
18364 test -z "$as_dir" && as_dir=.
18365 for ac_exec_ext in '' $ac_executable_extensions; do
18366 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18367 ac_cv_prog_ac_ct_CC="$ac_prog"
18368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18369 break 2
18371 done
18372 done
18373 IFS=$as_save_IFS
18377 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18378 if test -n "$ac_ct_CC"; then
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18380 $as_echo "$ac_ct_CC" >&6; }
18381 else
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18383 $as_echo "no" >&6; }
18387 test -n "$ac_ct_CC" && break
18388 done
18390 if test "x$ac_ct_CC" = x; then
18391 CC=""
18392 else
18393 case $cross_compiling:$ac_tool_warned in
18394 yes:)
18395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18397 ac_tool_warned=yes ;;
18398 esac
18399 CC=$ac_ct_CC
18406 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18408 as_fn_error $? "no acceptable C compiler found in \$PATH
18409 See \`config.log' for more details" "$LINENO" 5; }
18411 # Provide some information about the compiler.
18412 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
18413 set X $ac_compile
18414 ac_compiler=$2
18415 for ac_option in --version -v -V -qversion; do
18416 { { ac_try="$ac_compiler $ac_option >&5"
18417 case "(($ac_try" in
18418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18419 *) ac_try_echo=$ac_try;;
18420 esac
18421 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18422 $as_echo "$ac_try_echo"; } >&5
18423 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18424 ac_status=$?
18425 if test -s conftest.err; then
18426 sed '10a\
18427 ... rest of stderr output deleted ...
18428 10q' conftest.err >conftest.er1
18429 cat conftest.er1 >&5
18431 rm -f conftest.er1 conftest.err
18432 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18433 test $ac_status = 0; }
18434 done
18436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
18437 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
18438 if ${ac_cv_c_compiler_gnu+:} false; then :
18439 $as_echo_n "(cached) " >&6
18440 else
18441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18442 /* end confdefs.h. */
18445 main ()
18447 #ifndef __GNUC__
18448 choke me
18449 #endif
18452 return 0;
18454 _ACEOF
18455 if ac_fn_c_try_compile "$LINENO"; then :
18456 ac_compiler_gnu=yes
18457 else
18458 ac_compiler_gnu=no
18460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18461 ac_cv_c_compiler_gnu=$ac_compiler_gnu
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
18465 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
18466 if test $ac_compiler_gnu = yes; then
18467 GCC=yes
18468 else
18469 GCC=
18471 ac_test_CFLAGS=${CFLAGS+set}
18472 ac_save_CFLAGS=$CFLAGS
18473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
18474 $as_echo_n "checking whether $CC accepts -g... " >&6; }
18475 if ${ac_cv_prog_cc_g+:} false; then :
18476 $as_echo_n "(cached) " >&6
18477 else
18478 ac_save_c_werror_flag=$ac_c_werror_flag
18479 ac_c_werror_flag=yes
18480 ac_cv_prog_cc_g=no
18481 CFLAGS="-g"
18482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18483 /* end confdefs.h. */
18486 main ()
18490 return 0;
18492 _ACEOF
18493 if ac_fn_c_try_compile "$LINENO"; then :
18494 ac_cv_prog_cc_g=yes
18495 else
18496 CFLAGS=""
18497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18498 /* end confdefs.h. */
18501 main ()
18505 return 0;
18507 _ACEOF
18508 if ac_fn_c_try_compile "$LINENO"; then :
18510 else
18511 ac_c_werror_flag=$ac_save_c_werror_flag
18512 CFLAGS="-g"
18513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18514 /* end confdefs.h. */
18517 main ()
18521 return 0;
18523 _ACEOF
18524 if ac_fn_c_try_compile "$LINENO"; then :
18525 ac_cv_prog_cc_g=yes
18527 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18532 ac_c_werror_flag=$ac_save_c_werror_flag
18534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
18535 $as_echo "$ac_cv_prog_cc_g" >&6; }
18536 if test "$ac_test_CFLAGS" = set; then
18537 CFLAGS=$ac_save_CFLAGS
18538 elif test $ac_cv_prog_cc_g = yes; then
18539 if test "$GCC" = yes; then
18540 CFLAGS="-g -O2"
18541 else
18542 CFLAGS="-g"
18544 else
18545 if test "$GCC" = yes; then
18546 CFLAGS="-O2"
18547 else
18548 CFLAGS=
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
18552 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
18553 if ${ac_cv_prog_cc_c89+:} false; then :
18554 $as_echo_n "(cached) " >&6
18555 else
18556 ac_cv_prog_cc_c89=no
18557 ac_save_CC=$CC
18558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18559 /* end confdefs.h. */
18560 #include <stdarg.h>
18561 #include <stdio.h>
18562 struct stat;
18563 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
18564 struct buf { int x; };
18565 FILE * (*rcsopen) (struct buf *, struct stat *, int);
18566 static char *e (p, i)
18567 char **p;
18568 int i;
18570 return p[i];
18572 static char *f (char * (*g) (char **, int), char **p, ...)
18574 char *s;
18575 va_list v;
18576 va_start (v,p);
18577 s = g (p, va_arg (v,int));
18578 va_end (v);
18579 return s;
18582 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
18583 function prototypes and stuff, but not '\xHH' hex character constants.
18584 These don't provoke an error unfortunately, instead are silently treated
18585 as 'x'. The following induces an error, until -std is added to get
18586 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
18587 array size at least. It's necessary to write '\x00'==0 to get something
18588 that's true only with -std. */
18589 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
18591 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
18592 inside strings and character constants. */
18593 #define FOO(x) 'x'
18594 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
18596 int test (int i, double x);
18597 struct s1 {int (*f) (int a);};
18598 struct s2 {int (*f) (double a);};
18599 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18600 int argc;
18601 char **argv;
18603 main ()
18605 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
18607 return 0;
18609 _ACEOF
18610 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
18611 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18613 CC="$ac_save_CC $ac_arg"
18614 if ac_fn_c_try_compile "$LINENO"; then :
18615 ac_cv_prog_cc_c89=$ac_arg
18617 rm -f core conftest.err conftest.$ac_objext
18618 test "x$ac_cv_prog_cc_c89" != "xno" && break
18619 done
18620 rm -f conftest.$ac_ext
18621 CC=$ac_save_CC
18624 # AC_CACHE_VAL
18625 case "x$ac_cv_prog_cc_c89" in
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18628 $as_echo "none needed" >&6; } ;;
18629 xno)
18630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18631 $as_echo "unsupported" >&6; } ;;
18633 CC="$CC $ac_cv_prog_cc_c89"
18634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
18635 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
18636 esac
18637 if test "x$ac_cv_prog_cc_c89" != xno; then :
18641 ac_ext=c
18642 ac_cpp='$CPP $CPPFLAGS'
18643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18647 ac_ext=c
18648 ac_cpp='$CPP $CPPFLAGS'
18649 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18650 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18651 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
18653 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
18654 if ${am_cv_prog_cc_c_o+:} false; then :
18655 $as_echo_n "(cached) " >&6
18656 else
18657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18658 /* end confdefs.h. */
18661 main ()
18665 return 0;
18667 _ACEOF
18668 # Make sure it works both with $CC and with simple cc.
18669 # Following AC_PROG_CC_C_O, we do the test twice because some
18670 # compilers refuse to overwrite an existing .o file with -o,
18671 # though they will create one.
18672 am_cv_prog_cc_c_o=yes
18673 for am_i in 1 2; do
18674 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
18675 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
18676 ac_status=$?
18677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678 (exit $ac_status); } \
18679 && test -f conftest2.$ac_objext; then
18680 : OK
18681 else
18682 am_cv_prog_cc_c_o=no
18683 break
18685 done
18686 rm -f core conftest*
18687 unset am_i
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
18690 $as_echo "$am_cv_prog_cc_c_o" >&6; }
18691 if test "$am_cv_prog_cc_c_o" != yes; then
18692 # Losing compiler, so override with the script.
18693 # FIXME: It is wrong to rewrite CC.
18694 # But if we don't then we get into trouble of one sort or another.
18695 # A longer-term fix would be to have automake use am__CC in this case,
18696 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18697 CC="$am_aux_dir/compile $CC"
18699 ac_ext=c
18700 ac_cpp='$CPP $CPPFLAGS'
18701 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18702 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18703 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for access" >&5
18716 $as_echo_n "checking m2 front end checking c library for access... " >&6; }
18717 if test x$gcc_no_link != xyes; then
18718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for access in -lc" >&5
18719 $as_echo_n "checking for access in -lc... " >&6; }
18720 if ${ac_cv_lib_c_access+:} false; then :
18721 $as_echo_n "(cached) " >&6
18722 else
18723 ac_check_lib_save_LIBS=$LIBS
18724 LIBS="-lc $LIBS"
18725 if test x$gcc_no_link = xyes; then
18726 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18728 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18729 /* end confdefs.h. */
18731 /* Override any GCC internal prototype to avoid an error.
18732 Use char because int might match the return type of a GCC
18733 builtin and then its argument prototype would still apply. */
18734 #ifdef __cplusplus
18735 extern "C"
18736 #endif
18737 char access ();
18739 main ()
18741 return access ();
18743 return 0;
18745 _ACEOF
18746 if ac_fn_c_try_link "$LINENO"; then :
18747 ac_cv_lib_c_access=yes
18748 else
18749 ac_cv_lib_c_access=no
18751 rm -f core conftest.err conftest.$ac_objext \
18752 conftest$ac_exeext conftest.$ac_ext
18753 LIBS=$ac_check_lib_save_LIBS
18755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_access" >&5
18756 $as_echo "$ac_cv_lib_c_access" >&6; }
18757 if test "x$ac_cv_lib_c_access" = xyes; then :
18759 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
18761 else
18763 $as_echo "#undef HAVE_ACCESS" >>confdefs.h
18767 else
18768 if test "x$ac_cv_lib_c_access" = xyes; then
18770 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
18772 elif test "x$ac_cv_func_access" = xyes; then
18774 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
18776 else
18778 $as_echo "#undef HAVE_ACCESS" >>confdefs.h
18784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for brk" >&5
18785 $as_echo_n "checking m2 front end checking c library for brk... " >&6; }
18786 if test x$gcc_no_link != xyes; then
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for brk in -lc" >&5
18788 $as_echo_n "checking for brk in -lc... " >&6; }
18789 if ${ac_cv_lib_c_brk+:} false; then :
18790 $as_echo_n "(cached) " >&6
18791 else
18792 ac_check_lib_save_LIBS=$LIBS
18793 LIBS="-lc $LIBS"
18794 if test x$gcc_no_link = xyes; then
18795 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18798 /* end confdefs.h. */
18800 /* Override any GCC internal prototype to avoid an error.
18801 Use char because int might match the return type of a GCC
18802 builtin and then its argument prototype would still apply. */
18803 #ifdef __cplusplus
18804 extern "C"
18805 #endif
18806 char brk ();
18808 main ()
18810 return brk ();
18812 return 0;
18814 _ACEOF
18815 if ac_fn_c_try_link "$LINENO"; then :
18816 ac_cv_lib_c_brk=yes
18817 else
18818 ac_cv_lib_c_brk=no
18820 rm -f core conftest.err conftest.$ac_objext \
18821 conftest$ac_exeext conftest.$ac_ext
18822 LIBS=$ac_check_lib_save_LIBS
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_brk" >&5
18825 $as_echo "$ac_cv_lib_c_brk" >&6; }
18826 if test "x$ac_cv_lib_c_brk" = xyes; then :
18828 $as_echo "#define HAVE_BRK 1" >>confdefs.h
18830 else
18832 $as_echo "#undef HAVE_BRK" >>confdefs.h
18836 else
18837 if test "x$ac_cv_lib_c_brk" = xyes; then
18839 $as_echo "#define HAVE_BRK 1" >>confdefs.h
18841 elif test "x$ac_cv_func_brk" = xyes; then
18843 $as_echo "#define HAVE_BRK 1" >>confdefs.h
18845 else
18847 $as_echo "#undef HAVE_BRK" >>confdefs.h
18853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for cfmakeraw" >&5
18854 $as_echo_n "checking m2 front end checking c library for cfmakeraw... " >&6; }
18855 if test x$gcc_no_link != xyes; then
18856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cfmakeraw in -lc" >&5
18857 $as_echo_n "checking for cfmakeraw in -lc... " >&6; }
18858 if ${ac_cv_lib_c_cfmakeraw+:} false; then :
18859 $as_echo_n "(cached) " >&6
18860 else
18861 ac_check_lib_save_LIBS=$LIBS
18862 LIBS="-lc $LIBS"
18863 if test x$gcc_no_link = xyes; then
18864 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18867 /* end confdefs.h. */
18869 /* Override any GCC internal prototype to avoid an error.
18870 Use char because int might match the return type of a GCC
18871 builtin and then its argument prototype would still apply. */
18872 #ifdef __cplusplus
18873 extern "C"
18874 #endif
18875 char cfmakeraw ();
18877 main ()
18879 return cfmakeraw ();
18881 return 0;
18883 _ACEOF
18884 if ac_fn_c_try_link "$LINENO"; then :
18885 ac_cv_lib_c_cfmakeraw=yes
18886 else
18887 ac_cv_lib_c_cfmakeraw=no
18889 rm -f core conftest.err conftest.$ac_objext \
18890 conftest$ac_exeext conftest.$ac_ext
18891 LIBS=$ac_check_lib_save_LIBS
18893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_cfmakeraw" >&5
18894 $as_echo "$ac_cv_lib_c_cfmakeraw" >&6; }
18895 if test "x$ac_cv_lib_c_cfmakeraw" = xyes; then :
18897 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
18899 else
18901 $as_echo "#undef HAVE_CFMAKERAW" >>confdefs.h
18905 else
18906 if test "x$ac_cv_lib_c_cfmakeraw" = xyes; then
18908 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
18910 elif test "x$ac_cv_func_cfmakeraw" = xyes; then
18912 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
18914 else
18916 $as_echo "#undef HAVE_CFMAKERAW" >>confdefs.h
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for clock_gettime" >&5
18923 $as_echo_n "checking m2 front end checking c library for clock_gettime... " >&6; }
18924 if test x$gcc_no_link != xyes; then
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
18926 $as_echo_n "checking for clock_gettime in -lc... " >&6; }
18927 if ${ac_cv_lib_c_clock_gettime+:} false; then :
18928 $as_echo_n "(cached) " >&6
18929 else
18930 ac_check_lib_save_LIBS=$LIBS
18931 LIBS="-lc $LIBS"
18932 if test x$gcc_no_link = xyes; then
18933 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18936 /* end confdefs.h. */
18938 /* Override any GCC internal prototype to avoid an error.
18939 Use char because int might match the return type of a GCC
18940 builtin and then its argument prototype would still apply. */
18941 #ifdef __cplusplus
18942 extern "C"
18943 #endif
18944 char clock_gettime ();
18946 main ()
18948 return clock_gettime ();
18950 return 0;
18952 _ACEOF
18953 if ac_fn_c_try_link "$LINENO"; then :
18954 ac_cv_lib_c_clock_gettime=yes
18955 else
18956 ac_cv_lib_c_clock_gettime=no
18958 rm -f core conftest.err conftest.$ac_objext \
18959 conftest$ac_exeext conftest.$ac_ext
18960 LIBS=$ac_check_lib_save_LIBS
18962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
18963 $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
18964 if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
18966 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
18968 else
18970 $as_echo "#undef HAVE_CLOCK_GETTIME" >>confdefs.h
18974 else
18975 if test "x$ac_cv_lib_c_clock_gettime" = xyes; then
18977 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
18979 elif test "x$ac_cv_func_clock_gettime" = xyes; then
18981 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
18983 else
18985 $as_echo "#undef HAVE_CLOCK_GETTIME" >>confdefs.h
18991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for clock_settime" >&5
18992 $as_echo_n "checking m2 front end checking c library for clock_settime... " >&6; }
18993 if test x$gcc_no_link != xyes; then
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lc" >&5
18995 $as_echo_n "checking for clock_settime in -lc... " >&6; }
18996 if ${ac_cv_lib_c_clock_settime+:} false; then :
18997 $as_echo_n "(cached) " >&6
18998 else
18999 ac_check_lib_save_LIBS=$LIBS
19000 LIBS="-lc $LIBS"
19001 if test x$gcc_no_link = xyes; then
19002 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19005 /* end confdefs.h. */
19007 /* Override any GCC internal prototype to avoid an error.
19008 Use char because int might match the return type of a GCC
19009 builtin and then its argument prototype would still apply. */
19010 #ifdef __cplusplus
19011 extern "C"
19012 #endif
19013 char clock_settime ();
19015 main ()
19017 return clock_settime ();
19019 return 0;
19021 _ACEOF
19022 if ac_fn_c_try_link "$LINENO"; then :
19023 ac_cv_lib_c_clock_settime=yes
19024 else
19025 ac_cv_lib_c_clock_settime=no
19027 rm -f core conftest.err conftest.$ac_objext \
19028 conftest$ac_exeext conftest.$ac_ext
19029 LIBS=$ac_check_lib_save_LIBS
19031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_settime" >&5
19032 $as_echo "$ac_cv_lib_c_clock_settime" >&6; }
19033 if test "x$ac_cv_lib_c_clock_settime" = xyes; then :
19035 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
19037 else
19039 $as_echo "#undef HAVE_CLOCK_SETTIME" >>confdefs.h
19043 else
19044 if test "x$ac_cv_lib_c_clock_settime" = xyes; then
19046 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
19048 elif test "x$ac_cv_func_clock_settime" = xyes; then
19050 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
19052 else
19054 $as_echo "#undef HAVE_CLOCK_SETTIME" >>confdefs.h
19060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for close" >&5
19061 $as_echo_n "checking m2 front end checking c library for close... " >&6; }
19062 if test x$gcc_no_link != xyes; then
19063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for close in -lc" >&5
19064 $as_echo_n "checking for close in -lc... " >&6; }
19065 if ${ac_cv_lib_c_close+:} false; then :
19066 $as_echo_n "(cached) " >&6
19067 else
19068 ac_check_lib_save_LIBS=$LIBS
19069 LIBS="-lc $LIBS"
19070 if test x$gcc_no_link = xyes; then
19071 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19074 /* end confdefs.h. */
19076 /* Override any GCC internal prototype to avoid an error.
19077 Use char because int might match the return type of a GCC
19078 builtin and then its argument prototype would still apply. */
19079 #ifdef __cplusplus
19080 extern "C"
19081 #endif
19082 char close ();
19084 main ()
19086 return close ();
19088 return 0;
19090 _ACEOF
19091 if ac_fn_c_try_link "$LINENO"; then :
19092 ac_cv_lib_c_close=yes
19093 else
19094 ac_cv_lib_c_close=no
19096 rm -f core conftest.err conftest.$ac_objext \
19097 conftest$ac_exeext conftest.$ac_ext
19098 LIBS=$ac_check_lib_save_LIBS
19100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_close" >&5
19101 $as_echo "$ac_cv_lib_c_close" >&6; }
19102 if test "x$ac_cv_lib_c_close" = xyes; then :
19104 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
19106 else
19108 $as_echo "#undef HAVE_CLOSE" >>confdefs.h
19112 else
19113 if test "x$ac_cv_lib_c_close" = xyes; then
19115 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
19117 elif test "x$ac_cv_func_close" = xyes; then
19119 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
19121 else
19123 $as_echo "#undef HAVE_CLOSE" >>confdefs.h
19129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for ctime" >&5
19130 $as_echo_n "checking m2 front end checking c library for ctime... " >&6; }
19131 if test x$gcc_no_link != xyes; then
19132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctime in -lc" >&5
19133 $as_echo_n "checking for ctime in -lc... " >&6; }
19134 if ${ac_cv_lib_c_ctime+:} false; then :
19135 $as_echo_n "(cached) " >&6
19136 else
19137 ac_check_lib_save_LIBS=$LIBS
19138 LIBS="-lc $LIBS"
19139 if test x$gcc_no_link = xyes; then
19140 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19143 /* end confdefs.h. */
19145 /* Override any GCC internal prototype to avoid an error.
19146 Use char because int might match the return type of a GCC
19147 builtin and then its argument prototype would still apply. */
19148 #ifdef __cplusplus
19149 extern "C"
19150 #endif
19151 char ctime ();
19153 main ()
19155 return ctime ();
19157 return 0;
19159 _ACEOF
19160 if ac_fn_c_try_link "$LINENO"; then :
19161 ac_cv_lib_c_ctime=yes
19162 else
19163 ac_cv_lib_c_ctime=no
19165 rm -f core conftest.err conftest.$ac_objext \
19166 conftest$ac_exeext conftest.$ac_ext
19167 LIBS=$ac_check_lib_save_LIBS
19169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_ctime" >&5
19170 $as_echo "$ac_cv_lib_c_ctime" >&6; }
19171 if test "x$ac_cv_lib_c_ctime" = xyes; then :
19173 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
19175 else
19177 $as_echo "#undef HAVE_CTIME" >>confdefs.h
19181 else
19182 if test "x$ac_cv_lib_c_ctime" = xyes; then
19184 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
19186 elif test "x$ac_cv_func_ctime" = xyes; then
19188 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
19190 else
19192 $as_echo "#undef HAVE_CTIME" >>confdefs.h
19198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for creat" >&5
19199 $as_echo_n "checking m2 front end checking c library for creat... " >&6; }
19200 if test x$gcc_no_link != xyes; then
19201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for creat in -lc" >&5
19202 $as_echo_n "checking for creat in -lc... " >&6; }
19203 if ${ac_cv_lib_c_creat+:} false; then :
19204 $as_echo_n "(cached) " >&6
19205 else
19206 ac_check_lib_save_LIBS=$LIBS
19207 LIBS="-lc $LIBS"
19208 if test x$gcc_no_link = xyes; then
19209 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19212 /* end confdefs.h. */
19214 /* Override any GCC internal prototype to avoid an error.
19215 Use char because int might match the return type of a GCC
19216 builtin and then its argument prototype would still apply. */
19217 #ifdef __cplusplus
19218 extern "C"
19219 #endif
19220 char creat ();
19222 main ()
19224 return creat ();
19226 return 0;
19228 _ACEOF
19229 if ac_fn_c_try_link "$LINENO"; then :
19230 ac_cv_lib_c_creat=yes
19231 else
19232 ac_cv_lib_c_creat=no
19234 rm -f core conftest.err conftest.$ac_objext \
19235 conftest$ac_exeext conftest.$ac_ext
19236 LIBS=$ac_check_lib_save_LIBS
19238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_creat" >&5
19239 $as_echo "$ac_cv_lib_c_creat" >&6; }
19240 if test "x$ac_cv_lib_c_creat" = xyes; then :
19242 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
19244 else
19246 $as_echo "#undef HAVE_CREAT" >>confdefs.h
19250 else
19251 if test "x$ac_cv_lib_c_creat" = xyes; then
19253 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
19255 elif test "x$ac_cv_func_creat" = xyes; then
19257 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
19259 else
19261 $as_echo "#undef HAVE_CREAT" >>confdefs.h
19267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for daylight" >&5
19268 $as_echo_n "checking m2 front end checking c library for daylight... " >&6; }
19269 if test x$gcc_no_link != xyes; then
19270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight in -lc" >&5
19271 $as_echo_n "checking for daylight in -lc... " >&6; }
19272 if ${ac_cv_lib_c_daylight+:} false; then :
19273 $as_echo_n "(cached) " >&6
19274 else
19275 ac_check_lib_save_LIBS=$LIBS
19276 LIBS="-lc $LIBS"
19277 if test x$gcc_no_link = xyes; then
19278 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19281 /* end confdefs.h. */
19283 /* Override any GCC internal prototype to avoid an error.
19284 Use char because int might match the return type of a GCC
19285 builtin and then its argument prototype would still apply. */
19286 #ifdef __cplusplus
19287 extern "C"
19288 #endif
19289 char daylight ();
19291 main ()
19293 return daylight ();
19295 return 0;
19297 _ACEOF
19298 if ac_fn_c_try_link "$LINENO"; then :
19299 ac_cv_lib_c_daylight=yes
19300 else
19301 ac_cv_lib_c_daylight=no
19303 rm -f core conftest.err conftest.$ac_objext \
19304 conftest$ac_exeext conftest.$ac_ext
19305 LIBS=$ac_check_lib_save_LIBS
19307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_daylight" >&5
19308 $as_echo "$ac_cv_lib_c_daylight" >&6; }
19309 if test "x$ac_cv_lib_c_daylight" = xyes; then :
19311 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
19313 else
19315 $as_echo "#undef HAVE_DAYLIGHT" >>confdefs.h
19319 else
19320 if test "x$ac_cv_lib_c_daylight" = xyes; then
19322 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
19324 elif test "x$ac_cv_func_daylight" = xyes; then
19326 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
19328 else
19330 $as_echo "#undef HAVE_DAYLIGHT" >>confdefs.h
19336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for dup" >&5
19337 $as_echo_n "checking m2 front end checking c library for dup... " >&6; }
19338 if test x$gcc_no_link != xyes; then
19339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup in -lc" >&5
19340 $as_echo_n "checking for dup in -lc... " >&6; }
19341 if ${ac_cv_lib_c_dup+:} false; then :
19342 $as_echo_n "(cached) " >&6
19343 else
19344 ac_check_lib_save_LIBS=$LIBS
19345 LIBS="-lc $LIBS"
19346 if test x$gcc_no_link = xyes; then
19347 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19350 /* end confdefs.h. */
19352 /* Override any GCC internal prototype to avoid an error.
19353 Use char because int might match the return type of a GCC
19354 builtin and then its argument prototype would still apply. */
19355 #ifdef __cplusplus
19356 extern "C"
19357 #endif
19358 char dup ();
19360 main ()
19362 return dup ();
19364 return 0;
19366 _ACEOF
19367 if ac_fn_c_try_link "$LINENO"; then :
19368 ac_cv_lib_c_dup=yes
19369 else
19370 ac_cv_lib_c_dup=no
19372 rm -f core conftest.err conftest.$ac_objext \
19373 conftest$ac_exeext conftest.$ac_ext
19374 LIBS=$ac_check_lib_save_LIBS
19376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dup" >&5
19377 $as_echo "$ac_cv_lib_c_dup" >&6; }
19378 if test "x$ac_cv_lib_c_dup" = xyes; then :
19380 $as_echo "#define HAVE_DUP 1" >>confdefs.h
19382 else
19384 $as_echo "#undef HAVE_DUP" >>confdefs.h
19388 else
19389 if test "x$ac_cv_lib_c_dup" = xyes; then
19391 $as_echo "#define HAVE_DUP 1" >>confdefs.h
19393 elif test "x$ac_cv_func_dup" = xyes; then
19395 $as_echo "#define HAVE_DUP 1" >>confdefs.h
19397 else
19399 $as_echo "#undef HAVE_DUP" >>confdefs.h
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for execve" >&5
19406 $as_echo_n "checking m2 front end checking c library for execve... " >&6; }
19407 if test x$gcc_no_link != xyes; then
19408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execve in -lc" >&5
19409 $as_echo_n "checking for execve in -lc... " >&6; }
19410 if ${ac_cv_lib_c_execve+:} false; then :
19411 $as_echo_n "(cached) " >&6
19412 else
19413 ac_check_lib_save_LIBS=$LIBS
19414 LIBS="-lc $LIBS"
19415 if test x$gcc_no_link = xyes; then
19416 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19419 /* end confdefs.h. */
19421 /* Override any GCC internal prototype to avoid an error.
19422 Use char because int might match the return type of a GCC
19423 builtin and then its argument prototype would still apply. */
19424 #ifdef __cplusplus
19425 extern "C"
19426 #endif
19427 char execve ();
19429 main ()
19431 return execve ();
19433 return 0;
19435 _ACEOF
19436 if ac_fn_c_try_link "$LINENO"; then :
19437 ac_cv_lib_c_execve=yes
19438 else
19439 ac_cv_lib_c_execve=no
19441 rm -f core conftest.err conftest.$ac_objext \
19442 conftest$ac_exeext conftest.$ac_ext
19443 LIBS=$ac_check_lib_save_LIBS
19445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_execve" >&5
19446 $as_echo "$ac_cv_lib_c_execve" >&6; }
19447 if test "x$ac_cv_lib_c_execve" = xyes; then :
19449 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
19451 else
19453 $as_echo "#undef HAVE_EXECVE" >>confdefs.h
19457 else
19458 if test "x$ac_cv_lib_c_execve" = xyes; then
19460 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
19462 elif test "x$ac_cv_func_execve" = xyes; then
19464 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
19466 else
19468 $as_echo "#undef HAVE_EXECVE" >>confdefs.h
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for exit" >&5
19475 $as_echo_n "checking m2 front end checking c library for exit... " >&6; }
19476 if test x$gcc_no_link != xyes; then
19477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lc" >&5
19478 $as_echo_n "checking for exit in -lc... " >&6; }
19479 if ${ac_cv_lib_c_exit+:} false; then :
19480 $as_echo_n "(cached) " >&6
19481 else
19482 ac_check_lib_save_LIBS=$LIBS
19483 LIBS="-lc $LIBS"
19484 if test x$gcc_no_link = xyes; then
19485 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19488 /* end confdefs.h. */
19490 /* Override any GCC internal prototype to avoid an error.
19491 Use char because int might match the return type of a GCC
19492 builtin and then its argument prototype would still apply. */
19493 #ifdef __cplusplus
19494 extern "C"
19495 #endif
19496 char exit ();
19498 main ()
19500 return exit ();
19502 return 0;
19504 _ACEOF
19505 if ac_fn_c_try_link "$LINENO"; then :
19506 ac_cv_lib_c_exit=yes
19507 else
19508 ac_cv_lib_c_exit=no
19510 rm -f core conftest.err conftest.$ac_objext \
19511 conftest$ac_exeext conftest.$ac_ext
19512 LIBS=$ac_check_lib_save_LIBS
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_exit" >&5
19515 $as_echo "$ac_cv_lib_c_exit" >&6; }
19516 if test "x$ac_cv_lib_c_exit" = xyes; then :
19518 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
19520 else
19522 $as_echo "#undef HAVE_EXIT" >>confdefs.h
19526 else
19527 if test "x$ac_cv_lib_c_exit" = xyes; then
19529 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
19531 elif test "x$ac_cv_func_exit" = xyes; then
19533 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
19535 else
19537 $as_echo "#undef HAVE_EXIT" >>confdefs.h
19543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for fcntl" >&5
19544 $as_echo_n "checking m2 front end checking c library for fcntl... " >&6; }
19545 if test x$gcc_no_link != xyes; then
19546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcntl in -lc" >&5
19547 $as_echo_n "checking for fcntl in -lc... " >&6; }
19548 if ${ac_cv_lib_c_fcntl+:} false; then :
19549 $as_echo_n "(cached) " >&6
19550 else
19551 ac_check_lib_save_LIBS=$LIBS
19552 LIBS="-lc $LIBS"
19553 if test x$gcc_no_link = xyes; then
19554 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19557 /* end confdefs.h. */
19559 /* Override any GCC internal prototype to avoid an error.
19560 Use char because int might match the return type of a GCC
19561 builtin and then its argument prototype would still apply. */
19562 #ifdef __cplusplus
19563 extern "C"
19564 #endif
19565 char fcntl ();
19567 main ()
19569 return fcntl ();
19571 return 0;
19573 _ACEOF
19574 if ac_fn_c_try_link "$LINENO"; then :
19575 ac_cv_lib_c_fcntl=yes
19576 else
19577 ac_cv_lib_c_fcntl=no
19579 rm -f core conftest.err conftest.$ac_objext \
19580 conftest$ac_exeext conftest.$ac_ext
19581 LIBS=$ac_check_lib_save_LIBS
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_fcntl" >&5
19584 $as_echo "$ac_cv_lib_c_fcntl" >&6; }
19585 if test "x$ac_cv_lib_c_fcntl" = xyes; then :
19587 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
19589 else
19591 $as_echo "#undef HAVE_FCNTL" >>confdefs.h
19595 else
19596 if test "x$ac_cv_lib_c_fcntl" = xyes; then
19598 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
19600 elif test "x$ac_cv_func_fcntl" = xyes; then
19602 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
19604 else
19606 $as_echo "#undef HAVE_FCNTL" >>confdefs.h
19612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for fstat" >&5
19613 $as_echo_n "checking m2 front end checking c library for fstat... " >&6; }
19614 if test x$gcc_no_link != xyes; then
19615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fstat in -lc" >&5
19616 $as_echo_n "checking for fstat in -lc... " >&6; }
19617 if ${ac_cv_lib_c_fstat+:} false; then :
19618 $as_echo_n "(cached) " >&6
19619 else
19620 ac_check_lib_save_LIBS=$LIBS
19621 LIBS="-lc $LIBS"
19622 if test x$gcc_no_link = xyes; then
19623 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19626 /* end confdefs.h. */
19628 /* Override any GCC internal prototype to avoid an error.
19629 Use char because int might match the return type of a GCC
19630 builtin and then its argument prototype would still apply. */
19631 #ifdef __cplusplus
19632 extern "C"
19633 #endif
19634 char fstat ();
19636 main ()
19638 return fstat ();
19640 return 0;
19642 _ACEOF
19643 if ac_fn_c_try_link "$LINENO"; then :
19644 ac_cv_lib_c_fstat=yes
19645 else
19646 ac_cv_lib_c_fstat=no
19648 rm -f core conftest.err conftest.$ac_objext \
19649 conftest$ac_exeext conftest.$ac_ext
19650 LIBS=$ac_check_lib_save_LIBS
19652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_fstat" >&5
19653 $as_echo "$ac_cv_lib_c_fstat" >&6; }
19654 if test "x$ac_cv_lib_c_fstat" = xyes; then :
19656 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
19658 else
19660 $as_echo "#undef HAVE_FSTAT" >>confdefs.h
19664 else
19665 if test "x$ac_cv_lib_c_fstat" = xyes; then
19667 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
19669 elif test "x$ac_cv_func_fstat" = xyes; then
19671 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
19673 else
19675 $as_echo "#undef HAVE_FSTAT" >>confdefs.h
19681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getdents" >&5
19682 $as_echo_n "checking m2 front end checking c library for getdents... " >&6; }
19683 if test x$gcc_no_link != xyes; then
19684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getdents in -lc" >&5
19685 $as_echo_n "checking for getdents in -lc... " >&6; }
19686 if ${ac_cv_lib_c_getdents+:} false; then :
19687 $as_echo_n "(cached) " >&6
19688 else
19689 ac_check_lib_save_LIBS=$LIBS
19690 LIBS="-lc $LIBS"
19691 if test x$gcc_no_link = xyes; then
19692 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19695 /* end confdefs.h. */
19697 /* Override any GCC internal prototype to avoid an error.
19698 Use char because int might match the return type of a GCC
19699 builtin and then its argument prototype would still apply. */
19700 #ifdef __cplusplus
19701 extern "C"
19702 #endif
19703 char getdents ();
19705 main ()
19707 return getdents ();
19709 return 0;
19711 _ACEOF
19712 if ac_fn_c_try_link "$LINENO"; then :
19713 ac_cv_lib_c_getdents=yes
19714 else
19715 ac_cv_lib_c_getdents=no
19717 rm -f core conftest.err conftest.$ac_objext \
19718 conftest$ac_exeext conftest.$ac_ext
19719 LIBS=$ac_check_lib_save_LIBS
19721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getdents" >&5
19722 $as_echo "$ac_cv_lib_c_getdents" >&6; }
19723 if test "x$ac_cv_lib_c_getdents" = xyes; then :
19725 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
19727 else
19729 $as_echo "#undef HAVE_GETDENTS" >>confdefs.h
19733 else
19734 if test "x$ac_cv_lib_c_getdents" = xyes; then
19736 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
19738 elif test "x$ac_cv_func_getdents" = xyes; then
19740 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
19742 else
19744 $as_echo "#undef HAVE_GETDENTS" >>confdefs.h
19750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getgid" >&5
19751 $as_echo_n "checking m2 front end checking c library for getgid... " >&6; }
19752 if test x$gcc_no_link != xyes; then
19753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgid in -lc" >&5
19754 $as_echo_n "checking for getgid in -lc... " >&6; }
19755 if ${ac_cv_lib_c_getgid+:} false; then :
19756 $as_echo_n "(cached) " >&6
19757 else
19758 ac_check_lib_save_LIBS=$LIBS
19759 LIBS="-lc $LIBS"
19760 if test x$gcc_no_link = xyes; then
19761 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19764 /* end confdefs.h. */
19766 /* Override any GCC internal prototype to avoid an error.
19767 Use char because int might match the return type of a GCC
19768 builtin and then its argument prototype would still apply. */
19769 #ifdef __cplusplus
19770 extern "C"
19771 #endif
19772 char getgid ();
19774 main ()
19776 return getgid ();
19778 return 0;
19780 _ACEOF
19781 if ac_fn_c_try_link "$LINENO"; then :
19782 ac_cv_lib_c_getgid=yes
19783 else
19784 ac_cv_lib_c_getgid=no
19786 rm -f core conftest.err conftest.$ac_objext \
19787 conftest$ac_exeext conftest.$ac_ext
19788 LIBS=$ac_check_lib_save_LIBS
19790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getgid" >&5
19791 $as_echo "$ac_cv_lib_c_getgid" >&6; }
19792 if test "x$ac_cv_lib_c_getgid" = xyes; then :
19794 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
19796 else
19798 $as_echo "#undef HAVE_GETGID" >>confdefs.h
19802 else
19803 if test "x$ac_cv_lib_c_getgid" = xyes; then
19805 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
19807 elif test "x$ac_cv_func_getgid" = xyes; then
19809 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
19811 else
19813 $as_echo "#undef HAVE_GETGID" >>confdefs.h
19819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getopt_long" >&5
19820 $as_echo_n "checking m2 front end checking c library for getopt_long... " >&6; }
19821 if test x$gcc_no_link != xyes; then
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long in -lc" >&5
19823 $as_echo_n "checking for getopt_long in -lc... " >&6; }
19824 if ${ac_cv_lib_c_getopt_long+:} false; then :
19825 $as_echo_n "(cached) " >&6
19826 else
19827 ac_check_lib_save_LIBS=$LIBS
19828 LIBS="-lc $LIBS"
19829 if test x$gcc_no_link = xyes; then
19830 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19833 /* end confdefs.h. */
19835 /* Override any GCC internal prototype to avoid an error.
19836 Use char because int might match the return type of a GCC
19837 builtin and then its argument prototype would still apply. */
19838 #ifdef __cplusplus
19839 extern "C"
19840 #endif
19841 char getopt_long ();
19843 main ()
19845 return getopt_long ();
19847 return 0;
19849 _ACEOF
19850 if ac_fn_c_try_link "$LINENO"; then :
19851 ac_cv_lib_c_getopt_long=yes
19852 else
19853 ac_cv_lib_c_getopt_long=no
19855 rm -f core conftest.err conftest.$ac_objext \
19856 conftest$ac_exeext conftest.$ac_ext
19857 LIBS=$ac_check_lib_save_LIBS
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getopt_long" >&5
19860 $as_echo "$ac_cv_lib_c_getopt_long" >&6; }
19861 if test "x$ac_cv_lib_c_getopt_long" = xyes; then :
19863 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
19865 else
19867 $as_echo "#undef HAVE_GETOPT_LONG" >>confdefs.h
19871 else
19872 if test "x$ac_cv_lib_c_getopt_long" = xyes; then
19874 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
19876 elif test "x$ac_cv_func_getopt_long" = xyes; then
19878 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
19880 else
19882 $as_echo "#undef HAVE_GETOPT_LONG" >>confdefs.h
19888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getopt_long_only" >&5
19889 $as_echo_n "checking m2 front end checking c library for getopt_long_only... " >&6; }
19890 if test x$gcc_no_link != xyes; then
19891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long_only in -lc" >&5
19892 $as_echo_n "checking for getopt_long_only in -lc... " >&6; }
19893 if ${ac_cv_lib_c_getopt_long_only+:} false; then :
19894 $as_echo_n "(cached) " >&6
19895 else
19896 ac_check_lib_save_LIBS=$LIBS
19897 LIBS="-lc $LIBS"
19898 if test x$gcc_no_link = xyes; then
19899 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19902 /* end confdefs.h. */
19904 /* Override any GCC internal prototype to avoid an error.
19905 Use char because int might match the return type of a GCC
19906 builtin and then its argument prototype would still apply. */
19907 #ifdef __cplusplus
19908 extern "C"
19909 #endif
19910 char getopt_long_only ();
19912 main ()
19914 return getopt_long_only ();
19916 return 0;
19918 _ACEOF
19919 if ac_fn_c_try_link "$LINENO"; then :
19920 ac_cv_lib_c_getopt_long_only=yes
19921 else
19922 ac_cv_lib_c_getopt_long_only=no
19924 rm -f core conftest.err conftest.$ac_objext \
19925 conftest$ac_exeext conftest.$ac_ext
19926 LIBS=$ac_check_lib_save_LIBS
19928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getopt_long_only" >&5
19929 $as_echo "$ac_cv_lib_c_getopt_long_only" >&6; }
19930 if test "x$ac_cv_lib_c_getopt_long_only" = xyes; then :
19932 $as_echo "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h
19934 else
19936 $as_echo "#undef HAVE_GETOPT_LONG_ONLY" >>confdefs.h
19940 else
19941 if test "x$ac_cv_lib_c_getopt_long_only" = xyes; then
19943 $as_echo "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h
19945 elif test "x$ac_cv_func_getopt_long_only" = xyes; then
19947 $as_echo "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h
19949 else
19951 $as_echo "#undef HAVE_GETOPT_LONG_ONLY" >>confdefs.h
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getpid" >&5
19958 $as_echo_n "checking m2 front end checking c library for getpid... " >&6; }
19959 if test x$gcc_no_link != xyes; then
19960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpid in -lc" >&5
19961 $as_echo_n "checking for getpid in -lc... " >&6; }
19962 if ${ac_cv_lib_c_getpid+:} false; then :
19963 $as_echo_n "(cached) " >&6
19964 else
19965 ac_check_lib_save_LIBS=$LIBS
19966 LIBS="-lc $LIBS"
19967 if test x$gcc_no_link = xyes; then
19968 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19971 /* end confdefs.h. */
19973 /* Override any GCC internal prototype to avoid an error.
19974 Use char because int might match the return type of a GCC
19975 builtin and then its argument prototype would still apply. */
19976 #ifdef __cplusplus
19977 extern "C"
19978 #endif
19979 char getpid ();
19981 main ()
19983 return getpid ();
19985 return 0;
19987 _ACEOF
19988 if ac_fn_c_try_link "$LINENO"; then :
19989 ac_cv_lib_c_getpid=yes
19990 else
19991 ac_cv_lib_c_getpid=no
19993 rm -f core conftest.err conftest.$ac_objext \
19994 conftest$ac_exeext conftest.$ac_ext
19995 LIBS=$ac_check_lib_save_LIBS
19997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpid" >&5
19998 $as_echo "$ac_cv_lib_c_getpid" >&6; }
19999 if test "x$ac_cv_lib_c_getpid" = xyes; then :
20001 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
20003 else
20005 $as_echo "#undef HAVE_GETPID" >>confdefs.h
20009 else
20010 if test "x$ac_cv_lib_c_getpid" = xyes; then
20012 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
20014 elif test "x$ac_cv_func_getpid" = xyes; then
20016 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
20018 else
20020 $as_echo "#undef HAVE_GETPID" >>confdefs.h
20026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for gettimeofday" >&5
20027 $as_echo_n "checking m2 front end checking c library for gettimeofday... " >&6; }
20028 if test x$gcc_no_link != xyes; then
20029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lc" >&5
20030 $as_echo_n "checking for gettimeofday in -lc... " >&6; }
20031 if ${ac_cv_lib_c_gettimeofday+:} false; then :
20032 $as_echo_n "(cached) " >&6
20033 else
20034 ac_check_lib_save_LIBS=$LIBS
20035 LIBS="-lc $LIBS"
20036 if test x$gcc_no_link = xyes; then
20037 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20040 /* end confdefs.h. */
20042 /* Override any GCC internal prototype to avoid an error.
20043 Use char because int might match the return type of a GCC
20044 builtin and then its argument prototype would still apply. */
20045 #ifdef __cplusplus
20046 extern "C"
20047 #endif
20048 char gettimeofday ();
20050 main ()
20052 return gettimeofday ();
20054 return 0;
20056 _ACEOF
20057 if ac_fn_c_try_link "$LINENO"; then :
20058 ac_cv_lib_c_gettimeofday=yes
20059 else
20060 ac_cv_lib_c_gettimeofday=no
20062 rm -f core conftest.err conftest.$ac_objext \
20063 conftest$ac_exeext conftest.$ac_ext
20064 LIBS=$ac_check_lib_save_LIBS
20066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gettimeofday" >&5
20067 $as_echo "$ac_cv_lib_c_gettimeofday" >&6; }
20068 if test "x$ac_cv_lib_c_gettimeofday" = xyes; then :
20070 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
20072 else
20074 $as_echo "#undef HAVE_GETTIMEOFDAY" >>confdefs.h
20078 else
20079 if test "x$ac_cv_lib_c_gettimeofday" = xyes; then
20081 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
20083 elif test "x$ac_cv_func_gettimeofday" = xyes; then
20085 $as_echo "#define HAVE_GETTIMEOFDAY 1" >>confdefs.h
20087 else
20089 $as_echo "#undef HAVE_GETTIMEOFDAY" >>confdefs.h
20095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getuid" >&5
20096 $as_echo_n "checking m2 front end checking c library for getuid... " >&6; }
20097 if test x$gcc_no_link != xyes; then
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getuid in -lc" >&5
20099 $as_echo_n "checking for getuid in -lc... " >&6; }
20100 if ${ac_cv_lib_c_getuid+:} false; then :
20101 $as_echo_n "(cached) " >&6
20102 else
20103 ac_check_lib_save_LIBS=$LIBS
20104 LIBS="-lc $LIBS"
20105 if test x$gcc_no_link = xyes; then
20106 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20109 /* end confdefs.h. */
20111 /* Override any GCC internal prototype to avoid an error.
20112 Use char because int might match the return type of a GCC
20113 builtin and then its argument prototype would still apply. */
20114 #ifdef __cplusplus
20115 extern "C"
20116 #endif
20117 char getuid ();
20119 main ()
20121 return getuid ();
20123 return 0;
20125 _ACEOF
20126 if ac_fn_c_try_link "$LINENO"; then :
20127 ac_cv_lib_c_getuid=yes
20128 else
20129 ac_cv_lib_c_getuid=no
20131 rm -f core conftest.err conftest.$ac_objext \
20132 conftest$ac_exeext conftest.$ac_ext
20133 LIBS=$ac_check_lib_save_LIBS
20135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getuid" >&5
20136 $as_echo "$ac_cv_lib_c_getuid" >&6; }
20137 if test "x$ac_cv_lib_c_getuid" = xyes; then :
20139 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
20141 else
20143 $as_echo "#undef HAVE_GETUID" >>confdefs.h
20147 else
20148 if test "x$ac_cv_lib_c_getuid" = xyes; then
20150 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
20152 elif test "x$ac_cv_func_getuid" = xyes; then
20154 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
20156 else
20158 $as_echo "#undef HAVE_GETUID" >>confdefs.h
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for ioctl" >&5
20165 $as_echo_n "checking m2 front end checking c library for ioctl... " >&6; }
20166 if test x$gcc_no_link != xyes; then
20167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl in -lc" >&5
20168 $as_echo_n "checking for ioctl in -lc... " >&6; }
20169 if ${ac_cv_lib_c_ioctl+:} false; then :
20170 $as_echo_n "(cached) " >&6
20171 else
20172 ac_check_lib_save_LIBS=$LIBS
20173 LIBS="-lc $LIBS"
20174 if test x$gcc_no_link = xyes; then
20175 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20178 /* end confdefs.h. */
20180 /* Override any GCC internal prototype to avoid an error.
20181 Use char because int might match the return type of a GCC
20182 builtin and then its argument prototype would still apply. */
20183 #ifdef __cplusplus
20184 extern "C"
20185 #endif
20186 char ioctl ();
20188 main ()
20190 return ioctl ();
20192 return 0;
20194 _ACEOF
20195 if ac_fn_c_try_link "$LINENO"; then :
20196 ac_cv_lib_c_ioctl=yes
20197 else
20198 ac_cv_lib_c_ioctl=no
20200 rm -f core conftest.err conftest.$ac_objext \
20201 conftest$ac_exeext conftest.$ac_ext
20202 LIBS=$ac_check_lib_save_LIBS
20204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_ioctl" >&5
20205 $as_echo "$ac_cv_lib_c_ioctl" >&6; }
20206 if test "x$ac_cv_lib_c_ioctl" = xyes; then :
20208 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
20210 else
20212 $as_echo "#undef HAVE_IOCTL" >>confdefs.h
20216 else
20217 if test "x$ac_cv_lib_c_ioctl" = xyes; then
20219 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
20221 elif test "x$ac_cv_func_ioctl" = xyes; then
20223 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
20225 else
20227 $as_echo "#undef HAVE_IOCTL" >>confdefs.h
20233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for kill" >&5
20234 $as_echo_n "checking m2 front end checking c library for kill... " >&6; }
20235 if test x$gcc_no_link != xyes; then
20236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kill in -lc" >&5
20237 $as_echo_n "checking for kill in -lc... " >&6; }
20238 if ${ac_cv_lib_c_kill+:} false; then :
20239 $as_echo_n "(cached) " >&6
20240 else
20241 ac_check_lib_save_LIBS=$LIBS
20242 LIBS="-lc $LIBS"
20243 if test x$gcc_no_link = xyes; then
20244 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20247 /* end confdefs.h. */
20249 /* Override any GCC internal prototype to avoid an error.
20250 Use char because int might match the return type of a GCC
20251 builtin and then its argument prototype would still apply. */
20252 #ifdef __cplusplus
20253 extern "C"
20254 #endif
20255 char kill ();
20257 main ()
20259 return kill ();
20261 return 0;
20263 _ACEOF
20264 if ac_fn_c_try_link "$LINENO"; then :
20265 ac_cv_lib_c_kill=yes
20266 else
20267 ac_cv_lib_c_kill=no
20269 rm -f core conftest.err conftest.$ac_objext \
20270 conftest$ac_exeext conftest.$ac_ext
20271 LIBS=$ac_check_lib_save_LIBS
20273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_kill" >&5
20274 $as_echo "$ac_cv_lib_c_kill" >&6; }
20275 if test "x$ac_cv_lib_c_kill" = xyes; then :
20277 $as_echo "#define HAVE_KILL 1" >>confdefs.h
20279 else
20281 $as_echo "#undef HAVE_KILL" >>confdefs.h
20285 else
20286 if test "x$ac_cv_lib_c_kill" = xyes; then
20288 $as_echo "#define HAVE_KILL 1" >>confdefs.h
20290 elif test "x$ac_cv_func_kill" = xyes; then
20292 $as_echo "#define HAVE_KILL 1" >>confdefs.h
20294 else
20296 $as_echo "#undef HAVE_KILL" >>confdefs.h
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for link" >&5
20303 $as_echo_n "checking m2 front end checking c library for link... " >&6; }
20304 if test x$gcc_no_link != xyes; then
20305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link in -lc" >&5
20306 $as_echo_n "checking for link in -lc... " >&6; }
20307 if ${ac_cv_lib_c_link+:} false; then :
20308 $as_echo_n "(cached) " >&6
20309 else
20310 ac_check_lib_save_LIBS=$LIBS
20311 LIBS="-lc $LIBS"
20312 if test x$gcc_no_link = xyes; then
20313 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20316 /* end confdefs.h. */
20318 /* Override any GCC internal prototype to avoid an error.
20319 Use char because int might match the return type of a GCC
20320 builtin and then its argument prototype would still apply. */
20321 #ifdef __cplusplus
20322 extern "C"
20323 #endif
20324 char link ();
20326 main ()
20328 return link ();
20330 return 0;
20332 _ACEOF
20333 if ac_fn_c_try_link "$LINENO"; then :
20334 ac_cv_lib_c_link=yes
20335 else
20336 ac_cv_lib_c_link=no
20338 rm -f core conftest.err conftest.$ac_objext \
20339 conftest$ac_exeext conftest.$ac_ext
20340 LIBS=$ac_check_lib_save_LIBS
20342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_link" >&5
20343 $as_echo "$ac_cv_lib_c_link" >&6; }
20344 if test "x$ac_cv_lib_c_link" = xyes; then :
20346 $as_echo "#define HAVE_LINK 1" >>confdefs.h
20348 else
20350 $as_echo "#undef HAVE_LINK" >>confdefs.h
20354 else
20355 if test "x$ac_cv_lib_c_link" = xyes; then
20357 $as_echo "#define HAVE_LINK 1" >>confdefs.h
20359 elif test "x$ac_cv_func_link" = xyes; then
20361 $as_echo "#define HAVE_LINK 1" >>confdefs.h
20363 else
20365 $as_echo "#undef HAVE_LINK" >>confdefs.h
20371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for lseek" >&5
20372 $as_echo_n "checking m2 front end checking c library for lseek... " >&6; }
20373 if test x$gcc_no_link != xyes; then
20374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lseek in -lc" >&5
20375 $as_echo_n "checking for lseek in -lc... " >&6; }
20376 if ${ac_cv_lib_c_lseek+:} false; then :
20377 $as_echo_n "(cached) " >&6
20378 else
20379 ac_check_lib_save_LIBS=$LIBS
20380 LIBS="-lc $LIBS"
20381 if test x$gcc_no_link = xyes; then
20382 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20385 /* end confdefs.h. */
20387 /* Override any GCC internal prototype to avoid an error.
20388 Use char because int might match the return type of a GCC
20389 builtin and then its argument prototype would still apply. */
20390 #ifdef __cplusplus
20391 extern "C"
20392 #endif
20393 char lseek ();
20395 main ()
20397 return lseek ();
20399 return 0;
20401 _ACEOF
20402 if ac_fn_c_try_link "$LINENO"; then :
20403 ac_cv_lib_c_lseek=yes
20404 else
20405 ac_cv_lib_c_lseek=no
20407 rm -f core conftest.err conftest.$ac_objext \
20408 conftest$ac_exeext conftest.$ac_ext
20409 LIBS=$ac_check_lib_save_LIBS
20411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_lseek" >&5
20412 $as_echo "$ac_cv_lib_c_lseek" >&6; }
20413 if test "x$ac_cv_lib_c_lseek" = xyes; then :
20415 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
20417 else
20419 $as_echo "#undef HAVE_LSEEK" >>confdefs.h
20423 else
20424 if test "x$ac_cv_lib_c_lseek" = xyes; then
20426 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
20428 elif test "x$ac_cv_func_lseek" = xyes; then
20430 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
20432 else
20434 $as_echo "#undef HAVE_LSEEK" >>confdefs.h
20440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for open" >&5
20441 $as_echo_n "checking m2 front end checking c library for open... " >&6; }
20442 if test x$gcc_no_link != xyes; then
20443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for open in -lc" >&5
20444 $as_echo_n "checking for open in -lc... " >&6; }
20445 if ${ac_cv_lib_c_open+:} false; then :
20446 $as_echo_n "(cached) " >&6
20447 else
20448 ac_check_lib_save_LIBS=$LIBS
20449 LIBS="-lc $LIBS"
20450 if test x$gcc_no_link = xyes; then
20451 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20454 /* end confdefs.h. */
20456 /* Override any GCC internal prototype to avoid an error.
20457 Use char because int might match the return type of a GCC
20458 builtin and then its argument prototype would still apply. */
20459 #ifdef __cplusplus
20460 extern "C"
20461 #endif
20462 char open ();
20464 main ()
20466 return open ();
20468 return 0;
20470 _ACEOF
20471 if ac_fn_c_try_link "$LINENO"; then :
20472 ac_cv_lib_c_open=yes
20473 else
20474 ac_cv_lib_c_open=no
20476 rm -f core conftest.err conftest.$ac_objext \
20477 conftest$ac_exeext conftest.$ac_ext
20478 LIBS=$ac_check_lib_save_LIBS
20480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_open" >&5
20481 $as_echo "$ac_cv_lib_c_open" >&6; }
20482 if test "x$ac_cv_lib_c_open" = xyes; then :
20484 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
20486 else
20488 $as_echo "#undef HAVE_OPEN" >>confdefs.h
20492 else
20493 if test "x$ac_cv_lib_c_open" = xyes; then
20495 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
20497 elif test "x$ac_cv_func_open" = xyes; then
20499 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
20501 else
20503 $as_echo "#undef HAVE_OPEN" >>confdefs.h
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for pause" >&5
20510 $as_echo_n "checking m2 front end checking c library for pause... " >&6; }
20511 if test x$gcc_no_link != xyes; then
20512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pause in -lc" >&5
20513 $as_echo_n "checking for pause in -lc... " >&6; }
20514 if ${ac_cv_lib_c_pause+:} false; then :
20515 $as_echo_n "(cached) " >&6
20516 else
20517 ac_check_lib_save_LIBS=$LIBS
20518 LIBS="-lc $LIBS"
20519 if test x$gcc_no_link = xyes; then
20520 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20523 /* end confdefs.h. */
20525 /* Override any GCC internal prototype to avoid an error.
20526 Use char because int might match the return type of a GCC
20527 builtin and then its argument prototype would still apply. */
20528 #ifdef __cplusplus
20529 extern "C"
20530 #endif
20531 char pause ();
20533 main ()
20535 return pause ();
20537 return 0;
20539 _ACEOF
20540 if ac_fn_c_try_link "$LINENO"; then :
20541 ac_cv_lib_c_pause=yes
20542 else
20543 ac_cv_lib_c_pause=no
20545 rm -f core conftest.err conftest.$ac_objext \
20546 conftest$ac_exeext conftest.$ac_ext
20547 LIBS=$ac_check_lib_save_LIBS
20549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pause" >&5
20550 $as_echo "$ac_cv_lib_c_pause" >&6; }
20551 if test "x$ac_cv_lib_c_pause" = xyes; then :
20553 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
20555 else
20557 $as_echo "#undef HAVE_PAUSE" >>confdefs.h
20561 else
20562 if test "x$ac_cv_lib_c_pause" = xyes; then
20564 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
20566 elif test "x$ac_cv_func_pause" = xyes; then
20568 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
20570 else
20572 $as_echo "#undef HAVE_PAUSE" >>confdefs.h
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for pipe" >&5
20579 $as_echo_n "checking m2 front end checking c library for pipe... " >&6; }
20580 if test x$gcc_no_link != xyes; then
20581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pipe in -lc" >&5
20582 $as_echo_n "checking for pipe in -lc... " >&6; }
20583 if ${ac_cv_lib_c_pipe+:} false; then :
20584 $as_echo_n "(cached) " >&6
20585 else
20586 ac_check_lib_save_LIBS=$LIBS
20587 LIBS="-lc $LIBS"
20588 if test x$gcc_no_link = xyes; then
20589 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20592 /* end confdefs.h. */
20594 /* Override any GCC internal prototype to avoid an error.
20595 Use char because int might match the return type of a GCC
20596 builtin and then its argument prototype would still apply. */
20597 #ifdef __cplusplus
20598 extern "C"
20599 #endif
20600 char pipe ();
20602 main ()
20604 return pipe ();
20606 return 0;
20608 _ACEOF
20609 if ac_fn_c_try_link "$LINENO"; then :
20610 ac_cv_lib_c_pipe=yes
20611 else
20612 ac_cv_lib_c_pipe=no
20614 rm -f core conftest.err conftest.$ac_objext \
20615 conftest$ac_exeext conftest.$ac_ext
20616 LIBS=$ac_check_lib_save_LIBS
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pipe" >&5
20619 $as_echo "$ac_cv_lib_c_pipe" >&6; }
20620 if test "x$ac_cv_lib_c_pipe" = xyes; then :
20622 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
20624 else
20626 $as_echo "#undef HAVE_PIPE" >>confdefs.h
20630 else
20631 if test "x$ac_cv_lib_c_pipe" = xyes; then
20633 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
20635 elif test "x$ac_cv_func_pipe" = xyes; then
20637 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
20639 else
20641 $as_echo "#undef HAVE_PIPE" >>confdefs.h
20647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for rand" >&5
20648 $as_echo_n "checking m2 front end checking c library for rand... " >&6; }
20649 if test x$gcc_no_link != xyes; then
20650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rand in -lc" >&5
20651 $as_echo_n "checking for rand in -lc... " >&6; }
20652 if ${ac_cv_lib_c_rand+:} false; then :
20653 $as_echo_n "(cached) " >&6
20654 else
20655 ac_check_lib_save_LIBS=$LIBS
20656 LIBS="-lc $LIBS"
20657 if test x$gcc_no_link = xyes; then
20658 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20661 /* end confdefs.h. */
20663 /* Override any GCC internal prototype to avoid an error.
20664 Use char because int might match the return type of a GCC
20665 builtin and then its argument prototype would still apply. */
20666 #ifdef __cplusplus
20667 extern "C"
20668 #endif
20669 char rand ();
20671 main ()
20673 return rand ();
20675 return 0;
20677 _ACEOF
20678 if ac_fn_c_try_link "$LINENO"; then :
20679 ac_cv_lib_c_rand=yes
20680 else
20681 ac_cv_lib_c_rand=no
20683 rm -f core conftest.err conftest.$ac_objext \
20684 conftest$ac_exeext conftest.$ac_ext
20685 LIBS=$ac_check_lib_save_LIBS
20687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_rand" >&5
20688 $as_echo "$ac_cv_lib_c_rand" >&6; }
20689 if test "x$ac_cv_lib_c_rand" = xyes; then :
20691 $as_echo "#define HAVE_RAND 1" >>confdefs.h
20693 else
20695 $as_echo "#undef HAVE_RAND" >>confdefs.h
20699 else
20700 if test "x$ac_cv_lib_c_rand" = xyes; then
20702 $as_echo "#define HAVE_RAND 1" >>confdefs.h
20704 elif test "x$ac_cv_func_rand" = xyes; then
20706 $as_echo "#define HAVE_RAND 1" >>confdefs.h
20708 else
20710 $as_echo "#undef HAVE_RAND" >>confdefs.h
20716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for read" >&5
20717 $as_echo_n "checking m2 front end checking c library for read... " >&6; }
20718 if test x$gcc_no_link != xyes; then
20719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for read in -lc" >&5
20720 $as_echo_n "checking for read in -lc... " >&6; }
20721 if ${ac_cv_lib_c_read+:} false; then :
20722 $as_echo_n "(cached) " >&6
20723 else
20724 ac_check_lib_save_LIBS=$LIBS
20725 LIBS="-lc $LIBS"
20726 if test x$gcc_no_link = xyes; then
20727 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20730 /* end confdefs.h. */
20732 /* Override any GCC internal prototype to avoid an error.
20733 Use char because int might match the return type of a GCC
20734 builtin and then its argument prototype would still apply. */
20735 #ifdef __cplusplus
20736 extern "C"
20737 #endif
20738 char read ();
20740 main ()
20742 return read ();
20744 return 0;
20746 _ACEOF
20747 if ac_fn_c_try_link "$LINENO"; then :
20748 ac_cv_lib_c_read=yes
20749 else
20750 ac_cv_lib_c_read=no
20752 rm -f core conftest.err conftest.$ac_objext \
20753 conftest$ac_exeext conftest.$ac_ext
20754 LIBS=$ac_check_lib_save_LIBS
20756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_read" >&5
20757 $as_echo "$ac_cv_lib_c_read" >&6; }
20758 if test "x$ac_cv_lib_c_read" = xyes; then :
20760 $as_echo "#define HAVE_READ 1" >>confdefs.h
20762 else
20764 $as_echo "#undef HAVE_READ" >>confdefs.h
20768 else
20769 if test "x$ac_cv_lib_c_read" = xyes; then
20771 $as_echo "#define HAVE_READ 1" >>confdefs.h
20773 elif test "x$ac_cv_func_read" = xyes; then
20775 $as_echo "#define HAVE_READ 1" >>confdefs.h
20777 else
20779 $as_echo "#undef HAVE_READ" >>confdefs.h
20785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for select" >&5
20786 $as_echo_n "checking m2 front end checking c library for select... " >&6; }
20787 if test x$gcc_no_link != xyes; then
20788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select in -lc" >&5
20789 $as_echo_n "checking for select in -lc... " >&6; }
20790 if ${ac_cv_lib_c_select+:} false; then :
20791 $as_echo_n "(cached) " >&6
20792 else
20793 ac_check_lib_save_LIBS=$LIBS
20794 LIBS="-lc $LIBS"
20795 if test x$gcc_no_link = xyes; then
20796 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20799 /* end confdefs.h. */
20801 /* Override any GCC internal prototype to avoid an error.
20802 Use char because int might match the return type of a GCC
20803 builtin and then its argument prototype would still apply. */
20804 #ifdef __cplusplus
20805 extern "C"
20806 #endif
20807 char select ();
20809 main ()
20811 return select ();
20813 return 0;
20815 _ACEOF
20816 if ac_fn_c_try_link "$LINENO"; then :
20817 ac_cv_lib_c_select=yes
20818 else
20819 ac_cv_lib_c_select=no
20821 rm -f core conftest.err conftest.$ac_objext \
20822 conftest$ac_exeext conftest.$ac_ext
20823 LIBS=$ac_check_lib_save_LIBS
20825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_select" >&5
20826 $as_echo "$ac_cv_lib_c_select" >&6; }
20827 if test "x$ac_cv_lib_c_select" = xyes; then :
20829 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
20831 else
20833 $as_echo "#undef HAVE_SELECT" >>confdefs.h
20837 else
20838 if test "x$ac_cv_lib_c_select" = xyes; then
20840 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
20842 elif test "x$ac_cv_func_select" = xyes; then
20844 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
20846 else
20848 $as_echo "#undef HAVE_SELECT" >>confdefs.h
20854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setitimer" >&5
20855 $as_echo_n "checking m2 front end checking c library for setitimer... " >&6; }
20856 if test x$gcc_no_link != xyes; then
20857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setitimer in -lc" >&5
20858 $as_echo_n "checking for setitimer in -lc... " >&6; }
20859 if ${ac_cv_lib_c_setitimer+:} false; then :
20860 $as_echo_n "(cached) " >&6
20861 else
20862 ac_check_lib_save_LIBS=$LIBS
20863 LIBS="-lc $LIBS"
20864 if test x$gcc_no_link = xyes; then
20865 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20868 /* end confdefs.h. */
20870 /* Override any GCC internal prototype to avoid an error.
20871 Use char because int might match the return type of a GCC
20872 builtin and then its argument prototype would still apply. */
20873 #ifdef __cplusplus
20874 extern "C"
20875 #endif
20876 char setitimer ();
20878 main ()
20880 return setitimer ();
20882 return 0;
20884 _ACEOF
20885 if ac_fn_c_try_link "$LINENO"; then :
20886 ac_cv_lib_c_setitimer=yes
20887 else
20888 ac_cv_lib_c_setitimer=no
20890 rm -f core conftest.err conftest.$ac_objext \
20891 conftest$ac_exeext conftest.$ac_ext
20892 LIBS=$ac_check_lib_save_LIBS
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setitimer" >&5
20895 $as_echo "$ac_cv_lib_c_setitimer" >&6; }
20896 if test "x$ac_cv_lib_c_setitimer" = xyes; then :
20898 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
20900 else
20902 $as_echo "#undef HAVE_SETITIMER" >>confdefs.h
20906 else
20907 if test "x$ac_cv_lib_c_setitimer" = xyes; then
20909 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
20911 elif test "x$ac_cv_func_setitimer" = xyes; then
20913 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
20915 else
20917 $as_echo "#undef HAVE_SETITIMER" >>confdefs.h
20923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setgid" >&5
20924 $as_echo_n "checking m2 front end checking c library for setgid... " >&6; }
20925 if test x$gcc_no_link != xyes; then
20926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgid in -lc" >&5
20927 $as_echo_n "checking for setgid in -lc... " >&6; }
20928 if ${ac_cv_lib_c_setgid+:} false; then :
20929 $as_echo_n "(cached) " >&6
20930 else
20931 ac_check_lib_save_LIBS=$LIBS
20932 LIBS="-lc $LIBS"
20933 if test x$gcc_no_link = xyes; then
20934 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20936 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20937 /* end confdefs.h. */
20939 /* Override any GCC internal prototype to avoid an error.
20940 Use char because int might match the return type of a GCC
20941 builtin and then its argument prototype would still apply. */
20942 #ifdef __cplusplus
20943 extern "C"
20944 #endif
20945 char setgid ();
20947 main ()
20949 return setgid ();
20951 return 0;
20953 _ACEOF
20954 if ac_fn_c_try_link "$LINENO"; then :
20955 ac_cv_lib_c_setgid=yes
20956 else
20957 ac_cv_lib_c_setgid=no
20959 rm -f core conftest.err conftest.$ac_objext \
20960 conftest$ac_exeext conftest.$ac_ext
20961 LIBS=$ac_check_lib_save_LIBS
20963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setgid" >&5
20964 $as_echo "$ac_cv_lib_c_setgid" >&6; }
20965 if test "x$ac_cv_lib_c_setgid" = xyes; then :
20967 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
20969 else
20971 $as_echo "#undef HAVE_SETGID" >>confdefs.h
20975 else
20976 if test "x$ac_cv_lib_c_setgid" = xyes; then
20978 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
20980 elif test "x$ac_cv_func_setgid" = xyes; then
20982 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
20984 else
20986 $as_echo "#undef HAVE_SETGID" >>confdefs.h
20992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for settimeofday" >&5
20993 $as_echo_n "checking m2 front end checking c library for settimeofday... " >&6; }
20994 if test x$gcc_no_link != xyes; then
20995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for settimeofday in -lc" >&5
20996 $as_echo_n "checking for settimeofday in -lc... " >&6; }
20997 if ${ac_cv_lib_c_settimeofday+:} false; then :
20998 $as_echo_n "(cached) " >&6
20999 else
21000 ac_check_lib_save_LIBS=$LIBS
21001 LIBS="-lc $LIBS"
21002 if test x$gcc_no_link = xyes; then
21003 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21006 /* end confdefs.h. */
21008 /* Override any GCC internal prototype to avoid an error.
21009 Use char because int might match the return type of a GCC
21010 builtin and then its argument prototype would still apply. */
21011 #ifdef __cplusplus
21012 extern "C"
21013 #endif
21014 char settimeofday ();
21016 main ()
21018 return settimeofday ();
21020 return 0;
21022 _ACEOF
21023 if ac_fn_c_try_link "$LINENO"; then :
21024 ac_cv_lib_c_settimeofday=yes
21025 else
21026 ac_cv_lib_c_settimeofday=no
21028 rm -f core conftest.err conftest.$ac_objext \
21029 conftest$ac_exeext conftest.$ac_ext
21030 LIBS=$ac_check_lib_save_LIBS
21032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_settimeofday" >&5
21033 $as_echo "$ac_cv_lib_c_settimeofday" >&6; }
21034 if test "x$ac_cv_lib_c_settimeofday" = xyes; then :
21036 $as_echo "#define HAVE_SETTIMEOFDAY 1" >>confdefs.h
21038 else
21040 $as_echo "#undef HAVE_SETTIMEOFDAY" >>confdefs.h
21044 else
21045 if test "x$ac_cv_lib_c_settimeofday" = xyes; then
21047 $as_echo "#define HAVE_SETTIMEOFDAY 1" >>confdefs.h
21049 elif test "x$ac_cv_func_settimeofday" = xyes; then
21051 $as_echo "#define HAVE_SETTIMEOFDAY 1" >>confdefs.h
21053 else
21055 $as_echo "#undef HAVE_SETTIMEOFDAY" >>confdefs.h
21061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setuid" >&5
21062 $as_echo_n "checking m2 front end checking c library for setuid... " >&6; }
21063 if test x$gcc_no_link != xyes; then
21064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setuid in -lc" >&5
21065 $as_echo_n "checking for setuid in -lc... " >&6; }
21066 if ${ac_cv_lib_c_setuid+:} false; then :
21067 $as_echo_n "(cached) " >&6
21068 else
21069 ac_check_lib_save_LIBS=$LIBS
21070 LIBS="-lc $LIBS"
21071 if test x$gcc_no_link = xyes; then
21072 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21075 /* end confdefs.h. */
21077 /* Override any GCC internal prototype to avoid an error.
21078 Use char because int might match the return type of a GCC
21079 builtin and then its argument prototype would still apply. */
21080 #ifdef __cplusplus
21081 extern "C"
21082 #endif
21083 char setuid ();
21085 main ()
21087 return setuid ();
21089 return 0;
21091 _ACEOF
21092 if ac_fn_c_try_link "$LINENO"; then :
21093 ac_cv_lib_c_setuid=yes
21094 else
21095 ac_cv_lib_c_setuid=no
21097 rm -f core conftest.err conftest.$ac_objext \
21098 conftest$ac_exeext conftest.$ac_ext
21099 LIBS=$ac_check_lib_save_LIBS
21101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setuid" >&5
21102 $as_echo "$ac_cv_lib_c_setuid" >&6; }
21103 if test "x$ac_cv_lib_c_setuid" = xyes; then :
21105 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
21107 else
21109 $as_echo "#undef HAVE_SETUID" >>confdefs.h
21113 else
21114 if test "x$ac_cv_lib_c_setuid" = xyes; then
21116 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
21118 elif test "x$ac_cv_func_setuid" = xyes; then
21120 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
21122 else
21124 $as_echo "#undef HAVE_SETUID" >>confdefs.h
21130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for stat" >&5
21131 $as_echo_n "checking m2 front end checking c library for stat... " >&6; }
21132 if test x$gcc_no_link != xyes; then
21133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stat in -lc" >&5
21134 $as_echo_n "checking for stat in -lc... " >&6; }
21135 if ${ac_cv_lib_c_stat+:} false; then :
21136 $as_echo_n "(cached) " >&6
21137 else
21138 ac_check_lib_save_LIBS=$LIBS
21139 LIBS="-lc $LIBS"
21140 if test x$gcc_no_link = xyes; then
21141 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21144 /* end confdefs.h. */
21146 /* Override any GCC internal prototype to avoid an error.
21147 Use char because int might match the return type of a GCC
21148 builtin and then its argument prototype would still apply. */
21149 #ifdef __cplusplus
21150 extern "C"
21151 #endif
21152 char stat ();
21154 main ()
21156 return stat ();
21158 return 0;
21160 _ACEOF
21161 if ac_fn_c_try_link "$LINENO"; then :
21162 ac_cv_lib_c_stat=yes
21163 else
21164 ac_cv_lib_c_stat=no
21166 rm -f core conftest.err conftest.$ac_objext \
21167 conftest$ac_exeext conftest.$ac_ext
21168 LIBS=$ac_check_lib_save_LIBS
21170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_stat" >&5
21171 $as_echo "$ac_cv_lib_c_stat" >&6; }
21172 if test "x$ac_cv_lib_c_stat" = xyes; then :
21174 $as_echo "#define HAVE_STAT 1" >>confdefs.h
21176 else
21178 $as_echo "#undef HAVE_STAT" >>confdefs.h
21182 else
21183 if test "x$ac_cv_lib_c_stat" = xyes; then
21185 $as_echo "#define HAVE_STAT 1" >>confdefs.h
21187 elif test "x$ac_cv_func_stat" = xyes; then
21189 $as_echo "#define HAVE_STAT 1" >>confdefs.h
21191 else
21193 $as_echo "#undef HAVE_STAT" >>confdefs.h
21199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strsignal" >&5
21200 $as_echo_n "checking m2 front end checking c library for strsignal... " >&6; }
21201 if test x$gcc_no_link != xyes; then
21202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strsignal in -lc" >&5
21203 $as_echo_n "checking for strsignal in -lc... " >&6; }
21204 if ${ac_cv_lib_c_strsignal+:} false; then :
21205 $as_echo_n "(cached) " >&6
21206 else
21207 ac_check_lib_save_LIBS=$LIBS
21208 LIBS="-lc $LIBS"
21209 if test x$gcc_no_link = xyes; then
21210 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21213 /* end confdefs.h. */
21215 /* Override any GCC internal prototype to avoid an error.
21216 Use char because int might match the return type of a GCC
21217 builtin and then its argument prototype would still apply. */
21218 #ifdef __cplusplus
21219 extern "C"
21220 #endif
21221 char strsignal ();
21223 main ()
21225 return strsignal ();
21227 return 0;
21229 _ACEOF
21230 if ac_fn_c_try_link "$LINENO"; then :
21231 ac_cv_lib_c_strsignal=yes
21232 else
21233 ac_cv_lib_c_strsignal=no
21235 rm -f core conftest.err conftest.$ac_objext \
21236 conftest$ac_exeext conftest.$ac_ext
21237 LIBS=$ac_check_lib_save_LIBS
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strsignal" >&5
21240 $as_echo "$ac_cv_lib_c_strsignal" >&6; }
21241 if test "x$ac_cv_lib_c_strsignal" = xyes; then :
21243 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
21245 else
21247 $as_echo "#undef HAVE_STRSIGNAL" >>confdefs.h
21251 else
21252 if test "x$ac_cv_lib_c_strsignal" = xyes; then
21254 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
21256 elif test "x$ac_cv_func_strsignal" = xyes; then
21258 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
21260 else
21262 $as_echo "#undef HAVE_STRSIGNAL" >>confdefs.h
21268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strtod" >&5
21269 $as_echo_n "checking m2 front end checking c library for strtod... " >&6; }
21270 if test x$gcc_no_link != xyes; then
21271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lc" >&5
21272 $as_echo_n "checking for strtod in -lc... " >&6; }
21273 if ${ac_cv_lib_c_strtod+:} false; then :
21274 $as_echo_n "(cached) " >&6
21275 else
21276 ac_check_lib_save_LIBS=$LIBS
21277 LIBS="-lc $LIBS"
21278 if test x$gcc_no_link = xyes; then
21279 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21282 /* end confdefs.h. */
21284 /* Override any GCC internal prototype to avoid an error.
21285 Use char because int might match the return type of a GCC
21286 builtin and then its argument prototype would still apply. */
21287 #ifdef __cplusplus
21288 extern "C"
21289 #endif
21290 char strtod ();
21292 main ()
21294 return strtod ();
21296 return 0;
21298 _ACEOF
21299 if ac_fn_c_try_link "$LINENO"; then :
21300 ac_cv_lib_c_strtod=yes
21301 else
21302 ac_cv_lib_c_strtod=no
21304 rm -f core conftest.err conftest.$ac_objext \
21305 conftest$ac_exeext conftest.$ac_ext
21306 LIBS=$ac_check_lib_save_LIBS
21308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strtod" >&5
21309 $as_echo "$ac_cv_lib_c_strtod" >&6; }
21310 if test "x$ac_cv_lib_c_strtod" = xyes; then :
21312 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
21314 else
21316 $as_echo "#undef HAVE_STRTOD" >>confdefs.h
21320 else
21321 if test "x$ac_cv_lib_c_strtod" = xyes; then
21323 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
21325 elif test "x$ac_cv_func_strtod" = xyes; then
21327 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
21329 else
21331 $as_echo "#undef HAVE_STRTOD" >>confdefs.h
21337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strtold" >&5
21338 $as_echo_n "checking m2 front end checking c library for strtold... " >&6; }
21339 if test x$gcc_no_link != xyes; then
21340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold in -lc" >&5
21341 $as_echo_n "checking for strtold in -lc... " >&6; }
21342 if ${ac_cv_lib_c_strtold+:} false; then :
21343 $as_echo_n "(cached) " >&6
21344 else
21345 ac_check_lib_save_LIBS=$LIBS
21346 LIBS="-lc $LIBS"
21347 if test x$gcc_no_link = xyes; then
21348 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21351 /* end confdefs.h. */
21353 /* Override any GCC internal prototype to avoid an error.
21354 Use char because int might match the return type of a GCC
21355 builtin and then its argument prototype would still apply. */
21356 #ifdef __cplusplus
21357 extern "C"
21358 #endif
21359 char strtold ();
21361 main ()
21363 return strtold ();
21365 return 0;
21367 _ACEOF
21368 if ac_fn_c_try_link "$LINENO"; then :
21369 ac_cv_lib_c_strtold=yes
21370 else
21371 ac_cv_lib_c_strtold=no
21373 rm -f core conftest.err conftest.$ac_objext \
21374 conftest$ac_exeext conftest.$ac_ext
21375 LIBS=$ac_check_lib_save_LIBS
21377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strtold" >&5
21378 $as_echo "$ac_cv_lib_c_strtold" >&6; }
21379 if test "x$ac_cv_lib_c_strtold" = xyes; then :
21381 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
21383 else
21385 $as_echo "#undef HAVE_STRTOLD" >>confdefs.h
21389 else
21390 if test "x$ac_cv_lib_c_strtold" = xyes; then
21392 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
21394 elif test "x$ac_cv_func_strtold" = xyes; then
21396 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
21398 else
21400 $as_echo "#undef HAVE_STRTOLD" >>confdefs.h
21406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for times" >&5
21407 $as_echo_n "checking m2 front end checking c library for times... " >&6; }
21408 if test x$gcc_no_link != xyes; then
21409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for times in -lc" >&5
21410 $as_echo_n "checking for times in -lc... " >&6; }
21411 if ${ac_cv_lib_c_times+:} false; then :
21412 $as_echo_n "(cached) " >&6
21413 else
21414 ac_check_lib_save_LIBS=$LIBS
21415 LIBS="-lc $LIBS"
21416 if test x$gcc_no_link = xyes; then
21417 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21420 /* end confdefs.h. */
21422 /* Override any GCC internal prototype to avoid an error.
21423 Use char because int might match the return type of a GCC
21424 builtin and then its argument prototype would still apply. */
21425 #ifdef __cplusplus
21426 extern "C"
21427 #endif
21428 char times ();
21430 main ()
21432 return times ();
21434 return 0;
21436 _ACEOF
21437 if ac_fn_c_try_link "$LINENO"; then :
21438 ac_cv_lib_c_times=yes
21439 else
21440 ac_cv_lib_c_times=no
21442 rm -f core conftest.err conftest.$ac_objext \
21443 conftest$ac_exeext conftest.$ac_ext
21444 LIBS=$ac_check_lib_save_LIBS
21446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_times" >&5
21447 $as_echo "$ac_cv_lib_c_times" >&6; }
21448 if test "x$ac_cv_lib_c_times" = xyes; then :
21450 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
21452 else
21454 $as_echo "#undef HAVE_TIMES" >>confdefs.h
21458 else
21459 if test "x$ac_cv_lib_c_times" = xyes; then
21461 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
21463 elif test "x$ac_cv_func_times" = xyes; then
21465 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
21467 else
21469 $as_echo "#undef HAVE_TIMES" >>confdefs.h
21475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for timezone" >&5
21476 $as_echo_n "checking m2 front end checking c library for timezone... " >&6; }
21477 if test x$gcc_no_link != xyes; then
21478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone in -lc" >&5
21479 $as_echo_n "checking for timezone in -lc... " >&6; }
21480 if ${ac_cv_lib_c_timezone+:} false; then :
21481 $as_echo_n "(cached) " >&6
21482 else
21483 ac_check_lib_save_LIBS=$LIBS
21484 LIBS="-lc $LIBS"
21485 if test x$gcc_no_link = xyes; then
21486 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21489 /* end confdefs.h. */
21491 /* Override any GCC internal prototype to avoid an error.
21492 Use char because int might match the return type of a GCC
21493 builtin and then its argument prototype would still apply. */
21494 #ifdef __cplusplus
21495 extern "C"
21496 #endif
21497 char timezone ();
21499 main ()
21501 return timezone ();
21503 return 0;
21505 _ACEOF
21506 if ac_fn_c_try_link "$LINENO"; then :
21507 ac_cv_lib_c_timezone=yes
21508 else
21509 ac_cv_lib_c_timezone=no
21511 rm -f core conftest.err conftest.$ac_objext \
21512 conftest$ac_exeext conftest.$ac_ext
21513 LIBS=$ac_check_lib_save_LIBS
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_timezone" >&5
21516 $as_echo "$ac_cv_lib_c_timezone" >&6; }
21517 if test "x$ac_cv_lib_c_timezone" = xyes; then :
21519 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
21521 else
21523 $as_echo "#undef HAVE_TIMEZONE" >>confdefs.h
21527 else
21528 if test "x$ac_cv_lib_c_timezone" = xyes; then
21530 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
21532 elif test "x$ac_cv_func_timezone" = xyes; then
21534 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
21536 else
21538 $as_echo "#undef HAVE_TIMEZONE" >>confdefs.h
21544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for tzname" >&5
21545 $as_echo_n "checking m2 front end checking c library for tzname... " >&6; }
21546 if test x$gcc_no_link != xyes; then
21547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname in -lc" >&5
21548 $as_echo_n "checking for tzname in -lc... " >&6; }
21549 if ${ac_cv_lib_c_tzname+:} false; then :
21550 $as_echo_n "(cached) " >&6
21551 else
21552 ac_check_lib_save_LIBS=$LIBS
21553 LIBS="-lc $LIBS"
21554 if test x$gcc_no_link = xyes; then
21555 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21558 /* end confdefs.h. */
21560 /* Override any GCC internal prototype to avoid an error.
21561 Use char because int might match the return type of a GCC
21562 builtin and then its argument prototype would still apply. */
21563 #ifdef __cplusplus
21564 extern "C"
21565 #endif
21566 char tzname ();
21568 main ()
21570 return tzname ();
21572 return 0;
21574 _ACEOF
21575 if ac_fn_c_try_link "$LINENO"; then :
21576 ac_cv_lib_c_tzname=yes
21577 else
21578 ac_cv_lib_c_tzname=no
21580 rm -f core conftest.err conftest.$ac_objext \
21581 conftest$ac_exeext conftest.$ac_ext
21582 LIBS=$ac_check_lib_save_LIBS
21584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_tzname" >&5
21585 $as_echo "$ac_cv_lib_c_tzname" >&6; }
21586 if test "x$ac_cv_lib_c_tzname" = xyes; then :
21588 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21590 else
21592 $as_echo "#undef HAVE_TZNAME" >>confdefs.h
21596 else
21597 if test "x$ac_cv_lib_c_tzname" = xyes; then
21599 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21601 elif test "x$ac_cv_func_tzname" = xyes; then
21603 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21605 else
21607 $as_echo "#undef HAVE_TZNAME" >>confdefs.h
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for unlink" >&5
21614 $as_echo_n "checking m2 front end checking c library for unlink... " >&6; }
21615 if test x$gcc_no_link != xyes; then
21616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unlink in -lc" >&5
21617 $as_echo_n "checking for unlink in -lc... " >&6; }
21618 if ${ac_cv_lib_c_unlink+:} false; then :
21619 $as_echo_n "(cached) " >&6
21620 else
21621 ac_check_lib_save_LIBS=$LIBS
21622 LIBS="-lc $LIBS"
21623 if test x$gcc_no_link = xyes; then
21624 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21627 /* end confdefs.h. */
21629 /* Override any GCC internal prototype to avoid an error.
21630 Use char because int might match the return type of a GCC
21631 builtin and then its argument prototype would still apply. */
21632 #ifdef __cplusplus
21633 extern "C"
21634 #endif
21635 char unlink ();
21637 main ()
21639 return unlink ();
21641 return 0;
21643 _ACEOF
21644 if ac_fn_c_try_link "$LINENO"; then :
21645 ac_cv_lib_c_unlink=yes
21646 else
21647 ac_cv_lib_c_unlink=no
21649 rm -f core conftest.err conftest.$ac_objext \
21650 conftest$ac_exeext conftest.$ac_ext
21651 LIBS=$ac_check_lib_save_LIBS
21653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_unlink" >&5
21654 $as_echo "$ac_cv_lib_c_unlink" >&6; }
21655 if test "x$ac_cv_lib_c_unlink" = xyes; then :
21657 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
21659 else
21661 $as_echo "#undef HAVE_UNLINK" >>confdefs.h
21665 else
21666 if test "x$ac_cv_lib_c_unlink" = xyes; then
21668 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
21670 elif test "x$ac_cv_func_unlink" = xyes; then
21672 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
21674 else
21676 $as_echo "#undef HAVE_UNLINK" >>confdefs.h
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for wait" >&5
21683 $as_echo_n "checking m2 front end checking c library for wait... " >&6; }
21684 if test x$gcc_no_link != xyes; then
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait in -lc" >&5
21686 $as_echo_n "checking for wait in -lc... " >&6; }
21687 if ${ac_cv_lib_c_wait+:} false; then :
21688 $as_echo_n "(cached) " >&6
21689 else
21690 ac_check_lib_save_LIBS=$LIBS
21691 LIBS="-lc $LIBS"
21692 if test x$gcc_no_link = xyes; then
21693 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21696 /* end confdefs.h. */
21698 /* Override any GCC internal prototype to avoid an error.
21699 Use char because int might match the return type of a GCC
21700 builtin and then its argument prototype would still apply. */
21701 #ifdef __cplusplus
21702 extern "C"
21703 #endif
21704 char wait ();
21706 main ()
21708 return wait ();
21710 return 0;
21712 _ACEOF
21713 if ac_fn_c_try_link "$LINENO"; then :
21714 ac_cv_lib_c_wait=yes
21715 else
21716 ac_cv_lib_c_wait=no
21718 rm -f core conftest.err conftest.$ac_objext \
21719 conftest$ac_exeext conftest.$ac_ext
21720 LIBS=$ac_check_lib_save_LIBS
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_wait" >&5
21723 $as_echo "$ac_cv_lib_c_wait" >&6; }
21724 if test "x$ac_cv_lib_c_wait" = xyes; then :
21726 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
21728 else
21730 $as_echo "#undef HAVE_WAIT" >>confdefs.h
21734 else
21735 if test "x$ac_cv_lib_c_wait" = xyes; then
21737 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
21739 elif test "x$ac_cv_func_wait" = xyes; then
21741 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
21743 else
21745 $as_echo "#undef HAVE_WAIT" >>confdefs.h
21751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for write" >&5
21752 $as_echo_n "checking m2 front end checking c library for write... " >&6; }
21753 if test x$gcc_no_link != xyes; then
21754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for write in -lc" >&5
21755 $as_echo_n "checking for write in -lc... " >&6; }
21756 if ${ac_cv_lib_c_write+:} false; then :
21757 $as_echo_n "(cached) " >&6
21758 else
21759 ac_check_lib_save_LIBS=$LIBS
21760 LIBS="-lc $LIBS"
21761 if test x$gcc_no_link = xyes; then
21762 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21765 /* end confdefs.h. */
21767 /* Override any GCC internal prototype to avoid an error.
21768 Use char because int might match the return type of a GCC
21769 builtin and then its argument prototype would still apply. */
21770 #ifdef __cplusplus
21771 extern "C"
21772 #endif
21773 char write ();
21775 main ()
21777 return write ();
21779 return 0;
21781 _ACEOF
21782 if ac_fn_c_try_link "$LINENO"; then :
21783 ac_cv_lib_c_write=yes
21784 else
21785 ac_cv_lib_c_write=no
21787 rm -f core conftest.err conftest.$ac_objext \
21788 conftest$ac_exeext conftest.$ac_ext
21789 LIBS=$ac_check_lib_save_LIBS
21791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_write" >&5
21792 $as_echo "$ac_cv_lib_c_write" >&6; }
21793 if test "x$ac_cv_lib_c_write" = xyes; then :
21795 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
21797 else
21799 $as_echo "#undef HAVE_WRITE" >>confdefs.h
21803 else
21804 if test "x$ac_cv_lib_c_write" = xyes; then
21806 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
21808 elif test "x$ac_cv_func_write" = xyes; then
21810 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
21812 else
21814 $as_echo "#undef HAVE_WRITE" >>confdefs.h
21821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for exp10" >&5
21822 $as_echo_n "checking m2 front end checking m library for exp10... " >&6; }
21823 if test x$gcc_no_link != xyes; then
21824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp10 in -lm" >&5
21825 $as_echo_n "checking for exp10 in -lm... " >&6; }
21826 if ${ac_cv_lib_m_exp10+:} false; then :
21827 $as_echo_n "(cached) " >&6
21828 else
21829 ac_check_lib_save_LIBS=$LIBS
21830 LIBS="-lm $LIBS"
21831 if test x$gcc_no_link = xyes; then
21832 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21835 /* end confdefs.h. */
21837 /* Override any GCC internal prototype to avoid an error.
21838 Use char because int might match the return type of a GCC
21839 builtin and then its argument prototype would still apply. */
21840 #ifdef __cplusplus
21841 extern "C"
21842 #endif
21843 char exp10 ();
21845 main ()
21847 return exp10 ();
21849 return 0;
21851 _ACEOF
21852 if ac_fn_c_try_link "$LINENO"; then :
21853 ac_cv_lib_m_exp10=yes
21854 else
21855 ac_cv_lib_m_exp10=no
21857 rm -f core conftest.err conftest.$ac_objext \
21858 conftest$ac_exeext conftest.$ac_ext
21859 LIBS=$ac_check_lib_save_LIBS
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp10" >&5
21862 $as_echo "$ac_cv_lib_m_exp10" >&6; }
21863 if test "x$ac_cv_lib_m_exp10" = xyes; then :
21865 $as_echo "#define HAVE_EXP10 1" >>confdefs.h
21867 else
21869 $as_echo "#undef HAVE_EXP10" >>confdefs.h
21873 else
21874 if test "x$ac_cv_lib_m_exp10" = xyes; then
21876 $as_echo "#define HAVE_EXP10 1" >>confdefs.h
21878 elif test "x$ac_cv_func_exp10" = xyes; then
21880 $as_echo "#define HAVE_EXP10 1" >>confdefs.h
21882 else
21884 $as_echo "#undef HAVE_EXP10" >>confdefs.h
21890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for exp10f" >&5
21891 $as_echo_n "checking m2 front end checking m library for exp10f... " >&6; }
21892 if test x$gcc_no_link != xyes; then
21893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp10f in -lm" >&5
21894 $as_echo_n "checking for exp10f in -lm... " >&6; }
21895 if ${ac_cv_lib_m_exp10f+:} false; then :
21896 $as_echo_n "(cached) " >&6
21897 else
21898 ac_check_lib_save_LIBS=$LIBS
21899 LIBS="-lm $LIBS"
21900 if test x$gcc_no_link = xyes; then
21901 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21904 /* end confdefs.h. */
21906 /* Override any GCC internal prototype to avoid an error.
21907 Use char because int might match the return type of a GCC
21908 builtin and then its argument prototype would still apply. */
21909 #ifdef __cplusplus
21910 extern "C"
21911 #endif
21912 char exp10f ();
21914 main ()
21916 return exp10f ();
21918 return 0;
21920 _ACEOF
21921 if ac_fn_c_try_link "$LINENO"; then :
21922 ac_cv_lib_m_exp10f=yes
21923 else
21924 ac_cv_lib_m_exp10f=no
21926 rm -f core conftest.err conftest.$ac_objext \
21927 conftest$ac_exeext conftest.$ac_ext
21928 LIBS=$ac_check_lib_save_LIBS
21930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp10f" >&5
21931 $as_echo "$ac_cv_lib_m_exp10f" >&6; }
21932 if test "x$ac_cv_lib_m_exp10f" = xyes; then :
21934 $as_echo "#define HAVE_EXP10F 1" >>confdefs.h
21936 else
21938 $as_echo "#undef HAVE_EXP10F" >>confdefs.h
21942 else
21943 if test "x$ac_cv_lib_m_exp10f" = xyes; then
21945 $as_echo "#define HAVE_EXP10F 1" >>confdefs.h
21947 elif test "x$ac_cv_func_exp10f" = xyes; then
21949 $as_echo "#define HAVE_EXP10F 1" >>confdefs.h
21951 else
21953 $as_echo "#undef HAVE_EXP10F" >>confdefs.h
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for exp10l" >&5
21960 $as_echo_n "checking m2 front end checking m library for exp10l... " >&6; }
21961 if test x$gcc_no_link != xyes; then
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp10l in -lm" >&5
21963 $as_echo_n "checking for exp10l in -lm... " >&6; }
21964 if ${ac_cv_lib_m_exp10l+:} false; then :
21965 $as_echo_n "(cached) " >&6
21966 else
21967 ac_check_lib_save_LIBS=$LIBS
21968 LIBS="-lm $LIBS"
21969 if test x$gcc_no_link = xyes; then
21970 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21973 /* end confdefs.h. */
21975 /* Override any GCC internal prototype to avoid an error.
21976 Use char because int might match the return type of a GCC
21977 builtin and then its argument prototype would still apply. */
21978 #ifdef __cplusplus
21979 extern "C"
21980 #endif
21981 char exp10l ();
21983 main ()
21985 return exp10l ();
21987 return 0;
21989 _ACEOF
21990 if ac_fn_c_try_link "$LINENO"; then :
21991 ac_cv_lib_m_exp10l=yes
21992 else
21993 ac_cv_lib_m_exp10l=no
21995 rm -f core conftest.err conftest.$ac_objext \
21996 conftest$ac_exeext conftest.$ac_ext
21997 LIBS=$ac_check_lib_save_LIBS
21999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp10l" >&5
22000 $as_echo "$ac_cv_lib_m_exp10l" >&6; }
22001 if test "x$ac_cv_lib_m_exp10l" = xyes; then :
22003 $as_echo "#define HAVE_EXP10L 1" >>confdefs.h
22005 else
22007 $as_echo "#undef HAVE_EXP10L" >>confdefs.h
22011 else
22012 if test "x$ac_cv_lib_m_exp10l" = xyes; then
22014 $as_echo "#define HAVE_EXP10L 1" >>confdefs.h
22016 elif test "x$ac_cv_func_exp10l" = xyes; then
22018 $as_echo "#define HAVE_EXP10L 1" >>confdefs.h
22020 else
22022 $as_echo "#undef HAVE_EXP10L" >>confdefs.h
22028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbit" >&5
22029 $as_echo_n "checking m2 front end checking m library for signbit... " >&6; }
22030 if test x$gcc_no_link != xyes; then
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit in -lm" >&5
22032 $as_echo_n "checking for signbit in -lm... " >&6; }
22033 if ${ac_cv_lib_m_signbit+:} false; then :
22034 $as_echo_n "(cached) " >&6
22035 else
22036 ac_check_lib_save_LIBS=$LIBS
22037 LIBS="-lm $LIBS"
22038 if test x$gcc_no_link = xyes; then
22039 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22042 /* end confdefs.h. */
22044 /* Override any GCC internal prototype to avoid an error.
22045 Use char because int might match the return type of a GCC
22046 builtin and then its argument prototype would still apply. */
22047 #ifdef __cplusplus
22048 extern "C"
22049 #endif
22050 char signbit ();
22052 main ()
22054 return signbit ();
22056 return 0;
22058 _ACEOF
22059 if ac_fn_c_try_link "$LINENO"; then :
22060 ac_cv_lib_m_signbit=yes
22061 else
22062 ac_cv_lib_m_signbit=no
22064 rm -f core conftest.err conftest.$ac_objext \
22065 conftest$ac_exeext conftest.$ac_ext
22066 LIBS=$ac_check_lib_save_LIBS
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbit" >&5
22069 $as_echo "$ac_cv_lib_m_signbit" >&6; }
22070 if test "x$ac_cv_lib_m_signbit" = xyes; then :
22072 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
22074 else
22076 $as_echo "#undef HAVE_SIGNBIT" >>confdefs.h
22080 else
22081 if test "x$ac_cv_lib_m_signbit" = xyes; then
22083 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
22085 elif test "x$ac_cv_func_signbit" = xyes; then
22087 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
22089 else
22091 $as_echo "#undef HAVE_SIGNBIT" >>confdefs.h
22097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbitf" >&5
22098 $as_echo_n "checking m2 front end checking m library for signbitf... " >&6; }
22099 if test x$gcc_no_link != xyes; then
22100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbitf in -lm" >&5
22101 $as_echo_n "checking for signbitf in -lm... " >&6; }
22102 if ${ac_cv_lib_m_signbitf+:} false; then :
22103 $as_echo_n "(cached) " >&6
22104 else
22105 ac_check_lib_save_LIBS=$LIBS
22106 LIBS="-lm $LIBS"
22107 if test x$gcc_no_link = xyes; then
22108 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22111 /* end confdefs.h. */
22113 /* Override any GCC internal prototype to avoid an error.
22114 Use char because int might match the return type of a GCC
22115 builtin and then its argument prototype would still apply. */
22116 #ifdef __cplusplus
22117 extern "C"
22118 #endif
22119 char signbitf ();
22121 main ()
22123 return signbitf ();
22125 return 0;
22127 _ACEOF
22128 if ac_fn_c_try_link "$LINENO"; then :
22129 ac_cv_lib_m_signbitf=yes
22130 else
22131 ac_cv_lib_m_signbitf=no
22133 rm -f core conftest.err conftest.$ac_objext \
22134 conftest$ac_exeext conftest.$ac_ext
22135 LIBS=$ac_check_lib_save_LIBS
22137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbitf" >&5
22138 $as_echo "$ac_cv_lib_m_signbitf" >&6; }
22139 if test "x$ac_cv_lib_m_signbitf" = xyes; then :
22141 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
22143 else
22145 $as_echo "#undef HAVE_SIGNBITF" >>confdefs.h
22149 else
22150 if test "x$ac_cv_lib_m_signbitf" = xyes; then
22152 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
22154 elif test "x$ac_cv_func_signbitf" = xyes; then
22156 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
22158 else
22160 $as_echo "#undef HAVE_SIGNBITF" >>confdefs.h
22166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbitl" >&5
22167 $as_echo_n "checking m2 front end checking m library for signbitl... " >&6; }
22168 if test x$gcc_no_link != xyes; then
22169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbitl in -lm" >&5
22170 $as_echo_n "checking for signbitl in -lm... " >&6; }
22171 if ${ac_cv_lib_m_signbitl+:} false; then :
22172 $as_echo_n "(cached) " >&6
22173 else
22174 ac_check_lib_save_LIBS=$LIBS
22175 LIBS="-lm $LIBS"
22176 if test x$gcc_no_link = xyes; then
22177 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22180 /* end confdefs.h. */
22182 /* Override any GCC internal prototype to avoid an error.
22183 Use char because int might match the return type of a GCC
22184 builtin and then its argument prototype would still apply. */
22185 #ifdef __cplusplus
22186 extern "C"
22187 #endif
22188 char signbitl ();
22190 main ()
22192 return signbitl ();
22194 return 0;
22196 _ACEOF
22197 if ac_fn_c_try_link "$LINENO"; then :
22198 ac_cv_lib_m_signbitl=yes
22199 else
22200 ac_cv_lib_m_signbitl=no
22202 rm -f core conftest.err conftest.$ac_objext \
22203 conftest$ac_exeext conftest.$ac_ext
22204 LIBS=$ac_check_lib_save_LIBS
22206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbitl" >&5
22207 $as_echo "$ac_cv_lib_m_signbitl" >&6; }
22208 if test "x$ac_cv_lib_m_signbitl" = xyes; then :
22210 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
22212 else
22214 $as_echo "#undef HAVE_SIGNBITL" >>confdefs.h
22218 else
22219 if test "x$ac_cv_lib_m_signbitl" = xyes; then
22221 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
22223 elif test "x$ac_cv_func_signbitl" = xyes; then
22225 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
22227 else
22229 $as_echo "#undef HAVE_SIGNBITL" >>confdefs.h
22235 ac_fn_c_check_decl "$LINENO" "getenv" "ac_cv_have_decl_getenv" "$ac_includes_default"
22236 if test "x$ac_cv_have_decl_getenv" = xyes; then :
22237 ac_have_decl=1
22238 else
22239 ac_have_decl=0
22242 cat >>confdefs.h <<_ACEOF
22243 #define HAVE_DECL_GETENV $ac_have_decl
22244 _ACEOF
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: libgm2 has finished checking target libc and libm contents." >&5
22248 $as_echo "$as_me: libgm2 has finished checking target libc and libm contents." >&6;}
22250 # We test the host here and later on check the target.
22252 # All known M2_HOST_OS values. This is the union of all host operating systems
22253 # supported by gm2.
22255 M2_SUPPORTED_HOST_OS="aix freebsd hurd linux netbsd openbsd solaris windows darwin"
22257 M2_HOST_OS=unknown
22259 case ${host} in
22260 *-*-darwin*) M2_HOST_OS=darwin ;;
22261 *-*-freebsd*) M2_HOST_OS=freebsd ;;
22262 *-*-linux*) M2_HOST_OS=linux ;;
22263 *-*-netbsd*) M2_HOST_OS=netbsd ;;
22264 *-*-openbsd*) M2_HOST_OS=openbsd ;;
22265 *-*-solaris2*) M2_HOST_OS=solaris ;;
22266 *-*-aix*) M2_HOST_OS=aix ;;
22267 *-*-gnu*) M2_HOST_OS=hurd ;;
22268 esac
22270 M2_TARGET_OS=unknown
22272 case ${target} in
22273 *-*-darwin*) M2_TARGET_OS=darwin ;;
22274 *-*-freebsd*) M2_TARGET_OS=freebsd ;;
22275 *-*-linux*) M2_TARGET_OS=linux ;;
22276 *-*-netbsd*) M2_TARGET_OS=netbsd ;;
22277 *-*-openbsd*) M2_TARGET_OS=openbsd ;;
22278 *-*-solaris2*) M2_TARGET_OS=solaris ;;
22279 *-*-aix*) M2_TARGET_OS=aix ;;
22280 *-*-gnu*) M2_TARGET_OS=hurd ;;
22281 esac
22283 # M2_HOST_OS=unknown
22284 if test x${M2_HOST_OS} = xunknown; then
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: unsupported host, will build a minimal m2 library" >&5
22286 $as_echo "$as_me: unsupported host, will build a minimal m2 library" >&6;}
22287 BUILD_PIMLIB=false
22288 BUILD_ISOLIB=false
22289 BUILD_CORLIB=false
22290 BUILD_LOGLIB=false
22291 else
22292 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 library will be built on ${M2_HOST_OS}" >&5
22293 $as_echo "$as_me: m2 library will be built on ${M2_HOST_OS}" >&6;}
22294 BUILD_PIMLIB=true
22295 BUILD_ISOLIB=true
22296 BUILD_CORLIB=true
22297 BUILD_LOGLIB=true
22300 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
22303 # Propagate GM2_FOR_TARGET into Makefiles
22304 GM2_FOR_TARGET=${GM2_FOR_TARGET:-gcc}
22307 # Now we check the target as long as it is a supported host.
22308 # For some embedded targets we choose minimal runtime system which is
22309 # just enough to satisfy the linker targetting raw metal.
22310 if test x${M2_HOST_OS} != xunknown; then
22311 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 library building for target ${target}" >&5
22312 $as_echo "$as_me: m2 library building for target ${target}" >&6;}
22313 case "$target" in
22315 avr25*-*-* | avr31*-*-* | avr35*-*-* | avr4*-*-* | avr5*-*-* | avr51*-*-* | avr6*-*-*)
22316 BUILD_PIMLIB=false
22317 BUILD_ISOLIB=false
22318 BUILD_CORLIB=false
22319 BUILD_LOGLIB=false
22322 avrxmega2*-*-* | avrxmega4*-*-* | avrxmega5*-*-* | avrxmega6*-*-* | avrxmega7*-*-*)
22323 BUILD_PIMLIB=false
22324 BUILD_ISOLIB=false
22325 BUILD_CORLIB=false
22326 BUILD_LOGLIB=false
22329 avr3-*-*)
22330 BUILD_PIMLIB=true
22331 BUILD_ISOLIB=true
22332 BUILD_CORLIB=true
22333 BUILD_LOGLIB=true
22335 esp32-*-*)
22336 BUILD_PIMLIB=false
22337 BUILD_ISOLIB=false
22338 BUILD_CORLIB=false
22339 BUILD_LOGLIB=false
22342 esac
22345 # GM2_MSG_RESULT issue a query message from the first parameter and a boolean result
22346 # in the second parameter is printed as a "yes" or "no".
22350 if test x${M2_HOST_OS} = xunknown; then
22351 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 front end will only build minimal Modula-2 runtime library on this host" >&5
22352 $as_echo "$as_me: m2 front end will only build minimal Modula-2 runtime library on this host" >&6;}
22353 else
22355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build PIM libraries:" >&5
22356 $as_echo_n "checking m2 front end will build PIM libraries:... " >&6; }
22357 if test x${BUILD_PIMLIB} = xtrue; then
22358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22359 $as_echo "yes" >&6; }
22360 else
22361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22362 $as_echo "no" >&6; }
22366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build ISO libraries:" >&5
22367 $as_echo_n "checking m2 front end will build ISO libraries:... " >&6; }
22368 if test x${BUILD_ISOLIB} = xtrue; then
22369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22370 $as_echo "yes" >&6; }
22371 else
22372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22373 $as_echo "no" >&6; }
22377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build coroutine libraries:" >&5
22378 $as_echo_n "checking m2 front end will build coroutine libraries:... " >&6; }
22379 if test x${BUILD_CORLIB} = xtrue; then
22380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22381 $as_echo "yes" >&6; }
22382 else
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22384 $as_echo "no" >&6; }
22388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build Logitech compatability libraries:" >&5
22389 $as_echo_n "checking m2 front end will build Logitech compatability libraries:... " >&6; }
22390 if test x${BUILD_LOGLIB} = xtrue; then
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22392 $as_echo "yes" >&6; }
22393 else
22394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22395 $as_echo "no" >&6; }
22400 if test x$BUILD_PIMLIB = xtrue; then
22401 BUILD_PIMLIB_TRUE=
22402 BUILD_PIMLIB_FALSE='#'
22403 else
22404 BUILD_PIMLIB_TRUE='#'
22405 BUILD_PIMLIB_FALSE=
22408 if test x$BUILD_ISOLIB = xtrue; then
22409 BUILD_ISOLIB_TRUE=
22410 BUILD_ISOLIB_FALSE='#'
22411 else
22412 BUILD_ISOLIB_TRUE='#'
22413 BUILD_ISOLIB_FALSE=
22416 if test x$BUILD_CORLIB = xtrue; then
22417 BUILD_CORLIB_TRUE=
22418 BUILD_CORLIB_FALSE='#'
22419 else
22420 BUILD_CORLIB_TRUE='#'
22421 BUILD_CORLIB_FALSE=
22424 if test x$BUILD_LOGLIB = xtrue; then
22425 BUILD_LOGLIB_TRUE=
22426 BUILD_LOGLIB_FALSE='#'
22427 else
22428 BUILD_LOGLIB_TRUE='#'
22429 BUILD_LOGLIB_FALSE=
22432 if test x$M2_TARGET_OS = xdarwin; then
22433 TARGET_DARWIN_TRUE=
22434 TARGET_DARWIN_FALSE='#'
22435 else
22436 TARGET_DARWIN_TRUE='#'
22437 TARGET_DARWIN_FALSE=
22441 # Determine what GCC version number to use in filesystem paths.
22443 get_gcc_base_ver="cat"
22445 # Check whether --with-gcc-major-version-only was given.
22446 if test "${with_gcc_major_version_only+set}" = set; then :
22447 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
22448 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
22457 ac_config_files="$ac_config_files Makefile"
22460 ac_config_files="$ac_config_files libm2min/Makefile libm2pim/Makefile libm2iso/Makefile libm2cor/Makefile libm2log/Makefile"
22463 { $as_echo "$as_me:${as_lineno-$LINENO}: libgm2 has been configured." >&5
22464 $as_echo "$as_me: libgm2 has been configured." >&6;}
22466 cat >confcache <<\_ACEOF
22467 # This file is a shell script that caches the results of configure
22468 # tests run on this system so they can be shared between configure
22469 # scripts and configure runs, see configure's option --config-cache.
22470 # It is not useful on other systems. If it contains results you don't
22471 # want to keep, you may remove or edit it.
22473 # config.status only pays attention to the cache file if you give it
22474 # the --recheck option to rerun configure.
22476 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22477 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22478 # following values.
22480 _ACEOF
22482 # The following way of writing the cache mishandles newlines in values,
22483 # but we know of no workaround that is simple, portable, and efficient.
22484 # So, we kill variables containing newlines.
22485 # Ultrix sh set writes to stderr and can't be redirected directly,
22486 # and sets the high bit in the cache file unless we assign to the vars.
22488 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22489 eval ac_val=\$$ac_var
22490 case $ac_val in #(
22491 *${as_nl}*)
22492 case $ac_var in #(
22493 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22494 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22495 esac
22496 case $ac_var in #(
22497 _ | IFS | as_nl) ;; #(
22498 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22499 *) { eval $ac_var=; unset $ac_var;} ;;
22500 esac ;;
22501 esac
22502 done
22504 (set) 2>&1 |
22505 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22506 *${as_nl}ac_space=\ *)
22507 # `set' does not quote correctly, so add quotes: double-quote
22508 # substitution turns \\\\ into \\, and sed turns \\ into \.
22509 sed -n \
22510 "s/'/'\\\\''/g;
22511 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22512 ;; #(
22514 # `set' quotes correctly as required by POSIX, so do not add quotes.
22515 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22517 esac |
22518 sort
22520 sed '
22521 /^ac_cv_env_/b end
22522 t clear
22523 :clear
22524 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22525 t end
22526 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22527 :end' >>confcache
22528 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22529 if test -w "$cache_file"; then
22530 if test "x$cache_file" != "x/dev/null"; then
22531 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22532 $as_echo "$as_me: updating cache $cache_file" >&6;}
22533 if test ! -f "$cache_file" || test -h "$cache_file"; then
22534 cat confcache >"$cache_file"
22535 else
22536 case $cache_file in #(
22537 */* | ?:*)
22538 mv -f confcache "$cache_file"$$ &&
22539 mv -f "$cache_file"$$ "$cache_file" ;; #(
22541 mv -f confcache "$cache_file" ;;
22542 esac
22545 else
22546 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22547 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22550 rm -f confcache
22552 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22553 # Let make expand exec_prefix.
22554 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22556 DEFS=-DHAVE_CONFIG_H
22558 ac_libobjs=
22559 ac_ltlibobjs=
22561 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22562 # 1. Remove the extension, and $U if already installed.
22563 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22564 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22565 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22566 # will be set to the directory where LIBOBJS objects are built.
22567 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22568 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22569 done
22570 LIBOBJS=$ac_libobjs
22572 LTLIBOBJS=$ac_ltlibobjs
22575 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22576 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22580 $as_echo_n "checking that generated files are newer than configure... " >&6; }
22581 if test -n "$am_sleep_pid"; then
22582 # Hide warnings about reused PIDs.
22583 wait $am_sleep_pid 2>/dev/null
22585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22586 $as_echo "done" >&6; }
22587 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22588 as_fn_error $? "conditional \"AMDEP\" was never defined.
22589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22591 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22592 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22593 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22595 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22596 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22597 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22599 if test -n "$EXEEXT"; then
22600 am__EXEEXT_TRUE=
22601 am__EXEEXT_FALSE='#'
22602 else
22603 am__EXEEXT_TRUE='#'
22604 am__EXEEXT_FALSE=
22607 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22608 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22609 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22611 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
22612 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
22613 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22615 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
22616 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
22617 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22619 if test -z "${BUILD_PIMLIB_TRUE}" && test -z "${BUILD_PIMLIB_FALSE}"; then
22620 as_fn_error $? "conditional \"BUILD_PIMLIB\" was never defined.
22621 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22623 if test -z "${BUILD_ISOLIB_TRUE}" && test -z "${BUILD_ISOLIB_FALSE}"; then
22624 as_fn_error $? "conditional \"BUILD_ISOLIB\" was never defined.
22625 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22627 if test -z "${BUILD_CORLIB_TRUE}" && test -z "${BUILD_CORLIB_FALSE}"; then
22628 as_fn_error $? "conditional \"BUILD_CORLIB\" was never defined.
22629 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22631 if test -z "${BUILD_LOGLIB_TRUE}" && test -z "${BUILD_LOGLIB_FALSE}"; then
22632 as_fn_error $? "conditional \"BUILD_LOGLIB\" was never defined.
22633 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22635 if test -z "${TARGET_DARWIN_TRUE}" && test -z "${TARGET_DARWIN_FALSE}"; then
22636 as_fn_error $? "conditional \"TARGET_DARWIN\" was never defined.
22637 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22640 : "${CONFIG_STATUS=./config.status}"
22641 ac_write_fail=0
22642 ac_clean_files_save=$ac_clean_files
22643 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22645 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22646 as_write_fail=0
22647 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22648 #! $SHELL
22649 # Generated by $as_me.
22650 # Run this file to recreate the current configuration.
22651 # Compiler output produced by configure, useful for debugging
22652 # configure, is in config.log if it exists.
22654 debug=false
22655 ac_cs_recheck=false
22656 ac_cs_silent=false
22658 SHELL=\${CONFIG_SHELL-$SHELL}
22659 export SHELL
22660 _ASEOF
22661 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22662 ## -------------------- ##
22663 ## M4sh Initialization. ##
22664 ## -------------------- ##
22666 # Be more Bourne compatible
22667 DUALCASE=1; export DUALCASE # for MKS sh
22668 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22669 emulate sh
22670 NULLCMD=:
22671 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22672 # is contrary to our usage. Disable this feature.
22673 alias -g '${1+"$@"}'='"$@"'
22674 setopt NO_GLOB_SUBST
22675 else
22676 case `(set -o) 2>/dev/null` in #(
22677 *posix*) :
22678 set -o posix ;; #(
22679 *) :
22681 esac
22685 as_nl='
22687 export as_nl
22688 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22689 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22690 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22691 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22692 # Prefer a ksh shell builtin over an external printf program on Solaris,
22693 # but without wasting forks for bash or zsh.
22694 if test -z "$BASH_VERSION$ZSH_VERSION" \
22695 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22696 as_echo='print -r --'
22697 as_echo_n='print -rn --'
22698 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22699 as_echo='printf %s\n'
22700 as_echo_n='printf %s'
22701 else
22702 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22703 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22704 as_echo_n='/usr/ucb/echo -n'
22705 else
22706 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22707 as_echo_n_body='eval
22708 arg=$1;
22709 case $arg in #(
22710 *"$as_nl"*)
22711 expr "X$arg" : "X\\(.*\\)$as_nl";
22712 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22713 esac;
22714 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22716 export as_echo_n_body
22717 as_echo_n='sh -c $as_echo_n_body as_echo'
22719 export as_echo_body
22720 as_echo='sh -c $as_echo_body as_echo'
22723 # The user is always right.
22724 if test "${PATH_SEPARATOR+set}" != set; then
22725 PATH_SEPARATOR=:
22726 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22727 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22728 PATH_SEPARATOR=';'
22733 # IFS
22734 # We need space, tab and new line, in precisely that order. Quoting is
22735 # there to prevent editors from complaining about space-tab.
22736 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22737 # splitting by setting IFS to empty value.)
22738 IFS=" "" $as_nl"
22740 # Find who we are. Look in the path if we contain no directory separator.
22741 as_myself=
22742 case $0 in #((
22743 *[\\/]* ) as_myself=$0 ;;
22744 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22745 for as_dir in $PATH
22747 IFS=$as_save_IFS
22748 test -z "$as_dir" && as_dir=.
22749 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22750 done
22751 IFS=$as_save_IFS
22754 esac
22755 # We did not find ourselves, most probably we were run as `sh COMMAND'
22756 # in which case we are not to be found in the path.
22757 if test "x$as_myself" = x; then
22758 as_myself=$0
22760 if test ! -f "$as_myself"; then
22761 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22762 exit 1
22765 # Unset variables that we do not need and which cause bugs (e.g. in
22766 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22767 # suppresses any "Segmentation fault" message there. '((' could
22768 # trigger a bug in pdksh 5.2.14.
22769 for as_var in BASH_ENV ENV MAIL MAILPATH
22770 do eval test x\${$as_var+set} = xset \
22771 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22772 done
22773 PS1='$ '
22774 PS2='> '
22775 PS4='+ '
22777 # NLS nuisances.
22778 LC_ALL=C
22779 export LC_ALL
22780 LANGUAGE=C
22781 export LANGUAGE
22783 # CDPATH.
22784 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22787 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22788 # ----------------------------------------
22789 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22790 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22791 # script with STATUS, using 1 if that was 0.
22792 as_fn_error ()
22794 as_status=$1; test $as_status -eq 0 && as_status=1
22795 if test "$4"; then
22796 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22797 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22799 $as_echo "$as_me: error: $2" >&2
22800 as_fn_exit $as_status
22801 } # as_fn_error
22804 # as_fn_set_status STATUS
22805 # -----------------------
22806 # Set $? to STATUS, without forking.
22807 as_fn_set_status ()
22809 return $1
22810 } # as_fn_set_status
22812 # as_fn_exit STATUS
22813 # -----------------
22814 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22815 as_fn_exit ()
22817 set +e
22818 as_fn_set_status $1
22819 exit $1
22820 } # as_fn_exit
22822 # as_fn_unset VAR
22823 # ---------------
22824 # Portably unset VAR.
22825 as_fn_unset ()
22827 { eval $1=; unset $1;}
22829 as_unset=as_fn_unset
22830 # as_fn_append VAR VALUE
22831 # ----------------------
22832 # Append the text in VALUE to the end of the definition contained in VAR. Take
22833 # advantage of any shell optimizations that allow amortized linear growth over
22834 # repeated appends, instead of the typical quadratic growth present in naive
22835 # implementations.
22836 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22837 eval 'as_fn_append ()
22839 eval $1+=\$2
22841 else
22842 as_fn_append ()
22844 eval $1=\$$1\$2
22846 fi # as_fn_append
22848 # as_fn_arith ARG...
22849 # ------------------
22850 # Perform arithmetic evaluation on the ARGs, and store the result in the
22851 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22852 # must be portable across $(()) and expr.
22853 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22854 eval 'as_fn_arith ()
22856 as_val=$(( $* ))
22858 else
22859 as_fn_arith ()
22861 as_val=`expr "$@" || test $? -eq 1`
22863 fi # as_fn_arith
22866 if expr a : '\(a\)' >/dev/null 2>&1 &&
22867 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22868 as_expr=expr
22869 else
22870 as_expr=false
22873 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22874 as_basename=basename
22875 else
22876 as_basename=false
22879 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22880 as_dirname=dirname
22881 else
22882 as_dirname=false
22885 as_me=`$as_basename -- "$0" ||
22886 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22887 X"$0" : 'X\(//\)$' \| \
22888 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22889 $as_echo X/"$0" |
22890 sed '/^.*\/\([^/][^/]*\)\/*$/{
22891 s//\1/
22894 /^X\/\(\/\/\)$/{
22895 s//\1/
22898 /^X\/\(\/\).*/{
22899 s//\1/
22902 s/.*/./; q'`
22904 # Avoid depending upon Character Ranges.
22905 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22906 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22907 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22908 as_cr_digits='0123456789'
22909 as_cr_alnum=$as_cr_Letters$as_cr_digits
22911 ECHO_C= ECHO_N= ECHO_T=
22912 case `echo -n x` in #(((((
22913 -n*)
22914 case `echo 'xy\c'` in
22915 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22916 xy) ECHO_C='\c';;
22917 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22918 ECHO_T=' ';;
22919 esac;;
22921 ECHO_N='-n';;
22922 esac
22924 rm -f conf$$ conf$$.exe conf$$.file
22925 if test -d conf$$.dir; then
22926 rm -f conf$$.dir/conf$$.file
22927 else
22928 rm -f conf$$.dir
22929 mkdir conf$$.dir 2>/dev/null
22931 if (echo >conf$$.file) 2>/dev/null; then
22932 if ln -s conf$$.file conf$$ 2>/dev/null; then
22933 as_ln_s='ln -s'
22934 # ... but there are two gotchas:
22935 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22936 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22937 # In both cases, we have to default to `cp -pR'.
22938 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22939 as_ln_s='cp -pR'
22940 elif ln conf$$.file conf$$ 2>/dev/null; then
22941 as_ln_s=ln
22942 else
22943 as_ln_s='cp -pR'
22945 else
22946 as_ln_s='cp -pR'
22948 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22949 rmdir conf$$.dir 2>/dev/null
22952 # as_fn_mkdir_p
22953 # -------------
22954 # Create "$as_dir" as a directory, including parents if necessary.
22955 as_fn_mkdir_p ()
22958 case $as_dir in #(
22959 -*) as_dir=./$as_dir;;
22960 esac
22961 test -d "$as_dir" || eval $as_mkdir_p || {
22962 as_dirs=
22963 while :; do
22964 case $as_dir in #(
22965 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22966 *) as_qdir=$as_dir;;
22967 esac
22968 as_dirs="'$as_qdir' $as_dirs"
22969 as_dir=`$as_dirname -- "$as_dir" ||
22970 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22971 X"$as_dir" : 'X\(//\)[^/]' \| \
22972 X"$as_dir" : 'X\(//\)$' \| \
22973 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22974 $as_echo X"$as_dir" |
22975 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22976 s//\1/
22979 /^X\(\/\/\)[^/].*/{
22980 s//\1/
22983 /^X\(\/\/\)$/{
22984 s//\1/
22987 /^X\(\/\).*/{
22988 s//\1/
22991 s/.*/./; q'`
22992 test -d "$as_dir" && break
22993 done
22994 test -z "$as_dirs" || eval "mkdir $as_dirs"
22995 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22998 } # as_fn_mkdir_p
22999 if mkdir -p . 2>/dev/null; then
23000 as_mkdir_p='mkdir -p "$as_dir"'
23001 else
23002 test -d ./-p && rmdir ./-p
23003 as_mkdir_p=false
23007 # as_fn_executable_p FILE
23008 # -----------------------
23009 # Test if FILE is an executable regular file.
23010 as_fn_executable_p ()
23012 test -f "$1" && test -x "$1"
23013 } # as_fn_executable_p
23014 as_test_x='test -x'
23015 as_executable_p=as_fn_executable_p
23017 # Sed expression to map a string onto a valid CPP name.
23018 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23020 # Sed expression to map a string onto a valid variable name.
23021 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23024 exec 6>&1
23025 ## ----------------------------------- ##
23026 ## Main body of $CONFIG_STATUS script. ##
23027 ## ----------------------------------- ##
23028 _ASEOF
23029 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
23031 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23032 # Save the log message, to keep $0 and so on meaningful, and to
23033 # report actual input values of CONFIG_FILES etc. instead of their
23034 # values after options handling.
23035 ac_log="
23036 This file was extended by package-unused $as_me version-unused, which was
23037 generated by GNU Autoconf 2.69. Invocation command line was
23039 CONFIG_FILES = $CONFIG_FILES
23040 CONFIG_HEADERS = $CONFIG_HEADERS
23041 CONFIG_LINKS = $CONFIG_LINKS
23042 CONFIG_COMMANDS = $CONFIG_COMMANDS
23043 $ $0 $@
23045 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23048 _ACEOF
23050 case $ac_config_files in *"
23051 "*) set x $ac_config_files; shift; ac_config_files=$*;;
23052 esac
23054 case $ac_config_headers in *"
23055 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
23056 esac
23059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23060 # Files that config.status was made for.
23061 config_files="$ac_config_files"
23062 config_headers="$ac_config_headers"
23063 config_commands="$ac_config_commands"
23065 _ACEOF
23067 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23068 ac_cs_usage="\
23069 \`$as_me' instantiates files and other configuration actions
23070 from templates according to the current configuration. Unless the files
23071 and actions are specified as TAGs, all are instantiated by default.
23073 Usage: $0 [OPTION]... [TAG]...
23075 -h, --help print this help, then exit
23076 -V, --version print version number and configuration settings, then exit
23077 --config print configuration, then exit
23078 -q, --quiet, --silent
23079 do not print progress messages
23080 -d, --debug don't remove temporary files
23081 --recheck update $as_me by reconfiguring in the same conditions
23082 --file=FILE[:TEMPLATE]
23083 instantiate the configuration file FILE
23084 --header=FILE[:TEMPLATE]
23085 instantiate the configuration header FILE
23087 Configuration files:
23088 $config_files
23090 Configuration headers:
23091 $config_headers
23093 Configuration commands:
23094 $config_commands
23096 Report bugs to the package provider."
23098 _ACEOF
23099 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23100 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
23101 ac_cs_version="\\
23102 package-unused config.status version-unused
23103 configured by $0, generated by GNU Autoconf 2.69,
23104 with options \\"\$ac_cs_config\\"
23106 Copyright (C) 2012 Free Software Foundation, Inc.
23107 This config.status script is free software; the Free Software Foundation
23108 gives unlimited permission to copy, distribute and modify it."
23110 ac_pwd='$ac_pwd'
23111 srcdir='$srcdir'
23112 INSTALL='$INSTALL'
23113 MKDIR_P='$MKDIR_P'
23114 AWK='$AWK'
23115 test -n "\$AWK" || AWK=awk
23116 _ACEOF
23118 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23119 # The default lists apply if the user does not specify any file.
23120 ac_need_defaults=:
23121 while test $# != 0
23123 case $1 in
23124 --*=?*)
23125 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23126 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23127 ac_shift=:
23129 --*=)
23130 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23131 ac_optarg=
23132 ac_shift=:
23135 ac_option=$1
23136 ac_optarg=$2
23137 ac_shift=shift
23139 esac
23141 case $ac_option in
23142 # Handling of the options.
23143 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23144 ac_cs_recheck=: ;;
23145 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23146 $as_echo "$ac_cs_version"; exit ;;
23147 --config | --confi | --conf | --con | --co | --c )
23148 $as_echo "$ac_cs_config"; exit ;;
23149 --debug | --debu | --deb | --de | --d | -d )
23150 debug=: ;;
23151 --file | --fil | --fi | --f )
23152 $ac_shift
23153 case $ac_optarg in
23154 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23155 '') as_fn_error $? "missing file argument" ;;
23156 esac
23157 as_fn_append CONFIG_FILES " '$ac_optarg'"
23158 ac_need_defaults=false;;
23159 --header | --heade | --head | --hea )
23160 $ac_shift
23161 case $ac_optarg in
23162 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
23163 esac
23164 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
23165 ac_need_defaults=false;;
23166 --he | --h)
23167 # Conflict between --help and --header
23168 as_fn_error $? "ambiguous option: \`$1'
23169 Try \`$0 --help' for more information.";;
23170 --help | --hel | -h )
23171 $as_echo "$ac_cs_usage"; exit ;;
23172 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23173 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23174 ac_cs_silent=: ;;
23176 # This is an error.
23177 -*) as_fn_error $? "unrecognized option: \`$1'
23178 Try \`$0 --help' for more information." ;;
23180 *) as_fn_append ac_config_targets " $1"
23181 ac_need_defaults=false ;;
23183 esac
23184 shift
23185 done
23187 ac_configure_extra_args=
23189 if $ac_cs_silent; then
23190 exec 6>/dev/null
23191 ac_configure_extra_args="$ac_configure_extra_args --silent"
23194 _ACEOF
23195 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23196 if \$ac_cs_recheck; then
23197 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23198 shift
23199 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
23200 CONFIG_SHELL='$SHELL'
23201 export CONFIG_SHELL
23202 exec "\$@"
23205 _ACEOF
23206 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23207 exec 5>>config.log
23209 echo
23210 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23211 ## Running $as_me. ##
23212 _ASBOX
23213 $as_echo "$ac_log"
23214 } >&5
23216 _ACEOF
23217 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23219 # INIT-COMMANDS
23222 srcdir="$srcdir"
23223 host="$host"
23224 target="$target"
23225 with_multisubdir="$with_multisubdir"
23226 with_multisrctop="$with_multisrctop"
23227 with_target_subdir="$with_target_subdir"
23228 ac_configure_args="${multilib_arg} ${ac_configure_args}"
23229 multi_basedir="$multi_basedir"
23230 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
23231 CC="$CC"
23232 CXX="$CXX"
23233 GFORTRAN="$GFORTRAN"
23234 GDC="$GDC"
23235 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
23238 # The HP-UX ksh and POSIX shell print the target directory to stdout
23239 # if CDPATH is set.
23240 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
23242 sed_quote_subst='$sed_quote_subst'
23243 double_quote_subst='$double_quote_subst'
23244 delay_variable_subst='$delay_variable_subst'
23245 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
23246 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
23247 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
23248 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
23249 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
23250 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
23251 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
23252 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
23253 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
23254 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
23255 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
23256 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
23257 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
23258 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
23259 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
23260 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
23261 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
23262 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
23263 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
23264 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
23265 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
23266 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
23267 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
23268 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
23269 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
23270 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
23271 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
23272 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
23273 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
23274 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
23275 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
23276 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
23277 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
23278 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
23279 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
23280 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
23281 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
23282 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23283 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23284 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
23285 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
23286 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
23287 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
23288 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
23289 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
23290 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
23291 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
23292 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
23293 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
23294 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
23295 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
23296 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
23297 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
23298 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
23299 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
23300 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
23301 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
23302 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
23303 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
23304 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
23305 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
23306 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
23307 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
23308 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
23309 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23310 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
23311 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
23312 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
23313 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
23314 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
23315 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
23316 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
23317 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
23318 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23319 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
23320 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
23321 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
23322 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
23323 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
23324 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
23325 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
23326 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
23327 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
23328 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
23329 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
23330 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
23331 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
23332 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
23333 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23334 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
23335 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23336 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23337 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23338 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23339 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23340 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23341 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23342 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23343 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23344 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23345 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23346 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23347 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23348 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23349 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23350 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23351 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23352 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23353 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23354 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23355 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23356 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23357 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23358 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
23359 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23360 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23361 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23362 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23363 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23364 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23365 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
23366 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
23367 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
23368 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
23369 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
23370 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
23371 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
23372 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
23373 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23374 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23375 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
23376 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
23377 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
23378 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
23379 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
23380 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
23381 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
23382 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
23383 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
23384 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23385 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23386 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
23387 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23388 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23389 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23390 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23391 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23392 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23393 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
23394 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23395 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23396 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23397 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
23398 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
23399 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
23400 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
23401 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
23402 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
23403 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
23404 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
23405 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
23406 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
23407 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
23408 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23409 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23410 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23411 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23412 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23413 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23414 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23415 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23416 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23417 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23418 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23419 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23421 LTCC='$LTCC'
23422 LTCFLAGS='$LTCFLAGS'
23423 compiler='$compiler_DEFAULT'
23425 # A function that is used when there is no print builtin or printf.
23426 func_fallback_echo ()
23428 eval 'cat <<_LTECHO_EOF
23430 _LTECHO_EOF'
23433 # Quote evaled strings.
23434 for var in SHELL \
23435 ECHO \
23436 SED \
23437 GREP \
23438 EGREP \
23439 FGREP \
23440 LD \
23441 NM \
23442 LN_S \
23443 lt_SP2NL \
23444 lt_NL2SP \
23445 reload_flag \
23446 OBJDUMP \
23447 deplibs_check_method \
23448 file_magic_cmd \
23449 AR \
23450 AR_FLAGS \
23451 STRIP \
23452 RANLIB \
23453 CC \
23454 CFLAGS \
23455 compiler \
23456 lt_cv_sys_global_symbol_pipe \
23457 lt_cv_sys_global_symbol_to_cdecl \
23458 lt_cv_sys_global_symbol_to_c_name_address \
23459 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23460 lt_prog_compiler_no_builtin_flag \
23461 lt_prog_compiler_wl \
23462 lt_prog_compiler_pic \
23463 lt_prog_compiler_static \
23464 lt_cv_prog_compiler_c_o \
23465 need_locks \
23466 DSYMUTIL \
23467 NMEDIT \
23468 LIPO \
23469 OTOOL \
23470 OTOOL64 \
23471 shrext_cmds \
23472 export_dynamic_flag_spec \
23473 whole_archive_flag_spec \
23474 compiler_needs_object \
23475 with_gnu_ld \
23476 allow_undefined_flag \
23477 no_undefined_flag \
23478 hardcode_libdir_flag_spec \
23479 hardcode_libdir_flag_spec_ld \
23480 hardcode_libdir_separator \
23481 fix_srcfile_path \
23482 exclude_expsyms \
23483 include_expsyms \
23484 file_list_spec \
23485 variables_saved_for_relink \
23486 libname_spec \
23487 library_names_spec \
23488 soname_spec \
23489 install_override_mode \
23490 finish_eval \
23491 old_striplib \
23492 striplib \
23493 compiler_lib_search_dirs \
23494 predep_objects \
23495 postdep_objects \
23496 predeps \
23497 postdeps \
23498 compiler_lib_search_path \
23499 LD_CXX \
23500 reload_flag_CXX \
23501 compiler_CXX \
23502 lt_prog_compiler_no_builtin_flag_CXX \
23503 lt_prog_compiler_wl_CXX \
23504 lt_prog_compiler_pic_CXX \
23505 lt_prog_compiler_static_CXX \
23506 lt_cv_prog_compiler_c_o_CXX \
23507 export_dynamic_flag_spec_CXX \
23508 whole_archive_flag_spec_CXX \
23509 compiler_needs_object_CXX \
23510 with_gnu_ld_CXX \
23511 allow_undefined_flag_CXX \
23512 no_undefined_flag_CXX \
23513 hardcode_libdir_flag_spec_CXX \
23514 hardcode_libdir_flag_spec_ld_CXX \
23515 hardcode_libdir_separator_CXX \
23516 fix_srcfile_path_CXX \
23517 exclude_expsyms_CXX \
23518 include_expsyms_CXX \
23519 file_list_spec_CXX \
23520 compiler_lib_search_dirs_CXX \
23521 predep_objects_CXX \
23522 postdep_objects_CXX \
23523 predeps_CXX \
23524 postdeps_CXX \
23525 compiler_lib_search_path_CXX; do
23526 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23527 *[\\\\\\\`\\"\\\$]*)
23528 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23531 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23533 esac
23534 done
23536 # Double-quote double-evaled strings.
23537 for var in reload_cmds \
23538 old_postinstall_cmds \
23539 old_postuninstall_cmds \
23540 old_archive_cmds \
23541 extract_expsyms_cmds \
23542 old_archive_from_new_cmds \
23543 old_archive_from_expsyms_cmds \
23544 archive_cmds \
23545 archive_expsym_cmds \
23546 module_cmds \
23547 module_expsym_cmds \
23548 export_symbols_cmds \
23549 prelink_cmds \
23550 postinstall_cmds \
23551 postuninstall_cmds \
23552 finish_cmds \
23553 sys_lib_search_path_spec \
23554 sys_lib_dlsearch_path_spec \
23555 reload_cmds_CXX \
23556 old_archive_cmds_CXX \
23557 old_archive_from_new_cmds_CXX \
23558 old_archive_from_expsyms_cmds_CXX \
23559 archive_cmds_CXX \
23560 archive_expsym_cmds_CXX \
23561 module_cmds_CXX \
23562 module_expsym_cmds_CXX \
23563 export_symbols_cmds_CXX \
23564 prelink_cmds_CXX; do
23565 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23566 *[\\\\\\\`\\"\\\$]*)
23567 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23570 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23572 esac
23573 done
23575 ac_aux_dir='$ac_aux_dir'
23576 xsi_shell='$xsi_shell'
23577 lt_shell_append='$lt_shell_append'
23579 # See if we are running on zsh, and set the options which allow our
23580 # commands through without removal of \ escapes INIT.
23581 if test -n "\${ZSH_VERSION+set}" ; then
23582 setopt NO_GLOB_SUBST
23586 PACKAGE='$PACKAGE'
23587 VERSION='$VERSION'
23588 TIMESTAMP='$TIMESTAMP'
23589 RM='$RM'
23590 ofile='$ofile'
23597 _ACEOF
23599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23601 # Handling of arguments.
23602 for ac_config_target in $ac_config_targets
23604 case $ac_config_target in
23605 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23606 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23607 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23608 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23609 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23610 "libm2min/Makefile") CONFIG_FILES="$CONFIG_FILES libm2min/Makefile" ;;
23611 "libm2pim/Makefile") CONFIG_FILES="$CONFIG_FILES libm2pim/Makefile" ;;
23612 "libm2iso/Makefile") CONFIG_FILES="$CONFIG_FILES libm2iso/Makefile" ;;
23613 "libm2cor/Makefile") CONFIG_FILES="$CONFIG_FILES libm2cor/Makefile" ;;
23614 "libm2log/Makefile") CONFIG_FILES="$CONFIG_FILES libm2log/Makefile" ;;
23616 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23617 esac
23618 done
23621 # If the user did not use the arguments to specify the items to instantiate,
23622 # then the envvar interface is used. Set only those that are not.
23623 # We use the long form for the default assignment because of an extremely
23624 # bizarre bug on SunOS 4.1.3.
23625 if $ac_need_defaults; then
23626 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23627 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23628 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23631 # Have a temporary directory for convenience. Make it in the build tree
23632 # simply because there is no reason against having it here, and in addition,
23633 # creating and moving files from /tmp can sometimes cause problems.
23634 # Hook for its removal unless debugging.
23635 # Note that there is a small window in which the directory will not be cleaned:
23636 # after its creation but before its name has been assigned to `$tmp'.
23637 $debug ||
23639 tmp= ac_tmp=
23640 trap 'exit_status=$?
23641 : "${ac_tmp:=$tmp}"
23642 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23644 trap 'as_fn_exit 1' 1 2 13 15
23646 # Create a (secure) tmp directory for tmp files.
23649 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23650 test -d "$tmp"
23651 } ||
23653 tmp=./conf$$-$RANDOM
23654 (umask 077 && mkdir "$tmp")
23655 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23656 ac_tmp=$tmp
23658 # Set up the scripts for CONFIG_FILES section.
23659 # No need to generate them if there are no CONFIG_FILES.
23660 # This happens for instance with `./config.status config.h'.
23661 if test -n "$CONFIG_FILES"; then
23664 ac_cr=`echo X | tr X '\015'`
23665 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23666 # But we know of no other shell where ac_cr would be empty at this
23667 # point, so we can use a bashism as a fallback.
23668 if test "x$ac_cr" = x; then
23669 eval ac_cr=\$\'\\r\'
23671 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23672 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23673 ac_cs_awk_cr='\\r'
23674 else
23675 ac_cs_awk_cr=$ac_cr
23678 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23679 _ACEOF
23683 echo "cat >conf$$subs.awk <<_ACEOF" &&
23684 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23685 echo "_ACEOF"
23686 } >conf$$subs.sh ||
23687 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23688 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23689 ac_delim='%!_!# '
23690 for ac_last_try in false false false false false :; do
23691 . ./conf$$subs.sh ||
23692 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23694 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23695 if test $ac_delim_n = $ac_delim_num; then
23696 break
23697 elif $ac_last_try; then
23698 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23699 else
23700 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23702 done
23703 rm -f conf$$subs.sh
23705 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23706 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23707 _ACEOF
23708 sed -n '
23710 s/^/S["/; s/!.*/"]=/
23713 s/^[^!]*!//
23714 :repl
23715 t repl
23716 s/'"$ac_delim"'$//
23717 t delim
23720 s/\(.\{148\}\)..*/\1/
23721 t more1
23722 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23725 b repl
23726 :more1
23727 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23730 s/.\{148\}//
23731 t nl
23732 :delim
23734 s/\(.\{148\}\)..*/\1/
23735 t more2
23736 s/["\\]/\\&/g; s/^/"/; s/$/"/
23739 :more2
23740 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23743 s/.\{148\}//
23744 t delim
23745 ' <conf$$subs.awk | sed '
23746 /^[^""]/{
23748 s/\n//
23750 ' >>$CONFIG_STATUS || ac_write_fail=1
23751 rm -f conf$$subs.awk
23752 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23753 _ACAWK
23754 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23755 for (key in S) S_is_set[key] = 1
23756 FS = "\a"
23760 line = $ 0
23761 nfields = split(line, field, "@")
23762 substed = 0
23763 len = length(field[1])
23764 for (i = 2; i < nfields; i++) {
23765 key = field[i]
23766 keylen = length(key)
23767 if (S_is_set[key]) {
23768 value = S[key]
23769 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23770 len += length(value) + length(field[++i])
23771 substed = 1
23772 } else
23773 len += 1 + keylen
23776 print line
23779 _ACAWK
23780 _ACEOF
23781 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23782 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23783 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23784 else
23786 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23787 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23788 _ACEOF
23790 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23791 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23792 # trailing colons and then remove the whole line if VPATH becomes empty
23793 # (actually we leave an empty line to preserve line numbers).
23794 if test "x$srcdir" = x.; then
23795 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23797 s///
23798 s/^/:/
23799 s/[ ]*$/:/
23800 s/:\$(srcdir):/:/g
23801 s/:\${srcdir}:/:/g
23802 s/:@srcdir@:/:/g
23803 s/^:*//
23804 s/:*$//
23806 s/\(=[ ]*\).*/\1/
23808 s/\n//
23809 s/^[^=]*=[ ]*$//
23813 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23814 fi # test -n "$CONFIG_FILES"
23816 # Set up the scripts for CONFIG_HEADERS section.
23817 # No need to generate them if there are no CONFIG_HEADERS.
23818 # This happens for instance with `./config.status Makefile'.
23819 if test -n "$CONFIG_HEADERS"; then
23820 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23821 BEGIN {
23822 _ACEOF
23824 # Transform confdefs.h into an awk script `defines.awk', embedded as
23825 # here-document in config.status, that substitutes the proper values into
23826 # config.h.in to produce config.h.
23828 # Create a delimiter string that does not exist in confdefs.h, to ease
23829 # handling of long lines.
23830 ac_delim='%!_!# '
23831 for ac_last_try in false false :; do
23832 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23833 if test -z "$ac_tt"; then
23834 break
23835 elif $ac_last_try; then
23836 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23837 else
23838 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23840 done
23842 # For the awk script, D is an array of macro values keyed by name,
23843 # likewise P contains macro parameters if any. Preserve backslash
23844 # newline sequences.
23846 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23847 sed -n '
23848 s/.\{148\}/&'"$ac_delim"'/g
23849 t rset
23850 :rset
23851 s/^[ ]*#[ ]*define[ ][ ]*/ /
23852 t def
23854 :def
23855 s/\\$//
23856 t bsnl
23857 s/["\\]/\\&/g
23858 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23859 D["\1"]=" \3"/p
23860 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23862 :bsnl
23863 s/["\\]/\\&/g
23864 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23865 D["\1"]=" \3\\\\\\n"\\/p
23866 t cont
23867 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23868 t cont
23870 :cont
23872 s/.\{148\}/&'"$ac_delim"'/g
23873 t clear
23874 :clear
23875 s/\\$//
23876 t bsnlc
23877 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23879 :bsnlc
23880 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23881 b cont
23882 ' <confdefs.h | sed '
23883 s/'"$ac_delim"'/"\\\
23884 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23887 for (key in D) D_is_set[key] = 1
23888 FS = "\a"
23890 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23891 line = \$ 0
23892 split(line, arg, " ")
23893 if (arg[1] == "#") {
23894 defundef = arg[2]
23895 mac1 = arg[3]
23896 } else {
23897 defundef = substr(arg[1], 2)
23898 mac1 = arg[2]
23900 split(mac1, mac2, "(") #)
23901 macro = mac2[1]
23902 prefix = substr(line, 1, index(line, defundef) - 1)
23903 if (D_is_set[macro]) {
23904 # Preserve the white space surrounding the "#".
23905 print prefix "define", macro P[macro] D[macro]
23906 next
23907 } else {
23908 # Replace #undef with comments. This is necessary, for example,
23909 # in the case of _POSIX_SOURCE, which is predefined and required
23910 # on some systems where configure will not decide to define it.
23911 if (defundef == "undef") {
23912 print "/*", prefix defundef, macro, "*/"
23913 next
23917 { print }
23918 _ACAWK
23919 _ACEOF
23920 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23921 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23922 fi # test -n "$CONFIG_HEADERS"
23925 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23926 shift
23927 for ac_tag
23929 case $ac_tag in
23930 :[FHLC]) ac_mode=$ac_tag; continue;;
23931 esac
23932 case $ac_mode$ac_tag in
23933 :[FHL]*:*);;
23934 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23935 :[FH]-) ac_tag=-:-;;
23936 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23937 esac
23938 ac_save_IFS=$IFS
23939 IFS=:
23940 set x $ac_tag
23941 IFS=$ac_save_IFS
23942 shift
23943 ac_file=$1
23944 shift
23946 case $ac_mode in
23947 :L) ac_source=$1;;
23948 :[FH])
23949 ac_file_inputs=
23950 for ac_f
23952 case $ac_f in
23953 -) ac_f="$ac_tmp/stdin";;
23954 *) # Look for the file first in the build tree, then in the source tree
23955 # (if the path is not absolute). The absolute path cannot be DOS-style,
23956 # because $ac_f cannot contain `:'.
23957 test -f "$ac_f" ||
23958 case $ac_f in
23959 [\\/$]*) false;;
23960 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23961 esac ||
23962 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23963 esac
23964 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23965 as_fn_append ac_file_inputs " '$ac_f'"
23966 done
23968 # Let's still pretend it is `configure' which instantiates (i.e., don't
23969 # use $as_me), people would be surprised to read:
23970 # /* config.h. Generated by config.status. */
23971 configure_input='Generated from '`
23972 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23973 `' by configure.'
23974 if test x"$ac_file" != x-; then
23975 configure_input="$ac_file. $configure_input"
23976 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23977 $as_echo "$as_me: creating $ac_file" >&6;}
23979 # Neutralize special characters interpreted by sed in replacement strings.
23980 case $configure_input in #(
23981 *\&* | *\|* | *\\* )
23982 ac_sed_conf_input=`$as_echo "$configure_input" |
23983 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23984 *) ac_sed_conf_input=$configure_input;;
23985 esac
23987 case $ac_tag in
23988 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23989 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23990 esac
23992 esac
23994 ac_dir=`$as_dirname -- "$ac_file" ||
23995 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23996 X"$ac_file" : 'X\(//\)[^/]' \| \
23997 X"$ac_file" : 'X\(//\)$' \| \
23998 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23999 $as_echo X"$ac_file" |
24000 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24001 s//\1/
24004 /^X\(\/\/\)[^/].*/{
24005 s//\1/
24008 /^X\(\/\/\)$/{
24009 s//\1/
24012 /^X\(\/\).*/{
24013 s//\1/
24016 s/.*/./; q'`
24017 as_dir="$ac_dir"; as_fn_mkdir_p
24018 ac_builddir=.
24020 case "$ac_dir" in
24021 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24023 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
24024 # A ".." for each directory in $ac_dir_suffix.
24025 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
24026 case $ac_top_builddir_sub in
24027 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24028 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24029 esac ;;
24030 esac
24031 ac_abs_top_builddir=$ac_pwd
24032 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24033 # for backward compatibility:
24034 ac_top_builddir=$ac_top_build_prefix
24036 case $srcdir in
24037 .) # We are building in place.
24038 ac_srcdir=.
24039 ac_top_srcdir=$ac_top_builddir_sub
24040 ac_abs_top_srcdir=$ac_pwd ;;
24041 [\\/]* | ?:[\\/]* ) # Absolute name.
24042 ac_srcdir=$srcdir$ac_dir_suffix;
24043 ac_top_srcdir=$srcdir
24044 ac_abs_top_srcdir=$srcdir ;;
24045 *) # Relative name.
24046 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24047 ac_top_srcdir=$ac_top_build_prefix$srcdir
24048 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24049 esac
24050 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24053 case $ac_mode in
24056 # CONFIG_FILE
24059 case $INSTALL in
24060 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24061 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24062 esac
24063 ac_MKDIR_P=$MKDIR_P
24064 case $MKDIR_P in
24065 [\\/$]* | ?:[\\/]* ) ;;
24066 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
24067 esac
24068 _ACEOF
24070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24071 # If the template does not know about datarootdir, expand it.
24072 # FIXME: This hack should be removed a few years after 2.60.
24073 ac_datarootdir_hack=; ac_datarootdir_seen=
24074 ac_sed_dataroot='
24075 /datarootdir/ {
24079 /@datadir@/p
24080 /@docdir@/p
24081 /@infodir@/p
24082 /@localedir@/p
24083 /@mandir@/p'
24084 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
24085 *datarootdir*) ac_datarootdir_seen=yes;;
24086 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24087 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24088 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24089 _ACEOF
24090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24091 ac_datarootdir_hack='
24092 s&@datadir@&$datadir&g
24093 s&@docdir@&$docdir&g
24094 s&@infodir@&$infodir&g
24095 s&@localedir@&$localedir&g
24096 s&@mandir@&$mandir&g
24097 s&\\\${datarootdir}&$datarootdir&g' ;;
24098 esac
24099 _ACEOF
24101 # Neutralize VPATH when `$srcdir' = `.'.
24102 # Shell code in configure.ac might set extrasub.
24103 # FIXME: do we really want to maintain this feature?
24104 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
24105 ac_sed_extra="$ac_vpsub
24106 $extrasub
24107 _ACEOF
24108 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
24110 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24111 s|@configure_input@|$ac_sed_conf_input|;t t
24112 s&@top_builddir@&$ac_top_builddir_sub&;t t
24113 s&@top_build_prefix@&$ac_top_build_prefix&;t t
24114 s&@srcdir@&$ac_srcdir&;t t
24115 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24116 s&@top_srcdir@&$ac_top_srcdir&;t t
24117 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24118 s&@builddir@&$ac_builddir&;t t
24119 s&@abs_builddir@&$ac_abs_builddir&;t t
24120 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24121 s&@INSTALL@&$ac_INSTALL&;t t
24122 s&@MKDIR_P@&$ac_MKDIR_P&;t t
24123 $ac_datarootdir_hack
24125 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
24126 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24128 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24129 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
24130 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
24131 "$ac_tmp/out"`; test -z "$ac_out"; } &&
24132 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24133 which seems to be undefined. Please make sure it is defined" >&5
24134 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24135 which seems to be undefined. Please make sure it is defined" >&2;}
24137 rm -f "$ac_tmp/stdin"
24138 case $ac_file in
24139 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
24140 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
24141 esac \
24142 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24146 # CONFIG_HEADER
24148 if test x"$ac_file" != x-; then
24150 $as_echo "/* $configure_input */" \
24151 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
24152 } >"$ac_tmp/config.h" \
24153 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24154 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
24155 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
24156 $as_echo "$as_me: $ac_file is unchanged" >&6;}
24157 else
24158 rm -f "$ac_file"
24159 mv "$ac_tmp/config.h" "$ac_file" \
24160 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
24162 else
24163 $as_echo "/* $configure_input */" \
24164 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
24165 || as_fn_error $? "could not create -" "$LINENO" 5
24167 # Compute "$ac_file"'s index in $config_headers.
24168 _am_arg="$ac_file"
24169 _am_stamp_count=1
24170 for _am_header in $config_headers :; do
24171 case $_am_header in
24172 $_am_arg | $_am_arg:* )
24173 break ;;
24175 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
24176 esac
24177 done
24178 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
24179 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24180 X"$_am_arg" : 'X\(//\)[^/]' \| \
24181 X"$_am_arg" : 'X\(//\)$' \| \
24182 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
24183 $as_echo X"$_am_arg" |
24184 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24185 s//\1/
24188 /^X\(\/\/\)[^/].*/{
24189 s//\1/
24192 /^X\(\/\/\)$/{
24193 s//\1/
24196 /^X\(\/\).*/{
24197 s//\1/
24200 s/.*/./; q'`/stamp-h$_am_stamp_count
24203 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
24204 $as_echo "$as_me: executing $ac_file commands" >&6;}
24206 esac
24209 case $ac_file$ac_mode in
24210 "default-1":C)
24211 # Only add multilib support code if we just rebuilt the top-level
24212 # Makefile.
24213 case " $CONFIG_FILES " in
24214 *" Makefile "*)
24215 ac_file=Makefile . ${multi_basedir}/config-ml.in
24217 esac ;;
24218 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
24219 # Older Autoconf quotes --file arguments for eval, but not when files
24220 # are listed without --file. Let's play safe and only enable the eval
24221 # if we detect the quoting.
24222 case $CONFIG_FILES in
24223 *\'*) eval set x "$CONFIG_FILES" ;;
24224 *) set x $CONFIG_FILES ;;
24225 esac
24226 shift
24227 for mf
24229 # Strip MF so we end up with the name of the file.
24230 mf=`echo "$mf" | sed -e 's/:.*$//'`
24231 # Check whether this is an Automake generated Makefile or not.
24232 # We used to match only the files named 'Makefile.in', but
24233 # some people rename them; so instead we look at the file content.
24234 # Grep'ing the first line is not enough: some people post-process
24235 # each Makefile.in and add a new line on top of each file to say so.
24236 # Grep'ing the whole file is not good either: AIX grep has a line
24237 # limit of 2048, but all sed's we know have understand at least 4000.
24238 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
24239 dirpart=`$as_dirname -- "$mf" ||
24240 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24241 X"$mf" : 'X\(//\)[^/]' \| \
24242 X"$mf" : 'X\(//\)$' \| \
24243 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
24244 $as_echo X"$mf" |
24245 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24246 s//\1/
24249 /^X\(\/\/\)[^/].*/{
24250 s//\1/
24253 /^X\(\/\/\)$/{
24254 s//\1/
24257 /^X\(\/\).*/{
24258 s//\1/
24261 s/.*/./; q'`
24262 else
24263 continue
24265 # Extract the definition of DEPDIR, am__include, and am__quote
24266 # from the Makefile without running 'make'.
24267 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
24268 test -z "$DEPDIR" && continue
24269 am__include=`sed -n 's/^am__include = //p' < "$mf"`
24270 test -z "$am__include" && continue
24271 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
24272 # Find all dependency output files, they are included files with
24273 # $(DEPDIR) in their names. We invoke sed twice because it is the
24274 # simplest approach to changing $(DEPDIR) to its actual value in the
24275 # expansion.
24276 for file in `sed -n "
24277 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
24278 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
24279 # Make sure the directory exists.
24280 test -f "$dirpart/$file" && continue
24281 fdir=`$as_dirname -- "$file" ||
24282 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24283 X"$file" : 'X\(//\)[^/]' \| \
24284 X"$file" : 'X\(//\)$' \| \
24285 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
24286 $as_echo X"$file" |
24287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24288 s//\1/
24291 /^X\(\/\/\)[^/].*/{
24292 s//\1/
24295 /^X\(\/\/\)$/{
24296 s//\1/
24299 /^X\(\/\).*/{
24300 s//\1/
24303 s/.*/./; q'`
24304 as_dir=$dirpart/$fdir; as_fn_mkdir_p
24305 # echo "creating $dirpart/$file"
24306 echo '# dummy' > "$dirpart/$file"
24307 done
24308 done
24311 "libtool":C)
24313 # See if we are running on zsh, and set the options which allow our
24314 # commands through without removal of \ escapes.
24315 if test -n "${ZSH_VERSION+set}" ; then
24316 setopt NO_GLOB_SUBST
24319 cfgfile="${ofile}T"
24320 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
24321 $RM "$cfgfile"
24323 cat <<_LT_EOF >> "$cfgfile"
24324 #! $SHELL
24326 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
24327 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
24328 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24329 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
24331 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
24332 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
24333 # Written by Gordon Matzigkeit, 1996
24335 # This file is part of GNU Libtool.
24337 # GNU Libtool is free software; you can redistribute it and/or
24338 # modify it under the terms of the GNU General Public License as
24339 # published by the Free Software Foundation; either version 2 of
24340 # the License, or (at your option) any later version.
24342 # As a special exception to the GNU General Public License,
24343 # if you distribute this file as part of a program or library that
24344 # is built using GNU Libtool, you may include this file under the
24345 # same distribution terms that you use for the rest of that program.
24347 # GNU Libtool is distributed in the hope that it will be useful,
24348 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24349 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24350 # GNU General Public License for more details.
24352 # You should have received a copy of the GNU General Public License
24353 # along with GNU Libtool; see the file COPYING. If not, a copy
24354 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
24355 # obtained by writing to the Free Software Foundation, Inc.,
24356 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24359 # The names of the tagged configurations supported by this script.
24360 available_tags="CXX "
24362 # ### BEGIN LIBTOOL CONFIG
24364 # Which release of libtool.m4 was used?
24365 macro_version=$macro_version
24366 macro_revision=$macro_revision
24368 # Whether or not to build shared libraries.
24369 build_libtool_libs=$enable_shared
24371 # Whether or not to build static libraries.
24372 build_old_libs=$enable_static
24374 # What type of objects to build.
24375 pic_mode=$pic_mode
24377 # Whether or not to optimize for fast installation.
24378 fast_install=$enable_fast_install
24380 # Shell to use when invoking shell scripts.
24381 SHELL=$lt_SHELL
24383 # An echo program that protects backslashes.
24384 ECHO=$lt_ECHO
24386 # The host system.
24387 host_alias=$host_alias
24388 host=$host
24389 host_os=$host_os
24391 # The build system.
24392 build_alias=$build_alias
24393 build=$build
24394 build_os=$build_os
24396 # A sed program that does not truncate output.
24397 SED=$lt_SED
24399 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24400 Xsed="\$SED -e 1s/^X//"
24402 # A grep program that handles long lines.
24403 GREP=$lt_GREP
24405 # An ERE matcher.
24406 EGREP=$lt_EGREP
24408 # A literal string matcher.
24409 FGREP=$lt_FGREP
24411 # A BSD- or MS-compatible name lister.
24412 NM=$lt_NM
24414 # Whether we need soft or hard links.
24415 LN_S=$lt_LN_S
24417 # What is the maximum length of a command?
24418 max_cmd_len=$max_cmd_len
24420 # Object file suffix (normally "o").
24421 objext=$ac_objext
24423 # Executable file suffix (normally "").
24424 exeext=$exeext
24426 # whether the shell understands "unset".
24427 lt_unset=$lt_unset
24429 # turn spaces into newlines.
24430 SP2NL=$lt_lt_SP2NL
24432 # turn newlines into spaces.
24433 NL2SP=$lt_lt_NL2SP
24435 # An object symbol dumper.
24436 OBJDUMP=$lt_OBJDUMP
24438 # Method to check whether dependent libraries are shared objects.
24439 deplibs_check_method=$lt_deplibs_check_method
24441 # Command to use when deplibs_check_method == "file_magic".
24442 file_magic_cmd=$lt_file_magic_cmd
24444 # The archiver.
24445 AR=$lt_AR
24446 AR_FLAGS=$lt_AR_FLAGS
24448 # A symbol stripping program.
24449 STRIP=$lt_STRIP
24451 # Commands used to install an old-style archive.
24452 RANLIB=$lt_RANLIB
24453 old_postinstall_cmds=$lt_old_postinstall_cmds
24454 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24456 # Whether to use a lock for old archive extraction.
24457 lock_old_archive_extraction=$lock_old_archive_extraction
24459 # A C compiler.
24460 LTCC=$lt_CC
24462 # LTCC compiler flags.
24463 LTCFLAGS=$lt_CFLAGS
24465 # Take the output of nm and produce a listing of raw symbols and C names.
24466 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24468 # Transform the output of nm in a proper C declaration.
24469 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24471 # Transform the output of nm in a C name address pair.
24472 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24474 # Transform the output of nm in a C name address pair when lib prefix is needed.
24475 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24477 # The name of the directory that contains temporary libtool files.
24478 objdir=$objdir
24480 # Used to examine libraries when file_magic_cmd begins with "file".
24481 MAGIC_CMD=$MAGIC_CMD
24483 # Must we lock files when doing compilation?
24484 need_locks=$lt_need_locks
24486 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24487 DSYMUTIL=$lt_DSYMUTIL
24489 # Tool to change global to local symbols on Mac OS X.
24490 NMEDIT=$lt_NMEDIT
24492 # Tool to manipulate fat objects and archives on Mac OS X.
24493 LIPO=$lt_LIPO
24495 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24496 OTOOL=$lt_OTOOL
24498 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24499 OTOOL64=$lt_OTOOL64
24501 # Old archive suffix (normally "a").
24502 libext=$libext
24504 # Shared library suffix (normally ".so").
24505 shrext_cmds=$lt_shrext_cmds
24507 # The commands to extract the exported symbol list from a shared archive.
24508 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24510 # Variables whose values should be saved in libtool wrapper scripts and
24511 # restored at link time.
24512 variables_saved_for_relink=$lt_variables_saved_for_relink
24514 # Do we need the "lib" prefix for modules?
24515 need_lib_prefix=$need_lib_prefix
24517 # Do we need a version for libraries?
24518 need_version=$need_version
24520 # Library versioning type.
24521 version_type=$version_type
24523 # Shared library runtime path variable.
24524 runpath_var=$runpath_var
24526 # Shared library path variable.
24527 shlibpath_var=$shlibpath_var
24529 # Is shlibpath searched before the hard-coded library search path?
24530 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24532 # Format of library name prefix.
24533 libname_spec=$lt_libname_spec
24535 # List of archive names. First name is the real one, the rest are links.
24536 # The last name is the one that the linker finds with -lNAME
24537 library_names_spec=$lt_library_names_spec
24539 # The coded name of the library, if different from the real name.
24540 soname_spec=$lt_soname_spec
24542 # Permission mode override for installation of shared libraries.
24543 install_override_mode=$lt_install_override_mode
24545 # Command to use after installation of a shared archive.
24546 postinstall_cmds=$lt_postinstall_cmds
24548 # Command to use after uninstallation of a shared archive.
24549 postuninstall_cmds=$lt_postuninstall_cmds
24551 # Commands used to finish a libtool library installation in a directory.
24552 finish_cmds=$lt_finish_cmds
24554 # As "finish_cmds", except a single script fragment to be evaled but
24555 # not shown.
24556 finish_eval=$lt_finish_eval
24558 # Whether we should hardcode library paths into libraries.
24559 hardcode_into_libs=$hardcode_into_libs
24561 # Compile-time system search path for libraries.
24562 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24564 # Run-time system search path for libraries.
24565 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24567 # Whether dlopen is supported.
24568 dlopen_support=$enable_dlopen
24570 # Whether dlopen of programs is supported.
24571 dlopen_self=$enable_dlopen_self
24573 # Whether dlopen of statically linked programs is supported.
24574 dlopen_self_static=$enable_dlopen_self_static
24576 # Commands to strip libraries.
24577 old_striplib=$lt_old_striplib
24578 striplib=$lt_striplib
24581 # The linker used to build libraries.
24582 LD=$lt_LD
24584 # How to create reloadable object files.
24585 reload_flag=$lt_reload_flag
24586 reload_cmds=$lt_reload_cmds
24588 # Commands used to build an old-style archive.
24589 old_archive_cmds=$lt_old_archive_cmds
24591 # A language specific compiler.
24592 CC=$lt_compiler
24594 # Is the compiler the GNU compiler?
24595 with_gcc=$GCC
24597 # Compiler flag to turn off builtin functions.
24598 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24600 # How to pass a linker flag through the compiler.
24601 wl=$lt_lt_prog_compiler_wl
24603 # Additional compiler flags for building library objects.
24604 pic_flag=$lt_lt_prog_compiler_pic
24606 # Compiler flag to prevent dynamic linking.
24607 link_static_flag=$lt_lt_prog_compiler_static
24609 # Does compiler simultaneously support -c and -o options?
24610 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24612 # Whether or not to add -lc for building shared libraries.
24613 build_libtool_need_lc=$archive_cmds_need_lc
24615 # Whether or not to disallow shared libs when runtime libs are static.
24616 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24618 # Compiler flag to allow reflexive dlopens.
24619 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24621 # Compiler flag to generate shared objects directly from archives.
24622 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24624 # Whether the compiler copes with passing no objects directly.
24625 compiler_needs_object=$lt_compiler_needs_object
24627 # Create an old-style archive from a shared archive.
24628 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24630 # Create a temporary old-style archive to link instead of a shared archive.
24631 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24633 # Commands used to build a shared archive.
24634 archive_cmds=$lt_archive_cmds
24635 archive_expsym_cmds=$lt_archive_expsym_cmds
24637 # Commands used to build a loadable module if different from building
24638 # a shared archive.
24639 module_cmds=$lt_module_cmds
24640 module_expsym_cmds=$lt_module_expsym_cmds
24642 # Whether we are building with GNU ld or not.
24643 with_gnu_ld=$lt_with_gnu_ld
24645 # Flag that allows shared libraries with undefined symbols to be built.
24646 allow_undefined_flag=$lt_allow_undefined_flag
24648 # Flag that enforces no undefined symbols.
24649 no_undefined_flag=$lt_no_undefined_flag
24651 # Flag to hardcode \$libdir into a binary during linking.
24652 # This must work even if \$libdir does not exist
24653 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24655 # If ld is used when linking, flag to hardcode \$libdir into a binary
24656 # during linking. This must work even if \$libdir does not exist.
24657 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24659 # Whether we need a single "-rpath" flag with a separated argument.
24660 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24662 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24663 # DIR into the resulting binary.
24664 hardcode_direct=$hardcode_direct
24666 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24667 # DIR into the resulting binary and the resulting library dependency is
24668 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24669 # library is relocated.
24670 hardcode_direct_absolute=$hardcode_direct_absolute
24672 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24673 # into the resulting binary.
24674 hardcode_minus_L=$hardcode_minus_L
24676 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24677 # into the resulting binary.
24678 hardcode_shlibpath_var=$hardcode_shlibpath_var
24680 # Set to "yes" if building a shared library automatically hardcodes DIR
24681 # into the library and all subsequent libraries and executables linked
24682 # against it.
24683 hardcode_automatic=$hardcode_automatic
24685 # Set to yes if linker adds runtime paths of dependent libraries
24686 # to runtime path list.
24687 inherit_rpath=$inherit_rpath
24689 # Whether libtool must link a program against all its dependency libraries.
24690 link_all_deplibs=$link_all_deplibs
24692 # Fix the shell variable \$srcfile for the compiler.
24693 fix_srcfile_path=$lt_fix_srcfile_path
24695 # Set to "yes" if exported symbols are required.
24696 always_export_symbols=$always_export_symbols
24698 # The commands to list exported symbols.
24699 export_symbols_cmds=$lt_export_symbols_cmds
24701 # Symbols that should not be listed in the preloaded symbols.
24702 exclude_expsyms=$lt_exclude_expsyms
24704 # Symbols that must always be exported.
24705 include_expsyms=$lt_include_expsyms
24707 # Commands necessary for linking programs (against libraries) with templates.
24708 prelink_cmds=$lt_prelink_cmds
24710 # Specify filename containing input files.
24711 file_list_spec=$lt_file_list_spec
24713 # How to hardcode a shared library path into an executable.
24714 hardcode_action=$hardcode_action
24716 # The directories searched by this compiler when creating a shared library.
24717 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24719 # Dependencies to place before and after the objects being linked to
24720 # create a shared library.
24721 predep_objects=$lt_predep_objects
24722 postdep_objects=$lt_postdep_objects
24723 predeps=$lt_predeps
24724 postdeps=$lt_postdeps
24726 # The library search path used internally by the compiler when linking
24727 # a shared library.
24728 compiler_lib_search_path=$lt_compiler_lib_search_path
24730 # ### END LIBTOOL CONFIG
24732 _LT_EOF
24734 case $host_os in
24735 aix3*)
24736 cat <<\_LT_EOF >> "$cfgfile"
24737 # AIX sometimes has problems with the GCC collect2 program. For some
24738 # reason, if we set the COLLECT_NAMES environment variable, the problems
24739 # vanish in a puff of smoke.
24740 if test "X${COLLECT_NAMES+set}" != Xset; then
24741 COLLECT_NAMES=
24742 export COLLECT_NAMES
24744 _LT_EOF
24746 esac
24749 ltmain="$ac_aux_dir/ltmain.sh"
24752 # We use sed instead of cat because bash on DJGPP gets confused if
24753 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24754 # text mode, it properly converts lines to CR/LF. This bash problem
24755 # is reportedly fixed, but why not run on old versions too?
24756 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24757 || (rm -f "$cfgfile"; exit 1)
24759 case $xsi_shell in
24760 yes)
24761 cat << \_LT_EOF >> "$cfgfile"
24763 # func_dirname file append nondir_replacement
24764 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24765 # otherwise set result to NONDIR_REPLACEMENT.
24766 func_dirname ()
24768 case ${1} in
24769 */*) func_dirname_result="${1%/*}${2}" ;;
24770 * ) func_dirname_result="${3}" ;;
24771 esac
24774 # func_basename file
24775 func_basename ()
24777 func_basename_result="${1##*/}"
24780 # func_dirname_and_basename file append nondir_replacement
24781 # perform func_basename and func_dirname in a single function
24782 # call:
24783 # dirname: Compute the dirname of FILE. If nonempty,
24784 # add APPEND to the result, otherwise set result
24785 # to NONDIR_REPLACEMENT.
24786 # value returned in "$func_dirname_result"
24787 # basename: Compute filename of FILE.
24788 # value retuned in "$func_basename_result"
24789 # Implementation must be kept synchronized with func_dirname
24790 # and func_basename. For efficiency, we do not delegate to
24791 # those functions but instead duplicate the functionality here.
24792 func_dirname_and_basename ()
24794 case ${1} in
24795 */*) func_dirname_result="${1%/*}${2}" ;;
24796 * ) func_dirname_result="${3}" ;;
24797 esac
24798 func_basename_result="${1##*/}"
24801 # func_stripname prefix suffix name
24802 # strip PREFIX and SUFFIX off of NAME.
24803 # PREFIX and SUFFIX must not contain globbing or regex special
24804 # characters, hashes, percent signs, but SUFFIX may contain a leading
24805 # dot (in which case that matches only a dot).
24806 func_stripname ()
24808 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24809 # positional parameters, so assign one to ordinary parameter first.
24810 func_stripname_result=${3}
24811 func_stripname_result=${func_stripname_result#"${1}"}
24812 func_stripname_result=${func_stripname_result%"${2}"}
24815 # func_opt_split
24816 func_opt_split ()
24818 func_opt_split_opt=${1%%=*}
24819 func_opt_split_arg=${1#*=}
24822 # func_lo2o object
24823 func_lo2o ()
24825 case ${1} in
24826 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24827 *) func_lo2o_result=${1} ;;
24828 esac
24831 # func_xform libobj-or-source
24832 func_xform ()
24834 func_xform_result=${1%.*}.lo
24837 # func_arith arithmetic-term...
24838 func_arith ()
24840 func_arith_result=$(( $* ))
24843 # func_len string
24844 # STRING may not start with a hyphen.
24845 func_len ()
24847 func_len_result=${#1}
24850 _LT_EOF
24852 *) # Bourne compatible functions.
24853 cat << \_LT_EOF >> "$cfgfile"
24855 # func_dirname file append nondir_replacement
24856 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24857 # otherwise set result to NONDIR_REPLACEMENT.
24858 func_dirname ()
24860 # Extract subdirectory from the argument.
24861 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
24862 if test "X$func_dirname_result" = "X${1}"; then
24863 func_dirname_result="${3}"
24864 else
24865 func_dirname_result="$func_dirname_result${2}"
24869 # func_basename file
24870 func_basename ()
24872 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
24876 # func_stripname prefix suffix name
24877 # strip PREFIX and SUFFIX off of NAME.
24878 # PREFIX and SUFFIX must not contain globbing or regex special
24879 # characters, hashes, percent signs, but SUFFIX may contain a leading
24880 # dot (in which case that matches only a dot).
24881 # func_strip_suffix prefix name
24882 func_stripname ()
24884 case ${2} in
24885 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
24886 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
24887 esac
24890 # sed scripts:
24891 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24892 my_sed_long_arg='1s/^-[^=]*=//'
24894 # func_opt_split
24895 func_opt_split ()
24897 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
24898 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
24901 # func_lo2o object
24902 func_lo2o ()
24904 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
24907 # func_xform libobj-or-source
24908 func_xform ()
24910 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
24913 # func_arith arithmetic-term...
24914 func_arith ()
24916 func_arith_result=`expr "$@"`
24919 # func_len string
24920 # STRING may not start with a hyphen.
24921 func_len ()
24923 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24926 _LT_EOF
24927 esac
24929 case $lt_shell_append in
24930 yes)
24931 cat << \_LT_EOF >> "$cfgfile"
24933 # func_append var value
24934 # Append VALUE to the end of shell variable VAR.
24935 func_append ()
24937 eval "$1+=\$2"
24939 _LT_EOF
24942 cat << \_LT_EOF >> "$cfgfile"
24944 # func_append var value
24945 # Append VALUE to the end of shell variable VAR.
24946 func_append ()
24948 eval "$1=\$$1\$2"
24951 _LT_EOF
24953 esac
24956 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24957 || (rm -f "$cfgfile"; exit 1)
24959 mv -f "$cfgfile" "$ofile" ||
24960 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24961 chmod +x "$ofile"
24964 cat <<_LT_EOF >> "$ofile"
24966 # ### BEGIN LIBTOOL TAG CONFIG: CXX
24968 # The linker used to build libraries.
24969 LD=$lt_LD_CXX
24971 # How to create reloadable object files.
24972 reload_flag=$lt_reload_flag_CXX
24973 reload_cmds=$lt_reload_cmds_CXX
24975 # Commands used to build an old-style archive.
24976 old_archive_cmds=$lt_old_archive_cmds_CXX
24978 # A language specific compiler.
24979 CC=$lt_compiler_CXX
24981 # Is the compiler the GNU compiler?
24982 with_gcc=$GCC_CXX
24984 # Compiler flag to turn off builtin functions.
24985 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24987 # How to pass a linker flag through the compiler.
24988 wl=$lt_lt_prog_compiler_wl_CXX
24990 # Additional compiler flags for building library objects.
24991 pic_flag=$lt_lt_prog_compiler_pic_CXX
24993 # Compiler flag to prevent dynamic linking.
24994 link_static_flag=$lt_lt_prog_compiler_static_CXX
24996 # Does compiler simultaneously support -c and -o options?
24997 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24999 # Whether or not to add -lc for building shared libraries.
25000 build_libtool_need_lc=$archive_cmds_need_lc_CXX
25002 # Whether or not to disallow shared libs when runtime libs are static.
25003 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
25005 # Compiler flag to allow reflexive dlopens.
25006 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
25008 # Compiler flag to generate shared objects directly from archives.
25009 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
25011 # Whether the compiler copes with passing no objects directly.
25012 compiler_needs_object=$lt_compiler_needs_object_CXX
25014 # Create an old-style archive from a shared archive.
25015 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
25017 # Create a temporary old-style archive to link instead of a shared archive.
25018 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
25020 # Commands used to build a shared archive.
25021 archive_cmds=$lt_archive_cmds_CXX
25022 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
25024 # Commands used to build a loadable module if different from building
25025 # a shared archive.
25026 module_cmds=$lt_module_cmds_CXX
25027 module_expsym_cmds=$lt_module_expsym_cmds_CXX
25029 # Whether we are building with GNU ld or not.
25030 with_gnu_ld=$lt_with_gnu_ld_CXX
25032 # Flag that allows shared libraries with undefined symbols to be built.
25033 allow_undefined_flag=$lt_allow_undefined_flag_CXX
25035 # Flag that enforces no undefined symbols.
25036 no_undefined_flag=$lt_no_undefined_flag_CXX
25038 # Flag to hardcode \$libdir into a binary during linking.
25039 # This must work even if \$libdir does not exist
25040 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
25042 # If ld is used when linking, flag to hardcode \$libdir into a binary
25043 # during linking. This must work even if \$libdir does not exist.
25044 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
25046 # Whether we need a single "-rpath" flag with a separated argument.
25047 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
25049 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25050 # DIR into the resulting binary.
25051 hardcode_direct=$hardcode_direct_CXX
25053 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
25054 # DIR into the resulting binary and the resulting library dependency is
25055 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
25056 # library is relocated.
25057 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
25059 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
25060 # into the resulting binary.
25061 hardcode_minus_L=$hardcode_minus_L_CXX
25063 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
25064 # into the resulting binary.
25065 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
25067 # Set to "yes" if building a shared library automatically hardcodes DIR
25068 # into the library and all subsequent libraries and executables linked
25069 # against it.
25070 hardcode_automatic=$hardcode_automatic_CXX
25072 # Set to yes if linker adds runtime paths of dependent libraries
25073 # to runtime path list.
25074 inherit_rpath=$inherit_rpath_CXX
25076 # Whether libtool must link a program against all its dependency libraries.
25077 link_all_deplibs=$link_all_deplibs_CXX
25079 # Fix the shell variable \$srcfile for the compiler.
25080 fix_srcfile_path=$lt_fix_srcfile_path_CXX
25082 # Set to "yes" if exported symbols are required.
25083 always_export_symbols=$always_export_symbols_CXX
25085 # The commands to list exported symbols.
25086 export_symbols_cmds=$lt_export_symbols_cmds_CXX
25088 # Symbols that should not be listed in the preloaded symbols.
25089 exclude_expsyms=$lt_exclude_expsyms_CXX
25091 # Symbols that must always be exported.
25092 include_expsyms=$lt_include_expsyms_CXX
25094 # Commands necessary for linking programs (against libraries) with templates.
25095 prelink_cmds=$lt_prelink_cmds_CXX
25097 # Specify filename containing input files.
25098 file_list_spec=$lt_file_list_spec_CXX
25100 # How to hardcode a shared library path into an executable.
25101 hardcode_action=$hardcode_action_CXX
25103 # The directories searched by this compiler when creating a shared library.
25104 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
25106 # Dependencies to place before and after the objects being linked to
25107 # create a shared library.
25108 predep_objects=$lt_predep_objects_CXX
25109 postdep_objects=$lt_postdep_objects_CXX
25110 predeps=$lt_predeps_CXX
25111 postdeps=$lt_postdeps_CXX
25113 # The library search path used internally by the compiler when linking
25114 # a shared library.
25115 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
25117 # ### END LIBTOOL TAG CONFIG: CXX
25118 _LT_EOF
25121 "libm2min/Makefile":F) cat > vpsed$$ << \_EOF
25122 s!`test -f '$<' || echo '$(srcdir)/'`!!
25123 _EOF
25124 sed -f vpsed$$ $ac_file > tmp$$
25125 mv tmp$$ $ac_file
25126 rm vpsed$$
25127 echo 'MULTISUBDIR =' >> $ac_file
25128 ml_norecursion=yes
25129 . ${multi_basedir}/config-ml.in
25130 { ml_norecursion=; unset ml_norecursion;}
25132 "libm2pim/Makefile":F) cat > vpsed$$ << \_EOF
25133 s!`test -f '$<' || echo '$(srcdir)/'`!!
25134 _EOF
25135 sed -f vpsed$$ $ac_file > tmp$$
25136 mv tmp$$ $ac_file
25137 rm vpsed$$
25138 echo 'MULTISUBDIR =' >> $ac_file
25139 ml_norecursion=yes
25140 . ${multi_basedir}/config-ml.in
25141 { ml_norecursion=; unset ml_norecursion;}
25143 "libm2iso/Makefile":F) cat > vpsed$$ << \_EOF
25144 s!`test -f '$<' || echo '$(srcdir)/'`!!
25145 _EOF
25146 sed -f vpsed$$ $ac_file > tmp$$
25147 mv tmp$$ $ac_file
25148 rm vpsed$$
25149 echo 'MULTISUBDIR =' >> $ac_file
25150 ml_norecursion=yes
25151 . ${multi_basedir}/config-ml.in
25152 { ml_norecursion=; unset ml_norecursion;}
25154 "libm2cor/Makefile":F) cat > vpsed$$ << \_EOF
25155 s!`test -f '$<' || echo '$(srcdir)/'`!!
25156 _EOF
25157 sed -f vpsed$$ $ac_file > tmp$$
25158 mv tmp$$ $ac_file
25159 rm vpsed$$
25160 echo 'MULTISUBDIR =' >> $ac_file
25161 ml_norecursion=yes
25162 . ${multi_basedir}/config-ml.in
25163 { ml_norecursion=; unset ml_norecursion;}
25165 "libm2log/Makefile":F) cat > vpsed$$ << \_EOF
25166 s!`test -f '$<' || echo '$(srcdir)/'`!!
25167 _EOF
25168 sed -f vpsed$$ $ac_file > tmp$$
25169 mv tmp$$ $ac_file
25170 rm vpsed$$
25171 echo 'MULTISUBDIR =' >> $ac_file
25172 ml_norecursion=yes
25173 . ${multi_basedir}/config-ml.in
25174 { ml_norecursion=; unset ml_norecursion;}
25177 esac
25178 done # for ac_tag
25181 as_fn_exit 0
25182 _ACEOF
25183 ac_clean_files=$ac_clean_files_save
25185 test $ac_write_fail = 0 ||
25186 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
25189 # configure is writing to config.log, and then calls config.status.
25190 # config.status does its own redirection, appending to config.log.
25191 # Unfortunately, on DOS this fails, as config.log is still kept open
25192 # by configure, so config.status won't be able to write to it; its
25193 # output is simply discarded. So we exec the FD to /dev/null,
25194 # effectively closing config.log, so it can be properly (re)opened and
25195 # appended to by config.status. When coming back to configure, we
25196 # need to make the FD available again.
25197 if test "$no_create" != yes; then
25198 ac_cs_success=:
25199 ac_config_status_args=
25200 test "$silent" = yes &&
25201 ac_config_status_args="$ac_config_status_args --quiet"
25202 exec 5>/dev/null
25203 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25204 exec 5>>config.log
25205 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25206 # would make configure fail if this is the last instruction.
25207 $ac_cs_success || as_fn_exit 1
25209 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
25210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
25211 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}