xfail dg-final "Sunk statements: 5" on hppa*64*-*-*
[official-gcc.git] / libgm2 / configure
blob02a427d6ba5e2a219970313313e11a310500f83d
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
2272 cat >config.log <<_ACEOF
2273 This file contains any messages produced by compilers while
2274 running configure, to aid debugging if configure makes a mistake.
2276 It was created by package-unused $as_me version-unused, which was
2277 generated by GNU Autoconf 2.69. Invocation command line was
2279 $ $0 $@
2281 _ACEOF
2282 exec 5>>config.log
2284 cat <<_ASUNAME
2285 ## --------- ##
2286 ## Platform. ##
2287 ## --------- ##
2289 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2290 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2291 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2292 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2293 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2295 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2296 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2298 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2299 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2300 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2301 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2302 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2303 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2304 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2306 _ASUNAME
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2311 IFS=$as_save_IFS
2312 test -z "$as_dir" && as_dir=.
2313 $as_echo "PATH: $as_dir"
2314 done
2315 IFS=$as_save_IFS
2317 } >&5
2319 cat >&5 <<_ACEOF
2322 ## ----------- ##
2323 ## Core tests. ##
2324 ## ----------- ##
2326 _ACEOF
2329 # Keep a trace of the command line.
2330 # Strip out --no-create and --no-recursion so they do not pile up.
2331 # Strip out --silent because we don't want to record it for future runs.
2332 # Also quote any args containing shell meta-characters.
2333 # Make two passes to allow for proper duplicate-argument suppression.
2334 ac_configure_args=
2335 ac_configure_args0=
2336 ac_configure_args1=
2337 ac_must_keep_next=false
2338 for ac_pass in 1 2
2340 for ac_arg
2342 case $ac_arg in
2343 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2345 | -silent | --silent | --silen | --sile | --sil)
2346 continue ;;
2347 *\'*)
2348 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2349 esac
2350 case $ac_pass in
2351 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2353 as_fn_append ac_configure_args1 " '$ac_arg'"
2354 if test $ac_must_keep_next = true; then
2355 ac_must_keep_next=false # Got value, back to normal.
2356 else
2357 case $ac_arg in
2358 *=* | --config-cache | -C | -disable-* | --disable-* \
2359 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2360 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2361 | -with-* | --with-* | -without-* | --without-* | --x)
2362 case "$ac_configure_args0 " in
2363 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2364 esac
2366 -* ) ac_must_keep_next=true ;;
2367 esac
2369 as_fn_append ac_configure_args " '$ac_arg'"
2371 esac
2372 done
2373 done
2374 { ac_configure_args0=; unset ac_configure_args0;}
2375 { ac_configure_args1=; unset ac_configure_args1;}
2377 # When interrupted or exit'd, cleanup temporary files, and complete
2378 # config.log. We remove comments because anyway the quotes in there
2379 # would cause problems or look ugly.
2380 # WARNING: Use '\'' to represent an apostrophe within the trap.
2381 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2382 trap 'exit_status=$?
2383 # Save into config.log some information that might help in debugging.
2385 echo
2387 $as_echo "## ---------------- ##
2388 ## Cache variables. ##
2389 ## ---------------- ##"
2390 echo
2391 # The following way of writing the cache mishandles newlines in values,
2393 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2394 eval ac_val=\$$ac_var
2395 case $ac_val in #(
2396 *${as_nl}*)
2397 case $ac_var in #(
2398 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2399 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2400 esac
2401 case $ac_var in #(
2402 _ | IFS | as_nl) ;; #(
2403 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2404 *) { eval $ac_var=; unset $ac_var;} ;;
2405 esac ;;
2406 esac
2407 done
2408 (set) 2>&1 |
2409 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2410 *${as_nl}ac_space=\ *)
2411 sed -n \
2412 "s/'\''/'\''\\\\'\'''\''/g;
2413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2414 ;; #(
2416 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2418 esac |
2419 sort
2421 echo
2423 $as_echo "## ----------------- ##
2424 ## Output variables. ##
2425 ## ----------------- ##"
2426 echo
2427 for ac_var in $ac_subst_vars
2429 eval ac_val=\$$ac_var
2430 case $ac_val in
2431 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432 esac
2433 $as_echo "$ac_var='\''$ac_val'\''"
2434 done | sort
2435 echo
2437 if test -n "$ac_subst_files"; then
2438 $as_echo "## ------------------- ##
2439 ## File substitutions. ##
2440 ## ------------------- ##"
2441 echo
2442 for ac_var in $ac_subst_files
2444 eval ac_val=\$$ac_var
2445 case $ac_val in
2446 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2447 esac
2448 $as_echo "$ac_var='\''$ac_val'\''"
2449 done | sort
2450 echo
2453 if test -s confdefs.h; then
2454 $as_echo "## ----------- ##
2455 ## confdefs.h. ##
2456 ## ----------- ##"
2457 echo
2458 cat confdefs.h
2459 echo
2461 test "$ac_signal" != 0 &&
2462 $as_echo "$as_me: caught signal $ac_signal"
2463 $as_echo "$as_me: exit $exit_status"
2464 } >&5
2465 rm -f core *.core core.conftest.* &&
2466 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2467 exit $exit_status
2469 for ac_signal in 1 2 13 15; do
2470 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2471 done
2472 ac_signal=0
2474 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2475 rm -f -r conftest* confdefs.h
2477 $as_echo "/* confdefs.h */" > confdefs.h
2479 # Predefined preprocessor variables.
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_NAME "$PACKAGE_NAME"
2483 _ACEOF
2485 cat >>confdefs.h <<_ACEOF
2486 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2487 _ACEOF
2489 cat >>confdefs.h <<_ACEOF
2490 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2491 _ACEOF
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE_STRING "$PACKAGE_STRING"
2495 _ACEOF
2497 cat >>confdefs.h <<_ACEOF
2498 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2499 _ACEOF
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_URL "$PACKAGE_URL"
2503 _ACEOF
2506 # Let the site file select an alternate cache file if it wants to.
2507 # Prefer an explicitly selected file to automatically selected ones.
2508 ac_site_file1=NONE
2509 ac_site_file2=NONE
2510 if test -n "$CONFIG_SITE"; then
2511 # We do not want a PATH search for config.site.
2512 case $CONFIG_SITE in #((
2513 -*) ac_site_file1=./$CONFIG_SITE;;
2514 */*) ac_site_file1=$CONFIG_SITE;;
2515 *) ac_site_file1=./$CONFIG_SITE;;
2516 esac
2517 elif test "x$prefix" != xNONE; then
2518 ac_site_file1=$prefix/share/config.site
2519 ac_site_file2=$prefix/etc/config.site
2520 else
2521 ac_site_file1=$ac_default_prefix/share/config.site
2522 ac_site_file2=$ac_default_prefix/etc/config.site
2524 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2526 test "x$ac_site_file" = xNONE && continue
2527 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2529 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2530 sed 's/^/| /' "$ac_site_file" >&5
2531 . "$ac_site_file" \
2532 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2534 as_fn_error $? "failed to load site script $ac_site_file
2535 See \`config.log' for more details" "$LINENO" 5; }
2537 done
2539 if test -r "$cache_file"; then
2540 # Some versions of bash will fail to source /dev/null (special files
2541 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2542 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2544 $as_echo "$as_me: loading cache $cache_file" >&6;}
2545 case $cache_file in
2546 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2547 *) . "./$cache_file";;
2548 esac
2550 else
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2552 $as_echo "$as_me: creating cache $cache_file" >&6;}
2553 >$cache_file
2556 # Check that the precious variables saved in the cache have kept the same
2557 # value.
2558 ac_cache_corrupted=false
2559 for ac_var in $ac_precious_vars; do
2560 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2561 eval ac_new_set=\$ac_env_${ac_var}_set
2562 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2563 eval ac_new_val=\$ac_env_${ac_var}_value
2564 case $ac_old_set,$ac_new_set in
2565 set,)
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2567 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2568 ac_cache_corrupted=: ;;
2569 ,set)
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2571 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2572 ac_cache_corrupted=: ;;
2573 ,);;
2575 if test "x$ac_old_val" != "x$ac_new_val"; then
2576 # differences in whitespace do not lead to failure.
2577 ac_old_val_w=`echo x $ac_old_val`
2578 ac_new_val_w=`echo x $ac_new_val`
2579 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2581 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2582 ac_cache_corrupted=:
2583 else
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2585 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2586 eval $ac_var=\$ac_old_val
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2589 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2591 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2592 fi;;
2593 esac
2594 # Pass precious variables to config.status.
2595 if test "$ac_new_set" = set; then
2596 case $ac_new_val in
2597 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2598 *) ac_arg=$ac_var=$ac_new_val ;;
2599 esac
2600 case " $ac_configure_args " in
2601 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2602 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2603 esac
2605 done
2606 if $ac_cache_corrupted; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2610 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2611 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2613 ## -------------------- ##
2614 ## Main body of script. ##
2615 ## -------------------- ##
2617 ac_ext=c
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2628 # AC_CONFIG_MACRO_DIR([config])
2629 ac_config_headers="$ac_config_headers config.h"
2632 libtool_VERSION=19:0:0
2635 # Default to --enable-multilib
2636 # Check whether --enable-multilib was given.
2637 if test "${enable_multilib+set}" = set; then :
2638 enableval=$enable_multilib; case "$enableval" in
2639 yes) multilib=yes ;;
2640 no) multilib=no ;;
2641 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2642 esac
2643 else
2644 multilib=yes
2648 # We may get other options which we leave undocumented:
2649 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2650 # See config-ml.in if you want the gory details.
2652 if test "$srcdir" = "."; then
2653 if test "$with_target_subdir" != "."; then
2654 multi_basedir="$srcdir/$with_multisrctop../.."
2655 else
2656 multi_basedir="$srcdir/$with_multisrctop.."
2658 else
2659 multi_basedir="$srcdir/.."
2663 # Even if the default multilib is not a cross compilation,
2664 # it may be that some of the other multilibs are.
2665 if test $cross_compiling = no && test $multilib = yes \
2666 && test "x${with_multisubdir}" != x ; then
2667 cross_compiling=maybe
2670 ac_config_commands="$ac_config_commands default-1"
2675 ac_aux_dir=
2676 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2677 if test -f "$ac_dir/install-sh"; then
2678 ac_aux_dir=$ac_dir
2679 ac_install_sh="$ac_aux_dir/install-sh -c"
2680 break
2681 elif test -f "$ac_dir/install.sh"; then
2682 ac_aux_dir=$ac_dir
2683 ac_install_sh="$ac_aux_dir/install.sh -c"
2684 break
2685 elif test -f "$ac_dir/shtool"; then
2686 ac_aux_dir=$ac_dir
2687 ac_install_sh="$ac_aux_dir/shtool install -c"
2688 break
2690 done
2691 if test -z "$ac_aux_dir"; then
2692 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2695 # These three variables are undocumented and unsupported,
2696 # and are intended to be withdrawn in a future Autoconf release.
2697 # They can cause serious problems if a builder's source tree is in a directory
2698 # whose full name contains unusual characters.
2699 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2700 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2701 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2704 # Expand $ac_aux_dir to an absolute path.
2705 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2707 ac_ext=c
2708 ac_cpp='$CPP $CPPFLAGS'
2709 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2710 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2711 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2712 if test -n "$ac_tool_prefix"; then
2713 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2714 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2716 $as_echo_n "checking for $ac_word... " >&6; }
2717 if ${ac_cv_prog_CC+:} false; then :
2718 $as_echo_n "(cached) " >&6
2719 else
2720 if test -n "$CC"; then
2721 ac_cv_prog_CC="$CC" # Let the user override the test.
2722 else
2723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2724 for as_dir in $PATH
2726 IFS=$as_save_IFS
2727 test -z "$as_dir" && as_dir=.
2728 for ac_exec_ext in '' $ac_executable_extensions; do
2729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2730 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2732 break 2
2734 done
2735 done
2736 IFS=$as_save_IFS
2740 CC=$ac_cv_prog_CC
2741 if test -n "$CC"; then
2742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2743 $as_echo "$CC" >&6; }
2744 else
2745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2746 $as_echo "no" >&6; }
2751 if test -z "$ac_cv_prog_CC"; then
2752 ac_ct_CC=$CC
2753 # Extract the first word of "gcc", so it can be a program name with args.
2754 set dummy gcc; ac_word=$2
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2756 $as_echo_n "checking for $ac_word... " >&6; }
2757 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2758 $as_echo_n "(cached) " >&6
2759 else
2760 if test -n "$ac_ct_CC"; then
2761 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2762 else
2763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2764 for as_dir in $PATH
2766 IFS=$as_save_IFS
2767 test -z "$as_dir" && as_dir=.
2768 for ac_exec_ext in '' $ac_executable_extensions; do
2769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2770 ac_cv_prog_ac_ct_CC="gcc"
2771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2772 break 2
2774 done
2775 done
2776 IFS=$as_save_IFS
2780 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2781 if test -n "$ac_ct_CC"; then
2782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2783 $as_echo "$ac_ct_CC" >&6; }
2784 else
2785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2786 $as_echo "no" >&6; }
2789 if test "x$ac_ct_CC" = x; then
2790 CC=""
2791 else
2792 case $cross_compiling:$ac_tool_warned in
2793 yes:)
2794 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2795 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2796 ac_tool_warned=yes ;;
2797 esac
2798 CC=$ac_ct_CC
2800 else
2801 CC="$ac_cv_prog_CC"
2804 if test -z "$CC"; then
2805 if test -n "$ac_tool_prefix"; then
2806 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2807 set dummy ${ac_tool_prefix}cc; ac_word=$2
2808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2809 $as_echo_n "checking for $ac_word... " >&6; }
2810 if ${ac_cv_prog_CC+:} false; then :
2811 $as_echo_n "(cached) " >&6
2812 else
2813 if test -n "$CC"; then
2814 ac_cv_prog_CC="$CC" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2823 ac_cv_prog_CC="${ac_tool_prefix}cc"
2824 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2827 done
2828 done
2829 IFS=$as_save_IFS
2833 CC=$ac_cv_prog_CC
2834 if test -n "$CC"; then
2835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2836 $as_echo "$CC" >&6; }
2837 else
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2839 $as_echo "no" >&6; }
2845 if test -z "$CC"; then
2846 # Extract the first word of "cc", so it can be a program name with args.
2847 set dummy cc; ac_word=$2
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2849 $as_echo_n "checking for $ac_word... " >&6; }
2850 if ${ac_cv_prog_CC+:} false; then :
2851 $as_echo_n "(cached) " >&6
2852 else
2853 if test -n "$CC"; then
2854 ac_cv_prog_CC="$CC" # Let the user override the test.
2855 else
2856 ac_prog_rejected=no
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2860 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2864 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2865 ac_prog_rejected=yes
2866 continue
2868 ac_cv_prog_CC="cc"
2869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 break 2
2872 done
2873 done
2874 IFS=$as_save_IFS
2876 if test $ac_prog_rejected = yes; then
2877 # We found a bogon in the path, so make sure we never use it.
2878 set dummy $ac_cv_prog_CC
2879 shift
2880 if test $# != 0; then
2881 # We chose a different compiler from the bogus one.
2882 # However, it has the same basename, so the bogon will be chosen
2883 # first if we set CC to just the basename; use the full file name.
2884 shift
2885 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2890 CC=$ac_cv_prog_CC
2891 if test -n "$CC"; then
2892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2893 $as_echo "$CC" >&6; }
2894 else
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2896 $as_echo "no" >&6; }
2901 if test -z "$CC"; then
2902 if test -n "$ac_tool_prefix"; then
2903 for ac_prog in cl.exe
2905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2906 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2908 $as_echo_n "checking for $ac_word... " >&6; }
2909 if ${ac_cv_prog_CC+:} false; then :
2910 $as_echo_n "(cached) " >&6
2911 else
2912 if test -n "$CC"; then
2913 ac_cv_prog_CC="$CC" # Let the user override the test.
2914 else
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 for as_dir in $PATH
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2922 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 break 2
2926 done
2927 done
2928 IFS=$as_save_IFS
2932 CC=$ac_cv_prog_CC
2933 if test -n "$CC"; then
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2935 $as_echo "$CC" >&6; }
2936 else
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2938 $as_echo "no" >&6; }
2942 test -n "$CC" && break
2943 done
2945 if test -z "$CC"; then
2946 ac_ct_CC=$CC
2947 for ac_prog in cl.exe
2949 # Extract the first word of "$ac_prog", so it can be a program name with args.
2950 set dummy $ac_prog; ac_word=$2
2951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2952 $as_echo_n "checking for $ac_word... " >&6; }
2953 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2954 $as_echo_n "(cached) " >&6
2955 else
2956 if test -n "$ac_ct_CC"; then
2957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2966 ac_cv_prog_ac_ct_CC="$ac_prog"
2967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 break 2
2970 done
2971 done
2972 IFS=$as_save_IFS
2976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2979 $as_echo "$ac_ct_CC" >&6; }
2980 else
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2982 $as_echo "no" >&6; }
2986 test -n "$ac_ct_CC" && break
2987 done
2989 if test "x$ac_ct_CC" = x; then
2990 CC=""
2991 else
2992 case $cross_compiling:$ac_tool_warned in
2993 yes:)
2994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2996 ac_tool_warned=yes ;;
2997 esac
2998 CC=$ac_ct_CC
3005 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3006 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3007 as_fn_error $? "no acceptable C compiler found in \$PATH
3008 See \`config.log' for more details" "$LINENO" 5; }
3010 # Provide some information about the compiler.
3011 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3012 set X $ac_compile
3013 ac_compiler=$2
3014 for ac_option in --version -v -V -qversion; do
3015 { { ac_try="$ac_compiler $ac_option >&5"
3016 case "(($ac_try" in
3017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3018 *) ac_try_echo=$ac_try;;
3019 esac
3020 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3021 $as_echo "$ac_try_echo"; } >&5
3022 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3023 ac_status=$?
3024 if test -s conftest.err; then
3025 sed '10a\
3026 ... rest of stderr output deleted ...
3027 10q' conftest.err >conftest.er1
3028 cat conftest.er1 >&5
3030 rm -f conftest.er1 conftest.err
3031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3032 test $ac_status = 0; }
3033 done
3035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3036 /* end confdefs.h. */
3037 #include <stdio.h>
3039 main ()
3041 printf ("hello world\n");
3043 return 0;
3045 _ACEOF
3046 # FIXME: Cleanup?
3047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3048 (eval $ac_link) 2>&5
3049 ac_status=$?
3050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3051 test $ac_status = 0; }; then :
3052 gcc_no_link=no
3053 else
3054 gcc_no_link=yes
3056 if test x$gcc_no_link = xyes; then
3057 # Setting cross_compile will disable run tests; it will
3058 # also disable AC_CHECK_FILE but that's generally
3059 # correct if we can't link.
3060 cross_compiling=yes
3061 EXEEXT=
3062 else
3063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3064 /* end confdefs.h. */
3067 main ()
3071 return 0;
3073 _ACEOF
3074 ac_clean_files_save=$ac_clean_files
3075 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3076 # Try to create an executable without -o first, disregard a.out.
3077 # It will help us diagnose broken compilers, and finding out an intuition
3078 # of exeext.
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3080 $as_echo_n "checking whether the C compiler works... " >&6; }
3081 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3083 # The possible output files:
3084 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3086 ac_rmfiles=
3087 for ac_file in $ac_files
3089 case $ac_file in
3090 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3091 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3092 esac
3093 done
3094 rm -f $ac_rmfiles
3096 if { { ac_try="$ac_link_default"
3097 case "(($ac_try" in
3098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099 *) ac_try_echo=$ac_try;;
3100 esac
3101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3102 $as_echo "$ac_try_echo"; } >&5
3103 (eval "$ac_link_default") 2>&5
3104 ac_status=$?
3105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3106 test $ac_status = 0; }; then :
3107 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3108 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3109 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3110 # so that the user can short-circuit this test for compilers unknown to
3111 # Autoconf.
3112 for ac_file in $ac_files ''
3114 test -f "$ac_file" || continue
3115 case $ac_file in
3116 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3118 [ab].out )
3119 # We found the default executable, but exeext='' is most
3120 # certainly right.
3121 break;;
3122 *.* )
3123 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3124 then :; else
3125 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3127 # We set ac_cv_exeext here because the later test for it is not
3128 # safe: cross compilers may not add the suffix if given an `-o'
3129 # argument, so we may need to know it at that point already.
3130 # Even if this section looks crufty: it has the advantage of
3131 # actually working.
3132 break;;
3134 break;;
3135 esac
3136 done
3137 test "$ac_cv_exeext" = no && ac_cv_exeext=
3139 else
3140 ac_file=''
3142 if test -z "$ac_file"; then :
3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3144 $as_echo "no" >&6; }
3145 $as_echo "$as_me: failed program was:" >&5
3146 sed 's/^/| /' conftest.$ac_ext >&5
3148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3150 as_fn_error 77 "C compiler cannot create executables
3151 See \`config.log' for more details" "$LINENO" 5; }
3152 else
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3154 $as_echo "yes" >&6; }
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3157 $as_echo_n "checking for C compiler default output file name... " >&6; }
3158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3159 $as_echo "$ac_file" >&6; }
3160 ac_exeext=$ac_cv_exeext
3162 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3163 ac_clean_files=$ac_clean_files_save
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3165 $as_echo_n "checking for suffix of executables... " >&6; }
3166 if { { ac_try="$ac_link"
3167 case "(($ac_try" in
3168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3169 *) ac_try_echo=$ac_try;;
3170 esac
3171 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3172 $as_echo "$ac_try_echo"; } >&5
3173 (eval "$ac_link") 2>&5
3174 ac_status=$?
3175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3176 test $ac_status = 0; }; then :
3177 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3178 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3179 # work properly (i.e., refer to `conftest.exe'), while it won't with
3180 # `rm'.
3181 for ac_file in conftest.exe conftest conftest.*; do
3182 test -f "$ac_file" || continue
3183 case $ac_file in
3184 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3185 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3186 break;;
3187 * ) break;;
3188 esac
3189 done
3190 else
3191 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3192 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3193 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3194 See \`config.log' for more details" "$LINENO" 5; }
3196 rm -f conftest conftest$ac_cv_exeext
3197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3198 $as_echo "$ac_cv_exeext" >&6; }
3200 rm -f conftest.$ac_ext
3201 EXEEXT=$ac_cv_exeext
3202 ac_exeext=$EXEEXT
3203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3204 /* end confdefs.h. */
3205 #include <stdio.h>
3207 main ()
3209 FILE *f = fopen ("conftest.out", "w");
3210 return ferror (f) || fclose (f) != 0;
3213 return 0;
3215 _ACEOF
3216 ac_clean_files="$ac_clean_files conftest.out"
3217 # Check that the compiler produces executables we can run. If not, either
3218 # the compiler is broken, or we cross compile.
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3220 $as_echo_n "checking whether we are cross compiling... " >&6; }
3221 if test "$cross_compiling" != yes; then
3222 { { ac_try="$ac_link"
3223 case "(($ac_try" in
3224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3225 *) ac_try_echo=$ac_try;;
3226 esac
3227 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3228 $as_echo "$ac_try_echo"; } >&5
3229 (eval "$ac_link") 2>&5
3230 ac_status=$?
3231 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3232 test $ac_status = 0; }
3233 if { ac_try='./conftest$ac_cv_exeext'
3234 { { case "(($ac_try" in
3235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3236 *) ac_try_echo=$ac_try;;
3237 esac
3238 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3239 $as_echo "$ac_try_echo"; } >&5
3240 (eval "$ac_try") 2>&5
3241 ac_status=$?
3242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3243 test $ac_status = 0; }; }; then
3244 cross_compiling=no
3245 else
3246 if test "$cross_compiling" = maybe; then
3247 cross_compiling=yes
3248 else
3249 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3250 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3251 as_fn_error $? "cannot run C compiled programs.
3252 If you meant to cross compile, use \`--host'.
3253 See \`config.log' for more details" "$LINENO" 5; }
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3258 $as_echo "$cross_compiling" >&6; }
3260 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3261 ac_clean_files=$ac_clean_files_save
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3264 $as_echo_n "checking for suffix of object files... " >&6; }
3265 if ${ac_cv_objext+:} false; then :
3266 $as_echo_n "(cached) " >&6
3267 else
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h. */
3272 main ()
3276 return 0;
3278 _ACEOF
3279 rm -f conftest.o conftest.obj
3280 if { { ac_try="$ac_compile"
3281 case "(($ac_try" in
3282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3283 *) ac_try_echo=$ac_try;;
3284 esac
3285 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3286 $as_echo "$ac_try_echo"; } >&5
3287 (eval "$ac_compile") 2>&5
3288 ac_status=$?
3289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3290 test $ac_status = 0; }; then :
3291 for ac_file in conftest.o conftest.obj conftest.*; do
3292 test -f "$ac_file" || continue;
3293 case $ac_file in
3294 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3295 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3296 break;;
3297 esac
3298 done
3299 else
3300 $as_echo "$as_me: failed program was:" >&5
3301 sed 's/^/| /' conftest.$ac_ext >&5
3303 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3304 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3305 as_fn_error $? "cannot compute suffix of object files: cannot compile
3306 See \`config.log' for more details" "$LINENO" 5; }
3308 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3311 $as_echo "$ac_cv_objext" >&6; }
3312 OBJEXT=$ac_cv_objext
3313 ac_objext=$OBJEXT
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3315 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3316 if ${ac_cv_c_compiler_gnu+:} false; then :
3317 $as_echo_n "(cached) " >&6
3318 else
3319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3320 /* end confdefs.h. */
3323 main ()
3325 #ifndef __GNUC__
3326 choke me
3327 #endif
3330 return 0;
3332 _ACEOF
3333 if ac_fn_c_try_compile "$LINENO"; then :
3334 ac_compiler_gnu=yes
3335 else
3336 ac_compiler_gnu=no
3338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3339 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3343 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3344 if test $ac_compiler_gnu = yes; then
3345 GCC=yes
3346 else
3347 GCC=
3349 ac_test_CFLAGS=${CFLAGS+set}
3350 ac_save_CFLAGS=$CFLAGS
3351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3352 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3353 if ${ac_cv_prog_cc_g+:} false; then :
3354 $as_echo_n "(cached) " >&6
3355 else
3356 ac_save_c_werror_flag=$ac_c_werror_flag
3357 ac_c_werror_flag=yes
3358 ac_cv_prog_cc_g=no
3359 CFLAGS="-g"
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3364 main ()
3368 return 0;
3370 _ACEOF
3371 if ac_fn_c_try_compile "$LINENO"; then :
3372 ac_cv_prog_cc_g=yes
3373 else
3374 CFLAGS=""
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h. */
3379 main ()
3383 return 0;
3385 _ACEOF
3386 if ac_fn_c_try_compile "$LINENO"; then :
3388 else
3389 ac_c_werror_flag=$ac_save_c_werror_flag
3390 CFLAGS="-g"
3391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3392 /* end confdefs.h. */
3395 main ()
3399 return 0;
3401 _ACEOF
3402 if ac_fn_c_try_compile "$LINENO"; then :
3403 ac_cv_prog_cc_g=yes
3405 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3410 ac_c_werror_flag=$ac_save_c_werror_flag
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3413 $as_echo "$ac_cv_prog_cc_g" >&6; }
3414 if test "$ac_test_CFLAGS" = set; then
3415 CFLAGS=$ac_save_CFLAGS
3416 elif test $ac_cv_prog_cc_g = yes; then
3417 if test "$GCC" = yes; then
3418 CFLAGS="-g -O2"
3419 else
3420 CFLAGS="-g"
3422 else
3423 if test "$GCC" = yes; then
3424 CFLAGS="-O2"
3425 else
3426 CFLAGS=
3429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3430 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3431 if ${ac_cv_prog_cc_c89+:} false; then :
3432 $as_echo_n "(cached) " >&6
3433 else
3434 ac_cv_prog_cc_c89=no
3435 ac_save_CC=$CC
3436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3437 /* end confdefs.h. */
3438 #include <stdarg.h>
3439 #include <stdio.h>
3440 struct stat;
3441 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3442 struct buf { int x; };
3443 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3444 static char *e (p, i)
3445 char **p;
3446 int i;
3448 return p[i];
3450 static char *f (char * (*g) (char **, int), char **p, ...)
3452 char *s;
3453 va_list v;
3454 va_start (v,p);
3455 s = g (p, va_arg (v,int));
3456 va_end (v);
3457 return s;
3460 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3461 function prototypes and stuff, but not '\xHH' hex character constants.
3462 These don't provoke an error unfortunately, instead are silently treated
3463 as 'x'. The following induces an error, until -std is added to get
3464 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3465 array size at least. It's necessary to write '\x00'==0 to get something
3466 that's true only with -std. */
3467 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3469 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3470 inside strings and character constants. */
3471 #define FOO(x) 'x'
3472 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3474 int test (int i, double x);
3475 struct s1 {int (*f) (int a);};
3476 struct s2 {int (*f) (double a);};
3477 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3478 int argc;
3479 char **argv;
3481 main ()
3483 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3485 return 0;
3487 _ACEOF
3488 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3489 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3491 CC="$ac_save_CC $ac_arg"
3492 if ac_fn_c_try_compile "$LINENO"; then :
3493 ac_cv_prog_cc_c89=$ac_arg
3495 rm -f core conftest.err conftest.$ac_objext
3496 test "x$ac_cv_prog_cc_c89" != "xno" && break
3497 done
3498 rm -f conftest.$ac_ext
3499 CC=$ac_save_CC
3502 # AC_CACHE_VAL
3503 case "x$ac_cv_prog_cc_c89" in
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3506 $as_echo "none needed" >&6; } ;;
3507 xno)
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3509 $as_echo "unsupported" >&6; } ;;
3511 CC="$CC $ac_cv_prog_cc_c89"
3512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3513 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3514 esac
3515 if test "x$ac_cv_prog_cc_c89" != xno; then :
3519 ac_ext=c
3520 ac_cpp='$CPP $CPPFLAGS'
3521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3525 ac_ext=c
3526 ac_cpp='$CPP $CPPFLAGS'
3527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3531 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3532 if ${am_cv_prog_cc_c_o+:} false; then :
3533 $as_echo_n "(cached) " >&6
3534 else
3535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3536 /* end confdefs.h. */
3539 main ()
3543 return 0;
3545 _ACEOF
3546 # Make sure it works both with $CC and with simple cc.
3547 # Following AC_PROG_CC_C_O, we do the test twice because some
3548 # compilers refuse to overwrite an existing .o file with -o,
3549 # though they will create one.
3550 am_cv_prog_cc_c_o=yes
3551 for am_i in 1 2; do
3552 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3553 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3554 ac_status=$?
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); } \
3557 && test -f conftest2.$ac_objext; then
3558 : OK
3559 else
3560 am_cv_prog_cc_c_o=no
3561 break
3563 done
3564 rm -f core conftest*
3565 unset am_i
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3568 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3569 if test "$am_cv_prog_cc_c_o" != yes; then
3570 # Losing compiler, so override with the script.
3571 # FIXME: It is wrong to rewrite CC.
3572 # But if we don't then we get into trouble of one sort or another.
3573 # A longer-term fix would be to have automake use am__CC in this case,
3574 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3575 CC="$am_aux_dir/compile $CC"
3577 ac_ext=c
3578 ac_cpp='$CPP $CPPFLAGS'
3579 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3580 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3581 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3585 ac_ext=c
3586 ac_cpp='$CPP $CPPFLAGS'
3587 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3588 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3589 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3591 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3592 # On Suns, sometimes $CPP names a directory.
3593 if test -n "$CPP" && test -d "$CPP"; then
3594 CPP=
3596 if test -z "$CPP"; then
3597 if ${ac_cv_prog_CPP+:} false; then :
3598 $as_echo_n "(cached) " >&6
3599 else
3600 # Double quotes because CPP needs to be expanded
3601 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3603 ac_preproc_ok=false
3604 for ac_c_preproc_warn_flag in '' yes
3606 # Use a header file that comes with gcc, so configuring glibc
3607 # with a fresh cross-compiler works.
3608 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3609 # <limits.h> exists even on freestanding compilers.
3610 # On the NeXT, cc -E runs the code through the compiler's parser,
3611 # not just through cpp. "Syntax error" is here to catch this case.
3612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3613 /* end confdefs.h. */
3614 #ifdef __STDC__
3615 # include <limits.h>
3616 #else
3617 # include <assert.h>
3618 #endif
3619 Syntax error
3620 _ACEOF
3621 if ac_fn_c_try_cpp "$LINENO"; then :
3623 else
3624 # Broken: fails on valid input.
3625 continue
3627 rm -f conftest.err conftest.i conftest.$ac_ext
3629 # OK, works on sane cases. Now check whether nonexistent headers
3630 # can be detected and how.
3631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3632 /* end confdefs.h. */
3633 #include <ac_nonexistent.h>
3634 _ACEOF
3635 if ac_fn_c_try_cpp "$LINENO"; then :
3636 # Broken: success on invalid input.
3637 continue
3638 else
3639 # Passes both tests.
3640 ac_preproc_ok=:
3641 break
3643 rm -f conftest.err conftest.i conftest.$ac_ext
3645 done
3646 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3647 rm -f conftest.i conftest.err conftest.$ac_ext
3648 if $ac_preproc_ok; then :
3649 break
3652 done
3653 ac_cv_prog_CPP=$CPP
3656 CPP=$ac_cv_prog_CPP
3657 else
3658 ac_cv_prog_CPP=$CPP
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3661 $as_echo "$CPP" >&6; }
3662 ac_preproc_ok=false
3663 for ac_c_preproc_warn_flag in '' yes
3665 # Use a header file that comes with gcc, so configuring glibc
3666 # with a fresh cross-compiler works.
3667 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3668 # <limits.h> exists even on freestanding compilers.
3669 # On the NeXT, cc -E runs the code through the compiler's parser,
3670 # not just through cpp. "Syntax error" is here to catch this case.
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h. */
3673 #ifdef __STDC__
3674 # include <limits.h>
3675 #else
3676 # include <assert.h>
3677 #endif
3678 Syntax error
3679 _ACEOF
3680 if ac_fn_c_try_cpp "$LINENO"; then :
3682 else
3683 # Broken: fails on valid input.
3684 continue
3686 rm -f conftest.err conftest.i conftest.$ac_ext
3688 # OK, works on sane cases. Now check whether nonexistent headers
3689 # can be detected and how.
3690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3691 /* end confdefs.h. */
3692 #include <ac_nonexistent.h>
3693 _ACEOF
3694 if ac_fn_c_try_cpp "$LINENO"; then :
3695 # Broken: success on invalid input.
3696 continue
3697 else
3698 # Passes both tests.
3699 ac_preproc_ok=:
3700 break
3702 rm -f conftest.err conftest.i conftest.$ac_ext
3704 done
3705 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3706 rm -f conftest.i conftest.err conftest.$ac_ext
3707 if $ac_preproc_ok; then :
3709 else
3710 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3711 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3712 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3713 See \`config.log' for more details" "$LINENO" 5; }
3716 ac_ext=c
3717 ac_cpp='$CPP $CPPFLAGS'
3718 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3719 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3720 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3724 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3725 if ${ac_cv_path_GREP+:} false; then :
3726 $as_echo_n "(cached) " >&6
3727 else
3728 if test -z "$GREP"; then
3729 ac_path_GREP_found=false
3730 # Loop through the user's path and test for each of PROGNAME-LIST
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3734 IFS=$as_save_IFS
3735 test -z "$as_dir" && as_dir=.
3736 for ac_prog in grep ggrep; do
3737 for ac_exec_ext in '' $ac_executable_extensions; do
3738 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3739 as_fn_executable_p "$ac_path_GREP" || continue
3740 # Check for GNU ac_path_GREP and select it if it is found.
3741 # Check for GNU $ac_path_GREP
3742 case `"$ac_path_GREP" --version 2>&1` in
3743 *GNU*)
3744 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3746 ac_count=0
3747 $as_echo_n 0123456789 >"conftest.in"
3748 while :
3750 cat "conftest.in" "conftest.in" >"conftest.tmp"
3751 mv "conftest.tmp" "conftest.in"
3752 cp "conftest.in" "conftest.nl"
3753 $as_echo 'GREP' >> "conftest.nl"
3754 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3755 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3756 as_fn_arith $ac_count + 1 && ac_count=$as_val
3757 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3758 # Best one so far, save it but keep looking for a better one
3759 ac_cv_path_GREP="$ac_path_GREP"
3760 ac_path_GREP_max=$ac_count
3762 # 10*(2^10) chars as input seems more than enough
3763 test $ac_count -gt 10 && break
3764 done
3765 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3766 esac
3768 $ac_path_GREP_found && break 3
3769 done
3770 done
3771 done
3772 IFS=$as_save_IFS
3773 if test -z "$ac_cv_path_GREP"; then
3774 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3776 else
3777 ac_cv_path_GREP=$GREP
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3782 $as_echo "$ac_cv_path_GREP" >&6; }
3783 GREP="$ac_cv_path_GREP"
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3787 $as_echo_n "checking for egrep... " >&6; }
3788 if ${ac_cv_path_EGREP+:} false; then :
3789 $as_echo_n "(cached) " >&6
3790 else
3791 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3792 then ac_cv_path_EGREP="$GREP -E"
3793 else
3794 if test -z "$EGREP"; then
3795 ac_path_EGREP_found=false
3796 # Loop through the user's path and test for each of PROGNAME-LIST
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_prog in egrep; do
3803 for ac_exec_ext in '' $ac_executable_extensions; do
3804 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3805 as_fn_executable_p "$ac_path_EGREP" || continue
3806 # Check for GNU ac_path_EGREP and select it if it is found.
3807 # Check for GNU $ac_path_EGREP
3808 case `"$ac_path_EGREP" --version 2>&1` in
3809 *GNU*)
3810 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3812 ac_count=0
3813 $as_echo_n 0123456789 >"conftest.in"
3814 while :
3816 cat "conftest.in" "conftest.in" >"conftest.tmp"
3817 mv "conftest.tmp" "conftest.in"
3818 cp "conftest.in" "conftest.nl"
3819 $as_echo 'EGREP' >> "conftest.nl"
3820 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3821 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3822 as_fn_arith $ac_count + 1 && ac_count=$as_val
3823 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3824 # Best one so far, save it but keep looking for a better one
3825 ac_cv_path_EGREP="$ac_path_EGREP"
3826 ac_path_EGREP_max=$ac_count
3828 # 10*(2^10) chars as input seems more than enough
3829 test $ac_count -gt 10 && break
3830 done
3831 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3832 esac
3834 $ac_path_EGREP_found && break 3
3835 done
3836 done
3837 done
3838 IFS=$as_save_IFS
3839 if test -z "$ac_cv_path_EGREP"; then
3840 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3842 else
3843 ac_cv_path_EGREP=$EGREP
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3849 $as_echo "$ac_cv_path_EGREP" >&6; }
3850 EGREP="$ac_cv_path_EGREP"
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3854 $as_echo_n "checking for ANSI C header files... " >&6; }
3855 if ${ac_cv_header_stdc+:} false; then :
3856 $as_echo_n "(cached) " >&6
3857 else
3858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3859 /* end confdefs.h. */
3860 #include <stdlib.h>
3861 #include <stdarg.h>
3862 #include <string.h>
3863 #include <float.h>
3866 main ()
3870 return 0;
3872 _ACEOF
3873 if ac_fn_c_try_compile "$LINENO"; then :
3874 ac_cv_header_stdc=yes
3875 else
3876 ac_cv_header_stdc=no
3878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3880 if test $ac_cv_header_stdc = yes; then
3881 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3883 /* end confdefs.h. */
3884 #include <string.h>
3886 _ACEOF
3887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3888 $EGREP "memchr" >/dev/null 2>&1; then :
3890 else
3891 ac_cv_header_stdc=no
3893 rm -f conftest*
3897 if test $ac_cv_header_stdc = yes; then
3898 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3900 /* end confdefs.h. */
3901 #include <stdlib.h>
3903 _ACEOF
3904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3905 $EGREP "free" >/dev/null 2>&1; then :
3907 else
3908 ac_cv_header_stdc=no
3910 rm -f conftest*
3914 if test $ac_cv_header_stdc = yes; then
3915 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3916 if test "$cross_compiling" = yes; then :
3918 else
3919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3920 /* end confdefs.h. */
3921 #include <ctype.h>
3922 #include <stdlib.h>
3923 #if ((' ' & 0x0FF) == 0x020)
3924 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3925 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3926 #else
3927 # define ISLOWER(c) \
3928 (('a' <= (c) && (c) <= 'i') \
3929 || ('j' <= (c) && (c) <= 'r') \
3930 || ('s' <= (c) && (c) <= 'z'))
3931 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3932 #endif
3934 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3936 main ()
3938 int i;
3939 for (i = 0; i < 256; i++)
3940 if (XOR (islower (i), ISLOWER (i))
3941 || toupper (i) != TOUPPER (i))
3942 return 2;
3943 return 0;
3945 _ACEOF
3946 if ac_fn_c_try_run "$LINENO"; then :
3948 else
3949 ac_cv_header_stdc=no
3951 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3952 conftest.$ac_objext conftest.beam conftest.$ac_ext
3957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3958 $as_echo "$ac_cv_header_stdc" >&6; }
3959 if test $ac_cv_header_stdc = yes; then
3961 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3965 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3966 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3967 inttypes.h stdint.h unistd.h
3968 do :
3969 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3970 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3972 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3973 cat >>confdefs.h <<_ACEOF
3974 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3975 _ACEOF
3979 done
3983 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3984 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3985 MINIX=yes
3986 else
3987 MINIX=
3991 if test "$MINIX" = yes; then
3993 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3996 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3999 $as_echo "#define _MINIX 1" >>confdefs.h
4004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4005 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4006 if ${ac_cv_safe_to_define___extensions__+:} false; then :
4007 $as_echo_n "(cached) " >&6
4008 else
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4012 # define __EXTENSIONS__ 1
4013 $ac_includes_default
4015 main ()
4019 return 0;
4021 _ACEOF
4022 if ac_fn_c_try_compile "$LINENO"; then :
4023 ac_cv_safe_to_define___extensions__=yes
4024 else
4025 ac_cv_safe_to_define___extensions__=no
4027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4030 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4031 test $ac_cv_safe_to_define___extensions__ = yes &&
4032 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4034 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4036 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4038 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4040 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4044 # Do not delete or change the following two lines. For why, see
4045 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
4046 # Make sure we can run config.sub.
4047 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4048 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4051 $as_echo_n "checking build system type... " >&6; }
4052 if ${ac_cv_build+:} false; then :
4053 $as_echo_n "(cached) " >&6
4054 else
4055 ac_build_alias=$build_alias
4056 test "x$ac_build_alias" = x &&
4057 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4058 test "x$ac_build_alias" = x &&
4059 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4060 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4061 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4065 $as_echo "$ac_cv_build" >&6; }
4066 case $ac_cv_build in
4067 *-*-*) ;;
4068 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4069 esac
4070 build=$ac_cv_build
4071 ac_save_IFS=$IFS; IFS='-'
4072 set x $ac_cv_build
4073 shift
4074 build_cpu=$1
4075 build_vendor=$2
4076 shift; shift
4077 # Remember, the first character of IFS is used to create $*,
4078 # except with old shells:
4079 build_os=$*
4080 IFS=$ac_save_IFS
4081 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4085 $as_echo_n "checking host system type... " >&6; }
4086 if ${ac_cv_host+:} false; then :
4087 $as_echo_n "(cached) " >&6
4088 else
4089 if test "x$host_alias" = x; then
4090 ac_cv_host=$ac_cv_build
4091 else
4092 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4093 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4098 $as_echo "$ac_cv_host" >&6; }
4099 case $ac_cv_host in
4100 *-*-*) ;;
4101 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4102 esac
4103 host=$ac_cv_host
4104 ac_save_IFS=$IFS; IFS='-'
4105 set x $ac_cv_host
4106 shift
4107 host_cpu=$1
4108 host_vendor=$2
4109 shift; shift
4110 # Remember, the first character of IFS is used to create $*,
4111 # except with old shells:
4112 host_os=$*
4113 IFS=$ac_save_IFS
4114 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
4118 $as_echo_n "checking target system type... " >&6; }
4119 if ${ac_cv_target+:} false; then :
4120 $as_echo_n "(cached) " >&6
4121 else
4122 if test "x$target_alias" = x; then
4123 ac_cv_target=$ac_cv_host
4124 else
4125 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
4126 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
4130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
4131 $as_echo "$ac_cv_target" >&6; }
4132 case $ac_cv_target in
4133 *-*-*) ;;
4134 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
4135 esac
4136 target=$ac_cv_target
4137 ac_save_IFS=$IFS; IFS='-'
4138 set x $ac_cv_target
4139 shift
4140 target_cpu=$1
4141 target_vendor=$2
4142 shift; shift
4143 # Remember, the first character of IFS is used to create $*,
4144 # except with old shells:
4145 target_os=$*
4146 IFS=$ac_save_IFS
4147 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
4150 # The aliases save the names the user supplied, while $host etc.
4151 # will get canonicalized.
4152 test -n "$target_alias" &&
4153 test "$program_prefix$program_suffix$program_transform_name" = \
4154 NONENONEs,x,x, &&
4155 program_prefix=${target_alias}-
4157 target_alias=${target_alias-$host_alias}
4160 if test "$build" != "$host"; then
4161 # We are being configured with some form of cross compiler.
4162 GLIBCXX_IS_NATIVE=false
4163 case "$host","$target" in
4164 # Darwin crosses can use the host system's libraries and headers,
4165 # because of the fat library support. Of course, it must be the
4166 # same version of Darwin on both sides. Allow the user to
4167 # just say --target=foo-darwin without a version number to mean
4168 # "the version on this system".
4169 *-*-darwin*,*-*-darwin*)
4170 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
4171 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
4172 if test $hostos = $targetos || test $targetos = darwin ; then
4173 GLIBCXX_IS_NATIVE=true
4180 esac
4181 else
4182 GLIBCXX_IS_NATIVE=true
4185 # Runs configure.host, and assorted other critical bits. Sets
4186 # up critical shell variables.
4188 # Keep these sync'd with the list in Makefile.am. The first provides an
4189 # expandable list at autoconf time; the second provides an expandable list
4190 # (i.e., shell variable) at configure time.
4192 SUBDIRS=''
4194 # These need to be absolute paths, yet at the same time need to
4195 # canonicalize only relative paths, because then amd will not unmount
4196 # drives. Thus the use of PWDCMD: set it to 'pawd' or 'amq -w' if using amd.
4197 glibcxx_builddir=`${PWDCMD-pwd}`
4198 case $srcdir in
4199 \\/$* | ?:\\/*) glibcxx_srcdir=${srcdir} ;;
4200 *) glibcxx_srcdir=`cd "$srcdir" && ${PWDCMD-pwd} || echo "$srcdir"` ;;
4201 esac
4202 toplevel_builddir=${glibcxx_builddir}/..
4203 toplevel_srcdir=${glibcxx_srcdir}/..
4209 # We use these options to decide which functions to include. They are
4210 # set from the top level.
4212 # Check whether --with-target-subdir was given.
4213 if test "${with_target_subdir+set}" = set; then :
4214 withval=$with_target_subdir;
4219 # Check whether --with-cross-host was given.
4220 if test "${with_cross_host+set}" = set; then :
4221 withval=$with_cross_host;
4226 # Check whether --with-newlib was given.
4227 if test "${with_newlib+set}" = set; then :
4228 withval=$with_newlib;
4232 # Will set LN_S to either 'ln -s', 'ln', or 'cp -p' (if linking isn't
4233 # available). Uncomment the next line to force a particular method.
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
4235 $as_echo_n "checking whether ln -s works... " >&6; }
4236 LN_S=$as_ln_s
4237 if test "$LN_S" = "ln -s"; then
4238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4239 $as_echo "yes" >&6; }
4240 else
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
4242 $as_echo "no, using $LN_S" >&6; }
4245 #LN_S='cp -p'
4247 if test -n "$ac_tool_prefix"; then
4248 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
4249 set dummy ${ac_tool_prefix}as; ac_word=$2
4250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4251 $as_echo_n "checking for $ac_word... " >&6; }
4252 if ${ac_cv_prog_AS+:} false; then :
4253 $as_echo_n "(cached) " >&6
4254 else
4255 if test -n "$AS"; then
4256 ac_cv_prog_AS="$AS" # Let the user override the test.
4257 else
4258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4259 for as_dir in $PATH
4261 IFS=$as_save_IFS
4262 test -z "$as_dir" && as_dir=.
4263 for ac_exec_ext in '' $ac_executable_extensions; do
4264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4265 ac_cv_prog_AS="${ac_tool_prefix}as"
4266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4267 break 2
4269 done
4270 done
4271 IFS=$as_save_IFS
4275 AS=$ac_cv_prog_AS
4276 if test -n "$AS"; then
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
4278 $as_echo "$AS" >&6; }
4279 else
4280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4281 $as_echo "no" >&6; }
4286 if test -z "$ac_cv_prog_AS"; then
4287 ac_ct_AS=$AS
4288 # Extract the first word of "as", so it can be a program name with args.
4289 set dummy as; ac_word=$2
4290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4291 $as_echo_n "checking for $ac_word... " >&6; }
4292 if ${ac_cv_prog_ac_ct_AS+:} false; then :
4293 $as_echo_n "(cached) " >&6
4294 else
4295 if test -n "$ac_ct_AS"; then
4296 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
4297 else
4298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4299 for as_dir in $PATH
4301 IFS=$as_save_IFS
4302 test -z "$as_dir" && as_dir=.
4303 for ac_exec_ext in '' $ac_executable_extensions; do
4304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4305 ac_cv_prog_ac_ct_AS="as"
4306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4307 break 2
4309 done
4310 done
4311 IFS=$as_save_IFS
4315 ac_ct_AS=$ac_cv_prog_ac_ct_AS
4316 if test -n "$ac_ct_AS"; then
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
4318 $as_echo "$ac_ct_AS" >&6; }
4319 else
4320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4321 $as_echo "no" >&6; }
4324 if test "x$ac_ct_AS" = x; then
4325 AS=""
4326 else
4327 case $cross_compiling:$ac_tool_warned in
4328 yes:)
4329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4330 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4331 ac_tool_warned=yes ;;
4332 esac
4333 AS=$ac_ct_AS
4335 else
4336 AS="$ac_cv_prog_AS"
4339 if test -n "$ac_tool_prefix"; then
4340 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
4341 set dummy ${ac_tool_prefix}ar; ac_word=$2
4342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4343 $as_echo_n "checking for $ac_word... " >&6; }
4344 if ${ac_cv_prog_AR+:} false; then :
4345 $as_echo_n "(cached) " >&6
4346 else
4347 if test -n "$AR"; then
4348 ac_cv_prog_AR="$AR" # Let the user override the test.
4349 else
4350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4351 for as_dir in $PATH
4353 IFS=$as_save_IFS
4354 test -z "$as_dir" && as_dir=.
4355 for ac_exec_ext in '' $ac_executable_extensions; do
4356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4357 ac_cv_prog_AR="${ac_tool_prefix}ar"
4358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4359 break 2
4361 done
4362 done
4363 IFS=$as_save_IFS
4367 AR=$ac_cv_prog_AR
4368 if test -n "$AR"; then
4369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
4370 $as_echo "$AR" >&6; }
4371 else
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4373 $as_echo "no" >&6; }
4378 if test -z "$ac_cv_prog_AR"; then
4379 ac_ct_AR=$AR
4380 # Extract the first word of "ar", so it can be a program name with args.
4381 set dummy ar; ac_word=$2
4382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4383 $as_echo_n "checking for $ac_word... " >&6; }
4384 if ${ac_cv_prog_ac_ct_AR+:} false; then :
4385 $as_echo_n "(cached) " >&6
4386 else
4387 if test -n "$ac_ct_AR"; then
4388 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
4389 else
4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4391 for as_dir in $PATH
4393 IFS=$as_save_IFS
4394 test -z "$as_dir" && as_dir=.
4395 for ac_exec_ext in '' $ac_executable_extensions; do
4396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4397 ac_cv_prog_ac_ct_AR="ar"
4398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4399 break 2
4401 done
4402 done
4403 IFS=$as_save_IFS
4407 ac_ct_AR=$ac_cv_prog_ac_ct_AR
4408 if test -n "$ac_ct_AR"; then
4409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
4410 $as_echo "$ac_ct_AR" >&6; }
4411 else
4412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4413 $as_echo "no" >&6; }
4416 if test "x$ac_ct_AR" = x; then
4417 AR=""
4418 else
4419 case $cross_compiling:$ac_tool_warned in
4420 yes:)
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4423 ac_tool_warned=yes ;;
4424 esac
4425 AR=$ac_ct_AR
4427 else
4428 AR="$ac_cv_prog_AR"
4431 if test -n "$ac_tool_prefix"; then
4432 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4433 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4435 $as_echo_n "checking for $ac_word... " >&6; }
4436 if ${ac_cv_prog_RANLIB+:} false; then :
4437 $as_echo_n "(cached) " >&6
4438 else
4439 if test -n "$RANLIB"; then
4440 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4441 else
4442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4443 for as_dir in $PATH
4445 IFS=$as_save_IFS
4446 test -z "$as_dir" && as_dir=.
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4449 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4451 break 2
4453 done
4454 done
4455 IFS=$as_save_IFS
4459 RANLIB=$ac_cv_prog_RANLIB
4460 if test -n "$RANLIB"; then
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
4462 $as_echo "$RANLIB" >&6; }
4463 else
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4465 $as_echo "no" >&6; }
4470 if test -z "$ac_cv_prog_RANLIB"; then
4471 ac_ct_RANLIB=$RANLIB
4472 # Extract the first word of "ranlib", so it can be a program name with args.
4473 set dummy ranlib; ac_word=$2
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4475 $as_echo_n "checking for $ac_word... " >&6; }
4476 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
4477 $as_echo_n "(cached) " >&6
4478 else
4479 if test -n "$ac_ct_RANLIB"; then
4480 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4481 else
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_exec_ext in '' $ac_executable_extensions; do
4488 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4489 ac_cv_prog_ac_ct_RANLIB="ranlib"
4490 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4491 break 2
4493 done
4494 done
4495 IFS=$as_save_IFS
4499 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4500 if test -n "$ac_ct_RANLIB"; then
4501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
4502 $as_echo "$ac_ct_RANLIB" >&6; }
4503 else
4504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4505 $as_echo "no" >&6; }
4508 if test "x$ac_ct_RANLIB" = x; then
4509 RANLIB="ranlib-not-found-in-path-error"
4510 else
4511 case $cross_compiling:$ac_tool_warned in
4512 yes:)
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4514 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4515 ac_tool_warned=yes ;;
4516 esac
4517 RANLIB=$ac_ct_RANLIB
4519 else
4520 RANLIB="$ac_cv_prog_RANLIB"
4525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
4526 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
4527 # Check whether --enable-maintainer-mode was given.
4528 if test "${enable_maintainer_mode+set}" = set; then :
4529 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
4530 else
4531 USE_MAINTAINER_MODE=no
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
4535 $as_echo "$USE_MAINTAINER_MODE" >&6; }
4536 if test $USE_MAINTAINER_MODE = yes; then
4537 MAINTAINER_MODE_TRUE=
4538 MAINTAINER_MODE_FALSE='#'
4539 else
4540 MAINTAINER_MODE_TRUE='#'
4541 MAINTAINER_MODE_FALSE=
4544 MAINT=$MAINTAINER_MODE_TRUE
4548 # Set up safe default values for all subsequent AM_CONDITIONAL tests
4549 # which are themselves conditionally expanded.
4550 ## (Right now, this only matters for enable_wchar_t, but nothing prevents
4551 ## other macros from doing the same. This should be automated.) -pme
4553 # Check for C library flavor since GNU/Linux platforms use different
4554 # configuration directories depending on the C library in use.
4555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4556 /* end confdefs.h. */
4558 #include <stdio.h>
4559 #if __UCLIBC__
4560 _using_uclibc
4561 #endif
4563 _ACEOF
4564 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4565 $EGREP "_using_uclibc" >/dev/null 2>&1; then :
4566 uclibc=yes
4567 else
4568 uclibc=no
4570 rm -f conftest*
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4576 #include <stdio.h>
4577 #if __BIONIC__
4578 _using_bionic
4579 #endif
4581 _ACEOF
4582 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4583 $EGREP "_using_bionic" >/dev/null 2>&1; then :
4584 bionic=yes
4585 else
4586 bionic=no
4588 rm -f conftest*
4591 # Find platform-specific directories containing configuration info.
4592 # Also possibly modify flags used elsewhere, as needed by the platform.
4594 . $glibcxx_srcdir/configure.host
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: CPU config directory is $cpu_include_dir" >&5
4596 $as_echo "$as_me: CPU config directory is $cpu_include_dir" >&6;}
4597 { $as_echo "$as_me:${as_lineno-$LINENO}: OS config directory is $os_include_dir" >&5
4598 $as_echo "$as_me: OS config directory is $os_include_dir" >&6;}
4602 # For gettimeofday support.
4603 ac_ext=cpp
4604 ac_cpp='$CXXCPP $CPPFLAGS'
4605 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4606 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4607 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4608 if test -z "$CXX"; then
4609 if test -n "$CCC"; then
4610 CXX=$CCC
4611 else
4612 if test -n "$ac_tool_prefix"; then
4613 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4615 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4616 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4618 $as_echo_n "checking for $ac_word... " >&6; }
4619 if ${ac_cv_prog_CXX+:} false; then :
4620 $as_echo_n "(cached) " >&6
4621 else
4622 if test -n "$CXX"; then
4623 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4624 else
4625 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4626 for as_dir in $PATH
4628 IFS=$as_save_IFS
4629 test -z "$as_dir" && as_dir=.
4630 for ac_exec_ext in '' $ac_executable_extensions; do
4631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4632 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4634 break 2
4636 done
4637 done
4638 IFS=$as_save_IFS
4642 CXX=$ac_cv_prog_CXX
4643 if test -n "$CXX"; then
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4645 $as_echo "$CXX" >&6; }
4646 else
4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4648 $as_echo "no" >&6; }
4652 test -n "$CXX" && break
4653 done
4655 if test -z "$CXX"; then
4656 ac_ct_CXX=$CXX
4657 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
4659 # Extract the first word of "$ac_prog", so it can be a program name with args.
4660 set dummy $ac_prog; ac_word=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 if test -n "$ac_ct_CXX"; then
4667 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_prog_ac_ct_CXX="$ac_prog"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4680 done
4681 done
4682 IFS=$as_save_IFS
4686 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4687 if test -n "$ac_ct_CXX"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4689 $as_echo "$ac_ct_CXX" >&6; }
4690 else
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4696 test -n "$ac_ct_CXX" && break
4697 done
4699 if test "x$ac_ct_CXX" = x; then
4700 CXX="g++"
4701 else
4702 case $cross_compiling:$ac_tool_warned in
4703 yes:)
4704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4705 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4706 ac_tool_warned=yes ;;
4707 esac
4708 CXX=$ac_ct_CXX
4714 # Provide some information about the compiler.
4715 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4716 set X $ac_compile
4717 ac_compiler=$2
4718 for ac_option in --version -v -V -qversion; do
4719 { { ac_try="$ac_compiler $ac_option >&5"
4720 case "(($ac_try" in
4721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4722 *) ac_try_echo=$ac_try;;
4723 esac
4724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4725 $as_echo "$ac_try_echo"; } >&5
4726 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4727 ac_status=$?
4728 if test -s conftest.err; then
4729 sed '10a\
4730 ... rest of stderr output deleted ...
4731 10q' conftest.err >conftest.er1
4732 cat conftest.er1 >&5
4734 rm -f conftest.er1 conftest.err
4735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4736 test $ac_status = 0; }
4737 done
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4740 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4741 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4742 $as_echo_n "(cached) " >&6
4743 else
4744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4745 /* end confdefs.h. */
4748 main ()
4750 #ifndef __GNUC__
4751 choke me
4752 #endif
4755 return 0;
4757 _ACEOF
4758 if ac_fn_cxx_try_compile "$LINENO"; then :
4759 ac_compiler_gnu=yes
4760 else
4761 ac_compiler_gnu=no
4763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4764 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4768 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4769 if test $ac_compiler_gnu = yes; then
4770 GXX=yes
4771 else
4772 GXX=
4774 ac_test_CXXFLAGS=${CXXFLAGS+set}
4775 ac_save_CXXFLAGS=$CXXFLAGS
4776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4777 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4778 if ${ac_cv_prog_cxx_g+:} false; then :
4779 $as_echo_n "(cached) " >&6
4780 else
4781 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4782 ac_cxx_werror_flag=yes
4783 ac_cv_prog_cxx_g=no
4784 CXXFLAGS="-g"
4785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4786 /* end confdefs.h. */
4789 main ()
4793 return 0;
4795 _ACEOF
4796 if ac_fn_cxx_try_compile "$LINENO"; then :
4797 ac_cv_prog_cxx_g=yes
4798 else
4799 CXXFLAGS=""
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4804 main ()
4808 return 0;
4810 _ACEOF
4811 if ac_fn_cxx_try_compile "$LINENO"; then :
4813 else
4814 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4815 CXXFLAGS="-g"
4816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4817 /* end confdefs.h. */
4820 main ()
4824 return 0;
4826 _ACEOF
4827 if ac_fn_cxx_try_compile "$LINENO"; then :
4828 ac_cv_prog_cxx_g=yes
4830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4835 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4838 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4839 if test "$ac_test_CXXFLAGS" = set; then
4840 CXXFLAGS=$ac_save_CXXFLAGS
4841 elif test $ac_cv_prog_cxx_g = yes; then
4842 if test "$GXX" = yes; then
4843 CXXFLAGS="-g -O2"
4844 else
4845 CXXFLAGS="-g"
4847 else
4848 if test "$GXX" = yes; then
4849 CXXFLAGS="-O2"
4850 else
4851 CXXFLAGS=
4854 ac_ext=cpp
4855 ac_cpp='$CXXCPP $CPPFLAGS'
4856 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4857 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4858 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4861 ac_ext=cpp
4862 ac_cpp='$CXXCPP $CPPFLAGS'
4863 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4864 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4865 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4867 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4868 if test -z "$CXXCPP"; then
4869 if ${ac_cv_prog_CXXCPP+:} false; then :
4870 $as_echo_n "(cached) " >&6
4871 else
4872 # Double quotes because CXXCPP needs to be expanded
4873 for CXXCPP in "$CXX -E" "/lib/cpp"
4875 ac_preproc_ok=false
4876 for ac_cxx_preproc_warn_flag in '' yes
4878 # Use a header file that comes with gcc, so configuring glibc
4879 # with a fresh cross-compiler works.
4880 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4881 # <limits.h> exists even on freestanding compilers.
4882 # On the NeXT, cc -E runs the code through the compiler's parser,
4883 # not just through cpp. "Syntax error" is here to catch this case.
4884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4885 /* end confdefs.h. */
4886 #ifdef __STDC__
4887 # include <limits.h>
4888 #else
4889 # include <assert.h>
4890 #endif
4891 Syntax error
4892 _ACEOF
4893 if ac_fn_cxx_try_cpp "$LINENO"; then :
4895 else
4896 # Broken: fails on valid input.
4897 continue
4899 rm -f conftest.err conftest.i conftest.$ac_ext
4901 # OK, works on sane cases. Now check whether nonexistent headers
4902 # can be detected and how.
4903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4904 /* end confdefs.h. */
4905 #include <ac_nonexistent.h>
4906 _ACEOF
4907 if ac_fn_cxx_try_cpp "$LINENO"; then :
4908 # Broken: success on invalid input.
4909 continue
4910 else
4911 # Passes both tests.
4912 ac_preproc_ok=:
4913 break
4915 rm -f conftest.err conftest.i conftest.$ac_ext
4917 done
4918 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4919 rm -f conftest.i conftest.err conftest.$ac_ext
4920 if $ac_preproc_ok; then :
4921 break
4924 done
4925 ac_cv_prog_CXXCPP=$CXXCPP
4928 CXXCPP=$ac_cv_prog_CXXCPP
4929 else
4930 ac_cv_prog_CXXCPP=$CXXCPP
4932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4933 $as_echo "$CXXCPP" >&6; }
4934 ac_preproc_ok=false
4935 for ac_cxx_preproc_warn_flag in '' yes
4937 # Use a header file that comes with gcc, so configuring glibc
4938 # with a fresh cross-compiler works.
4939 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4940 # <limits.h> exists even on freestanding compilers.
4941 # On the NeXT, cc -E runs the code through the compiler's parser,
4942 # not just through cpp. "Syntax error" is here to catch this case.
4943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4944 /* end confdefs.h. */
4945 #ifdef __STDC__
4946 # include <limits.h>
4947 #else
4948 # include <assert.h>
4949 #endif
4950 Syntax error
4951 _ACEOF
4952 if ac_fn_cxx_try_cpp "$LINENO"; then :
4954 else
4955 # Broken: fails on valid input.
4956 continue
4958 rm -f conftest.err conftest.i conftest.$ac_ext
4960 # OK, works on sane cases. Now check whether nonexistent headers
4961 # can be detected and how.
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4964 #include <ac_nonexistent.h>
4965 _ACEOF
4966 if ac_fn_cxx_try_cpp "$LINENO"; then :
4967 # Broken: success on invalid input.
4968 continue
4969 else
4970 # Passes both tests.
4971 ac_preproc_ok=:
4972 break
4974 rm -f conftest.err conftest.i conftest.$ac_ext
4976 done
4977 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4978 rm -f conftest.i conftest.err conftest.$ac_ext
4979 if $ac_preproc_ok; then :
4981 else
4982 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4983 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4984 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
4985 See \`config.log' for more details" "$LINENO" 5; }
4988 ac_ext=cpp
4989 ac_cpp='$CXXCPP $CPPFLAGS'
4990 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4991 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4992 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday" >&5
4998 $as_echo_n "checking for gettimeofday... " >&6; }
5001 ac_ext=cpp
5002 ac_cpp='$CXXCPP $CPPFLAGS'
5003 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5004 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5005 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5007 ac_save_CXXFLAGS="$CXXFLAGS"
5008 CXXFLAGS="$CXXFLAGS -fno-exceptions"
5010 ac_has_gettimeofday=no;
5011 for ac_header in sys/time.h
5012 do :
5013 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
5014 if test "x$ac_cv_header_sys_time_h" = xyes; then :
5015 cat >>confdefs.h <<_ACEOF
5016 #define HAVE_SYS_TIME_H 1
5017 _ACEOF
5018 ac_has_sys_time_h=yes
5019 else
5020 ac_has_sys_time_h=no
5023 done
5025 if test x"$ac_has_sys_time_h" = x"yes"; then
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday" >&5
5027 $as_echo_n "checking for gettimeofday... " >&6; }
5028 if test x$gcc_no_link = xyes; then
5029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5030 /* end confdefs.h. */
5031 #include <sys/time.h>
5033 main ()
5035 timeval tv; gettimeofday(&tv, 0);
5037 return 0;
5039 _ACEOF
5040 if ac_fn_cxx_try_compile "$LINENO"; then :
5041 ac_has_gettimeofday=yes
5042 else
5043 ac_has_gettimeofday=no
5045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5046 else
5047 if test x$gcc_no_link = xyes; then
5048 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5051 /* end confdefs.h. */
5052 #include <sys/time.h>
5054 main ()
5056 timeval tv; gettimeofday(&tv, 0);
5058 return 0;
5060 _ACEOF
5061 if ac_fn_cxx_try_link "$LINENO"; then :
5062 ac_has_gettimeofday=yes
5063 else
5064 ac_has_gettimeofday=no
5066 rm -f core conftest.err conftest.$ac_objext \
5067 conftest$ac_exeext conftest.$ac_ext
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_gettimeofday" >&5
5071 $as_echo "$ac_has_gettimeofday" >&6; }
5074 if test x"$ac_has_gettimeofday" = x"yes"; then
5076 $as_echo "#define _GLIBCXX_USE_GETTIMEOFDAY 1" >>confdefs.h
5080 CXXFLAGS="$ac_save_CXXFLAGS"
5081 ac_ext=c
5082 ac_cpp='$CPP $CPPFLAGS'
5083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5089 # For clock_gettime, nanosleep and sched_yield support.
5092 # Check whether --enable-libstdcxx-time was given.
5093 if test "${enable_libstdcxx_time+set}" = set; then :
5094 enableval=$enable_libstdcxx_time;
5095 case "$enableval" in
5096 yes|no|rt) ;;
5097 *) as_fn_error $? "Unknown argument to enable/disable libstdcxx-time" "$LINENO" 5 ;;
5098 esac
5100 else
5101 enable_libstdcxx_time=auto
5107 ac_ext=cpp
5108 ac_cpp='$CXXCPP $CPPFLAGS'
5109 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5110 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5111 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5113 ac_save_CXXFLAGS="$CXXFLAGS"
5114 CXXFLAGS="$CXXFLAGS -fno-exceptions"
5115 ac_save_LIBS="$LIBS"
5117 ac_has_clock_monotonic=no
5118 ac_has_clock_realtime=no
5119 ac_has_nanosleep=no
5120 ac_has_sched_yield=no
5122 if test x"$enable_libstdcxx_time" = x"auto"; then
5124 case "${target_os}" in
5125 cygwin*)
5126 ac_has_nanosleep=yes
5128 mingw*)
5129 ac_has_win32_sleep=yes
5130 ac_has_sched_yield=yes
5132 darwin*)
5133 ac_has_nanosleep=yes
5134 ac_has_sched_yield=yes
5136 # VxWorks has nanosleep as soon as the kernel is configured with
5137 # INCLUDE_POSIX_TIMERS, which is normally/most-often the case.
5138 vxworks*)
5139 ac_has_nanosleep=yes
5141 gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
5142 # Don't use link test for freestanding library, in case gcc_no_link=yes
5143 if test x"$is_hosted" = xyes; then
5144 # Versions of glibc before 2.17 needed -lrt for clock_gettime.
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
5146 $as_echo_n "checking for library containing clock_gettime... " >&6; }
5147 if ${ac_cv_search_clock_gettime+:} false; then :
5148 $as_echo_n "(cached) " >&6
5149 else
5150 ac_func_search_save_LIBS=$LIBS
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5154 /* Override any GCC internal prototype to avoid an error.
5155 Use char because int might match the return type of a GCC
5156 builtin and then its argument prototype would still apply. */
5157 #ifdef __cplusplus
5158 extern "C"
5159 #endif
5160 char clock_gettime ();
5162 main ()
5164 return clock_gettime ();
5166 return 0;
5168 _ACEOF
5169 for ac_lib in '' rt; do
5170 if test -z "$ac_lib"; then
5171 ac_res="none required"
5172 else
5173 ac_res=-l$ac_lib
5174 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5176 if test x$gcc_no_link = xyes; then
5177 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5179 if ac_fn_cxx_try_link "$LINENO"; then :
5180 ac_cv_search_clock_gettime=$ac_res
5182 rm -f core conftest.err conftest.$ac_objext \
5183 conftest$ac_exeext
5184 if ${ac_cv_search_clock_gettime+:} false; then :
5185 break
5187 done
5188 if ${ac_cv_search_clock_gettime+:} false; then :
5190 else
5191 ac_cv_search_clock_gettime=no
5193 rm conftest.$ac_ext
5194 LIBS=$ac_func_search_save_LIBS
5196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
5197 $as_echo "$ac_cv_search_clock_gettime" >&6; }
5198 ac_res=$ac_cv_search_clock_gettime
5199 if test "$ac_res" != no; then :
5200 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5204 if test x"$ac_cv_search_clock_gettime" = x"none required"; then
5205 ac_has_clock_monotonic=yes
5206 ac_has_clock_realtime=yes
5209 ac_has_nanosleep=yes
5210 ac_has_sched_yield=yes
5212 freebsd*|netbsd*|dragonfly*|rtems*)
5213 ac_has_clock_monotonic=yes
5214 ac_has_clock_realtime=yes
5215 ac_has_nanosleep=yes
5216 ac_has_sched_yield=yes
5218 openbsd*)
5219 ac_has_clock_monotonic=yes
5220 ac_has_clock_realtime=yes
5221 ac_has_nanosleep=yes
5223 solaris*)
5224 ac_has_clock_monotonic=yes
5225 ac_has_clock_realtime=yes
5226 ac_has_nanosleep=yes
5227 ac_has_sched_yield=yes
5229 uclinux*)
5230 ac_has_nanosleep=yes
5231 ac_has_sched_yield=yes
5232 esac
5234 elif test x"$enable_libstdcxx_time" != x"no"; then
5236 if test x"$enable_libstdcxx_time" = x"rt"; then
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
5238 $as_echo_n "checking for library containing clock_gettime... " >&6; }
5239 if ${ac_cv_search_clock_gettime+:} false; then :
5240 $as_echo_n "(cached) " >&6
5241 else
5242 ac_func_search_save_LIBS=$LIBS
5243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5244 /* end confdefs.h. */
5246 /* Override any GCC internal prototype to avoid an error.
5247 Use char because int might match the return type of a GCC
5248 builtin and then its argument prototype would still apply. */
5249 #ifdef __cplusplus
5250 extern "C"
5251 #endif
5252 char clock_gettime ();
5254 main ()
5256 return clock_gettime ();
5258 return 0;
5260 _ACEOF
5261 for ac_lib in '' rt; do
5262 if test -z "$ac_lib"; then
5263 ac_res="none required"
5264 else
5265 ac_res=-l$ac_lib
5266 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5268 if test x$gcc_no_link = xyes; then
5269 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5271 if ac_fn_cxx_try_link "$LINENO"; then :
5272 ac_cv_search_clock_gettime=$ac_res
5274 rm -f core conftest.err conftest.$ac_objext \
5275 conftest$ac_exeext
5276 if ${ac_cv_search_clock_gettime+:} false; then :
5277 break
5279 done
5280 if ${ac_cv_search_clock_gettime+:} false; then :
5282 else
5283 ac_cv_search_clock_gettime=no
5285 rm conftest.$ac_ext
5286 LIBS=$ac_func_search_save_LIBS
5288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
5289 $as_echo "$ac_cv_search_clock_gettime" >&6; }
5290 ac_res=$ac_cv_search_clock_gettime
5291 if test "$ac_res" != no; then :
5292 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing nanosleep" >&5
5297 $as_echo_n "checking for library containing nanosleep... " >&6; }
5298 if ${ac_cv_search_nanosleep+:} false; then :
5299 $as_echo_n "(cached) " >&6
5300 else
5301 ac_func_search_save_LIBS=$LIBS
5302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5303 /* end confdefs.h. */
5305 /* Override any GCC internal prototype to avoid an error.
5306 Use char because int might match the return type of a GCC
5307 builtin and then its argument prototype would still apply. */
5308 #ifdef __cplusplus
5309 extern "C"
5310 #endif
5311 char nanosleep ();
5313 main ()
5315 return nanosleep ();
5317 return 0;
5319 _ACEOF
5320 for ac_lib in '' rt; do
5321 if test -z "$ac_lib"; then
5322 ac_res="none required"
5323 else
5324 ac_res=-l$ac_lib
5325 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5327 if test x$gcc_no_link = xyes; then
5328 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5330 if ac_fn_cxx_try_link "$LINENO"; then :
5331 ac_cv_search_nanosleep=$ac_res
5333 rm -f core conftest.err conftest.$ac_objext \
5334 conftest$ac_exeext
5335 if ${ac_cv_search_nanosleep+:} false; then :
5336 break
5338 done
5339 if ${ac_cv_search_nanosleep+:} false; then :
5341 else
5342 ac_cv_search_nanosleep=no
5344 rm conftest.$ac_ext
5345 LIBS=$ac_func_search_save_LIBS
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_nanosleep" >&5
5348 $as_echo "$ac_cv_search_nanosleep" >&6; }
5349 ac_res=$ac_cv_search_nanosleep
5350 if test "$ac_res" != no; then :
5351 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5355 else
5356 ac_fn_cxx_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
5357 if test "x$ac_cv_func_clock_gettime" = xyes; then :
5361 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
5362 if test "x$ac_cv_func_nanosleep" = xyes; then :
5368 case "$ac_cv_search_clock_gettime" in
5369 -l*) GLIBCXX_LIBS=$ac_cv_search_clock_gettime
5371 esac
5372 case "$ac_cv_search_nanosleep" in
5373 -l*) GLIBCXX_LIBS="$GLIBCXX_LIBS $ac_cv_search_nanosleep"
5375 esac
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sched_yield" >&5
5378 $as_echo_n "checking for library containing sched_yield... " >&6; }
5379 if ${ac_cv_search_sched_yield+:} false; then :
5380 $as_echo_n "(cached) " >&6
5381 else
5382 ac_func_search_save_LIBS=$LIBS
5383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5384 /* end confdefs.h. */
5386 /* Override any GCC internal prototype to avoid an error.
5387 Use char because int might match the return type of a GCC
5388 builtin and then its argument prototype would still apply. */
5389 #ifdef __cplusplus
5390 extern "C"
5391 #endif
5392 char sched_yield ();
5394 main ()
5396 return sched_yield ();
5398 return 0;
5400 _ACEOF
5401 for ac_lib in '' rt; do
5402 if test -z "$ac_lib"; then
5403 ac_res="none required"
5404 else
5405 ac_res=-l$ac_lib
5406 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
5408 if test x$gcc_no_link = xyes; then
5409 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5411 if ac_fn_cxx_try_link "$LINENO"; then :
5412 ac_cv_search_sched_yield=$ac_res
5414 rm -f core conftest.err conftest.$ac_objext \
5415 conftest$ac_exeext
5416 if ${ac_cv_search_sched_yield+:} false; then :
5417 break
5419 done
5420 if ${ac_cv_search_sched_yield+:} false; then :
5422 else
5423 ac_cv_search_sched_yield=no
5425 rm conftest.$ac_ext
5426 LIBS=$ac_func_search_save_LIBS
5428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sched_yield" >&5
5429 $as_echo "$ac_cv_search_sched_yield" >&6; }
5430 ac_res=$ac_cv_search_sched_yield
5431 if test "$ac_res" != no; then :
5432 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
5437 case "$ac_cv_search_sched_yield" in
5438 -lrt*)
5439 if test x"$enable_libstdcxx_time" = x"rt"; then
5440 GLIBCXX_LIBS="$GLIBCXX_LIBS $ac_cv_search_sched_yield"
5441 ac_has_sched_yield=yes
5445 ac_has_sched_yield=yes
5447 esac
5449 for ac_header in unistd.h
5450 do :
5451 ac_fn_cxx_check_header_mongrel "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
5452 if test "x$ac_cv_header_unistd_h" = xyes; then :
5453 cat >>confdefs.h <<_ACEOF
5454 #define HAVE_UNISTD_H 1
5455 _ACEOF
5456 ac_has_unistd_h=yes
5457 else
5458 ac_has_unistd_h=no
5461 done
5464 if test x"$ac_has_unistd_h" = x"yes"; then
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for monotonic clock" >&5
5466 $as_echo_n "checking for monotonic clock... " >&6; }
5467 if test x$gcc_no_link = xyes; then
5468 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5472 #include <unistd.h>
5473 #include <time.h>
5476 main ()
5478 #if _POSIX_TIMERS > 0 && defined(_POSIX_MONOTONIC_CLOCK)
5479 timespec tp;
5480 #endif
5481 clock_gettime(CLOCK_MONOTONIC, &tp);
5484 return 0;
5486 _ACEOF
5487 if ac_fn_cxx_try_link "$LINENO"; then :
5488 ac_has_clock_monotonic=yes
5489 else
5490 ac_has_clock_monotonic=no
5492 rm -f core conftest.err conftest.$ac_objext \
5493 conftest$ac_exeext conftest.$ac_ext
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_clock_monotonic" >&5
5496 $as_echo "$ac_has_clock_monotonic" >&6; }
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for realtime clock" >&5
5499 $as_echo_n "checking for realtime clock... " >&6; }
5500 if test x$gcc_no_link = xyes; then
5501 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5504 /* end confdefs.h. */
5505 #include <unistd.h>
5506 #include <time.h>
5509 main ()
5511 #if _POSIX_TIMERS > 0
5512 timespec tp;
5513 #endif
5514 clock_gettime(CLOCK_REALTIME, &tp);
5517 return 0;
5519 _ACEOF
5520 if ac_fn_cxx_try_link "$LINENO"; then :
5521 ac_has_clock_realtime=yes
5522 else
5523 ac_has_clock_realtime=no
5525 rm -f core conftest.err conftest.$ac_objext \
5526 conftest$ac_exeext conftest.$ac_ext
5528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_clock_realtime" >&5
5529 $as_echo "$ac_has_clock_realtime" >&6; }
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep" >&5
5532 $as_echo_n "checking for nanosleep... " >&6; }
5533 if test x$gcc_no_link = xyes; then
5534 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5537 /* end confdefs.h. */
5538 #include <unistd.h>
5539 #include <time.h>
5542 main ()
5544 #if _POSIX_TIMERS > 0
5545 timespec tp;
5546 #endif
5547 nanosleep(&tp, 0);
5550 return 0;
5552 _ACEOF
5553 if ac_fn_cxx_try_link "$LINENO"; then :
5554 ac_has_nanosleep=yes
5555 else
5556 ac_has_nanosleep=no
5558 rm -f core conftest.err conftest.$ac_objext \
5559 conftest$ac_exeext conftest.$ac_ext
5561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_nanosleep" >&5
5562 $as_echo "$ac_has_nanosleep" >&6; }
5566 if test x"$ac_has_clock_monotonic" != x"yes"; then
5567 case ${target_os} in
5568 linux* | uclinux*)
5569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime syscall" >&5
5570 $as_echo_n "checking for clock_gettime syscall... " >&6; }
5571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5572 /* end confdefs.h. */
5573 #include <unistd.h>
5574 #include <time.h>
5575 #include <sys/syscall.h>
5578 main ()
5580 #if _POSIX_TIMERS > 0 && defined(_POSIX_MONOTONIC_CLOCK)
5581 timespec tp;
5582 #endif
5583 syscall(SYS_clock_gettime, CLOCK_MONOTONIC, &tp);
5584 syscall(SYS_clock_gettime, CLOCK_REALTIME, &tp);
5587 return 0;
5589 _ACEOF
5590 if ac_fn_cxx_try_compile "$LINENO"; then :
5591 ac_has_clock_gettime_syscall=yes
5592 else
5593 ac_has_clock_gettime_syscall=no
5595 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_clock_gettime_syscall" >&5
5597 $as_echo "$ac_has_clock_gettime_syscall" >&6; }
5598 if test x"$ac_has_clock_gettime_syscall" = x"yes"; then
5600 $as_echo "#define _GLIBCXX_USE_CLOCK_GETTIME_SYSCALL 1" >>confdefs.h
5602 ac_has_clock_monotonic=yes
5603 ac_has_clock_realtime=yes
5604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec that matches syscall" >&5
5605 $as_echo_n "checking for struct timespec that matches syscall... " >&6; }
5606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5607 /* end confdefs.h. */
5608 #include <time.h>
5609 #include <sys/syscall.h>
5612 main ()
5614 #ifdef SYS_clock_gettime64
5615 #if SYS_clock_gettime64 != SYS_clock_gettime
5616 // We need to use SYS_clock_gettime and libc appears to
5617 // also know about the SYS_clock_gettime64 syscall.
5618 // Check that userspace doesn't use time64 version of timespec.
5619 static_assert(sizeof(timespec::tv_sec) == sizeof(long),
5620 "struct timespec must be compatible with SYS_clock_gettime");
5621 #endif
5622 #endif
5625 return 0;
5627 _ACEOF
5628 if ac_fn_cxx_try_compile "$LINENO"; then :
5629 ac_timespec_matches_syscall=yes
5630 else
5631 ac_timespec_matches_syscall=no
5633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_timespec_matches_syscall" >&5
5635 $as_echo "$ac_timespec_matches_syscall" >&6; }
5636 if test x"$ac_timespec_matches_syscall" = no; then
5637 as_fn_error $? "struct timespec is not compatible with SYS_clock_gettime, please report a bug to http://gcc.gnu.org/bugzilla" "$LINENO" 5
5639 fi;;
5640 esac
5643 if test x"$ac_has_clock_monotonic" = x"yes"; then
5645 $as_echo "#define _GLIBCXX_USE_CLOCK_MONOTONIC 1" >>confdefs.h
5649 if test x"$ac_has_clock_realtime" = x"yes"; then
5651 $as_echo "#define _GLIBCXX_USE_CLOCK_REALTIME 1" >>confdefs.h
5655 if test x"$ac_has_sched_yield" = x"yes"; then
5657 $as_echo "#define _GLIBCXX_USE_SCHED_YIELD 1" >>confdefs.h
5661 if test x"$ac_has_nanosleep" = x"yes"; then
5663 $as_echo "#define _GLIBCXX_USE_NANOSLEEP 1" >>confdefs.h
5665 elif test x"$ac_has_win32_sleep" = x"yes"; then
5667 $as_echo "#define _GLIBCXX_USE_WIN32_SLEEP 1" >>confdefs.h
5669 else
5670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sleep" >&5
5671 $as_echo_n "checking for sleep... " >&6; }
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5674 #include <unistd.h>
5676 main ()
5678 sleep(1)
5680 return 0;
5682 _ACEOF
5683 if ac_fn_cxx_try_compile "$LINENO"; then :
5684 ac_has_sleep=yes
5685 else
5686 ac_has_sleep=no
5688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5689 if test x"$ac_has_sleep" = x"yes"; then
5691 $as_echo "#define HAVE_SLEEP 1" >>confdefs.h
5694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_sleep" >&5
5695 $as_echo "$ac_has_sleep" >&6; }
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for usleep" >&5
5697 $as_echo_n "checking for usleep... " >&6; }
5698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5699 /* end confdefs.h. */
5700 #include <unistd.h>
5702 main ()
5704 sleep(1);
5705 usleep(100);
5707 return 0;
5709 _ACEOF
5710 if ac_fn_cxx_try_compile "$LINENO"; then :
5711 ac_has_usleep=yes
5712 else
5713 ac_has_usleep=no
5715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5716 if test x"$ac_has_usleep" = x"yes"; then
5718 $as_echo "#define HAVE_USLEEP 1" >>confdefs.h
5721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_has_usleep" >&5
5722 $as_echo "$ac_has_usleep" >&6; }
5725 if test x"$ac_has_nanosleep$ac_has_win32_sleep$ac_has_sleep" = x"nonono"; then
5727 $as_echo "#define _GLIBCXX_NO_SLEEP 1" >>confdefs.h
5733 CXXFLAGS="$ac_save_CXXFLAGS"
5734 LIBS="$ac_save_LIBS"
5735 ac_ext=c
5736 ac_cpp='$CPP $CPPFLAGS'
5737 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5738 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5739 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5743 am__api_version='1.15'
5745 # Find a good install program. We prefer a C program (faster),
5746 # so one script is as good as another. But avoid the broken or
5747 # incompatible versions:
5748 # SysV /etc/install, /usr/sbin/install
5749 # SunOS /usr/etc/install
5750 # IRIX /sbin/install
5751 # AIX /bin/install
5752 # AmigaOS /C/install, which installs bootblocks on floppy discs
5753 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5754 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5755 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5756 # OS/2's system install, which has a completely different semantic
5757 # ./install, which can be erroneously created by make from ./install.sh.
5758 # Reject install programs that cannot install multiple files.
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
5760 $as_echo_n "checking for a BSD-compatible install... " >&6; }
5761 if test -z "$INSTALL"; then
5762 if ${ac_cv_path_install+:} false; then :
5763 $as_echo_n "(cached) " >&6
5764 else
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
5770 # Account for people who put trailing slashes in PATH elements.
5771 case $as_dir/ in #((
5772 ./ | .// | /[cC]/* | \
5773 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5774 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
5775 /usr/ucb/* ) ;;
5777 # OSF1 and SCO ODT 3.0 have their own names for install.
5778 # Don't use installbsd from OSF since it installs stuff as root
5779 # by default.
5780 for ac_prog in ginstall scoinst install; do
5781 for ac_exec_ext in '' $ac_executable_extensions; do
5782 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
5783 if test $ac_prog = install &&
5784 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5785 # AIX install. It has an incompatible calling convention.
5787 elif test $ac_prog = install &&
5788 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5789 # program-specific install script used by HP pwplus--don't use.
5791 else
5792 rm -rf conftest.one conftest.two conftest.dir
5793 echo one > conftest.one
5794 echo two > conftest.two
5795 mkdir conftest.dir
5796 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
5797 test -s conftest.one && test -s conftest.two &&
5798 test -s conftest.dir/conftest.one &&
5799 test -s conftest.dir/conftest.two
5800 then
5801 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5802 break 3
5806 done
5807 done
5809 esac
5811 done
5812 IFS=$as_save_IFS
5814 rm -rf conftest.one conftest.two conftest.dir
5817 if test "${ac_cv_path_install+set}" = set; then
5818 INSTALL=$ac_cv_path_install
5819 else
5820 # As a last resort, use the slow shell script. Don't cache a
5821 # value for INSTALL within a source directory, because that will
5822 # break other packages using the cache if that directory is
5823 # removed, or if the value is a relative name.
5824 INSTALL=$ac_install_sh
5827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
5828 $as_echo "$INSTALL" >&6; }
5830 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5831 # It thinks the first close brace ends the variable substitution.
5832 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5834 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5836 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
5839 $as_echo_n "checking whether build environment is sane... " >&6; }
5840 # Reject unsafe characters in $srcdir or the absolute working directory
5841 # name. Accept space and tab only in the latter.
5842 am_lf='
5844 case `pwd` in
5845 *[\\\"\#\$\&\'\`$am_lf]*)
5846 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
5847 esac
5848 case $srcdir in
5849 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
5850 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
5851 esac
5853 # Do 'set' in a subshell so we don't clobber the current shell's
5854 # arguments. Must try -L first in case configure is actually a
5855 # symlink; some systems play weird games with the mod time of symlinks
5856 # (eg FreeBSD returns the mod time of the symlink's containing
5857 # directory).
5858 if (
5859 am_has_slept=no
5860 for am_try in 1 2; do
5861 echo "timestamp, slept: $am_has_slept" > conftest.file
5862 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
5863 if test "$*" = "X"; then
5864 # -L didn't work.
5865 set X `ls -t "$srcdir/configure" conftest.file`
5867 if test "$*" != "X $srcdir/configure conftest.file" \
5868 && test "$*" != "X conftest.file $srcdir/configure"; then
5870 # If neither matched, then we have a broken ls. This can happen
5871 # if, for instance, CONFIG_SHELL is bash and it inherits a
5872 # broken ls alias from the environment. This has actually
5873 # happened. Such a system could not be considered "sane".
5874 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
5875 alias in your environment" "$LINENO" 5
5877 if test "$2" = conftest.file || test $am_try -eq 2; then
5878 break
5880 # Just in case.
5881 sleep 1
5882 am_has_slept=yes
5883 done
5884 test "$2" = conftest.file
5886 then
5887 # Ok.
5889 else
5890 as_fn_error $? "newly created file is older than distributed files!
5891 Check your system clock" "$LINENO" 5
5893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5894 $as_echo "yes" >&6; }
5895 # If we didn't sleep, we still need to ensure time stamps of config.status and
5896 # generated files are strictly newer.
5897 am_sleep_pid=
5898 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
5899 ( sleep 1 ) &
5900 am_sleep_pid=$!
5903 rm -f conftest.file
5905 test "$program_prefix" != NONE &&
5906 program_transform_name="s&^&$program_prefix&;$program_transform_name"
5907 # Use a double $ so make ignores it.
5908 test "$program_suffix" != NONE &&
5909 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
5910 # Double any \ or $.
5911 # By default was `s,x,x', remove it if useless.
5912 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
5913 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
5915 if test x"${MISSING+set}" != xset; then
5916 case $am_aux_dir in
5917 *\ * | *\ *)
5918 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
5920 MISSING="\${SHELL} $am_aux_dir/missing" ;;
5921 esac
5923 # Use eval to expand $SHELL
5924 if eval "$MISSING --is-lightweight"; then
5925 am_missing_run="$MISSING "
5926 else
5927 am_missing_run=
5928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
5929 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
5932 if test x"${install_sh+set}" != xset; then
5933 case $am_aux_dir in
5934 *\ * | *\ *)
5935 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
5937 install_sh="\${SHELL} $am_aux_dir/install-sh"
5938 esac
5941 # Installed binaries are usually stripped using 'strip' when the user
5942 # run "make install-strip". However 'strip' might not be the right
5943 # tool to use in cross-compilation environments, therefore Automake
5944 # will honor the 'STRIP' environment variable to overrule this program.
5945 if test "$cross_compiling" != no; then
5946 if test -n "$ac_tool_prefix"; then
5947 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
5948 set dummy ${ac_tool_prefix}strip; ac_word=$2
5949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5950 $as_echo_n "checking for $ac_word... " >&6; }
5951 if ${ac_cv_prog_STRIP+:} false; then :
5952 $as_echo_n "(cached) " >&6
5953 else
5954 if test -n "$STRIP"; then
5955 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
5956 else
5957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5958 for as_dir in $PATH
5960 IFS=$as_save_IFS
5961 test -z "$as_dir" && as_dir=.
5962 for ac_exec_ext in '' $ac_executable_extensions; do
5963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5964 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
5965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5966 break 2
5968 done
5969 done
5970 IFS=$as_save_IFS
5974 STRIP=$ac_cv_prog_STRIP
5975 if test -n "$STRIP"; then
5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
5977 $as_echo "$STRIP" >&6; }
5978 else
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5980 $as_echo "no" >&6; }
5985 if test -z "$ac_cv_prog_STRIP"; then
5986 ac_ct_STRIP=$STRIP
5987 # Extract the first word of "strip", so it can be a program name with args.
5988 set dummy strip; ac_word=$2
5989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5990 $as_echo_n "checking for $ac_word... " >&6; }
5991 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
5992 $as_echo_n "(cached) " >&6
5993 else
5994 if test -n "$ac_ct_STRIP"; then
5995 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
5996 else
5997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5998 for as_dir in $PATH
6000 IFS=$as_save_IFS
6001 test -z "$as_dir" && as_dir=.
6002 for ac_exec_ext in '' $ac_executable_extensions; do
6003 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6004 ac_cv_prog_ac_ct_STRIP="strip"
6005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6006 break 2
6008 done
6009 done
6010 IFS=$as_save_IFS
6014 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6015 if test -n "$ac_ct_STRIP"; then
6016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6017 $as_echo "$ac_ct_STRIP" >&6; }
6018 else
6019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6020 $as_echo "no" >&6; }
6023 if test "x$ac_ct_STRIP" = x; then
6024 STRIP=":"
6025 else
6026 case $cross_compiling:$ac_tool_warned in
6027 yes:)
6028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6029 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6030 ac_tool_warned=yes ;;
6031 esac
6032 STRIP=$ac_ct_STRIP
6034 else
6035 STRIP="$ac_cv_prog_STRIP"
6039 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
6041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
6042 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
6043 if test -z "$MKDIR_P"; then
6044 if ${ac_cv_path_mkdir+:} false; then :
6045 $as_echo_n "(cached) " >&6
6046 else
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
6050 IFS=$as_save_IFS
6051 test -z "$as_dir" && as_dir=.
6052 for ac_prog in mkdir gmkdir; do
6053 for ac_exec_ext in '' $ac_executable_extensions; do
6054 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
6055 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
6056 'mkdir (GNU coreutils) '* | \
6057 'mkdir (coreutils) '* | \
6058 'mkdir (fileutils) '4.1*)
6059 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
6060 break 3;;
6061 esac
6062 done
6063 done
6064 done
6065 IFS=$as_save_IFS
6069 test -d ./--version && rmdir ./--version
6070 if test "${ac_cv_path_mkdir+set}" = set; then
6071 MKDIR_P="$ac_cv_path_mkdir -p"
6072 else
6073 # As a last resort, use the slow shell script. Don't cache a
6074 # value for MKDIR_P within a source directory, because that will
6075 # break other packages using the cache if that directory is
6076 # removed, or if the value is a relative name.
6077 MKDIR_P="$ac_install_sh -d"
6080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
6081 $as_echo "$MKDIR_P" >&6; }
6083 for ac_prog in gawk mawk nawk awk
6085 # Extract the first word of "$ac_prog", so it can be a program name with args.
6086 set dummy $ac_prog; ac_word=$2
6087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6088 $as_echo_n "checking for $ac_word... " >&6; }
6089 if ${ac_cv_prog_AWK+:} false; then :
6090 $as_echo_n "(cached) " >&6
6091 else
6092 if test -n "$AWK"; then
6093 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6094 else
6095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6096 for as_dir in $PATH
6098 IFS=$as_save_IFS
6099 test -z "$as_dir" && as_dir=.
6100 for ac_exec_ext in '' $ac_executable_extensions; do
6101 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6102 ac_cv_prog_AWK="$ac_prog"
6103 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6104 break 2
6106 done
6107 done
6108 IFS=$as_save_IFS
6112 AWK=$ac_cv_prog_AWK
6113 if test -n "$AWK"; then
6114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6115 $as_echo "$AWK" >&6; }
6116 else
6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6118 $as_echo "no" >&6; }
6122 test -n "$AWK" && break
6123 done
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6126 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6127 set x ${MAKE-make}
6128 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6129 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6130 $as_echo_n "(cached) " >&6
6131 else
6132 cat >conftest.make <<\_ACEOF
6133 SHELL = /bin/sh
6134 all:
6135 @echo '@@@%%%=$(MAKE)=@@@%%%'
6136 _ACEOF
6137 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6138 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6139 *@@@%%%=?*=@@@%%%*)
6140 eval ac_cv_prog_make_${ac_make}_set=yes;;
6142 eval ac_cv_prog_make_${ac_make}_set=no;;
6143 esac
6144 rm -f conftest.make
6146 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6148 $as_echo "yes" >&6; }
6149 SET_MAKE=
6150 else
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6152 $as_echo "no" >&6; }
6153 SET_MAKE="MAKE=${MAKE-make}"
6156 rm -rf .tst 2>/dev/null
6157 mkdir .tst 2>/dev/null
6158 if test -d .tst; then
6159 am__leading_dot=.
6160 else
6161 am__leading_dot=_
6163 rmdir .tst 2>/dev/null
6165 DEPDIR="${am__leading_dot}deps"
6167 ac_config_commands="$ac_config_commands depfiles"
6170 am_make=${MAKE-make}
6171 cat > confinc << 'END'
6172 am__doit:
6173 @echo this is the am__doit target
6174 .PHONY: am__doit
6176 # If we don't find an include directive, just comment out the code.
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
6178 $as_echo_n "checking for style of include used by $am_make... " >&6; }
6179 am__include="#"
6180 am__quote=
6181 _am_result=none
6182 # First try GNU make style include.
6183 echo "include confinc" > confmf
6184 # Ignore all kinds of additional output from 'make'.
6185 case `$am_make -s -f confmf 2> /dev/null` in #(
6186 *the\ am__doit\ target*)
6187 am__include=include
6188 am__quote=
6189 _am_result=GNU
6191 esac
6192 # Now try BSD make style include.
6193 if test "$am__include" = "#"; then
6194 echo '.include "confinc"' > confmf
6195 case `$am_make -s -f confmf 2> /dev/null` in #(
6196 *the\ am__doit\ target*)
6197 am__include=.include
6198 am__quote="\""
6199 _am_result=BSD
6201 esac
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
6206 $as_echo "$_am_result" >&6; }
6207 rm -f confinc confmf
6209 # Check whether --enable-dependency-tracking was given.
6210 if test "${enable_dependency_tracking+set}" = set; then :
6211 enableval=$enable_dependency_tracking;
6214 if test "x$enable_dependency_tracking" != xno; then
6215 am_depcomp="$ac_aux_dir/depcomp"
6216 AMDEPBACKSLASH='\'
6217 am__nodep='_no'
6219 if test "x$enable_dependency_tracking" != xno; then
6220 AMDEP_TRUE=
6221 AMDEP_FALSE='#'
6222 else
6223 AMDEP_TRUE='#'
6224 AMDEP_FALSE=
6228 # Check whether --enable-silent-rules was given.
6229 if test "${enable_silent_rules+set}" = set; then :
6230 enableval=$enable_silent_rules;
6233 case $enable_silent_rules in # (((
6234 yes) AM_DEFAULT_VERBOSITY=0;;
6235 no) AM_DEFAULT_VERBOSITY=1;;
6236 *) AM_DEFAULT_VERBOSITY=1;;
6237 esac
6238 am_make=${MAKE-make}
6239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
6240 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
6241 if ${am_cv_make_support_nested_variables+:} false; then :
6242 $as_echo_n "(cached) " >&6
6243 else
6244 if $as_echo 'TRUE=$(BAR$(V))
6245 BAR0=false
6246 BAR1=true
6248 am__doit:
6249 @$(TRUE)
6250 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
6251 am_cv_make_support_nested_variables=yes
6252 else
6253 am_cv_make_support_nested_variables=no
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
6257 $as_echo "$am_cv_make_support_nested_variables" >&6; }
6258 if test $am_cv_make_support_nested_variables = yes; then
6259 AM_V='$(V)'
6260 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
6261 else
6262 AM_V=$AM_DEFAULT_VERBOSITY
6263 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
6265 AM_BACKSLASH='\'
6267 if test "`cd $srcdir && pwd`" != "`pwd`"; then
6268 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
6269 # is not polluted with repeated "-I."
6270 am__isrc=' -I$(srcdir)'
6271 # test to see if srcdir already configured
6272 if test -f $srcdir/config.status; then
6273 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
6277 # test whether we have cygpath
6278 if test -z "$CYGPATH_W"; then
6279 if (cygpath --version) >/dev/null 2>/dev/null; then
6280 CYGPATH_W='cygpath -w'
6281 else
6282 CYGPATH_W=echo
6287 # Define the identity of the package.
6288 PACKAGE='libgm2'
6289 VERSION='version-unused'
6292 # Some tools Automake needs.
6294 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
6297 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
6300 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
6303 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
6306 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
6308 # For better backward compatibility. To be removed once Automake 1.9.x
6309 # dies out for good. For more background, see:
6310 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
6311 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
6312 mkdir_p='$(MKDIR_P)'
6314 # We need awk for the "check" target (and possibly the TAP driver). The
6315 # system "awk" is bad on some platforms.
6316 # Always define AMTAR for backward compatibility. Yes, it's still used
6317 # in the wild :-( We should find a proper way to deprecate it ...
6318 AMTAR='$${TAR-tar}'
6321 # We'll loop over all known methods to create a tar archive until one works.
6322 _am_tools='gnutar pax cpio none'
6324 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
6330 depcc="$CC" am_compiler_list=
6332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6333 $as_echo_n "checking dependency style of $depcc... " >&6; }
6334 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
6335 $as_echo_n "(cached) " >&6
6336 else
6337 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6338 # We make a subdir and do the tests there. Otherwise we can end up
6339 # making bogus files that we don't know about and never remove. For
6340 # instance it was reported that on HP-UX the gcc test will end up
6341 # making a dummy file named 'D' -- because '-MD' means "put the output
6342 # in D".
6343 rm -rf conftest.dir
6344 mkdir conftest.dir
6345 # Copy depcomp to subdir because otherwise we won't find it if we're
6346 # using a relative directory.
6347 cp "$am_depcomp" conftest.dir
6348 cd conftest.dir
6349 # We will build objects and dependencies in a subdirectory because
6350 # it helps to detect inapplicable dependency modes. For instance
6351 # both Tru64's cc and ICC support -MD to output dependencies as a
6352 # side effect of compilation, but ICC will put the dependencies in
6353 # the current directory while Tru64 will put them in the object
6354 # directory.
6355 mkdir sub
6357 am_cv_CC_dependencies_compiler_type=none
6358 if test "$am_compiler_list" = ""; then
6359 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6361 am__universal=false
6362 case " $depcc " in #(
6363 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6364 esac
6366 for depmode in $am_compiler_list; do
6367 # Setup a source with many dependencies, because some compilers
6368 # like to wrap large dependency lists on column 80 (with \), and
6369 # we should not choose a depcomp mode which is confused by this.
6371 # We need to recreate these files for each test, as the compiler may
6372 # overwrite some of them when testing with obscure command lines.
6373 # This happens at least with the AIX C compiler.
6374 : > sub/conftest.c
6375 for i in 1 2 3 4 5 6; do
6376 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6377 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6378 # Solaris 10 /bin/sh.
6379 echo '/* dummy */' > sub/conftst$i.h
6380 done
6381 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6383 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6384 # mode. It turns out that the SunPro C++ compiler does not properly
6385 # handle '-M -o', and we need to detect this. Also, some Intel
6386 # versions had trouble with output in subdirs.
6387 am__obj=sub/conftest.${OBJEXT-o}
6388 am__minus_obj="-o $am__obj"
6389 case $depmode in
6390 gcc)
6391 # This depmode causes a compiler race in universal mode.
6392 test "$am__universal" = false || continue
6394 nosideeffect)
6395 # After this tag, mechanisms are not by side-effect, so they'll
6396 # only be used when explicitly requested.
6397 if test "x$enable_dependency_tracking" = xyes; then
6398 continue
6399 else
6400 break
6403 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6404 # This compiler won't grok '-c -o', but also, the minuso test has
6405 # not run yet. These depmodes are late enough in the game, and
6406 # so weak that their functioning should not be impacted.
6407 am__obj=conftest.${OBJEXT-o}
6408 am__minus_obj=
6410 none) break ;;
6411 esac
6412 if depmode=$depmode \
6413 source=sub/conftest.c object=$am__obj \
6414 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6415 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6416 >/dev/null 2>conftest.err &&
6417 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6418 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6419 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6420 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6421 # icc doesn't choke on unknown options, it will just issue warnings
6422 # or remarks (even with -Werror). So we grep stderr for any message
6423 # that says an option was ignored or not supported.
6424 # When given -MP, icc 7.0 and 7.1 complain thusly:
6425 # icc: Command line warning: ignoring option '-M'; no argument required
6426 # The diagnosis changed in icc 8.0:
6427 # icc: Command line remark: option '-MP' not supported
6428 if (grep 'ignoring option' conftest.err ||
6429 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6430 am_cv_CC_dependencies_compiler_type=$depmode
6431 break
6434 done
6436 cd ..
6437 rm -rf conftest.dir
6438 else
6439 am_cv_CC_dependencies_compiler_type=none
6443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
6444 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
6445 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
6448 test "x$enable_dependency_tracking" != xno \
6449 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
6450 am__fastdepCC_TRUE=
6451 am__fastdepCC_FALSE='#'
6452 else
6453 am__fastdepCC_TRUE='#'
6454 am__fastdepCC_FALSE=
6458 depcc="$CXX" am_compiler_list=
6460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6461 $as_echo_n "checking dependency style of $depcc... " >&6; }
6462 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6463 $as_echo_n "(cached) " >&6
6464 else
6465 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6466 # We make a subdir and do the tests there. Otherwise we can end up
6467 # making bogus files that we don't know about and never remove. For
6468 # instance it was reported that on HP-UX the gcc test will end up
6469 # making a dummy file named 'D' -- because '-MD' means "put the output
6470 # in D".
6471 rm -rf conftest.dir
6472 mkdir conftest.dir
6473 # Copy depcomp to subdir because otherwise we won't find it if we're
6474 # using a relative directory.
6475 cp "$am_depcomp" conftest.dir
6476 cd conftest.dir
6477 # We will build objects and dependencies in a subdirectory because
6478 # it helps to detect inapplicable dependency modes. For instance
6479 # both Tru64's cc and ICC support -MD to output dependencies as a
6480 # side effect of compilation, but ICC will put the dependencies in
6481 # the current directory while Tru64 will put them in the object
6482 # directory.
6483 mkdir sub
6485 am_cv_CXX_dependencies_compiler_type=none
6486 if test "$am_compiler_list" = ""; then
6487 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6489 am__universal=false
6490 case " $depcc " in #(
6491 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6492 esac
6494 for depmode in $am_compiler_list; do
6495 # Setup a source with many dependencies, because some compilers
6496 # like to wrap large dependency lists on column 80 (with \), and
6497 # we should not choose a depcomp mode which is confused by this.
6499 # We need to recreate these files for each test, as the compiler may
6500 # overwrite some of them when testing with obscure command lines.
6501 # This happens at least with the AIX C compiler.
6502 : > sub/conftest.c
6503 for i in 1 2 3 4 5 6; do
6504 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6505 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6506 # Solaris 10 /bin/sh.
6507 echo '/* dummy */' > sub/conftst$i.h
6508 done
6509 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6511 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6512 # mode. It turns out that the SunPro C++ compiler does not properly
6513 # handle '-M -o', and we need to detect this. Also, some Intel
6514 # versions had trouble with output in subdirs.
6515 am__obj=sub/conftest.${OBJEXT-o}
6516 am__minus_obj="-o $am__obj"
6517 case $depmode in
6518 gcc)
6519 # This depmode causes a compiler race in universal mode.
6520 test "$am__universal" = false || continue
6522 nosideeffect)
6523 # After this tag, mechanisms are not by side-effect, so they'll
6524 # only be used when explicitly requested.
6525 if test "x$enable_dependency_tracking" = xyes; then
6526 continue
6527 else
6528 break
6531 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6532 # This compiler won't grok '-c -o', but also, the minuso test has
6533 # not run yet. These depmodes are late enough in the game, and
6534 # so weak that their functioning should not be impacted.
6535 am__obj=conftest.${OBJEXT-o}
6536 am__minus_obj=
6538 none) break ;;
6539 esac
6540 if depmode=$depmode \
6541 source=sub/conftest.c object=$am__obj \
6542 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6543 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6544 >/dev/null 2>conftest.err &&
6545 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6546 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6547 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6548 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6549 # icc doesn't choke on unknown options, it will just issue warnings
6550 # or remarks (even with -Werror). So we grep stderr for any message
6551 # that says an option was ignored or not supported.
6552 # When given -MP, icc 7.0 and 7.1 complain thusly:
6553 # icc: Command line warning: ignoring option '-M'; no argument required
6554 # The diagnosis changed in icc 8.0:
6555 # icc: Command line remark: option '-MP' not supported
6556 if (grep 'ignoring option' conftest.err ||
6557 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6558 am_cv_CXX_dependencies_compiler_type=$depmode
6559 break
6562 done
6564 cd ..
6565 rm -rf conftest.dir
6566 else
6567 am_cv_CXX_dependencies_compiler_type=none
6571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6572 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6573 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6576 test "x$enable_dependency_tracking" != xno \
6577 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6578 am__fastdepCXX_TRUE=
6579 am__fastdepCXX_FALSE='#'
6580 else
6581 am__fastdepCXX_TRUE='#'
6582 am__fastdepCXX_FALSE=
6587 # POSIX will say in a future version that running "rm -f" with no argument
6588 # is OK; and we want to be able to make that assumption in our Makefile
6589 # recipes. So use an aggressive probe to check that the usage we want is
6590 # actually supported "in the wild" to an acceptable degree.
6591 # See automake bug#10828.
6592 # To make any issue more visible, cause the running configure to be aborted
6593 # by default if the 'rm' program in use doesn't match our expectations; the
6594 # user can still override this though.
6595 if rm -f && rm -fr && rm -rf; then : OK; else
6596 cat >&2 <<'END'
6597 Oops!
6599 Your 'rm' program seems unable to run without file operands specified
6600 on the command line, even when the '-f' option is present. This is contrary
6601 to the behaviour of most rm programs out there, and not conforming with
6602 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
6604 Please tell bug-automake@gnu.org about your system, including the value
6605 of your $PATH and any error possibly output before this message. This
6606 can help us improve future automake versions.
6609 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
6610 echo 'Configuration will proceed anyway, since you have set the' >&2
6611 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
6612 echo >&2
6613 else
6614 cat >&2 <<'END'
6615 Aborting the configuration process, to ensure you take notice of the issue.
6617 You can download and install GNU coreutils to get an 'rm' implementation
6618 that behaves properly: <http://www.gnu.org/software/coreutils/>.
6620 If you want to complete the configuration process using your problematic
6621 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
6622 to "yes", and re-run configure.
6625 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
6634 # Check whether --with-cross-host was given.
6635 if test "${with_cross_host+set}" = set; then :
6636 withval=$with_cross_host;
6640 # Checks for header files.
6641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
6642 $as_echo_n "checking for ANSI C header files... " >&6; }
6643 if ${ac_cv_header_stdc+:} false; then :
6644 $as_echo_n "(cached) " >&6
6645 else
6646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6647 /* end confdefs.h. */
6648 #include <stdlib.h>
6649 #include <stdarg.h>
6650 #include <string.h>
6651 #include <float.h>
6654 main ()
6658 return 0;
6660 _ACEOF
6661 if ac_fn_c_try_compile "$LINENO"; then :
6662 ac_cv_header_stdc=yes
6663 else
6664 ac_cv_header_stdc=no
6666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6668 if test $ac_cv_header_stdc = yes; then
6669 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6671 /* end confdefs.h. */
6672 #include <string.h>
6674 _ACEOF
6675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6676 $EGREP "memchr" >/dev/null 2>&1; then :
6678 else
6679 ac_cv_header_stdc=no
6681 rm -f conftest*
6685 if test $ac_cv_header_stdc = yes; then
6686 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6688 /* end confdefs.h. */
6689 #include <stdlib.h>
6691 _ACEOF
6692 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6693 $EGREP "free" >/dev/null 2>&1; then :
6695 else
6696 ac_cv_header_stdc=no
6698 rm -f conftest*
6702 if test $ac_cv_header_stdc = yes; then
6703 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6704 if test "$cross_compiling" = yes; then :
6706 else
6707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6708 /* end confdefs.h. */
6709 #include <ctype.h>
6710 #include <stdlib.h>
6711 #if ((' ' & 0x0FF) == 0x020)
6712 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6713 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6714 #else
6715 # define ISLOWER(c) \
6716 (('a' <= (c) && (c) <= 'i') \
6717 || ('j' <= (c) && (c) <= 'r') \
6718 || ('s' <= (c) && (c) <= 'z'))
6719 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6720 #endif
6722 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6724 main ()
6726 int i;
6727 for (i = 0; i < 256; i++)
6728 if (XOR (islower (i), ISLOWER (i))
6729 || toupper (i) != TOUPPER (i))
6730 return 2;
6731 return 0;
6733 _ACEOF
6734 if ac_fn_c_try_run "$LINENO"; then :
6736 else
6737 ac_cv_header_stdc=no
6739 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6740 conftest.$ac_objext conftest.beam conftest.$ac_ext
6745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
6746 $as_echo "$ac_cv_header_stdc" >&6; }
6747 if test $ac_cv_header_stdc = yes; then
6749 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
6754 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
6755 if ${ac_cv_header_sys_wait_h+:} false; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6759 /* end confdefs.h. */
6760 #include <sys/types.h>
6761 #include <sys/wait.h>
6762 #ifndef WEXITSTATUS
6763 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6764 #endif
6765 #ifndef WIFEXITED
6766 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6767 #endif
6770 main ()
6772 int s;
6773 wait (&s);
6774 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6776 return 0;
6778 _ACEOF
6779 if ac_fn_c_try_compile "$LINENO"; then :
6780 ac_cv_header_sys_wait_h=yes
6781 else
6782 ac_cv_header_sys_wait_h=no
6784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
6787 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
6788 if test $ac_cv_header_sys_wait_h = yes; then
6790 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
6794 ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
6795 if test "x$ac_cv_header_math_h" = xyes; then :
6797 $as_echo "#define HAVE_MATH_H 1" >>confdefs.h
6803 for ac_header in getopt.h limits.h stddef.h string.h strings.h \
6804 stdlib.h time.h \
6805 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
6806 sys/resource.h sys/param.h sys/times.h sys/stat.h \
6807 sys/socket.h \
6808 sys/wait.h sys/ioctl.h errno.h sys/errno.h \
6809 pwd.h direct.h dirent.h signal.h malloc.h langinfo.h \
6810 pthread.h stdarg.h stdio.h sys/types.h termios.h \
6811 netinet/in.h netdb.h sys/uio.h sys/stat.h wchar.h
6812 do :
6813 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
6814 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
6815 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
6816 cat >>confdefs.h <<_ACEOF
6817 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
6818 _ACEOF
6822 done
6826 case ${build_alias} in
6827 "") build_noncanonical=${build} ;;
6828 *) build_noncanonical=${build_alias} ;;
6829 esac
6831 case ${host_alias} in
6832 "") host_noncanonical=${build_noncanonical} ;;
6833 *) host_noncanonical=${host_alias} ;;
6834 esac
6838 case ${target_alias} in
6839 "") target_noncanonical=${host_noncanonical} ;;
6840 *) target_noncanonical=${target_alias} ;;
6841 esac
6846 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
6847 # have matching libraries, they should use host libraries: Makefile.tpl
6848 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
6849 # However, they still use the build modules, because the corresponding
6850 # host modules (e.g. bison) are only built for the host when bootstrap
6851 # finishes. So:
6852 # - build_subdir is where we find build modules, and never changes.
6853 # - build_libsubdir is where we find build libraries, and can be overridden.
6855 # Prefix 'build-' so this never conflicts with target_subdir.
6856 build_subdir="build-${build_noncanonical}"
6858 # Check whether --with-build-libsubdir was given.
6859 if test "${with_build_libsubdir+set}" = set; then :
6860 withval=$with_build_libsubdir; build_libsubdir="$withval"
6861 else
6862 build_libsubdir="$build_subdir"
6865 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
6866 if ( test $srcdir = . && test -d gcc ) \
6867 || test -d $srcdir/../host-${host_noncanonical}; then
6868 host_subdir="host-${host_noncanonical}"
6869 else
6870 host_subdir=.
6872 # No prefix.
6873 target_subdir=${target_noncanonical}
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
6877 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
6878 # Check whether --enable-version-specific-runtime-libs was given.
6879 if test "${enable_version_specific_runtime_libs+set}" = set; then :
6880 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
6881 yes) version_specific_libs=yes ;;
6882 no) version_specific_libs=no ;;
6883 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
6884 esac
6885 else
6886 version_specific_libs=no
6889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
6890 $as_echo "$version_specific_libs" >&6; }
6893 # Check whether --with-slibdir was given.
6894 if test "${with_slibdir+set}" = set; then :
6895 withval=$with_slibdir; slibdir="$with_slibdir"
6896 else
6897 if test "${version_specific_libs}" = yes; then
6898 slibdir='$(libsubdir)'
6899 elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
6900 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
6901 else
6902 slibdir='$(libdir)'
6908 # Command-line options.
6909 # Very limited version of AC_MAINTAINER_MODE.
6910 # Check whether --enable-maintainer-mode was given.
6911 if test "${enable_maintainer_mode+set}" = set; then :
6912 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
6913 yes) MAINT='' ;;
6914 no) MAINT='#' ;;
6915 *) as_fn_error $? "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
6916 esac
6917 maintainer_mode=${enableval}
6918 else
6919 MAINT='#'
6923 toolexecdir=no
6924 toolexeclibdir=no
6926 # Calculate toolexeclibdir
6927 # Also toolexecdir, though it's only used in toolexeclibdir
6928 case ${version_specific_libs} in
6929 yes)
6930 # Need the gcc compiler version to know where to install libraries
6931 # and header files if --enable-version-specific-runtime-libs option
6932 # is selected.
6933 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
6934 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
6937 if test -n "$with_cross_host" &&
6938 test x"$with_cross_host" != x"no"; then
6939 # Install a library built with a cross compiler in tooldir, not libdir.
6940 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
6941 toolexeclibdir='$(toolexecdir)/lib'
6942 else
6943 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
6944 toolexeclibdir='$(libdir)'
6946 multi_os_directory=`$CC -print-multi-os-directory`
6947 case $multi_os_directory in
6948 .) ;; # Avoid trailing /.
6949 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
6950 esac
6952 esac
6961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
6962 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
6963 # Check whether --enable-maintainer-mode was given.
6964 if test "${enable_maintainer_mode+set}" = set; then :
6965 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
6966 else
6967 USE_MAINTAINER_MODE=no
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
6971 $as_echo "$USE_MAINTAINER_MODE" >&6; }
6972 if test $USE_MAINTAINER_MODE = yes; then
6973 MAINTAINER_MODE_TRUE=
6974 MAINTAINER_MODE_FALSE='#'
6975 else
6976 MAINTAINER_MODE_TRUE='#'
6977 MAINTAINER_MODE_FALSE=
6980 MAINT=$MAINTAINER_MODE_TRUE
6984 # Check the compiler.
6985 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
6986 # We must force CC to /not/ be precious variables; otherwise
6987 # the wrong, non-multilib-adjusted value will be used in multilibs.
6988 # As a side effect, we have to subst CFLAGS ourselves.
6992 ac_ext=c
6993 ac_cpp='$CPP $CPPFLAGS'
6994 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6995 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6996 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6997 if test -n "$ac_tool_prefix"; then
6998 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6999 set dummy ${ac_tool_prefix}gcc; ac_word=$2
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7001 $as_echo_n "checking for $ac_word... " >&6; }
7002 if ${ac_cv_prog_CC+:} false; then :
7003 $as_echo_n "(cached) " >&6
7004 else
7005 if test -n "$CC"; then
7006 ac_cv_prog_CC="$CC" # Let the user override the test.
7007 else
7008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7009 for as_dir in $PATH
7011 IFS=$as_save_IFS
7012 test -z "$as_dir" && as_dir=.
7013 for ac_exec_ext in '' $ac_executable_extensions; do
7014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7015 ac_cv_prog_CC="${ac_tool_prefix}gcc"
7016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7017 break 2
7019 done
7020 done
7021 IFS=$as_save_IFS
7025 CC=$ac_cv_prog_CC
7026 if test -n "$CC"; then
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7028 $as_echo "$CC" >&6; }
7029 else
7030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7031 $as_echo "no" >&6; }
7036 if test -z "$ac_cv_prog_CC"; then
7037 ac_ct_CC=$CC
7038 # Extract the first word of "gcc", so it can be a program name with args.
7039 set dummy gcc; ac_word=$2
7040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7041 $as_echo_n "checking for $ac_word... " >&6; }
7042 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7043 $as_echo_n "(cached) " >&6
7044 else
7045 if test -n "$ac_ct_CC"; then
7046 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7047 else
7048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7049 for as_dir in $PATH
7051 IFS=$as_save_IFS
7052 test -z "$as_dir" && as_dir=.
7053 for ac_exec_ext in '' $ac_executable_extensions; do
7054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7055 ac_cv_prog_ac_ct_CC="gcc"
7056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7057 break 2
7059 done
7060 done
7061 IFS=$as_save_IFS
7065 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7066 if test -n "$ac_ct_CC"; then
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7068 $as_echo "$ac_ct_CC" >&6; }
7069 else
7070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7071 $as_echo "no" >&6; }
7074 if test "x$ac_ct_CC" = x; then
7075 CC=""
7076 else
7077 case $cross_compiling:$ac_tool_warned in
7078 yes:)
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7080 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7081 ac_tool_warned=yes ;;
7082 esac
7083 CC=$ac_ct_CC
7085 else
7086 CC="$ac_cv_prog_CC"
7089 if test -z "$CC"; then
7090 if test -n "$ac_tool_prefix"; then
7091 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
7092 set dummy ${ac_tool_prefix}cc; ac_word=$2
7093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7094 $as_echo_n "checking for $ac_word... " >&6; }
7095 if ${ac_cv_prog_CC+:} false; then :
7096 $as_echo_n "(cached) " >&6
7097 else
7098 if test -n "$CC"; then
7099 ac_cv_prog_CC="$CC" # Let the user override the test.
7100 else
7101 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7102 for as_dir in $PATH
7104 IFS=$as_save_IFS
7105 test -z "$as_dir" && as_dir=.
7106 for ac_exec_ext in '' $ac_executable_extensions; do
7107 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7108 ac_cv_prog_CC="${ac_tool_prefix}cc"
7109 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7110 break 2
7112 done
7113 done
7114 IFS=$as_save_IFS
7118 CC=$ac_cv_prog_CC
7119 if test -n "$CC"; then
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7121 $as_echo "$CC" >&6; }
7122 else
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7124 $as_echo "no" >&6; }
7130 if test -z "$CC"; then
7131 # Extract the first word of "cc", so it can be a program name with args.
7132 set dummy cc; ac_word=$2
7133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7134 $as_echo_n "checking for $ac_word... " >&6; }
7135 if ${ac_cv_prog_CC+:} false; then :
7136 $as_echo_n "(cached) " >&6
7137 else
7138 if test -n "$CC"; then
7139 ac_cv_prog_CC="$CC" # Let the user override the test.
7140 else
7141 ac_prog_rejected=no
7142 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7143 for as_dir in $PATH
7145 IFS=$as_save_IFS
7146 test -z "$as_dir" && as_dir=.
7147 for ac_exec_ext in '' $ac_executable_extensions; do
7148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7149 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
7150 ac_prog_rejected=yes
7151 continue
7153 ac_cv_prog_CC="cc"
7154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7155 break 2
7157 done
7158 done
7159 IFS=$as_save_IFS
7161 if test $ac_prog_rejected = yes; then
7162 # We found a bogon in the path, so make sure we never use it.
7163 set dummy $ac_cv_prog_CC
7164 shift
7165 if test $# != 0; then
7166 # We chose a different compiler from the bogus one.
7167 # However, it has the same basename, so the bogon will be chosen
7168 # first if we set CC to just the basename; use the full file name.
7169 shift
7170 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
7175 CC=$ac_cv_prog_CC
7176 if test -n "$CC"; then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7178 $as_echo "$CC" >&6; }
7179 else
7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7181 $as_echo "no" >&6; }
7186 if test -z "$CC"; then
7187 if test -n "$ac_tool_prefix"; then
7188 for ac_prog in cl.exe
7190 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7191 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7193 $as_echo_n "checking for $ac_word... " >&6; }
7194 if ${ac_cv_prog_CC+:} false; then :
7195 $as_echo_n "(cached) " >&6
7196 else
7197 if test -n "$CC"; then
7198 ac_cv_prog_CC="$CC" # Let the user override the test.
7199 else
7200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7201 for as_dir in $PATH
7203 IFS=$as_save_IFS
7204 test -z "$as_dir" && as_dir=.
7205 for ac_exec_ext in '' $ac_executable_extensions; do
7206 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7207 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
7208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7209 break 2
7211 done
7212 done
7213 IFS=$as_save_IFS
7217 CC=$ac_cv_prog_CC
7218 if test -n "$CC"; then
7219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
7220 $as_echo "$CC" >&6; }
7221 else
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7223 $as_echo "no" >&6; }
7227 test -n "$CC" && break
7228 done
7230 if test -z "$CC"; then
7231 ac_ct_CC=$CC
7232 for ac_prog in cl.exe
7234 # Extract the first word of "$ac_prog", so it can be a program name with args.
7235 set dummy $ac_prog; ac_word=$2
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7237 $as_echo_n "checking for $ac_word... " >&6; }
7238 if ${ac_cv_prog_ac_ct_CC+:} false; then :
7239 $as_echo_n "(cached) " >&6
7240 else
7241 if test -n "$ac_ct_CC"; then
7242 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
7243 else
7244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7245 for as_dir in $PATH
7247 IFS=$as_save_IFS
7248 test -z "$as_dir" && as_dir=.
7249 for ac_exec_ext in '' $ac_executable_extensions; do
7250 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7251 ac_cv_prog_ac_ct_CC="$ac_prog"
7252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7253 break 2
7255 done
7256 done
7257 IFS=$as_save_IFS
7261 ac_ct_CC=$ac_cv_prog_ac_ct_CC
7262 if test -n "$ac_ct_CC"; then
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
7264 $as_echo "$ac_ct_CC" >&6; }
7265 else
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7267 $as_echo "no" >&6; }
7271 test -n "$ac_ct_CC" && break
7272 done
7274 if test "x$ac_ct_CC" = x; then
7275 CC=""
7276 else
7277 case $cross_compiling:$ac_tool_warned in
7278 yes:)
7279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7281 ac_tool_warned=yes ;;
7282 esac
7283 CC=$ac_ct_CC
7290 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7291 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7292 as_fn_error $? "no acceptable C compiler found in \$PATH
7293 See \`config.log' for more details" "$LINENO" 5; }
7295 # Provide some information about the compiler.
7296 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
7297 set X $ac_compile
7298 ac_compiler=$2
7299 for ac_option in --version -v -V -qversion; do
7300 { { ac_try="$ac_compiler $ac_option >&5"
7301 case "(($ac_try" in
7302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7303 *) ac_try_echo=$ac_try;;
7304 esac
7305 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7306 $as_echo "$ac_try_echo"; } >&5
7307 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7308 ac_status=$?
7309 if test -s conftest.err; then
7310 sed '10a\
7311 ... rest of stderr output deleted ...
7312 10q' conftest.err >conftest.er1
7313 cat conftest.er1 >&5
7315 rm -f conftest.er1 conftest.err
7316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7317 test $ac_status = 0; }
7318 done
7320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
7321 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
7322 if ${ac_cv_c_compiler_gnu+:} false; then :
7323 $as_echo_n "(cached) " >&6
7324 else
7325 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7326 /* end confdefs.h. */
7329 main ()
7331 #ifndef __GNUC__
7332 choke me
7333 #endif
7336 return 0;
7338 _ACEOF
7339 if ac_fn_c_try_compile "$LINENO"; then :
7340 ac_compiler_gnu=yes
7341 else
7342 ac_compiler_gnu=no
7344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7345 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
7349 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
7350 if test $ac_compiler_gnu = yes; then
7351 GCC=yes
7352 else
7353 GCC=
7355 ac_test_CFLAGS=${CFLAGS+set}
7356 ac_save_CFLAGS=$CFLAGS
7357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
7358 $as_echo_n "checking whether $CC accepts -g... " >&6; }
7359 if ${ac_cv_prog_cc_g+:} false; then :
7360 $as_echo_n "(cached) " >&6
7361 else
7362 ac_save_c_werror_flag=$ac_c_werror_flag
7363 ac_c_werror_flag=yes
7364 ac_cv_prog_cc_g=no
7365 CFLAGS="-g"
7366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7367 /* end confdefs.h. */
7370 main ()
7374 return 0;
7376 _ACEOF
7377 if ac_fn_c_try_compile "$LINENO"; then :
7378 ac_cv_prog_cc_g=yes
7379 else
7380 CFLAGS=""
7381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7382 /* end confdefs.h. */
7385 main ()
7389 return 0;
7391 _ACEOF
7392 if ac_fn_c_try_compile "$LINENO"; then :
7394 else
7395 ac_c_werror_flag=$ac_save_c_werror_flag
7396 CFLAGS="-g"
7397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7398 /* end confdefs.h. */
7401 main ()
7405 return 0;
7407 _ACEOF
7408 if ac_fn_c_try_compile "$LINENO"; then :
7409 ac_cv_prog_cc_g=yes
7411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7416 ac_c_werror_flag=$ac_save_c_werror_flag
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
7419 $as_echo "$ac_cv_prog_cc_g" >&6; }
7420 if test "$ac_test_CFLAGS" = set; then
7421 CFLAGS=$ac_save_CFLAGS
7422 elif test $ac_cv_prog_cc_g = yes; then
7423 if test "$GCC" = yes; then
7424 CFLAGS="-g -O2"
7425 else
7426 CFLAGS="-g"
7428 else
7429 if test "$GCC" = yes; then
7430 CFLAGS="-O2"
7431 else
7432 CFLAGS=
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
7436 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
7437 if ${ac_cv_prog_cc_c89+:} false; then :
7438 $as_echo_n "(cached) " >&6
7439 else
7440 ac_cv_prog_cc_c89=no
7441 ac_save_CC=$CC
7442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7443 /* end confdefs.h. */
7444 #include <stdarg.h>
7445 #include <stdio.h>
7446 struct stat;
7447 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7448 struct buf { int x; };
7449 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7450 static char *e (p, i)
7451 char **p;
7452 int i;
7454 return p[i];
7456 static char *f (char * (*g) (char **, int), char **p, ...)
7458 char *s;
7459 va_list v;
7460 va_start (v,p);
7461 s = g (p, va_arg (v,int));
7462 va_end (v);
7463 return s;
7466 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7467 function prototypes and stuff, but not '\xHH' hex character constants.
7468 These don't provoke an error unfortunately, instead are silently treated
7469 as 'x'. The following induces an error, until -std is added to get
7470 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7471 array size at least. It's necessary to write '\x00'==0 to get something
7472 that's true only with -std. */
7473 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7475 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
7476 inside strings and character constants. */
7477 #define FOO(x) 'x'
7478 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
7480 int test (int i, double x);
7481 struct s1 {int (*f) (int a);};
7482 struct s2 {int (*f) (double a);};
7483 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7484 int argc;
7485 char **argv;
7487 main ()
7489 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7491 return 0;
7493 _ACEOF
7494 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
7495 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7497 CC="$ac_save_CC $ac_arg"
7498 if ac_fn_c_try_compile "$LINENO"; then :
7499 ac_cv_prog_cc_c89=$ac_arg
7501 rm -f core conftest.err conftest.$ac_objext
7502 test "x$ac_cv_prog_cc_c89" != "xno" && break
7503 done
7504 rm -f conftest.$ac_ext
7505 CC=$ac_save_CC
7508 # AC_CACHE_VAL
7509 case "x$ac_cv_prog_cc_c89" in
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
7512 $as_echo "none needed" >&6; } ;;
7513 xno)
7514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
7515 $as_echo "unsupported" >&6; } ;;
7517 CC="$CC $ac_cv_prog_cc_c89"
7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
7519 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
7520 esac
7521 if test "x$ac_cv_prog_cc_c89" != xno; then :
7525 ac_ext=c
7526 ac_cpp='$CPP $CPPFLAGS'
7527 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7528 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7529 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7531 ac_ext=c
7532 ac_cpp='$CPP $CPPFLAGS'
7533 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7534 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7535 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
7537 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
7538 if ${am_cv_prog_cc_c_o+:} false; then :
7539 $as_echo_n "(cached) " >&6
7540 else
7541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7542 /* end confdefs.h. */
7545 main ()
7549 return 0;
7551 _ACEOF
7552 # Make sure it works both with $CC and with simple cc.
7553 # Following AC_PROG_CC_C_O, we do the test twice because some
7554 # compilers refuse to overwrite an existing .o file with -o,
7555 # though they will create one.
7556 am_cv_prog_cc_c_o=yes
7557 for am_i in 1 2; do
7558 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
7559 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
7560 ac_status=$?
7561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7562 (exit $ac_status); } \
7563 && test -f conftest2.$ac_objext; then
7564 : OK
7565 else
7566 am_cv_prog_cc_c_o=no
7567 break
7569 done
7570 rm -f core conftest*
7571 unset am_i
7573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
7574 $as_echo "$am_cv_prog_cc_c_o" >&6; }
7575 if test "$am_cv_prog_cc_c_o" != yes; then
7576 # Losing compiler, so override with the script.
7577 # FIXME: It is wrong to rewrite CC.
7578 # But if we don't then we get into trouble of one sort or another.
7579 # A longer-term fix would be to have automake use am__CC in this case,
7580 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
7581 CC="$am_aux_dir/compile $CC"
7583 ac_ext=c
7584 ac_cpp='$CPP $CPPFLAGS'
7585 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7586 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7587 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7590 ac_ext=cpp
7591 ac_cpp='$CXXCPP $CPPFLAGS'
7592 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7593 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7594 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7595 if test -z "$CXX"; then
7596 if test -n "$CCC"; then
7597 CXX=$CCC
7598 else
7599 if test -n "$ac_tool_prefix"; then
7600 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7602 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7603 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7605 $as_echo_n "checking for $ac_word... " >&6; }
7606 if ${ac_cv_prog_CXX+:} false; then :
7607 $as_echo_n "(cached) " >&6
7608 else
7609 if test -n "$CXX"; then
7610 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7611 else
7612 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7613 for as_dir in $PATH
7615 IFS=$as_save_IFS
7616 test -z "$as_dir" && as_dir=.
7617 for ac_exec_ext in '' $ac_executable_extensions; do
7618 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7619 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7621 break 2
7623 done
7624 done
7625 IFS=$as_save_IFS
7629 CXX=$ac_cv_prog_CXX
7630 if test -n "$CXX"; then
7631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
7632 $as_echo "$CXX" >&6; }
7633 else
7634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7635 $as_echo "no" >&6; }
7639 test -n "$CXX" && break
7640 done
7642 if test -z "$CXX"; then
7643 ac_ct_CXX=$CXX
7644 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
7646 # Extract the first word of "$ac_prog", so it can be a program name with args.
7647 set dummy $ac_prog; ac_word=$2
7648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7649 $as_echo_n "checking for $ac_word... " >&6; }
7650 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
7651 $as_echo_n "(cached) " >&6
7652 else
7653 if test -n "$ac_ct_CXX"; then
7654 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
7655 else
7656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7657 for as_dir in $PATH
7659 IFS=$as_save_IFS
7660 test -z "$as_dir" && as_dir=.
7661 for ac_exec_ext in '' $ac_executable_extensions; do
7662 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7663 ac_cv_prog_ac_ct_CXX="$ac_prog"
7664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7665 break 2
7667 done
7668 done
7669 IFS=$as_save_IFS
7673 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
7674 if test -n "$ac_ct_CXX"; then
7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
7676 $as_echo "$ac_ct_CXX" >&6; }
7677 else
7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7679 $as_echo "no" >&6; }
7683 test -n "$ac_ct_CXX" && break
7684 done
7686 if test "x$ac_ct_CXX" = x; then
7687 CXX="g++"
7688 else
7689 case $cross_compiling:$ac_tool_warned in
7690 yes:)
7691 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7692 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7693 ac_tool_warned=yes ;;
7694 esac
7695 CXX=$ac_ct_CXX
7701 # Provide some information about the compiler.
7702 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
7703 set X $ac_compile
7704 ac_compiler=$2
7705 for ac_option in --version -v -V -qversion; do
7706 { { ac_try="$ac_compiler $ac_option >&5"
7707 case "(($ac_try" in
7708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7709 *) ac_try_echo=$ac_try;;
7710 esac
7711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7712 $as_echo "$ac_try_echo"; } >&5
7713 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7714 ac_status=$?
7715 if test -s conftest.err; then
7716 sed '10a\
7717 ... rest of stderr output deleted ...
7718 10q' conftest.err >conftest.er1
7719 cat conftest.er1 >&5
7721 rm -f conftest.er1 conftest.err
7722 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7723 test $ac_status = 0; }
7724 done
7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
7727 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
7728 if ${ac_cv_cxx_compiler_gnu+:} false; then :
7729 $as_echo_n "(cached) " >&6
7730 else
7731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7732 /* end confdefs.h. */
7735 main ()
7737 #ifndef __GNUC__
7738 choke me
7739 #endif
7742 return 0;
7744 _ACEOF
7745 if ac_fn_cxx_try_compile "$LINENO"; then :
7746 ac_compiler_gnu=yes
7747 else
7748 ac_compiler_gnu=no
7750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7751 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
7755 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
7756 if test $ac_compiler_gnu = yes; then
7757 GXX=yes
7758 else
7759 GXX=
7761 ac_test_CXXFLAGS=${CXXFLAGS+set}
7762 ac_save_CXXFLAGS=$CXXFLAGS
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
7764 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
7765 if ${ac_cv_prog_cxx_g+:} false; then :
7766 $as_echo_n "(cached) " >&6
7767 else
7768 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
7769 ac_cxx_werror_flag=yes
7770 ac_cv_prog_cxx_g=no
7771 CXXFLAGS="-g"
7772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7773 /* end confdefs.h. */
7776 main ()
7780 return 0;
7782 _ACEOF
7783 if ac_fn_cxx_try_compile "$LINENO"; then :
7784 ac_cv_prog_cxx_g=yes
7785 else
7786 CXXFLAGS=""
7787 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7788 /* end confdefs.h. */
7791 main ()
7795 return 0;
7797 _ACEOF
7798 if ac_fn_cxx_try_compile "$LINENO"; then :
7800 else
7801 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7802 CXXFLAGS="-g"
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7807 main ()
7811 return 0;
7813 _ACEOF
7814 if ac_fn_cxx_try_compile "$LINENO"; then :
7815 ac_cv_prog_cxx_g=yes
7817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7822 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7825 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7826 if test "$ac_test_CXXFLAGS" = set; then
7827 CXXFLAGS=$ac_save_CXXFLAGS
7828 elif test $ac_cv_prog_cxx_g = yes; then
7829 if test "$GXX" = yes; then
7830 CXXFLAGS="-g -O2"
7831 else
7832 CXXFLAGS="-g"
7834 else
7835 if test "$GXX" = yes; then
7836 CXXFLAGS="-O2"
7837 else
7838 CXXFLAGS=
7841 ac_ext=c
7842 ac_cpp='$CPP $CPPFLAGS'
7843 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7844 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7845 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7847 # By default we simply use the C compiler to build assembly code.
7849 test "${CCAS+set}" = set || CCAS=$CC
7850 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
7854 depcc="$CCAS" am_compiler_list=
7856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7857 $as_echo_n "checking dependency style of $depcc... " >&6; }
7858 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
7859 $as_echo_n "(cached) " >&6
7860 else
7861 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7862 # We make a subdir and do the tests there. Otherwise we can end up
7863 # making bogus files that we don't know about and never remove. For
7864 # instance it was reported that on HP-UX the gcc test will end up
7865 # making a dummy file named 'D' -- because '-MD' means "put the output
7866 # in D".
7867 rm -rf conftest.dir
7868 mkdir conftest.dir
7869 # Copy depcomp to subdir because otherwise we won't find it if we're
7870 # using a relative directory.
7871 cp "$am_depcomp" conftest.dir
7872 cd conftest.dir
7873 # We will build objects and dependencies in a subdirectory because
7874 # it helps to detect inapplicable dependency modes. For instance
7875 # both Tru64's cc and ICC support -MD to output dependencies as a
7876 # side effect of compilation, but ICC will put the dependencies in
7877 # the current directory while Tru64 will put them in the object
7878 # directory.
7879 mkdir sub
7881 am_cv_CCAS_dependencies_compiler_type=none
7882 if test "$am_compiler_list" = ""; then
7883 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7885 am__universal=false
7888 for depmode in $am_compiler_list; do
7889 # Setup a source with many dependencies, because some compilers
7890 # like to wrap large dependency lists on column 80 (with \), and
7891 # we should not choose a depcomp mode which is confused by this.
7893 # We need to recreate these files for each test, as the compiler may
7894 # overwrite some of them when testing with obscure command lines.
7895 # This happens at least with the AIX C compiler.
7896 : > sub/conftest.c
7897 for i in 1 2 3 4 5 6; do
7898 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7899 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
7900 # Solaris 10 /bin/sh.
7901 echo '/* dummy */' > sub/conftst$i.h
7902 done
7903 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7905 # We check with '-c' and '-o' for the sake of the "dashmstdout"
7906 # mode. It turns out that the SunPro C++ compiler does not properly
7907 # handle '-M -o', and we need to detect this. Also, some Intel
7908 # versions had trouble with output in subdirs.
7909 am__obj=sub/conftest.${OBJEXT-o}
7910 am__minus_obj="-o $am__obj"
7911 case $depmode in
7912 gcc)
7913 # This depmode causes a compiler race in universal mode.
7914 test "$am__universal" = false || continue
7916 nosideeffect)
7917 # After this tag, mechanisms are not by side-effect, so they'll
7918 # only be used when explicitly requested.
7919 if test "x$enable_dependency_tracking" = xyes; then
7920 continue
7921 else
7922 break
7925 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
7926 # This compiler won't grok '-c -o', but also, the minuso test has
7927 # not run yet. These depmodes are late enough in the game, and
7928 # so weak that their functioning should not be impacted.
7929 am__obj=conftest.${OBJEXT-o}
7930 am__minus_obj=
7932 none) break ;;
7933 esac
7934 if depmode=$depmode \
7935 source=sub/conftest.c object=$am__obj \
7936 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7937 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7938 >/dev/null 2>conftest.err &&
7939 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7940 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7941 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7942 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7943 # icc doesn't choke on unknown options, it will just issue warnings
7944 # or remarks (even with -Werror). So we grep stderr for any message
7945 # that says an option was ignored or not supported.
7946 # When given -MP, icc 7.0 and 7.1 complain thusly:
7947 # icc: Command line warning: ignoring option '-M'; no argument required
7948 # The diagnosis changed in icc 8.0:
7949 # icc: Command line remark: option '-MP' not supported
7950 if (grep 'ignoring option' conftest.err ||
7951 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7952 am_cv_CCAS_dependencies_compiler_type=$depmode
7953 break
7956 done
7958 cd ..
7959 rm -rf conftest.dir
7960 else
7961 am_cv_CCAS_dependencies_compiler_type=none
7965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
7966 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
7967 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
7970 test "x$enable_dependency_tracking" != xno \
7971 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
7972 am__fastdepCCAS_TRUE=
7973 am__fastdepCCAS_FALSE='#'
7974 else
7975 am__fastdepCCAS_TRUE='#'
7976 am__fastdepCCAS_FALSE=
7984 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
7985 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
7986 # in both places for now and restore CFLAGS at the end of config.
7987 save_CFLAGS="$CFLAGS"
7989 # Find other programs we need.
7990 if test -n "$ac_tool_prefix"; then
7991 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7992 set dummy ${ac_tool_prefix}ar; ac_word=$2
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7994 $as_echo_n "checking for $ac_word... " >&6; }
7995 if ${ac_cv_prog_AR+:} false; then :
7996 $as_echo_n "(cached) " >&6
7997 else
7998 if test -n "$AR"; then
7999 ac_cv_prog_AR="$AR" # Let the user override the test.
8000 else
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 for as_dir in $PATH
8004 IFS=$as_save_IFS
8005 test -z "$as_dir" && as_dir=.
8006 for ac_exec_ext in '' $ac_executable_extensions; do
8007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8008 ac_cv_prog_AR="${ac_tool_prefix}ar"
8009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8010 break 2
8012 done
8013 done
8014 IFS=$as_save_IFS
8018 AR=$ac_cv_prog_AR
8019 if test -n "$AR"; then
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
8021 $as_echo "$AR" >&6; }
8022 else
8023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8024 $as_echo "no" >&6; }
8029 if test -z "$ac_cv_prog_AR"; then
8030 ac_ct_AR=$AR
8031 # Extract the first word of "ar", so it can be a program name with args.
8032 set dummy ar; ac_word=$2
8033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8034 $as_echo_n "checking for $ac_word... " >&6; }
8035 if ${ac_cv_prog_ac_ct_AR+:} false; then :
8036 $as_echo_n "(cached) " >&6
8037 else
8038 if test -n "$ac_ct_AR"; then
8039 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
8040 else
8041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8042 for as_dir in $PATH
8044 IFS=$as_save_IFS
8045 test -z "$as_dir" && as_dir=.
8046 for ac_exec_ext in '' $ac_executable_extensions; do
8047 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8048 ac_cv_prog_ac_ct_AR="ar"
8049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8050 break 2
8052 done
8053 done
8054 IFS=$as_save_IFS
8058 ac_ct_AR=$ac_cv_prog_ac_ct_AR
8059 if test -n "$ac_ct_AR"; then
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
8061 $as_echo "$ac_ct_AR" >&6; }
8062 else
8063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8064 $as_echo "no" >&6; }
8067 if test "x$ac_ct_AR" = x; then
8068 AR=""
8069 else
8070 case $cross_compiling:$ac_tool_warned in
8071 yes:)
8072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8073 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8074 ac_tool_warned=yes ;;
8075 esac
8076 AR=$ac_ct_AR
8078 else
8079 AR="$ac_cv_prog_AR"
8082 if test -n "$ac_tool_prefix"; then
8083 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
8084 set dummy ${ac_tool_prefix}nm; ac_word=$2
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8086 $as_echo_n "checking for $ac_word... " >&6; }
8087 if ${ac_cv_prog_NM+:} false; then :
8088 $as_echo_n "(cached) " >&6
8089 else
8090 if test -n "$NM"; then
8091 ac_cv_prog_NM="$NM" # Let the user override the test.
8092 else
8093 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8094 for as_dir in $PATH
8096 IFS=$as_save_IFS
8097 test -z "$as_dir" && as_dir=.
8098 for ac_exec_ext in '' $ac_executable_extensions; do
8099 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8100 ac_cv_prog_NM="${ac_tool_prefix}nm"
8101 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8102 break 2
8104 done
8105 done
8106 IFS=$as_save_IFS
8110 NM=$ac_cv_prog_NM
8111 if test -n "$NM"; then
8112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
8113 $as_echo "$NM" >&6; }
8114 else
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo "no" >&6; }
8121 if test -z "$ac_cv_prog_NM"; then
8122 ac_ct_NM=$NM
8123 # Extract the first word of "nm", so it can be a program name with args.
8124 set dummy nm; ac_word=$2
8125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8126 $as_echo_n "checking for $ac_word... " >&6; }
8127 if ${ac_cv_prog_ac_ct_NM+:} false; then :
8128 $as_echo_n "(cached) " >&6
8129 else
8130 if test -n "$ac_ct_NM"; then
8131 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
8132 else
8133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8134 for as_dir in $PATH
8136 IFS=$as_save_IFS
8137 test -z "$as_dir" && as_dir=.
8138 for ac_exec_ext in '' $ac_executable_extensions; do
8139 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8140 ac_cv_prog_ac_ct_NM="nm"
8141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8142 break 2
8144 done
8145 done
8146 IFS=$as_save_IFS
8150 ac_ct_NM=$ac_cv_prog_ac_ct_NM
8151 if test -n "$ac_ct_NM"; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
8153 $as_echo "$ac_ct_NM" >&6; }
8154 else
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8159 if test "x$ac_ct_NM" = x; then
8160 NM=""
8161 else
8162 case $cross_compiling:$ac_tool_warned in
8163 yes:)
8164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8165 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8166 ac_tool_warned=yes ;;
8167 esac
8168 NM=$ac_ct_NM
8170 else
8171 NM="$ac_cv_prog_NM"
8174 if test -n "$ac_tool_prefix"; then
8175 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
8176 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
8177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8178 $as_echo_n "checking for $ac_word... " >&6; }
8179 if ${ac_cv_prog_RANLIB+:} false; then :
8180 $as_echo_n "(cached) " >&6
8181 else
8182 if test -n "$RANLIB"; then
8183 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
8184 else
8185 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8186 for as_dir in $PATH
8188 IFS=$as_save_IFS
8189 test -z "$as_dir" && as_dir=.
8190 for ac_exec_ext in '' $ac_executable_extensions; do
8191 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8192 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
8193 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8194 break 2
8196 done
8197 done
8198 IFS=$as_save_IFS
8202 RANLIB=$ac_cv_prog_RANLIB
8203 if test -n "$RANLIB"; then
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
8205 $as_echo "$RANLIB" >&6; }
8206 else
8207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8208 $as_echo "no" >&6; }
8213 if test -z "$ac_cv_prog_RANLIB"; then
8214 ac_ct_RANLIB=$RANLIB
8215 # Extract the first word of "ranlib", so it can be a program name with args.
8216 set dummy ranlib; ac_word=$2
8217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8218 $as_echo_n "checking for $ac_word... " >&6; }
8219 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8220 $as_echo_n "(cached) " >&6
8221 else
8222 if test -n "$ac_ct_RANLIB"; then
8223 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8224 else
8225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8226 for as_dir in $PATH
8228 IFS=$as_save_IFS
8229 test -z "$as_dir" && as_dir=.
8230 for ac_exec_ext in '' $ac_executable_extensions; do
8231 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8232 ac_cv_prog_ac_ct_RANLIB="ranlib"
8233 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8234 break 2
8236 done
8237 done
8238 IFS=$as_save_IFS
8242 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8243 if test -n "$ac_ct_RANLIB"; then
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8245 $as_echo "$ac_ct_RANLIB" >&6; }
8246 else
8247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8248 $as_echo "no" >&6; }
8251 if test "x$ac_ct_RANLIB" = x; then
8252 RANLIB="ranlib-not-found-in-path-error"
8253 else
8254 case $cross_compiling:$ac_tool_warned in
8255 yes:)
8256 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8257 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8258 ac_tool_warned=yes ;;
8259 esac
8260 RANLIB=$ac_ct_RANLIB
8262 else
8263 RANLIB="$ac_cv_prog_RANLIB"
8266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8267 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8268 set x ${MAKE-make}
8269 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8270 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8271 $as_echo_n "(cached) " >&6
8272 else
8273 cat >conftest.make <<\_ACEOF
8274 SHELL = /bin/sh
8275 all:
8276 @echo '@@@%%%=$(MAKE)=@@@%%%'
8277 _ACEOF
8278 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8279 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8280 *@@@%%%=?*=@@@%%%*)
8281 eval ac_cv_prog_make_${ac_make}_set=yes;;
8283 eval ac_cv_prog_make_${ac_make}_set=no;;
8284 esac
8285 rm -f conftest.make
8287 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8289 $as_echo "yes" >&6; }
8290 SET_MAKE=
8291 else
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8293 $as_echo "no" >&6; }
8294 SET_MAKE="MAKE=${MAKE-make}"
8299 case `pwd` in
8300 *\ * | *\ *)
8301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
8302 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
8303 esac
8307 macro_version='2.2.7a'
8308 macro_revision='1.3134'
8322 ltmain="$ac_aux_dir/ltmain.sh"
8324 # Backslashify metacharacters that are still active within
8325 # double-quoted strings.
8326 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
8328 # Same as above, but do not quote variable references.
8329 double_quote_subst='s/\(["`\\]\)/\\\1/g'
8331 # Sed substitution to delay expansion of an escaped shell variable in a
8332 # double_quote_subst'ed string.
8333 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
8335 # Sed substitution to delay expansion of an escaped single quote.
8336 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
8338 # Sed substitution to avoid accidental globbing in evaled expressions
8339 no_glob_subst='s/\*/\\\*/g'
8341 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
8342 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
8343 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
8345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
8346 $as_echo_n "checking how to print strings... " >&6; }
8347 # Test print first, because it will be a builtin if present.
8348 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
8349 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
8350 ECHO='print -r --'
8351 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
8352 ECHO='printf %s\n'
8353 else
8354 # Use this function as a fallback that always works.
8355 func_fallback_echo ()
8357 eval 'cat <<_LTECHO_EOF
8359 _LTECHO_EOF'
8361 ECHO='func_fallback_echo'
8364 # func_echo_all arg...
8365 # Invoke $ECHO with all args, space-separated.
8366 func_echo_all ()
8368 $ECHO ""
8371 case "$ECHO" in
8372 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
8373 $as_echo "printf" >&6; } ;;
8374 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
8375 $as_echo "print -r" >&6; } ;;
8376 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
8377 $as_echo "cat" >&6; } ;;
8378 esac
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
8394 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
8395 if ${ac_cv_path_SED+:} false; then :
8396 $as_echo_n "(cached) " >&6
8397 else
8398 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
8399 for ac_i in 1 2 3 4 5 6 7; do
8400 ac_script="$ac_script$as_nl$ac_script"
8401 done
8402 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
8403 { ac_script=; unset ac_script;}
8404 if test -z "$SED"; then
8405 ac_path_SED_found=false
8406 # Loop through the user's path and test for each of PROGNAME-LIST
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 for as_dir in $PATH
8410 IFS=$as_save_IFS
8411 test -z "$as_dir" && as_dir=.
8412 for ac_prog in sed gsed; do
8413 for ac_exec_ext in '' $ac_executable_extensions; do
8414 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
8415 as_fn_executable_p "$ac_path_SED" || continue
8416 # Check for GNU ac_path_SED and select it if it is found.
8417 # Check for GNU $ac_path_SED
8418 case `"$ac_path_SED" --version 2>&1` in
8419 *GNU*)
8420 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
8422 ac_count=0
8423 $as_echo_n 0123456789 >"conftest.in"
8424 while :
8426 cat "conftest.in" "conftest.in" >"conftest.tmp"
8427 mv "conftest.tmp" "conftest.in"
8428 cp "conftest.in" "conftest.nl"
8429 $as_echo '' >> "conftest.nl"
8430 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
8431 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8432 as_fn_arith $ac_count + 1 && ac_count=$as_val
8433 if test $ac_count -gt ${ac_path_SED_max-0}; then
8434 # Best one so far, save it but keep looking for a better one
8435 ac_cv_path_SED="$ac_path_SED"
8436 ac_path_SED_max=$ac_count
8438 # 10*(2^10) chars as input seems more than enough
8439 test $ac_count -gt 10 && break
8440 done
8441 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8442 esac
8444 $ac_path_SED_found && break 3
8445 done
8446 done
8447 done
8448 IFS=$as_save_IFS
8449 if test -z "$ac_cv_path_SED"; then
8450 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
8452 else
8453 ac_cv_path_SED=$SED
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8458 $as_echo "$ac_cv_path_SED" >&6; }
8459 SED="$ac_cv_path_SED"
8460 rm -f conftest.sed
8462 test -z "$SED" && SED=sed
8463 Xsed="$SED -e 1s/^X//"
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8476 $as_echo_n "checking for fgrep... " >&6; }
8477 if ${ac_cv_path_FGREP+:} false; then :
8478 $as_echo_n "(cached) " >&6
8479 else
8480 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8481 then ac_cv_path_FGREP="$GREP -F"
8482 else
8483 if test -z "$FGREP"; then
8484 ac_path_FGREP_found=false
8485 # Loop through the user's path and test for each of PROGNAME-LIST
8486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8487 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8489 IFS=$as_save_IFS
8490 test -z "$as_dir" && as_dir=.
8491 for ac_prog in fgrep; do
8492 for ac_exec_ext in '' $ac_executable_extensions; do
8493 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8494 as_fn_executable_p "$ac_path_FGREP" || continue
8495 # Check for GNU ac_path_FGREP and select it if it is found.
8496 # Check for GNU $ac_path_FGREP
8497 case `"$ac_path_FGREP" --version 2>&1` in
8498 *GNU*)
8499 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8501 ac_count=0
8502 $as_echo_n 0123456789 >"conftest.in"
8503 while :
8505 cat "conftest.in" "conftest.in" >"conftest.tmp"
8506 mv "conftest.tmp" "conftest.in"
8507 cp "conftest.in" "conftest.nl"
8508 $as_echo 'FGREP' >> "conftest.nl"
8509 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8510 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8511 as_fn_arith $ac_count + 1 && ac_count=$as_val
8512 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8513 # Best one so far, save it but keep looking for a better one
8514 ac_cv_path_FGREP="$ac_path_FGREP"
8515 ac_path_FGREP_max=$ac_count
8517 # 10*(2^10) chars as input seems more than enough
8518 test $ac_count -gt 10 && break
8519 done
8520 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8521 esac
8523 $ac_path_FGREP_found && break 3
8524 done
8525 done
8526 done
8527 IFS=$as_save_IFS
8528 if test -z "$ac_cv_path_FGREP"; then
8529 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8531 else
8532 ac_cv_path_FGREP=$FGREP
8537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8538 $as_echo "$ac_cv_path_FGREP" >&6; }
8539 FGREP="$ac_cv_path_FGREP"
8542 test -z "$GREP" && GREP=grep
8562 # Check whether --with-gnu-ld was given.
8563 if test "${with_gnu_ld+set}" = set; then :
8564 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8565 else
8566 with_gnu_ld=no
8569 ac_prog=ld
8570 if test "$GCC" = yes; then
8571 # Check if gcc -print-prog-name=ld gives a path.
8572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8573 $as_echo_n "checking for ld used by $CC... " >&6; }
8574 case $host in
8575 *-*-mingw*)
8576 # gcc leaves a trailing carriage return which upsets mingw
8577 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8579 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8580 esac
8581 case $ac_prog in
8582 # Accept absolute paths.
8583 [\\/]* | ?:[\\/]*)
8584 re_direlt='/[^/][^/]*/\.\./'
8585 # Canonicalize the pathname of ld
8586 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8587 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8588 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8589 done
8590 test -z "$LD" && LD="$ac_prog"
8593 # If it fails, then pretend we aren't using GCC.
8594 ac_prog=ld
8597 # If it is relative, then search for the first ld in PATH.
8598 with_gnu_ld=unknown
8600 esac
8601 elif test "$with_gnu_ld" = yes; then
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8603 $as_echo_n "checking for GNU ld... " >&6; }
8604 else
8605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8606 $as_echo_n "checking for non-GNU ld... " >&6; }
8608 if ${lt_cv_path_LD+:} false; then :
8609 $as_echo_n "(cached) " >&6
8610 else
8611 if test -z "$LD"; then
8612 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8613 for ac_dir in $PATH; do
8614 IFS="$lt_save_ifs"
8615 test -z "$ac_dir" && ac_dir=.
8616 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8617 lt_cv_path_LD="$ac_dir/$ac_prog"
8618 # Check to see if the program is GNU ld. I'd rather use --version,
8619 # but apparently some variants of GNU ld only accept -v.
8620 # Break only if it was the GNU/non-GNU ld that we prefer.
8621 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8622 *GNU* | *'with BFD'*)
8623 test "$with_gnu_ld" != no && break
8626 test "$with_gnu_ld" != yes && break
8628 esac
8630 done
8631 IFS="$lt_save_ifs"
8632 else
8633 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8637 LD="$lt_cv_path_LD"
8638 if test -n "$LD"; then
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8640 $as_echo "$LD" >&6; }
8641 else
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8643 $as_echo "no" >&6; }
8645 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
8646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8647 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8648 if ${lt_cv_prog_gnu_ld+:} false; then :
8649 $as_echo_n "(cached) " >&6
8650 else
8651 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8652 case `$LD -v 2>&1 </dev/null` in
8653 *GNU* | *'with BFD'*)
8654 lt_cv_prog_gnu_ld=yes
8657 lt_cv_prog_gnu_ld=no
8659 esac
8661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8662 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8663 with_gnu_ld=$lt_cv_prog_gnu_ld
8673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8674 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8675 if ${lt_cv_path_NM+:} false; then :
8676 $as_echo_n "(cached) " >&6
8677 else
8678 if test -n "$NM"; then
8679 # Let the user override the nm to test.
8680 lt_nm_to_check="$NM"
8681 else
8682 lt_nm_to_check="${ac_tool_prefix}nm"
8683 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8684 lt_nm_to_check="$lt_nm_to_check nm"
8687 for lt_tmp_nm in "$lt_nm_to_check"; do
8688 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8689 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8690 IFS="$lt_save_ifs"
8691 test -z "$ac_dir" && ac_dir=.
8692 # Strip out any user-provided options from the nm to test twice,
8693 # the first time to test to see if nm (rather than its options) has
8694 # an explicit path, the second time to yield a file which can be
8695 # nm'ed itself.
8696 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
8697 case "$tmp_nm_path" in
8698 */*|*\\*) tmp_nm="$lt_tmp_nm";;
8699 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
8700 esac
8701 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
8702 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
8703 # Check to see if the nm accepts a BSD-compat flag.
8704 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8705 # nm: unknown option "B" ignored
8706 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
8707 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
8708 break
8711 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
8712 *$tmp_nm*)
8713 lt_cv_path_NM="$tmp_nm -p"
8714 break
8717 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8718 continue # so that we can try to find one that supports BSD flags
8720 esac
8722 esac
8724 done
8725 IFS="$lt_save_ifs"
8726 done
8727 : ${lt_cv_path_NM=no}
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8730 $as_echo "$lt_cv_path_NM" >&6; }
8731 if test "$lt_cv_path_NM" != "no"; then
8732 NM="$lt_cv_path_NM"
8733 else
8734 # Didn't find any BSD compatible name lister, look for dumpbin.
8735 if test -n "$DUMPBIN"; then :
8736 # Let the user override the test.
8737 else
8738 if test -n "$ac_tool_prefix"; then
8739 for ac_prog in dumpbin "link -dump"
8741 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8742 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8744 $as_echo_n "checking for $ac_word... " >&6; }
8745 if ${ac_cv_prog_DUMPBIN+:} false; then :
8746 $as_echo_n "(cached) " >&6
8747 else
8748 if test -n "$DUMPBIN"; then
8749 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8750 else
8751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8752 for as_dir in $PATH
8754 IFS=$as_save_IFS
8755 test -z "$as_dir" && as_dir=.
8756 for ac_exec_ext in '' $ac_executable_extensions; do
8757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8758 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8760 break 2
8762 done
8763 done
8764 IFS=$as_save_IFS
8768 DUMPBIN=$ac_cv_prog_DUMPBIN
8769 if test -n "$DUMPBIN"; then
8770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8771 $as_echo "$DUMPBIN" >&6; }
8772 else
8773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8774 $as_echo "no" >&6; }
8778 test -n "$DUMPBIN" && break
8779 done
8781 if test -z "$DUMPBIN"; then
8782 ac_ct_DUMPBIN=$DUMPBIN
8783 for ac_prog in dumpbin "link -dump"
8785 # Extract the first word of "$ac_prog", so it can be a program name with args.
8786 set dummy $ac_prog; ac_word=$2
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8788 $as_echo_n "checking for $ac_word... " >&6; }
8789 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
8790 $as_echo_n "(cached) " >&6
8791 else
8792 if test -n "$ac_ct_DUMPBIN"; then
8793 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8794 else
8795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8796 for as_dir in $PATH
8798 IFS=$as_save_IFS
8799 test -z "$as_dir" && as_dir=.
8800 for ac_exec_ext in '' $ac_executable_extensions; do
8801 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8802 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8803 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8804 break 2
8806 done
8807 done
8808 IFS=$as_save_IFS
8812 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8813 if test -n "$ac_ct_DUMPBIN"; then
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8815 $as_echo "$ac_ct_DUMPBIN" >&6; }
8816 else
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8818 $as_echo "no" >&6; }
8822 test -n "$ac_ct_DUMPBIN" && break
8823 done
8825 if test "x$ac_ct_DUMPBIN" = x; then
8826 DUMPBIN=":"
8827 else
8828 case $cross_compiling:$ac_tool_warned in
8829 yes:)
8830 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8831 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8832 ac_tool_warned=yes ;;
8833 esac
8834 DUMPBIN=$ac_ct_DUMPBIN
8838 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
8839 *COFF*)
8840 DUMPBIN="$DUMPBIN -symbols"
8843 DUMPBIN=:
8845 esac
8848 if test "$DUMPBIN" != ":"; then
8849 NM="$DUMPBIN"
8852 test -z "$NM" && NM=nm
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8860 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8861 if ${lt_cv_nm_interface+:} false; then :
8862 $as_echo_n "(cached) " >&6
8863 else
8864 lt_cv_nm_interface="BSD nm"
8865 echo "int some_variable = 0;" > conftest.$ac_ext
8866 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
8867 (eval "$ac_compile" 2>conftest.err)
8868 cat conftest.err >&5
8869 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8870 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8871 cat conftest.err >&5
8872 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
8873 cat conftest.out >&5
8874 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8875 lt_cv_nm_interface="MS dumpbin"
8877 rm -f conftest*
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8880 $as_echo "$lt_cv_nm_interface" >&6; }
8882 # find the maximum length of command line arguments
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8884 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8885 if ${lt_cv_sys_max_cmd_len+:} false; then :
8886 $as_echo_n "(cached) " >&6
8887 else
8889 teststring="ABCD"
8891 case $build_os in
8892 msdosdjgpp*)
8893 # On DJGPP, this test can blow up pretty badly due to problems in libc
8894 # (any single argument exceeding 2000 bytes causes a buffer overrun
8895 # during glob expansion). Even if it were fixed, the result of this
8896 # check would be larger than it should be.
8897 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8900 gnu*)
8901 # Under GNU Hurd, this test is not required because there is
8902 # no limit to the length of command line arguments.
8903 # Libtool will interpret -1 as no limit whatsoever
8904 lt_cv_sys_max_cmd_len=-1;
8907 cygwin* | mingw* | cegcc*)
8908 # On Win9x/ME, this test blows up -- it succeeds, but takes
8909 # about 5 minutes as the teststring grows exponentially.
8910 # Worse, since 9x/ME are not pre-emptively multitasking,
8911 # you end up with a "frozen" computer, even though with patience
8912 # the test eventually succeeds (with a max line length of 256k).
8913 # Instead, let's just punt: use the minimum linelength reported by
8914 # all of the supported platforms: 8192 (on NT/2K/XP).
8915 lt_cv_sys_max_cmd_len=8192;
8918 mint*)
8919 # On MiNT this can take a long time and run out of memory.
8920 lt_cv_sys_max_cmd_len=8192;
8923 amigaos*)
8924 # On AmigaOS with pdksh, this test takes hours, literally.
8925 # So we just punt and use a minimum line length of 8192.
8926 lt_cv_sys_max_cmd_len=8192;
8929 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8930 # This has been around since 386BSD, at least. Likely further.
8931 if test -x /sbin/sysctl; then
8932 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8933 elif test -x /usr/sbin/sysctl; then
8934 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8935 else
8936 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8938 # And add a safety zone
8939 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8940 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8943 interix*)
8944 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8945 lt_cv_sys_max_cmd_len=196608
8948 osf*)
8949 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8950 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8951 # nice to cause kernel panics so lets avoid the loop below.
8952 # First set a reasonable default.
8953 lt_cv_sys_max_cmd_len=16384
8955 if test -x /sbin/sysconfig; then
8956 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8957 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8958 esac
8961 sco3.2v5*)
8962 lt_cv_sys_max_cmd_len=102400
8964 sysv5* | sco5v6* | sysv4.2uw2*)
8965 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8966 if test -n "$kargmax"; then
8967 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8968 else
8969 lt_cv_sys_max_cmd_len=32768
8973 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8974 if test -n "$lt_cv_sys_max_cmd_len"; then
8975 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8976 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8977 else
8978 # Make teststring a little bigger before we do anything with it.
8979 # a 1K string should be a reasonable start.
8980 for i in 1 2 3 4 5 6 7 8 ; do
8981 teststring=$teststring$teststring
8982 done
8983 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8984 # If test is not a shell built-in, we'll probably end up computing a
8985 # maximum length that is only half of the actual maximum length, but
8986 # we can't tell.
8987 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
8988 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
8989 test $i != 17 # 1/2 MB should be enough
8991 i=`expr $i + 1`
8992 teststring=$teststring$teststring
8993 done
8994 # Only check the string length outside the loop.
8995 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8996 teststring=
8997 # Add a significant safety factor because C++ compilers can tack on
8998 # massive amounts of additional arguments before passing them to the
8999 # linker. It appears as though 1/2 is a usable value.
9000 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
9003 esac
9007 if test -n $lt_cv_sys_max_cmd_len ; then
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
9009 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
9010 else
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
9012 $as_echo "none" >&6; }
9014 max_cmd_len=$lt_cv_sys_max_cmd_len
9021 : ${CP="cp -f"}
9022 : ${MV="mv -f"}
9023 : ${RM="rm -f"}
9025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
9026 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
9027 # Try some XSI features
9028 xsi_shell=no
9029 ( _lt_dummy="a/b/c"
9030 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
9031 = c,a/b,, \
9032 && eval 'test $(( 1 + 1 )) -eq 2 \
9033 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
9034 && xsi_shell=yes
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
9036 $as_echo "$xsi_shell" >&6; }
9039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
9040 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
9041 lt_shell_append=no
9042 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
9043 >/dev/null 2>&1 \
9044 && lt_shell_append=yes
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
9046 $as_echo "$lt_shell_append" >&6; }
9049 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
9050 lt_unset=unset
9051 else
9052 lt_unset=false
9059 # test EBCDIC or ASCII
9060 case `echo X|tr X '\101'` in
9061 A) # ASCII based system
9062 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
9063 lt_SP2NL='tr \040 \012'
9064 lt_NL2SP='tr \015\012 \040\040'
9066 *) # EBCDIC based system
9067 lt_SP2NL='tr \100 \n'
9068 lt_NL2SP='tr \r\n \100\100'
9070 esac
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
9081 $as_echo_n "checking for $LD option to reload object files... " >&6; }
9082 if ${lt_cv_ld_reload_flag+:} false; then :
9083 $as_echo_n "(cached) " >&6
9084 else
9085 lt_cv_ld_reload_flag='-r'
9087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
9088 $as_echo "$lt_cv_ld_reload_flag" >&6; }
9089 reload_flag=$lt_cv_ld_reload_flag
9090 case $reload_flag in
9091 "" | " "*) ;;
9092 *) reload_flag=" $reload_flag" ;;
9093 esac
9094 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9095 case $host_os in
9096 darwin*)
9097 if test "$GCC" = yes; then
9098 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
9099 else
9100 reload_cmds='$LD$reload_flag -o $output$reload_objs'
9103 esac
9113 if test -n "$ac_tool_prefix"; then
9114 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
9115 set dummy ${ac_tool_prefix}objdump; ac_word=$2
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9117 $as_echo_n "checking for $ac_word... " >&6; }
9118 if ${ac_cv_prog_OBJDUMP+:} false; then :
9119 $as_echo_n "(cached) " >&6
9120 else
9121 if test -n "$OBJDUMP"; then
9122 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
9123 else
9124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9125 for as_dir in $PATH
9127 IFS=$as_save_IFS
9128 test -z "$as_dir" && as_dir=.
9129 for ac_exec_ext in '' $ac_executable_extensions; do
9130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9131 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
9132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9133 break 2
9135 done
9136 done
9137 IFS=$as_save_IFS
9141 OBJDUMP=$ac_cv_prog_OBJDUMP
9142 if test -n "$OBJDUMP"; then
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
9144 $as_echo "$OBJDUMP" >&6; }
9145 else
9146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9147 $as_echo "no" >&6; }
9152 if test -z "$ac_cv_prog_OBJDUMP"; then
9153 ac_ct_OBJDUMP=$OBJDUMP
9154 # Extract the first word of "objdump", so it can be a program name with args.
9155 set dummy objdump; ac_word=$2
9156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9157 $as_echo_n "checking for $ac_word... " >&6; }
9158 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
9159 $as_echo_n "(cached) " >&6
9160 else
9161 if test -n "$ac_ct_OBJDUMP"; then
9162 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
9163 else
9164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9165 for as_dir in $PATH
9167 IFS=$as_save_IFS
9168 test -z "$as_dir" && as_dir=.
9169 for ac_exec_ext in '' $ac_executable_extensions; do
9170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9171 ac_cv_prog_ac_ct_OBJDUMP="objdump"
9172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9173 break 2
9175 done
9176 done
9177 IFS=$as_save_IFS
9181 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
9182 if test -n "$ac_ct_OBJDUMP"; then
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
9184 $as_echo "$ac_ct_OBJDUMP" >&6; }
9185 else
9186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9187 $as_echo "no" >&6; }
9190 if test "x$ac_ct_OBJDUMP" = x; then
9191 OBJDUMP="false"
9192 else
9193 case $cross_compiling:$ac_tool_warned in
9194 yes:)
9195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9196 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9197 ac_tool_warned=yes ;;
9198 esac
9199 OBJDUMP=$ac_ct_OBJDUMP
9201 else
9202 OBJDUMP="$ac_cv_prog_OBJDUMP"
9205 test -z "$OBJDUMP" && OBJDUMP=objdump
9215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
9216 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
9217 if ${lt_cv_deplibs_check_method+:} false; then :
9218 $as_echo_n "(cached) " >&6
9219 else
9220 lt_cv_file_magic_cmd='$MAGIC_CMD'
9221 lt_cv_file_magic_test_file=
9222 lt_cv_deplibs_check_method='unknown'
9223 # Need to set the preceding variable on all platforms that support
9224 # interlibrary dependencies.
9225 # 'none' -- dependencies not supported.
9226 # `unknown' -- same as none, but documents that we really don't know.
9227 # 'pass_all' -- all dependencies passed with no checks.
9228 # 'test_compile' -- check by making test program.
9229 # 'file_magic [[regex]]' -- check by looking for files in library path
9230 # which responds to the $file_magic_cmd with a given extended regex.
9231 # If you have `file' or equivalent on your system and you're not sure
9232 # whether `pass_all' will *always* work, you probably want this one.
9234 case $host_os in
9235 aix[4-9]*)
9236 lt_cv_deplibs_check_method=pass_all
9239 beos*)
9240 lt_cv_deplibs_check_method=pass_all
9243 bsdi[45]*)
9244 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
9245 lt_cv_file_magic_cmd='/usr/bin/file -L'
9246 lt_cv_file_magic_test_file=/shlib/libc.so
9249 cygwin*)
9250 # func_win32_libid is a shell function defined in ltmain.sh
9251 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9252 lt_cv_file_magic_cmd='func_win32_libid'
9255 mingw* | pw32*)
9256 # Base MSYS/MinGW do not provide the 'file' command needed by
9257 # func_win32_libid shell function, so use a weaker test based on 'objdump',
9258 # unless we find 'file', for example because we are cross-compiling.
9259 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
9260 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
9261 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
9262 lt_cv_file_magic_cmd='func_win32_libid'
9263 else
9264 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
9265 lt_cv_file_magic_cmd='$OBJDUMP -f'
9269 cegcc*)
9270 # use the weaker test based on 'objdump'. See mingw*.
9271 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
9272 lt_cv_file_magic_cmd='$OBJDUMP -f'
9275 darwin* | rhapsody*)
9276 lt_cv_deplibs_check_method=pass_all
9279 freebsd* | dragonfly*)
9280 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9281 case $host_cpu in
9282 i*86 )
9283 # Not sure whether the presence of OpenBSD here was a mistake.
9284 # Let's accept both of them until this is cleared up.
9285 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
9286 lt_cv_file_magic_cmd=/usr/bin/file
9287 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
9289 esac
9290 else
9291 lt_cv_deplibs_check_method=pass_all
9295 gnu*)
9296 lt_cv_deplibs_check_method=pass_all
9299 haiku*)
9300 lt_cv_deplibs_check_method=pass_all
9303 hpux10.20* | hpux11*)
9304 lt_cv_file_magic_cmd=/usr/bin/file
9305 case $host_cpu in
9306 ia64*)
9307 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
9308 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
9310 hppa*64*)
9311 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]'
9312 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
9315 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
9316 lt_cv_file_magic_test_file=/usr/lib/libc.sl
9318 esac
9321 interix[3-9]*)
9322 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
9323 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
9326 irix5* | irix6* | nonstopux*)
9327 case $LD in
9328 *-32|*"-32 ") libmagic=32-bit;;
9329 *-n32|*"-n32 ") libmagic=N32;;
9330 *-64|*"-64 ") libmagic=64-bit;;
9331 *) libmagic=never-match;;
9332 esac
9333 lt_cv_deplibs_check_method=pass_all
9336 # This must be Linux ELF.
9337 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
9338 lt_cv_deplibs_check_method=pass_all
9341 netbsd*)
9342 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
9343 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9344 else
9345 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
9349 newos6*)
9350 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
9351 lt_cv_file_magic_cmd=/usr/bin/file
9352 lt_cv_file_magic_test_file=/usr/lib/libnls.so
9355 *nto* | *qnx*)
9356 lt_cv_deplibs_check_method=pass_all
9359 openbsd*)
9360 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9361 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
9362 else
9363 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
9367 osf3* | osf4* | osf5*)
9368 lt_cv_deplibs_check_method=pass_all
9371 rdos*)
9372 lt_cv_deplibs_check_method=pass_all
9375 solaris*)
9376 lt_cv_deplibs_check_method=pass_all
9379 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
9380 lt_cv_deplibs_check_method=pass_all
9383 sysv4 | sysv4.3*)
9384 case $host_vendor in
9385 motorola)
9386 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]'
9387 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
9389 ncr)
9390 lt_cv_deplibs_check_method=pass_all
9392 sequent)
9393 lt_cv_file_magic_cmd='/bin/file'
9394 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
9396 sni)
9397 lt_cv_file_magic_cmd='/bin/file'
9398 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
9399 lt_cv_file_magic_test_file=/lib/libc.so
9401 siemens)
9402 lt_cv_deplibs_check_method=pass_all
9405 lt_cv_deplibs_check_method=pass_all
9407 esac
9410 tpf*)
9411 lt_cv_deplibs_check_method=pass_all
9413 vxworks*)
9414 # Assume VxWorks cross toolchains are built on Linux, possibly
9415 # as canadian for Windows hosts.
9416 lt_cv_deplibs_check_method=pass_all
9418 esac
9421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
9422 $as_echo "$lt_cv_deplibs_check_method" >&6; }
9423 file_magic_cmd=$lt_cv_file_magic_cmd
9424 deplibs_check_method=$lt_cv_deplibs_check_method
9425 test -z "$deplibs_check_method" && deplibs_check_method=unknown
9438 plugin_option=
9439 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
9440 for plugin in $plugin_names; do
9441 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
9442 if test x$plugin_so = x$plugin; then
9443 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
9445 if test x$plugin_so != x$plugin; then
9446 plugin_option="--plugin $plugin_so"
9447 break
9449 done
9451 if test -n "$ac_tool_prefix"; then
9452 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9453 set dummy ${ac_tool_prefix}ar; ac_word=$2
9454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9455 $as_echo_n "checking for $ac_word... " >&6; }
9456 if ${ac_cv_prog_AR+:} false; then :
9457 $as_echo_n "(cached) " >&6
9458 else
9459 if test -n "$AR"; then
9460 ac_cv_prog_AR="$AR" # Let the user override the test.
9461 else
9462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9463 for as_dir in $PATH
9465 IFS=$as_save_IFS
9466 test -z "$as_dir" && as_dir=.
9467 for ac_exec_ext in '' $ac_executable_extensions; do
9468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9469 ac_cv_prog_AR="${ac_tool_prefix}ar"
9470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9471 break 2
9473 done
9474 done
9475 IFS=$as_save_IFS
9479 AR=$ac_cv_prog_AR
9480 if test -n "$AR"; then
9481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9482 $as_echo "$AR" >&6; }
9483 else
9484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9485 $as_echo "no" >&6; }
9490 if test -z "$ac_cv_prog_AR"; then
9491 ac_ct_AR=$AR
9492 # Extract the first word of "ar", so it can be a program name with args.
9493 set dummy ar; ac_word=$2
9494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9495 $as_echo_n "checking for $ac_word... " >&6; }
9496 if ${ac_cv_prog_ac_ct_AR+:} false; then :
9497 $as_echo_n "(cached) " >&6
9498 else
9499 if test -n "$ac_ct_AR"; then
9500 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9501 else
9502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9503 for as_dir in $PATH
9505 IFS=$as_save_IFS
9506 test -z "$as_dir" && as_dir=.
9507 for ac_exec_ext in '' $ac_executable_extensions; do
9508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9509 ac_cv_prog_ac_ct_AR="ar"
9510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9511 break 2
9513 done
9514 done
9515 IFS=$as_save_IFS
9519 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9520 if test -n "$ac_ct_AR"; then
9521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9522 $as_echo "$ac_ct_AR" >&6; }
9523 else
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9525 $as_echo "no" >&6; }
9528 if test "x$ac_ct_AR" = x; then
9529 AR="false"
9530 else
9531 case $cross_compiling:$ac_tool_warned in
9532 yes:)
9533 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9534 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9535 ac_tool_warned=yes ;;
9536 esac
9537 AR=$ac_ct_AR
9539 else
9540 AR="$ac_cv_prog_AR"
9543 test -z "$AR" && AR=ar
9544 if test -n "$plugin_option"; then
9545 if $AR --help 2>&1 | grep -q "\--plugin"; then
9546 touch conftest.c
9547 $AR $plugin_option rc conftest.a conftest.c
9548 if test "$?" != 0; then
9549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
9550 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
9551 else
9552 AR="$AR $plugin_option"
9554 rm -f conftest.*
9557 test -z "$AR_FLAGS" && AR_FLAGS=cru
9569 if test -n "$ac_tool_prefix"; then
9570 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9571 set dummy ${ac_tool_prefix}strip; ac_word=$2
9572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9573 $as_echo_n "checking for $ac_word... " >&6; }
9574 if ${ac_cv_prog_STRIP+:} false; then :
9575 $as_echo_n "(cached) " >&6
9576 else
9577 if test -n "$STRIP"; then
9578 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9579 else
9580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9581 for as_dir in $PATH
9583 IFS=$as_save_IFS
9584 test -z "$as_dir" && as_dir=.
9585 for ac_exec_ext in '' $ac_executable_extensions; do
9586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9587 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9589 break 2
9591 done
9592 done
9593 IFS=$as_save_IFS
9597 STRIP=$ac_cv_prog_STRIP
9598 if test -n "$STRIP"; then
9599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9600 $as_echo "$STRIP" >&6; }
9601 else
9602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9603 $as_echo "no" >&6; }
9608 if test -z "$ac_cv_prog_STRIP"; then
9609 ac_ct_STRIP=$STRIP
9610 # Extract the first word of "strip", so it can be a program name with args.
9611 set dummy strip; ac_word=$2
9612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9613 $as_echo_n "checking for $ac_word... " >&6; }
9614 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
9615 $as_echo_n "(cached) " >&6
9616 else
9617 if test -n "$ac_ct_STRIP"; then
9618 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9619 else
9620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9621 for as_dir in $PATH
9623 IFS=$as_save_IFS
9624 test -z "$as_dir" && as_dir=.
9625 for ac_exec_ext in '' $ac_executable_extensions; do
9626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9627 ac_cv_prog_ac_ct_STRIP="strip"
9628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9629 break 2
9631 done
9632 done
9633 IFS=$as_save_IFS
9637 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9638 if test -n "$ac_ct_STRIP"; then
9639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9640 $as_echo "$ac_ct_STRIP" >&6; }
9641 else
9642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9643 $as_echo "no" >&6; }
9646 if test "x$ac_ct_STRIP" = x; then
9647 STRIP=":"
9648 else
9649 case $cross_compiling:$ac_tool_warned in
9650 yes:)
9651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9652 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9653 ac_tool_warned=yes ;;
9654 esac
9655 STRIP=$ac_ct_STRIP
9657 else
9658 STRIP="$ac_cv_prog_STRIP"
9661 test -z "$STRIP" && STRIP=:
9668 if test -n "$ac_tool_prefix"; then
9669 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9670 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9672 $as_echo_n "checking for $ac_word... " >&6; }
9673 if ${ac_cv_prog_RANLIB+:} false; then :
9674 $as_echo_n "(cached) " >&6
9675 else
9676 if test -n "$RANLIB"; then
9677 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9678 else
9679 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9680 for as_dir in $PATH
9682 IFS=$as_save_IFS
9683 test -z "$as_dir" && as_dir=.
9684 for ac_exec_ext in '' $ac_executable_extensions; do
9685 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9686 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9687 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9688 break 2
9690 done
9691 done
9692 IFS=$as_save_IFS
9696 RANLIB=$ac_cv_prog_RANLIB
9697 if test -n "$RANLIB"; then
9698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9699 $as_echo "$RANLIB" >&6; }
9700 else
9701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9702 $as_echo "no" >&6; }
9707 if test -z "$ac_cv_prog_RANLIB"; then
9708 ac_ct_RANLIB=$RANLIB
9709 # Extract the first word of "ranlib", so it can be a program name with args.
9710 set dummy ranlib; ac_word=$2
9711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9712 $as_echo_n "checking for $ac_word... " >&6; }
9713 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
9714 $as_echo_n "(cached) " >&6
9715 else
9716 if test -n "$ac_ct_RANLIB"; then
9717 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9718 else
9719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9720 for as_dir in $PATH
9722 IFS=$as_save_IFS
9723 test -z "$as_dir" && as_dir=.
9724 for ac_exec_ext in '' $ac_executable_extensions; do
9725 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9726 ac_cv_prog_ac_ct_RANLIB="ranlib"
9727 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9728 break 2
9730 done
9731 done
9732 IFS=$as_save_IFS
9736 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9737 if test -n "$ac_ct_RANLIB"; then
9738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9739 $as_echo "$ac_ct_RANLIB" >&6; }
9740 else
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9742 $as_echo "no" >&6; }
9745 if test "x$ac_ct_RANLIB" = x; then
9746 RANLIB=":"
9747 else
9748 case $cross_compiling:$ac_tool_warned in
9749 yes:)
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9751 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9752 ac_tool_warned=yes ;;
9753 esac
9754 RANLIB=$ac_ct_RANLIB
9756 else
9757 RANLIB="$ac_cv_prog_RANLIB"
9760 test -z "$RANLIB" && RANLIB=:
9761 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
9762 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
9763 RANLIB="$RANLIB $plugin_option"
9772 # Determine commands to create old-style static archives.
9773 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9774 old_postinstall_cmds='chmod 644 $oldlib'
9775 old_postuninstall_cmds=
9777 if test -n "$RANLIB"; then
9778 case $host_os in
9779 openbsd*)
9780 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9783 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9785 esac
9786 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9789 case $host_os in
9790 darwin*)
9791 lock_old_archive_extraction=yes ;;
9793 lock_old_archive_extraction=no ;;
9794 esac
9834 # If no C compiler was specified, use CC.
9835 LTCC=${LTCC-"$CC"}
9837 # If no C compiler flags were specified, use CFLAGS.
9838 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9840 # Allow CC to be a program name with arguments.
9841 compiler=$CC
9844 # Check for command to grab the raw symbol name followed by C symbol from nm.
9845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9846 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9847 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
9848 $as_echo_n "(cached) " >&6
9849 else
9851 # These are sane defaults that work on at least a few old systems.
9852 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9854 # Character class describing NM global symbol codes.
9855 symcode='[BCDEGRST]'
9857 # Regexp to match symbols that can be accessed directly from C.
9858 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9860 # Define system-specific variables.
9861 case $host_os in
9862 aix*)
9863 symcode='[BCDT]'
9865 cygwin* | mingw* | pw32* | cegcc*)
9866 symcode='[ABCDGISTW]'
9868 hpux*)
9869 if test "$host_cpu" = ia64; then
9870 symcode='[ABCDEGRST]'
9873 irix* | nonstopux*)
9874 symcode='[BCDEGRST]'
9876 osf*)
9877 symcode='[BCDEGQRST]'
9879 solaris*)
9880 symcode='[BCDRT]'
9882 sco3.2v5*)
9883 symcode='[DT]'
9885 sysv4.2uw2*)
9886 symcode='[DT]'
9888 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9889 symcode='[ABDT]'
9891 sysv4)
9892 symcode='[DFNSTU]'
9894 esac
9896 # If we're using GNU nm, then use its standard symbol codes.
9897 case `$NM -V 2>&1` in
9898 *GNU* | *'with BFD'*)
9899 symcode='[ABCDGIRSTW]' ;;
9900 esac
9902 # Transform an extracted symbol line into a proper C declaration.
9903 # Some systems (esp. on ia64) link data and code symbols differently,
9904 # so use this general approach.
9905 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9907 # Transform an extracted symbol line into symbol name and symbol address
9908 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9909 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'"
9911 # Handle CRLF in mingw tool chain
9912 opt_cr=
9913 case $build_os in
9914 mingw*)
9915 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9917 esac
9919 # Try without a prefix underscore, then with it.
9920 for ac_symprfx in "" "_"; do
9922 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9923 symxfrm="\\1 $ac_symprfx\\2 \\2"
9925 # Write the raw and C identifiers.
9926 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9927 # Fake it for dumpbin and say T for any non-static function
9928 # and D for any global variable.
9929 # Also find C++ and __fastcall symbols from MSVC++,
9930 # which start with @ or ?.
9931 lt_cv_sys_global_symbol_pipe="$AWK '"\
9932 " {last_section=section; section=\$ 3};"\
9933 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9934 " \$ 0!~/External *\|/{next};"\
9935 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9936 " {if(hide[section]) next};"\
9937 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9938 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9939 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9940 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9941 " ' prfx=^$ac_symprfx"
9942 else
9943 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9946 # Check to see that the pipe works correctly.
9947 pipe_works=no
9949 rm -f conftest*
9950 cat > conftest.$ac_ext <<_LT_EOF
9951 #ifdef __cplusplus
9952 extern "C" {
9953 #endif
9954 char nm_test_var;
9955 void nm_test_func(void);
9956 void nm_test_func(void){}
9957 #ifdef __cplusplus
9959 #endif
9960 int main(){nm_test_var='a';nm_test_func();return(0);}
9961 _LT_EOF
9963 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9964 (eval $ac_compile) 2>&5
9965 ac_status=$?
9966 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9967 test $ac_status = 0; }; then
9968 # Now try to grab the symbols.
9969 nlist=conftest.nm
9970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
9971 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
9972 ac_status=$?
9973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9974 test $ac_status = 0; } && test -s "$nlist"; then
9975 # Try sorting and uniquifying the output.
9976 if sort "$nlist" | uniq > "$nlist"T; then
9977 mv -f "$nlist"T "$nlist"
9978 else
9979 rm -f "$nlist"T
9982 # Make sure that we snagged all the symbols we need.
9983 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9984 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9985 cat <<_LT_EOF > conftest.$ac_ext
9986 #ifdef __cplusplus
9987 extern "C" {
9988 #endif
9990 _LT_EOF
9991 # Now generate the symbol file.
9992 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9994 cat <<_LT_EOF >> conftest.$ac_ext
9996 /* The mapping between symbol names and symbols. */
9997 const struct {
9998 const char *name;
9999 void *address;
10001 lt__PROGRAM__LTX_preloaded_symbols[] =
10003 { "@PROGRAM@", (void *) 0 },
10004 _LT_EOF
10005 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
10006 cat <<\_LT_EOF >> conftest.$ac_ext
10007 {0, (void *) 0}
10010 /* This works around a problem in FreeBSD linker */
10011 #ifdef FREEBSD_WORKAROUND
10012 static const void *lt_preloaded_setup() {
10013 return lt__PROGRAM__LTX_preloaded_symbols;
10015 #endif
10017 #ifdef __cplusplus
10019 #endif
10020 _LT_EOF
10021 # Now try linking the two files.
10022 mv conftest.$ac_objext conftstm.$ac_objext
10023 lt_save_LIBS="$LIBS"
10024 lt_save_CFLAGS="$CFLAGS"
10025 LIBS="conftstm.$ac_objext"
10026 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10027 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
10028 (eval $ac_link) 2>&5
10029 ac_status=$?
10030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10031 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
10032 pipe_works=yes
10034 LIBS="$lt_save_LIBS"
10035 CFLAGS="$lt_save_CFLAGS"
10036 else
10037 echo "cannot find nm_test_func in $nlist" >&5
10039 else
10040 echo "cannot find nm_test_var in $nlist" >&5
10042 else
10043 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10045 else
10046 echo "$progname: failed program was:" >&5
10047 cat conftest.$ac_ext >&5
10049 rm -rf conftest* conftst*
10051 # Do not use the global_symbol_pipe unless it works.
10052 if test "$pipe_works" = yes; then
10053 break
10054 else
10055 lt_cv_sys_global_symbol_pipe=
10057 done
10061 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10062 lt_cv_sys_global_symbol_to_cdecl=
10064 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
10066 $as_echo "failed" >&6; }
10067 else
10068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
10069 $as_echo "ok" >&6; }
10093 # Check whether --enable-libtool-lock was given.
10094 if test "${enable_libtool_lock+set}" = set; then :
10095 enableval=$enable_libtool_lock;
10098 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10100 # Some flags need to be propagated to the compiler or linker for good
10101 # libtool support.
10102 case $host in
10103 ia64-*-hpux*)
10104 # Find out which ABI we are using.
10105 echo 'int i;' > conftest.$ac_ext
10106 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10107 (eval $ac_compile) 2>&5
10108 ac_status=$?
10109 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10110 test $ac_status = 0; }; then
10111 case `/usr/bin/file conftest.$ac_objext` in
10112 *ELF-32*)
10113 HPUX_IA64_MODE="32"
10115 *ELF-64*)
10116 HPUX_IA64_MODE="64"
10118 esac
10120 rm -rf conftest*
10122 *-*-irix6*)
10123 # Find out which ABI we are using.
10124 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
10125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10126 (eval $ac_compile) 2>&5
10127 ac_status=$?
10128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10129 test $ac_status = 0; }; then
10130 if test "$lt_cv_prog_gnu_ld" = yes; then
10131 case `/usr/bin/file conftest.$ac_objext` in
10132 *32-bit*)
10133 LD="${LD-ld} -melf32bsmip"
10135 *N32*)
10136 LD="${LD-ld} -melf32bmipn32"
10138 *64-bit*)
10139 LD="${LD-ld} -melf64bmip"
10141 esac
10142 else
10143 case `/usr/bin/file conftest.$ac_objext` in
10144 *32-bit*)
10145 LD="${LD-ld} -32"
10147 *N32*)
10148 LD="${LD-ld} -n32"
10150 *64-bit*)
10151 LD="${LD-ld} -64"
10153 esac
10156 rm -rf conftest*
10159 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
10160 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
10161 # Find out which ABI we are using.
10162 echo 'int i;' > conftest.$ac_ext
10163 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10164 (eval $ac_compile) 2>&5
10165 ac_status=$?
10166 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10167 test $ac_status = 0; }; then
10168 case `/usr/bin/file conftest.o` in
10169 *32-bit*)
10170 case $host in
10171 x86_64-*kfreebsd*-gnu)
10172 LD="${LD-ld} -m elf_i386_fbsd"
10174 x86_64-*linux*)
10175 case `/usr/bin/file conftest.o` in
10176 *x86-64*)
10177 LD="${LD-ld} -m elf32_x86_64"
10180 LD="${LD-ld} -m elf_i386"
10182 esac
10184 powerpc64le-*linux*)
10185 LD="${LD-ld} -m elf32lppclinux"
10187 powerpc64-*linux*)
10188 LD="${LD-ld} -m elf32ppclinux"
10190 s390x-*linux*)
10191 LD="${LD-ld} -m elf_s390"
10193 sparc64-*linux*)
10194 LD="${LD-ld} -m elf32_sparc"
10196 esac
10198 *64-bit*)
10199 case $host in
10200 x86_64-*kfreebsd*-gnu)
10201 LD="${LD-ld} -m elf_x86_64_fbsd"
10203 x86_64-*linux*)
10204 LD="${LD-ld} -m elf_x86_64"
10206 powerpcle-*linux*)
10207 LD="${LD-ld} -m elf64lppc"
10209 powerpc-*linux*)
10210 LD="${LD-ld} -m elf64ppc"
10212 s390*-*linux*|s390*-*tpf*)
10213 LD="${LD-ld} -m elf64_s390"
10215 sparc*-*linux*)
10216 LD="${LD-ld} -m elf64_sparc"
10218 esac
10220 esac
10222 rm -rf conftest*
10225 *-*-sco3.2v5*)
10226 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10227 SAVE_CFLAGS="$CFLAGS"
10228 CFLAGS="$CFLAGS -belf"
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
10230 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
10231 if ${lt_cv_cc_needs_belf+:} false; then :
10232 $as_echo_n "(cached) " >&6
10233 else
10234 ac_ext=c
10235 ac_cpp='$CPP $CPPFLAGS'
10236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10240 if test x$gcc_no_link = xyes; then
10241 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10244 /* end confdefs.h. */
10247 main ()
10251 return 0;
10253 _ACEOF
10254 if ac_fn_c_try_link "$LINENO"; then :
10255 lt_cv_cc_needs_belf=yes
10256 else
10257 lt_cv_cc_needs_belf=no
10259 rm -f core conftest.err conftest.$ac_objext \
10260 conftest$ac_exeext conftest.$ac_ext
10261 ac_ext=c
10262 ac_cpp='$CPP $CPPFLAGS'
10263 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10264 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10265 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
10269 $as_echo "$lt_cv_cc_needs_belf" >&6; }
10270 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10271 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10272 CFLAGS="$SAVE_CFLAGS"
10275 sparc*-*solaris*)
10276 # Find out which ABI we are using.
10277 echo 'int i;' > conftest.$ac_ext
10278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10279 (eval $ac_compile) 2>&5
10280 ac_status=$?
10281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10282 test $ac_status = 0; }; then
10283 case `/usr/bin/file conftest.o` in
10284 *64-bit*)
10285 case $lt_cv_prog_gnu_ld in
10286 yes*) LD="${LD-ld} -m elf64_sparc" ;;
10288 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
10289 LD="${LD-ld} -64"
10292 esac
10294 esac
10296 rm -rf conftest*
10298 esac
10300 need_locks="$enable_libtool_lock"
10303 case $host_os in
10304 rhapsody* | darwin*)
10305 if test -n "$ac_tool_prefix"; then
10306 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
10307 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
10308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10309 $as_echo_n "checking for $ac_word... " >&6; }
10310 if ${ac_cv_prog_DSYMUTIL+:} false; then :
10311 $as_echo_n "(cached) " >&6
10312 else
10313 if test -n "$DSYMUTIL"; then
10314 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
10315 else
10316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10317 for as_dir in $PATH
10319 IFS=$as_save_IFS
10320 test -z "$as_dir" && as_dir=.
10321 for ac_exec_ext in '' $ac_executable_extensions; do
10322 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10323 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
10324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10325 break 2
10327 done
10328 done
10329 IFS=$as_save_IFS
10333 DSYMUTIL=$ac_cv_prog_DSYMUTIL
10334 if test -n "$DSYMUTIL"; then
10335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
10336 $as_echo "$DSYMUTIL" >&6; }
10337 else
10338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10339 $as_echo "no" >&6; }
10344 if test -z "$ac_cv_prog_DSYMUTIL"; then
10345 ac_ct_DSYMUTIL=$DSYMUTIL
10346 # Extract the first word of "dsymutil", so it can be a program name with args.
10347 set dummy dsymutil; ac_word=$2
10348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10349 $as_echo_n "checking for $ac_word... " >&6; }
10350 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
10351 $as_echo_n "(cached) " >&6
10352 else
10353 if test -n "$ac_ct_DSYMUTIL"; then
10354 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
10355 else
10356 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10357 for as_dir in $PATH
10359 IFS=$as_save_IFS
10360 test -z "$as_dir" && as_dir=.
10361 for ac_exec_ext in '' $ac_executable_extensions; do
10362 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10363 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
10364 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10365 break 2
10367 done
10368 done
10369 IFS=$as_save_IFS
10373 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
10374 if test -n "$ac_ct_DSYMUTIL"; then
10375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
10376 $as_echo "$ac_ct_DSYMUTIL" >&6; }
10377 else
10378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10379 $as_echo "no" >&6; }
10382 if test "x$ac_ct_DSYMUTIL" = x; then
10383 DSYMUTIL=":"
10384 else
10385 case $cross_compiling:$ac_tool_warned in
10386 yes:)
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10388 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10389 ac_tool_warned=yes ;;
10390 esac
10391 DSYMUTIL=$ac_ct_DSYMUTIL
10393 else
10394 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
10397 if test -n "$ac_tool_prefix"; then
10398 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
10399 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
10400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10401 $as_echo_n "checking for $ac_word... " >&6; }
10402 if ${ac_cv_prog_NMEDIT+:} false; then :
10403 $as_echo_n "(cached) " >&6
10404 else
10405 if test -n "$NMEDIT"; then
10406 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
10407 else
10408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10409 for as_dir in $PATH
10411 IFS=$as_save_IFS
10412 test -z "$as_dir" && as_dir=.
10413 for ac_exec_ext in '' $ac_executable_extensions; do
10414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10415 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
10416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10417 break 2
10419 done
10420 done
10421 IFS=$as_save_IFS
10425 NMEDIT=$ac_cv_prog_NMEDIT
10426 if test -n "$NMEDIT"; then
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
10428 $as_echo "$NMEDIT" >&6; }
10429 else
10430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10431 $as_echo "no" >&6; }
10436 if test -z "$ac_cv_prog_NMEDIT"; then
10437 ac_ct_NMEDIT=$NMEDIT
10438 # Extract the first word of "nmedit", so it can be a program name with args.
10439 set dummy nmedit; ac_word=$2
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10441 $as_echo_n "checking for $ac_word... " >&6; }
10442 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
10443 $as_echo_n "(cached) " >&6
10444 else
10445 if test -n "$ac_ct_NMEDIT"; then
10446 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
10447 else
10448 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10449 for as_dir in $PATH
10451 IFS=$as_save_IFS
10452 test -z "$as_dir" && as_dir=.
10453 for ac_exec_ext in '' $ac_executable_extensions; do
10454 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10455 ac_cv_prog_ac_ct_NMEDIT="nmedit"
10456 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10457 break 2
10459 done
10460 done
10461 IFS=$as_save_IFS
10465 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
10466 if test -n "$ac_ct_NMEDIT"; then
10467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
10468 $as_echo "$ac_ct_NMEDIT" >&6; }
10469 else
10470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10471 $as_echo "no" >&6; }
10474 if test "x$ac_ct_NMEDIT" = x; then
10475 NMEDIT=":"
10476 else
10477 case $cross_compiling:$ac_tool_warned in
10478 yes:)
10479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10480 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10481 ac_tool_warned=yes ;;
10482 esac
10483 NMEDIT=$ac_ct_NMEDIT
10485 else
10486 NMEDIT="$ac_cv_prog_NMEDIT"
10489 if test -n "$ac_tool_prefix"; then
10490 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
10491 set dummy ${ac_tool_prefix}lipo; ac_word=$2
10492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10493 $as_echo_n "checking for $ac_word... " >&6; }
10494 if ${ac_cv_prog_LIPO+:} false; then :
10495 $as_echo_n "(cached) " >&6
10496 else
10497 if test -n "$LIPO"; then
10498 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
10499 else
10500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10501 for as_dir in $PATH
10503 IFS=$as_save_IFS
10504 test -z "$as_dir" && as_dir=.
10505 for ac_exec_ext in '' $ac_executable_extensions; do
10506 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10507 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
10508 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10509 break 2
10511 done
10512 done
10513 IFS=$as_save_IFS
10517 LIPO=$ac_cv_prog_LIPO
10518 if test -n "$LIPO"; then
10519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
10520 $as_echo "$LIPO" >&6; }
10521 else
10522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10523 $as_echo "no" >&6; }
10528 if test -z "$ac_cv_prog_LIPO"; then
10529 ac_ct_LIPO=$LIPO
10530 # Extract the first word of "lipo", so it can be a program name with args.
10531 set dummy lipo; ac_word=$2
10532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10533 $as_echo_n "checking for $ac_word... " >&6; }
10534 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
10535 $as_echo_n "(cached) " >&6
10536 else
10537 if test -n "$ac_ct_LIPO"; then
10538 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10539 else
10540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10541 for as_dir in $PATH
10543 IFS=$as_save_IFS
10544 test -z "$as_dir" && as_dir=.
10545 for ac_exec_ext in '' $ac_executable_extensions; do
10546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10547 ac_cv_prog_ac_ct_LIPO="lipo"
10548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10549 break 2
10551 done
10552 done
10553 IFS=$as_save_IFS
10557 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10558 if test -n "$ac_ct_LIPO"; then
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10560 $as_echo "$ac_ct_LIPO" >&6; }
10561 else
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563 $as_echo "no" >&6; }
10566 if test "x$ac_ct_LIPO" = x; then
10567 LIPO=":"
10568 else
10569 case $cross_compiling:$ac_tool_warned in
10570 yes:)
10571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10572 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10573 ac_tool_warned=yes ;;
10574 esac
10575 LIPO=$ac_ct_LIPO
10577 else
10578 LIPO="$ac_cv_prog_LIPO"
10581 if test -n "$ac_tool_prefix"; then
10582 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10583 set dummy ${ac_tool_prefix}otool; ac_word=$2
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10585 $as_echo_n "checking for $ac_word... " >&6; }
10586 if ${ac_cv_prog_OTOOL+:} false; then :
10587 $as_echo_n "(cached) " >&6
10588 else
10589 if test -n "$OTOOL"; then
10590 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10591 else
10592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10593 for as_dir in $PATH
10595 IFS=$as_save_IFS
10596 test -z "$as_dir" && as_dir=.
10597 for ac_exec_ext in '' $ac_executable_extensions; do
10598 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10599 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10601 break 2
10603 done
10604 done
10605 IFS=$as_save_IFS
10609 OTOOL=$ac_cv_prog_OTOOL
10610 if test -n "$OTOOL"; then
10611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10612 $as_echo "$OTOOL" >&6; }
10613 else
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10615 $as_echo "no" >&6; }
10620 if test -z "$ac_cv_prog_OTOOL"; then
10621 ac_ct_OTOOL=$OTOOL
10622 # Extract the first word of "otool", so it can be a program name with args.
10623 set dummy otool; ac_word=$2
10624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10625 $as_echo_n "checking for $ac_word... " >&6; }
10626 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
10627 $as_echo_n "(cached) " >&6
10628 else
10629 if test -n "$ac_ct_OTOOL"; then
10630 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10631 else
10632 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10633 for as_dir in $PATH
10635 IFS=$as_save_IFS
10636 test -z "$as_dir" && as_dir=.
10637 for ac_exec_ext in '' $ac_executable_extensions; do
10638 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10639 ac_cv_prog_ac_ct_OTOOL="otool"
10640 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10641 break 2
10643 done
10644 done
10645 IFS=$as_save_IFS
10649 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10650 if test -n "$ac_ct_OTOOL"; then
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10652 $as_echo "$ac_ct_OTOOL" >&6; }
10653 else
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10655 $as_echo "no" >&6; }
10658 if test "x$ac_ct_OTOOL" = x; then
10659 OTOOL=":"
10660 else
10661 case $cross_compiling:$ac_tool_warned in
10662 yes:)
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10664 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10665 ac_tool_warned=yes ;;
10666 esac
10667 OTOOL=$ac_ct_OTOOL
10669 else
10670 OTOOL="$ac_cv_prog_OTOOL"
10673 if test -n "$ac_tool_prefix"; then
10674 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10675 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10677 $as_echo_n "checking for $ac_word... " >&6; }
10678 if ${ac_cv_prog_OTOOL64+:} false; then :
10679 $as_echo_n "(cached) " >&6
10680 else
10681 if test -n "$OTOOL64"; then
10682 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10683 else
10684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10685 for as_dir in $PATH
10687 IFS=$as_save_IFS
10688 test -z "$as_dir" && as_dir=.
10689 for ac_exec_ext in '' $ac_executable_extensions; do
10690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10691 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10693 break 2
10695 done
10696 done
10697 IFS=$as_save_IFS
10701 OTOOL64=$ac_cv_prog_OTOOL64
10702 if test -n "$OTOOL64"; then
10703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10704 $as_echo "$OTOOL64" >&6; }
10705 else
10706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10707 $as_echo "no" >&6; }
10712 if test -z "$ac_cv_prog_OTOOL64"; then
10713 ac_ct_OTOOL64=$OTOOL64
10714 # Extract the first word of "otool64", so it can be a program name with args.
10715 set dummy otool64; ac_word=$2
10716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10717 $as_echo_n "checking for $ac_word... " >&6; }
10718 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
10719 $as_echo_n "(cached) " >&6
10720 else
10721 if test -n "$ac_ct_OTOOL64"; then
10722 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10723 else
10724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10725 for as_dir in $PATH
10727 IFS=$as_save_IFS
10728 test -z "$as_dir" && as_dir=.
10729 for ac_exec_ext in '' $ac_executable_extensions; do
10730 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10731 ac_cv_prog_ac_ct_OTOOL64="otool64"
10732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10733 break 2
10735 done
10736 done
10737 IFS=$as_save_IFS
10741 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10742 if test -n "$ac_ct_OTOOL64"; then
10743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10744 $as_echo "$ac_ct_OTOOL64" >&6; }
10745 else
10746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10747 $as_echo "no" >&6; }
10750 if test "x$ac_ct_OTOOL64" = x; then
10751 OTOOL64=":"
10752 else
10753 case $cross_compiling:$ac_tool_warned in
10754 yes:)
10755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10756 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10757 ac_tool_warned=yes ;;
10758 esac
10759 OTOOL64=$ac_ct_OTOOL64
10761 else
10762 OTOOL64="$ac_cv_prog_OTOOL64"
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10792 $as_echo_n "checking for -single_module linker flag... " >&6; }
10793 if ${lt_cv_apple_cc_single_mod+:} false; then :
10794 $as_echo_n "(cached) " >&6
10795 else
10796 lt_cv_apple_cc_single_mod=no
10797 if test -z "${LT_MULTI_MODULE}"; then
10798 # By default we will add the -single_module flag. You can override
10799 # by either setting the environment variable LT_MULTI_MODULE
10800 # non-empty at configure time, or by adding -multi_module to the
10801 # link flags.
10802 rm -rf libconftest.dylib*
10803 echo "int foo(void){return 1;}" > conftest.c
10804 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10805 -dynamiclib -Wl,-single_module conftest.c" >&5
10806 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10807 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10808 _lt_result=$?
10809 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10810 lt_cv_apple_cc_single_mod=yes
10811 else
10812 cat conftest.err >&5
10814 rm -rf libconftest.dylib*
10815 rm -f conftest.*
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10819 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10821 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10822 if ${lt_cv_ld_exported_symbols_list+:} false; then :
10823 $as_echo_n "(cached) " >&6
10824 else
10825 lt_cv_ld_exported_symbols_list=no
10826 save_LDFLAGS=$LDFLAGS
10827 echo "_main" > conftest.sym
10828 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10829 if test x$gcc_no_link = xyes; then
10830 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10833 /* end confdefs.h. */
10836 main ()
10840 return 0;
10842 _ACEOF
10843 if ac_fn_c_try_link "$LINENO"; then :
10844 lt_cv_ld_exported_symbols_list=yes
10845 else
10846 lt_cv_ld_exported_symbols_list=no
10848 rm -f core conftest.err conftest.$ac_objext \
10849 conftest$ac_exeext conftest.$ac_ext
10850 LDFLAGS="$save_LDFLAGS"
10853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10854 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
10856 $as_echo_n "checking for -force_load linker flag... " >&6; }
10857 if ${lt_cv_ld_force_load+:} false; then :
10858 $as_echo_n "(cached) " >&6
10859 else
10860 lt_cv_ld_force_load=no
10861 cat > conftest.c << _LT_EOF
10862 int forced_loaded() { return 2;}
10863 _LT_EOF
10864 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
10865 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
10866 echo "$AR cru libconftest.a conftest.o" >&5
10867 $AR cru libconftest.a conftest.o 2>&5
10868 cat > conftest.c << _LT_EOF
10869 int main() { return 0;}
10870 _LT_EOF
10871 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
10872 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
10873 _lt_result=$?
10874 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
10875 lt_cv_ld_force_load=yes
10876 else
10877 cat conftest.err >&5
10879 rm -f conftest.err libconftest.a conftest conftest.c
10880 rm -rf conftest.dSYM
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
10884 $as_echo "$lt_cv_ld_force_load" >&6; }
10885 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
10886 # build without first building modern cctools / linker.
10887 case $host_cpu-$host_os in
10888 *-rhapsody* | *-darwin1.[012])
10889 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10890 *-darwin1.*)
10891 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10892 *-darwin*)
10893 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
10894 # deployment target is forced to an earlier version.
10895 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
10896 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
10898 10.[012][,.]*)
10899 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
10903 esac
10905 esac
10906 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10907 _lt_dar_single_mod='$single_module'
10909 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10910 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10911 else
10912 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10914 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
10915 _lt_dsymutil='~$DSYMUTIL $lib || :'
10916 else
10917 _lt_dsymutil=
10920 esac
10922 for ac_header in dlfcn.h
10923 do :
10924 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10926 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
10927 cat >>confdefs.h <<_ACEOF
10928 #define HAVE_DLFCN_H 1
10929 _ACEOF
10933 done
10939 # Set options
10943 enable_dlopen=no
10946 enable_win32_dll=no
10949 # Check whether --enable-shared was given.
10950 if test "${enable_shared+set}" = set; then :
10951 enableval=$enable_shared; p=${PACKAGE-default}
10952 case $enableval in
10953 yes) enable_shared=yes ;;
10954 no) enable_shared=no ;;
10956 enable_shared=no
10957 # Look at the argument we got. We use all the common list separators.
10958 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10959 for pkg in $enableval; do
10960 IFS="$lt_save_ifs"
10961 if test "X$pkg" = "X$p"; then
10962 enable_shared=yes
10964 done
10965 IFS="$lt_save_ifs"
10967 esac
10968 else
10969 enable_shared=yes
10980 # Check whether --enable-static was given.
10981 if test "${enable_static+set}" = set; then :
10982 enableval=$enable_static; p=${PACKAGE-default}
10983 case $enableval in
10984 yes) enable_static=yes ;;
10985 no) enable_static=no ;;
10987 enable_static=no
10988 # Look at the argument we got. We use all the common list separators.
10989 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
10990 for pkg in $enableval; do
10991 IFS="$lt_save_ifs"
10992 if test "X$pkg" = "X$p"; then
10993 enable_static=yes
10995 done
10996 IFS="$lt_save_ifs"
10998 esac
10999 else
11000 enable_static=yes
11012 # Check whether --with-pic was given.
11013 if test "${with_pic+set}" = set; then :
11014 withval=$with_pic; pic_mode="$withval"
11015 else
11016 pic_mode=default
11020 test -z "$pic_mode" && pic_mode=default
11028 # Check whether --enable-fast-install was given.
11029 if test "${enable_fast_install+set}" = set; then :
11030 enableval=$enable_fast_install; p=${PACKAGE-default}
11031 case $enableval in
11032 yes) enable_fast_install=yes ;;
11033 no) enable_fast_install=no ;;
11035 enable_fast_install=no
11036 # Look at the argument we got. We use all the common list separators.
11037 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11038 for pkg in $enableval; do
11039 IFS="$lt_save_ifs"
11040 if test "X$pkg" = "X$p"; then
11041 enable_fast_install=yes
11043 done
11044 IFS="$lt_save_ifs"
11046 esac
11047 else
11048 enable_fast_install=yes
11061 # This can be used to rebuild libtool when needed
11062 LIBTOOL_DEPS="$ltmain"
11064 # Always use our own libtool.
11065 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11092 test -z "$LN_S" && LN_S="ln -s"
11107 if test -n "${ZSH_VERSION+set}" ; then
11108 setopt NO_GLOB_SUBST
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11112 $as_echo_n "checking for objdir... " >&6; }
11113 if ${lt_cv_objdir+:} false; then :
11114 $as_echo_n "(cached) " >&6
11115 else
11116 rm -f .libs 2>/dev/null
11117 mkdir .libs 2>/dev/null
11118 if test -d .libs; then
11119 lt_cv_objdir=.libs
11120 else
11121 # MS-DOS does not allow filenames that begin with a dot.
11122 lt_cv_objdir=_libs
11124 rmdir .libs 2>/dev/null
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11127 $as_echo "$lt_cv_objdir" >&6; }
11128 objdir=$lt_cv_objdir
11134 cat >>confdefs.h <<_ACEOF
11135 #define LT_OBJDIR "$lt_cv_objdir/"
11136 _ACEOF
11141 case $host_os in
11142 aix3*)
11143 # AIX sometimes has problems with the GCC collect2 program. For some
11144 # reason, if we set the COLLECT_NAMES environment variable, the problems
11145 # vanish in a puff of smoke.
11146 if test "X${COLLECT_NAMES+set}" != Xset; then
11147 COLLECT_NAMES=
11148 export COLLECT_NAMES
11151 esac
11153 # Global variables:
11154 ofile=libtool
11155 can_build_shared=yes
11157 # All known linkers require a `.a' archive for static linking (except MSVC,
11158 # which needs '.lib').
11159 libext=a
11161 with_gnu_ld="$lt_cv_prog_gnu_ld"
11163 old_CC="$CC"
11164 old_CFLAGS="$CFLAGS"
11166 # Set sane defaults for various variables
11167 test -z "$CC" && CC=cc
11168 test -z "$LTCC" && LTCC=$CC
11169 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11170 test -z "$LD" && LD=ld
11171 test -z "$ac_objext" && ac_objext=o
11173 for cc_temp in $compiler""; do
11174 case $cc_temp in
11175 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11176 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11177 \-*) ;;
11178 *) break;;
11179 esac
11180 done
11181 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
11184 # Only perform the check for file, if the check method requires it
11185 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11186 case $deplibs_check_method in
11187 file_magic*)
11188 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11190 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11191 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11192 $as_echo_n "(cached) " >&6
11193 else
11194 case $MAGIC_CMD in
11195 [\\/*] | ?:[\\/]*)
11196 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11199 lt_save_MAGIC_CMD="$MAGIC_CMD"
11200 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11201 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11202 for ac_dir in $ac_dummy; do
11203 IFS="$lt_save_ifs"
11204 test -z "$ac_dir" && ac_dir=.
11205 if test -f $ac_dir/${ac_tool_prefix}file; then
11206 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11207 if test -n "$file_magic_test_file"; then
11208 case $deplibs_check_method in
11209 "file_magic "*)
11210 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11211 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11212 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11213 $EGREP "$file_magic_regex" > /dev/null; then
11215 else
11216 cat <<_LT_EOF 1>&2
11218 *** Warning: the command libtool uses to detect shared libraries,
11219 *** $file_magic_cmd, produces output that libtool cannot recognize.
11220 *** The result is that libtool may fail to recognize shared libraries
11221 *** as such. This will affect the creation of libtool libraries that
11222 *** depend on shared libraries, but programs linked with such libtool
11223 *** libraries will work regardless of this problem. Nevertheless, you
11224 *** may want to report the problem to your system manager and/or to
11225 *** bug-libtool@gnu.org
11227 _LT_EOF
11228 fi ;;
11229 esac
11231 break
11233 done
11234 IFS="$lt_save_ifs"
11235 MAGIC_CMD="$lt_save_MAGIC_CMD"
11237 esac
11240 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11241 if test -n "$MAGIC_CMD"; then
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11243 $as_echo "$MAGIC_CMD" >&6; }
11244 else
11245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11246 $as_echo "no" >&6; }
11253 if test -z "$lt_cv_path_MAGIC_CMD"; then
11254 if test -n "$ac_tool_prefix"; then
11255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11256 $as_echo_n "checking for file... " >&6; }
11257 if ${lt_cv_path_MAGIC_CMD+:} false; then :
11258 $as_echo_n "(cached) " >&6
11259 else
11260 case $MAGIC_CMD in
11261 [\\/*] | ?:[\\/]*)
11262 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11265 lt_save_MAGIC_CMD="$MAGIC_CMD"
11266 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11267 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11268 for ac_dir in $ac_dummy; do
11269 IFS="$lt_save_ifs"
11270 test -z "$ac_dir" && ac_dir=.
11271 if test -f $ac_dir/file; then
11272 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11273 if test -n "$file_magic_test_file"; then
11274 case $deplibs_check_method in
11275 "file_magic "*)
11276 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11277 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11278 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11279 $EGREP "$file_magic_regex" > /dev/null; then
11281 else
11282 cat <<_LT_EOF 1>&2
11284 *** Warning: the command libtool uses to detect shared libraries,
11285 *** $file_magic_cmd, produces output that libtool cannot recognize.
11286 *** The result is that libtool may fail to recognize shared libraries
11287 *** as such. This will affect the creation of libtool libraries that
11288 *** depend on shared libraries, but programs linked with such libtool
11289 *** libraries will work regardless of this problem. Nevertheless, you
11290 *** may want to report the problem to your system manager and/or to
11291 *** bug-libtool@gnu.org
11293 _LT_EOF
11294 fi ;;
11295 esac
11297 break
11299 done
11300 IFS="$lt_save_ifs"
11301 MAGIC_CMD="$lt_save_MAGIC_CMD"
11303 esac
11306 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11307 if test -n "$MAGIC_CMD"; then
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11309 $as_echo "$MAGIC_CMD" >&6; }
11310 else
11311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11312 $as_echo "no" >&6; }
11316 else
11317 MAGIC_CMD=:
11323 esac
11325 # Use C for the default configuration in the libtool script
11327 lt_save_CC="$CC"
11328 ac_ext=c
11329 ac_cpp='$CPP $CPPFLAGS'
11330 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11331 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11332 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11335 # Source file extension for C test sources.
11336 ac_ext=c
11338 # Object file extension for compiled C test sources.
11339 objext=o
11340 objext=$objext
11342 # Code to be used in simple compile tests
11343 lt_simple_compile_test_code="int some_variable = 0;"
11345 # Code to be used in simple link tests
11346 lt_simple_link_test_code='int main(){return(0);}'
11354 # If no C compiler was specified, use CC.
11355 LTCC=${LTCC-"$CC"}
11357 # If no C compiler flags were specified, use CFLAGS.
11358 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11360 # Allow CC to be a program name with arguments.
11361 compiler=$CC
11363 # Save the default compiler, since it gets overwritten when the other
11364 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11365 compiler_DEFAULT=$CC
11367 # save warnings/boilerplate of simple test code
11368 ac_outfile=conftest.$ac_objext
11369 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11370 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11371 _lt_compiler_boilerplate=`cat conftest.err`
11372 $RM conftest*
11374 ac_outfile=conftest.$ac_objext
11375 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11376 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11377 _lt_linker_boilerplate=`cat conftest.err`
11378 $RM -r conftest*
11381 ## CAVEAT EMPTOR:
11382 ## There is no encapsulation within the following macros, do not change
11383 ## the running order or otherwise move them around unless you know exactly
11384 ## what you are doing...
11385 if test -n "$compiler"; then
11387 lt_prog_compiler_no_builtin_flag=
11389 if test "$GCC" = yes; then
11390 case $cc_basename in
11391 nvcc*)
11392 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
11394 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
11395 esac
11397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11398 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11399 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
11400 $as_echo_n "(cached) " >&6
11401 else
11402 lt_cv_prog_compiler_rtti_exceptions=no
11403 ac_outfile=conftest.$ac_objext
11404 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11405 lt_compiler_flag="-fno-rtti -fno-exceptions"
11406 # Insert the option either (1) after the last *FLAGS variable, or
11407 # (2) before a word containing "conftest.", or (3) at the end.
11408 # Note that $ac_compile itself does not contain backslashes and begins
11409 # with a dollar sign (not a hyphen), so the echo should work correctly.
11410 # The option is referenced via a variable to avoid confusing sed.
11411 lt_compile=`echo "$ac_compile" | $SED \
11412 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11413 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11414 -e 's:$: $lt_compiler_flag:'`
11415 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11416 (eval "$lt_compile" 2>conftest.err)
11417 ac_status=$?
11418 cat conftest.err >&5
11419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11420 if (exit $ac_status) && test -s "$ac_outfile"; then
11421 # The compiler can only warn and ignore the option if not recognized
11422 # So say no if there are warnings other than the usual output.
11423 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11424 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11425 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11426 lt_cv_prog_compiler_rtti_exceptions=yes
11429 $RM conftest*
11432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11433 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11435 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11436 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11437 else
11448 lt_prog_compiler_wl=
11449 lt_prog_compiler_pic=
11450 lt_prog_compiler_static=
11452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11453 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11455 if test "$GCC" = yes; then
11456 lt_prog_compiler_wl='-Wl,'
11457 lt_prog_compiler_static='-static'
11459 case $host_os in
11460 aix*)
11461 # All AIX code is PIC.
11462 if test "$host_cpu" = ia64; then
11463 # AIX 5 now supports IA64 processor
11464 lt_prog_compiler_static='-Bstatic'
11466 lt_prog_compiler_pic='-fPIC'
11469 amigaos*)
11470 case $host_cpu in
11471 powerpc)
11472 # see comment about AmigaOS4 .so support
11473 lt_prog_compiler_pic='-fPIC'
11475 m68k)
11476 # FIXME: we need at least 68020 code to build shared libraries, but
11477 # adding the `-m68020' flag to GCC prevents building anything better,
11478 # like `-m68040'.
11479 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11481 esac
11484 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11485 # PIC is the default for these OSes.
11488 mingw* | cygwin* | pw32* | os2* | cegcc*)
11489 # This hack is so that the source file can tell whether it is being
11490 # built for inclusion in a dll (and should export symbols for example).
11491 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11492 # (--disable-auto-import) libraries
11493 lt_prog_compiler_pic='-DDLL_EXPORT'
11496 darwin* | rhapsody*)
11497 # PIC is the default on this platform
11498 # Common symbols not allowed in MH_DYLIB files
11499 lt_prog_compiler_pic='-fno-common'
11502 haiku*)
11503 # PIC is the default for Haiku.
11504 # The "-static" flag exists, but is broken.
11505 lt_prog_compiler_static=
11508 hpux*)
11509 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11510 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11511 # sets the default TLS model and affects inlining.
11512 case $host_cpu in
11513 hppa*64*)
11514 # +Z the default
11517 lt_prog_compiler_pic='-fPIC'
11519 esac
11522 interix[3-9]*)
11523 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11524 # Instead, we relocate shared libraries at runtime.
11527 msdosdjgpp*)
11528 # Just because we use GCC doesn't mean we suddenly get shared libraries
11529 # on systems that don't support them.
11530 lt_prog_compiler_can_build_shared=no
11531 enable_shared=no
11534 *nto* | *qnx*)
11535 # QNX uses GNU C++, but need to define -shared option too, otherwise
11536 # it will coredump.
11537 lt_prog_compiler_pic='-fPIC -shared'
11540 sysv4*MP*)
11541 if test -d /usr/nec; then
11542 lt_prog_compiler_pic=-Kconform_pic
11547 lt_prog_compiler_pic='-fPIC'
11549 esac
11551 case $cc_basename in
11552 nvcc*) # Cuda Compiler Driver 2.2
11553 lt_prog_compiler_wl='-Xlinker '
11554 lt_prog_compiler_pic='-Xcompiler -fPIC'
11556 esac
11557 else
11558 # PORTME Check for flag to pass linker flags through the system compiler.
11559 case $host_os in
11560 aix*)
11561 lt_prog_compiler_wl='-Wl,'
11562 if test "$host_cpu" = ia64; then
11563 # AIX 5 now supports IA64 processor
11564 lt_prog_compiler_static='-Bstatic'
11565 else
11566 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11570 mingw* | cygwin* | pw32* | os2* | cegcc*)
11571 # This hack is so that the source file can tell whether it is being
11572 # built for inclusion in a dll (and should export symbols for example).
11573 lt_prog_compiler_pic='-DDLL_EXPORT'
11576 hpux9* | hpux10* | hpux11*)
11577 lt_prog_compiler_wl='-Wl,'
11578 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11579 # not for PA HP-UX.
11580 case $host_cpu in
11581 hppa*64*|ia64*)
11582 # +Z the default
11585 lt_prog_compiler_pic='+Z'
11587 esac
11588 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11589 lt_prog_compiler_static='${wl}-a ${wl}archive'
11592 irix5* | irix6* | nonstopux*)
11593 lt_prog_compiler_wl='-Wl,'
11594 # PIC (with -KPIC) is the default.
11595 lt_prog_compiler_static='-non_shared'
11598 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11599 case $cc_basename in
11600 # old Intel for x86_64 which still supported -KPIC.
11601 ecc*)
11602 lt_prog_compiler_wl='-Wl,'
11603 lt_prog_compiler_pic='-KPIC'
11604 lt_prog_compiler_static='-static'
11606 # icc used to be incompatible with GCC.
11607 # ICC 10 doesn't accept -KPIC any more.
11608 icc* | ifort*)
11609 lt_prog_compiler_wl='-Wl,'
11610 lt_prog_compiler_pic='-fPIC'
11611 lt_prog_compiler_static='-static'
11613 # Lahey Fortran 8.1.
11614 lf95*)
11615 lt_prog_compiler_wl='-Wl,'
11616 lt_prog_compiler_pic='--shared'
11617 lt_prog_compiler_static='--static'
11619 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
11620 # Portland Group compilers (*not* the Pentium gcc compiler,
11621 # which looks to be a dead project)
11622 lt_prog_compiler_wl='-Wl,'
11623 lt_prog_compiler_pic='-fpic'
11624 lt_prog_compiler_static='-Bstatic'
11626 ccc*)
11627 lt_prog_compiler_wl='-Wl,'
11628 # All Alpha code is PIC.
11629 lt_prog_compiler_static='-non_shared'
11631 xl* | bgxl* | bgf* | mpixl*)
11632 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
11633 lt_prog_compiler_wl='-Wl,'
11634 lt_prog_compiler_pic='-qpic'
11635 lt_prog_compiler_static='-qstaticlink'
11638 case `$CC -V 2>&1 | sed 5q` in
11639 *Sun\ F* | *Sun*Fortran*)
11640 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11641 lt_prog_compiler_pic='-KPIC'
11642 lt_prog_compiler_static='-Bstatic'
11643 lt_prog_compiler_wl=''
11645 *Sun\ C*)
11646 # Sun C 5.9
11647 lt_prog_compiler_pic='-KPIC'
11648 lt_prog_compiler_static='-Bstatic'
11649 lt_prog_compiler_wl='-Wl,'
11651 esac
11653 esac
11656 newsos6)
11657 lt_prog_compiler_pic='-KPIC'
11658 lt_prog_compiler_static='-Bstatic'
11661 *nto* | *qnx*)
11662 # QNX uses GNU C++, but need to define -shared option too, otherwise
11663 # it will coredump.
11664 lt_prog_compiler_pic='-fPIC -shared'
11667 osf3* | osf4* | osf5*)
11668 lt_prog_compiler_wl='-Wl,'
11669 # All OSF/1 code is PIC.
11670 lt_prog_compiler_static='-non_shared'
11673 rdos*)
11674 lt_prog_compiler_static='-non_shared'
11677 solaris*)
11678 lt_prog_compiler_pic='-KPIC'
11679 lt_prog_compiler_static='-Bstatic'
11680 case $cc_basename in
11681 f77* | f90* | f95*)
11682 lt_prog_compiler_wl='-Qoption ld ';;
11684 lt_prog_compiler_wl='-Wl,';;
11685 esac
11688 sunos4*)
11689 lt_prog_compiler_wl='-Qoption ld '
11690 lt_prog_compiler_pic='-PIC'
11691 lt_prog_compiler_static='-Bstatic'
11694 sysv4 | sysv4.2uw2* | sysv4.3*)
11695 lt_prog_compiler_wl='-Wl,'
11696 lt_prog_compiler_pic='-KPIC'
11697 lt_prog_compiler_static='-Bstatic'
11700 sysv4*MP*)
11701 if test -d /usr/nec ;then
11702 lt_prog_compiler_pic='-Kconform_pic'
11703 lt_prog_compiler_static='-Bstatic'
11707 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11708 lt_prog_compiler_wl='-Wl,'
11709 lt_prog_compiler_pic='-KPIC'
11710 lt_prog_compiler_static='-Bstatic'
11713 unicos*)
11714 lt_prog_compiler_wl='-Wl,'
11715 lt_prog_compiler_can_build_shared=no
11718 uts4*)
11719 lt_prog_compiler_pic='-pic'
11720 lt_prog_compiler_static='-Bstatic'
11724 lt_prog_compiler_can_build_shared=no
11726 esac
11729 case $host_os in
11730 # For platforms which do not support PIC, -DPIC is meaningless:
11731 *djgpp*)
11732 lt_prog_compiler_pic=
11735 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11737 esac
11738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
11739 $as_echo "$lt_prog_compiler_pic" >&6; }
11747 # Check to make sure the PIC flag actually works.
11749 if test -n "$lt_prog_compiler_pic"; then
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11751 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11752 if ${lt_cv_prog_compiler_pic_works+:} false; then :
11753 $as_echo_n "(cached) " >&6
11754 else
11755 lt_cv_prog_compiler_pic_works=no
11756 ac_outfile=conftest.$ac_objext
11757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11758 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11759 # Insert the option either (1) after the last *FLAGS variable, or
11760 # (2) before a word containing "conftest.", or (3) at the end.
11761 # Note that $ac_compile itself does not contain backslashes and begins
11762 # with a dollar sign (not a hyphen), so the echo should work correctly.
11763 # The option is referenced via a variable to avoid confusing sed.
11764 lt_compile=`echo "$ac_compile" | $SED \
11765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11767 -e 's:$: $lt_compiler_flag:'`
11768 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11769 (eval "$lt_compile" 2>conftest.err)
11770 ac_status=$?
11771 cat conftest.err >&5
11772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11773 if (exit $ac_status) && test -s "$ac_outfile"; then
11774 # The compiler can only warn and ignore the option if not recognized
11775 # So say no if there are warnings other than the usual output.
11776 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
11777 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11778 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11779 lt_cv_prog_compiler_pic_works=yes
11782 $RM conftest*
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11786 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11788 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11789 case $lt_prog_compiler_pic in
11790 "" | " "*) ;;
11791 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11792 esac
11793 else
11794 lt_prog_compiler_pic=
11795 lt_prog_compiler_can_build_shared=no
11806 # Check to make sure the static flag actually works.
11808 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
11809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
11810 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
11811 if ${lt_cv_prog_compiler_static_works+:} false; then :
11812 $as_echo_n "(cached) " >&6
11813 else
11814 lt_cv_prog_compiler_static_works=no
11815 save_LDFLAGS="$LDFLAGS"
11816 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
11817 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11818 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11819 # The linker can only warn and ignore the option if not recognized
11820 # So say no if there are warnings
11821 if test -s conftest.err; then
11822 # Append any errors to the config.log.
11823 cat conftest.err 1>&5
11824 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11825 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11826 if diff conftest.exp conftest.er2 >/dev/null; then
11827 lt_cv_prog_compiler_static_works=yes
11829 else
11830 lt_cv_prog_compiler_static_works=yes
11833 $RM -r conftest*
11834 LDFLAGS="$save_LDFLAGS"
11837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
11838 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
11840 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
11842 else
11843 lt_prog_compiler_static=
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11853 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11854 if ${lt_cv_prog_compiler_c_o+:} false; then :
11855 $as_echo_n "(cached) " >&6
11856 else
11857 lt_cv_prog_compiler_c_o=no
11858 $RM -r conftest 2>/dev/null
11859 mkdir conftest
11860 cd conftest
11861 mkdir out
11862 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11864 lt_compiler_flag="-o out/conftest2.$ac_objext"
11865 # Insert the option either (1) after the last *FLAGS variable, or
11866 # (2) before a word containing "conftest.", or (3) at the end.
11867 # Note that $ac_compile itself does not contain backslashes and begins
11868 # with a dollar sign (not a hyphen), so the echo should work correctly.
11869 lt_compile=`echo "$ac_compile" | $SED \
11870 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11871 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11872 -e 's:$: $lt_compiler_flag:'`
11873 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11874 (eval "$lt_compile" 2>out/conftest.err)
11875 ac_status=$?
11876 cat out/conftest.err >&5
11877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11878 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11879 then
11880 # The compiler can only warn and ignore the option if not recognized
11881 # So say no if there are warnings
11882 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11883 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11884 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11885 lt_cv_prog_compiler_c_o=yes
11888 chmod u+w . 2>&5
11889 $RM conftest*
11890 # SGI C++ compiler will create directory out/ii_files/ for
11891 # template instantiation
11892 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11893 $RM out/* && rmdir out
11894 cd ..
11895 $RM -r conftest
11896 $RM conftest*
11899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11900 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
11908 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
11909 if ${lt_cv_prog_compiler_c_o+:} false; then :
11910 $as_echo_n "(cached) " >&6
11911 else
11912 lt_cv_prog_compiler_c_o=no
11913 $RM -r conftest 2>/dev/null
11914 mkdir conftest
11915 cd conftest
11916 mkdir out
11917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11919 lt_compiler_flag="-o out/conftest2.$ac_objext"
11920 # Insert the option either (1) after the last *FLAGS variable, or
11921 # (2) before a word containing "conftest.", or (3) at the end.
11922 # Note that $ac_compile itself does not contain backslashes and begins
11923 # with a dollar sign (not a hyphen), so the echo should work correctly.
11924 lt_compile=`echo "$ac_compile" | $SED \
11925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11927 -e 's:$: $lt_compiler_flag:'`
11928 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
11929 (eval "$lt_compile" 2>out/conftest.err)
11930 ac_status=$?
11931 cat out/conftest.err >&5
11932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11933 if (exit $ac_status) && test -s out/conftest2.$ac_objext
11934 then
11935 # The compiler can only warn and ignore the option if not recognized
11936 # So say no if there are warnings
11937 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
11938 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
11939 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
11940 lt_cv_prog_compiler_c_o=yes
11943 chmod u+w . 2>&5
11944 $RM conftest*
11945 # SGI C++ compiler will create directory out/ii_files/ for
11946 # template instantiation
11947 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
11948 $RM out/* && rmdir out
11949 cd ..
11950 $RM -r conftest
11951 $RM conftest*
11954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
11955 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
11960 hard_links="nottested"
11961 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
11962 # do not overwrite the value of need_locks provided by the user
11963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
11964 $as_echo_n "checking if we can lock with hard links... " >&6; }
11965 hard_links=yes
11966 $RM conftest*
11967 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11968 touch conftest.a
11969 ln conftest.a conftest.b 2>&5 || hard_links=no
11970 ln conftest.a conftest.b 2>/dev/null && hard_links=no
11971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
11972 $as_echo "$hard_links" >&6; }
11973 if test "$hard_links" = no; then
11974 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
11975 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
11976 need_locks=warn
11978 else
11979 need_locks=no
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
11988 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
11990 runpath_var=
11991 allow_undefined_flag=
11992 always_export_symbols=no
11993 archive_cmds=
11994 archive_expsym_cmds=
11995 compiler_needs_object=no
11996 enable_shared_with_static_runtimes=no
11997 export_dynamic_flag_spec=
11998 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
11999 hardcode_automatic=no
12000 hardcode_direct=no
12001 hardcode_direct_absolute=no
12002 hardcode_libdir_flag_spec=
12003 hardcode_libdir_flag_spec_ld=
12004 hardcode_libdir_separator=
12005 hardcode_minus_L=no
12006 hardcode_shlibpath_var=unsupported
12007 inherit_rpath=no
12008 link_all_deplibs=unknown
12009 module_cmds=
12010 module_expsym_cmds=
12011 old_archive_from_new_cmds=
12012 old_archive_from_expsyms_cmds=
12013 thread_safe_flag_spec=
12014 whole_archive_flag_spec=
12015 # include_expsyms should be a list of space-separated symbols to be *always*
12016 # included in the symbol list
12017 include_expsyms=
12018 # exclude_expsyms can be an extended regexp of symbols to exclude
12019 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12020 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12021 # as well as any symbol that contains `d'.
12022 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12023 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12024 # platforms (ab)use it in PIC code, but their linkers get confused if
12025 # the symbol is explicitly referenced. Since portable code cannot
12026 # rely on this symbol name, it's probably fine to never include it in
12027 # preloaded symbol tables.
12028 # Exclude shared library initialization/finalization symbols.
12029 extract_expsyms_cmds=
12031 case $host_os in
12032 cygwin* | mingw* | pw32* | cegcc*)
12033 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12034 # When not using gcc, we currently assume that we are using
12035 # Microsoft Visual C++.
12036 if test "$GCC" != yes; then
12037 with_gnu_ld=no
12040 interix*)
12041 # we just hope/assume this is gcc and not c89 (= MSVC++)
12042 with_gnu_ld=yes
12044 openbsd*)
12045 with_gnu_ld=no
12047 esac
12049 ld_shlibs=yes
12051 # On some targets, GNU ld is compatible enough with the native linker
12052 # that we're better off using the native interface for both.
12053 lt_use_gnu_ld_interface=no
12054 if test "$with_gnu_ld" = yes; then
12055 case $host_os in
12056 aix*)
12057 # The AIX port of GNU ld has always aspired to compatibility
12058 # with the native linker. However, as the warning in the GNU ld
12059 # block says, versions before 2.19.5* couldn't really create working
12060 # shared libraries, regardless of the interface used.
12061 case `$LD -v 2>&1` in
12062 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
12063 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
12064 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
12066 lt_use_gnu_ld_interface=yes
12068 esac
12071 lt_use_gnu_ld_interface=yes
12073 esac
12076 if test "$lt_use_gnu_ld_interface" = yes; then
12077 # If archive_cmds runs LD, not CC, wlarc should be empty
12078 wlarc='${wl}'
12080 # Set some defaults for GNU ld with shared library support. These
12081 # are reset later if shared libraries are not supported. Putting them
12082 # here allows them to be overridden if necessary.
12083 runpath_var=LD_RUN_PATH
12084 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12085 export_dynamic_flag_spec='${wl}--export-dynamic'
12086 # ancient GNU ld didn't support --whole-archive et. al.
12087 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12088 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12089 else
12090 whole_archive_flag_spec=
12092 supports_anon_versioning=no
12093 case `$LD -v 2>&1` in
12094 *GNU\ gold*) supports_anon_versioning=yes ;;
12095 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12096 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12097 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12098 *\ 2.11.*) ;; # other 2.11 versions
12099 *) supports_anon_versioning=yes ;;
12100 esac
12102 # See if GNU ld supports shared libraries.
12103 case $host_os in
12104 aix[3-9]*)
12105 # On AIX/PPC, the GNU linker is very broken
12106 if test "$host_cpu" != ia64; then
12107 ld_shlibs=no
12108 cat <<_LT_EOF 1>&2
12110 *** Warning: the GNU linker, at least up to release 2.19, is reported
12111 *** to be unable to reliably create shared libraries on AIX.
12112 *** Therefore, libtool is disabling shared libraries support. If you
12113 *** really care for shared libraries, you may want to install binutils
12114 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
12115 *** You will then need to restart the configuration process.
12117 _LT_EOF
12121 amigaos*)
12122 case $host_cpu in
12123 powerpc)
12124 # see comment about AmigaOS4 .so support
12125 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12126 archive_expsym_cmds=''
12128 m68k)
12129 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)'
12130 hardcode_libdir_flag_spec='-L$libdir'
12131 hardcode_minus_L=yes
12133 esac
12136 beos*)
12137 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12138 allow_undefined_flag=unsupported
12139 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12140 # support --undefined. This deserves some investigation. FIXME
12141 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12142 else
12143 ld_shlibs=no
12147 cygwin* | mingw* | pw32* | cegcc*)
12148 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12149 # as there is no search path for DLLs.
12150 hardcode_libdir_flag_spec='-L$libdir'
12151 export_dynamic_flag_spec='${wl}--export-all-symbols'
12152 allow_undefined_flag=unsupported
12153 always_export_symbols=no
12154 enable_shared_with_static_runtimes=yes
12155 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12157 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12158 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12159 # If the export-symbols file already is a .def file (1st line
12160 # is EXPORTS), use it as is; otherwise, prepend...
12161 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12162 cp $export_symbols $output_objdir/$soname.def;
12163 else
12164 echo EXPORTS > $output_objdir/$soname.def;
12165 cat $export_symbols >> $output_objdir/$soname.def;
12167 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12168 else
12169 ld_shlibs=no
12173 haiku*)
12174 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12175 link_all_deplibs=yes
12178 interix[3-9]*)
12179 hardcode_direct=no
12180 hardcode_shlibpath_var=no
12181 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12182 export_dynamic_flag_spec='${wl}-E'
12183 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12184 # Instead, shared libraries are loaded at an image base (0x10000000 by
12185 # default) and relocated if they conflict, which is a slow very memory
12186 # consuming and fragmenting process. To avoid this, we pick a random,
12187 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12188 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12189 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12190 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'
12193 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
12194 tmp_diet=no
12195 if test "$host_os" = linux-dietlibc; then
12196 case $cc_basename in
12197 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12198 esac
12200 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12201 && test "$tmp_diet" = no
12202 then
12203 tmp_addflag=' $pic_flag'
12204 tmp_sharedflag='-shared'
12205 case $cc_basename,$host_cpu in
12206 pgcc*) # Portland Group C compiler
12207 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'
12208 tmp_addflag=' $pic_flag'
12210 pgf77* | pgf90* | pgf95* | pgfortran*)
12211 # Portland Group f77 and f90 compilers
12212 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'
12213 tmp_addflag=' $pic_flag -Mnomain' ;;
12214 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12215 tmp_addflag=' -i_dynamic' ;;
12216 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12217 tmp_addflag=' -i_dynamic -nofor_main' ;;
12218 ifc* | ifort*) # Intel Fortran compiler
12219 tmp_addflag=' -nofor_main' ;;
12220 lf95*) # Lahey Fortran 8.1
12221 whole_archive_flag_spec=
12222 tmp_sharedflag='--shared' ;;
12223 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12224 tmp_sharedflag='-qmkshrobj'
12225 tmp_addflag= ;;
12226 nvcc*) # Cuda Compiler Driver 2.2
12227 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'
12228 compiler_needs_object=yes
12230 esac
12231 case `$CC -V 2>&1 | sed 5q` in
12232 *Sun\ C*) # Sun C 5.9
12233 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'
12234 compiler_needs_object=yes
12235 tmp_sharedflag='-G' ;;
12236 *Sun\ F*) # Sun Fortran 8.3
12237 tmp_sharedflag='-G' ;;
12238 esac
12239 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12241 if test "x$supports_anon_versioning" = xyes; then
12242 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12243 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12244 echo "local: *; };" >> $output_objdir/$libname.ver~
12245 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12248 case $cc_basename in
12249 xlf* | bgf* | bgxlf* | mpixlf*)
12250 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12251 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12252 hardcode_libdir_flag_spec=
12253 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12254 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12255 if test "x$supports_anon_versioning" = xyes; then
12256 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12257 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12258 echo "local: *; };" >> $output_objdir/$libname.ver~
12259 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12262 esac
12263 else
12264 ld_shlibs=no
12268 netbsd*)
12269 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12270 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12271 wlarc=
12272 else
12273 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12274 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12278 solaris*)
12279 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12280 ld_shlibs=no
12281 cat <<_LT_EOF 1>&2
12283 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12284 *** create shared libraries on Solaris systems. Therefore, libtool
12285 *** is disabling shared libraries support. We urge you to upgrade GNU
12286 *** binutils to release 2.9.1 or newer. Another option is to modify
12287 *** your PATH or compiler configuration so that the native linker is
12288 *** used, and then restart.
12290 _LT_EOF
12291 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12292 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12293 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12294 else
12295 ld_shlibs=no
12299 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12300 case `$LD -v 2>&1` in
12301 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12302 ld_shlibs=no
12303 cat <<_LT_EOF 1>&2
12305 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12306 *** reliably create shared libraries on SCO systems. Therefore, libtool
12307 *** is disabling shared libraries support. We urge you to upgrade GNU
12308 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12309 *** your PATH or compiler configuration so that the native linker is
12310 *** used, and then restart.
12312 _LT_EOF
12315 # For security reasons, it is highly recommended that you always
12316 # use absolute paths for naming shared libraries, and exclude the
12317 # DT_RUNPATH tag from executables and libraries. But doing so
12318 # requires that you compile everything twice, which is a pain.
12319 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12320 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12321 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12322 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12323 else
12324 ld_shlibs=no
12327 esac
12330 sunos4*)
12331 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12332 wlarc=
12333 hardcode_direct=yes
12334 hardcode_shlibpath_var=no
12338 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12339 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12340 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12341 else
12342 ld_shlibs=no
12345 esac
12347 if test "$ld_shlibs" = no; then
12348 runpath_var=
12349 hardcode_libdir_flag_spec=
12350 export_dynamic_flag_spec=
12351 whole_archive_flag_spec=
12353 else
12354 # PORTME fill in a description of your system's linker (not GNU ld)
12355 case $host_os in
12356 aix3*)
12357 allow_undefined_flag=unsupported
12358 always_export_symbols=yes
12359 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'
12360 # Note: this linker hardcodes the directories in LIBPATH if there
12361 # are no directories specified by -L.
12362 hardcode_minus_L=yes
12363 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12364 # Neither direct hardcoding nor static linking is supported with a
12365 # broken collect2.
12366 hardcode_direct=unsupported
12370 aix[4-9]*)
12371 if test "$host_cpu" = ia64; then
12372 # On IA64, the linker does run time linking by default, so we don't
12373 # have to do anything special.
12374 aix_use_runtimelinking=no
12375 exp_sym_flag='-Bexport'
12376 no_entry_flag=""
12377 else
12378 # If we're using GNU nm, then we don't want the "-C" option.
12379 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12380 # Also, AIX nm treats weak defined symbols like other global
12381 # defined symbols, whereas GNU nm marks them as "W".
12382 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12383 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'
12384 else
12385 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'
12387 aix_use_runtimelinking=no
12389 # Test if we are trying to use run time linking or normal
12390 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12391 # need to do runtime linking.
12392 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12393 for ld_flag in $LDFLAGS; do
12394 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12395 aix_use_runtimelinking=yes
12396 break
12398 done
12400 esac
12402 exp_sym_flag='-bexport'
12403 no_entry_flag='-bnoentry'
12406 # When large executables or shared objects are built, AIX ld can
12407 # have problems creating the table of contents. If linking a library
12408 # or program results in "error TOC overflow" add -mminimal-toc to
12409 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12410 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12412 archive_cmds=''
12413 hardcode_direct=yes
12414 hardcode_direct_absolute=yes
12415 hardcode_libdir_separator=':'
12416 link_all_deplibs=yes
12417 file_list_spec='${wl}-f,'
12419 if test "$GCC" = yes; then
12420 case $host_os in aix4.[012]|aix4.[012].*)
12421 # We only want to do this on AIX 4.2 and lower, the check
12422 # below for broken collect2 doesn't work under 4.3+
12423 collect2name=`${CC} -print-prog-name=collect2`
12424 if test -f "$collect2name" &&
12425 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12426 then
12427 # We have reworked collect2
12429 else
12430 # We have old collect2
12431 hardcode_direct=unsupported
12432 # It fails to find uninstalled libraries when the uninstalled
12433 # path is not listed in the libpath. Setting hardcode_minus_L
12434 # to unsupported forces relinking
12435 hardcode_minus_L=yes
12436 hardcode_libdir_flag_spec='-L$libdir'
12437 hardcode_libdir_separator=
12440 esac
12441 shared_flag='-shared'
12442 if test "$aix_use_runtimelinking" = yes; then
12443 shared_flag="$shared_flag "'${wl}-G'
12445 else
12446 # not using gcc
12447 if test "$host_cpu" = ia64; then
12448 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12449 # chokes on -Wl,-G. The following line is correct:
12450 shared_flag='-G'
12451 else
12452 if test "$aix_use_runtimelinking" = yes; then
12453 shared_flag='${wl}-G'
12454 else
12455 shared_flag='${wl}-bM:SRE'
12460 export_dynamic_flag_spec='${wl}-bexpall'
12461 # It seems that -bexpall does not export symbols beginning with
12462 # underscore (_), so it is better to generate a list of symbols to export.
12463 always_export_symbols=yes
12464 if test "$aix_use_runtimelinking" = yes; then
12465 # Warning - without using the other runtime loading flags (-brtl),
12466 # -berok will link without error, but may produce a broken library.
12467 allow_undefined_flag='-berok'
12468 # Determine the default libpath from the value encoded in an
12469 # empty executable.
12470 if test x$gcc_no_link = xyes; then
12471 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12474 /* end confdefs.h. */
12477 main ()
12481 return 0;
12483 _ACEOF
12484 if ac_fn_c_try_link "$LINENO"; then :
12486 lt_aix_libpath_sed='
12487 /Import File Strings/,/^$/ {
12488 /^0/ {
12489 s/^0 *\(.*\)$/\1/
12493 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12494 # Check for a 64-bit object if we didn't find anything.
12495 if test -z "$aix_libpath"; then
12496 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12499 rm -f core conftest.err conftest.$ac_objext \
12500 conftest$ac_exeext conftest.$ac_ext
12501 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12503 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12504 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"
12505 else
12506 if test "$host_cpu" = ia64; then
12507 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12508 allow_undefined_flag="-z nodefs"
12509 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"
12510 else
12511 # Determine the default libpath from the value encoded in an
12512 # empty executable.
12513 if test x$gcc_no_link = xyes; then
12514 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12517 /* end confdefs.h. */
12520 main ()
12524 return 0;
12526 _ACEOF
12527 if ac_fn_c_try_link "$LINENO"; then :
12529 lt_aix_libpath_sed='
12530 /Import File Strings/,/^$/ {
12531 /^0/ {
12532 s/^0 *\(.*\)$/\1/
12536 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12537 # Check for a 64-bit object if we didn't find anything.
12538 if test -z "$aix_libpath"; then
12539 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12542 rm -f core conftest.err conftest.$ac_objext \
12543 conftest$ac_exeext conftest.$ac_ext
12544 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12546 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12547 # Warning - without using the other run time loading flags,
12548 # -berok will link without error, but may produce a broken library.
12549 no_undefined_flag=' ${wl}-bernotok'
12550 allow_undefined_flag=' ${wl}-berok'
12551 if test "$with_gnu_ld" = yes; then
12552 # We only use this code for GNU lds that support --whole-archive.
12553 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
12554 else
12555 # Exported symbols can be pulled into shared objects from archives
12556 whole_archive_flag_spec='$convenience'
12558 archive_cmds_need_lc=yes
12559 # This is similar to how AIX traditionally builds its shared libraries.
12560 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'
12565 amigaos*)
12566 case $host_cpu in
12567 powerpc)
12568 # see comment about AmigaOS4 .so support
12569 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12570 archive_expsym_cmds=''
12572 m68k)
12573 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)'
12574 hardcode_libdir_flag_spec='-L$libdir'
12575 hardcode_minus_L=yes
12577 esac
12580 bsdi[45]*)
12581 export_dynamic_flag_spec=-rdynamic
12584 cygwin* | mingw* | pw32* | cegcc*)
12585 # When not using gcc, we currently assume that we are using
12586 # Microsoft Visual C++.
12587 # hardcode_libdir_flag_spec is actually meaningless, as there is
12588 # no search path for DLLs.
12589 hardcode_libdir_flag_spec=' '
12590 allow_undefined_flag=unsupported
12591 # Tell ltmain to make .lib files, not .a files.
12592 libext=lib
12593 # Tell ltmain to make .dll files, not .so files.
12594 shrext_cmds=".dll"
12595 # FIXME: Setting linknames here is a bad hack.
12596 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
12597 # The linker will automatically build a .lib file if we build a DLL.
12598 old_archive_from_new_cmds='true'
12599 # FIXME: Should let the user specify the lib program.
12600 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12601 fix_srcfile_path='`cygpath -w "$srcfile"`'
12602 enable_shared_with_static_runtimes=yes
12605 darwin* | rhapsody*)
12609 # Publish an arg to allow the user to select that Darwin host (and target)
12610 # libraries should be given install-names like @rpath/libfoo.dylib. This
12611 # requires that the user of the library then adds an 'rpath' to the DSO that
12612 # needs access.
12613 # NOTE: there are defaults below, for systems that support rpaths. The person
12614 # configuring can override the defaults for any system version that supports
12615 # them - they are, however, forced off for system versions without support.
12616 # Check whether --enable-darwin-at-rpath was given.
12617 if test "${enable_darwin_at_rpath+set}" = set; then :
12618 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
12619 # This is not supported before macOS 10.5 / Darwin9.
12620 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
12621 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
12623 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
12624 enable_darwin_at_rpath=no
12626 esac
12628 else
12629 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
12630 # As above, before 10.5 / Darwin9 this does not work.
12631 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
12632 enable_darwin_at_rpath=no
12635 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
12636 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
12637 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
12638 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
12640 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
12641 enable_darwin_at_rpath=yes
12643 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
12644 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
12646 esac
12651 archive_cmds_need_lc=no
12652 hardcode_direct=no
12653 hardcode_automatic=yes
12654 hardcode_shlibpath_var=unsupported
12655 if test "$lt_cv_ld_force_load" = "yes"; then
12656 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\"`'
12657 else
12658 whole_archive_flag_spec=''
12660 link_all_deplibs=yes
12661 allow_undefined_flag="$_lt_dar_allow_undefined"
12662 case $cc_basename in
12663 ifort*) _lt_dar_can_shared=yes ;;
12664 *) _lt_dar_can_shared=$GCC ;;
12665 esac
12666 if test "$_lt_dar_can_shared" = "yes"; then
12667 output_verbose_link_cmd=func_echo_all
12668 _lt_install_name='\$rpath/\$soname'
12669 if test "x$enable_darwin_at_rpath" = "xyes"; then
12670 _lt_install_name='@rpath/\$soname'
12672 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
12673 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12674 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}"
12675 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}"
12677 else
12678 ld_shlibs=no
12683 dgux*)
12684 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12685 hardcode_libdir_flag_spec='-L$libdir'
12686 hardcode_shlibpath_var=no
12689 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12690 # support. Future versions do this automatically, but an explicit c++rt0.o
12691 # does not break anything, and helps significantly (at the cost of a little
12692 # extra space).
12693 freebsd2.2*)
12694 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12695 hardcode_libdir_flag_spec='-R$libdir'
12696 hardcode_direct=yes
12697 hardcode_shlibpath_var=no
12700 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12701 freebsd2.*)
12702 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12703 hardcode_direct=yes
12704 hardcode_minus_L=yes
12705 hardcode_shlibpath_var=no
12708 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12709 freebsd* | dragonfly*)
12710 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12711 hardcode_libdir_flag_spec='-R$libdir'
12712 hardcode_direct=yes
12713 hardcode_shlibpath_var=no
12716 hpux9*)
12717 if test "$GCC" = yes; then
12718 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'
12719 else
12720 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'
12722 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12723 hardcode_libdir_separator=:
12724 hardcode_direct=yes
12726 # hardcode_minus_L: Not really in the search PATH,
12727 # but as the default location of the library.
12728 hardcode_minus_L=yes
12729 export_dynamic_flag_spec='${wl}-E'
12732 hpux10*)
12733 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12734 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12735 else
12736 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12738 if test "$with_gnu_ld" = no; then
12739 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12740 hardcode_libdir_flag_spec_ld='+b $libdir'
12741 hardcode_libdir_separator=:
12742 hardcode_direct=yes
12743 hardcode_direct_absolute=yes
12744 export_dynamic_flag_spec='${wl}-E'
12745 # hardcode_minus_L: Not really in the search PATH,
12746 # but as the default location of the library.
12747 hardcode_minus_L=yes
12751 hpux11*)
12752 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
12753 case $host_cpu in
12754 hppa*64*)
12755 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12757 ia64*)
12758 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12761 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12763 esac
12764 else
12765 case $host_cpu in
12766 hppa*64*)
12767 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12769 ia64*)
12770 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12774 # Older versions of the 11.00 compiler do not understand -b yet
12775 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
12776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
12777 $as_echo_n "checking if $CC understands -b... " >&6; }
12778 if ${lt_cv_prog_compiler__b+:} false; then :
12779 $as_echo_n "(cached) " >&6
12780 else
12781 lt_cv_prog_compiler__b=no
12782 save_LDFLAGS="$LDFLAGS"
12783 LDFLAGS="$LDFLAGS -b"
12784 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12785 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12786 # The linker can only warn and ignore the option if not recognized
12787 # So say no if there are warnings
12788 if test -s conftest.err; then
12789 # Append any errors to the config.log.
12790 cat conftest.err 1>&5
12791 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
12792 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12793 if diff conftest.exp conftest.er2 >/dev/null; then
12794 lt_cv_prog_compiler__b=yes
12796 else
12797 lt_cv_prog_compiler__b=yes
12800 $RM -r conftest*
12801 LDFLAGS="$save_LDFLAGS"
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
12805 $as_echo "$lt_cv_prog_compiler__b" >&6; }
12807 if test x"$lt_cv_prog_compiler__b" = xyes; then
12808 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12809 else
12810 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12814 esac
12816 if test "$with_gnu_ld" = no; then
12817 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12818 hardcode_libdir_separator=:
12820 case $host_cpu in
12821 hppa*64*|ia64*)
12822 hardcode_direct=no
12823 hardcode_shlibpath_var=no
12826 hardcode_direct=yes
12827 hardcode_direct_absolute=yes
12828 export_dynamic_flag_spec='${wl}-E'
12830 # hardcode_minus_L: Not really in the search PATH,
12831 # but as the default location of the library.
12832 hardcode_minus_L=yes
12834 esac
12838 irix5* | irix6* | nonstopux*)
12839 if test "$GCC" = yes; then
12840 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'
12841 # Try to use the -exported_symbol ld option, if it does not
12842 # work, assume that -exports_file does not work either and
12843 # implicitly export all symbols.
12844 save_LDFLAGS="$LDFLAGS"
12845 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12846 if test x$gcc_no_link = xyes; then
12847 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12850 /* end confdefs.h. */
12851 int foo(void) {}
12852 _ACEOF
12853 if ac_fn_c_try_link "$LINENO"; then :
12854 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'
12857 rm -f core conftest.err conftest.$ac_objext \
12858 conftest$ac_exeext conftest.$ac_ext
12859 LDFLAGS="$save_LDFLAGS"
12860 else
12861 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'
12862 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'
12864 archive_cmds_need_lc='no'
12865 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12866 hardcode_libdir_separator=:
12867 inherit_rpath=yes
12868 link_all_deplibs=yes
12871 netbsd*)
12872 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12873 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12874 else
12875 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12877 hardcode_libdir_flag_spec='-R$libdir'
12878 hardcode_direct=yes
12879 hardcode_shlibpath_var=no
12882 newsos6)
12883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12884 hardcode_direct=yes
12885 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12886 hardcode_libdir_separator=:
12887 hardcode_shlibpath_var=no
12890 *nto* | *qnx*)
12893 openbsd*)
12894 if test -f /usr/libexec/ld.so; then
12895 hardcode_direct=yes
12896 hardcode_shlibpath_var=no
12897 hardcode_direct_absolute=yes
12898 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12899 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12900 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12901 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12902 export_dynamic_flag_spec='${wl}-E'
12903 else
12904 case $host_os in
12905 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12906 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12907 hardcode_libdir_flag_spec='-R$libdir'
12910 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12911 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12913 esac
12915 else
12916 ld_shlibs=no
12920 os2*)
12921 hardcode_libdir_flag_spec='-L$libdir'
12922 hardcode_minus_L=yes
12923 allow_undefined_flag=unsupported
12924 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'
12925 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12928 osf3*)
12929 if test "$GCC" = yes; then
12930 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12931 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'
12932 else
12933 allow_undefined_flag=' -expect_unresolved \*'
12934 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'
12936 archive_cmds_need_lc='no'
12937 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12938 hardcode_libdir_separator=:
12941 osf4* | osf5*) # as osf3* with the addition of -msym flag
12942 if test "$GCC" = yes; then
12943 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12944 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'
12945 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12946 else
12947 allow_undefined_flag=' -expect_unresolved \*'
12948 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'
12949 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~
12950 $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'
12952 # Both c and cxx compiler support -rpath directly
12953 hardcode_libdir_flag_spec='-rpath $libdir'
12955 archive_cmds_need_lc='no'
12956 hardcode_libdir_separator=:
12959 solaris*)
12960 no_undefined_flag=' -z defs'
12961 if test "$GCC" = yes; then
12962 wlarc='${wl}'
12963 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12964 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12965 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12966 else
12967 case `$CC -V 2>&1` in
12968 *"Compilers 5.0"*)
12969 wlarc=''
12970 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12971 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12972 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
12975 wlarc='${wl}'
12976 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
12977 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
12978 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
12980 esac
12982 hardcode_libdir_flag_spec='-R$libdir'
12983 hardcode_shlibpath_var=no
12984 case $host_os in
12985 solaris2.[0-5] | solaris2.[0-5].*) ;;
12987 # The compiler driver will combine and reorder linker options,
12988 # but understands `-z linker_flag'. GCC discards it without `$wl',
12989 # but is careful enough not to reorder.
12990 # Supported since Solaris 2.6 (maybe 2.5.1?)
12991 if test "$GCC" = yes; then
12992 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
12993 else
12994 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
12997 esac
12998 link_all_deplibs=yes
13001 sunos4*)
13002 if test "x$host_vendor" = xsequent; then
13003 # Use $CC to link under sequent, because it throws in some extra .o
13004 # files that make .init and .fini sections work.
13005 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13006 else
13007 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13009 hardcode_libdir_flag_spec='-L$libdir'
13010 hardcode_direct=yes
13011 hardcode_minus_L=yes
13012 hardcode_shlibpath_var=no
13015 sysv4)
13016 case $host_vendor in
13017 sni)
13018 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13019 hardcode_direct=yes # is this really true???
13021 siemens)
13022 ## LD is ld it makes a PLAMLIB
13023 ## CC just makes a GrossModule.
13024 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13025 reload_cmds='$CC -r -o $output$reload_objs'
13026 hardcode_direct=no
13028 motorola)
13029 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13030 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13032 esac
13033 runpath_var='LD_RUN_PATH'
13034 hardcode_shlibpath_var=no
13037 sysv4.3*)
13038 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13039 hardcode_shlibpath_var=no
13040 export_dynamic_flag_spec='-Bexport'
13043 sysv4*MP*)
13044 if test -d /usr/nec; then
13045 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13046 hardcode_shlibpath_var=no
13047 runpath_var=LD_RUN_PATH
13048 hardcode_runpath_var=yes
13049 ld_shlibs=yes
13053 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13054 no_undefined_flag='${wl}-z,text'
13055 archive_cmds_need_lc=no
13056 hardcode_shlibpath_var=no
13057 runpath_var='LD_RUN_PATH'
13059 if test "$GCC" = yes; then
13060 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13061 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13062 else
13063 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13064 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13068 sysv5* | sco3.2v5* | sco5v6*)
13069 # Note: We can NOT use -z defs as we might desire, because we do not
13070 # link with -lc, and that would cause any symbols used from libc to
13071 # always be unresolved, which means just about no library would
13072 # ever link correctly. If we're not using GNU ld we use -z text
13073 # though, which does catch some bad symbols but isn't as heavy-handed
13074 # as -z defs.
13075 no_undefined_flag='${wl}-z,text'
13076 allow_undefined_flag='${wl}-z,nodefs'
13077 archive_cmds_need_lc=no
13078 hardcode_shlibpath_var=no
13079 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13080 hardcode_libdir_separator=':'
13081 link_all_deplibs=yes
13082 export_dynamic_flag_spec='${wl}-Bexport'
13083 runpath_var='LD_RUN_PATH'
13085 if test "$GCC" = yes; then
13086 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13087 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13088 else
13089 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13090 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13094 uts4*)
13095 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13096 hardcode_libdir_flag_spec='-L$libdir'
13097 hardcode_shlibpath_var=no
13101 ld_shlibs=no
13103 esac
13105 if test x$host_vendor = xsni; then
13106 case $host in
13107 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13108 export_dynamic_flag_spec='${wl}-Blargedynsym'
13110 esac
13114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13115 $as_echo "$ld_shlibs" >&6; }
13116 test "$ld_shlibs" = no && can_build_shared=no
13118 with_gnu_ld=$with_gnu_ld
13135 # Do we need to explicitly link libc?
13137 case "x$archive_cmds_need_lc" in
13138 x|xyes)
13139 # Assume -lc should be added
13140 archive_cmds_need_lc=yes
13142 if test "$enable_shared" = yes && test "$GCC" = yes; then
13143 case $archive_cmds in
13144 *'~'*)
13145 # FIXME: we may have to deal with multi-command sequences.
13147 '$CC '*)
13148 # Test whether the compiler implicitly links with -lc since on some
13149 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13150 # to ld, don't add -lc before -lgcc.
13151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13152 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13153 if ${lt_cv_archive_cmds_need_lc+:} false; then :
13154 $as_echo_n "(cached) " >&6
13155 else
13156 $RM conftest*
13157 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13159 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13160 (eval $ac_compile) 2>&5
13161 ac_status=$?
13162 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13163 test $ac_status = 0; } 2>conftest.err; then
13164 soname=conftest
13165 lib=conftest
13166 libobjs=conftest.$ac_objext
13167 deplibs=
13168 wl=$lt_prog_compiler_wl
13169 pic_flag=$lt_prog_compiler_pic
13170 compiler_flags=-v
13171 linker_flags=-v
13172 verstring=
13173 output_objdir=.
13174 libname=conftest
13175 lt_save_allow_undefined_flag=$allow_undefined_flag
13176 allow_undefined_flag=
13177 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13178 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13179 ac_status=$?
13180 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13181 test $ac_status = 0; }
13182 then
13183 lt_cv_archive_cmds_need_lc=no
13184 else
13185 lt_cv_archive_cmds_need_lc=yes
13187 allow_undefined_flag=$lt_save_allow_undefined_flag
13188 else
13189 cat conftest.err 1>&5
13191 $RM conftest*
13194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
13195 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
13196 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
13198 esac
13201 esac
13359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13360 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13362 if test "$GCC" = yes; then
13363 case $host_os in
13364 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13365 *) lt_awk_arg="/^libraries:/" ;;
13366 esac
13367 case $host_os in
13368 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
13369 *) lt_sed_strip_eq="s,=/,/,g" ;;
13370 esac
13371 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
13372 case $lt_search_path_spec in
13373 *\;*)
13374 # if the path contains ";" then we assume it to be the separator
13375 # otherwise default to the standard path separator (i.e. ":") - it is
13376 # assumed that no part of a normal pathname contains ";" but that should
13377 # okay in the real world where ";" in dirpaths is itself problematic.
13378 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
13381 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
13383 esac
13384 # Ok, now we have the path, separated by spaces, we can step through it
13385 # and add multilib dir if necessary.
13386 lt_tmp_lt_search_path_spec=
13387 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13388 for lt_sys_path in $lt_search_path_spec; do
13389 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13390 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13391 else
13392 test -d "$lt_sys_path" && \
13393 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13395 done
13396 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
13397 BEGIN {RS=" "; FS="/|\n";} {
13398 lt_foo="";
13399 lt_count=0;
13400 for (lt_i = NF; lt_i > 0; lt_i--) {
13401 if ($lt_i != "" && $lt_i != ".") {
13402 if ($lt_i == "..") {
13403 lt_count++;
13404 } else {
13405 if (lt_count == 0) {
13406 lt_foo="/" $lt_i lt_foo;
13407 } else {
13408 lt_count--;
13413 if (lt_foo != "") { lt_freq[lt_foo]++; }
13414 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13416 # AWK program above erroneously prepends '/' to C:/dos/paths
13417 # for these hosts.
13418 case $host_os in
13419 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
13420 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
13421 esac
13422 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
13423 else
13424 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13426 library_names_spec=
13427 libname_spec='lib$name'
13428 soname_spec=
13429 shrext_cmds=".so"
13430 postinstall_cmds=
13431 postuninstall_cmds=
13432 finish_cmds=
13433 finish_eval=
13434 shlibpath_var=
13435 shlibpath_overrides_runpath=unknown
13436 version_type=none
13437 dynamic_linker="$host_os ld.so"
13438 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13439 need_lib_prefix=unknown
13440 hardcode_into_libs=no
13442 # when you set need_version to no, make sure it does not cause -set_version
13443 # flags to be left without arguments
13444 need_version=unknown
13446 case $host_os in
13447 aix3*)
13448 version_type=linux
13449 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13450 shlibpath_var=LIBPATH
13452 # AIX 3 has no versioning support, so we append a major version to the name.
13453 soname_spec='${libname}${release}${shared_ext}$major'
13456 aix[4-9]*)
13457 version_type=linux
13458 need_lib_prefix=no
13459 need_version=no
13460 hardcode_into_libs=yes
13461 if test "$host_cpu" = ia64; then
13462 # AIX 5 supports IA64
13463 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13464 shlibpath_var=LD_LIBRARY_PATH
13465 else
13466 # With GCC up to 2.95.x, collect2 would create an import file
13467 # for dependence libraries. The import file would start with
13468 # the line `#! .'. This would cause the generated library to
13469 # depend on `.', always an invalid library. This was fixed in
13470 # development snapshots of GCC prior to 3.0.
13471 case $host_os in
13472 aix4 | aix4.[01] | aix4.[01].*)
13473 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13474 echo ' yes '
13475 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13477 else
13478 can_build_shared=no
13481 esac
13482 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13483 # soname into executable. Probably we can add versioning support to
13484 # collect2, so additional links can be useful in future.
13485 if test "$aix_use_runtimelinking" = yes; then
13486 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13487 # instead of lib<name>.a to let people know that these are not
13488 # typical AIX shared libraries.
13489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13490 else
13491 # We preserve .a as extension for shared libraries through AIX4.2
13492 # and later when we are not doing run time linking.
13493 library_names_spec='${libname}${release}.a $libname.a'
13494 soname_spec='${libname}${release}${shared_ext}$major'
13496 shlibpath_var=LIBPATH
13500 amigaos*)
13501 case $host_cpu in
13502 powerpc)
13503 # Since July 2007 AmigaOS4 officially supports .so libraries.
13504 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13507 m68k)
13508 library_names_spec='$libname.ixlibrary $libname.a'
13509 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13510 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'
13512 esac
13515 beos*)
13516 library_names_spec='${libname}${shared_ext}'
13517 dynamic_linker="$host_os ld.so"
13518 shlibpath_var=LIBRARY_PATH
13521 bsdi[45]*)
13522 version_type=linux
13523 need_version=no
13524 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13525 soname_spec='${libname}${release}${shared_ext}$major'
13526 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13527 shlibpath_var=LD_LIBRARY_PATH
13528 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13529 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13530 # the default ld.so.conf also contains /usr/contrib/lib and
13531 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13532 # libtool to hard-code these into programs
13535 cygwin* | mingw* | pw32* | cegcc*)
13536 version_type=windows
13537 shrext_cmds=".dll"
13538 need_version=no
13539 need_lib_prefix=no
13541 case $GCC,$host_os in
13542 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13543 library_names_spec='$libname.dll.a'
13544 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13545 postinstall_cmds='base_file=`basename \${file}`~
13546 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13547 dldir=$destdir/`dirname \$dlpath`~
13548 test -d \$dldir || mkdir -p \$dldir~
13549 $install_prog $dir/$dlname \$dldir/$dlname~
13550 chmod a+x \$dldir/$dlname~
13551 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13552 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13554 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13555 dlpath=$dir/\$dldll~
13556 $RM \$dlpath'
13557 shlibpath_overrides_runpath=yes
13559 case $host_os in
13560 cygwin*)
13561 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13562 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13564 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
13566 mingw* | cegcc*)
13567 # MinGW DLLs use traditional 'lib' prefix
13568 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13570 pw32*)
13571 # pw32 DLLs use 'pw' prefix rather than 'lib'
13572 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13574 esac
13578 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13580 esac
13581 dynamic_linker='Win32 ld.exe'
13582 # FIXME: first we should search . and the directory the executable is in
13583 shlibpath_var=PATH
13586 darwin* | rhapsody*)
13587 dynamic_linker="$host_os dyld"
13588 version_type=darwin
13589 need_lib_prefix=no
13590 need_version=no
13591 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13592 soname_spec='${libname}${release}${major}$shared_ext'
13593 shlibpath_overrides_runpath=yes
13594 shlibpath_var=DYLD_LIBRARY_PATH
13595 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13597 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13598 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13601 dgux*)
13602 version_type=linux
13603 need_lib_prefix=no
13604 need_version=no
13605 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13606 soname_spec='${libname}${release}${shared_ext}$major'
13607 shlibpath_var=LD_LIBRARY_PATH
13610 freebsd* | dragonfly*)
13611 # DragonFly does not have aout. When/if they implement a new
13612 # versioning mechanism, adjust this.
13613 if test -x /usr/bin/objformat; then
13614 objformat=`/usr/bin/objformat`
13615 else
13616 case $host_os in
13617 freebsd[23].*) objformat=aout ;;
13618 *) objformat=elf ;;
13619 esac
13621 version_type=freebsd-$objformat
13622 case $version_type in
13623 freebsd-elf*)
13624 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13625 need_version=no
13626 need_lib_prefix=no
13628 freebsd-*)
13629 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13630 need_version=yes
13632 esac
13633 shlibpath_var=LD_LIBRARY_PATH
13634 case $host_os in
13635 freebsd2.*)
13636 shlibpath_overrides_runpath=yes
13638 freebsd3.[01]* | freebsdelf3.[01]*)
13639 shlibpath_overrides_runpath=yes
13640 hardcode_into_libs=yes
13642 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13643 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13644 shlibpath_overrides_runpath=no
13645 hardcode_into_libs=yes
13647 *) # from 4.6 on, and DragonFly
13648 shlibpath_overrides_runpath=yes
13649 hardcode_into_libs=yes
13651 esac
13654 haiku*)
13655 version_type=linux
13656 need_lib_prefix=no
13657 need_version=no
13658 dynamic_linker="$host_os runtime_loader"
13659 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13660 soname_spec='${libname}${release}${shared_ext}$major'
13661 shlibpath_var=LIBRARY_PATH
13662 shlibpath_overrides_runpath=yes
13663 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
13664 hardcode_into_libs=yes
13667 hpux9* | hpux10* | hpux11*)
13668 # Give a soname corresponding to the major version so that dld.sl refuses to
13669 # link against other versions.
13670 version_type=sunos
13671 need_lib_prefix=no
13672 need_version=no
13673 case $host_cpu in
13674 ia64*)
13675 shrext_cmds='.so'
13676 hardcode_into_libs=yes
13677 dynamic_linker="$host_os dld.so"
13678 shlibpath_var=LD_LIBRARY_PATH
13679 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13680 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13681 soname_spec='${libname}${release}${shared_ext}$major'
13682 if test "X$HPUX_IA64_MODE" = X32; then
13683 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13684 else
13685 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13687 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13689 hppa*64*)
13690 shrext_cmds='.sl'
13691 hardcode_into_libs=yes
13692 dynamic_linker="$host_os dld.sl"
13693 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13694 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13695 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13696 soname_spec='${libname}${release}${shared_ext}$major'
13697 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13698 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13701 shrext_cmds='.sl'
13702 dynamic_linker="$host_os dld.sl"
13703 shlibpath_var=SHLIB_PATH
13704 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
13708 esac
13709 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
13710 postinstall_cmds='chmod 555 $lib'
13711 # or fails outright, so override atomically:
13712 install_override_mode=555
13715 interix[3-9]*)
13716 version_type=linux
13717 need_lib_prefix=no
13718 need_version=no
13719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13720 soname_spec='${libname}${release}${shared_ext}$major'
13721 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13722 shlibpath_var=LD_LIBRARY_PATH
13723 shlibpath_overrides_runpath=no
13724 hardcode_into_libs=yes
13727 irix5* | irix6* | nonstopux*)
13728 case $host_os in
13729 nonstopux*) version_type=nonstopux ;;
13731 if test "$lt_cv_prog_gnu_ld" = yes; then
13732 version_type=linux
13733 else
13734 version_type=irix
13735 fi ;;
13736 esac
13737 need_lib_prefix=no
13738 need_version=no
13739 soname_spec='${libname}${release}${shared_ext}$major'
13740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13741 case $host_os in
13742 irix5* | nonstopux*)
13743 libsuff= shlibsuff=
13746 case $LD in # libtool.m4 will add one of these switches to LD
13747 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13748 libsuff= shlibsuff= libmagic=32-bit;;
13749 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13750 libsuff=32 shlibsuff=N32 libmagic=N32;;
13751 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13752 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13753 *) libsuff= shlibsuff= libmagic=never-match;;
13754 esac
13756 esac
13757 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13758 shlibpath_overrides_runpath=no
13759 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13760 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13761 hardcode_into_libs=yes
13764 # No shared lib support for Linux oldld, aout, or coff.
13765 linux*oldld* | linux*aout* | linux*coff*)
13766 dynamic_linker=no
13769 # This must be Linux ELF.
13771 # uclinux* changes (here and below) have been submitted to the libtool
13772 # project, but have not yet been accepted: they are GCC-local changes
13773 # for the time being. (See
13774 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
13775 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
13776 version_type=linux
13777 need_lib_prefix=no
13778 need_version=no
13779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13780 soname_spec='${libname}${release}${shared_ext}$major'
13781 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13782 shlibpath_var=LD_LIBRARY_PATH
13783 shlibpath_overrides_runpath=no
13785 # Some binutils ld are patched to set DT_RUNPATH
13786 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
13787 $as_echo_n "(cached) " >&6
13788 else
13789 lt_cv_shlibpath_overrides_runpath=no
13790 save_LDFLAGS=$LDFLAGS
13791 save_libdir=$libdir
13792 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13793 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13794 if test x$gcc_no_link = xyes; then
13795 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13798 /* end confdefs.h. */
13801 main ()
13805 return 0;
13807 _ACEOF
13808 if ac_fn_c_try_link "$LINENO"; then :
13809 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13810 lt_cv_shlibpath_overrides_runpath=yes
13813 rm -f core conftest.err conftest.$ac_objext \
13814 conftest$ac_exeext conftest.$ac_ext
13815 LDFLAGS=$save_LDFLAGS
13816 libdir=$save_libdir
13820 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
13822 # This implies no fast_install, which is unacceptable.
13823 # Some rework will be needed to allow for fast_install
13824 # before this can be enabled.
13825 hardcode_into_libs=yes
13827 # Append ld.so.conf contents to the search path
13828 if test -f /etc/ld.so.conf; then
13829 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' ' '`
13830 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13833 # We used to test for /lib/ld.so.1 and disable shared libraries on
13834 # powerpc, because MkLinux only supported shared libraries with the
13835 # GNU dynamic linker. Since this was broken with cross compilers,
13836 # most powerpc-linux boxes support dynamic linking these days and
13837 # people can always --disable-shared, the test was removed, and we
13838 # assume the GNU/Linux dynamic linker is in use.
13839 dynamic_linker='GNU/Linux ld.so'
13842 netbsd*)
13843 version_type=sunos
13844 need_lib_prefix=no
13845 need_version=no
13846 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13848 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13849 dynamic_linker='NetBSD (a.out) ld.so'
13850 else
13851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13852 soname_spec='${libname}${release}${shared_ext}$major'
13853 dynamic_linker='NetBSD ld.elf_so'
13855 shlibpath_var=LD_LIBRARY_PATH
13856 shlibpath_overrides_runpath=yes
13857 hardcode_into_libs=yes
13860 newsos6)
13861 version_type=linux
13862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13863 shlibpath_var=LD_LIBRARY_PATH
13864 shlibpath_overrides_runpath=yes
13867 *nto* | *qnx*)
13868 version_type=qnx
13869 need_lib_prefix=no
13870 need_version=no
13871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13872 soname_spec='${libname}${release}${shared_ext}$major'
13873 shlibpath_var=LD_LIBRARY_PATH
13874 shlibpath_overrides_runpath=no
13875 hardcode_into_libs=yes
13876 dynamic_linker='ldqnx.so'
13879 openbsd*)
13880 version_type=sunos
13881 sys_lib_dlsearch_path_spec="/usr/lib"
13882 need_lib_prefix=no
13883 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13884 case $host_os in
13885 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13886 *) need_version=no ;;
13887 esac
13888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13890 shlibpath_var=LD_LIBRARY_PATH
13891 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13892 case $host_os in
13893 openbsd2.[89] | openbsd2.[89].*)
13894 shlibpath_overrides_runpath=no
13897 shlibpath_overrides_runpath=yes
13899 esac
13900 else
13901 shlibpath_overrides_runpath=yes
13905 os2*)
13906 libname_spec='$name'
13907 shrext_cmds=".dll"
13908 need_lib_prefix=no
13909 library_names_spec='$libname${shared_ext} $libname.a'
13910 dynamic_linker='OS/2 ld.exe'
13911 shlibpath_var=LIBPATH
13914 osf3* | osf4* | osf5*)
13915 version_type=osf
13916 need_lib_prefix=no
13917 need_version=no
13918 soname_spec='${libname}${release}${shared_ext}$major'
13919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13920 shlibpath_var=LD_LIBRARY_PATH
13921 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13922 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13925 rdos*)
13926 dynamic_linker=no
13929 solaris*)
13930 version_type=linux
13931 need_lib_prefix=no
13932 need_version=no
13933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13934 soname_spec='${libname}${release}${shared_ext}$major'
13935 shlibpath_var=LD_LIBRARY_PATH
13936 shlibpath_overrides_runpath=yes
13937 hardcode_into_libs=yes
13938 # ldd complains unless libraries are executable
13939 postinstall_cmds='chmod +x $lib'
13942 sunos4*)
13943 version_type=sunos
13944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13945 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13946 shlibpath_var=LD_LIBRARY_PATH
13947 shlibpath_overrides_runpath=yes
13948 if test "$with_gnu_ld" = yes; then
13949 need_lib_prefix=no
13951 need_version=yes
13954 sysv4 | sysv4.3*)
13955 version_type=linux
13956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13957 soname_spec='${libname}${release}${shared_ext}$major'
13958 shlibpath_var=LD_LIBRARY_PATH
13959 case $host_vendor in
13960 sni)
13961 shlibpath_overrides_runpath=no
13962 need_lib_prefix=no
13963 runpath_var=LD_RUN_PATH
13965 siemens)
13966 need_lib_prefix=no
13968 motorola)
13969 need_lib_prefix=no
13970 need_version=no
13971 shlibpath_overrides_runpath=no
13972 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13974 esac
13977 sysv4*MP*)
13978 if test -d /usr/nec ;then
13979 version_type=linux
13980 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13981 soname_spec='$libname${shared_ext}.$major'
13982 shlibpath_var=LD_LIBRARY_PATH
13986 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
13987 version_type=freebsd-elf
13988 need_lib_prefix=no
13989 need_version=no
13990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13991 soname_spec='${libname}${release}${shared_ext}$major'
13992 shlibpath_var=LD_LIBRARY_PATH
13993 shlibpath_overrides_runpath=yes
13994 hardcode_into_libs=yes
13995 if test "$with_gnu_ld" = yes; then
13996 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
13997 else
13998 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
13999 case $host_os in
14000 sco3.2v5*)
14001 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14003 esac
14005 sys_lib_dlsearch_path_spec='/usr/lib'
14008 tpf*)
14009 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14010 version_type=linux
14011 need_lib_prefix=no
14012 need_version=no
14013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14014 shlibpath_var=LD_LIBRARY_PATH
14015 shlibpath_overrides_runpath=no
14016 hardcode_into_libs=yes
14019 uts4*)
14020 version_type=linux
14021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14022 soname_spec='${libname}${release}${shared_ext}$major'
14023 shlibpath_var=LD_LIBRARY_PATH
14026 # Shared libraries for VwWorks, >= 7 only at this stage
14027 # and (fpic) still incompatible with "large" code models
14028 # in a few configurations. Only for RTP mode in any case,
14029 # and upon explicit request at configure time.
14030 vxworks7*)
14031 dynamic_linker=no
14032 case ${with_multisubdir}-${enable_shared} in
14033 *large*)
14035 *mrtp*-yes)
14036 version_type=linux
14037 need_lib_prefix=no
14038 need_version=no
14039 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14040 soname_spec='${libname}${release}${shared_ext}$major'
14041 dynamic_linker="$host_os module_loader"
14043 esac
14046 dynamic_linker=no
14048 esac
14049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14050 $as_echo "$dynamic_linker" >&6; }
14051 test "$dynamic_linker" = no && can_build_shared=no
14053 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14054 if test "$GCC" = yes; then
14055 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14058 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14059 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14061 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14062 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14157 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14158 hardcode_action=
14159 if test -n "$hardcode_libdir_flag_spec" ||
14160 test -n "$runpath_var" ||
14161 test "X$hardcode_automatic" = "Xyes" ; then
14163 # We can hardcode non-existent directories.
14164 if test "$hardcode_direct" != no &&
14165 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14166 # have to relink, otherwise we might link with an installed library
14167 # when we should be linking with a yet-to-be-installed one
14168 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14169 test "$hardcode_minus_L" != no; then
14170 # Linking always hardcodes the temporary library directory.
14171 hardcode_action=relink
14172 else
14173 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14174 hardcode_action=immediate
14176 else
14177 # We cannot hardcode anything, or else we can only hardcode existing
14178 # directories.
14179 hardcode_action=unsupported
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14182 $as_echo "$hardcode_action" >&6; }
14184 if test "$hardcode_action" = relink ||
14185 test "$inherit_rpath" = yes; then
14186 # Fast installation is not supported
14187 enable_fast_install=no
14188 elif test "$shlibpath_overrides_runpath" = yes ||
14189 test "$enable_shared" = no; then
14190 # Fast installation is not necessary
14191 enable_fast_install=needless
14199 if test "x$enable_dlopen" != xyes; then
14200 enable_dlopen=unknown
14201 enable_dlopen_self=unknown
14202 enable_dlopen_self_static=unknown
14203 else
14204 lt_cv_dlopen=no
14205 lt_cv_dlopen_libs=
14207 case $host_os in
14208 beos*)
14209 lt_cv_dlopen="load_add_on"
14210 lt_cv_dlopen_libs=
14211 lt_cv_dlopen_self=yes
14214 mingw* | pw32* | cegcc*)
14215 lt_cv_dlopen="LoadLibrary"
14216 lt_cv_dlopen_libs=
14219 cygwin*)
14220 lt_cv_dlopen="dlopen"
14221 lt_cv_dlopen_libs=
14224 darwin*)
14225 # if libdl is installed we need to link against it
14226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14227 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14228 if ${ac_cv_lib_dl_dlopen+:} false; then :
14229 $as_echo_n "(cached) " >&6
14230 else
14231 ac_check_lib_save_LIBS=$LIBS
14232 LIBS="-ldl $LIBS"
14233 if test x$gcc_no_link = xyes; then
14234 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14237 /* end confdefs.h. */
14239 /* Override any GCC internal prototype to avoid an error.
14240 Use char because int might match the return type of a GCC
14241 builtin and then its argument prototype would still apply. */
14242 #ifdef __cplusplus
14243 extern "C"
14244 #endif
14245 char dlopen ();
14247 main ()
14249 return dlopen ();
14251 return 0;
14253 _ACEOF
14254 if ac_fn_c_try_link "$LINENO"; then :
14255 ac_cv_lib_dl_dlopen=yes
14256 else
14257 ac_cv_lib_dl_dlopen=no
14259 rm -f core conftest.err conftest.$ac_objext \
14260 conftest$ac_exeext conftest.$ac_ext
14261 LIBS=$ac_check_lib_save_LIBS
14263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14264 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14265 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14266 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14267 else
14269 lt_cv_dlopen="dyld"
14270 lt_cv_dlopen_libs=
14271 lt_cv_dlopen_self=yes
14278 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14279 if test "x$ac_cv_func_shl_load" = xyes; then :
14280 lt_cv_dlopen="shl_load"
14281 else
14282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14283 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14284 if ${ac_cv_lib_dld_shl_load+:} false; then :
14285 $as_echo_n "(cached) " >&6
14286 else
14287 ac_check_lib_save_LIBS=$LIBS
14288 LIBS="-ldld $LIBS"
14289 if test x$gcc_no_link = xyes; then
14290 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14293 /* end confdefs.h. */
14295 /* Override any GCC internal prototype to avoid an error.
14296 Use char because int might match the return type of a GCC
14297 builtin and then its argument prototype would still apply. */
14298 #ifdef __cplusplus
14299 extern "C"
14300 #endif
14301 char shl_load ();
14303 main ()
14305 return shl_load ();
14307 return 0;
14309 _ACEOF
14310 if ac_fn_c_try_link "$LINENO"; then :
14311 ac_cv_lib_dld_shl_load=yes
14312 else
14313 ac_cv_lib_dld_shl_load=no
14315 rm -f core conftest.err conftest.$ac_objext \
14316 conftest$ac_exeext conftest.$ac_ext
14317 LIBS=$ac_check_lib_save_LIBS
14319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14320 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14321 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
14322 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14323 else
14324 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14325 if test "x$ac_cv_func_dlopen" = xyes; then :
14326 lt_cv_dlopen="dlopen"
14327 else
14328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14329 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14330 if ${ac_cv_lib_dl_dlopen+:} false; then :
14331 $as_echo_n "(cached) " >&6
14332 else
14333 ac_check_lib_save_LIBS=$LIBS
14334 LIBS="-ldl $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 dlopen ();
14349 main ()
14351 return dlopen ();
14353 return 0;
14355 _ACEOF
14356 if ac_fn_c_try_link "$LINENO"; then :
14357 ac_cv_lib_dl_dlopen=yes
14358 else
14359 ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
14366 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14367 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
14368 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14369 else
14370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14371 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14372 if ${ac_cv_lib_svld_dlopen+:} false; then :
14373 $as_echo_n "(cached) " >&6
14374 else
14375 ac_check_lib_save_LIBS=$LIBS
14376 LIBS="-lsvld $LIBS"
14377 if test x$gcc_no_link = xyes; then
14378 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14381 /* end confdefs.h. */
14383 /* Override any GCC internal prototype to avoid an error.
14384 Use char because int might match the return type of a GCC
14385 builtin and then its argument prototype would still apply. */
14386 #ifdef __cplusplus
14387 extern "C"
14388 #endif
14389 char dlopen ();
14391 main ()
14393 return dlopen ();
14395 return 0;
14397 _ACEOF
14398 if ac_fn_c_try_link "$LINENO"; then :
14399 ac_cv_lib_svld_dlopen=yes
14400 else
14401 ac_cv_lib_svld_dlopen=no
14403 rm -f core conftest.err conftest.$ac_objext \
14404 conftest$ac_exeext conftest.$ac_ext
14405 LIBS=$ac_check_lib_save_LIBS
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14408 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14409 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
14410 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14411 else
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14413 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14414 if ${ac_cv_lib_dld_dld_link+:} false; then :
14415 $as_echo_n "(cached) " >&6
14416 else
14417 ac_check_lib_save_LIBS=$LIBS
14418 LIBS="-ldld $LIBS"
14419 if test x$gcc_no_link = xyes; then
14420 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14423 /* end confdefs.h. */
14425 /* Override any GCC internal prototype to avoid an error.
14426 Use char because int might match the return type of a GCC
14427 builtin and then its argument prototype would still apply. */
14428 #ifdef __cplusplus
14429 extern "C"
14430 #endif
14431 char dld_link ();
14433 main ()
14435 return dld_link ();
14437 return 0;
14439 _ACEOF
14440 if ac_fn_c_try_link "$LINENO"; then :
14441 ac_cv_lib_dld_dld_link=yes
14442 else
14443 ac_cv_lib_dld_dld_link=no
14445 rm -f core conftest.err conftest.$ac_objext \
14446 conftest$ac_exeext conftest.$ac_ext
14447 LIBS=$ac_check_lib_save_LIBS
14449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14450 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14451 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
14452 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14471 esac
14473 if test "x$lt_cv_dlopen" != xno; then
14474 enable_dlopen=yes
14475 else
14476 enable_dlopen=no
14479 case $lt_cv_dlopen in
14480 dlopen)
14481 save_CPPFLAGS="$CPPFLAGS"
14482 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14484 save_LDFLAGS="$LDFLAGS"
14485 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14487 save_LIBS="$LIBS"
14488 LIBS="$lt_cv_dlopen_libs $LIBS"
14490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14491 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14492 if ${lt_cv_dlopen_self+:} false; then :
14493 $as_echo_n "(cached) " >&6
14494 else
14495 if test "$cross_compiling" = yes; then :
14496 lt_cv_dlopen_self=cross
14497 else
14498 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14499 lt_status=$lt_dlunknown
14500 cat > conftest.$ac_ext <<_LT_EOF
14501 #line 14501 "configure"
14502 #include "confdefs.h"
14504 #if HAVE_DLFCN_H
14505 #include <dlfcn.h>
14506 #endif
14508 #include <stdio.h>
14510 #ifdef RTLD_GLOBAL
14511 # define LT_DLGLOBAL RTLD_GLOBAL
14512 #else
14513 # ifdef DL_GLOBAL
14514 # define LT_DLGLOBAL DL_GLOBAL
14515 # else
14516 # define LT_DLGLOBAL 0
14517 # endif
14518 #endif
14520 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14521 find out it does not work in some platform. */
14522 #ifndef LT_DLLAZY_OR_NOW
14523 # ifdef RTLD_LAZY
14524 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14525 # else
14526 # ifdef DL_LAZY
14527 # define LT_DLLAZY_OR_NOW DL_LAZY
14528 # else
14529 # ifdef RTLD_NOW
14530 # define LT_DLLAZY_OR_NOW RTLD_NOW
14531 # else
14532 # ifdef DL_NOW
14533 # define LT_DLLAZY_OR_NOW DL_NOW
14534 # else
14535 # define LT_DLLAZY_OR_NOW 0
14536 # endif
14537 # endif
14538 # endif
14539 # endif
14540 #endif
14542 /* When -fvisbility=hidden is used, assume the code has been annotated
14543 correspondingly for the symbols needed. */
14544 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14545 void fnord () __attribute__((visibility("default")));
14546 #endif
14548 void fnord () { int i=42; }
14549 int main ()
14551 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14552 int status = $lt_dlunknown;
14554 if (self)
14556 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14557 else
14559 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14560 else puts (dlerror ());
14562 /* dlclose (self); */
14564 else
14565 puts (dlerror ());
14567 return status;
14569 _LT_EOF
14570 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14571 (eval $ac_link) 2>&5
14572 ac_status=$?
14573 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14574 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14575 (./conftest; exit; ) >&5 2>/dev/null
14576 lt_status=$?
14577 case x$lt_status in
14578 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14579 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14580 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14581 esac
14582 else :
14583 # compilation failed
14584 lt_cv_dlopen_self=no
14587 rm -fr conftest*
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14592 $as_echo "$lt_cv_dlopen_self" >&6; }
14594 if test "x$lt_cv_dlopen_self" = xyes; then
14595 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14597 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14598 if ${lt_cv_dlopen_self_static+:} false; then :
14599 $as_echo_n "(cached) " >&6
14600 else
14601 if test "$cross_compiling" = yes; then :
14602 lt_cv_dlopen_self_static=cross
14603 else
14604 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14605 lt_status=$lt_dlunknown
14606 cat > conftest.$ac_ext <<_LT_EOF
14607 #line 14607 "configure"
14608 #include "confdefs.h"
14610 #if HAVE_DLFCN_H
14611 #include <dlfcn.h>
14612 #endif
14614 #include <stdio.h>
14616 #ifdef RTLD_GLOBAL
14617 # define LT_DLGLOBAL RTLD_GLOBAL
14618 #else
14619 # ifdef DL_GLOBAL
14620 # define LT_DLGLOBAL DL_GLOBAL
14621 # else
14622 # define LT_DLGLOBAL 0
14623 # endif
14624 #endif
14626 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14627 find out it does not work in some platform. */
14628 #ifndef LT_DLLAZY_OR_NOW
14629 # ifdef RTLD_LAZY
14630 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14631 # else
14632 # ifdef DL_LAZY
14633 # define LT_DLLAZY_OR_NOW DL_LAZY
14634 # else
14635 # ifdef RTLD_NOW
14636 # define LT_DLLAZY_OR_NOW RTLD_NOW
14637 # else
14638 # ifdef DL_NOW
14639 # define LT_DLLAZY_OR_NOW DL_NOW
14640 # else
14641 # define LT_DLLAZY_OR_NOW 0
14642 # endif
14643 # endif
14644 # endif
14645 # endif
14646 #endif
14648 /* When -fvisbility=hidden is used, assume the code has been annotated
14649 correspondingly for the symbols needed. */
14650 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
14651 void fnord () __attribute__((visibility("default")));
14652 #endif
14654 void fnord () { int i=42; }
14655 int main ()
14657 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14658 int status = $lt_dlunknown;
14660 if (self)
14662 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14663 else
14665 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14666 else puts (dlerror ());
14668 /* dlclose (self); */
14670 else
14671 puts (dlerror ());
14673 return status;
14675 _LT_EOF
14676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14677 (eval $ac_link) 2>&5
14678 ac_status=$?
14679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14680 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14681 (./conftest; exit; ) >&5 2>/dev/null
14682 lt_status=$?
14683 case x$lt_status in
14684 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14685 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14686 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14687 esac
14688 else :
14689 # compilation failed
14690 lt_cv_dlopen_self_static=no
14693 rm -fr conftest*
14697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14698 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14701 CPPFLAGS="$save_CPPFLAGS"
14702 LDFLAGS="$save_LDFLAGS"
14703 LIBS="$save_LIBS"
14705 esac
14707 case $lt_cv_dlopen_self in
14708 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14709 *) enable_dlopen_self=unknown ;;
14710 esac
14712 case $lt_cv_dlopen_self_static in
14713 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14714 *) enable_dlopen_self_static=unknown ;;
14715 esac
14734 striplib=
14735 old_striplib=
14736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14737 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14738 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14739 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14740 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14742 $as_echo "yes" >&6; }
14743 else
14744 # FIXME - insert some real tests, host_os isn't really good enough
14745 case $host_os in
14746 darwin*)
14747 if test -n "$STRIP" ; then
14748 striplib="$STRIP -x"
14749 old_striplib="$STRIP -S"
14750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14751 $as_echo "yes" >&6; }
14752 else
14753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14754 $as_echo "no" >&6; }
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14759 $as_echo "no" >&6; }
14761 esac
14775 # Report which library types will actually be built
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14777 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14779 $as_echo "$can_build_shared" >&6; }
14781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14782 $as_echo_n "checking whether to build shared libraries... " >&6; }
14783 test "$can_build_shared" = "no" && enable_shared=no
14785 # On AIX, shared libraries and static libraries use the same namespace, and
14786 # are all built from PIC.
14787 case $host_os in
14788 aix3*)
14789 test "$enable_shared" = yes && enable_static=no
14790 if test -n "$RANLIB"; then
14791 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14792 postinstall_cmds='$RANLIB $lib'
14796 aix[4-9]*)
14797 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14798 test "$enable_shared" = yes && enable_static=no
14801 esac
14802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14803 $as_echo "$enable_shared" >&6; }
14805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14806 $as_echo_n "checking whether to build static libraries... " >&6; }
14807 # Make sure either enable_shared or enable_static is yes.
14808 test "$enable_shared" = yes || enable_static=yes
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14810 $as_echo "$enable_static" >&6; }
14816 ac_ext=c
14817 ac_cpp='$CPP $CPPFLAGS'
14818 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14819 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14820 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14822 CC="$lt_save_CC"
14824 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14825 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14826 (test "X$CXX" != "Xg++"))) ; then
14827 ac_ext=cpp
14828 ac_cpp='$CXXCPP $CPPFLAGS'
14829 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14830 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14831 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14833 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14834 if test -z "$CXXCPP"; then
14835 if ${ac_cv_prog_CXXCPP+:} false; then :
14836 $as_echo_n "(cached) " >&6
14837 else
14838 # Double quotes because CXXCPP needs to be expanded
14839 for CXXCPP in "$CXX -E" "/lib/cpp"
14841 ac_preproc_ok=false
14842 for ac_cxx_preproc_warn_flag in '' yes
14844 # Use a header file that comes with gcc, so configuring glibc
14845 # with a fresh cross-compiler works.
14846 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14847 # <limits.h> exists even on freestanding compilers.
14848 # On the NeXT, cc -E runs the code through the compiler's parser,
14849 # not just through cpp. "Syntax error" is here to catch this case.
14850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14851 /* end confdefs.h. */
14852 #ifdef __STDC__
14853 # include <limits.h>
14854 #else
14855 # include <assert.h>
14856 #endif
14857 Syntax error
14858 _ACEOF
14859 if ac_fn_cxx_try_cpp "$LINENO"; then :
14861 else
14862 # Broken: fails on valid input.
14863 continue
14865 rm -f conftest.err conftest.i conftest.$ac_ext
14867 # OK, works on sane cases. Now check whether nonexistent headers
14868 # can be detected and how.
14869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14870 /* end confdefs.h. */
14871 #include <ac_nonexistent.h>
14872 _ACEOF
14873 if ac_fn_cxx_try_cpp "$LINENO"; then :
14874 # Broken: success on invalid input.
14875 continue
14876 else
14877 # Passes both tests.
14878 ac_preproc_ok=:
14879 break
14881 rm -f conftest.err conftest.i conftest.$ac_ext
14883 done
14884 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14885 rm -f conftest.i conftest.err conftest.$ac_ext
14886 if $ac_preproc_ok; then :
14887 break
14890 done
14891 ac_cv_prog_CXXCPP=$CXXCPP
14894 CXXCPP=$ac_cv_prog_CXXCPP
14895 else
14896 ac_cv_prog_CXXCPP=$CXXCPP
14898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14899 $as_echo "$CXXCPP" >&6; }
14900 ac_preproc_ok=false
14901 for ac_cxx_preproc_warn_flag in '' yes
14903 # Use a header file that comes with gcc, so configuring glibc
14904 # with a fresh cross-compiler works.
14905 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14906 # <limits.h> exists even on freestanding compilers.
14907 # On the NeXT, cc -E runs the code through the compiler's parser,
14908 # not just through cpp. "Syntax error" is here to catch this case.
14909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14910 /* end confdefs.h. */
14911 #ifdef __STDC__
14912 # include <limits.h>
14913 #else
14914 # include <assert.h>
14915 #endif
14916 Syntax error
14917 _ACEOF
14918 if ac_fn_cxx_try_cpp "$LINENO"; then :
14920 else
14921 # Broken: fails on valid input.
14922 continue
14924 rm -f conftest.err conftest.i conftest.$ac_ext
14926 # OK, works on sane cases. Now check whether nonexistent headers
14927 # can be detected and how.
14928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14929 /* end confdefs.h. */
14930 #include <ac_nonexistent.h>
14931 _ACEOF
14932 if ac_fn_cxx_try_cpp "$LINENO"; then :
14933 # Broken: success on invalid input.
14934 continue
14935 else
14936 # Passes both tests.
14937 ac_preproc_ok=:
14938 break
14940 rm -f conftest.err conftest.i conftest.$ac_ext
14942 done
14943 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14944 rm -f conftest.i conftest.err conftest.$ac_ext
14945 if $ac_preproc_ok; then :
14947 else
14948 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14949 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14950 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
14951 See \`config.log' for more details" "$LINENO" 5; }
14954 ac_ext=c
14955 ac_cpp='$CPP $CPPFLAGS'
14956 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14957 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14958 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14960 else
14961 _lt_caught_CXX_error=yes
14964 ac_ext=cpp
14965 ac_cpp='$CXXCPP $CPPFLAGS'
14966 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14967 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14968 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14970 archive_cmds_need_lc_CXX=no
14971 allow_undefined_flag_CXX=
14972 always_export_symbols_CXX=no
14973 archive_expsym_cmds_CXX=
14974 compiler_needs_object_CXX=no
14975 export_dynamic_flag_spec_CXX=
14976 hardcode_direct_CXX=no
14977 hardcode_direct_absolute_CXX=no
14978 hardcode_libdir_flag_spec_CXX=
14979 hardcode_libdir_flag_spec_ld_CXX=
14980 hardcode_libdir_separator_CXX=
14981 hardcode_minus_L_CXX=no
14982 hardcode_shlibpath_var_CXX=unsupported
14983 hardcode_automatic_CXX=no
14984 inherit_rpath_CXX=no
14985 module_cmds_CXX=
14986 module_expsym_cmds_CXX=
14987 link_all_deplibs_CXX=unknown
14988 old_archive_cmds_CXX=$old_archive_cmds
14989 reload_flag_CXX=$reload_flag
14990 reload_cmds_CXX=$reload_cmds
14991 no_undefined_flag_CXX=
14992 whole_archive_flag_spec_CXX=
14993 enable_shared_with_static_runtimes_CXX=no
14995 # Source file extension for C++ test sources.
14996 ac_ext=cpp
14998 # Object file extension for compiled C++ test sources.
14999 objext=o
15000 objext_CXX=$objext
15002 # No sense in running all these tests if we already determined that
15003 # the CXX compiler isn't working. Some variables (like enable_shared)
15004 # are currently assumed to apply to all compilers on this platform,
15005 # and will be corrupted by setting them based on a non-working compiler.
15006 if test "$_lt_caught_CXX_error" != yes; then
15007 # Code to be used in simple compile tests
15008 lt_simple_compile_test_code="int some_variable = 0;"
15010 # Code to be used in simple link tests
15011 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
15013 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15020 # If no C compiler was specified, use CC.
15021 LTCC=${LTCC-"$CC"}
15023 # If no C compiler flags were specified, use CFLAGS.
15024 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15026 # Allow CC to be a program name with arguments.
15027 compiler=$CC
15030 # save warnings/boilerplate of simple test code
15031 ac_outfile=conftest.$ac_objext
15032 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15033 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15034 _lt_compiler_boilerplate=`cat conftest.err`
15035 $RM conftest*
15037 ac_outfile=conftest.$ac_objext
15038 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15039 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15040 _lt_linker_boilerplate=`cat conftest.err`
15041 $RM -r conftest*
15044 # Allow CC to be a program name with arguments.
15045 lt_save_CC=$CC
15046 lt_save_LD=$LD
15047 lt_save_GCC=$GCC
15048 GCC=$GXX
15049 lt_save_with_gnu_ld=$with_gnu_ld
15050 lt_save_path_LD=$lt_cv_path_LD
15051 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15052 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15053 else
15054 $as_unset lt_cv_prog_gnu_ld
15056 if test -n "${lt_cv_path_LDCXX+set}"; then
15057 lt_cv_path_LD=$lt_cv_path_LDCXX
15058 else
15059 $as_unset lt_cv_path_LD
15061 test -z "${LDCXX+set}" || LD=$LDCXX
15062 CC=${CXX-"c++"}
15063 compiler=$CC
15064 compiler_CXX=$CC
15065 for cc_temp in $compiler""; do
15066 case $cc_temp in
15067 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
15068 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15069 \-*) ;;
15070 *) break;;
15071 esac
15072 done
15073 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
15076 if test -n "$compiler"; then
15077 # We don't want -fno-exception when compiling C++ code, so set the
15078 # no_builtin_flag separately
15079 if test "$GXX" = yes; then
15080 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15081 else
15082 lt_prog_compiler_no_builtin_flag_CXX=
15085 if test "$GXX" = yes; then
15086 # Set up default GNU C++ configuration
15090 # Check whether --with-gnu-ld was given.
15091 if test "${with_gnu_ld+set}" = set; then :
15092 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
15093 else
15094 with_gnu_ld=no
15097 ac_prog=ld
15098 if test "$GCC" = yes; then
15099 # Check if gcc -print-prog-name=ld gives a path.
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
15101 $as_echo_n "checking for ld used by $CC... " >&6; }
15102 case $host in
15103 *-*-mingw*)
15104 # gcc leaves a trailing carriage return which upsets mingw
15105 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15107 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15108 esac
15109 case $ac_prog in
15110 # Accept absolute paths.
15111 [\\/]* | ?:[\\/]*)
15112 re_direlt='/[^/][^/]*/\.\./'
15113 # Canonicalize the pathname of ld
15114 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
15115 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
15116 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
15117 done
15118 test -z "$LD" && LD="$ac_prog"
15121 # If it fails, then pretend we aren't using GCC.
15122 ac_prog=ld
15125 # If it is relative, then search for the first ld in PATH.
15126 with_gnu_ld=unknown
15128 esac
15129 elif test "$with_gnu_ld" = yes; then
15130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
15131 $as_echo_n "checking for GNU ld... " >&6; }
15132 else
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
15134 $as_echo_n "checking for non-GNU ld... " >&6; }
15136 if ${lt_cv_path_LD+:} false; then :
15137 $as_echo_n "(cached) " >&6
15138 else
15139 if test -z "$LD"; then
15140 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15141 for ac_dir in $PATH; do
15142 IFS="$lt_save_ifs"
15143 test -z "$ac_dir" && ac_dir=.
15144 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15145 lt_cv_path_LD="$ac_dir/$ac_prog"
15146 # Check to see if the program is GNU ld. I'd rather use --version,
15147 # but apparently some variants of GNU ld only accept -v.
15148 # Break only if it was the GNU/non-GNU ld that we prefer.
15149 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15150 *GNU* | *'with BFD'*)
15151 test "$with_gnu_ld" != no && break
15154 test "$with_gnu_ld" != yes && break
15156 esac
15158 done
15159 IFS="$lt_save_ifs"
15160 else
15161 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15165 LD="$lt_cv_path_LD"
15166 if test -n "$LD"; then
15167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15168 $as_echo "$LD" >&6; }
15169 else
15170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15171 $as_echo "no" >&6; }
15173 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
15174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15175 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15176 if ${lt_cv_prog_gnu_ld+:} false; then :
15177 $as_echo_n "(cached) " >&6
15178 else
15179 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15180 case `$LD -v 2>&1 </dev/null` in
15181 *GNU* | *'with BFD'*)
15182 lt_cv_prog_gnu_ld=yes
15185 lt_cv_prog_gnu_ld=no
15187 esac
15189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15190 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15191 with_gnu_ld=$lt_cv_prog_gnu_ld
15199 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15200 # archiving commands below assume that GNU ld is being used.
15201 if test "$with_gnu_ld" = yes; then
15202 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15203 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'
15205 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15206 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15208 # If archive_cmds runs LD, not CC, wlarc should be empty
15209 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15210 # investigate it a little bit more. (MM)
15211 wlarc='${wl}'
15213 # ancient GNU ld didn't support --whole-archive et. al.
15214 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15215 $GREP 'no-whole-archive' > /dev/null; then
15216 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15217 else
15218 whole_archive_flag_spec_CXX=
15220 else
15221 with_gnu_ld=no
15222 wlarc=
15224 # A generic and very simple default shared library creation
15225 # command for GNU C++ for the case where it uses the native
15226 # linker, instead of GNU ld. If possible, this setting should
15227 # overridden to take advantage of the native linker features on
15228 # the platform it is being used on.
15229 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15232 # Commands to make compiler produce verbose output that lists
15233 # what "hidden" libraries, object files and flags are used when
15234 # linking a shared library.
15235 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
15237 else
15238 GXX=no
15239 with_gnu_ld=no
15240 wlarc=
15243 # PORTME: fill in a description of your system's C++ link characteristics
15244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15245 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15246 ld_shlibs_CXX=yes
15247 case $host_os in
15248 aix3*)
15249 # FIXME: insert proper C++ library support
15250 ld_shlibs_CXX=no
15252 aix[4-9]*)
15253 if test "$host_cpu" = ia64; then
15254 # On IA64, the linker does run time linking by default, so we don't
15255 # have to do anything special.
15256 aix_use_runtimelinking=no
15257 exp_sym_flag='-Bexport'
15258 no_entry_flag=""
15259 else
15260 aix_use_runtimelinking=no
15262 # Test if we are trying to use run time linking or normal
15263 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15264 # need to do runtime linking.
15265 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15266 for ld_flag in $LDFLAGS; do
15267 case $ld_flag in
15268 *-brtl*)
15269 aix_use_runtimelinking=yes
15270 break
15272 esac
15273 done
15275 esac
15277 exp_sym_flag='-bexport'
15278 no_entry_flag='-bnoentry'
15281 # When large executables or shared objects are built, AIX ld can
15282 # have problems creating the table of contents. If linking a library
15283 # or program results in "error TOC overflow" add -mminimal-toc to
15284 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15285 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15287 archive_cmds_CXX=''
15288 hardcode_direct_CXX=yes
15289 hardcode_direct_absolute_CXX=yes
15290 hardcode_libdir_separator_CXX=':'
15291 link_all_deplibs_CXX=yes
15292 file_list_spec_CXX='${wl}-f,'
15294 if test "$GXX" = yes; then
15295 case $host_os in aix4.[012]|aix4.[012].*)
15296 # We only want to do this on AIX 4.2 and lower, the check
15297 # below for broken collect2 doesn't work under 4.3+
15298 collect2name=`${CC} -print-prog-name=collect2`
15299 if test -f "$collect2name" &&
15300 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15301 then
15302 # We have reworked collect2
15304 else
15305 # We have old collect2
15306 hardcode_direct_CXX=unsupported
15307 # It fails to find uninstalled libraries when the uninstalled
15308 # path is not listed in the libpath. Setting hardcode_minus_L
15309 # to unsupported forces relinking
15310 hardcode_minus_L_CXX=yes
15311 hardcode_libdir_flag_spec_CXX='-L$libdir'
15312 hardcode_libdir_separator_CXX=
15314 esac
15315 shared_flag='-shared'
15316 if test "$aix_use_runtimelinking" = yes; then
15317 shared_flag="$shared_flag "'${wl}-G'
15319 else
15320 # not using gcc
15321 if test "$host_cpu" = ia64; then
15322 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15323 # chokes on -Wl,-G. The following line is correct:
15324 shared_flag='-G'
15325 else
15326 if test "$aix_use_runtimelinking" = yes; then
15327 shared_flag='${wl}-G'
15328 else
15329 shared_flag='${wl}-bM:SRE'
15334 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15335 # It seems that -bexpall does not export symbols beginning with
15336 # underscore (_), so it is better to generate a list of symbols to
15337 # export.
15338 always_export_symbols_CXX=yes
15339 if test "$aix_use_runtimelinking" = yes; then
15340 # Warning - without using the other runtime loading flags (-brtl),
15341 # -berok will link without error, but may produce a broken library.
15342 allow_undefined_flag_CXX='-berok'
15343 # Determine the default libpath from the value encoded in an empty
15344 # executable.
15345 if test x$gcc_no_link = xyes; then
15346 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15349 /* end confdefs.h. */
15352 main ()
15356 return 0;
15358 _ACEOF
15359 if ac_fn_cxx_try_link "$LINENO"; then :
15361 lt_aix_libpath_sed='
15362 /Import File Strings/,/^$/ {
15363 /^0/ {
15364 s/^0 *\(.*\)$/\1/
15368 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15369 # Check for a 64-bit object if we didn't find anything.
15370 if test -z "$aix_libpath"; then
15371 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15374 rm -f core conftest.err conftest.$ac_objext \
15375 conftest$ac_exeext conftest.$ac_ext
15376 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15378 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15380 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"
15381 else
15382 if test "$host_cpu" = ia64; then
15383 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15384 allow_undefined_flag_CXX="-z nodefs"
15385 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"
15386 else
15387 # Determine the default libpath from the value encoded in an
15388 # empty executable.
15389 if test x$gcc_no_link = xyes; then
15390 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15393 /* end confdefs.h. */
15396 main ()
15400 return 0;
15402 _ACEOF
15403 if ac_fn_cxx_try_link "$LINENO"; then :
15405 lt_aix_libpath_sed='
15406 /Import File Strings/,/^$/ {
15407 /^0/ {
15408 s/^0 *\(.*\)$/\1/
15412 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15413 # Check for a 64-bit object if we didn't find anything.
15414 if test -z "$aix_libpath"; then
15415 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15418 rm -f core conftest.err conftest.$ac_objext \
15419 conftest$ac_exeext conftest.$ac_ext
15420 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15422 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15423 # Warning - without using the other run time loading flags,
15424 # -berok will link without error, but may produce a broken library.
15425 no_undefined_flag_CXX=' ${wl}-bernotok'
15426 allow_undefined_flag_CXX=' ${wl}-berok'
15427 if test "$with_gnu_ld" = yes; then
15428 # We only use this code for GNU lds that support --whole-archive.
15429 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15430 else
15431 # Exported symbols can be pulled into shared objects from archives
15432 whole_archive_flag_spec_CXX='$convenience'
15434 archive_cmds_need_lc_CXX=yes
15435 # This is similar to how AIX traditionally builds its shared
15436 # libraries.
15437 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'
15442 beos*)
15443 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15444 allow_undefined_flag_CXX=unsupported
15445 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15446 # support --undefined. This deserves some investigation. FIXME
15447 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15448 else
15449 ld_shlibs_CXX=no
15453 chorus*)
15454 case $cc_basename in
15456 # FIXME: insert proper C++ library support
15457 ld_shlibs_CXX=no
15459 esac
15462 cygwin* | mingw* | pw32* | cegcc*)
15463 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15464 # as there is no search path for DLLs.
15465 hardcode_libdir_flag_spec_CXX='-L$libdir'
15466 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
15467 allow_undefined_flag_CXX=unsupported
15468 always_export_symbols_CXX=no
15469 enable_shared_with_static_runtimes_CXX=yes
15471 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15472 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'
15473 # If the export-symbols file already is a .def file (1st line
15474 # is EXPORTS), use it as is; otherwise, prepend...
15475 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15476 cp $export_symbols $output_objdir/$soname.def;
15477 else
15478 echo EXPORTS > $output_objdir/$soname.def;
15479 cat $export_symbols >> $output_objdir/$soname.def;
15481 $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'
15482 else
15483 ld_shlibs_CXX=no
15486 darwin* | rhapsody*)
15490 # Publish an arg to allow the user to select that Darwin host (and target)
15491 # libraries should be given install-names like @rpath/libfoo.dylib. This
15492 # requires that the user of the library then adds an 'rpath' to the DSO that
15493 # needs access.
15494 # NOTE: there are defaults below, for systems that support rpaths. The person
15495 # configuring can override the defaults for any system version that supports
15496 # them - they are, however, forced off for system versions without support.
15497 # Check whether --enable-darwin-at-rpath was given.
15498 if test "${enable_darwin_at_rpath+set}" = set; then :
15499 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
15500 # This is not supported before macOS 10.5 / Darwin9.
15501 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
15502 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
15503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
15504 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
15505 enable_darwin_at_rpath=no
15507 esac
15509 else
15510 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
15511 # As above, before 10.5 / Darwin9 this does not work.
15512 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
15513 enable_darwin_at_rpath=no
15516 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
15517 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
15518 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
15519 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
15520 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
15521 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
15522 enable_darwin_at_rpath=yes
15524 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
15525 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
15527 esac
15532 archive_cmds_need_lc_CXX=no
15533 hardcode_direct_CXX=no
15534 hardcode_automatic_CXX=yes
15535 hardcode_shlibpath_var_CXX=unsupported
15536 if test "$lt_cv_ld_force_load" = "yes"; then
15537 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\"`'
15538 else
15539 whole_archive_flag_spec_CXX=''
15541 link_all_deplibs_CXX=yes
15542 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15543 case $cc_basename in
15544 ifort*) _lt_dar_can_shared=yes ;;
15545 *) _lt_dar_can_shared=$GCC ;;
15546 esac
15547 if test "$_lt_dar_can_shared" = "yes"; then
15548 output_verbose_link_cmd=func_echo_all
15549 _lt_install_name='\$rpath/\$soname'
15550 if test "x$enable_darwin_at_rpath" = "xyes"; then
15551 _lt_install_name='@rpath/\$soname'
15553 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
15554 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15555 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}"
15556 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}"
15557 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15558 _lt_install_name='\$rpath/\$soname'
15559 if test "x$enable_darwin_at_rpath" = "xyes"; then
15560 _lt_install_name='@rpath/\$soname'
15562 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}"
15563 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}"
15566 else
15567 ld_shlibs_CXX=no
15572 dgux*)
15573 case $cc_basename in
15574 ec++*)
15575 # FIXME: insert proper C++ library support
15576 ld_shlibs_CXX=no
15578 ghcx*)
15579 # Green Hills C++ Compiler
15580 # FIXME: insert proper C++ library support
15581 ld_shlibs_CXX=no
15584 # FIXME: insert proper C++ library support
15585 ld_shlibs_CXX=no
15587 esac
15590 freebsd2.*)
15591 # C++ shared libraries reported to be fairly broken before
15592 # switch to ELF
15593 ld_shlibs_CXX=no
15596 freebsd-elf*)
15597 archive_cmds_need_lc_CXX=no
15600 freebsd* | dragonfly*)
15601 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15602 # conventions
15603 ld_shlibs_CXX=yes
15606 gnu*)
15609 haiku*)
15610 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15611 link_all_deplibs_CXX=yes
15614 hpux9*)
15615 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15616 hardcode_libdir_separator_CXX=:
15617 export_dynamic_flag_spec_CXX='${wl}-E'
15618 hardcode_direct_CXX=yes
15619 hardcode_minus_L_CXX=yes # Not in the search PATH,
15620 # but as the default
15621 # location of the library.
15623 case $cc_basename in
15624 CC*)
15625 # FIXME: insert proper C++ library support
15626 ld_shlibs_CXX=no
15628 aCC*)
15629 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'
15630 # Commands to make compiler produce verbose output that lists
15631 # what "hidden" libraries, object files and flags are used when
15632 # linking a shared library.
15634 # There doesn't appear to be a way to prevent this compiler from
15635 # explicitly linking system object files so we need to strip them
15636 # from the output so that they don't get included in the library
15637 # dependencies.
15638 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"'
15641 if test "$GXX" = yes; then
15642 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'
15643 else
15644 # FIXME: insert proper C++ library support
15645 ld_shlibs_CXX=no
15648 esac
15651 hpux10*|hpux11*)
15652 if test $with_gnu_ld = no; then
15653 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15654 hardcode_libdir_separator_CXX=:
15656 case $host_cpu in
15657 hppa*64*|ia64*)
15660 export_dynamic_flag_spec_CXX='${wl}-E'
15662 esac
15664 case $host_cpu in
15665 hppa*64*|ia64*)
15666 hardcode_direct_CXX=no
15667 hardcode_shlibpath_var_CXX=no
15670 hardcode_direct_CXX=yes
15671 hardcode_direct_absolute_CXX=yes
15672 hardcode_minus_L_CXX=yes # Not in the search PATH,
15673 # but as the default
15674 # location of the library.
15676 esac
15678 case $cc_basename in
15679 CC*)
15680 # FIXME: insert proper C++ library support
15681 ld_shlibs_CXX=no
15683 aCC*)
15684 case $host_cpu in
15685 hppa*64*)
15686 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15688 ia64*)
15689 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15692 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15694 esac
15695 # Commands to make compiler produce verbose output that lists
15696 # what "hidden" libraries, object files and flags are used when
15697 # linking a shared library.
15699 # There doesn't appear to be a way to prevent this compiler from
15700 # explicitly linking system object files so we need to strip them
15701 # from the output so that they don't get included in the library
15702 # dependencies.
15703 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"'
15706 if test "$GXX" = yes; then
15707 if test $with_gnu_ld = no; then
15708 case $host_cpu in
15709 hppa*64*)
15710 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15712 ia64*)
15713 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15716 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'
15718 esac
15720 else
15721 # FIXME: insert proper C++ library support
15722 ld_shlibs_CXX=no
15725 esac
15728 interix[3-9]*)
15729 hardcode_direct_CXX=no
15730 hardcode_shlibpath_var_CXX=no
15731 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15732 export_dynamic_flag_spec_CXX='${wl}-E'
15733 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15734 # Instead, shared libraries are loaded at an image base (0x10000000 by
15735 # default) and relocated if they conflict, which is a slow very memory
15736 # consuming and fragmenting process. To avoid this, we pick a random,
15737 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15738 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15739 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'
15740 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'
15742 irix5* | irix6*)
15743 case $cc_basename in
15744 CC*)
15745 # SGI C++
15746 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'
15748 # Archives containing C++ object files must be created using
15749 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15750 # necessary to make sure instantiated templates are included
15751 # in the archive.
15752 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15755 if test "$GXX" = yes; then
15756 if test "$with_gnu_ld" = no; then
15757 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'
15758 else
15759 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'
15762 link_all_deplibs_CXX=yes
15764 esac
15765 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15766 hardcode_libdir_separator_CXX=:
15767 inherit_rpath_CXX=yes
15770 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15771 case $cc_basename in
15772 KCC*)
15773 # Kuck and Associates, Inc. (KAI) C++ Compiler
15775 # KCC will only create a shared library if the output file
15776 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15777 # to its proper name (with version) after linking.
15778 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'
15779 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'
15780 # Commands to make compiler produce verbose output that lists
15781 # what "hidden" libraries, object files and flags are used when
15782 # linking a shared library.
15784 # There doesn't appear to be a way to prevent this compiler from
15785 # explicitly linking system object files so we need to strip them
15786 # from the output so that they don't get included in the library
15787 # dependencies.
15788 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"'
15790 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15791 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15793 # Archives containing C++ object files must be created using
15794 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15795 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15797 icpc* | ecpc* )
15798 # Intel C++
15799 with_gnu_ld=yes
15800 # version 8.0 and above of icpc choke on multiply defined symbols
15801 # if we add $predep_objects and $postdep_objects, however 7.1 and
15802 # earlier do not add the objects themselves.
15803 case `$CC -V 2>&1` in
15804 *"Version 7."*)
15805 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15806 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'
15808 *) # Version 8.0 or newer
15809 tmp_idyn=
15810 case $host_cpu in
15811 ia64*) tmp_idyn=' -i_dynamic';;
15812 esac
15813 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15814 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'
15816 esac
15817 archive_cmds_need_lc_CXX=no
15818 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15819 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15820 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15822 pgCC* | pgcpp*)
15823 # Portland Group C++ compiler
15824 case `$CC -V` in
15825 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
15826 prelink_cmds_CXX='tpldir=Template.dir~
15827 rm -rf $tpldir~
15828 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15829 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
15830 old_archive_cmds_CXX='tpldir=Template.dir~
15831 rm -rf $tpldir~
15832 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15833 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
15834 $RANLIB $oldlib'
15835 archive_cmds_CXX='tpldir=Template.dir~
15836 rm -rf $tpldir~
15837 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15838 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15839 archive_expsym_cmds_CXX='tpldir=Template.dir~
15840 rm -rf $tpldir~
15841 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15842 $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'
15844 *) # Version 6 and above use weak symbols
15845 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15846 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'
15848 esac
15850 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15851 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15852 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'
15854 cxx*)
15855 # Compaq C++
15856 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15857 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'
15859 runpath_var=LD_RUN_PATH
15860 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15861 hardcode_libdir_separator_CXX=:
15863 # Commands to make compiler produce verbose output that lists
15864 # what "hidden" libraries, object files and flags are used when
15865 # linking a shared library.
15867 # There doesn't appear to be a way to prevent this compiler from
15868 # explicitly linking system object files so we need to strip them
15869 # from the output so that they don't get included in the library
15870 # dependencies.
15871 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'
15873 xl* | mpixl* | bgxl*)
15874 # IBM XL 8.0 on PPC, with GNU ld
15875 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15876 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15877 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15878 if test "x$supports_anon_versioning" = xyes; then
15879 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15880 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15881 echo "local: *; };" >> $output_objdir/$libname.ver~
15882 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15886 case `$CC -V 2>&1 | sed 5q` in
15887 *Sun\ C*)
15888 # Sun C++ 5.9
15889 no_undefined_flag_CXX=' -zdefs'
15890 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15891 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'
15892 hardcode_libdir_flag_spec_CXX='-R$libdir'
15893 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'
15894 compiler_needs_object_CXX=yes
15896 # Not sure whether something based on
15897 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15898 # would be better.
15899 output_verbose_link_cmd='func_echo_all'
15901 # Archives containing C++ object files must be created using
15902 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15903 # necessary to make sure instantiated templates are included
15904 # in the archive.
15905 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15907 esac
15909 esac
15912 lynxos*)
15913 # FIXME: insert proper C++ library support
15914 ld_shlibs_CXX=no
15917 m88k*)
15918 # FIXME: insert proper C++ library support
15919 ld_shlibs_CXX=no
15922 mvs*)
15923 case $cc_basename in
15924 cxx*)
15925 # FIXME: insert proper C++ library support
15926 ld_shlibs_CXX=no
15929 # FIXME: insert proper C++ library support
15930 ld_shlibs_CXX=no
15932 esac
15935 netbsd*)
15936 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15937 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15938 wlarc=
15939 hardcode_libdir_flag_spec_CXX='-R$libdir'
15940 hardcode_direct_CXX=yes
15941 hardcode_shlibpath_var_CXX=no
15943 # Workaround some broken pre-1.5 toolchains
15944 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15947 *nto* | *qnx*)
15948 ld_shlibs_CXX=yes
15951 openbsd2*)
15952 # C++ shared libraries are fairly broken
15953 ld_shlibs_CXX=no
15956 openbsd*)
15957 if test -f /usr/libexec/ld.so; then
15958 hardcode_direct_CXX=yes
15959 hardcode_shlibpath_var_CXX=no
15960 hardcode_direct_absolute_CXX=yes
15961 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15962 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15963 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15964 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15965 export_dynamic_flag_spec_CXX='${wl}-E'
15966 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15968 output_verbose_link_cmd=func_echo_all
15969 else
15970 ld_shlibs_CXX=no
15974 osf3* | osf4* | osf5*)
15975 case $cc_basename in
15976 KCC*)
15977 # Kuck and Associates, Inc. (KAI) C++ Compiler
15979 # KCC will only create a shared library if the output file
15980 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15981 # to its proper name (with version) after linking.
15982 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'
15984 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15985 hardcode_libdir_separator_CXX=:
15987 # Archives containing C++ object files must be created using
15988 # the KAI C++ compiler.
15989 case $host in
15990 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15991 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15992 esac
15994 RCC*)
15995 # Rational C++ 2.4.1
15996 # FIXME: insert proper C++ library support
15997 ld_shlibs_CXX=no
15999 cxx*)
16000 case $host in
16001 osf3*)
16002 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16003 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'
16004 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16007 allow_undefined_flag_CXX=' -expect_unresolved \*'
16008 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'
16009 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16010 echo "-hidden">> $lib.exp~
16011 $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~
16012 $RM $lib.exp'
16013 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
16015 esac
16017 hardcode_libdir_separator_CXX=:
16019 # Commands to make compiler produce verbose output that lists
16020 # what "hidden" libraries, object files and flags are used when
16021 # linking a shared library.
16023 # There doesn't appear to be a way to prevent this compiler from
16024 # explicitly linking system object files so we need to strip them
16025 # from the output so that they don't get included in the library
16026 # dependencies.
16027 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"'
16030 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16031 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
16032 case $host in
16033 osf3*)
16034 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'
16037 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'
16039 esac
16041 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
16042 hardcode_libdir_separator_CXX=:
16044 # Commands to make compiler produce verbose output that lists
16045 # what "hidden" libraries, object files and flags are used when
16046 # linking a shared library.
16047 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16049 else
16050 # FIXME: insert proper C++ library support
16051 ld_shlibs_CXX=no
16054 esac
16057 psos*)
16058 # FIXME: insert proper C++ library support
16059 ld_shlibs_CXX=no
16062 sunos4*)
16063 case $cc_basename in
16064 CC*)
16065 # Sun C++ 4.x
16066 # FIXME: insert proper C++ library support
16067 ld_shlibs_CXX=no
16069 lcc*)
16070 # Lucid
16071 # FIXME: insert proper C++ library support
16072 ld_shlibs_CXX=no
16075 # FIXME: insert proper C++ library support
16076 ld_shlibs_CXX=no
16078 esac
16081 solaris*)
16082 case $cc_basename in
16083 CC*)
16084 # Sun C++ 4.2, 5.x and Centerline C++
16085 archive_cmds_need_lc_CXX=yes
16086 no_undefined_flag_CXX=' -zdefs'
16087 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16088 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16089 $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'
16091 hardcode_libdir_flag_spec_CXX='-R$libdir'
16092 hardcode_shlibpath_var_CXX=no
16093 case $host_os in
16094 solaris2.[0-5] | solaris2.[0-5].*) ;;
16096 # The compiler driver will combine and reorder linker options,
16097 # but understands `-z linker_flag'.
16098 # Supported since Solaris 2.6 (maybe 2.5.1?)
16099 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
16101 esac
16102 link_all_deplibs_CXX=yes
16104 output_verbose_link_cmd='func_echo_all'
16106 # Archives containing C++ object files must be created using
16107 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16108 # necessary to make sure instantiated templates are included
16109 # in the archive.
16110 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16112 gcx*)
16113 # Green Hills C++ Compiler
16114 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16116 # The C++ compiler must be used to create the archive.
16117 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16120 # GNU C++ compiler with Solaris linker
16121 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16122 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16123 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
16124 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16125 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16126 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16128 # Commands to make compiler produce verbose output that lists
16129 # what "hidden" libraries, object files and flags are used when
16130 # linking a shared library.
16131 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16132 else
16133 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16134 # platform.
16135 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16136 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16137 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
16139 # Commands to make compiler produce verbose output that lists
16140 # what "hidden" libraries, object files and flags are used when
16141 # linking a shared library.
16142 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
16145 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16146 case $host_os in
16147 solaris2.[0-5] | solaris2.[0-5].*) ;;
16149 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16151 esac
16154 esac
16157 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16158 no_undefined_flag_CXX='${wl}-z,text'
16159 archive_cmds_need_lc_CXX=no
16160 hardcode_shlibpath_var_CXX=no
16161 runpath_var='LD_RUN_PATH'
16163 case $cc_basename in
16164 CC*)
16165 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16166 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16169 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16170 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16172 esac
16175 sysv5* | sco3.2v5* | sco5v6*)
16176 # Note: We can NOT use -z defs as we might desire, because we do not
16177 # link with -lc, and that would cause any symbols used from libc to
16178 # always be unresolved, which means just about no library would
16179 # ever link correctly. If we're not using GNU ld we use -z text
16180 # though, which does catch some bad symbols but isn't as heavy-handed
16181 # as -z defs.
16182 no_undefined_flag_CXX='${wl}-z,text'
16183 allow_undefined_flag_CXX='${wl}-z,nodefs'
16184 archive_cmds_need_lc_CXX=no
16185 hardcode_shlibpath_var_CXX=no
16186 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
16187 hardcode_libdir_separator_CXX=':'
16188 link_all_deplibs_CXX=yes
16189 export_dynamic_flag_spec_CXX='${wl}-Bexport'
16190 runpath_var='LD_RUN_PATH'
16192 case $cc_basename in
16193 CC*)
16194 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16195 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16196 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
16197 '"$old_archive_cmds_CXX"
16198 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
16199 '"$reload_cmds_CXX"
16202 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16203 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16205 esac
16208 tandem*)
16209 case $cc_basename in
16210 NCC*)
16211 # NonStop-UX NCC 3.20
16212 # FIXME: insert proper C++ library support
16213 ld_shlibs_CXX=no
16216 # FIXME: insert proper C++ library support
16217 ld_shlibs_CXX=no
16219 esac
16222 vxworks*)
16223 # For VxWorks ports, we assume the use of a GNU linker with
16224 # standard elf conventions.
16225 ld_shlibs_CXX=yes
16229 # FIXME: insert proper C++ library support
16230 ld_shlibs_CXX=no
16232 esac
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16235 $as_echo "$ld_shlibs_CXX" >&6; }
16236 test "$ld_shlibs_CXX" = no && can_build_shared=no
16238 GCC_CXX="$GXX"
16239 LD_CXX="$LD"
16241 ## CAVEAT EMPTOR:
16242 ## There is no encapsulation within the following macros, do not change
16243 ## the running order or otherwise move them around unless you know exactly
16244 ## what you are doing...
16245 # Dependencies to place before and after the object being linked:
16246 predep_objects_CXX=
16247 postdep_objects_CXX=
16248 predeps_CXX=
16249 postdeps_CXX=
16250 compiler_lib_search_path_CXX=
16252 cat > conftest.$ac_ext <<_LT_EOF
16253 class Foo
16255 public:
16256 Foo (void) { a = 0; }
16257 private:
16258 int a;
16260 _LT_EOF
16262 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16263 (eval $ac_compile) 2>&5
16264 ac_status=$?
16265 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16266 test $ac_status = 0; }; then
16267 # Parse the compiler output and extract the necessary
16268 # objects, libraries and library flags.
16270 # Sentinel used to keep track of whether or not we are before
16271 # the conftest object file.
16272 pre_test_object_deps_done=no
16274 for p in `eval "$output_verbose_link_cmd"`; do
16275 case $p in
16277 -L* | -R* | -l*)
16278 # Some compilers place space between "-{L,R}" and the path.
16279 # Remove the space.
16280 if test $p = "-L" ||
16281 test $p = "-R"; then
16282 prev=$p
16283 continue
16284 else
16285 prev=
16288 if test "$pre_test_object_deps_done" = no; then
16289 case $p in
16290 -L* | -R*)
16291 # Internal compiler library paths should come after those
16292 # provided the user. The postdeps already come after the
16293 # user supplied libs so there is no need to process them.
16294 if test -z "$compiler_lib_search_path_CXX"; then
16295 compiler_lib_search_path_CXX="${prev}${p}"
16296 else
16297 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16300 # The "-l" case would never come before the object being
16301 # linked, so don't bother handling this case.
16302 esac
16303 else
16304 if test -z "$postdeps_CXX"; then
16305 postdeps_CXX="${prev}${p}"
16306 else
16307 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16312 *.$objext)
16313 # This assumes that the test object file only shows up
16314 # once in the compiler output.
16315 if test "$p" = "conftest.$objext"; then
16316 pre_test_object_deps_done=yes
16317 continue
16320 if test "$pre_test_object_deps_done" = no; then
16321 if test -z "$predep_objects_CXX"; then
16322 predep_objects_CXX="$p"
16323 else
16324 predep_objects_CXX="$predep_objects_CXX $p"
16326 else
16327 if test -z "$postdep_objects_CXX"; then
16328 postdep_objects_CXX="$p"
16329 else
16330 postdep_objects_CXX="$postdep_objects_CXX $p"
16335 *) ;; # Ignore the rest.
16337 esac
16338 done
16340 # Clean up.
16341 rm -f a.out a.exe
16342 else
16343 echo "libtool.m4: error: problem compiling CXX test program"
16346 $RM -f confest.$objext
16348 # PORTME: override above test on systems where it is broken
16349 case $host_os in
16350 interix[3-9]*)
16351 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16352 # hack all around it, let's just trust "g++" to DTRT.
16353 predep_objects_CXX=
16354 postdep_objects_CXX=
16355 postdeps_CXX=
16358 linux*)
16359 case `$CC -V 2>&1 | sed 5q` in
16360 *Sun\ C*)
16361 # Sun C++ 5.9
16363 # The more standards-conforming stlport4 library is
16364 # incompatible with the Cstd library. Avoid specifying
16365 # it if it's in CXXFLAGS. Ignore libCrun as
16366 # -library=stlport4 depends on it.
16367 case " $CXX $CXXFLAGS " in
16368 *" -library=stlport4 "*)
16369 solaris_use_stlport4=yes
16371 esac
16373 if test "$solaris_use_stlport4" != yes; then
16374 postdeps_CXX='-library=Cstd -library=Crun'
16377 esac
16380 solaris*)
16381 case $cc_basename in
16382 CC*)
16383 # The more standards-conforming stlport4 library is
16384 # incompatible with the Cstd library. Avoid specifying
16385 # it if it's in CXXFLAGS. Ignore libCrun as
16386 # -library=stlport4 depends on it.
16387 case " $CXX $CXXFLAGS " in
16388 *" -library=stlport4 "*)
16389 solaris_use_stlport4=yes
16391 esac
16393 # Adding this requires a known-good setup of shared libraries for
16394 # Sun compiler versions before 5.6, else PIC objects from an old
16395 # archive will be linked into the output, leading to subtle bugs.
16396 if test "$solaris_use_stlport4" != yes; then
16397 postdeps_CXX='-library=Cstd -library=Crun'
16400 esac
16402 esac
16405 case " $postdeps_CXX " in
16406 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16407 esac
16408 compiler_lib_search_dirs_CXX=
16409 if test -n "${compiler_lib_search_path_CXX}"; then
16410 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16443 lt_prog_compiler_wl_CXX=
16444 lt_prog_compiler_pic_CXX=
16445 lt_prog_compiler_static_CXX=
16447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16448 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16450 # C++ specific cases for pic, static, wl, etc.
16451 if test "$GXX" = yes; then
16452 lt_prog_compiler_wl_CXX='-Wl,'
16453 lt_prog_compiler_static_CXX='-static'
16455 case $host_os in
16456 aix*)
16457 # All AIX code is PIC.
16458 if test "$host_cpu" = ia64; then
16459 # AIX 5 now supports IA64 processor
16460 lt_prog_compiler_static_CXX='-Bstatic'
16462 lt_prog_compiler_pic_CXX='-fPIC'
16465 amigaos*)
16466 case $host_cpu in
16467 powerpc)
16468 # see comment about AmigaOS4 .so support
16469 lt_prog_compiler_pic_CXX='-fPIC'
16471 m68k)
16472 # FIXME: we need at least 68020 code to build shared libraries, but
16473 # adding the `-m68020' flag to GCC prevents building anything better,
16474 # like `-m68040'.
16475 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16477 esac
16480 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16481 # PIC is the default for these OSes.
16483 mingw* | cygwin* | os2* | pw32* | cegcc*)
16484 # This hack is so that the source file can tell whether it is being
16485 # built for inclusion in a dll (and should export symbols for example).
16486 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16487 # (--disable-auto-import) libraries
16488 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16490 darwin* | rhapsody*)
16491 # PIC is the default on this platform
16492 # Common symbols not allowed in MH_DYLIB files
16493 lt_prog_compiler_pic_CXX='-fno-common'
16495 *djgpp*)
16496 # DJGPP does not support shared libraries at all
16497 lt_prog_compiler_pic_CXX=
16499 haiku*)
16500 # PIC is the default for Haiku.
16501 # The "-static" flag exists, but is broken.
16502 lt_prog_compiler_static_CXX=
16504 interix[3-9]*)
16505 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16506 # Instead, we relocate shared libraries at runtime.
16508 sysv4*MP*)
16509 if test -d /usr/nec; then
16510 lt_prog_compiler_pic_CXX=-Kconform_pic
16513 hpux*)
16514 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16515 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16516 # sets the default TLS model and affects inlining.
16517 case $host_cpu in
16518 hppa*64*)
16521 lt_prog_compiler_pic_CXX='-fPIC'
16523 esac
16525 *qnx* | *nto*)
16526 # QNX uses GNU C++, but need to define -shared option too, otherwise
16527 # it will coredump.
16528 lt_prog_compiler_pic_CXX='-fPIC -shared'
16531 lt_prog_compiler_pic_CXX='-fPIC'
16533 esac
16534 else
16535 case $host_os in
16536 aix[4-9]*)
16537 # All AIX code is PIC.
16538 if test "$host_cpu" = ia64; then
16539 # AIX 5 now supports IA64 processor
16540 lt_prog_compiler_static_CXX='-Bstatic'
16541 else
16542 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16545 chorus*)
16546 case $cc_basename in
16547 cxch68*)
16548 # Green Hills C++ Compiler
16549 # _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"
16551 esac
16553 dgux*)
16554 case $cc_basename in
16555 ec++*)
16556 lt_prog_compiler_pic_CXX='-KPIC'
16558 ghcx*)
16559 # Green Hills C++ Compiler
16560 lt_prog_compiler_pic_CXX='-pic'
16564 esac
16566 freebsd* | dragonfly*)
16567 # FreeBSD uses GNU C++
16569 hpux9* | hpux10* | hpux11*)
16570 case $cc_basename in
16571 CC*)
16572 lt_prog_compiler_wl_CXX='-Wl,'
16573 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16574 if test "$host_cpu" != ia64; then
16575 lt_prog_compiler_pic_CXX='+Z'
16578 aCC*)
16579 lt_prog_compiler_wl_CXX='-Wl,'
16580 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16581 case $host_cpu in
16582 hppa*64*|ia64*)
16583 # +Z the default
16586 lt_prog_compiler_pic_CXX='+Z'
16588 esac
16592 esac
16594 interix*)
16595 # This is c89, which is MS Visual C++ (no shared libs)
16596 # Anyone wants to do a port?
16598 irix5* | irix6* | nonstopux*)
16599 case $cc_basename in
16600 CC*)
16601 lt_prog_compiler_wl_CXX='-Wl,'
16602 lt_prog_compiler_static_CXX='-non_shared'
16603 # CC pic flag -KPIC is the default.
16607 esac
16609 linux* | k*bsd*-gnu | kopensolaris*-gnu)
16610 case $cc_basename in
16611 KCC*)
16612 # KAI C++ Compiler
16613 lt_prog_compiler_wl_CXX='--backend -Wl,'
16614 lt_prog_compiler_pic_CXX='-fPIC'
16616 ecpc* )
16617 # old Intel C++ for x86_64 which still supported -KPIC.
16618 lt_prog_compiler_wl_CXX='-Wl,'
16619 lt_prog_compiler_pic_CXX='-KPIC'
16620 lt_prog_compiler_static_CXX='-static'
16622 icpc* )
16623 # Intel C++, used to be incompatible with GCC.
16624 # ICC 10 doesn't accept -KPIC any more.
16625 lt_prog_compiler_wl_CXX='-Wl,'
16626 lt_prog_compiler_pic_CXX='-fPIC'
16627 lt_prog_compiler_static_CXX='-static'
16629 pgCC* | pgcpp*)
16630 # Portland Group C++ compiler
16631 lt_prog_compiler_wl_CXX='-Wl,'
16632 lt_prog_compiler_pic_CXX='-fpic'
16633 lt_prog_compiler_static_CXX='-Bstatic'
16635 cxx*)
16636 # Compaq C++
16637 # Make sure the PIC flag is empty. It appears that all Alpha
16638 # Linux and Compaq Tru64 Unix objects are PIC.
16639 lt_prog_compiler_pic_CXX=
16640 lt_prog_compiler_static_CXX='-non_shared'
16642 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
16643 # IBM XL 8.0, 9.0 on PPC and BlueGene
16644 lt_prog_compiler_wl_CXX='-Wl,'
16645 lt_prog_compiler_pic_CXX='-qpic'
16646 lt_prog_compiler_static_CXX='-qstaticlink'
16649 case `$CC -V 2>&1 | sed 5q` in
16650 *Sun\ C*)
16651 # Sun C++ 5.9
16652 lt_prog_compiler_pic_CXX='-KPIC'
16653 lt_prog_compiler_static_CXX='-Bstatic'
16654 lt_prog_compiler_wl_CXX='-Qoption ld '
16656 esac
16658 esac
16660 lynxos*)
16662 m88k*)
16664 mvs*)
16665 case $cc_basename in
16666 cxx*)
16667 lt_prog_compiler_pic_CXX='-W c,exportall'
16671 esac
16673 netbsd*)
16675 *qnx* | *nto*)
16676 # QNX uses GNU C++, but need to define -shared option too, otherwise
16677 # it will coredump.
16678 lt_prog_compiler_pic_CXX='-fPIC -shared'
16680 osf3* | osf4* | osf5*)
16681 case $cc_basename in
16682 KCC*)
16683 lt_prog_compiler_wl_CXX='--backend -Wl,'
16685 RCC*)
16686 # Rational C++ 2.4.1
16687 lt_prog_compiler_pic_CXX='-pic'
16689 cxx*)
16690 # Digital/Compaq C++
16691 lt_prog_compiler_wl_CXX='-Wl,'
16692 # Make sure the PIC flag is empty. It appears that all Alpha
16693 # Linux and Compaq Tru64 Unix objects are PIC.
16694 lt_prog_compiler_pic_CXX=
16695 lt_prog_compiler_static_CXX='-non_shared'
16699 esac
16701 psos*)
16703 solaris*)
16704 case $cc_basename in
16705 CC*)
16706 # Sun C++ 4.2, 5.x and Centerline C++
16707 lt_prog_compiler_pic_CXX='-KPIC'
16708 lt_prog_compiler_static_CXX='-Bstatic'
16709 lt_prog_compiler_wl_CXX='-Qoption ld '
16711 gcx*)
16712 # Green Hills C++ Compiler
16713 lt_prog_compiler_pic_CXX='-PIC'
16717 esac
16719 sunos4*)
16720 case $cc_basename in
16721 CC*)
16722 # Sun C++ 4.x
16723 lt_prog_compiler_pic_CXX='-pic'
16724 lt_prog_compiler_static_CXX='-Bstatic'
16726 lcc*)
16727 # Lucid
16728 lt_prog_compiler_pic_CXX='-pic'
16732 esac
16734 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16735 case $cc_basename in
16736 CC*)
16737 lt_prog_compiler_wl_CXX='-Wl,'
16738 lt_prog_compiler_pic_CXX='-KPIC'
16739 lt_prog_compiler_static_CXX='-Bstatic'
16741 esac
16743 tandem*)
16744 case $cc_basename in
16745 NCC*)
16746 # NonStop-UX NCC 3.20
16747 lt_prog_compiler_pic_CXX='-KPIC'
16751 esac
16753 vxworks*)
16756 lt_prog_compiler_can_build_shared_CXX=no
16758 esac
16761 case $host_os in
16762 # For platforms which do not support PIC, -DPIC is meaningless:
16763 *djgpp*)
16764 lt_prog_compiler_pic_CXX=
16767 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16769 esac
16770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
16771 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16776 # Check to make sure the PIC flag actually works.
16778 if test -n "$lt_prog_compiler_pic_CXX"; then
16779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16780 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16781 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
16782 $as_echo_n "(cached) " >&6
16783 else
16784 lt_cv_prog_compiler_pic_works_CXX=no
16785 ac_outfile=conftest.$ac_objext
16786 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16787 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16788 # Insert the option either (1) after the last *FLAGS variable, or
16789 # (2) before a word containing "conftest.", or (3) at the end.
16790 # Note that $ac_compile itself does not contain backslashes and begins
16791 # with a dollar sign (not a hyphen), so the echo should work correctly.
16792 # The option is referenced via a variable to avoid confusing sed.
16793 lt_compile=`echo "$ac_compile" | $SED \
16794 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16795 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16796 -e 's:$: $lt_compiler_flag:'`
16797 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16798 (eval "$lt_compile" 2>conftest.err)
16799 ac_status=$?
16800 cat conftest.err >&5
16801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16802 if (exit $ac_status) && test -s "$ac_outfile"; then
16803 # The compiler can only warn and ignore the option if not recognized
16804 # So say no if there are warnings other than the usual output.
16805 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
16806 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16807 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16808 lt_cv_prog_compiler_pic_works_CXX=yes
16811 $RM conftest*
16814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16815 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16817 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16818 case $lt_prog_compiler_pic_CXX in
16819 "" | " "*) ;;
16820 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16821 esac
16822 else
16823 lt_prog_compiler_pic_CXX=
16824 lt_prog_compiler_can_build_shared_CXX=no
16832 # Check to make sure the static flag actually works.
16834 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16836 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16837 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
16838 $as_echo_n "(cached) " >&6
16839 else
16840 lt_cv_prog_compiler_static_works_CXX=no
16841 save_LDFLAGS="$LDFLAGS"
16842 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16843 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16844 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16845 # The linker can only warn and ignore the option if not recognized
16846 # So say no if there are warnings
16847 if test -s conftest.err; then
16848 # Append any errors to the config.log.
16849 cat conftest.err 1>&5
16850 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
16851 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16852 if diff conftest.exp conftest.er2 >/dev/null; then
16853 lt_cv_prog_compiler_static_works_CXX=yes
16855 else
16856 lt_cv_prog_compiler_static_works_CXX=yes
16859 $RM -r conftest*
16860 LDFLAGS="$save_LDFLAGS"
16863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16864 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16866 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16868 else
16869 lt_prog_compiler_static_CXX=
16875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16876 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16877 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16878 $as_echo_n "(cached) " >&6
16879 else
16880 lt_cv_prog_compiler_c_o_CXX=no
16881 $RM -r conftest 2>/dev/null
16882 mkdir conftest
16883 cd conftest
16884 mkdir out
16885 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16887 lt_compiler_flag="-o out/conftest2.$ac_objext"
16888 # Insert the option either (1) after the last *FLAGS variable, or
16889 # (2) before a word containing "conftest.", or (3) at the end.
16890 # Note that $ac_compile itself does not contain backslashes and begins
16891 # with a dollar sign (not a hyphen), so the echo should work correctly.
16892 lt_compile=`echo "$ac_compile" | $SED \
16893 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16894 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16895 -e 's:$: $lt_compiler_flag:'`
16896 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16897 (eval "$lt_compile" 2>out/conftest.err)
16898 ac_status=$?
16899 cat out/conftest.err >&5
16900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16901 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16902 then
16903 # The compiler can only warn and ignore the option if not recognized
16904 # So say no if there are warnings
16905 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16906 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16907 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16908 lt_cv_prog_compiler_c_o_CXX=yes
16911 chmod u+w . 2>&5
16912 $RM conftest*
16913 # SGI C++ compiler will create directory out/ii_files/ for
16914 # template instantiation
16915 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16916 $RM out/* && rmdir out
16917 cd ..
16918 $RM -r conftest
16919 $RM conftest*
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16923 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16928 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16929 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
16930 $as_echo_n "(cached) " >&6
16931 else
16932 lt_cv_prog_compiler_c_o_CXX=no
16933 $RM -r conftest 2>/dev/null
16934 mkdir conftest
16935 cd conftest
16936 mkdir out
16937 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16939 lt_compiler_flag="-o out/conftest2.$ac_objext"
16940 # Insert the option either (1) after the last *FLAGS variable, or
16941 # (2) before a word containing "conftest.", or (3) at the end.
16942 # Note that $ac_compile itself does not contain backslashes and begins
16943 # with a dollar sign (not a hyphen), so the echo should work correctly.
16944 lt_compile=`echo "$ac_compile" | $SED \
16945 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16946 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16947 -e 's:$: $lt_compiler_flag:'`
16948 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
16949 (eval "$lt_compile" 2>out/conftest.err)
16950 ac_status=$?
16951 cat out/conftest.err >&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16954 then
16955 # The compiler can only warn and ignore the option if not recognized
16956 # So say no if there are warnings
16957 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
16958 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16959 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16960 lt_cv_prog_compiler_c_o_CXX=yes
16963 chmod u+w . 2>&5
16964 $RM conftest*
16965 # SGI C++ compiler will create directory out/ii_files/ for
16966 # template instantiation
16967 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16968 $RM out/* && rmdir out
16969 cd ..
16970 $RM -r conftest
16971 $RM conftest*
16974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16975 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16980 hard_links="nottested"
16981 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16982 # do not overwrite the value of need_locks provided by the user
16983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16984 $as_echo_n "checking if we can lock with hard links... " >&6; }
16985 hard_links=yes
16986 $RM conftest*
16987 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16988 touch conftest.a
16989 ln conftest.a conftest.b 2>&5 || hard_links=no
16990 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16992 $as_echo "$hard_links" >&6; }
16993 if test "$hard_links" = no; then
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16995 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16996 need_locks=warn
16998 else
16999 need_locks=no
17004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17005 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
17007 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17008 case $host_os in
17009 aix[4-9]*)
17010 # If we're using GNU nm, then we don't want the "-C" option.
17011 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17012 # Also, AIX nm treats weak defined symbols like other global defined
17013 # symbols, whereas GNU nm marks them as "W".
17014 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
17015 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'
17016 else
17017 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'
17020 pw32*)
17021 export_symbols_cmds_CXX="$ltdll_cmds"
17023 cygwin* | mingw* | cegcc*)
17024 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'
17027 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17029 esac
17030 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
17033 $as_echo "$ld_shlibs_CXX" >&6; }
17034 test "$ld_shlibs_CXX" = no && can_build_shared=no
17036 with_gnu_ld_CXX=$with_gnu_ld
17044 # Do we need to explicitly link libc?
17046 case "x$archive_cmds_need_lc_CXX" in
17047 x|xyes)
17048 # Assume -lc should be added
17049 archive_cmds_need_lc_CXX=yes
17051 if test "$enable_shared" = yes && test "$GCC" = yes; then
17052 case $archive_cmds_CXX in
17053 *'~'*)
17054 # FIXME: we may have to deal with multi-command sequences.
17056 '$CC '*)
17057 # Test whether the compiler implicitly links with -lc since on some
17058 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17059 # to ld, don't add -lc before -lgcc.
17060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
17061 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
17062 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
17063 $as_echo_n "(cached) " >&6
17064 else
17065 $RM conftest*
17066 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
17068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
17069 (eval $ac_compile) 2>&5
17070 ac_status=$?
17071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17072 test $ac_status = 0; } 2>conftest.err; then
17073 soname=conftest
17074 lib=conftest
17075 libobjs=conftest.$ac_objext
17076 deplibs=
17077 wl=$lt_prog_compiler_wl_CXX
17078 pic_flag=$lt_prog_compiler_pic_CXX
17079 compiler_flags=-v
17080 linker_flags=-v
17081 verstring=
17082 output_objdir=.
17083 libname=conftest
17084 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
17085 allow_undefined_flag_CXX=
17086 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
17087 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
17088 ac_status=$?
17089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
17090 test $ac_status = 0; }
17091 then
17092 lt_cv_archive_cmds_need_lc_CXX=no
17093 else
17094 lt_cv_archive_cmds_need_lc_CXX=yes
17096 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
17097 else
17098 cat conftest.err 1>&5
17100 $RM conftest*
17103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
17104 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
17105 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
17107 esac
17110 esac
17175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17176 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17178 library_names_spec=
17179 libname_spec='lib$name'
17180 soname_spec=
17181 shrext_cmds=".so"
17182 postinstall_cmds=
17183 postuninstall_cmds=
17184 finish_cmds=
17185 finish_eval=
17186 shlibpath_var=
17187 shlibpath_overrides_runpath=unknown
17188 version_type=none
17189 dynamic_linker="$host_os ld.so"
17190 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17191 need_lib_prefix=unknown
17192 hardcode_into_libs=no
17194 # when you set need_version to no, make sure it does not cause -set_version
17195 # flags to be left without arguments
17196 need_version=unknown
17198 case $host_os in
17199 aix3*)
17200 version_type=linux
17201 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17202 shlibpath_var=LIBPATH
17204 # AIX 3 has no versioning support, so we append a major version to the name.
17205 soname_spec='${libname}${release}${shared_ext}$major'
17208 aix[4-9]*)
17209 version_type=linux
17210 need_lib_prefix=no
17211 need_version=no
17212 hardcode_into_libs=yes
17213 if test "$host_cpu" = ia64; then
17214 # AIX 5 supports IA64
17215 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17216 shlibpath_var=LD_LIBRARY_PATH
17217 else
17218 # With GCC up to 2.95.x, collect2 would create an import file
17219 # for dependence libraries. The import file would start with
17220 # the line `#! .'. This would cause the generated library to
17221 # depend on `.', always an invalid library. This was fixed in
17222 # development snapshots of GCC prior to 3.0.
17223 case $host_os in
17224 aix4 | aix4.[01] | aix4.[01].*)
17225 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17226 echo ' yes '
17227 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17229 else
17230 can_build_shared=no
17233 esac
17234 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17235 # soname into executable. Probably we can add versioning support to
17236 # collect2, so additional links can be useful in future.
17237 if test "$aix_use_runtimelinking" = yes; then
17238 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17239 # instead of lib<name>.a to let people know that these are not
17240 # typical AIX shared libraries.
17241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17242 else
17243 # We preserve .a as extension for shared libraries through AIX4.2
17244 # and later when we are not doing run time linking.
17245 library_names_spec='${libname}${release}.a $libname.a'
17246 soname_spec='${libname}${release}${shared_ext}$major'
17248 shlibpath_var=LIBPATH
17252 amigaos*)
17253 case $host_cpu in
17254 powerpc)
17255 # Since July 2007 AmigaOS4 officially supports .so libraries.
17256 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17259 m68k)
17260 library_names_spec='$libname.ixlibrary $libname.a'
17261 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17262 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'
17264 esac
17267 beos*)
17268 library_names_spec='${libname}${shared_ext}'
17269 dynamic_linker="$host_os ld.so"
17270 shlibpath_var=LIBRARY_PATH
17273 bsdi[45]*)
17274 version_type=linux
17275 need_version=no
17276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17277 soname_spec='${libname}${release}${shared_ext}$major'
17278 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17279 shlibpath_var=LD_LIBRARY_PATH
17280 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17281 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17282 # the default ld.so.conf also contains /usr/contrib/lib and
17283 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17284 # libtool to hard-code these into programs
17287 cygwin* | mingw* | pw32* | cegcc*)
17288 version_type=windows
17289 shrext_cmds=".dll"
17290 need_version=no
17291 need_lib_prefix=no
17293 case $GCC,$host_os in
17294 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17295 library_names_spec='$libname.dll.a'
17296 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17297 postinstall_cmds='base_file=`basename \${file}`~
17298 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17299 dldir=$destdir/`dirname \$dlpath`~
17300 test -d \$dldir || mkdir -p \$dldir~
17301 $install_prog $dir/$dlname \$dldir/$dlname~
17302 chmod a+x \$dldir/$dlname~
17303 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17304 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17306 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17307 dlpath=$dir/\$dldll~
17308 $RM \$dlpath'
17309 shlibpath_overrides_runpath=yes
17311 case $host_os in
17312 cygwin*)
17313 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17314 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17317 mingw* | cegcc*)
17318 # MinGW DLLs use traditional 'lib' prefix
17319 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17321 pw32*)
17322 # pw32 DLLs use 'pw' prefix rather than 'lib'
17323 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17325 esac
17329 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17331 esac
17332 dynamic_linker='Win32 ld.exe'
17333 # FIXME: first we should search . and the directory the executable is in
17334 shlibpath_var=PATH
17337 darwin* | rhapsody*)
17338 dynamic_linker="$host_os dyld"
17339 version_type=darwin
17340 need_lib_prefix=no
17341 need_version=no
17342 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17343 soname_spec='${libname}${release}${major}$shared_ext'
17344 shlibpath_overrides_runpath=yes
17345 shlibpath_var=DYLD_LIBRARY_PATH
17346 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17348 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17351 dgux*)
17352 version_type=linux
17353 need_lib_prefix=no
17354 need_version=no
17355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17356 soname_spec='${libname}${release}${shared_ext}$major'
17357 shlibpath_var=LD_LIBRARY_PATH
17360 freebsd* | dragonfly*)
17361 # DragonFly does not have aout. When/if they implement a new
17362 # versioning mechanism, adjust this.
17363 if test -x /usr/bin/objformat; then
17364 objformat=`/usr/bin/objformat`
17365 else
17366 case $host_os in
17367 freebsd[23].*) objformat=aout ;;
17368 *) objformat=elf ;;
17369 esac
17371 version_type=freebsd-$objformat
17372 case $version_type in
17373 freebsd-elf*)
17374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17375 need_version=no
17376 need_lib_prefix=no
17378 freebsd-*)
17379 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17380 need_version=yes
17382 esac
17383 shlibpath_var=LD_LIBRARY_PATH
17384 case $host_os in
17385 freebsd2.*)
17386 shlibpath_overrides_runpath=yes
17388 freebsd3.[01]* | freebsdelf3.[01]*)
17389 shlibpath_overrides_runpath=yes
17390 hardcode_into_libs=yes
17392 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17393 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17394 shlibpath_overrides_runpath=no
17395 hardcode_into_libs=yes
17397 *) # from 4.6 on, and DragonFly
17398 shlibpath_overrides_runpath=yes
17399 hardcode_into_libs=yes
17401 esac
17404 haiku*)
17405 version_type=linux
17406 need_lib_prefix=no
17407 need_version=no
17408 dynamic_linker="$host_os runtime_loader"
17409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17410 soname_spec='${libname}${release}${shared_ext}$major'
17411 shlibpath_var=LIBRARY_PATH
17412 shlibpath_overrides_runpath=yes
17413 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
17414 hardcode_into_libs=yes
17417 hpux9* | hpux10* | hpux11*)
17418 # Give a soname corresponding to the major version so that dld.sl refuses to
17419 # link against other versions.
17420 version_type=sunos
17421 need_lib_prefix=no
17422 need_version=no
17423 case $host_cpu in
17424 ia64*)
17425 shrext_cmds='.so'
17426 hardcode_into_libs=yes
17427 dynamic_linker="$host_os dld.so"
17428 shlibpath_var=LD_LIBRARY_PATH
17429 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17431 soname_spec='${libname}${release}${shared_ext}$major'
17432 if test "X$HPUX_IA64_MODE" = X32; then
17433 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17434 else
17435 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17437 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17439 hppa*64*)
17440 shrext_cmds='.sl'
17441 hardcode_into_libs=yes
17442 dynamic_linker="$host_os dld.sl"
17443 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17444 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17446 soname_spec='${libname}${release}${shared_ext}$major'
17447 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17448 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17451 shrext_cmds='.sl'
17452 dynamic_linker="$host_os dld.sl"
17453 shlibpath_var=SHLIB_PATH
17454 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
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'
17458 esac
17459 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
17460 postinstall_cmds='chmod 555 $lib'
17461 # or fails outright, so override atomically:
17462 install_override_mode=555
17465 interix[3-9]*)
17466 version_type=linux
17467 need_lib_prefix=no
17468 need_version=no
17469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17470 soname_spec='${libname}${release}${shared_ext}$major'
17471 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17472 shlibpath_var=LD_LIBRARY_PATH
17473 shlibpath_overrides_runpath=no
17474 hardcode_into_libs=yes
17477 irix5* | irix6* | nonstopux*)
17478 case $host_os in
17479 nonstopux*) version_type=nonstopux ;;
17481 if test "$lt_cv_prog_gnu_ld" = yes; then
17482 version_type=linux
17483 else
17484 version_type=irix
17485 fi ;;
17486 esac
17487 need_lib_prefix=no
17488 need_version=no
17489 soname_spec='${libname}${release}${shared_ext}$major'
17490 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17491 case $host_os in
17492 irix5* | nonstopux*)
17493 libsuff= shlibsuff=
17496 case $LD in # libtool.m4 will add one of these switches to LD
17497 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17498 libsuff= shlibsuff= libmagic=32-bit;;
17499 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17500 libsuff=32 shlibsuff=N32 libmagic=N32;;
17501 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17502 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17503 *) libsuff= shlibsuff= libmagic=never-match;;
17504 esac
17506 esac
17507 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17508 shlibpath_overrides_runpath=no
17509 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17510 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17511 hardcode_into_libs=yes
17514 # No shared lib support for Linux oldld, aout, or coff.
17515 linux*oldld* | linux*aout* | linux*coff*)
17516 dynamic_linker=no
17519 # This must be Linux ELF.
17521 # uclinux* changes (here and below) have been submitted to the libtool
17522 # project, but have not yet been accepted: they are GCC-local changes
17523 # for the time being. (See
17524 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
17525 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
17526 version_type=linux
17527 need_lib_prefix=no
17528 need_version=no
17529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17530 soname_spec='${libname}${release}${shared_ext}$major'
17531 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17532 shlibpath_var=LD_LIBRARY_PATH
17533 shlibpath_overrides_runpath=no
17535 # Some binutils ld are patched to set DT_RUNPATH
17536 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
17537 $as_echo_n "(cached) " >&6
17538 else
17539 lt_cv_shlibpath_overrides_runpath=no
17540 save_LDFLAGS=$LDFLAGS
17541 save_libdir=$libdir
17542 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17543 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17544 if test x$gcc_no_link = xyes; then
17545 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17548 /* end confdefs.h. */
17551 main ()
17555 return 0;
17557 _ACEOF
17558 if ac_fn_cxx_try_link "$LINENO"; then :
17559 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17560 lt_cv_shlibpath_overrides_runpath=yes
17563 rm -f core conftest.err conftest.$ac_objext \
17564 conftest$ac_exeext conftest.$ac_ext
17565 LDFLAGS=$save_LDFLAGS
17566 libdir=$save_libdir
17570 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
17572 # This implies no fast_install, which is unacceptable.
17573 # Some rework will be needed to allow for fast_install
17574 # before this can be enabled.
17575 hardcode_into_libs=yes
17577 # Append ld.so.conf contents to the search path
17578 if test -f /etc/ld.so.conf; then
17579 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' ' '`
17580 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17583 # We used to test for /lib/ld.so.1 and disable shared libraries on
17584 # powerpc, because MkLinux only supported shared libraries with the
17585 # GNU dynamic linker. Since this was broken with cross compilers,
17586 # most powerpc-linux boxes support dynamic linking these days and
17587 # people can always --disable-shared, the test was removed, and we
17588 # assume the GNU/Linux dynamic linker is in use.
17589 dynamic_linker='GNU/Linux ld.so'
17592 netbsd*)
17593 version_type=sunos
17594 need_lib_prefix=no
17595 need_version=no
17596 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17598 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17599 dynamic_linker='NetBSD (a.out) ld.so'
17600 else
17601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17602 soname_spec='${libname}${release}${shared_ext}$major'
17603 dynamic_linker='NetBSD ld.elf_so'
17605 shlibpath_var=LD_LIBRARY_PATH
17606 shlibpath_overrides_runpath=yes
17607 hardcode_into_libs=yes
17610 newsos6)
17611 version_type=linux
17612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17613 shlibpath_var=LD_LIBRARY_PATH
17614 shlibpath_overrides_runpath=yes
17617 *nto* | *qnx*)
17618 version_type=qnx
17619 need_lib_prefix=no
17620 need_version=no
17621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17622 soname_spec='${libname}${release}${shared_ext}$major'
17623 shlibpath_var=LD_LIBRARY_PATH
17624 shlibpath_overrides_runpath=no
17625 hardcode_into_libs=yes
17626 dynamic_linker='ldqnx.so'
17629 openbsd*)
17630 version_type=sunos
17631 sys_lib_dlsearch_path_spec="/usr/lib"
17632 need_lib_prefix=no
17633 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17634 case $host_os in
17635 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17636 *) need_version=no ;;
17637 esac
17638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17639 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17640 shlibpath_var=LD_LIBRARY_PATH
17641 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17642 case $host_os in
17643 openbsd2.[89] | openbsd2.[89].*)
17644 shlibpath_overrides_runpath=no
17647 shlibpath_overrides_runpath=yes
17649 esac
17650 else
17651 shlibpath_overrides_runpath=yes
17655 os2*)
17656 libname_spec='$name'
17657 shrext_cmds=".dll"
17658 need_lib_prefix=no
17659 library_names_spec='$libname${shared_ext} $libname.a'
17660 dynamic_linker='OS/2 ld.exe'
17661 shlibpath_var=LIBPATH
17664 osf3* | osf4* | osf5*)
17665 version_type=osf
17666 need_lib_prefix=no
17667 need_version=no
17668 soname_spec='${libname}${release}${shared_ext}$major'
17669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17670 shlibpath_var=LD_LIBRARY_PATH
17671 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17672 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17675 rdos*)
17676 dynamic_linker=no
17679 solaris*)
17680 version_type=linux
17681 need_lib_prefix=no
17682 need_version=no
17683 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17684 soname_spec='${libname}${release}${shared_ext}$major'
17685 shlibpath_var=LD_LIBRARY_PATH
17686 shlibpath_overrides_runpath=yes
17687 hardcode_into_libs=yes
17688 # ldd complains unless libraries are executable
17689 postinstall_cmds='chmod +x $lib'
17692 sunos4*)
17693 version_type=sunos
17694 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17695 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17696 shlibpath_var=LD_LIBRARY_PATH
17697 shlibpath_overrides_runpath=yes
17698 if test "$with_gnu_ld" = yes; then
17699 need_lib_prefix=no
17701 need_version=yes
17704 sysv4 | sysv4.3*)
17705 version_type=linux
17706 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17707 soname_spec='${libname}${release}${shared_ext}$major'
17708 shlibpath_var=LD_LIBRARY_PATH
17709 case $host_vendor in
17710 sni)
17711 shlibpath_overrides_runpath=no
17712 need_lib_prefix=no
17713 runpath_var=LD_RUN_PATH
17715 siemens)
17716 need_lib_prefix=no
17718 motorola)
17719 need_lib_prefix=no
17720 need_version=no
17721 shlibpath_overrides_runpath=no
17722 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17724 esac
17727 sysv4*MP*)
17728 if test -d /usr/nec ;then
17729 version_type=linux
17730 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17731 soname_spec='$libname${shared_ext}.$major'
17732 shlibpath_var=LD_LIBRARY_PATH
17736 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17737 version_type=freebsd-elf
17738 need_lib_prefix=no
17739 need_version=no
17740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17741 soname_spec='${libname}${release}${shared_ext}$major'
17742 shlibpath_var=LD_LIBRARY_PATH
17743 shlibpath_overrides_runpath=yes
17744 hardcode_into_libs=yes
17745 if test "$with_gnu_ld" = yes; then
17746 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17747 else
17748 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17749 case $host_os in
17750 sco3.2v5*)
17751 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17753 esac
17755 sys_lib_dlsearch_path_spec='/usr/lib'
17758 tpf*)
17759 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17760 version_type=linux
17761 need_lib_prefix=no
17762 need_version=no
17763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17764 shlibpath_var=LD_LIBRARY_PATH
17765 shlibpath_overrides_runpath=no
17766 hardcode_into_libs=yes
17769 uts4*)
17770 version_type=linux
17771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17772 soname_spec='${libname}${release}${shared_ext}$major'
17773 shlibpath_var=LD_LIBRARY_PATH
17776 # Shared libraries for VwWorks, >= 7 only at this stage
17777 # and (fpic) still incompatible with "large" code models
17778 # in a few configurations. Only for RTP mode in any case,
17779 # and upon explicit request at configure time.
17780 vxworks7*)
17781 dynamic_linker=no
17782 case ${with_multisubdir}-${enable_shared} in
17783 *large*)
17785 *mrtp*-yes)
17786 version_type=linux
17787 need_lib_prefix=no
17788 need_version=no
17789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17790 soname_spec='${libname}${release}${shared_ext}$major'
17791 dynamic_linker="$host_os module_loader"
17793 esac
17796 dynamic_linker=no
17798 esac
17799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17800 $as_echo "$dynamic_linker" >&6; }
17801 test "$dynamic_linker" = no && can_build_shared=no
17803 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17804 if test "$GCC" = yes; then
17805 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17808 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17809 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17811 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17812 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17853 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17854 hardcode_action_CXX=
17855 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17856 test -n "$runpath_var_CXX" ||
17857 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17859 # We can hardcode non-existent directories.
17860 if test "$hardcode_direct_CXX" != no &&
17861 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17862 # have to relink, otherwise we might link with an installed library
17863 # when we should be linking with a yet-to-be-installed one
17864 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17865 test "$hardcode_minus_L_CXX" != no; then
17866 # Linking always hardcodes the temporary library directory.
17867 hardcode_action_CXX=relink
17868 else
17869 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17870 hardcode_action_CXX=immediate
17872 else
17873 # We cannot hardcode anything, or else we can only hardcode existing
17874 # directories.
17875 hardcode_action_CXX=unsupported
17877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17878 $as_echo "$hardcode_action_CXX" >&6; }
17880 if test "$hardcode_action_CXX" = relink ||
17881 test "$inherit_rpath_CXX" = yes; then
17882 # Fast installation is not supported
17883 enable_fast_install=no
17884 elif test "$shlibpath_overrides_runpath" = yes ||
17885 test "$enable_shared" = no; then
17886 # Fast installation is not necessary
17887 enable_fast_install=needless
17896 fi # test -n "$compiler"
17898 CC=$lt_save_CC
17899 LDCXX=$LD
17900 LD=$lt_save_LD
17901 GCC=$lt_save_GCC
17902 with_gnu_ld=$lt_save_with_gnu_ld
17903 lt_cv_path_LDCXX=$lt_cv_path_LD
17904 lt_cv_path_LD=$lt_save_path_LD
17905 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17906 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17907 fi # test "$_lt_caught_CXX_error" != yes
17909 ac_ext=c
17910 ac_cpp='$CPP $CPPFLAGS'
17911 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17912 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17913 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17927 ac_config_commands="$ac_config_commands libtool"
17932 # Only expand once:
17936 enable_dlopen=yes
17941 if test x$enable_darwin_at_rpath = xyes; then
17942 ENABLE_DARWIN_AT_RPATH_TRUE=
17943 ENABLE_DARWIN_AT_RPATH_FALSE='#'
17944 else
17945 ENABLE_DARWIN_AT_RPATH_TRUE='#'
17946 ENABLE_DARWIN_AT_RPATH_FALSE=
17953 if test "${multilib}" = "yes"; then
17954 multilib_arg="--enable-multilib"
17955 else
17956 multilib_arg=
17959 ac_fn_c_check_type "$LINENO" "struct timezone" "ac_cv_type_struct_timezone" "$ac_includes_default"
17960 if test "x$ac_cv_type_struct_timezone" = xyes; then :
17962 cat >>confdefs.h <<_ACEOF
17963 #define HAVE_STRUCT_TIMEZONE 1
17964 _ACEOF
17968 ac_fn_c_check_type "$LINENO" "struct stat" "ac_cv_type_struct_stat" "$ac_includes_default"
17969 if test "x$ac_cv_type_struct_stat" = xyes; then :
17971 cat >>confdefs.h <<_ACEOF
17972 #define HAVE_STRUCT_STAT 1
17973 _ACEOF
17977 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
17978 if test "x$ac_cv_type_struct_timespec" = xyes; then :
17980 cat >>confdefs.h <<_ACEOF
17981 #define HAVE_STRUCT_TIMESPEC 1
17982 _ACEOF
17986 ac_fn_c_check_type "$LINENO" "struct timeval" "ac_cv_type_struct_timeval" "$ac_includes_default"
17987 if test "x$ac_cv_type_struct_timeval" = xyes; then :
17989 cat >>confdefs.h <<_ACEOF
17990 #define HAVE_STRUCT_TIMEVAL 1
17991 _ACEOF
17995 ac_fn_c_check_type "$LINENO" "struct tm" "ac_cv_type_struct_tm" "$ac_includes_default"
17996 if test "x$ac_cv_type_struct_tm" = xyes; then :
17998 cat >>confdefs.h <<_ACEOF
17999 #define HAVE_STRUCT_TM 1
18000 _ACEOF
18006 # Check if struct tm contains the tm_gmtoff field.
18007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
18008 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
18009 if ${ac_cv_struct_tm_gmtoff+:} false; then :
18010 $as_echo_n "(cached) " >&6
18011 else
18012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18013 /* end confdefs.h. */
18015 #include <time.h>
18018 main ()
18021 struct tm tm;
18022 tm.tm_gmtoff = 1;
18025 return 0;
18027 _ACEOF
18028 if ac_fn_c_try_compile "$LINENO"; then :
18029 ac_cv_struct_tm_gmtoff=yes
18030 else
18031 ac_cv_struct_tm_gmtoff=no
18034 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_gmtoff" >&5
18038 $as_echo "$ac_cv_struct_tm_gmtoff" >&6; }
18040 if (test "$ac_cv_struct_tm_gmtoff" = "yes"); then
18041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end detects struct tm with the tm_gmtoff field." >&5
18042 $as_echo_n "checking m2 front end detects struct tm with the tm_gmtoff field.... " >&6; }
18044 $as_echo "#define HAVE_TM_TM_GMTOFF 1" >>confdefs.h
18048 ac_ext=c
18049 ac_cpp='$CPP $CPPFLAGS'
18050 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18051 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18052 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18054 # Check the compiler.
18055 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
18056 # We must force CC to /not/ be precious variables; otherwise
18057 # the wrong, non-multilib-adjusted value will be used in multilibs.
18058 # As a side effect, we have to subst CFLAGS ourselves.
18062 ac_ext=c
18063 ac_cpp='$CPP $CPPFLAGS'
18064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18067 if test -n "$ac_tool_prefix"; then
18068 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
18069 set dummy ${ac_tool_prefix}gcc; ac_word=$2
18070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18071 $as_echo_n "checking for $ac_word... " >&6; }
18072 if ${ac_cv_prog_CC+:} false; then :
18073 $as_echo_n "(cached) " >&6
18074 else
18075 if test -n "$CC"; then
18076 ac_cv_prog_CC="$CC" # Let the user override the test.
18077 else
18078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18079 for as_dir in $PATH
18081 IFS=$as_save_IFS
18082 test -z "$as_dir" && as_dir=.
18083 for ac_exec_ext in '' $ac_executable_extensions; do
18084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18085 ac_cv_prog_CC="${ac_tool_prefix}gcc"
18086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18087 break 2
18089 done
18090 done
18091 IFS=$as_save_IFS
18095 CC=$ac_cv_prog_CC
18096 if test -n "$CC"; then
18097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18098 $as_echo "$CC" >&6; }
18099 else
18100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18101 $as_echo "no" >&6; }
18106 if test -z "$ac_cv_prog_CC"; then
18107 ac_ct_CC=$CC
18108 # Extract the first word of "gcc", so it can be a program name with args.
18109 set dummy gcc; ac_word=$2
18110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18111 $as_echo_n "checking for $ac_word... " >&6; }
18112 if ${ac_cv_prog_ac_ct_CC+:} false; then :
18113 $as_echo_n "(cached) " >&6
18114 else
18115 if test -n "$ac_ct_CC"; then
18116 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18117 else
18118 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18119 for as_dir in $PATH
18121 IFS=$as_save_IFS
18122 test -z "$as_dir" && as_dir=.
18123 for ac_exec_ext in '' $ac_executable_extensions; do
18124 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18125 ac_cv_prog_ac_ct_CC="gcc"
18126 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18127 break 2
18129 done
18130 done
18131 IFS=$as_save_IFS
18135 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18136 if test -n "$ac_ct_CC"; then
18137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18138 $as_echo "$ac_ct_CC" >&6; }
18139 else
18140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18141 $as_echo "no" >&6; }
18144 if test "x$ac_ct_CC" = x; then
18145 CC=""
18146 else
18147 case $cross_compiling:$ac_tool_warned in
18148 yes:)
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18150 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18151 ac_tool_warned=yes ;;
18152 esac
18153 CC=$ac_ct_CC
18155 else
18156 CC="$ac_cv_prog_CC"
18159 if test -z "$CC"; then
18160 if test -n "$ac_tool_prefix"; then
18161 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
18162 set dummy ${ac_tool_prefix}cc; ac_word=$2
18163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18164 $as_echo_n "checking for $ac_word... " >&6; }
18165 if ${ac_cv_prog_CC+:} false; then :
18166 $as_echo_n "(cached) " >&6
18167 else
18168 if test -n "$CC"; then
18169 ac_cv_prog_CC="$CC" # Let the user override the test.
18170 else
18171 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18172 for as_dir in $PATH
18174 IFS=$as_save_IFS
18175 test -z "$as_dir" && as_dir=.
18176 for ac_exec_ext in '' $ac_executable_extensions; do
18177 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18178 ac_cv_prog_CC="${ac_tool_prefix}cc"
18179 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18180 break 2
18182 done
18183 done
18184 IFS=$as_save_IFS
18188 CC=$ac_cv_prog_CC
18189 if test -n "$CC"; then
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18191 $as_echo "$CC" >&6; }
18192 else
18193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18194 $as_echo "no" >&6; }
18200 if test -z "$CC"; then
18201 # Extract the first word of "cc", so it can be a program name with args.
18202 set dummy cc; ac_word=$2
18203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18204 $as_echo_n "checking for $ac_word... " >&6; }
18205 if ${ac_cv_prog_CC+:} false; then :
18206 $as_echo_n "(cached) " >&6
18207 else
18208 if test -n "$CC"; then
18209 ac_cv_prog_CC="$CC" # Let the user override the test.
18210 else
18211 ac_prog_rejected=no
18212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18213 for as_dir in $PATH
18215 IFS=$as_save_IFS
18216 test -z "$as_dir" && as_dir=.
18217 for ac_exec_ext in '' $ac_executable_extensions; do
18218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18219 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
18220 ac_prog_rejected=yes
18221 continue
18223 ac_cv_prog_CC="cc"
18224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18225 break 2
18227 done
18228 done
18229 IFS=$as_save_IFS
18231 if test $ac_prog_rejected = yes; then
18232 # We found a bogon in the path, so make sure we never use it.
18233 set dummy $ac_cv_prog_CC
18234 shift
18235 if test $# != 0; then
18236 # We chose a different compiler from the bogus one.
18237 # However, it has the same basename, so the bogon will be chosen
18238 # first if we set CC to just the basename; use the full file name.
18239 shift
18240 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
18245 CC=$ac_cv_prog_CC
18246 if test -n "$CC"; then
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18248 $as_echo "$CC" >&6; }
18249 else
18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18251 $as_echo "no" >&6; }
18256 if test -z "$CC"; then
18257 if test -n "$ac_tool_prefix"; then
18258 for ac_prog in cl.exe
18260 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
18261 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
18262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18263 $as_echo_n "checking for $ac_word... " >&6; }
18264 if ${ac_cv_prog_CC+:} false; then :
18265 $as_echo_n "(cached) " >&6
18266 else
18267 if test -n "$CC"; then
18268 ac_cv_prog_CC="$CC" # Let the user override the test.
18269 else
18270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18271 for as_dir in $PATH
18273 IFS=$as_save_IFS
18274 test -z "$as_dir" && as_dir=.
18275 for ac_exec_ext in '' $ac_executable_extensions; do
18276 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18277 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
18278 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18279 break 2
18281 done
18282 done
18283 IFS=$as_save_IFS
18287 CC=$ac_cv_prog_CC
18288 if test -n "$CC"; then
18289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
18290 $as_echo "$CC" >&6; }
18291 else
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18293 $as_echo "no" >&6; }
18297 test -n "$CC" && break
18298 done
18300 if test -z "$CC"; then
18301 ac_ct_CC=$CC
18302 for ac_prog in cl.exe
18304 # Extract the first word of "$ac_prog", so it can be a program name with args.
18305 set dummy $ac_prog; ac_word=$2
18306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
18307 $as_echo_n "checking for $ac_word... " >&6; }
18308 if ${ac_cv_prog_ac_ct_CC+:} false; then :
18309 $as_echo_n "(cached) " >&6
18310 else
18311 if test -n "$ac_ct_CC"; then
18312 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
18313 else
18314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
18315 for as_dir in $PATH
18317 IFS=$as_save_IFS
18318 test -z "$as_dir" && as_dir=.
18319 for ac_exec_ext in '' $ac_executable_extensions; do
18320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
18321 ac_cv_prog_ac_ct_CC="$ac_prog"
18322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
18323 break 2
18325 done
18326 done
18327 IFS=$as_save_IFS
18331 ac_ct_CC=$ac_cv_prog_ac_ct_CC
18332 if test -n "$ac_ct_CC"; then
18333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
18334 $as_echo "$ac_ct_CC" >&6; }
18335 else
18336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18337 $as_echo "no" >&6; }
18341 test -n "$ac_ct_CC" && break
18342 done
18344 if test "x$ac_ct_CC" = x; then
18345 CC=""
18346 else
18347 case $cross_compiling:$ac_tool_warned in
18348 yes:)
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
18350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
18351 ac_tool_warned=yes ;;
18352 esac
18353 CC=$ac_ct_CC
18360 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18361 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18362 as_fn_error $? "no acceptable C compiler found in \$PATH
18363 See \`config.log' for more details" "$LINENO" 5; }
18365 # Provide some information about the compiler.
18366 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
18367 set X $ac_compile
18368 ac_compiler=$2
18369 for ac_option in --version -v -V -qversion; do
18370 { { ac_try="$ac_compiler $ac_option >&5"
18371 case "(($ac_try" in
18372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18373 *) ac_try_echo=$ac_try;;
18374 esac
18375 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
18376 $as_echo "$ac_try_echo"; } >&5
18377 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
18378 ac_status=$?
18379 if test -s conftest.err; then
18380 sed '10a\
18381 ... rest of stderr output deleted ...
18382 10q' conftest.err >conftest.er1
18383 cat conftest.er1 >&5
18385 rm -f conftest.er1 conftest.err
18386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18387 test $ac_status = 0; }
18388 done
18390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
18391 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
18392 if ${ac_cv_c_compiler_gnu+:} false; then :
18393 $as_echo_n "(cached) " >&6
18394 else
18395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18396 /* end confdefs.h. */
18399 main ()
18401 #ifndef __GNUC__
18402 choke me
18403 #endif
18406 return 0;
18408 _ACEOF
18409 if ac_fn_c_try_compile "$LINENO"; then :
18410 ac_compiler_gnu=yes
18411 else
18412 ac_compiler_gnu=no
18414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18415 ac_cv_c_compiler_gnu=$ac_compiler_gnu
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
18419 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
18420 if test $ac_compiler_gnu = yes; then
18421 GCC=yes
18422 else
18423 GCC=
18425 ac_test_CFLAGS=${CFLAGS+set}
18426 ac_save_CFLAGS=$CFLAGS
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
18428 $as_echo_n "checking whether $CC accepts -g... " >&6; }
18429 if ${ac_cv_prog_cc_g+:} false; then :
18430 $as_echo_n "(cached) " >&6
18431 else
18432 ac_save_c_werror_flag=$ac_c_werror_flag
18433 ac_c_werror_flag=yes
18434 ac_cv_prog_cc_g=no
18435 CFLAGS="-g"
18436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18437 /* end confdefs.h. */
18440 main ()
18444 return 0;
18446 _ACEOF
18447 if ac_fn_c_try_compile "$LINENO"; then :
18448 ac_cv_prog_cc_g=yes
18449 else
18450 CFLAGS=""
18451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18452 /* end confdefs.h. */
18455 main ()
18459 return 0;
18461 _ACEOF
18462 if ac_fn_c_try_compile "$LINENO"; then :
18464 else
18465 ac_c_werror_flag=$ac_save_c_werror_flag
18466 CFLAGS="-g"
18467 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18468 /* end confdefs.h. */
18471 main ()
18475 return 0;
18477 _ACEOF
18478 if ac_fn_c_try_compile "$LINENO"; then :
18479 ac_cv_prog_cc_g=yes
18481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18486 ac_c_werror_flag=$ac_save_c_werror_flag
18488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
18489 $as_echo "$ac_cv_prog_cc_g" >&6; }
18490 if test "$ac_test_CFLAGS" = set; then
18491 CFLAGS=$ac_save_CFLAGS
18492 elif test $ac_cv_prog_cc_g = yes; then
18493 if test "$GCC" = yes; then
18494 CFLAGS="-g -O2"
18495 else
18496 CFLAGS="-g"
18498 else
18499 if test "$GCC" = yes; then
18500 CFLAGS="-O2"
18501 else
18502 CFLAGS=
18505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
18506 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
18507 if ${ac_cv_prog_cc_c89+:} false; then :
18508 $as_echo_n "(cached) " >&6
18509 else
18510 ac_cv_prog_cc_c89=no
18511 ac_save_CC=$CC
18512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18513 /* end confdefs.h. */
18514 #include <stdarg.h>
18515 #include <stdio.h>
18516 struct stat;
18517 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
18518 struct buf { int x; };
18519 FILE * (*rcsopen) (struct buf *, struct stat *, int);
18520 static char *e (p, i)
18521 char **p;
18522 int i;
18524 return p[i];
18526 static char *f (char * (*g) (char **, int), char **p, ...)
18528 char *s;
18529 va_list v;
18530 va_start (v,p);
18531 s = g (p, va_arg (v,int));
18532 va_end (v);
18533 return s;
18536 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
18537 function prototypes and stuff, but not '\xHH' hex character constants.
18538 These don't provoke an error unfortunately, instead are silently treated
18539 as 'x'. The following induces an error, until -std is added to get
18540 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
18541 array size at least. It's necessary to write '\x00'==0 to get something
18542 that's true only with -std. */
18543 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
18545 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
18546 inside strings and character constants. */
18547 #define FOO(x) 'x'
18548 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
18550 int test (int i, double x);
18551 struct s1 {int (*f) (int a);};
18552 struct s2 {int (*f) (double a);};
18553 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
18554 int argc;
18555 char **argv;
18557 main ()
18559 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
18561 return 0;
18563 _ACEOF
18564 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
18565 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
18567 CC="$ac_save_CC $ac_arg"
18568 if ac_fn_c_try_compile "$LINENO"; then :
18569 ac_cv_prog_cc_c89=$ac_arg
18571 rm -f core conftest.err conftest.$ac_objext
18572 test "x$ac_cv_prog_cc_c89" != "xno" && break
18573 done
18574 rm -f conftest.$ac_ext
18575 CC=$ac_save_CC
18578 # AC_CACHE_VAL
18579 case "x$ac_cv_prog_cc_c89" in
18581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
18582 $as_echo "none needed" >&6; } ;;
18583 xno)
18584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
18585 $as_echo "unsupported" >&6; } ;;
18587 CC="$CC $ac_cv_prog_cc_c89"
18588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
18589 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
18590 esac
18591 if test "x$ac_cv_prog_cc_c89" != xno; then :
18595 ac_ext=c
18596 ac_cpp='$CPP $CPPFLAGS'
18597 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18598 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18599 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18601 ac_ext=c
18602 ac_cpp='$CPP $CPPFLAGS'
18603 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18604 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18605 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
18607 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
18608 if ${am_cv_prog_cc_c_o+:} false; then :
18609 $as_echo_n "(cached) " >&6
18610 else
18611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18612 /* end confdefs.h. */
18615 main ()
18619 return 0;
18621 _ACEOF
18622 # Make sure it works both with $CC and with simple cc.
18623 # Following AC_PROG_CC_C_O, we do the test twice because some
18624 # compilers refuse to overwrite an existing .o file with -o,
18625 # though they will create one.
18626 am_cv_prog_cc_c_o=yes
18627 for am_i in 1 2; do
18628 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
18629 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
18630 ac_status=$?
18631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18632 (exit $ac_status); } \
18633 && test -f conftest2.$ac_objext; then
18634 : OK
18635 else
18636 am_cv_prog_cc_c_o=no
18637 break
18639 done
18640 rm -f core conftest*
18641 unset am_i
18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
18644 $as_echo "$am_cv_prog_cc_c_o" >&6; }
18645 if test "$am_cv_prog_cc_c_o" != yes; then
18646 # Losing compiler, so override with the script.
18647 # FIXME: It is wrong to rewrite CC.
18648 # But if we don't then we get into trouble of one sort or another.
18649 # A longer-term fix would be to have automake use am__CC in this case,
18650 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
18651 CC="$am_aux_dir/compile $CC"
18653 ac_ext=c
18654 ac_cpp='$CPP $CPPFLAGS'
18655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for access" >&5
18670 $as_echo_n "checking m2 front end checking c library for access... " >&6; }
18671 if test x$gcc_no_link != xyes; then
18672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for access in -lc" >&5
18673 $as_echo_n "checking for access in -lc... " >&6; }
18674 if ${ac_cv_lib_c_access+:} false; then :
18675 $as_echo_n "(cached) " >&6
18676 else
18677 ac_check_lib_save_LIBS=$LIBS
18678 LIBS="-lc $LIBS"
18679 if test x$gcc_no_link = xyes; then
18680 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18683 /* end confdefs.h. */
18685 /* Override any GCC internal prototype to avoid an error.
18686 Use char because int might match the return type of a GCC
18687 builtin and then its argument prototype would still apply. */
18688 #ifdef __cplusplus
18689 extern "C"
18690 #endif
18691 char access ();
18693 main ()
18695 return access ();
18697 return 0;
18699 _ACEOF
18700 if ac_fn_c_try_link "$LINENO"; then :
18701 ac_cv_lib_c_access=yes
18702 else
18703 ac_cv_lib_c_access=no
18705 rm -f core conftest.err conftest.$ac_objext \
18706 conftest$ac_exeext conftest.$ac_ext
18707 LIBS=$ac_check_lib_save_LIBS
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_access" >&5
18710 $as_echo "$ac_cv_lib_c_access" >&6; }
18711 if test "x$ac_cv_lib_c_access" = xyes; then :
18713 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
18715 else
18717 $as_echo "#undef HAVE_ACCESS" >>confdefs.h
18721 else
18722 if test "x$ac_cv_lib_c_access" = xyes; then
18724 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
18726 elif test "x$ac_cv_func_access" = xyes; then
18728 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
18730 else
18732 $as_echo "#undef HAVE_ACCESS" >>confdefs.h
18738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for brk" >&5
18739 $as_echo_n "checking m2 front end checking c library for brk... " >&6; }
18740 if test x$gcc_no_link != xyes; then
18741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for brk in -lc" >&5
18742 $as_echo_n "checking for brk in -lc... " >&6; }
18743 if ${ac_cv_lib_c_brk+:} false; then :
18744 $as_echo_n "(cached) " >&6
18745 else
18746 ac_check_lib_save_LIBS=$LIBS
18747 LIBS="-lc $LIBS"
18748 if test x$gcc_no_link = xyes; then
18749 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18752 /* end confdefs.h. */
18754 /* Override any GCC internal prototype to avoid an error.
18755 Use char because int might match the return type of a GCC
18756 builtin and then its argument prototype would still apply. */
18757 #ifdef __cplusplus
18758 extern "C"
18759 #endif
18760 char brk ();
18762 main ()
18764 return brk ();
18766 return 0;
18768 _ACEOF
18769 if ac_fn_c_try_link "$LINENO"; then :
18770 ac_cv_lib_c_brk=yes
18771 else
18772 ac_cv_lib_c_brk=no
18774 rm -f core conftest.err conftest.$ac_objext \
18775 conftest$ac_exeext conftest.$ac_ext
18776 LIBS=$ac_check_lib_save_LIBS
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_brk" >&5
18779 $as_echo "$ac_cv_lib_c_brk" >&6; }
18780 if test "x$ac_cv_lib_c_brk" = xyes; then :
18782 $as_echo "#define HAVE_BRK 1" >>confdefs.h
18784 else
18786 $as_echo "#undef HAVE_BRK" >>confdefs.h
18790 else
18791 if test "x$ac_cv_lib_c_brk" = xyes; then
18793 $as_echo "#define HAVE_BRK 1" >>confdefs.h
18795 elif test "x$ac_cv_func_brk" = xyes; then
18797 $as_echo "#define HAVE_BRK 1" >>confdefs.h
18799 else
18801 $as_echo "#undef HAVE_BRK" >>confdefs.h
18807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for cfmakeraw" >&5
18808 $as_echo_n "checking m2 front end checking c library for cfmakeraw... " >&6; }
18809 if test x$gcc_no_link != xyes; then
18810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cfmakeraw in -lc" >&5
18811 $as_echo_n "checking for cfmakeraw in -lc... " >&6; }
18812 if ${ac_cv_lib_c_cfmakeraw+:} false; then :
18813 $as_echo_n "(cached) " >&6
18814 else
18815 ac_check_lib_save_LIBS=$LIBS
18816 LIBS="-lc $LIBS"
18817 if test x$gcc_no_link = xyes; then
18818 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18821 /* end confdefs.h. */
18823 /* Override any GCC internal prototype to avoid an error.
18824 Use char because int might match the return type of a GCC
18825 builtin and then its argument prototype would still apply. */
18826 #ifdef __cplusplus
18827 extern "C"
18828 #endif
18829 char cfmakeraw ();
18831 main ()
18833 return cfmakeraw ();
18835 return 0;
18837 _ACEOF
18838 if ac_fn_c_try_link "$LINENO"; then :
18839 ac_cv_lib_c_cfmakeraw=yes
18840 else
18841 ac_cv_lib_c_cfmakeraw=no
18843 rm -f core conftest.err conftest.$ac_objext \
18844 conftest$ac_exeext conftest.$ac_ext
18845 LIBS=$ac_check_lib_save_LIBS
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_cfmakeraw" >&5
18848 $as_echo "$ac_cv_lib_c_cfmakeraw" >&6; }
18849 if test "x$ac_cv_lib_c_cfmakeraw" = xyes; then :
18851 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
18853 else
18855 $as_echo "#undef HAVE_CFMAKERAW" >>confdefs.h
18859 else
18860 if test "x$ac_cv_lib_c_cfmakeraw" = xyes; then
18862 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
18864 elif test "x$ac_cv_func_cfmakeraw" = xyes; then
18866 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
18868 else
18870 $as_echo "#undef HAVE_CFMAKERAW" >>confdefs.h
18876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for clock_gettime" >&5
18877 $as_echo_n "checking m2 front end checking c library for clock_gettime... " >&6; }
18878 if test x$gcc_no_link != xyes; then
18879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
18880 $as_echo_n "checking for clock_gettime in -lc... " >&6; }
18881 if ${ac_cv_lib_c_clock_gettime+:} false; then :
18882 $as_echo_n "(cached) " >&6
18883 else
18884 ac_check_lib_save_LIBS=$LIBS
18885 LIBS="-lc $LIBS"
18886 if test x$gcc_no_link = xyes; then
18887 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18890 /* end confdefs.h. */
18892 /* Override any GCC internal prototype to avoid an error.
18893 Use char because int might match the return type of a GCC
18894 builtin and then its argument prototype would still apply. */
18895 #ifdef __cplusplus
18896 extern "C"
18897 #endif
18898 char clock_gettime ();
18900 main ()
18902 return clock_gettime ();
18904 return 0;
18906 _ACEOF
18907 if ac_fn_c_try_link "$LINENO"; then :
18908 ac_cv_lib_c_clock_gettime=yes
18909 else
18910 ac_cv_lib_c_clock_gettime=no
18912 rm -f core conftest.err conftest.$ac_objext \
18913 conftest$ac_exeext conftest.$ac_ext
18914 LIBS=$ac_check_lib_save_LIBS
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
18917 $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
18918 if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
18920 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
18922 else
18924 $as_echo "#undef HAVE_CLOCK_GETTIME" >>confdefs.h
18928 else
18929 if test "x$ac_cv_lib_c_clock_gettime" = xyes; then
18931 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
18933 elif test "x$ac_cv_func_clock_gettime" = xyes; then
18935 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
18937 else
18939 $as_echo "#undef HAVE_CLOCK_GETTIME" >>confdefs.h
18945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for clock_settime" >&5
18946 $as_echo_n "checking m2 front end checking c library for clock_settime... " >&6; }
18947 if test x$gcc_no_link != xyes; then
18948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lc" >&5
18949 $as_echo_n "checking for clock_settime in -lc... " >&6; }
18950 if ${ac_cv_lib_c_clock_settime+:} false; then :
18951 $as_echo_n "(cached) " >&6
18952 else
18953 ac_check_lib_save_LIBS=$LIBS
18954 LIBS="-lc $LIBS"
18955 if test x$gcc_no_link = xyes; then
18956 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18959 /* end confdefs.h. */
18961 /* Override any GCC internal prototype to avoid an error.
18962 Use char because int might match the return type of a GCC
18963 builtin and then its argument prototype would still apply. */
18964 #ifdef __cplusplus
18965 extern "C"
18966 #endif
18967 char clock_settime ();
18969 main ()
18971 return clock_settime ();
18973 return 0;
18975 _ACEOF
18976 if ac_fn_c_try_link "$LINENO"; then :
18977 ac_cv_lib_c_clock_settime=yes
18978 else
18979 ac_cv_lib_c_clock_settime=no
18981 rm -f core conftest.err conftest.$ac_objext \
18982 conftest$ac_exeext conftest.$ac_ext
18983 LIBS=$ac_check_lib_save_LIBS
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_settime" >&5
18986 $as_echo "$ac_cv_lib_c_clock_settime" >&6; }
18987 if test "x$ac_cv_lib_c_clock_settime" = xyes; then :
18989 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
18991 else
18993 $as_echo "#undef HAVE_CLOCK_SETTIME" >>confdefs.h
18997 else
18998 if test "x$ac_cv_lib_c_clock_settime" = xyes; then
19000 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
19002 elif test "x$ac_cv_func_clock_settime" = xyes; then
19004 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
19006 else
19008 $as_echo "#undef HAVE_CLOCK_SETTIME" >>confdefs.h
19014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for close" >&5
19015 $as_echo_n "checking m2 front end checking c library for close... " >&6; }
19016 if test x$gcc_no_link != xyes; then
19017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for close in -lc" >&5
19018 $as_echo_n "checking for close in -lc... " >&6; }
19019 if ${ac_cv_lib_c_close+:} false; then :
19020 $as_echo_n "(cached) " >&6
19021 else
19022 ac_check_lib_save_LIBS=$LIBS
19023 LIBS="-lc $LIBS"
19024 if test x$gcc_no_link = xyes; then
19025 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19028 /* end confdefs.h. */
19030 /* Override any GCC internal prototype to avoid an error.
19031 Use char because int might match the return type of a GCC
19032 builtin and then its argument prototype would still apply. */
19033 #ifdef __cplusplus
19034 extern "C"
19035 #endif
19036 char close ();
19038 main ()
19040 return close ();
19042 return 0;
19044 _ACEOF
19045 if ac_fn_c_try_link "$LINENO"; then :
19046 ac_cv_lib_c_close=yes
19047 else
19048 ac_cv_lib_c_close=no
19050 rm -f core conftest.err conftest.$ac_objext \
19051 conftest$ac_exeext conftest.$ac_ext
19052 LIBS=$ac_check_lib_save_LIBS
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_close" >&5
19055 $as_echo "$ac_cv_lib_c_close" >&6; }
19056 if test "x$ac_cv_lib_c_close" = xyes; then :
19058 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
19060 else
19062 $as_echo "#undef HAVE_CLOSE" >>confdefs.h
19066 else
19067 if test "x$ac_cv_lib_c_close" = xyes; then
19069 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
19071 elif test "x$ac_cv_func_close" = xyes; then
19073 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
19075 else
19077 $as_echo "#undef HAVE_CLOSE" >>confdefs.h
19083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for ctime" >&5
19084 $as_echo_n "checking m2 front end checking c library for ctime... " >&6; }
19085 if test x$gcc_no_link != xyes; then
19086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctime in -lc" >&5
19087 $as_echo_n "checking for ctime in -lc... " >&6; }
19088 if ${ac_cv_lib_c_ctime+:} false; then :
19089 $as_echo_n "(cached) " >&6
19090 else
19091 ac_check_lib_save_LIBS=$LIBS
19092 LIBS="-lc $LIBS"
19093 if test x$gcc_no_link = xyes; then
19094 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19097 /* end confdefs.h. */
19099 /* Override any GCC internal prototype to avoid an error.
19100 Use char because int might match the return type of a GCC
19101 builtin and then its argument prototype would still apply. */
19102 #ifdef __cplusplus
19103 extern "C"
19104 #endif
19105 char ctime ();
19107 main ()
19109 return ctime ();
19111 return 0;
19113 _ACEOF
19114 if ac_fn_c_try_link "$LINENO"; then :
19115 ac_cv_lib_c_ctime=yes
19116 else
19117 ac_cv_lib_c_ctime=no
19119 rm -f core conftest.err conftest.$ac_objext \
19120 conftest$ac_exeext conftest.$ac_ext
19121 LIBS=$ac_check_lib_save_LIBS
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_ctime" >&5
19124 $as_echo "$ac_cv_lib_c_ctime" >&6; }
19125 if test "x$ac_cv_lib_c_ctime" = xyes; then :
19127 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
19129 else
19131 $as_echo "#undef HAVE_CTIME" >>confdefs.h
19135 else
19136 if test "x$ac_cv_lib_c_ctime" = xyes; then
19138 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
19140 elif test "x$ac_cv_func_ctime" = xyes; then
19142 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
19144 else
19146 $as_echo "#undef HAVE_CTIME" >>confdefs.h
19152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for creat" >&5
19153 $as_echo_n "checking m2 front end checking c library for creat... " >&6; }
19154 if test x$gcc_no_link != xyes; then
19155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for creat in -lc" >&5
19156 $as_echo_n "checking for creat in -lc... " >&6; }
19157 if ${ac_cv_lib_c_creat+:} false; then :
19158 $as_echo_n "(cached) " >&6
19159 else
19160 ac_check_lib_save_LIBS=$LIBS
19161 LIBS="-lc $LIBS"
19162 if test x$gcc_no_link = xyes; then
19163 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19166 /* end confdefs.h. */
19168 /* Override any GCC internal prototype to avoid an error.
19169 Use char because int might match the return type of a GCC
19170 builtin and then its argument prototype would still apply. */
19171 #ifdef __cplusplus
19172 extern "C"
19173 #endif
19174 char creat ();
19176 main ()
19178 return creat ();
19180 return 0;
19182 _ACEOF
19183 if ac_fn_c_try_link "$LINENO"; then :
19184 ac_cv_lib_c_creat=yes
19185 else
19186 ac_cv_lib_c_creat=no
19188 rm -f core conftest.err conftest.$ac_objext \
19189 conftest$ac_exeext conftest.$ac_ext
19190 LIBS=$ac_check_lib_save_LIBS
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_creat" >&5
19193 $as_echo "$ac_cv_lib_c_creat" >&6; }
19194 if test "x$ac_cv_lib_c_creat" = xyes; then :
19196 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
19198 else
19200 $as_echo "#undef HAVE_CREAT" >>confdefs.h
19204 else
19205 if test "x$ac_cv_lib_c_creat" = xyes; then
19207 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
19209 elif test "x$ac_cv_func_creat" = xyes; then
19211 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
19213 else
19215 $as_echo "#undef HAVE_CREAT" >>confdefs.h
19221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for daylight" >&5
19222 $as_echo_n "checking m2 front end checking c library for daylight... " >&6; }
19223 if test x$gcc_no_link != xyes; then
19224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight in -lc" >&5
19225 $as_echo_n "checking for daylight in -lc... " >&6; }
19226 if ${ac_cv_lib_c_daylight+:} false; then :
19227 $as_echo_n "(cached) " >&6
19228 else
19229 ac_check_lib_save_LIBS=$LIBS
19230 LIBS="-lc $LIBS"
19231 if test x$gcc_no_link = xyes; then
19232 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19235 /* end confdefs.h. */
19237 /* Override any GCC internal prototype to avoid an error.
19238 Use char because int might match the return type of a GCC
19239 builtin and then its argument prototype would still apply. */
19240 #ifdef __cplusplus
19241 extern "C"
19242 #endif
19243 char daylight ();
19245 main ()
19247 return daylight ();
19249 return 0;
19251 _ACEOF
19252 if ac_fn_c_try_link "$LINENO"; then :
19253 ac_cv_lib_c_daylight=yes
19254 else
19255 ac_cv_lib_c_daylight=no
19257 rm -f core conftest.err conftest.$ac_objext \
19258 conftest$ac_exeext conftest.$ac_ext
19259 LIBS=$ac_check_lib_save_LIBS
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_daylight" >&5
19262 $as_echo "$ac_cv_lib_c_daylight" >&6; }
19263 if test "x$ac_cv_lib_c_daylight" = xyes; then :
19265 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
19267 else
19269 $as_echo "#undef HAVE_DAYLIGHT" >>confdefs.h
19273 else
19274 if test "x$ac_cv_lib_c_daylight" = xyes; then
19276 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
19278 elif test "x$ac_cv_func_daylight" = xyes; then
19280 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
19282 else
19284 $as_echo "#undef HAVE_DAYLIGHT" >>confdefs.h
19290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for dup" >&5
19291 $as_echo_n "checking m2 front end checking c library for dup... " >&6; }
19292 if test x$gcc_no_link != xyes; then
19293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup in -lc" >&5
19294 $as_echo_n "checking for dup in -lc... " >&6; }
19295 if ${ac_cv_lib_c_dup+:} false; then :
19296 $as_echo_n "(cached) " >&6
19297 else
19298 ac_check_lib_save_LIBS=$LIBS
19299 LIBS="-lc $LIBS"
19300 if test x$gcc_no_link = xyes; then
19301 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19304 /* end confdefs.h. */
19306 /* Override any GCC internal prototype to avoid an error.
19307 Use char because int might match the return type of a GCC
19308 builtin and then its argument prototype would still apply. */
19309 #ifdef __cplusplus
19310 extern "C"
19311 #endif
19312 char dup ();
19314 main ()
19316 return dup ();
19318 return 0;
19320 _ACEOF
19321 if ac_fn_c_try_link "$LINENO"; then :
19322 ac_cv_lib_c_dup=yes
19323 else
19324 ac_cv_lib_c_dup=no
19326 rm -f core conftest.err conftest.$ac_objext \
19327 conftest$ac_exeext conftest.$ac_ext
19328 LIBS=$ac_check_lib_save_LIBS
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dup" >&5
19331 $as_echo "$ac_cv_lib_c_dup" >&6; }
19332 if test "x$ac_cv_lib_c_dup" = xyes; then :
19334 $as_echo "#define HAVE_DUP 1" >>confdefs.h
19336 else
19338 $as_echo "#undef HAVE_DUP" >>confdefs.h
19342 else
19343 if test "x$ac_cv_lib_c_dup" = xyes; then
19345 $as_echo "#define HAVE_DUP 1" >>confdefs.h
19347 elif test "x$ac_cv_func_dup" = xyes; then
19349 $as_echo "#define HAVE_DUP 1" >>confdefs.h
19351 else
19353 $as_echo "#undef HAVE_DUP" >>confdefs.h
19359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for execve" >&5
19360 $as_echo_n "checking m2 front end checking c library for execve... " >&6; }
19361 if test x$gcc_no_link != xyes; then
19362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execve in -lc" >&5
19363 $as_echo_n "checking for execve in -lc... " >&6; }
19364 if ${ac_cv_lib_c_execve+:} false; then :
19365 $as_echo_n "(cached) " >&6
19366 else
19367 ac_check_lib_save_LIBS=$LIBS
19368 LIBS="-lc $LIBS"
19369 if test x$gcc_no_link = xyes; then
19370 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19373 /* end confdefs.h. */
19375 /* Override any GCC internal prototype to avoid an error.
19376 Use char because int might match the return type of a GCC
19377 builtin and then its argument prototype would still apply. */
19378 #ifdef __cplusplus
19379 extern "C"
19380 #endif
19381 char execve ();
19383 main ()
19385 return execve ();
19387 return 0;
19389 _ACEOF
19390 if ac_fn_c_try_link "$LINENO"; then :
19391 ac_cv_lib_c_execve=yes
19392 else
19393 ac_cv_lib_c_execve=no
19395 rm -f core conftest.err conftest.$ac_objext \
19396 conftest$ac_exeext conftest.$ac_ext
19397 LIBS=$ac_check_lib_save_LIBS
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_execve" >&5
19400 $as_echo "$ac_cv_lib_c_execve" >&6; }
19401 if test "x$ac_cv_lib_c_execve" = xyes; then :
19403 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
19405 else
19407 $as_echo "#undef HAVE_EXECVE" >>confdefs.h
19411 else
19412 if test "x$ac_cv_lib_c_execve" = xyes; then
19414 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
19416 elif test "x$ac_cv_func_execve" = xyes; then
19418 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
19420 else
19422 $as_echo "#undef HAVE_EXECVE" >>confdefs.h
19428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for exit" >&5
19429 $as_echo_n "checking m2 front end checking c library for exit... " >&6; }
19430 if test x$gcc_no_link != xyes; then
19431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lc" >&5
19432 $as_echo_n "checking for exit in -lc... " >&6; }
19433 if ${ac_cv_lib_c_exit+:} false; then :
19434 $as_echo_n "(cached) " >&6
19435 else
19436 ac_check_lib_save_LIBS=$LIBS
19437 LIBS="-lc $LIBS"
19438 if test x$gcc_no_link = xyes; then
19439 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19442 /* end confdefs.h. */
19444 /* Override any GCC internal prototype to avoid an error.
19445 Use char because int might match the return type of a GCC
19446 builtin and then its argument prototype would still apply. */
19447 #ifdef __cplusplus
19448 extern "C"
19449 #endif
19450 char exit ();
19452 main ()
19454 return exit ();
19456 return 0;
19458 _ACEOF
19459 if ac_fn_c_try_link "$LINENO"; then :
19460 ac_cv_lib_c_exit=yes
19461 else
19462 ac_cv_lib_c_exit=no
19464 rm -f core conftest.err conftest.$ac_objext \
19465 conftest$ac_exeext conftest.$ac_ext
19466 LIBS=$ac_check_lib_save_LIBS
19468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_exit" >&5
19469 $as_echo "$ac_cv_lib_c_exit" >&6; }
19470 if test "x$ac_cv_lib_c_exit" = xyes; then :
19472 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
19474 else
19476 $as_echo "#undef HAVE_EXIT" >>confdefs.h
19480 else
19481 if test "x$ac_cv_lib_c_exit" = xyes; then
19483 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
19485 elif test "x$ac_cv_func_exit" = xyes; then
19487 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
19489 else
19491 $as_echo "#undef HAVE_EXIT" >>confdefs.h
19497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for fcntl" >&5
19498 $as_echo_n "checking m2 front end checking c library for fcntl... " >&6; }
19499 if test x$gcc_no_link != xyes; then
19500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcntl in -lc" >&5
19501 $as_echo_n "checking for fcntl in -lc... " >&6; }
19502 if ${ac_cv_lib_c_fcntl+:} false; then :
19503 $as_echo_n "(cached) " >&6
19504 else
19505 ac_check_lib_save_LIBS=$LIBS
19506 LIBS="-lc $LIBS"
19507 if test x$gcc_no_link = xyes; then
19508 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19511 /* end confdefs.h. */
19513 /* Override any GCC internal prototype to avoid an error.
19514 Use char because int might match the return type of a GCC
19515 builtin and then its argument prototype would still apply. */
19516 #ifdef __cplusplus
19517 extern "C"
19518 #endif
19519 char fcntl ();
19521 main ()
19523 return fcntl ();
19525 return 0;
19527 _ACEOF
19528 if ac_fn_c_try_link "$LINENO"; then :
19529 ac_cv_lib_c_fcntl=yes
19530 else
19531 ac_cv_lib_c_fcntl=no
19533 rm -f core conftest.err conftest.$ac_objext \
19534 conftest$ac_exeext conftest.$ac_ext
19535 LIBS=$ac_check_lib_save_LIBS
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_fcntl" >&5
19538 $as_echo "$ac_cv_lib_c_fcntl" >&6; }
19539 if test "x$ac_cv_lib_c_fcntl" = xyes; then :
19541 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
19543 else
19545 $as_echo "#undef HAVE_FCNTL" >>confdefs.h
19549 else
19550 if test "x$ac_cv_lib_c_fcntl" = xyes; then
19552 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
19554 elif test "x$ac_cv_func_fcntl" = xyes; then
19556 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
19558 else
19560 $as_echo "#undef HAVE_FCNTL" >>confdefs.h
19566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for fstat" >&5
19567 $as_echo_n "checking m2 front end checking c library for fstat... " >&6; }
19568 if test x$gcc_no_link != xyes; then
19569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fstat in -lc" >&5
19570 $as_echo_n "checking for fstat in -lc... " >&6; }
19571 if ${ac_cv_lib_c_fstat+:} false; then :
19572 $as_echo_n "(cached) " >&6
19573 else
19574 ac_check_lib_save_LIBS=$LIBS
19575 LIBS="-lc $LIBS"
19576 if test x$gcc_no_link = xyes; then
19577 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19580 /* end confdefs.h. */
19582 /* Override any GCC internal prototype to avoid an error.
19583 Use char because int might match the return type of a GCC
19584 builtin and then its argument prototype would still apply. */
19585 #ifdef __cplusplus
19586 extern "C"
19587 #endif
19588 char fstat ();
19590 main ()
19592 return fstat ();
19594 return 0;
19596 _ACEOF
19597 if ac_fn_c_try_link "$LINENO"; then :
19598 ac_cv_lib_c_fstat=yes
19599 else
19600 ac_cv_lib_c_fstat=no
19602 rm -f core conftest.err conftest.$ac_objext \
19603 conftest$ac_exeext conftest.$ac_ext
19604 LIBS=$ac_check_lib_save_LIBS
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_fstat" >&5
19607 $as_echo "$ac_cv_lib_c_fstat" >&6; }
19608 if test "x$ac_cv_lib_c_fstat" = xyes; then :
19610 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
19612 else
19614 $as_echo "#undef HAVE_FSTAT" >>confdefs.h
19618 else
19619 if test "x$ac_cv_lib_c_fstat" = xyes; then
19621 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
19623 elif test "x$ac_cv_func_fstat" = xyes; then
19625 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
19627 else
19629 $as_echo "#undef HAVE_FSTAT" >>confdefs.h
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getdents" >&5
19636 $as_echo_n "checking m2 front end checking c library for getdents... " >&6; }
19637 if test x$gcc_no_link != xyes; then
19638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getdents in -lc" >&5
19639 $as_echo_n "checking for getdents in -lc... " >&6; }
19640 if ${ac_cv_lib_c_getdents+:} false; then :
19641 $as_echo_n "(cached) " >&6
19642 else
19643 ac_check_lib_save_LIBS=$LIBS
19644 LIBS="-lc $LIBS"
19645 if test x$gcc_no_link = xyes; then
19646 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19649 /* end confdefs.h. */
19651 /* Override any GCC internal prototype to avoid an error.
19652 Use char because int might match the return type of a GCC
19653 builtin and then its argument prototype would still apply. */
19654 #ifdef __cplusplus
19655 extern "C"
19656 #endif
19657 char getdents ();
19659 main ()
19661 return getdents ();
19663 return 0;
19665 _ACEOF
19666 if ac_fn_c_try_link "$LINENO"; then :
19667 ac_cv_lib_c_getdents=yes
19668 else
19669 ac_cv_lib_c_getdents=no
19671 rm -f core conftest.err conftest.$ac_objext \
19672 conftest$ac_exeext conftest.$ac_ext
19673 LIBS=$ac_check_lib_save_LIBS
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getdents" >&5
19676 $as_echo "$ac_cv_lib_c_getdents" >&6; }
19677 if test "x$ac_cv_lib_c_getdents" = xyes; then :
19679 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
19681 else
19683 $as_echo "#undef HAVE_GETDENTS" >>confdefs.h
19687 else
19688 if test "x$ac_cv_lib_c_getdents" = xyes; then
19690 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
19692 elif test "x$ac_cv_func_getdents" = xyes; then
19694 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
19696 else
19698 $as_echo "#undef HAVE_GETDENTS" >>confdefs.h
19704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getgid" >&5
19705 $as_echo_n "checking m2 front end checking c library for getgid... " >&6; }
19706 if test x$gcc_no_link != xyes; then
19707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgid in -lc" >&5
19708 $as_echo_n "checking for getgid in -lc... " >&6; }
19709 if ${ac_cv_lib_c_getgid+:} false; then :
19710 $as_echo_n "(cached) " >&6
19711 else
19712 ac_check_lib_save_LIBS=$LIBS
19713 LIBS="-lc $LIBS"
19714 if test x$gcc_no_link = xyes; then
19715 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19718 /* end confdefs.h. */
19720 /* Override any GCC internal prototype to avoid an error.
19721 Use char because int might match the return type of a GCC
19722 builtin and then its argument prototype would still apply. */
19723 #ifdef __cplusplus
19724 extern "C"
19725 #endif
19726 char getgid ();
19728 main ()
19730 return getgid ();
19732 return 0;
19734 _ACEOF
19735 if ac_fn_c_try_link "$LINENO"; then :
19736 ac_cv_lib_c_getgid=yes
19737 else
19738 ac_cv_lib_c_getgid=no
19740 rm -f core conftest.err conftest.$ac_objext \
19741 conftest$ac_exeext conftest.$ac_ext
19742 LIBS=$ac_check_lib_save_LIBS
19744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getgid" >&5
19745 $as_echo "$ac_cv_lib_c_getgid" >&6; }
19746 if test "x$ac_cv_lib_c_getgid" = xyes; then :
19748 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
19750 else
19752 $as_echo "#undef HAVE_GETGID" >>confdefs.h
19756 else
19757 if test "x$ac_cv_lib_c_getgid" = xyes; then
19759 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
19761 elif test "x$ac_cv_func_getgid" = xyes; then
19763 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
19765 else
19767 $as_echo "#undef HAVE_GETGID" >>confdefs.h
19773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getopt_long" >&5
19774 $as_echo_n "checking m2 front end checking c library for getopt_long... " >&6; }
19775 if test x$gcc_no_link != xyes; then
19776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long in -lc" >&5
19777 $as_echo_n "checking for getopt_long in -lc... " >&6; }
19778 if ${ac_cv_lib_c_getopt_long+:} false; then :
19779 $as_echo_n "(cached) " >&6
19780 else
19781 ac_check_lib_save_LIBS=$LIBS
19782 LIBS="-lc $LIBS"
19783 if test x$gcc_no_link = xyes; then
19784 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19787 /* end confdefs.h. */
19789 /* Override any GCC internal prototype to avoid an error.
19790 Use char because int might match the return type of a GCC
19791 builtin and then its argument prototype would still apply. */
19792 #ifdef __cplusplus
19793 extern "C"
19794 #endif
19795 char getopt_long ();
19797 main ()
19799 return getopt_long ();
19801 return 0;
19803 _ACEOF
19804 if ac_fn_c_try_link "$LINENO"; then :
19805 ac_cv_lib_c_getopt_long=yes
19806 else
19807 ac_cv_lib_c_getopt_long=no
19809 rm -f core conftest.err conftest.$ac_objext \
19810 conftest$ac_exeext conftest.$ac_ext
19811 LIBS=$ac_check_lib_save_LIBS
19813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getopt_long" >&5
19814 $as_echo "$ac_cv_lib_c_getopt_long" >&6; }
19815 if test "x$ac_cv_lib_c_getopt_long" = xyes; then :
19817 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
19819 else
19821 $as_echo "#undef HAVE_GETOPT_LONG" >>confdefs.h
19825 else
19826 if test "x$ac_cv_lib_c_getopt_long" = xyes; then
19828 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
19830 elif test "x$ac_cv_func_getopt_long" = xyes; then
19832 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
19834 else
19836 $as_echo "#undef HAVE_GETOPT_LONG" >>confdefs.h
19842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getopt_long_only" >&5
19843 $as_echo_n "checking m2 front end checking c library for getopt_long_only... " >&6; }
19844 if test x$gcc_no_link != xyes; then
19845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long_only in -lc" >&5
19846 $as_echo_n "checking for getopt_long_only in -lc... " >&6; }
19847 if ${ac_cv_lib_c_getopt_long_only+:} false; then :
19848 $as_echo_n "(cached) " >&6
19849 else
19850 ac_check_lib_save_LIBS=$LIBS
19851 LIBS="-lc $LIBS"
19852 if test x$gcc_no_link = xyes; then
19853 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19856 /* end confdefs.h. */
19858 /* Override any GCC internal prototype to avoid an error.
19859 Use char because int might match the return type of a GCC
19860 builtin and then its argument prototype would still apply. */
19861 #ifdef __cplusplus
19862 extern "C"
19863 #endif
19864 char getopt_long_only ();
19866 main ()
19868 return getopt_long_only ();
19870 return 0;
19872 _ACEOF
19873 if ac_fn_c_try_link "$LINENO"; then :
19874 ac_cv_lib_c_getopt_long_only=yes
19875 else
19876 ac_cv_lib_c_getopt_long_only=no
19878 rm -f core conftest.err conftest.$ac_objext \
19879 conftest$ac_exeext conftest.$ac_ext
19880 LIBS=$ac_check_lib_save_LIBS
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getopt_long_only" >&5
19883 $as_echo "$ac_cv_lib_c_getopt_long_only" >&6; }
19884 if test "x$ac_cv_lib_c_getopt_long_only" = xyes; then :
19886 $as_echo "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h
19888 else
19890 $as_echo "#undef HAVE_GETOPT_LONG_ONLY" >>confdefs.h
19894 else
19895 if test "x$ac_cv_lib_c_getopt_long_only" = xyes; then
19897 $as_echo "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h
19899 elif test "x$ac_cv_func_getopt_long_only" = xyes; then
19901 $as_echo "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h
19903 else
19905 $as_echo "#undef HAVE_GETOPT_LONG_ONLY" >>confdefs.h
19911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getpid" >&5
19912 $as_echo_n "checking m2 front end checking c library for getpid... " >&6; }
19913 if test x$gcc_no_link != xyes; then
19914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpid in -lc" >&5
19915 $as_echo_n "checking for getpid in -lc... " >&6; }
19916 if ${ac_cv_lib_c_getpid+:} false; then :
19917 $as_echo_n "(cached) " >&6
19918 else
19919 ac_check_lib_save_LIBS=$LIBS
19920 LIBS="-lc $LIBS"
19921 if test x$gcc_no_link = xyes; then
19922 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19925 /* end confdefs.h. */
19927 /* Override any GCC internal prototype to avoid an error.
19928 Use char because int might match the return type of a GCC
19929 builtin and then its argument prototype would still apply. */
19930 #ifdef __cplusplus
19931 extern "C"
19932 #endif
19933 char getpid ();
19935 main ()
19937 return getpid ();
19939 return 0;
19941 _ACEOF
19942 if ac_fn_c_try_link "$LINENO"; then :
19943 ac_cv_lib_c_getpid=yes
19944 else
19945 ac_cv_lib_c_getpid=no
19947 rm -f core conftest.err conftest.$ac_objext \
19948 conftest$ac_exeext conftest.$ac_ext
19949 LIBS=$ac_check_lib_save_LIBS
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpid" >&5
19952 $as_echo "$ac_cv_lib_c_getpid" >&6; }
19953 if test "x$ac_cv_lib_c_getpid" = xyes; then :
19955 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
19957 else
19959 $as_echo "#undef HAVE_GETPID" >>confdefs.h
19963 else
19964 if test "x$ac_cv_lib_c_getpid" = xyes; then
19966 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
19968 elif test "x$ac_cv_func_getpid" = xyes; then
19970 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
19972 else
19974 $as_echo "#undef HAVE_GETPID" >>confdefs.h
19980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for gettimeofday" >&5
19981 $as_echo_n "checking m2 front end checking c library for gettimeofday... " >&6; }
19982 if test x$gcc_no_link != xyes; then
19983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lc" >&5
19984 $as_echo_n "checking for gettimeofday in -lc... " >&6; }
19985 if ${ac_cv_lib_c_gettimeofday+:} false; then :
19986 $as_echo_n "(cached) " >&6
19987 else
19988 ac_check_lib_save_LIBS=$LIBS
19989 LIBS="-lc $LIBS"
19990 if test x$gcc_no_link = xyes; then
19991 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19994 /* end confdefs.h. */
19996 /* Override any GCC internal prototype to avoid an error.
19997 Use char because int might match the return type of a GCC
19998 builtin and then its argument prototype would still apply. */
19999 #ifdef __cplusplus
20000 extern "C"
20001 #endif
20002 char gettimeofday ();
20004 main ()
20006 return gettimeofday ();
20008 return 0;
20010 _ACEOF
20011 if ac_fn_c_try_link "$LINENO"; then :
20012 ac_cv_lib_c_gettimeofday=yes
20013 else
20014 ac_cv_lib_c_gettimeofday=no
20016 rm -f core conftest.err conftest.$ac_objext \
20017 conftest$ac_exeext conftest.$ac_ext
20018 LIBS=$ac_check_lib_save_LIBS
20020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gettimeofday" >&5
20021 $as_echo "$ac_cv_lib_c_gettimeofday" >&6; }
20022 if test "x$ac_cv_lib_c_gettimeofday" = xyes; then :
20024 $as_echo "#define HAVE_GETTIMEOFD 1" >>confdefs.h
20026 else
20028 $as_echo "#undef HAVE_GETTIMEOFD" >>confdefs.h
20032 else
20033 if test "x$ac_cv_lib_c_gettimeofday" = xyes; then
20035 $as_echo "#define HAVE_GETTIMEOFD 1" >>confdefs.h
20037 elif test "x$ac_cv_func_gettimeofday" = xyes; then
20039 $as_echo "#define HAVE_GETTIMEOFD 1" >>confdefs.h
20041 else
20043 $as_echo "#undef HAVE_GETTIMEOFD" >>confdefs.h
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getuid" >&5
20050 $as_echo_n "checking m2 front end checking c library for getuid... " >&6; }
20051 if test x$gcc_no_link != xyes; then
20052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getuid in -lc" >&5
20053 $as_echo_n "checking for getuid in -lc... " >&6; }
20054 if ${ac_cv_lib_c_getuid+:} false; then :
20055 $as_echo_n "(cached) " >&6
20056 else
20057 ac_check_lib_save_LIBS=$LIBS
20058 LIBS="-lc $LIBS"
20059 if test x$gcc_no_link = xyes; then
20060 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20063 /* end confdefs.h. */
20065 /* Override any GCC internal prototype to avoid an error.
20066 Use char because int might match the return type of a GCC
20067 builtin and then its argument prototype would still apply. */
20068 #ifdef __cplusplus
20069 extern "C"
20070 #endif
20071 char getuid ();
20073 main ()
20075 return getuid ();
20077 return 0;
20079 _ACEOF
20080 if ac_fn_c_try_link "$LINENO"; then :
20081 ac_cv_lib_c_getuid=yes
20082 else
20083 ac_cv_lib_c_getuid=no
20085 rm -f core conftest.err conftest.$ac_objext \
20086 conftest$ac_exeext conftest.$ac_ext
20087 LIBS=$ac_check_lib_save_LIBS
20089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getuid" >&5
20090 $as_echo "$ac_cv_lib_c_getuid" >&6; }
20091 if test "x$ac_cv_lib_c_getuid" = xyes; then :
20093 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
20095 else
20097 $as_echo "#undef HAVE_GETUID" >>confdefs.h
20101 else
20102 if test "x$ac_cv_lib_c_getuid" = xyes; then
20104 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
20106 elif test "x$ac_cv_func_getuid" = xyes; then
20108 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
20110 else
20112 $as_echo "#undef HAVE_GETUID" >>confdefs.h
20118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for ioctl" >&5
20119 $as_echo_n "checking m2 front end checking c library for ioctl... " >&6; }
20120 if test x$gcc_no_link != xyes; then
20121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl in -lc" >&5
20122 $as_echo_n "checking for ioctl in -lc... " >&6; }
20123 if ${ac_cv_lib_c_ioctl+:} false; then :
20124 $as_echo_n "(cached) " >&6
20125 else
20126 ac_check_lib_save_LIBS=$LIBS
20127 LIBS="-lc $LIBS"
20128 if test x$gcc_no_link = xyes; then
20129 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20132 /* end confdefs.h. */
20134 /* Override any GCC internal prototype to avoid an error.
20135 Use char because int might match the return type of a GCC
20136 builtin and then its argument prototype would still apply. */
20137 #ifdef __cplusplus
20138 extern "C"
20139 #endif
20140 char ioctl ();
20142 main ()
20144 return ioctl ();
20146 return 0;
20148 _ACEOF
20149 if ac_fn_c_try_link "$LINENO"; then :
20150 ac_cv_lib_c_ioctl=yes
20151 else
20152 ac_cv_lib_c_ioctl=no
20154 rm -f core conftest.err conftest.$ac_objext \
20155 conftest$ac_exeext conftest.$ac_ext
20156 LIBS=$ac_check_lib_save_LIBS
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_ioctl" >&5
20159 $as_echo "$ac_cv_lib_c_ioctl" >&6; }
20160 if test "x$ac_cv_lib_c_ioctl" = xyes; then :
20162 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
20164 else
20166 $as_echo "#undef HAVE_IOCTL" >>confdefs.h
20170 else
20171 if test "x$ac_cv_lib_c_ioctl" = xyes; then
20173 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
20175 elif test "x$ac_cv_func_ioctl" = xyes; then
20177 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
20179 else
20181 $as_echo "#undef HAVE_IOCTL" >>confdefs.h
20187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for kill" >&5
20188 $as_echo_n "checking m2 front end checking c library for kill... " >&6; }
20189 if test x$gcc_no_link != xyes; then
20190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kill in -lc" >&5
20191 $as_echo_n "checking for kill in -lc... " >&6; }
20192 if ${ac_cv_lib_c_kill+:} false; then :
20193 $as_echo_n "(cached) " >&6
20194 else
20195 ac_check_lib_save_LIBS=$LIBS
20196 LIBS="-lc $LIBS"
20197 if test x$gcc_no_link = xyes; then
20198 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20201 /* end confdefs.h. */
20203 /* Override any GCC internal prototype to avoid an error.
20204 Use char because int might match the return type of a GCC
20205 builtin and then its argument prototype would still apply. */
20206 #ifdef __cplusplus
20207 extern "C"
20208 #endif
20209 char kill ();
20211 main ()
20213 return kill ();
20215 return 0;
20217 _ACEOF
20218 if ac_fn_c_try_link "$LINENO"; then :
20219 ac_cv_lib_c_kill=yes
20220 else
20221 ac_cv_lib_c_kill=no
20223 rm -f core conftest.err conftest.$ac_objext \
20224 conftest$ac_exeext conftest.$ac_ext
20225 LIBS=$ac_check_lib_save_LIBS
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_kill" >&5
20228 $as_echo "$ac_cv_lib_c_kill" >&6; }
20229 if test "x$ac_cv_lib_c_kill" = xyes; then :
20231 $as_echo "#define HAVE_KILL 1" >>confdefs.h
20233 else
20235 $as_echo "#undef HAVE_KILL" >>confdefs.h
20239 else
20240 if test "x$ac_cv_lib_c_kill" = xyes; then
20242 $as_echo "#define HAVE_KILL 1" >>confdefs.h
20244 elif test "x$ac_cv_func_kill" = xyes; then
20246 $as_echo "#define HAVE_KILL 1" >>confdefs.h
20248 else
20250 $as_echo "#undef HAVE_KILL" >>confdefs.h
20256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for link" >&5
20257 $as_echo_n "checking m2 front end checking c library for link... " >&6; }
20258 if test x$gcc_no_link != xyes; then
20259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link in -lc" >&5
20260 $as_echo_n "checking for link in -lc... " >&6; }
20261 if ${ac_cv_lib_c_link+:} false; then :
20262 $as_echo_n "(cached) " >&6
20263 else
20264 ac_check_lib_save_LIBS=$LIBS
20265 LIBS="-lc $LIBS"
20266 if test x$gcc_no_link = xyes; then
20267 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20270 /* end confdefs.h. */
20272 /* Override any GCC internal prototype to avoid an error.
20273 Use char because int might match the return type of a GCC
20274 builtin and then its argument prototype would still apply. */
20275 #ifdef __cplusplus
20276 extern "C"
20277 #endif
20278 char link ();
20280 main ()
20282 return link ();
20284 return 0;
20286 _ACEOF
20287 if ac_fn_c_try_link "$LINENO"; then :
20288 ac_cv_lib_c_link=yes
20289 else
20290 ac_cv_lib_c_link=no
20292 rm -f core conftest.err conftest.$ac_objext \
20293 conftest$ac_exeext conftest.$ac_ext
20294 LIBS=$ac_check_lib_save_LIBS
20296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_link" >&5
20297 $as_echo "$ac_cv_lib_c_link" >&6; }
20298 if test "x$ac_cv_lib_c_link" = xyes; then :
20300 $as_echo "#define HAVE_LINK 1" >>confdefs.h
20302 else
20304 $as_echo "#undef HAVE_LINK" >>confdefs.h
20308 else
20309 if test "x$ac_cv_lib_c_link" = xyes; then
20311 $as_echo "#define HAVE_LINK 1" >>confdefs.h
20313 elif test "x$ac_cv_func_link" = xyes; then
20315 $as_echo "#define HAVE_LINK 1" >>confdefs.h
20317 else
20319 $as_echo "#undef HAVE_LINK" >>confdefs.h
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for lseek" >&5
20326 $as_echo_n "checking m2 front end checking c library for lseek... " >&6; }
20327 if test x$gcc_no_link != xyes; then
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lseek in -lc" >&5
20329 $as_echo_n "checking for lseek in -lc... " >&6; }
20330 if ${ac_cv_lib_c_lseek+:} false; then :
20331 $as_echo_n "(cached) " >&6
20332 else
20333 ac_check_lib_save_LIBS=$LIBS
20334 LIBS="-lc $LIBS"
20335 if test x$gcc_no_link = xyes; then
20336 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20339 /* end confdefs.h. */
20341 /* Override any GCC internal prototype to avoid an error.
20342 Use char because int might match the return type of a GCC
20343 builtin and then its argument prototype would still apply. */
20344 #ifdef __cplusplus
20345 extern "C"
20346 #endif
20347 char lseek ();
20349 main ()
20351 return lseek ();
20353 return 0;
20355 _ACEOF
20356 if ac_fn_c_try_link "$LINENO"; then :
20357 ac_cv_lib_c_lseek=yes
20358 else
20359 ac_cv_lib_c_lseek=no
20361 rm -f core conftest.err conftest.$ac_objext \
20362 conftest$ac_exeext conftest.$ac_ext
20363 LIBS=$ac_check_lib_save_LIBS
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_lseek" >&5
20366 $as_echo "$ac_cv_lib_c_lseek" >&6; }
20367 if test "x$ac_cv_lib_c_lseek" = xyes; then :
20369 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
20371 else
20373 $as_echo "#undef HAVE_LSEEK" >>confdefs.h
20377 else
20378 if test "x$ac_cv_lib_c_lseek" = xyes; then
20380 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
20382 elif test "x$ac_cv_func_lseek" = xyes; then
20384 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
20386 else
20388 $as_echo "#undef HAVE_LSEEK" >>confdefs.h
20394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for open" >&5
20395 $as_echo_n "checking m2 front end checking c library for open... " >&6; }
20396 if test x$gcc_no_link != xyes; then
20397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for open in -lc" >&5
20398 $as_echo_n "checking for open in -lc... " >&6; }
20399 if ${ac_cv_lib_c_open+:} false; then :
20400 $as_echo_n "(cached) " >&6
20401 else
20402 ac_check_lib_save_LIBS=$LIBS
20403 LIBS="-lc $LIBS"
20404 if test x$gcc_no_link = xyes; then
20405 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20408 /* end confdefs.h. */
20410 /* Override any GCC internal prototype to avoid an error.
20411 Use char because int might match the return type of a GCC
20412 builtin and then its argument prototype would still apply. */
20413 #ifdef __cplusplus
20414 extern "C"
20415 #endif
20416 char open ();
20418 main ()
20420 return open ();
20422 return 0;
20424 _ACEOF
20425 if ac_fn_c_try_link "$LINENO"; then :
20426 ac_cv_lib_c_open=yes
20427 else
20428 ac_cv_lib_c_open=no
20430 rm -f core conftest.err conftest.$ac_objext \
20431 conftest$ac_exeext conftest.$ac_ext
20432 LIBS=$ac_check_lib_save_LIBS
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_open" >&5
20435 $as_echo "$ac_cv_lib_c_open" >&6; }
20436 if test "x$ac_cv_lib_c_open" = xyes; then :
20438 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
20440 else
20442 $as_echo "#undef HAVE_OPEN" >>confdefs.h
20446 else
20447 if test "x$ac_cv_lib_c_open" = xyes; then
20449 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
20451 elif test "x$ac_cv_func_open" = xyes; then
20453 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
20455 else
20457 $as_echo "#undef HAVE_OPEN" >>confdefs.h
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for pause" >&5
20464 $as_echo_n "checking m2 front end checking c library for pause... " >&6; }
20465 if test x$gcc_no_link != xyes; then
20466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pause in -lc" >&5
20467 $as_echo_n "checking for pause in -lc... " >&6; }
20468 if ${ac_cv_lib_c_pause+:} false; then :
20469 $as_echo_n "(cached) " >&6
20470 else
20471 ac_check_lib_save_LIBS=$LIBS
20472 LIBS="-lc $LIBS"
20473 if test x$gcc_no_link = xyes; then
20474 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20477 /* end confdefs.h. */
20479 /* Override any GCC internal prototype to avoid an error.
20480 Use char because int might match the return type of a GCC
20481 builtin and then its argument prototype would still apply. */
20482 #ifdef __cplusplus
20483 extern "C"
20484 #endif
20485 char pause ();
20487 main ()
20489 return pause ();
20491 return 0;
20493 _ACEOF
20494 if ac_fn_c_try_link "$LINENO"; then :
20495 ac_cv_lib_c_pause=yes
20496 else
20497 ac_cv_lib_c_pause=no
20499 rm -f core conftest.err conftest.$ac_objext \
20500 conftest$ac_exeext conftest.$ac_ext
20501 LIBS=$ac_check_lib_save_LIBS
20503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pause" >&5
20504 $as_echo "$ac_cv_lib_c_pause" >&6; }
20505 if test "x$ac_cv_lib_c_pause" = xyes; then :
20507 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
20509 else
20511 $as_echo "#undef HAVE_PAUSE" >>confdefs.h
20515 else
20516 if test "x$ac_cv_lib_c_pause" = xyes; then
20518 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
20520 elif test "x$ac_cv_func_pause" = xyes; then
20522 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
20524 else
20526 $as_echo "#undef HAVE_PAUSE" >>confdefs.h
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for pipe" >&5
20533 $as_echo_n "checking m2 front end checking c library for pipe... " >&6; }
20534 if test x$gcc_no_link != xyes; then
20535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pipe in -lc" >&5
20536 $as_echo_n "checking for pipe in -lc... " >&6; }
20537 if ${ac_cv_lib_c_pipe+:} false; then :
20538 $as_echo_n "(cached) " >&6
20539 else
20540 ac_check_lib_save_LIBS=$LIBS
20541 LIBS="-lc $LIBS"
20542 if test x$gcc_no_link = xyes; then
20543 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20546 /* end confdefs.h. */
20548 /* Override any GCC internal prototype to avoid an error.
20549 Use char because int might match the return type of a GCC
20550 builtin and then its argument prototype would still apply. */
20551 #ifdef __cplusplus
20552 extern "C"
20553 #endif
20554 char pipe ();
20556 main ()
20558 return pipe ();
20560 return 0;
20562 _ACEOF
20563 if ac_fn_c_try_link "$LINENO"; then :
20564 ac_cv_lib_c_pipe=yes
20565 else
20566 ac_cv_lib_c_pipe=no
20568 rm -f core conftest.err conftest.$ac_objext \
20569 conftest$ac_exeext conftest.$ac_ext
20570 LIBS=$ac_check_lib_save_LIBS
20572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pipe" >&5
20573 $as_echo "$ac_cv_lib_c_pipe" >&6; }
20574 if test "x$ac_cv_lib_c_pipe" = xyes; then :
20576 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
20578 else
20580 $as_echo "#undef HAVE_PIPE" >>confdefs.h
20584 else
20585 if test "x$ac_cv_lib_c_pipe" = xyes; then
20587 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
20589 elif test "x$ac_cv_func_pipe" = xyes; then
20591 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
20593 else
20595 $as_echo "#undef HAVE_PIPE" >>confdefs.h
20601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for rand" >&5
20602 $as_echo_n "checking m2 front end checking c library for rand... " >&6; }
20603 if test x$gcc_no_link != xyes; then
20604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rand in -lc" >&5
20605 $as_echo_n "checking for rand in -lc... " >&6; }
20606 if ${ac_cv_lib_c_rand+:} false; then :
20607 $as_echo_n "(cached) " >&6
20608 else
20609 ac_check_lib_save_LIBS=$LIBS
20610 LIBS="-lc $LIBS"
20611 if test x$gcc_no_link = xyes; then
20612 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20615 /* end confdefs.h. */
20617 /* Override any GCC internal prototype to avoid an error.
20618 Use char because int might match the return type of a GCC
20619 builtin and then its argument prototype would still apply. */
20620 #ifdef __cplusplus
20621 extern "C"
20622 #endif
20623 char rand ();
20625 main ()
20627 return rand ();
20629 return 0;
20631 _ACEOF
20632 if ac_fn_c_try_link "$LINENO"; then :
20633 ac_cv_lib_c_rand=yes
20634 else
20635 ac_cv_lib_c_rand=no
20637 rm -f core conftest.err conftest.$ac_objext \
20638 conftest$ac_exeext conftest.$ac_ext
20639 LIBS=$ac_check_lib_save_LIBS
20641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_rand" >&5
20642 $as_echo "$ac_cv_lib_c_rand" >&6; }
20643 if test "x$ac_cv_lib_c_rand" = xyes; then :
20645 $as_echo "#define HAVE_RAND 1" >>confdefs.h
20647 else
20649 $as_echo "#undef HAVE_RAND" >>confdefs.h
20653 else
20654 if test "x$ac_cv_lib_c_rand" = xyes; then
20656 $as_echo "#define HAVE_RAND 1" >>confdefs.h
20658 elif test "x$ac_cv_func_rand" = xyes; then
20660 $as_echo "#define HAVE_RAND 1" >>confdefs.h
20662 else
20664 $as_echo "#undef HAVE_RAND" >>confdefs.h
20670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for read" >&5
20671 $as_echo_n "checking m2 front end checking c library for read... " >&6; }
20672 if test x$gcc_no_link != xyes; then
20673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for read in -lc" >&5
20674 $as_echo_n "checking for read in -lc... " >&6; }
20675 if ${ac_cv_lib_c_read+:} false; then :
20676 $as_echo_n "(cached) " >&6
20677 else
20678 ac_check_lib_save_LIBS=$LIBS
20679 LIBS="-lc $LIBS"
20680 if test x$gcc_no_link = xyes; then
20681 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20684 /* end confdefs.h. */
20686 /* Override any GCC internal prototype to avoid an error.
20687 Use char because int might match the return type of a GCC
20688 builtin and then its argument prototype would still apply. */
20689 #ifdef __cplusplus
20690 extern "C"
20691 #endif
20692 char read ();
20694 main ()
20696 return read ();
20698 return 0;
20700 _ACEOF
20701 if ac_fn_c_try_link "$LINENO"; then :
20702 ac_cv_lib_c_read=yes
20703 else
20704 ac_cv_lib_c_read=no
20706 rm -f core conftest.err conftest.$ac_objext \
20707 conftest$ac_exeext conftest.$ac_ext
20708 LIBS=$ac_check_lib_save_LIBS
20710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_read" >&5
20711 $as_echo "$ac_cv_lib_c_read" >&6; }
20712 if test "x$ac_cv_lib_c_read" = xyes; then :
20714 $as_echo "#define HAVE_READ 1" >>confdefs.h
20716 else
20718 $as_echo "#undef HAVE_READ" >>confdefs.h
20722 else
20723 if test "x$ac_cv_lib_c_read" = xyes; then
20725 $as_echo "#define HAVE_READ 1" >>confdefs.h
20727 elif test "x$ac_cv_func_read" = xyes; then
20729 $as_echo "#define HAVE_READ 1" >>confdefs.h
20731 else
20733 $as_echo "#undef HAVE_READ" >>confdefs.h
20739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for select" >&5
20740 $as_echo_n "checking m2 front end checking c library for select... " >&6; }
20741 if test x$gcc_no_link != xyes; then
20742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select in -lc" >&5
20743 $as_echo_n "checking for select in -lc... " >&6; }
20744 if ${ac_cv_lib_c_select+:} false; then :
20745 $as_echo_n "(cached) " >&6
20746 else
20747 ac_check_lib_save_LIBS=$LIBS
20748 LIBS="-lc $LIBS"
20749 if test x$gcc_no_link = xyes; then
20750 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20753 /* end confdefs.h. */
20755 /* Override any GCC internal prototype to avoid an error.
20756 Use char because int might match the return type of a GCC
20757 builtin and then its argument prototype would still apply. */
20758 #ifdef __cplusplus
20759 extern "C"
20760 #endif
20761 char select ();
20763 main ()
20765 return select ();
20767 return 0;
20769 _ACEOF
20770 if ac_fn_c_try_link "$LINENO"; then :
20771 ac_cv_lib_c_select=yes
20772 else
20773 ac_cv_lib_c_select=no
20775 rm -f core conftest.err conftest.$ac_objext \
20776 conftest$ac_exeext conftest.$ac_ext
20777 LIBS=$ac_check_lib_save_LIBS
20779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_select" >&5
20780 $as_echo "$ac_cv_lib_c_select" >&6; }
20781 if test "x$ac_cv_lib_c_select" = xyes; then :
20783 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
20785 else
20787 $as_echo "#undef HAVE_SELECT" >>confdefs.h
20791 else
20792 if test "x$ac_cv_lib_c_select" = xyes; then
20794 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
20796 elif test "x$ac_cv_func_select" = xyes; then
20798 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
20800 else
20802 $as_echo "#undef HAVE_SELECT" >>confdefs.h
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setitimer" >&5
20809 $as_echo_n "checking m2 front end checking c library for setitimer... " >&6; }
20810 if test x$gcc_no_link != xyes; then
20811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setitimer in -lc" >&5
20812 $as_echo_n "checking for setitimer in -lc... " >&6; }
20813 if ${ac_cv_lib_c_setitimer+:} false; then :
20814 $as_echo_n "(cached) " >&6
20815 else
20816 ac_check_lib_save_LIBS=$LIBS
20817 LIBS="-lc $LIBS"
20818 if test x$gcc_no_link = xyes; then
20819 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20822 /* end confdefs.h. */
20824 /* Override any GCC internal prototype to avoid an error.
20825 Use char because int might match the return type of a GCC
20826 builtin and then its argument prototype would still apply. */
20827 #ifdef __cplusplus
20828 extern "C"
20829 #endif
20830 char setitimer ();
20832 main ()
20834 return setitimer ();
20836 return 0;
20838 _ACEOF
20839 if ac_fn_c_try_link "$LINENO"; then :
20840 ac_cv_lib_c_setitimer=yes
20841 else
20842 ac_cv_lib_c_setitimer=no
20844 rm -f core conftest.err conftest.$ac_objext \
20845 conftest$ac_exeext conftest.$ac_ext
20846 LIBS=$ac_check_lib_save_LIBS
20848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setitimer" >&5
20849 $as_echo "$ac_cv_lib_c_setitimer" >&6; }
20850 if test "x$ac_cv_lib_c_setitimer" = xyes; then :
20852 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
20854 else
20856 $as_echo "#undef HAVE_SETITIMER" >>confdefs.h
20860 else
20861 if test "x$ac_cv_lib_c_setitimer" = xyes; then
20863 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
20865 elif test "x$ac_cv_func_setitimer" = xyes; then
20867 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
20869 else
20871 $as_echo "#undef HAVE_SETITIMER" >>confdefs.h
20877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setgid" >&5
20878 $as_echo_n "checking m2 front end checking c library for setgid... " >&6; }
20879 if test x$gcc_no_link != xyes; then
20880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgid in -lc" >&5
20881 $as_echo_n "checking for setgid in -lc... " >&6; }
20882 if ${ac_cv_lib_c_setgid+:} false; then :
20883 $as_echo_n "(cached) " >&6
20884 else
20885 ac_check_lib_save_LIBS=$LIBS
20886 LIBS="-lc $LIBS"
20887 if test x$gcc_no_link = xyes; then
20888 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20891 /* end confdefs.h. */
20893 /* Override any GCC internal prototype to avoid an error.
20894 Use char because int might match the return type of a GCC
20895 builtin and then its argument prototype would still apply. */
20896 #ifdef __cplusplus
20897 extern "C"
20898 #endif
20899 char setgid ();
20901 main ()
20903 return setgid ();
20905 return 0;
20907 _ACEOF
20908 if ac_fn_c_try_link "$LINENO"; then :
20909 ac_cv_lib_c_setgid=yes
20910 else
20911 ac_cv_lib_c_setgid=no
20913 rm -f core conftest.err conftest.$ac_objext \
20914 conftest$ac_exeext conftest.$ac_ext
20915 LIBS=$ac_check_lib_save_LIBS
20917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setgid" >&5
20918 $as_echo "$ac_cv_lib_c_setgid" >&6; }
20919 if test "x$ac_cv_lib_c_setgid" = xyes; then :
20921 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
20923 else
20925 $as_echo "#undef HAVE_SETGID" >>confdefs.h
20929 else
20930 if test "x$ac_cv_lib_c_setgid" = xyes; then
20932 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
20934 elif test "x$ac_cv_func_setgid" = xyes; then
20936 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
20938 else
20940 $as_echo "#undef HAVE_SETGID" >>confdefs.h
20946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setuid" >&5
20947 $as_echo_n "checking m2 front end checking c library for setuid... " >&6; }
20948 if test x$gcc_no_link != xyes; then
20949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setuid in -lc" >&5
20950 $as_echo_n "checking for setuid in -lc... " >&6; }
20951 if ${ac_cv_lib_c_setuid+:} false; then :
20952 $as_echo_n "(cached) " >&6
20953 else
20954 ac_check_lib_save_LIBS=$LIBS
20955 LIBS="-lc $LIBS"
20956 if test x$gcc_no_link = xyes; then
20957 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20960 /* end confdefs.h. */
20962 /* Override any GCC internal prototype to avoid an error.
20963 Use char because int might match the return type of a GCC
20964 builtin and then its argument prototype would still apply. */
20965 #ifdef __cplusplus
20966 extern "C"
20967 #endif
20968 char setuid ();
20970 main ()
20972 return setuid ();
20974 return 0;
20976 _ACEOF
20977 if ac_fn_c_try_link "$LINENO"; then :
20978 ac_cv_lib_c_setuid=yes
20979 else
20980 ac_cv_lib_c_setuid=no
20982 rm -f core conftest.err conftest.$ac_objext \
20983 conftest$ac_exeext conftest.$ac_ext
20984 LIBS=$ac_check_lib_save_LIBS
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setuid" >&5
20987 $as_echo "$ac_cv_lib_c_setuid" >&6; }
20988 if test "x$ac_cv_lib_c_setuid" = xyes; then :
20990 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
20992 else
20994 $as_echo "#undef HAVE_SETUID" >>confdefs.h
20998 else
20999 if test "x$ac_cv_lib_c_setuid" = xyes; then
21001 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
21003 elif test "x$ac_cv_func_setuid" = xyes; then
21005 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
21007 else
21009 $as_echo "#undef HAVE_SETUID" >>confdefs.h
21015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for stat" >&5
21016 $as_echo_n "checking m2 front end checking c library for stat... " >&6; }
21017 if test x$gcc_no_link != xyes; then
21018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stat in -lc" >&5
21019 $as_echo_n "checking for stat in -lc... " >&6; }
21020 if ${ac_cv_lib_c_stat+:} false; then :
21021 $as_echo_n "(cached) " >&6
21022 else
21023 ac_check_lib_save_LIBS=$LIBS
21024 LIBS="-lc $LIBS"
21025 if test x$gcc_no_link = xyes; then
21026 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21029 /* end confdefs.h. */
21031 /* Override any GCC internal prototype to avoid an error.
21032 Use char because int might match the return type of a GCC
21033 builtin and then its argument prototype would still apply. */
21034 #ifdef __cplusplus
21035 extern "C"
21036 #endif
21037 char stat ();
21039 main ()
21041 return stat ();
21043 return 0;
21045 _ACEOF
21046 if ac_fn_c_try_link "$LINENO"; then :
21047 ac_cv_lib_c_stat=yes
21048 else
21049 ac_cv_lib_c_stat=no
21051 rm -f core conftest.err conftest.$ac_objext \
21052 conftest$ac_exeext conftest.$ac_ext
21053 LIBS=$ac_check_lib_save_LIBS
21055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_stat" >&5
21056 $as_echo "$ac_cv_lib_c_stat" >&6; }
21057 if test "x$ac_cv_lib_c_stat" = xyes; then :
21059 $as_echo "#define HAVE_STAT 1" >>confdefs.h
21061 else
21063 $as_echo "#undef HAVE_STAT" >>confdefs.h
21067 else
21068 if test "x$ac_cv_lib_c_stat" = xyes; then
21070 $as_echo "#define HAVE_STAT 1" >>confdefs.h
21072 elif test "x$ac_cv_func_stat" = xyes; then
21074 $as_echo "#define HAVE_STAT 1" >>confdefs.h
21076 else
21078 $as_echo "#undef HAVE_STAT" >>confdefs.h
21084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strsignal" >&5
21085 $as_echo_n "checking m2 front end checking c library for strsignal... " >&6; }
21086 if test x$gcc_no_link != xyes; then
21087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strsignal in -lc" >&5
21088 $as_echo_n "checking for strsignal in -lc... " >&6; }
21089 if ${ac_cv_lib_c_strsignal+:} false; then :
21090 $as_echo_n "(cached) " >&6
21091 else
21092 ac_check_lib_save_LIBS=$LIBS
21093 LIBS="-lc $LIBS"
21094 if test x$gcc_no_link = xyes; then
21095 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21098 /* end confdefs.h. */
21100 /* Override any GCC internal prototype to avoid an error.
21101 Use char because int might match the return type of a GCC
21102 builtin and then its argument prototype would still apply. */
21103 #ifdef __cplusplus
21104 extern "C"
21105 #endif
21106 char strsignal ();
21108 main ()
21110 return strsignal ();
21112 return 0;
21114 _ACEOF
21115 if ac_fn_c_try_link "$LINENO"; then :
21116 ac_cv_lib_c_strsignal=yes
21117 else
21118 ac_cv_lib_c_strsignal=no
21120 rm -f core conftest.err conftest.$ac_objext \
21121 conftest$ac_exeext conftest.$ac_ext
21122 LIBS=$ac_check_lib_save_LIBS
21124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strsignal" >&5
21125 $as_echo "$ac_cv_lib_c_strsignal" >&6; }
21126 if test "x$ac_cv_lib_c_strsignal" = xyes; then :
21128 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
21130 else
21132 $as_echo "#undef HAVE_STRSIGNAL" >>confdefs.h
21136 else
21137 if test "x$ac_cv_lib_c_strsignal" = xyes; then
21139 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
21141 elif test "x$ac_cv_func_strsignal" = xyes; then
21143 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
21145 else
21147 $as_echo "#undef HAVE_STRSIGNAL" >>confdefs.h
21153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strtod" >&5
21154 $as_echo_n "checking m2 front end checking c library for strtod... " >&6; }
21155 if test x$gcc_no_link != xyes; then
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lc" >&5
21157 $as_echo_n "checking for strtod in -lc... " >&6; }
21158 if ${ac_cv_lib_c_strtod+:} false; then :
21159 $as_echo_n "(cached) " >&6
21160 else
21161 ac_check_lib_save_LIBS=$LIBS
21162 LIBS="-lc $LIBS"
21163 if test x$gcc_no_link = xyes; then
21164 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21167 /* end confdefs.h. */
21169 /* Override any GCC internal prototype to avoid an error.
21170 Use char because int might match the return type of a GCC
21171 builtin and then its argument prototype would still apply. */
21172 #ifdef __cplusplus
21173 extern "C"
21174 #endif
21175 char strtod ();
21177 main ()
21179 return strtod ();
21181 return 0;
21183 _ACEOF
21184 if ac_fn_c_try_link "$LINENO"; then :
21185 ac_cv_lib_c_strtod=yes
21186 else
21187 ac_cv_lib_c_strtod=no
21189 rm -f core conftest.err conftest.$ac_objext \
21190 conftest$ac_exeext conftest.$ac_ext
21191 LIBS=$ac_check_lib_save_LIBS
21193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strtod" >&5
21194 $as_echo "$ac_cv_lib_c_strtod" >&6; }
21195 if test "x$ac_cv_lib_c_strtod" = xyes; then :
21197 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
21199 else
21201 $as_echo "#undef HAVE_STRTOD" >>confdefs.h
21205 else
21206 if test "x$ac_cv_lib_c_strtod" = xyes; then
21208 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
21210 elif test "x$ac_cv_func_strtod" = xyes; then
21212 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
21214 else
21216 $as_echo "#undef HAVE_STRTOD" >>confdefs.h
21222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strtold" >&5
21223 $as_echo_n "checking m2 front end checking c library for strtold... " >&6; }
21224 if test x$gcc_no_link != xyes; then
21225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold in -lc" >&5
21226 $as_echo_n "checking for strtold in -lc... " >&6; }
21227 if ${ac_cv_lib_c_strtold+:} false; then :
21228 $as_echo_n "(cached) " >&6
21229 else
21230 ac_check_lib_save_LIBS=$LIBS
21231 LIBS="-lc $LIBS"
21232 if test x$gcc_no_link = xyes; then
21233 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21236 /* end confdefs.h. */
21238 /* Override any GCC internal prototype to avoid an error.
21239 Use char because int might match the return type of a GCC
21240 builtin and then its argument prototype would still apply. */
21241 #ifdef __cplusplus
21242 extern "C"
21243 #endif
21244 char strtold ();
21246 main ()
21248 return strtold ();
21250 return 0;
21252 _ACEOF
21253 if ac_fn_c_try_link "$LINENO"; then :
21254 ac_cv_lib_c_strtold=yes
21255 else
21256 ac_cv_lib_c_strtold=no
21258 rm -f core conftest.err conftest.$ac_objext \
21259 conftest$ac_exeext conftest.$ac_ext
21260 LIBS=$ac_check_lib_save_LIBS
21262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strtold" >&5
21263 $as_echo "$ac_cv_lib_c_strtold" >&6; }
21264 if test "x$ac_cv_lib_c_strtold" = xyes; then :
21266 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
21268 else
21270 $as_echo "#undef HAVE_STRTOLD" >>confdefs.h
21274 else
21275 if test "x$ac_cv_lib_c_strtold" = xyes; then
21277 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
21279 elif test "x$ac_cv_func_strtold" = xyes; then
21281 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
21283 else
21285 $as_echo "#undef HAVE_STRTOLD" >>confdefs.h
21291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for times" >&5
21292 $as_echo_n "checking m2 front end checking c library for times... " >&6; }
21293 if test x$gcc_no_link != xyes; then
21294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for times in -lc" >&5
21295 $as_echo_n "checking for times in -lc... " >&6; }
21296 if ${ac_cv_lib_c_times+:} false; then :
21297 $as_echo_n "(cached) " >&6
21298 else
21299 ac_check_lib_save_LIBS=$LIBS
21300 LIBS="-lc $LIBS"
21301 if test x$gcc_no_link = xyes; then
21302 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21305 /* end confdefs.h. */
21307 /* Override any GCC internal prototype to avoid an error.
21308 Use char because int might match the return type of a GCC
21309 builtin and then its argument prototype would still apply. */
21310 #ifdef __cplusplus
21311 extern "C"
21312 #endif
21313 char times ();
21315 main ()
21317 return times ();
21319 return 0;
21321 _ACEOF
21322 if ac_fn_c_try_link "$LINENO"; then :
21323 ac_cv_lib_c_times=yes
21324 else
21325 ac_cv_lib_c_times=no
21327 rm -f core conftest.err conftest.$ac_objext \
21328 conftest$ac_exeext conftest.$ac_ext
21329 LIBS=$ac_check_lib_save_LIBS
21331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_times" >&5
21332 $as_echo "$ac_cv_lib_c_times" >&6; }
21333 if test "x$ac_cv_lib_c_times" = xyes; then :
21335 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
21337 else
21339 $as_echo "#undef HAVE_TIMES" >>confdefs.h
21343 else
21344 if test "x$ac_cv_lib_c_times" = xyes; then
21346 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
21348 elif test "x$ac_cv_func_times" = xyes; then
21350 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
21352 else
21354 $as_echo "#undef HAVE_TIMES" >>confdefs.h
21360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for timezone" >&5
21361 $as_echo_n "checking m2 front end checking c library for timezone... " >&6; }
21362 if test x$gcc_no_link != xyes; then
21363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone in -lc" >&5
21364 $as_echo_n "checking for timezone in -lc... " >&6; }
21365 if ${ac_cv_lib_c_timezone+:} false; then :
21366 $as_echo_n "(cached) " >&6
21367 else
21368 ac_check_lib_save_LIBS=$LIBS
21369 LIBS="-lc $LIBS"
21370 if test x$gcc_no_link = xyes; then
21371 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21374 /* end confdefs.h. */
21376 /* Override any GCC internal prototype to avoid an error.
21377 Use char because int might match the return type of a GCC
21378 builtin and then its argument prototype would still apply. */
21379 #ifdef __cplusplus
21380 extern "C"
21381 #endif
21382 char timezone ();
21384 main ()
21386 return timezone ();
21388 return 0;
21390 _ACEOF
21391 if ac_fn_c_try_link "$LINENO"; then :
21392 ac_cv_lib_c_timezone=yes
21393 else
21394 ac_cv_lib_c_timezone=no
21396 rm -f core conftest.err conftest.$ac_objext \
21397 conftest$ac_exeext conftest.$ac_ext
21398 LIBS=$ac_check_lib_save_LIBS
21400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_timezone" >&5
21401 $as_echo "$ac_cv_lib_c_timezone" >&6; }
21402 if test "x$ac_cv_lib_c_timezone" = xyes; then :
21404 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
21406 else
21408 $as_echo "#undef HAVE_TIMEZONE" >>confdefs.h
21412 else
21413 if test "x$ac_cv_lib_c_timezone" = xyes; then
21415 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
21417 elif test "x$ac_cv_func_timezone" = xyes; then
21419 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
21421 else
21423 $as_echo "#undef HAVE_TIMEZONE" >>confdefs.h
21429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for tzname" >&5
21430 $as_echo_n "checking m2 front end checking c library for tzname... " >&6; }
21431 if test x$gcc_no_link != xyes; then
21432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname in -lc" >&5
21433 $as_echo_n "checking for tzname in -lc... " >&6; }
21434 if ${ac_cv_lib_c_tzname+:} false; then :
21435 $as_echo_n "(cached) " >&6
21436 else
21437 ac_check_lib_save_LIBS=$LIBS
21438 LIBS="-lc $LIBS"
21439 if test x$gcc_no_link = xyes; then
21440 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21443 /* end confdefs.h. */
21445 /* Override any GCC internal prototype to avoid an error.
21446 Use char because int might match the return type of a GCC
21447 builtin and then its argument prototype would still apply. */
21448 #ifdef __cplusplus
21449 extern "C"
21450 #endif
21451 char tzname ();
21453 main ()
21455 return tzname ();
21457 return 0;
21459 _ACEOF
21460 if ac_fn_c_try_link "$LINENO"; then :
21461 ac_cv_lib_c_tzname=yes
21462 else
21463 ac_cv_lib_c_tzname=no
21465 rm -f core conftest.err conftest.$ac_objext \
21466 conftest$ac_exeext conftest.$ac_ext
21467 LIBS=$ac_check_lib_save_LIBS
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_tzname" >&5
21470 $as_echo "$ac_cv_lib_c_tzname" >&6; }
21471 if test "x$ac_cv_lib_c_tzname" = xyes; then :
21473 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21475 else
21477 $as_echo "#undef HAVE_TZNAME" >>confdefs.h
21481 else
21482 if test "x$ac_cv_lib_c_tzname" = xyes; then
21484 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21486 elif test "x$ac_cv_func_tzname" = xyes; then
21488 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
21490 else
21492 $as_echo "#undef HAVE_TZNAME" >>confdefs.h
21498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for unlink" >&5
21499 $as_echo_n "checking m2 front end checking c library for unlink... " >&6; }
21500 if test x$gcc_no_link != xyes; then
21501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unlink in -lc" >&5
21502 $as_echo_n "checking for unlink in -lc... " >&6; }
21503 if ${ac_cv_lib_c_unlink+:} false; then :
21504 $as_echo_n "(cached) " >&6
21505 else
21506 ac_check_lib_save_LIBS=$LIBS
21507 LIBS="-lc $LIBS"
21508 if test x$gcc_no_link = xyes; then
21509 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21512 /* end confdefs.h. */
21514 /* Override any GCC internal prototype to avoid an error.
21515 Use char because int might match the return type of a GCC
21516 builtin and then its argument prototype would still apply. */
21517 #ifdef __cplusplus
21518 extern "C"
21519 #endif
21520 char unlink ();
21522 main ()
21524 return unlink ();
21526 return 0;
21528 _ACEOF
21529 if ac_fn_c_try_link "$LINENO"; then :
21530 ac_cv_lib_c_unlink=yes
21531 else
21532 ac_cv_lib_c_unlink=no
21534 rm -f core conftest.err conftest.$ac_objext \
21535 conftest$ac_exeext conftest.$ac_ext
21536 LIBS=$ac_check_lib_save_LIBS
21538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_unlink" >&5
21539 $as_echo "$ac_cv_lib_c_unlink" >&6; }
21540 if test "x$ac_cv_lib_c_unlink" = xyes; then :
21542 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
21544 else
21546 $as_echo "#undef HAVE_UNLINK" >>confdefs.h
21550 else
21551 if test "x$ac_cv_lib_c_unlink" = xyes; then
21553 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
21555 elif test "x$ac_cv_func_unlink" = xyes; then
21557 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
21559 else
21561 $as_echo "#undef HAVE_UNLINK" >>confdefs.h
21567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for wait" >&5
21568 $as_echo_n "checking m2 front end checking c library for wait... " >&6; }
21569 if test x$gcc_no_link != xyes; then
21570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait in -lc" >&5
21571 $as_echo_n "checking for wait in -lc... " >&6; }
21572 if ${ac_cv_lib_c_wait+:} false; then :
21573 $as_echo_n "(cached) " >&6
21574 else
21575 ac_check_lib_save_LIBS=$LIBS
21576 LIBS="-lc $LIBS"
21577 if test x$gcc_no_link = xyes; then
21578 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21581 /* end confdefs.h. */
21583 /* Override any GCC internal prototype to avoid an error.
21584 Use char because int might match the return type of a GCC
21585 builtin and then its argument prototype would still apply. */
21586 #ifdef __cplusplus
21587 extern "C"
21588 #endif
21589 char wait ();
21591 main ()
21593 return wait ();
21595 return 0;
21597 _ACEOF
21598 if ac_fn_c_try_link "$LINENO"; then :
21599 ac_cv_lib_c_wait=yes
21600 else
21601 ac_cv_lib_c_wait=no
21603 rm -f core conftest.err conftest.$ac_objext \
21604 conftest$ac_exeext conftest.$ac_ext
21605 LIBS=$ac_check_lib_save_LIBS
21607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_wait" >&5
21608 $as_echo "$ac_cv_lib_c_wait" >&6; }
21609 if test "x$ac_cv_lib_c_wait" = xyes; then :
21611 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
21613 else
21615 $as_echo "#undef HAVE_WAIT" >>confdefs.h
21619 else
21620 if test "x$ac_cv_lib_c_wait" = xyes; then
21622 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
21624 elif test "x$ac_cv_func_wait" = xyes; then
21626 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
21628 else
21630 $as_echo "#undef HAVE_WAIT" >>confdefs.h
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for write" >&5
21637 $as_echo_n "checking m2 front end checking c library for write... " >&6; }
21638 if test x$gcc_no_link != xyes; then
21639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for write in -lc" >&5
21640 $as_echo_n "checking for write in -lc... " >&6; }
21641 if ${ac_cv_lib_c_write+:} false; then :
21642 $as_echo_n "(cached) " >&6
21643 else
21644 ac_check_lib_save_LIBS=$LIBS
21645 LIBS="-lc $LIBS"
21646 if test x$gcc_no_link = xyes; then
21647 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21650 /* end confdefs.h. */
21652 /* Override any GCC internal prototype to avoid an error.
21653 Use char because int might match the return type of a GCC
21654 builtin and then its argument prototype would still apply. */
21655 #ifdef __cplusplus
21656 extern "C"
21657 #endif
21658 char write ();
21660 main ()
21662 return write ();
21664 return 0;
21666 _ACEOF
21667 if ac_fn_c_try_link "$LINENO"; then :
21668 ac_cv_lib_c_write=yes
21669 else
21670 ac_cv_lib_c_write=no
21672 rm -f core conftest.err conftest.$ac_objext \
21673 conftest$ac_exeext conftest.$ac_ext
21674 LIBS=$ac_check_lib_save_LIBS
21676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_write" >&5
21677 $as_echo "$ac_cv_lib_c_write" >&6; }
21678 if test "x$ac_cv_lib_c_write" = xyes; then :
21680 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
21682 else
21684 $as_echo "#undef HAVE_WRITE" >>confdefs.h
21688 else
21689 if test "x$ac_cv_lib_c_write" = xyes; then
21691 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
21693 elif test "x$ac_cv_func_write" = xyes; then
21695 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
21697 else
21699 $as_echo "#undef HAVE_WRITE" >>confdefs.h
21706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbit" >&5
21707 $as_echo_n "checking m2 front end checking m library for signbit... " >&6; }
21708 if test x$gcc_no_link != xyes; then
21709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit in -lm" >&5
21710 $as_echo_n "checking for signbit in -lm... " >&6; }
21711 if ${ac_cv_lib_m_signbit+:} false; then :
21712 $as_echo_n "(cached) " >&6
21713 else
21714 ac_check_lib_save_LIBS=$LIBS
21715 LIBS="-lm $LIBS"
21716 if test x$gcc_no_link = xyes; then
21717 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21720 /* end confdefs.h. */
21722 /* Override any GCC internal prototype to avoid an error.
21723 Use char because int might match the return type of a GCC
21724 builtin and then its argument prototype would still apply. */
21725 #ifdef __cplusplus
21726 extern "C"
21727 #endif
21728 char signbit ();
21730 main ()
21732 return signbit ();
21734 return 0;
21736 _ACEOF
21737 if ac_fn_c_try_link "$LINENO"; then :
21738 ac_cv_lib_m_signbit=yes
21739 else
21740 ac_cv_lib_m_signbit=no
21742 rm -f core conftest.err conftest.$ac_objext \
21743 conftest$ac_exeext conftest.$ac_ext
21744 LIBS=$ac_check_lib_save_LIBS
21746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbit" >&5
21747 $as_echo "$ac_cv_lib_m_signbit" >&6; }
21748 if test "x$ac_cv_lib_m_signbit" = xyes; then :
21750 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
21752 else
21754 $as_echo "#undef HAVE_SIGNBIT" >>confdefs.h
21758 else
21759 if test "x$ac_cv_lib_m_signbit" = xyes; then
21761 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
21763 elif test "x$ac_cv_func_signbit" = xyes; then
21765 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
21767 else
21769 $as_echo "#undef HAVE_SIGNBIT" >>confdefs.h
21775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbitf" >&5
21776 $as_echo_n "checking m2 front end checking m library for signbitf... " >&6; }
21777 if test x$gcc_no_link != xyes; then
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbitf in -lm" >&5
21779 $as_echo_n "checking for signbitf in -lm... " >&6; }
21780 if ${ac_cv_lib_m_signbitf+:} false; then :
21781 $as_echo_n "(cached) " >&6
21782 else
21783 ac_check_lib_save_LIBS=$LIBS
21784 LIBS="-lm $LIBS"
21785 if test x$gcc_no_link = xyes; then
21786 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21789 /* end confdefs.h. */
21791 /* Override any GCC internal prototype to avoid an error.
21792 Use char because int might match the return type of a GCC
21793 builtin and then its argument prototype would still apply. */
21794 #ifdef __cplusplus
21795 extern "C"
21796 #endif
21797 char signbitf ();
21799 main ()
21801 return signbitf ();
21803 return 0;
21805 _ACEOF
21806 if ac_fn_c_try_link "$LINENO"; then :
21807 ac_cv_lib_m_signbitf=yes
21808 else
21809 ac_cv_lib_m_signbitf=no
21811 rm -f core conftest.err conftest.$ac_objext \
21812 conftest$ac_exeext conftest.$ac_ext
21813 LIBS=$ac_check_lib_save_LIBS
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbitf" >&5
21816 $as_echo "$ac_cv_lib_m_signbitf" >&6; }
21817 if test "x$ac_cv_lib_m_signbitf" = xyes; then :
21819 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
21821 else
21823 $as_echo "#undef HAVE_SIGNBITF" >>confdefs.h
21827 else
21828 if test "x$ac_cv_lib_m_signbitf" = xyes; then
21830 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
21832 elif test "x$ac_cv_func_signbitf" = xyes; then
21834 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
21836 else
21838 $as_echo "#undef HAVE_SIGNBITF" >>confdefs.h
21844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbitl" >&5
21845 $as_echo_n "checking m2 front end checking m library for signbitl... " >&6; }
21846 if test x$gcc_no_link != xyes; then
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbitl in -lm" >&5
21848 $as_echo_n "checking for signbitl in -lm... " >&6; }
21849 if ${ac_cv_lib_m_signbitl+:} false; then :
21850 $as_echo_n "(cached) " >&6
21851 else
21852 ac_check_lib_save_LIBS=$LIBS
21853 LIBS="-lm $LIBS"
21854 if test x$gcc_no_link = xyes; then
21855 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21858 /* end confdefs.h. */
21860 /* Override any GCC internal prototype to avoid an error.
21861 Use char because int might match the return type of a GCC
21862 builtin and then its argument prototype would still apply. */
21863 #ifdef __cplusplus
21864 extern "C"
21865 #endif
21866 char signbitl ();
21868 main ()
21870 return signbitl ();
21872 return 0;
21874 _ACEOF
21875 if ac_fn_c_try_link "$LINENO"; then :
21876 ac_cv_lib_m_signbitl=yes
21877 else
21878 ac_cv_lib_m_signbitl=no
21880 rm -f core conftest.err conftest.$ac_objext \
21881 conftest$ac_exeext conftest.$ac_ext
21882 LIBS=$ac_check_lib_save_LIBS
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbitl" >&5
21885 $as_echo "$ac_cv_lib_m_signbitl" >&6; }
21886 if test "x$ac_cv_lib_m_signbitl" = xyes; then :
21888 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
21890 else
21892 $as_echo "#undef HAVE_SIGNBITL" >>confdefs.h
21896 else
21897 if test "x$ac_cv_lib_m_signbitl" = xyes; then
21899 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
21901 elif test "x$ac_cv_func_signbitl" = xyes; then
21903 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
21905 else
21907 $as_echo "#undef HAVE_SIGNBITL" >>confdefs.h
21913 { $as_echo "$as_me:${as_lineno-$LINENO}: libgm2 has finished checking target libc and libm contents." >&5
21914 $as_echo "$as_me: libgm2 has finished checking target libc and libm contents." >&6;}
21916 # We test the host here and later on check the target.
21918 # All known M2_HOST_OS values. This is the union of all host operating systems
21919 # supported by gm2.
21921 M2_SUPPORTED_HOST_OS="aix freebsd hurd linux netbsd openbsd solaris windows darwin"
21923 M2_HOST_OS=unknown
21925 case ${host} in
21926 *-*-darwin*) M2_HOST_OS=darwin ;;
21927 *-*-freebsd*) M2_HOST_OS=freebsd ;;
21928 *-*-linux*) M2_HOST_OS=linux ;;
21929 *-*-netbsd*) M2_HOST_OS=netbsd ;;
21930 *-*-openbsd*) M2_HOST_OS=openbsd ;;
21931 *-*-solaris2*) M2_HOST_OS=solaris ;;
21932 *-*-aix*) M2_HOST_OS=aix ;;
21933 *-*-gnu*) M2_HOST_OS=hurd ;;
21934 esac
21936 M2_TARGET_OS=unknown
21938 case ${target} in
21939 *-*-darwin*) M2_TARGET_OS=darwin ;;
21940 *-*-freebsd*) M2_TARGET_OS=freebsd ;;
21941 *-*-linux*) M2_TARGET_OS=linux ;;
21942 *-*-netbsd*) M2_TARGET_OS=netbsd ;;
21943 *-*-openbsd*) M2_TARGET_OS=openbsd ;;
21944 *-*-solaris2*) M2_TARGET_OS=solaris ;;
21945 *-*-aix*) M2_TARGET_OS=aix ;;
21946 *-*-gnu*) M2_TARGET_OS=hurd ;;
21947 esac
21949 # M2_HOST_OS=unknown
21950 if test x${M2_HOST_OS} = xunknown; then
21951 { $as_echo "$as_me:${as_lineno-$LINENO}: unsupported host, will build a minimal m2 library" >&5
21952 $as_echo "$as_me: unsupported host, will build a minimal m2 library" >&6;}
21953 BUILD_PIMLIB=false
21954 BUILD_ISOLIB=false
21955 BUILD_CORLIB=false
21956 BUILD_LOGLIB=false
21957 else
21958 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 library will be built on ${M2_HOST_OS}" >&5
21959 $as_echo "$as_me: m2 library will be built on ${M2_HOST_OS}" >&6;}
21960 BUILD_PIMLIB=true
21961 BUILD_ISOLIB=true
21962 BUILD_CORLIB=true
21963 BUILD_LOGLIB=true
21966 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
21969 # Propagate GM2_FOR_TARGET into Makefiles
21970 GM2_FOR_TARGET=${GM2_FOR_TARGET:-gcc}
21973 # Now we check the target as long as it is a supported host.
21974 # For some embedded targets we choose minimal runtime system which is
21975 # just enough to satisfy the linker targetting raw metal.
21976 if test x${M2_HOST_OS} != xunknown; then
21977 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 library building for target ${target}" >&5
21978 $as_echo "$as_me: m2 library building for target ${target}" >&6;}
21979 case "$target" in
21981 avr25*-*-* | avr31*-*-* | avr35*-*-* | avr4*-*-* | avr5*-*-* | avr51*-*-* | avr6*-*-*)
21982 BUILD_PIMLIB=false
21983 BUILD_ISOLIB=false
21984 BUILD_CORLIB=false
21985 BUILD_LOGLIB=false
21988 avrxmega2*-*-* | avrxmega4*-*-* | avrxmega5*-*-* | avrxmega6*-*-* | avrxmega7*-*-*)
21989 BUILD_PIMLIB=false
21990 BUILD_ISOLIB=false
21991 BUILD_CORLIB=false
21992 BUILD_LOGLIB=false
21995 avr3-*-*)
21996 BUILD_PIMLIB=true
21997 BUILD_ISOLIB=true
21998 BUILD_CORLIB=true
21999 BUILD_LOGLIB=true
22001 esp32-*-*)
22002 BUILD_PIMLIB=false
22003 BUILD_ISOLIB=false
22004 BUILD_CORLIB=false
22005 BUILD_LOGLIB=false
22008 esac
22011 # GM2_MSG_RESULT issue a query message from the first parameter and a boolean result
22012 # in the second parameter is printed as a "yes" or "no".
22016 if test x${M2_HOST_OS} = xunknown; then
22017 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 front end will only build minimal Modula-2 runtime library on this host" >&5
22018 $as_echo "$as_me: m2 front end will only build minimal Modula-2 runtime library on this host" >&6;}
22019 else
22021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build PIM libraries:" >&5
22022 $as_echo_n "checking m2 front end will build PIM libraries:... " >&6; }
22023 if test x${BUILD_PIMLIB} = xtrue; then
22024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22025 $as_echo "yes" >&6; }
22026 else
22027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22028 $as_echo "no" >&6; }
22032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build ISO libraries:" >&5
22033 $as_echo_n "checking m2 front end will build ISO libraries:... " >&6; }
22034 if test x${BUILD_ISOLIB} = xtrue; then
22035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22036 $as_echo "yes" >&6; }
22037 else
22038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22039 $as_echo "no" >&6; }
22043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build coroutine libraries:" >&5
22044 $as_echo_n "checking m2 front end will build coroutine libraries:... " >&6; }
22045 if test x${BUILD_CORLIB} = xtrue; then
22046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22047 $as_echo "yes" >&6; }
22048 else
22049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22050 $as_echo "no" >&6; }
22054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build Logitech compatability libraries:" >&5
22055 $as_echo_n "checking m2 front end will build Logitech compatability libraries:... " >&6; }
22056 if test x${BUILD_LOGLIB} = xtrue; then
22057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
22058 $as_echo "yes" >&6; }
22059 else
22060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
22061 $as_echo "no" >&6; }
22066 if test x$BUILD_PIMLIB = xtrue; then
22067 BUILD_PIMLIB_TRUE=
22068 BUILD_PIMLIB_FALSE='#'
22069 else
22070 BUILD_PIMLIB_TRUE='#'
22071 BUILD_PIMLIB_FALSE=
22074 if test x$BUILD_ISOLIB = xtrue; then
22075 BUILD_ISOLIB_TRUE=
22076 BUILD_ISOLIB_FALSE='#'
22077 else
22078 BUILD_ISOLIB_TRUE='#'
22079 BUILD_ISOLIB_FALSE=
22082 if test x$BUILD_CORLIB = xtrue; then
22083 BUILD_CORLIB_TRUE=
22084 BUILD_CORLIB_FALSE='#'
22085 else
22086 BUILD_CORLIB_TRUE='#'
22087 BUILD_CORLIB_FALSE=
22090 if test x$BUILD_LOGLIB = xtrue; then
22091 BUILD_LOGLIB_TRUE=
22092 BUILD_LOGLIB_FALSE='#'
22093 else
22094 BUILD_LOGLIB_TRUE='#'
22095 BUILD_LOGLIB_FALSE=
22098 if test x$M2_TARGET_OS = xdarwin; then
22099 TARGET_DARWIN_TRUE=
22100 TARGET_DARWIN_FALSE='#'
22101 else
22102 TARGET_DARWIN_TRUE='#'
22103 TARGET_DARWIN_FALSE=
22107 # Determine what GCC version number to use in filesystem paths.
22109 get_gcc_base_ver="cat"
22111 # Check whether --with-gcc-major-version-only was given.
22112 if test "${with_gcc_major_version_only+set}" = set; then :
22113 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
22114 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
22123 ac_config_files="$ac_config_files Makefile"
22126 ac_config_files="$ac_config_files libm2min/Makefile libm2pim/Makefile libm2iso/Makefile libm2cor/Makefile libm2log/Makefile"
22129 { $as_echo "$as_me:${as_lineno-$LINENO}: libgm2 has been configured." >&5
22130 $as_echo "$as_me: libgm2 has been configured." >&6;}
22132 cat >confcache <<\_ACEOF
22133 # This file is a shell script that caches the results of configure
22134 # tests run on this system so they can be shared between configure
22135 # scripts and configure runs, see configure's option --config-cache.
22136 # It is not useful on other systems. If it contains results you don't
22137 # want to keep, you may remove or edit it.
22139 # config.status only pays attention to the cache file if you give it
22140 # the --recheck option to rerun configure.
22142 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22143 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22144 # following values.
22146 _ACEOF
22148 # The following way of writing the cache mishandles newlines in values,
22149 # but we know of no workaround that is simple, portable, and efficient.
22150 # So, we kill variables containing newlines.
22151 # Ultrix sh set writes to stderr and can't be redirected directly,
22152 # and sets the high bit in the cache file unless we assign to the vars.
22154 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22155 eval ac_val=\$$ac_var
22156 case $ac_val in #(
22157 *${as_nl}*)
22158 case $ac_var in #(
22159 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
22160 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
22161 esac
22162 case $ac_var in #(
22163 _ | IFS | as_nl) ;; #(
22164 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
22165 *) { eval $ac_var=; unset $ac_var;} ;;
22166 esac ;;
22167 esac
22168 done
22170 (set) 2>&1 |
22171 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22172 *${as_nl}ac_space=\ *)
22173 # `set' does not quote correctly, so add quotes: double-quote
22174 # substitution turns \\\\ into \\, and sed turns \\ into \.
22175 sed -n \
22176 "s/'/'\\\\''/g;
22177 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22178 ;; #(
22180 # `set' quotes correctly as required by POSIX, so do not add quotes.
22181 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22183 esac |
22184 sort
22186 sed '
22187 /^ac_cv_env_/b end
22188 t clear
22189 :clear
22190 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22191 t end
22192 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22193 :end' >>confcache
22194 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22195 if test -w "$cache_file"; then
22196 if test "x$cache_file" != "x/dev/null"; then
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
22198 $as_echo "$as_me: updating cache $cache_file" >&6;}
22199 if test ! -f "$cache_file" || test -h "$cache_file"; then
22200 cat confcache >"$cache_file"
22201 else
22202 case $cache_file in #(
22203 */* | ?:*)
22204 mv -f confcache "$cache_file"$$ &&
22205 mv -f "$cache_file"$$ "$cache_file" ;; #(
22207 mv -f confcache "$cache_file" ;;
22208 esac
22211 else
22212 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
22213 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22216 rm -f confcache
22218 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22219 # Let make expand exec_prefix.
22220 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22222 DEFS=-DHAVE_CONFIG_H
22224 ac_libobjs=
22225 ac_ltlibobjs=
22227 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22228 # 1. Remove the extension, and $U if already installed.
22229 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22230 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
22231 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22232 # will be set to the directory where LIBOBJS objects are built.
22233 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22234 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
22235 done
22236 LIBOBJS=$ac_libobjs
22238 LTLIBOBJS=$ac_ltlibobjs
22241 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22242 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22243 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
22246 $as_echo_n "checking that generated files are newer than configure... " >&6; }
22247 if test -n "$am_sleep_pid"; then
22248 # Hide warnings about reused PIDs.
22249 wait $am_sleep_pid 2>/dev/null
22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
22252 $as_echo "done" >&6; }
22253 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
22254 as_fn_error $? "conditional \"AMDEP\" was never defined.
22255 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22257 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
22258 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
22259 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22261 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
22262 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
22263 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22265 if test -n "$EXEEXT"; then
22266 am__EXEEXT_TRUE=
22267 am__EXEEXT_FALSE='#'
22268 else
22269 am__EXEEXT_TRUE='#'
22270 am__EXEEXT_FALSE=
22273 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
22274 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
22275 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22277 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
22278 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
22279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22281 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
22282 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
22283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22285 if test -z "${BUILD_PIMLIB_TRUE}" && test -z "${BUILD_PIMLIB_FALSE}"; then
22286 as_fn_error $? "conditional \"BUILD_PIMLIB\" was never defined.
22287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22289 if test -z "${BUILD_ISOLIB_TRUE}" && test -z "${BUILD_ISOLIB_FALSE}"; then
22290 as_fn_error $? "conditional \"BUILD_ISOLIB\" was never defined.
22291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22293 if test -z "${BUILD_CORLIB_TRUE}" && test -z "${BUILD_CORLIB_FALSE}"; then
22294 as_fn_error $? "conditional \"BUILD_CORLIB\" was never defined.
22295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22297 if test -z "${BUILD_LOGLIB_TRUE}" && test -z "${BUILD_LOGLIB_FALSE}"; then
22298 as_fn_error $? "conditional \"BUILD_LOGLIB\" was never defined.
22299 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22301 if test -z "${TARGET_DARWIN_TRUE}" && test -z "${TARGET_DARWIN_FALSE}"; then
22302 as_fn_error $? "conditional \"TARGET_DARWIN\" was never defined.
22303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
22306 : "${CONFIG_STATUS=./config.status}"
22307 ac_write_fail=0
22308 ac_clean_files_save=$ac_clean_files
22309 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22310 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
22311 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
22312 as_write_fail=0
22313 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
22314 #! $SHELL
22315 # Generated by $as_me.
22316 # Run this file to recreate the current configuration.
22317 # Compiler output produced by configure, useful for debugging
22318 # configure, is in config.log if it exists.
22320 debug=false
22321 ac_cs_recheck=false
22322 ac_cs_silent=false
22324 SHELL=\${CONFIG_SHELL-$SHELL}
22325 export SHELL
22326 _ASEOF
22327 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
22328 ## -------------------- ##
22329 ## M4sh Initialization. ##
22330 ## -------------------- ##
22332 # Be more Bourne compatible
22333 DUALCASE=1; export DUALCASE # for MKS sh
22334 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22335 emulate sh
22336 NULLCMD=:
22337 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
22338 # is contrary to our usage. Disable this feature.
22339 alias -g '${1+"$@"}'='"$@"'
22340 setopt NO_GLOB_SUBST
22341 else
22342 case `(set -o) 2>/dev/null` in #(
22343 *posix*) :
22344 set -o posix ;; #(
22345 *) :
22347 esac
22351 as_nl='
22353 export as_nl
22354 # Printing a long string crashes Solaris 7 /usr/bin/printf.
22355 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
22356 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
22357 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
22358 # Prefer a ksh shell builtin over an external printf program on Solaris,
22359 # but without wasting forks for bash or zsh.
22360 if test -z "$BASH_VERSION$ZSH_VERSION" \
22361 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
22362 as_echo='print -r --'
22363 as_echo_n='print -rn --'
22364 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
22365 as_echo='printf %s\n'
22366 as_echo_n='printf %s'
22367 else
22368 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
22369 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
22370 as_echo_n='/usr/ucb/echo -n'
22371 else
22372 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
22373 as_echo_n_body='eval
22374 arg=$1;
22375 case $arg in #(
22376 *"$as_nl"*)
22377 expr "X$arg" : "X\\(.*\\)$as_nl";
22378 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
22379 esac;
22380 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
22382 export as_echo_n_body
22383 as_echo_n='sh -c $as_echo_n_body as_echo'
22385 export as_echo_body
22386 as_echo='sh -c $as_echo_body as_echo'
22389 # The user is always right.
22390 if test "${PATH_SEPARATOR+set}" != set; then
22391 PATH_SEPARATOR=:
22392 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
22393 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
22394 PATH_SEPARATOR=';'
22399 # IFS
22400 # We need space, tab and new line, in precisely that order. Quoting is
22401 # there to prevent editors from complaining about space-tab.
22402 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
22403 # splitting by setting IFS to empty value.)
22404 IFS=" "" $as_nl"
22406 # Find who we are. Look in the path if we contain no directory separator.
22407 as_myself=
22408 case $0 in #((
22409 *[\\/]* ) as_myself=$0 ;;
22410 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
22411 for as_dir in $PATH
22413 IFS=$as_save_IFS
22414 test -z "$as_dir" && as_dir=.
22415 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
22416 done
22417 IFS=$as_save_IFS
22420 esac
22421 # We did not find ourselves, most probably we were run as `sh COMMAND'
22422 # in which case we are not to be found in the path.
22423 if test "x$as_myself" = x; then
22424 as_myself=$0
22426 if test ! -f "$as_myself"; then
22427 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
22428 exit 1
22431 # Unset variables that we do not need and which cause bugs (e.g. in
22432 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
22433 # suppresses any "Segmentation fault" message there. '((' could
22434 # trigger a bug in pdksh 5.2.14.
22435 for as_var in BASH_ENV ENV MAIL MAILPATH
22436 do eval test x\${$as_var+set} = xset \
22437 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
22438 done
22439 PS1='$ '
22440 PS2='> '
22441 PS4='+ '
22443 # NLS nuisances.
22444 LC_ALL=C
22445 export LC_ALL
22446 LANGUAGE=C
22447 export LANGUAGE
22449 # CDPATH.
22450 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22453 # as_fn_error STATUS ERROR [LINENO LOG_FD]
22454 # ----------------------------------------
22455 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
22456 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
22457 # script with STATUS, using 1 if that was 0.
22458 as_fn_error ()
22460 as_status=$1; test $as_status -eq 0 && as_status=1
22461 if test "$4"; then
22462 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
22463 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
22465 $as_echo "$as_me: error: $2" >&2
22466 as_fn_exit $as_status
22467 } # as_fn_error
22470 # as_fn_set_status STATUS
22471 # -----------------------
22472 # Set $? to STATUS, without forking.
22473 as_fn_set_status ()
22475 return $1
22476 } # as_fn_set_status
22478 # as_fn_exit STATUS
22479 # -----------------
22480 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
22481 as_fn_exit ()
22483 set +e
22484 as_fn_set_status $1
22485 exit $1
22486 } # as_fn_exit
22488 # as_fn_unset VAR
22489 # ---------------
22490 # Portably unset VAR.
22491 as_fn_unset ()
22493 { eval $1=; unset $1;}
22495 as_unset=as_fn_unset
22496 # as_fn_append VAR VALUE
22497 # ----------------------
22498 # Append the text in VALUE to the end of the definition contained in VAR. Take
22499 # advantage of any shell optimizations that allow amortized linear growth over
22500 # repeated appends, instead of the typical quadratic growth present in naive
22501 # implementations.
22502 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
22503 eval 'as_fn_append ()
22505 eval $1+=\$2
22507 else
22508 as_fn_append ()
22510 eval $1=\$$1\$2
22512 fi # as_fn_append
22514 # as_fn_arith ARG...
22515 # ------------------
22516 # Perform arithmetic evaluation on the ARGs, and store the result in the
22517 # global $as_val. Take advantage of shells that can avoid forks. The arguments
22518 # must be portable across $(()) and expr.
22519 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
22520 eval 'as_fn_arith ()
22522 as_val=$(( $* ))
22524 else
22525 as_fn_arith ()
22527 as_val=`expr "$@" || test $? -eq 1`
22529 fi # as_fn_arith
22532 if expr a : '\(a\)' >/dev/null 2>&1 &&
22533 test "X`expr 00001 : '.*\(...\)'`" = X001; then
22534 as_expr=expr
22535 else
22536 as_expr=false
22539 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
22540 as_basename=basename
22541 else
22542 as_basename=false
22545 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
22546 as_dirname=dirname
22547 else
22548 as_dirname=false
22551 as_me=`$as_basename -- "$0" ||
22552 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
22553 X"$0" : 'X\(//\)$' \| \
22554 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
22555 $as_echo X/"$0" |
22556 sed '/^.*\/\([^/][^/]*\)\/*$/{
22557 s//\1/
22560 /^X\/\(\/\/\)$/{
22561 s//\1/
22564 /^X\/\(\/\).*/{
22565 s//\1/
22568 s/.*/./; q'`
22570 # Avoid depending upon Character Ranges.
22571 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22572 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22573 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22574 as_cr_digits='0123456789'
22575 as_cr_alnum=$as_cr_Letters$as_cr_digits
22577 ECHO_C= ECHO_N= ECHO_T=
22578 case `echo -n x` in #(((((
22579 -n*)
22580 case `echo 'xy\c'` in
22581 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
22582 xy) ECHO_C='\c';;
22583 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
22584 ECHO_T=' ';;
22585 esac;;
22587 ECHO_N='-n';;
22588 esac
22590 rm -f conf$$ conf$$.exe conf$$.file
22591 if test -d conf$$.dir; then
22592 rm -f conf$$.dir/conf$$.file
22593 else
22594 rm -f conf$$.dir
22595 mkdir conf$$.dir 2>/dev/null
22597 if (echo >conf$$.file) 2>/dev/null; then
22598 if ln -s conf$$.file conf$$ 2>/dev/null; then
22599 as_ln_s='ln -s'
22600 # ... but there are two gotchas:
22601 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
22602 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
22603 # In both cases, we have to default to `cp -pR'.
22604 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
22605 as_ln_s='cp -pR'
22606 elif ln conf$$.file conf$$ 2>/dev/null; then
22607 as_ln_s=ln
22608 else
22609 as_ln_s='cp -pR'
22611 else
22612 as_ln_s='cp -pR'
22614 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
22615 rmdir conf$$.dir 2>/dev/null
22618 # as_fn_mkdir_p
22619 # -------------
22620 # Create "$as_dir" as a directory, including parents if necessary.
22621 as_fn_mkdir_p ()
22624 case $as_dir in #(
22625 -*) as_dir=./$as_dir;;
22626 esac
22627 test -d "$as_dir" || eval $as_mkdir_p || {
22628 as_dirs=
22629 while :; do
22630 case $as_dir in #(
22631 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
22632 *) as_qdir=$as_dir;;
22633 esac
22634 as_dirs="'$as_qdir' $as_dirs"
22635 as_dir=`$as_dirname -- "$as_dir" ||
22636 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22637 X"$as_dir" : 'X\(//\)[^/]' \| \
22638 X"$as_dir" : 'X\(//\)$' \| \
22639 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22640 $as_echo X"$as_dir" |
22641 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22642 s//\1/
22645 /^X\(\/\/\)[^/].*/{
22646 s//\1/
22649 /^X\(\/\/\)$/{
22650 s//\1/
22653 /^X\(\/\).*/{
22654 s//\1/
22657 s/.*/./; q'`
22658 test -d "$as_dir" && break
22659 done
22660 test -z "$as_dirs" || eval "mkdir $as_dirs"
22661 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
22664 } # as_fn_mkdir_p
22665 if mkdir -p . 2>/dev/null; then
22666 as_mkdir_p='mkdir -p "$as_dir"'
22667 else
22668 test -d ./-p && rmdir ./-p
22669 as_mkdir_p=false
22673 # as_fn_executable_p FILE
22674 # -----------------------
22675 # Test if FILE is an executable regular file.
22676 as_fn_executable_p ()
22678 test -f "$1" && test -x "$1"
22679 } # as_fn_executable_p
22680 as_test_x='test -x'
22681 as_executable_p=as_fn_executable_p
22683 # Sed expression to map a string onto a valid CPP name.
22684 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
22686 # Sed expression to map a string onto a valid variable name.
22687 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
22690 exec 6>&1
22691 ## ----------------------------------- ##
22692 ## Main body of $CONFIG_STATUS script. ##
22693 ## ----------------------------------- ##
22694 _ASEOF
22695 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
22697 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22698 # Save the log message, to keep $0 and so on meaningful, and to
22699 # report actual input values of CONFIG_FILES etc. instead of their
22700 # values after options handling.
22701 ac_log="
22702 This file was extended by package-unused $as_me version-unused, which was
22703 generated by GNU Autoconf 2.69. Invocation command line was
22705 CONFIG_FILES = $CONFIG_FILES
22706 CONFIG_HEADERS = $CONFIG_HEADERS
22707 CONFIG_LINKS = $CONFIG_LINKS
22708 CONFIG_COMMANDS = $CONFIG_COMMANDS
22709 $ $0 $@
22711 on `(hostname || uname -n) 2>/dev/null | sed 1q`
22714 _ACEOF
22716 case $ac_config_files in *"
22717 "*) set x $ac_config_files; shift; ac_config_files=$*;;
22718 esac
22720 case $ac_config_headers in *"
22721 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
22722 esac
22725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22726 # Files that config.status was made for.
22727 config_files="$ac_config_files"
22728 config_headers="$ac_config_headers"
22729 config_commands="$ac_config_commands"
22731 _ACEOF
22733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22734 ac_cs_usage="\
22735 \`$as_me' instantiates files and other configuration actions
22736 from templates according to the current configuration. Unless the files
22737 and actions are specified as TAGs, all are instantiated by default.
22739 Usage: $0 [OPTION]... [TAG]...
22741 -h, --help print this help, then exit
22742 -V, --version print version number and configuration settings, then exit
22743 --config print configuration, then exit
22744 -q, --quiet, --silent
22745 do not print progress messages
22746 -d, --debug don't remove temporary files
22747 --recheck update $as_me by reconfiguring in the same conditions
22748 --file=FILE[:TEMPLATE]
22749 instantiate the configuration file FILE
22750 --header=FILE[:TEMPLATE]
22751 instantiate the configuration header FILE
22753 Configuration files:
22754 $config_files
22756 Configuration headers:
22757 $config_headers
22759 Configuration commands:
22760 $config_commands
22762 Report bugs to the package provider."
22764 _ACEOF
22765 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22766 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
22767 ac_cs_version="\\
22768 package-unused config.status version-unused
22769 configured by $0, generated by GNU Autoconf 2.69,
22770 with options \\"\$ac_cs_config\\"
22772 Copyright (C) 2012 Free Software Foundation, Inc.
22773 This config.status script is free software; the Free Software Foundation
22774 gives unlimited permission to copy, distribute and modify it."
22776 ac_pwd='$ac_pwd'
22777 srcdir='$srcdir'
22778 INSTALL='$INSTALL'
22779 MKDIR_P='$MKDIR_P'
22780 AWK='$AWK'
22781 test -n "\$AWK" || AWK=awk
22782 _ACEOF
22784 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22785 # The default lists apply if the user does not specify any file.
22786 ac_need_defaults=:
22787 while test $# != 0
22789 case $1 in
22790 --*=?*)
22791 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22792 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
22793 ac_shift=:
22795 --*=)
22796 ac_option=`expr "X$1" : 'X\([^=]*\)='`
22797 ac_optarg=
22798 ac_shift=:
22801 ac_option=$1
22802 ac_optarg=$2
22803 ac_shift=shift
22805 esac
22807 case $ac_option in
22808 # Handling of the options.
22809 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
22810 ac_cs_recheck=: ;;
22811 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
22812 $as_echo "$ac_cs_version"; exit ;;
22813 --config | --confi | --conf | --con | --co | --c )
22814 $as_echo "$ac_cs_config"; exit ;;
22815 --debug | --debu | --deb | --de | --d | -d )
22816 debug=: ;;
22817 --file | --fil | --fi | --f )
22818 $ac_shift
22819 case $ac_optarg in
22820 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22821 '') as_fn_error $? "missing file argument" ;;
22822 esac
22823 as_fn_append CONFIG_FILES " '$ac_optarg'"
22824 ac_need_defaults=false;;
22825 --header | --heade | --head | --hea )
22826 $ac_shift
22827 case $ac_optarg in
22828 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
22829 esac
22830 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
22831 ac_need_defaults=false;;
22832 --he | --h)
22833 # Conflict between --help and --header
22834 as_fn_error $? "ambiguous option: \`$1'
22835 Try \`$0 --help' for more information.";;
22836 --help | --hel | -h )
22837 $as_echo "$ac_cs_usage"; exit ;;
22838 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
22839 | -silent | --silent | --silen | --sile | --sil | --si | --s)
22840 ac_cs_silent=: ;;
22842 # This is an error.
22843 -*) as_fn_error $? "unrecognized option: \`$1'
22844 Try \`$0 --help' for more information." ;;
22846 *) as_fn_append ac_config_targets " $1"
22847 ac_need_defaults=false ;;
22849 esac
22850 shift
22851 done
22853 ac_configure_extra_args=
22855 if $ac_cs_silent; then
22856 exec 6>/dev/null
22857 ac_configure_extra_args="$ac_configure_extra_args --silent"
22860 _ACEOF
22861 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22862 if \$ac_cs_recheck; then
22863 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
22864 shift
22865 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
22866 CONFIG_SHELL='$SHELL'
22867 export CONFIG_SHELL
22868 exec "\$@"
22871 _ACEOF
22872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22873 exec 5>>config.log
22875 echo
22876 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
22877 ## Running $as_me. ##
22878 _ASBOX
22879 $as_echo "$ac_log"
22880 } >&5
22882 _ACEOF
22883 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22885 # INIT-COMMANDS
22888 srcdir="$srcdir"
22889 host="$host"
22890 target="$target"
22891 with_multisubdir="$with_multisubdir"
22892 with_multisrctop="$with_multisrctop"
22893 with_target_subdir="$with_target_subdir"
22894 ac_configure_args="${multilib_arg} ${ac_configure_args}"
22895 multi_basedir="$multi_basedir"
22896 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
22897 CC="$CC"
22898 CXX="$CXX"
22899 GFORTRAN="$GFORTRAN"
22900 GDC="$GDC"
22901 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
22904 # The HP-UX ksh and POSIX shell print the target directory to stdout
22905 # if CDPATH is set.
22906 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
22908 sed_quote_subst='$sed_quote_subst'
22909 double_quote_subst='$double_quote_subst'
22910 delay_variable_subst='$delay_variable_subst'
22911 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
22912 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
22913 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
22914 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
22915 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
22916 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
22917 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
22918 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
22919 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
22920 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
22921 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
22922 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
22923 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
22924 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
22925 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
22926 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
22927 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
22928 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
22929 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
22930 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
22931 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
22932 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
22933 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
22934 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
22935 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
22936 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
22937 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
22938 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
22939 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
22940 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
22941 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
22942 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
22943 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
22944 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
22945 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
22946 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
22947 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
22948 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
22949 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
22950 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
22951 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
22952 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
22953 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
22954 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
22955 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
22956 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
22957 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
22958 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
22959 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"`'
22960 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
22961 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
22962 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
22963 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
22964 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
22965 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
22966 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
22967 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
22968 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
22969 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
22970 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
22971 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
22972 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
22973 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
22974 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
22975 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22976 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
22977 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
22978 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
22979 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
22980 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
22981 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
22982 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
22983 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
22984 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22985 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
22986 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
22987 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
22988 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
22989 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
22990 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
22991 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
22992 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
22993 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
22994 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
22995 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
22996 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
22997 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
22998 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
22999 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
23000 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
23001 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
23002 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
23003 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
23004 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
23005 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
23006 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
23007 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
23008 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
23009 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
23010 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
23011 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
23012 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
23013 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
23014 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
23015 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
23016 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
23017 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
23018 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
23019 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
23020 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
23021 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
23022 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
23023 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
23024 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
23025 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
23026 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
23027 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
23028 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
23029 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
23030 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
23031 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
23032 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
23033 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
23034 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
23035 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
23036 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
23037 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
23038 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
23039 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23040 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23041 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
23042 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
23043 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
23044 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
23045 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
23046 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
23047 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
23048 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
23049 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
23050 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23051 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23052 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
23053 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23054 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23055 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23056 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23057 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23058 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23059 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
23060 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23061 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
23062 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
23063 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
23064 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
23065 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
23066 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
23067 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
23068 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
23069 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
23070 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
23071 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
23072 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
23073 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
23074 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23075 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23076 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
23077 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
23078 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
23079 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
23080 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
23081 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23082 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
23083 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
23084 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
23085 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
23087 LTCC='$LTCC'
23088 LTCFLAGS='$LTCFLAGS'
23089 compiler='$compiler_DEFAULT'
23091 # A function that is used when there is no print builtin or printf.
23092 func_fallback_echo ()
23094 eval 'cat <<_LTECHO_EOF
23096 _LTECHO_EOF'
23099 # Quote evaled strings.
23100 for var in SHELL \
23101 ECHO \
23102 SED \
23103 GREP \
23104 EGREP \
23105 FGREP \
23106 LD \
23107 NM \
23108 LN_S \
23109 lt_SP2NL \
23110 lt_NL2SP \
23111 reload_flag \
23112 OBJDUMP \
23113 deplibs_check_method \
23114 file_magic_cmd \
23115 AR \
23116 AR_FLAGS \
23117 STRIP \
23118 RANLIB \
23119 CC \
23120 CFLAGS \
23121 compiler \
23122 lt_cv_sys_global_symbol_pipe \
23123 lt_cv_sys_global_symbol_to_cdecl \
23124 lt_cv_sys_global_symbol_to_c_name_address \
23125 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
23126 lt_prog_compiler_no_builtin_flag \
23127 lt_prog_compiler_wl \
23128 lt_prog_compiler_pic \
23129 lt_prog_compiler_static \
23130 lt_cv_prog_compiler_c_o \
23131 need_locks \
23132 DSYMUTIL \
23133 NMEDIT \
23134 LIPO \
23135 OTOOL \
23136 OTOOL64 \
23137 shrext_cmds \
23138 export_dynamic_flag_spec \
23139 whole_archive_flag_spec \
23140 compiler_needs_object \
23141 with_gnu_ld \
23142 allow_undefined_flag \
23143 no_undefined_flag \
23144 hardcode_libdir_flag_spec \
23145 hardcode_libdir_flag_spec_ld \
23146 hardcode_libdir_separator \
23147 fix_srcfile_path \
23148 exclude_expsyms \
23149 include_expsyms \
23150 file_list_spec \
23151 variables_saved_for_relink \
23152 libname_spec \
23153 library_names_spec \
23154 soname_spec \
23155 install_override_mode \
23156 finish_eval \
23157 old_striplib \
23158 striplib \
23159 compiler_lib_search_dirs \
23160 predep_objects \
23161 postdep_objects \
23162 predeps \
23163 postdeps \
23164 compiler_lib_search_path \
23165 LD_CXX \
23166 reload_flag_CXX \
23167 compiler_CXX \
23168 lt_prog_compiler_no_builtin_flag_CXX \
23169 lt_prog_compiler_wl_CXX \
23170 lt_prog_compiler_pic_CXX \
23171 lt_prog_compiler_static_CXX \
23172 lt_cv_prog_compiler_c_o_CXX \
23173 export_dynamic_flag_spec_CXX \
23174 whole_archive_flag_spec_CXX \
23175 compiler_needs_object_CXX \
23176 with_gnu_ld_CXX \
23177 allow_undefined_flag_CXX \
23178 no_undefined_flag_CXX \
23179 hardcode_libdir_flag_spec_CXX \
23180 hardcode_libdir_flag_spec_ld_CXX \
23181 hardcode_libdir_separator_CXX \
23182 fix_srcfile_path_CXX \
23183 exclude_expsyms_CXX \
23184 include_expsyms_CXX \
23185 file_list_spec_CXX \
23186 compiler_lib_search_dirs_CXX \
23187 predep_objects_CXX \
23188 postdep_objects_CXX \
23189 predeps_CXX \
23190 postdeps_CXX \
23191 compiler_lib_search_path_CXX; do
23192 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23193 *[\\\\\\\`\\"\\\$]*)
23194 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
23197 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23199 esac
23200 done
23202 # Double-quote double-evaled strings.
23203 for var in reload_cmds \
23204 old_postinstall_cmds \
23205 old_postuninstall_cmds \
23206 old_archive_cmds \
23207 extract_expsyms_cmds \
23208 old_archive_from_new_cmds \
23209 old_archive_from_expsyms_cmds \
23210 archive_cmds \
23211 archive_expsym_cmds \
23212 module_cmds \
23213 module_expsym_cmds \
23214 export_symbols_cmds \
23215 prelink_cmds \
23216 postinstall_cmds \
23217 postuninstall_cmds \
23218 finish_cmds \
23219 sys_lib_search_path_spec \
23220 sys_lib_dlsearch_path_spec \
23221 reload_cmds_CXX \
23222 old_archive_cmds_CXX \
23223 old_archive_from_new_cmds_CXX \
23224 old_archive_from_expsyms_cmds_CXX \
23225 archive_cmds_CXX \
23226 archive_expsym_cmds_CXX \
23227 module_cmds_CXX \
23228 module_expsym_cmds_CXX \
23229 export_symbols_cmds_CXX \
23230 prelink_cmds_CXX; do
23231 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
23232 *[\\\\\\\`\\"\\\$]*)
23233 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
23236 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
23238 esac
23239 done
23241 ac_aux_dir='$ac_aux_dir'
23242 xsi_shell='$xsi_shell'
23243 lt_shell_append='$lt_shell_append'
23245 # See if we are running on zsh, and set the options which allow our
23246 # commands through without removal of \ escapes INIT.
23247 if test -n "\${ZSH_VERSION+set}" ; then
23248 setopt NO_GLOB_SUBST
23252 PACKAGE='$PACKAGE'
23253 VERSION='$VERSION'
23254 TIMESTAMP='$TIMESTAMP'
23255 RM='$RM'
23256 ofile='$ofile'
23263 _ACEOF
23265 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23267 # Handling of arguments.
23268 for ac_config_target in $ac_config_targets
23270 case $ac_config_target in
23271 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
23272 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
23273 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
23274 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
23275 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23276 "libm2min/Makefile") CONFIG_FILES="$CONFIG_FILES libm2min/Makefile" ;;
23277 "libm2pim/Makefile") CONFIG_FILES="$CONFIG_FILES libm2pim/Makefile" ;;
23278 "libm2iso/Makefile") CONFIG_FILES="$CONFIG_FILES libm2iso/Makefile" ;;
23279 "libm2cor/Makefile") CONFIG_FILES="$CONFIG_FILES libm2cor/Makefile" ;;
23280 "libm2log/Makefile") CONFIG_FILES="$CONFIG_FILES libm2log/Makefile" ;;
23282 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
23283 esac
23284 done
23287 # If the user did not use the arguments to specify the items to instantiate,
23288 # then the envvar interface is used. Set only those that are not.
23289 # We use the long form for the default assignment because of an extremely
23290 # bizarre bug on SunOS 4.1.3.
23291 if $ac_need_defaults; then
23292 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23293 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23294 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23297 # Have a temporary directory for convenience. Make it in the build tree
23298 # simply because there is no reason against having it here, and in addition,
23299 # creating and moving files from /tmp can sometimes cause problems.
23300 # Hook for its removal unless debugging.
23301 # Note that there is a small window in which the directory will not be cleaned:
23302 # after its creation but before its name has been assigned to `$tmp'.
23303 $debug ||
23305 tmp= ac_tmp=
23306 trap 'exit_status=$?
23307 : "${ac_tmp:=$tmp}"
23308 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
23310 trap 'as_fn_exit 1' 1 2 13 15
23312 # Create a (secure) tmp directory for tmp files.
23315 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23316 test -d "$tmp"
23317 } ||
23319 tmp=./conf$$-$RANDOM
23320 (umask 077 && mkdir "$tmp")
23321 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
23322 ac_tmp=$tmp
23324 # Set up the scripts for CONFIG_FILES section.
23325 # No need to generate them if there are no CONFIG_FILES.
23326 # This happens for instance with `./config.status config.h'.
23327 if test -n "$CONFIG_FILES"; then
23330 ac_cr=`echo X | tr X '\015'`
23331 # On cygwin, bash can eat \r inside `` if the user requested igncr.
23332 # But we know of no other shell where ac_cr would be empty at this
23333 # point, so we can use a bashism as a fallback.
23334 if test "x$ac_cr" = x; then
23335 eval ac_cr=\$\'\\r\'
23337 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
23338 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
23339 ac_cs_awk_cr='\\r'
23340 else
23341 ac_cs_awk_cr=$ac_cr
23344 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
23345 _ACEOF
23349 echo "cat >conf$$subs.awk <<_ACEOF" &&
23350 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
23351 echo "_ACEOF"
23352 } >conf$$subs.sh ||
23353 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23354 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
23355 ac_delim='%!_!# '
23356 for ac_last_try in false false false false false :; do
23357 . ./conf$$subs.sh ||
23358 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23360 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
23361 if test $ac_delim_n = $ac_delim_num; then
23362 break
23363 elif $ac_last_try; then
23364 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
23365 else
23366 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23368 done
23369 rm -f conf$$subs.sh
23371 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23372 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
23373 _ACEOF
23374 sed -n '
23376 s/^/S["/; s/!.*/"]=/
23379 s/^[^!]*!//
23380 :repl
23381 t repl
23382 s/'"$ac_delim"'$//
23383 t delim
23386 s/\(.\{148\}\)..*/\1/
23387 t more1
23388 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
23391 b repl
23392 :more1
23393 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23396 s/.\{148\}//
23397 t nl
23398 :delim
23400 s/\(.\{148\}\)..*/\1/
23401 t more2
23402 s/["\\]/\\&/g; s/^/"/; s/$/"/
23405 :more2
23406 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
23409 s/.\{148\}//
23410 t delim
23411 ' <conf$$subs.awk | sed '
23412 /^[^""]/{
23414 s/\n//
23416 ' >>$CONFIG_STATUS || ac_write_fail=1
23417 rm -f conf$$subs.awk
23418 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23419 _ACAWK
23420 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
23421 for (key in S) S_is_set[key] = 1
23422 FS = "\a"
23426 line = $ 0
23427 nfields = split(line, field, "@")
23428 substed = 0
23429 len = length(field[1])
23430 for (i = 2; i < nfields; i++) {
23431 key = field[i]
23432 keylen = length(key)
23433 if (S_is_set[key]) {
23434 value = S[key]
23435 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
23436 len += length(value) + length(field[++i])
23437 substed = 1
23438 } else
23439 len += 1 + keylen
23442 print line
23445 _ACAWK
23446 _ACEOF
23447 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23448 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
23449 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
23450 else
23452 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
23453 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
23454 _ACEOF
23456 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
23457 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
23458 # trailing colons and then remove the whole line if VPATH becomes empty
23459 # (actually we leave an empty line to preserve line numbers).
23460 if test "x$srcdir" = x.; then
23461 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
23463 s///
23464 s/^/:/
23465 s/[ ]*$/:/
23466 s/:\$(srcdir):/:/g
23467 s/:\${srcdir}:/:/g
23468 s/:@srcdir@:/:/g
23469 s/^:*//
23470 s/:*$//
23472 s/\(=[ ]*\).*/\1/
23474 s/\n//
23475 s/^[^=]*=[ ]*$//
23479 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23480 fi # test -n "$CONFIG_FILES"
23482 # Set up the scripts for CONFIG_HEADERS section.
23483 # No need to generate them if there are no CONFIG_HEADERS.
23484 # This happens for instance with `./config.status Makefile'.
23485 if test -n "$CONFIG_HEADERS"; then
23486 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
23487 BEGIN {
23488 _ACEOF
23490 # Transform confdefs.h into an awk script `defines.awk', embedded as
23491 # here-document in config.status, that substitutes the proper values into
23492 # config.h.in to produce config.h.
23494 # Create a delimiter string that does not exist in confdefs.h, to ease
23495 # handling of long lines.
23496 ac_delim='%!_!# '
23497 for ac_last_try in false false :; do
23498 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
23499 if test -z "$ac_tt"; then
23500 break
23501 elif $ac_last_try; then
23502 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
23503 else
23504 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23506 done
23508 # For the awk script, D is an array of macro values keyed by name,
23509 # likewise P contains macro parameters if any. Preserve backslash
23510 # newline sequences.
23512 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23513 sed -n '
23514 s/.\{148\}/&'"$ac_delim"'/g
23515 t rset
23516 :rset
23517 s/^[ ]*#[ ]*define[ ][ ]*/ /
23518 t def
23520 :def
23521 s/\\$//
23522 t bsnl
23523 s/["\\]/\\&/g
23524 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23525 D["\1"]=" \3"/p
23526 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
23528 :bsnl
23529 s/["\\]/\\&/g
23530 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
23531 D["\1"]=" \3\\\\\\n"\\/p
23532 t cont
23533 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
23534 t cont
23536 :cont
23538 s/.\{148\}/&'"$ac_delim"'/g
23539 t clear
23540 :clear
23541 s/\\$//
23542 t bsnlc
23543 s/["\\]/\\&/g; s/^/"/; s/$/"/p
23545 :bsnlc
23546 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
23547 b cont
23548 ' <confdefs.h | sed '
23549 s/'"$ac_delim"'/"\\\
23550 "/g' >>$CONFIG_STATUS || ac_write_fail=1
23552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23553 for (key in D) D_is_set[key] = 1
23554 FS = "\a"
23556 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
23557 line = \$ 0
23558 split(line, arg, " ")
23559 if (arg[1] == "#") {
23560 defundef = arg[2]
23561 mac1 = arg[3]
23562 } else {
23563 defundef = substr(arg[1], 2)
23564 mac1 = arg[2]
23566 split(mac1, mac2, "(") #)
23567 macro = mac2[1]
23568 prefix = substr(line, 1, index(line, defundef) - 1)
23569 if (D_is_set[macro]) {
23570 # Preserve the white space surrounding the "#".
23571 print prefix "define", macro P[macro] D[macro]
23572 next
23573 } else {
23574 # Replace #undef with comments. This is necessary, for example,
23575 # in the case of _POSIX_SOURCE, which is predefined and required
23576 # on some systems where configure will not decide to define it.
23577 if (defundef == "undef") {
23578 print "/*", prefix defundef, macro, "*/"
23579 next
23583 { print }
23584 _ACAWK
23585 _ACEOF
23586 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23587 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
23588 fi # test -n "$CONFIG_HEADERS"
23591 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
23592 shift
23593 for ac_tag
23595 case $ac_tag in
23596 :[FHLC]) ac_mode=$ac_tag; continue;;
23597 esac
23598 case $ac_mode$ac_tag in
23599 :[FHL]*:*);;
23600 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
23601 :[FH]-) ac_tag=-:-;;
23602 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23603 esac
23604 ac_save_IFS=$IFS
23605 IFS=:
23606 set x $ac_tag
23607 IFS=$ac_save_IFS
23608 shift
23609 ac_file=$1
23610 shift
23612 case $ac_mode in
23613 :L) ac_source=$1;;
23614 :[FH])
23615 ac_file_inputs=
23616 for ac_f
23618 case $ac_f in
23619 -) ac_f="$ac_tmp/stdin";;
23620 *) # Look for the file first in the build tree, then in the source tree
23621 # (if the path is not absolute). The absolute path cannot be DOS-style,
23622 # because $ac_f cannot contain `:'.
23623 test -f "$ac_f" ||
23624 case $ac_f in
23625 [\\/$]*) false;;
23626 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23627 esac ||
23628 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
23629 esac
23630 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
23631 as_fn_append ac_file_inputs " '$ac_f'"
23632 done
23634 # Let's still pretend it is `configure' which instantiates (i.e., don't
23635 # use $as_me), people would be surprised to read:
23636 # /* config.h. Generated by config.status. */
23637 configure_input='Generated from '`
23638 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
23639 `' by configure.'
23640 if test x"$ac_file" != x-; then
23641 configure_input="$ac_file. $configure_input"
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
23643 $as_echo "$as_me: creating $ac_file" >&6;}
23645 # Neutralize special characters interpreted by sed in replacement strings.
23646 case $configure_input in #(
23647 *\&* | *\|* | *\\* )
23648 ac_sed_conf_input=`$as_echo "$configure_input" |
23649 sed 's/[\\\\&|]/\\\\&/g'`;; #(
23650 *) ac_sed_conf_input=$configure_input;;
23651 esac
23653 case $ac_tag in
23654 *:-:* | *:-) cat >"$ac_tmp/stdin" \
23655 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
23656 esac
23658 esac
23660 ac_dir=`$as_dirname -- "$ac_file" ||
23661 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23662 X"$ac_file" : 'X\(//\)[^/]' \| \
23663 X"$ac_file" : 'X\(//\)$' \| \
23664 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23665 $as_echo X"$ac_file" |
23666 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23667 s//\1/
23670 /^X\(\/\/\)[^/].*/{
23671 s//\1/
23674 /^X\(\/\/\)$/{
23675 s//\1/
23678 /^X\(\/\).*/{
23679 s//\1/
23682 s/.*/./; q'`
23683 as_dir="$ac_dir"; as_fn_mkdir_p
23684 ac_builddir=.
23686 case "$ac_dir" in
23687 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23689 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
23690 # A ".." for each directory in $ac_dir_suffix.
23691 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
23692 case $ac_top_builddir_sub in
23693 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23694 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23695 esac ;;
23696 esac
23697 ac_abs_top_builddir=$ac_pwd
23698 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23699 # for backward compatibility:
23700 ac_top_builddir=$ac_top_build_prefix
23702 case $srcdir in
23703 .) # We are building in place.
23704 ac_srcdir=.
23705 ac_top_srcdir=$ac_top_builddir_sub
23706 ac_abs_top_srcdir=$ac_pwd ;;
23707 [\\/]* | ?:[\\/]* ) # Absolute name.
23708 ac_srcdir=$srcdir$ac_dir_suffix;
23709 ac_top_srcdir=$srcdir
23710 ac_abs_top_srcdir=$srcdir ;;
23711 *) # Relative name.
23712 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23713 ac_top_srcdir=$ac_top_build_prefix$srcdir
23714 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23715 esac
23716 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23719 case $ac_mode in
23722 # CONFIG_FILE
23725 case $INSTALL in
23726 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23727 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23728 esac
23729 ac_MKDIR_P=$MKDIR_P
23730 case $MKDIR_P in
23731 [\\/$]* | ?:[\\/]* ) ;;
23732 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
23733 esac
23734 _ACEOF
23736 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23737 # If the template does not know about datarootdir, expand it.
23738 # FIXME: This hack should be removed a few years after 2.60.
23739 ac_datarootdir_hack=; ac_datarootdir_seen=
23740 ac_sed_dataroot='
23741 /datarootdir/ {
23745 /@datadir@/p
23746 /@docdir@/p
23747 /@infodir@/p
23748 /@localedir@/p
23749 /@mandir@/p'
23750 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
23751 *datarootdir*) ac_datarootdir_seen=yes;;
23752 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23753 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23754 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23755 _ACEOF
23756 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23757 ac_datarootdir_hack='
23758 s&@datadir@&$datadir&g
23759 s&@docdir@&$docdir&g
23760 s&@infodir@&$infodir&g
23761 s&@localedir@&$localedir&g
23762 s&@mandir@&$mandir&g
23763 s&\\\${datarootdir}&$datarootdir&g' ;;
23764 esac
23765 _ACEOF
23767 # Neutralize VPATH when `$srcdir' = `.'.
23768 # Shell code in configure.ac might set extrasub.
23769 # FIXME: do we really want to maintain this feature?
23770 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
23771 ac_sed_extra="$ac_vpsub
23772 $extrasub
23773 _ACEOF
23774 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
23776 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23777 s|@configure_input@|$ac_sed_conf_input|;t t
23778 s&@top_builddir@&$ac_top_builddir_sub&;t t
23779 s&@top_build_prefix@&$ac_top_build_prefix&;t t
23780 s&@srcdir@&$ac_srcdir&;t t
23781 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23782 s&@top_srcdir@&$ac_top_srcdir&;t t
23783 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23784 s&@builddir@&$ac_builddir&;t t
23785 s&@abs_builddir@&$ac_abs_builddir&;t t
23786 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23787 s&@INSTALL@&$ac_INSTALL&;t t
23788 s&@MKDIR_P@&$ac_MKDIR_P&;t t
23789 $ac_datarootdir_hack
23791 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
23792 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23794 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23795 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
23796 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
23797 "$ac_tmp/out"`; test -z "$ac_out"; } &&
23798 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23799 which seems to be undefined. Please make sure it is defined" >&5
23800 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23801 which seems to be undefined. Please make sure it is defined" >&2;}
23803 rm -f "$ac_tmp/stdin"
23804 case $ac_file in
23805 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
23806 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
23807 esac \
23808 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23812 # CONFIG_HEADER
23814 if test x"$ac_file" != x-; then
23816 $as_echo "/* $configure_input */" \
23817 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
23818 } >"$ac_tmp/config.h" \
23819 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23820 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
23821 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
23822 $as_echo "$as_me: $ac_file is unchanged" >&6;}
23823 else
23824 rm -f "$ac_file"
23825 mv "$ac_tmp/config.h" "$ac_file" \
23826 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
23828 else
23829 $as_echo "/* $configure_input */" \
23830 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
23831 || as_fn_error $? "could not create -" "$LINENO" 5
23833 # Compute "$ac_file"'s index in $config_headers.
23834 _am_arg="$ac_file"
23835 _am_stamp_count=1
23836 for _am_header in $config_headers :; do
23837 case $_am_header in
23838 $_am_arg | $_am_arg:* )
23839 break ;;
23841 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
23842 esac
23843 done
23844 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
23845 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23846 X"$_am_arg" : 'X\(//\)[^/]' \| \
23847 X"$_am_arg" : 'X\(//\)$' \| \
23848 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
23849 $as_echo X"$_am_arg" |
23850 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23851 s//\1/
23854 /^X\(\/\/\)[^/].*/{
23855 s//\1/
23858 /^X\(\/\/\)$/{
23859 s//\1/
23862 /^X\(\/\).*/{
23863 s//\1/
23866 s/.*/./; q'`/stamp-h$_am_stamp_count
23869 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
23870 $as_echo "$as_me: executing $ac_file commands" >&6;}
23872 esac
23875 case $ac_file$ac_mode in
23876 "default-1":C)
23877 # Only add multilib support code if we just rebuilt the top-level
23878 # Makefile.
23879 case " $CONFIG_FILES " in
23880 *" Makefile "*)
23881 ac_file=Makefile . ${multi_basedir}/config-ml.in
23883 esac ;;
23884 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
23885 # Older Autoconf quotes --file arguments for eval, but not when files
23886 # are listed without --file. Let's play safe and only enable the eval
23887 # if we detect the quoting.
23888 case $CONFIG_FILES in
23889 *\'*) eval set x "$CONFIG_FILES" ;;
23890 *) set x $CONFIG_FILES ;;
23891 esac
23892 shift
23893 for mf
23895 # Strip MF so we end up with the name of the file.
23896 mf=`echo "$mf" | sed -e 's/:.*$//'`
23897 # Check whether this is an Automake generated Makefile or not.
23898 # We used to match only the files named 'Makefile.in', but
23899 # some people rename them; so instead we look at the file content.
23900 # Grep'ing the first line is not enough: some people post-process
23901 # each Makefile.in and add a new line on top of each file to say so.
23902 # Grep'ing the whole file is not good either: AIX grep has a line
23903 # limit of 2048, but all sed's we know have understand at least 4000.
23904 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
23905 dirpart=`$as_dirname -- "$mf" ||
23906 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23907 X"$mf" : 'X\(//\)[^/]' \| \
23908 X"$mf" : 'X\(//\)$' \| \
23909 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
23910 $as_echo X"$mf" |
23911 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23912 s//\1/
23915 /^X\(\/\/\)[^/].*/{
23916 s//\1/
23919 /^X\(\/\/\)$/{
23920 s//\1/
23923 /^X\(\/\).*/{
23924 s//\1/
23927 s/.*/./; q'`
23928 else
23929 continue
23931 # Extract the definition of DEPDIR, am__include, and am__quote
23932 # from the Makefile without running 'make'.
23933 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
23934 test -z "$DEPDIR" && continue
23935 am__include=`sed -n 's/^am__include = //p' < "$mf"`
23936 test -z "$am__include" && continue
23937 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
23938 # Find all dependency output files, they are included files with
23939 # $(DEPDIR) in their names. We invoke sed twice because it is the
23940 # simplest approach to changing $(DEPDIR) to its actual value in the
23941 # expansion.
23942 for file in `sed -n "
23943 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
23944 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
23945 # Make sure the directory exists.
23946 test -f "$dirpart/$file" && continue
23947 fdir=`$as_dirname -- "$file" ||
23948 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23949 X"$file" : 'X\(//\)[^/]' \| \
23950 X"$file" : 'X\(//\)$' \| \
23951 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
23952 $as_echo X"$file" |
23953 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23954 s//\1/
23957 /^X\(\/\/\)[^/].*/{
23958 s//\1/
23961 /^X\(\/\/\)$/{
23962 s//\1/
23965 /^X\(\/\).*/{
23966 s//\1/
23969 s/.*/./; q'`
23970 as_dir=$dirpart/$fdir; as_fn_mkdir_p
23971 # echo "creating $dirpart/$file"
23972 echo '# dummy' > "$dirpart/$file"
23973 done
23974 done
23977 "libtool":C)
23979 # See if we are running on zsh, and set the options which allow our
23980 # commands through without removal of \ escapes.
23981 if test -n "${ZSH_VERSION+set}" ; then
23982 setopt NO_GLOB_SUBST
23985 cfgfile="${ofile}T"
23986 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
23987 $RM "$cfgfile"
23989 cat <<_LT_EOF >> "$cfgfile"
23990 #! $SHELL
23992 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
23993 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
23994 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23995 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
23997 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
23998 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
23999 # Written by Gordon Matzigkeit, 1996
24001 # This file is part of GNU Libtool.
24003 # GNU Libtool is free software; you can redistribute it and/or
24004 # modify it under the terms of the GNU General Public License as
24005 # published by the Free Software Foundation; either version 2 of
24006 # the License, or (at your option) any later version.
24008 # As a special exception to the GNU General Public License,
24009 # if you distribute this file as part of a program or library that
24010 # is built using GNU Libtool, you may include this file under the
24011 # same distribution terms that you use for the rest of that program.
24013 # GNU Libtool is distributed in the hope that it will be useful,
24014 # but WITHOUT ANY WARRANTY; without even the implied warranty of
24015 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
24016 # GNU General Public License for more details.
24018 # You should have received a copy of the GNU General Public License
24019 # along with GNU Libtool; see the file COPYING. If not, a copy
24020 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
24021 # obtained by writing to the Free Software Foundation, Inc.,
24022 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
24025 # The names of the tagged configurations supported by this script.
24026 available_tags="CXX "
24028 # ### BEGIN LIBTOOL CONFIG
24030 # Which release of libtool.m4 was used?
24031 macro_version=$macro_version
24032 macro_revision=$macro_revision
24034 # Whether or not to build shared libraries.
24035 build_libtool_libs=$enable_shared
24037 # Whether or not to build static libraries.
24038 build_old_libs=$enable_static
24040 # What type of objects to build.
24041 pic_mode=$pic_mode
24043 # Whether or not to optimize for fast installation.
24044 fast_install=$enable_fast_install
24046 # Shell to use when invoking shell scripts.
24047 SHELL=$lt_SHELL
24049 # An echo program that protects backslashes.
24050 ECHO=$lt_ECHO
24052 # The host system.
24053 host_alias=$host_alias
24054 host=$host
24055 host_os=$host_os
24057 # The build system.
24058 build_alias=$build_alias
24059 build=$build
24060 build_os=$build_os
24062 # A sed program that does not truncate output.
24063 SED=$lt_SED
24065 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
24066 Xsed="\$SED -e 1s/^X//"
24068 # A grep program that handles long lines.
24069 GREP=$lt_GREP
24071 # An ERE matcher.
24072 EGREP=$lt_EGREP
24074 # A literal string matcher.
24075 FGREP=$lt_FGREP
24077 # A BSD- or MS-compatible name lister.
24078 NM=$lt_NM
24080 # Whether we need soft or hard links.
24081 LN_S=$lt_LN_S
24083 # What is the maximum length of a command?
24084 max_cmd_len=$max_cmd_len
24086 # Object file suffix (normally "o").
24087 objext=$ac_objext
24089 # Executable file suffix (normally "").
24090 exeext=$exeext
24092 # whether the shell understands "unset".
24093 lt_unset=$lt_unset
24095 # turn spaces into newlines.
24096 SP2NL=$lt_lt_SP2NL
24098 # turn newlines into spaces.
24099 NL2SP=$lt_lt_NL2SP
24101 # An object symbol dumper.
24102 OBJDUMP=$lt_OBJDUMP
24104 # Method to check whether dependent libraries are shared objects.
24105 deplibs_check_method=$lt_deplibs_check_method
24107 # Command to use when deplibs_check_method == "file_magic".
24108 file_magic_cmd=$lt_file_magic_cmd
24110 # The archiver.
24111 AR=$lt_AR
24112 AR_FLAGS=$lt_AR_FLAGS
24114 # A symbol stripping program.
24115 STRIP=$lt_STRIP
24117 # Commands used to install an old-style archive.
24118 RANLIB=$lt_RANLIB
24119 old_postinstall_cmds=$lt_old_postinstall_cmds
24120 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24122 # Whether to use a lock for old archive extraction.
24123 lock_old_archive_extraction=$lock_old_archive_extraction
24125 # A C compiler.
24126 LTCC=$lt_CC
24128 # LTCC compiler flags.
24129 LTCFLAGS=$lt_CFLAGS
24131 # Take the output of nm and produce a listing of raw symbols and C names.
24132 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24134 # Transform the output of nm in a proper C declaration.
24135 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24137 # Transform the output of nm in a C name address pair.
24138 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24140 # Transform the output of nm in a C name address pair when lib prefix is needed.
24141 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
24143 # The name of the directory that contains temporary libtool files.
24144 objdir=$objdir
24146 # Used to examine libraries when file_magic_cmd begins with "file".
24147 MAGIC_CMD=$MAGIC_CMD
24149 # Must we lock files when doing compilation?
24150 need_locks=$lt_need_locks
24152 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
24153 DSYMUTIL=$lt_DSYMUTIL
24155 # Tool to change global to local symbols on Mac OS X.
24156 NMEDIT=$lt_NMEDIT
24158 # Tool to manipulate fat objects and archives on Mac OS X.
24159 LIPO=$lt_LIPO
24161 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
24162 OTOOL=$lt_OTOOL
24164 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
24165 OTOOL64=$lt_OTOOL64
24167 # Old archive suffix (normally "a").
24168 libext=$libext
24170 # Shared library suffix (normally ".so").
24171 shrext_cmds=$lt_shrext_cmds
24173 # The commands to extract the exported symbol list from a shared archive.
24174 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24176 # Variables whose values should be saved in libtool wrapper scripts and
24177 # restored at link time.
24178 variables_saved_for_relink=$lt_variables_saved_for_relink
24180 # Do we need the "lib" prefix for modules?
24181 need_lib_prefix=$need_lib_prefix
24183 # Do we need a version for libraries?
24184 need_version=$need_version
24186 # Library versioning type.
24187 version_type=$version_type
24189 # Shared library runtime path variable.
24190 runpath_var=$runpath_var
24192 # Shared library path variable.
24193 shlibpath_var=$shlibpath_var
24195 # Is shlibpath searched before the hard-coded library search path?
24196 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24198 # Format of library name prefix.
24199 libname_spec=$lt_libname_spec
24201 # List of archive names. First name is the real one, the rest are links.
24202 # The last name is the one that the linker finds with -lNAME
24203 library_names_spec=$lt_library_names_spec
24205 # The coded name of the library, if different from the real name.
24206 soname_spec=$lt_soname_spec
24208 # Permission mode override for installation of shared libraries.
24209 install_override_mode=$lt_install_override_mode
24211 # Command to use after installation of a shared archive.
24212 postinstall_cmds=$lt_postinstall_cmds
24214 # Command to use after uninstallation of a shared archive.
24215 postuninstall_cmds=$lt_postuninstall_cmds
24217 # Commands used to finish a libtool library installation in a directory.
24218 finish_cmds=$lt_finish_cmds
24220 # As "finish_cmds", except a single script fragment to be evaled but
24221 # not shown.
24222 finish_eval=$lt_finish_eval
24224 # Whether we should hardcode library paths into libraries.
24225 hardcode_into_libs=$hardcode_into_libs
24227 # Compile-time system search path for libraries.
24228 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24230 # Run-time system search path for libraries.
24231 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24233 # Whether dlopen is supported.
24234 dlopen_support=$enable_dlopen
24236 # Whether dlopen of programs is supported.
24237 dlopen_self=$enable_dlopen_self
24239 # Whether dlopen of statically linked programs is supported.
24240 dlopen_self_static=$enable_dlopen_self_static
24242 # Commands to strip libraries.
24243 old_striplib=$lt_old_striplib
24244 striplib=$lt_striplib
24247 # The linker used to build libraries.
24248 LD=$lt_LD
24250 # How to create reloadable object files.
24251 reload_flag=$lt_reload_flag
24252 reload_cmds=$lt_reload_cmds
24254 # Commands used to build an old-style archive.
24255 old_archive_cmds=$lt_old_archive_cmds
24257 # A language specific compiler.
24258 CC=$lt_compiler
24260 # Is the compiler the GNU compiler?
24261 with_gcc=$GCC
24263 # Compiler flag to turn off builtin functions.
24264 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
24266 # How to pass a linker flag through the compiler.
24267 wl=$lt_lt_prog_compiler_wl
24269 # Additional compiler flags for building library objects.
24270 pic_flag=$lt_lt_prog_compiler_pic
24272 # Compiler flag to prevent dynamic linking.
24273 link_static_flag=$lt_lt_prog_compiler_static
24275 # Does compiler simultaneously support -c and -o options?
24276 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
24278 # Whether or not to add -lc for building shared libraries.
24279 build_libtool_need_lc=$archive_cmds_need_lc
24281 # Whether or not to disallow shared libs when runtime libs are static.
24282 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
24284 # Compiler flag to allow reflexive dlopens.
24285 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
24287 # Compiler flag to generate shared objects directly from archives.
24288 whole_archive_flag_spec=$lt_whole_archive_flag_spec
24290 # Whether the compiler copes with passing no objects directly.
24291 compiler_needs_object=$lt_compiler_needs_object
24293 # Create an old-style archive from a shared archive.
24294 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
24296 # Create a temporary old-style archive to link instead of a shared archive.
24297 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
24299 # Commands used to build a shared archive.
24300 archive_cmds=$lt_archive_cmds
24301 archive_expsym_cmds=$lt_archive_expsym_cmds
24303 # Commands used to build a loadable module if different from building
24304 # a shared archive.
24305 module_cmds=$lt_module_cmds
24306 module_expsym_cmds=$lt_module_expsym_cmds
24308 # Whether we are building with GNU ld or not.
24309 with_gnu_ld=$lt_with_gnu_ld
24311 # Flag that allows shared libraries with undefined symbols to be built.
24312 allow_undefined_flag=$lt_allow_undefined_flag
24314 # Flag that enforces no undefined symbols.
24315 no_undefined_flag=$lt_no_undefined_flag
24317 # Flag to hardcode \$libdir into a binary during linking.
24318 # This must work even if \$libdir does not exist
24319 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
24321 # If ld is used when linking, flag to hardcode \$libdir into a binary
24322 # during linking. This must work even if \$libdir does not exist.
24323 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
24325 # Whether we need a single "-rpath" flag with a separated argument.
24326 hardcode_libdir_separator=$lt_hardcode_libdir_separator
24328 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24329 # DIR into the resulting binary.
24330 hardcode_direct=$hardcode_direct
24332 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24333 # DIR into the resulting binary and the resulting library dependency is
24334 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24335 # library is relocated.
24336 hardcode_direct_absolute=$hardcode_direct_absolute
24338 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24339 # into the resulting binary.
24340 hardcode_minus_L=$hardcode_minus_L
24342 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24343 # into the resulting binary.
24344 hardcode_shlibpath_var=$hardcode_shlibpath_var
24346 # Set to "yes" if building a shared library automatically hardcodes DIR
24347 # into the library and all subsequent libraries and executables linked
24348 # against it.
24349 hardcode_automatic=$hardcode_automatic
24351 # Set to yes if linker adds runtime paths of dependent libraries
24352 # to runtime path list.
24353 inherit_rpath=$inherit_rpath
24355 # Whether libtool must link a program against all its dependency libraries.
24356 link_all_deplibs=$link_all_deplibs
24358 # Fix the shell variable \$srcfile for the compiler.
24359 fix_srcfile_path=$lt_fix_srcfile_path
24361 # Set to "yes" if exported symbols are required.
24362 always_export_symbols=$always_export_symbols
24364 # The commands to list exported symbols.
24365 export_symbols_cmds=$lt_export_symbols_cmds
24367 # Symbols that should not be listed in the preloaded symbols.
24368 exclude_expsyms=$lt_exclude_expsyms
24370 # Symbols that must always be exported.
24371 include_expsyms=$lt_include_expsyms
24373 # Commands necessary for linking programs (against libraries) with templates.
24374 prelink_cmds=$lt_prelink_cmds
24376 # Specify filename containing input files.
24377 file_list_spec=$lt_file_list_spec
24379 # How to hardcode a shared library path into an executable.
24380 hardcode_action=$hardcode_action
24382 # The directories searched by this compiler when creating a shared library.
24383 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
24385 # Dependencies to place before and after the objects being linked to
24386 # create a shared library.
24387 predep_objects=$lt_predep_objects
24388 postdep_objects=$lt_postdep_objects
24389 predeps=$lt_predeps
24390 postdeps=$lt_postdeps
24392 # The library search path used internally by the compiler when linking
24393 # a shared library.
24394 compiler_lib_search_path=$lt_compiler_lib_search_path
24396 # ### END LIBTOOL CONFIG
24398 _LT_EOF
24400 case $host_os in
24401 aix3*)
24402 cat <<\_LT_EOF >> "$cfgfile"
24403 # AIX sometimes has problems with the GCC collect2 program. For some
24404 # reason, if we set the COLLECT_NAMES environment variable, the problems
24405 # vanish in a puff of smoke.
24406 if test "X${COLLECT_NAMES+set}" != Xset; then
24407 COLLECT_NAMES=
24408 export COLLECT_NAMES
24410 _LT_EOF
24412 esac
24415 ltmain="$ac_aux_dir/ltmain.sh"
24418 # We use sed instead of cat because bash on DJGPP gets confused if
24419 # if finds mixed CR/LF and LF-only lines. Since sed operates in
24420 # text mode, it properly converts lines to CR/LF. This bash problem
24421 # is reportedly fixed, but why not run on old versions too?
24422 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
24423 || (rm -f "$cfgfile"; exit 1)
24425 case $xsi_shell in
24426 yes)
24427 cat << \_LT_EOF >> "$cfgfile"
24429 # func_dirname file append nondir_replacement
24430 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24431 # otherwise set result to NONDIR_REPLACEMENT.
24432 func_dirname ()
24434 case ${1} in
24435 */*) func_dirname_result="${1%/*}${2}" ;;
24436 * ) func_dirname_result="${3}" ;;
24437 esac
24440 # func_basename file
24441 func_basename ()
24443 func_basename_result="${1##*/}"
24446 # func_dirname_and_basename file append nondir_replacement
24447 # perform func_basename and func_dirname in a single function
24448 # call:
24449 # dirname: Compute the dirname of FILE. If nonempty,
24450 # add APPEND to the result, otherwise set result
24451 # to NONDIR_REPLACEMENT.
24452 # value returned in "$func_dirname_result"
24453 # basename: Compute filename of FILE.
24454 # value retuned in "$func_basename_result"
24455 # Implementation must be kept synchronized with func_dirname
24456 # and func_basename. For efficiency, we do not delegate to
24457 # those functions but instead duplicate the functionality here.
24458 func_dirname_and_basename ()
24460 case ${1} in
24461 */*) func_dirname_result="${1%/*}${2}" ;;
24462 * ) func_dirname_result="${3}" ;;
24463 esac
24464 func_basename_result="${1##*/}"
24467 # func_stripname prefix suffix name
24468 # strip PREFIX and SUFFIX off of NAME.
24469 # PREFIX and SUFFIX must not contain globbing or regex special
24470 # characters, hashes, percent signs, but SUFFIX may contain a leading
24471 # dot (in which case that matches only a dot).
24472 func_stripname ()
24474 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
24475 # positional parameters, so assign one to ordinary parameter first.
24476 func_stripname_result=${3}
24477 func_stripname_result=${func_stripname_result#"${1}"}
24478 func_stripname_result=${func_stripname_result%"${2}"}
24481 # func_opt_split
24482 func_opt_split ()
24484 func_opt_split_opt=${1%%=*}
24485 func_opt_split_arg=${1#*=}
24488 # func_lo2o object
24489 func_lo2o ()
24491 case ${1} in
24492 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
24493 *) func_lo2o_result=${1} ;;
24494 esac
24497 # func_xform libobj-or-source
24498 func_xform ()
24500 func_xform_result=${1%.*}.lo
24503 # func_arith arithmetic-term...
24504 func_arith ()
24506 func_arith_result=$(( $* ))
24509 # func_len string
24510 # STRING may not start with a hyphen.
24511 func_len ()
24513 func_len_result=${#1}
24516 _LT_EOF
24518 *) # Bourne compatible functions.
24519 cat << \_LT_EOF >> "$cfgfile"
24521 # func_dirname file append nondir_replacement
24522 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
24523 # otherwise set result to NONDIR_REPLACEMENT.
24524 func_dirname ()
24526 # Extract subdirectory from the argument.
24527 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
24528 if test "X$func_dirname_result" = "X${1}"; then
24529 func_dirname_result="${3}"
24530 else
24531 func_dirname_result="$func_dirname_result${2}"
24535 # func_basename file
24536 func_basename ()
24538 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
24542 # func_stripname prefix suffix name
24543 # strip PREFIX and SUFFIX off of NAME.
24544 # PREFIX and SUFFIX must not contain globbing or regex special
24545 # characters, hashes, percent signs, but SUFFIX may contain a leading
24546 # dot (in which case that matches only a dot).
24547 # func_strip_suffix prefix name
24548 func_stripname ()
24550 case ${2} in
24551 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
24552 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
24553 esac
24556 # sed scripts:
24557 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
24558 my_sed_long_arg='1s/^-[^=]*=//'
24560 # func_opt_split
24561 func_opt_split ()
24563 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
24564 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
24567 # func_lo2o object
24568 func_lo2o ()
24570 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
24573 # func_xform libobj-or-source
24574 func_xform ()
24576 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
24579 # func_arith arithmetic-term...
24580 func_arith ()
24582 func_arith_result=`expr "$@"`
24585 # func_len string
24586 # STRING may not start with a hyphen.
24587 func_len ()
24589 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
24592 _LT_EOF
24593 esac
24595 case $lt_shell_append in
24596 yes)
24597 cat << \_LT_EOF >> "$cfgfile"
24599 # func_append var value
24600 # Append VALUE to the end of shell variable VAR.
24601 func_append ()
24603 eval "$1+=\$2"
24605 _LT_EOF
24608 cat << \_LT_EOF >> "$cfgfile"
24610 # func_append var value
24611 # Append VALUE to the end of shell variable VAR.
24612 func_append ()
24614 eval "$1=\$$1\$2"
24617 _LT_EOF
24619 esac
24622 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
24623 || (rm -f "$cfgfile"; exit 1)
24625 mv -f "$cfgfile" "$ofile" ||
24626 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
24627 chmod +x "$ofile"
24630 cat <<_LT_EOF >> "$ofile"
24632 # ### BEGIN LIBTOOL TAG CONFIG: CXX
24634 # The linker used to build libraries.
24635 LD=$lt_LD_CXX
24637 # How to create reloadable object files.
24638 reload_flag=$lt_reload_flag_CXX
24639 reload_cmds=$lt_reload_cmds_CXX
24641 # Commands used to build an old-style archive.
24642 old_archive_cmds=$lt_old_archive_cmds_CXX
24644 # A language specific compiler.
24645 CC=$lt_compiler_CXX
24647 # Is the compiler the GNU compiler?
24648 with_gcc=$GCC_CXX
24650 # Compiler flag to turn off builtin functions.
24651 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
24653 # How to pass a linker flag through the compiler.
24654 wl=$lt_lt_prog_compiler_wl_CXX
24656 # Additional compiler flags for building library objects.
24657 pic_flag=$lt_lt_prog_compiler_pic_CXX
24659 # Compiler flag to prevent dynamic linking.
24660 link_static_flag=$lt_lt_prog_compiler_static_CXX
24662 # Does compiler simultaneously support -c and -o options?
24663 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
24665 # Whether or not to add -lc for building shared libraries.
24666 build_libtool_need_lc=$archive_cmds_need_lc_CXX
24668 # Whether or not to disallow shared libs when runtime libs are static.
24669 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
24671 # Compiler flag to allow reflexive dlopens.
24672 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
24674 # Compiler flag to generate shared objects directly from archives.
24675 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
24677 # Whether the compiler copes with passing no objects directly.
24678 compiler_needs_object=$lt_compiler_needs_object_CXX
24680 # Create an old-style archive from a shared archive.
24681 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
24683 # Create a temporary old-style archive to link instead of a shared archive.
24684 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
24686 # Commands used to build a shared archive.
24687 archive_cmds=$lt_archive_cmds_CXX
24688 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
24690 # Commands used to build a loadable module if different from building
24691 # a shared archive.
24692 module_cmds=$lt_module_cmds_CXX
24693 module_expsym_cmds=$lt_module_expsym_cmds_CXX
24695 # Whether we are building with GNU ld or not.
24696 with_gnu_ld=$lt_with_gnu_ld_CXX
24698 # Flag that allows shared libraries with undefined symbols to be built.
24699 allow_undefined_flag=$lt_allow_undefined_flag_CXX
24701 # Flag that enforces no undefined symbols.
24702 no_undefined_flag=$lt_no_undefined_flag_CXX
24704 # Flag to hardcode \$libdir into a binary during linking.
24705 # This must work even if \$libdir does not exist
24706 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
24708 # If ld is used when linking, flag to hardcode \$libdir into a binary
24709 # during linking. This must work even if \$libdir does not exist.
24710 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
24712 # Whether we need a single "-rpath" flag with a separated argument.
24713 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
24715 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24716 # DIR into the resulting binary.
24717 hardcode_direct=$hardcode_direct_CXX
24719 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
24720 # DIR into the resulting binary and the resulting library dependency is
24721 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
24722 # library is relocated.
24723 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
24725 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
24726 # into the resulting binary.
24727 hardcode_minus_L=$hardcode_minus_L_CXX
24729 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
24730 # into the resulting binary.
24731 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
24733 # Set to "yes" if building a shared library automatically hardcodes DIR
24734 # into the library and all subsequent libraries and executables linked
24735 # against it.
24736 hardcode_automatic=$hardcode_automatic_CXX
24738 # Set to yes if linker adds runtime paths of dependent libraries
24739 # to runtime path list.
24740 inherit_rpath=$inherit_rpath_CXX
24742 # Whether libtool must link a program against all its dependency libraries.
24743 link_all_deplibs=$link_all_deplibs_CXX
24745 # Fix the shell variable \$srcfile for the compiler.
24746 fix_srcfile_path=$lt_fix_srcfile_path_CXX
24748 # Set to "yes" if exported symbols are required.
24749 always_export_symbols=$always_export_symbols_CXX
24751 # The commands to list exported symbols.
24752 export_symbols_cmds=$lt_export_symbols_cmds_CXX
24754 # Symbols that should not be listed in the preloaded symbols.
24755 exclude_expsyms=$lt_exclude_expsyms_CXX
24757 # Symbols that must always be exported.
24758 include_expsyms=$lt_include_expsyms_CXX
24760 # Commands necessary for linking programs (against libraries) with templates.
24761 prelink_cmds=$lt_prelink_cmds_CXX
24763 # Specify filename containing input files.
24764 file_list_spec=$lt_file_list_spec_CXX
24766 # How to hardcode a shared library path into an executable.
24767 hardcode_action=$hardcode_action_CXX
24769 # The directories searched by this compiler when creating a shared library.
24770 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
24772 # Dependencies to place before and after the objects being linked to
24773 # create a shared library.
24774 predep_objects=$lt_predep_objects_CXX
24775 postdep_objects=$lt_postdep_objects_CXX
24776 predeps=$lt_predeps_CXX
24777 postdeps=$lt_postdeps_CXX
24779 # The library search path used internally by the compiler when linking
24780 # a shared library.
24781 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
24783 # ### END LIBTOOL TAG CONFIG: CXX
24784 _LT_EOF
24787 "libm2min/Makefile":F) cat > vpsed$$ << \_EOF
24788 s!`test -f '$<' || echo '$(srcdir)/'`!!
24789 _EOF
24790 sed -f vpsed$$ $ac_file > tmp$$
24791 mv tmp$$ $ac_file
24792 rm vpsed$$
24793 echo 'MULTISUBDIR =' >> $ac_file
24794 ml_norecursion=yes
24795 . ${multi_basedir}/config-ml.in
24796 { ml_norecursion=; unset ml_norecursion;}
24798 "libm2pim/Makefile":F) cat > vpsed$$ << \_EOF
24799 s!`test -f '$<' || echo '$(srcdir)/'`!!
24800 _EOF
24801 sed -f vpsed$$ $ac_file > tmp$$
24802 mv tmp$$ $ac_file
24803 rm vpsed$$
24804 echo 'MULTISUBDIR =' >> $ac_file
24805 ml_norecursion=yes
24806 . ${multi_basedir}/config-ml.in
24807 { ml_norecursion=; unset ml_norecursion;}
24809 "libm2iso/Makefile":F) cat > vpsed$$ << \_EOF
24810 s!`test -f '$<' || echo '$(srcdir)/'`!!
24811 _EOF
24812 sed -f vpsed$$ $ac_file > tmp$$
24813 mv tmp$$ $ac_file
24814 rm vpsed$$
24815 echo 'MULTISUBDIR =' >> $ac_file
24816 ml_norecursion=yes
24817 . ${multi_basedir}/config-ml.in
24818 { ml_norecursion=; unset ml_norecursion;}
24820 "libm2cor/Makefile":F) cat > vpsed$$ << \_EOF
24821 s!`test -f '$<' || echo '$(srcdir)/'`!!
24822 _EOF
24823 sed -f vpsed$$ $ac_file > tmp$$
24824 mv tmp$$ $ac_file
24825 rm vpsed$$
24826 echo 'MULTISUBDIR =' >> $ac_file
24827 ml_norecursion=yes
24828 . ${multi_basedir}/config-ml.in
24829 { ml_norecursion=; unset ml_norecursion;}
24831 "libm2log/Makefile":F) cat > vpsed$$ << \_EOF
24832 s!`test -f '$<' || echo '$(srcdir)/'`!!
24833 _EOF
24834 sed -f vpsed$$ $ac_file > tmp$$
24835 mv tmp$$ $ac_file
24836 rm vpsed$$
24837 echo 'MULTISUBDIR =' >> $ac_file
24838 ml_norecursion=yes
24839 . ${multi_basedir}/config-ml.in
24840 { ml_norecursion=; unset ml_norecursion;}
24843 esac
24844 done # for ac_tag
24847 as_fn_exit 0
24848 _ACEOF
24849 ac_clean_files=$ac_clean_files_save
24851 test $ac_write_fail = 0 ||
24852 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
24855 # configure is writing to config.log, and then calls config.status.
24856 # config.status does its own redirection, appending to config.log.
24857 # Unfortunately, on DOS this fails, as config.log is still kept open
24858 # by configure, so config.status won't be able to write to it; its
24859 # output is simply discarded. So we exec the FD to /dev/null,
24860 # effectively closing config.log, so it can be properly (re)opened and
24861 # appended to by config.status. When coming back to configure, we
24862 # need to make the FD available again.
24863 if test "$no_create" != yes; then
24864 ac_cs_success=:
24865 ac_config_status_args=
24866 test "$silent" = yes &&
24867 ac_config_status_args="$ac_config_status_args --quiet"
24868 exec 5>/dev/null
24869 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24870 exec 5>>config.log
24871 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24872 # would make configure fail if this is the last instruction.
24873 $ac_cs_success || as_fn_exit 1
24875 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
24876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
24877 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}