MAINTAINERS: Update my email address
[official-gcc.git] / libgm2 / configure
bloba0ad71e7c6ca892b5fbdd7cfa57715c1de0ac496
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 CXXCPP
655 OTOOL64
656 OTOOL
657 LIPO
658 NMEDIT
659 DSYMUTIL
660 OBJDUMP
661 LN_S
662 ac_ct_DUMPBIN
663 DUMPBIN
665 FGREP
667 LIBTOOL
668 RANLIB
671 am__fastdepCCAS_FALSE
672 am__fastdepCCAS_TRUE
673 CCASDEPMODE
674 CCASFLAGS
675 CCAS
676 am__fastdepCXX_FALSE
677 am__fastdepCXX_TRUE
678 CXXDEPMODE
679 ac_ct_CXX
680 CXXFLAGS
682 MAINTAINER_MODE_FALSE
683 MAINTAINER_MODE_TRUE
684 toolexeclibdir
685 toolexecdir
686 MAINT
687 slibdir
688 target_subdir
689 host_subdir
690 build_subdir
691 build_libsubdir
692 target_noncanonical
693 host_noncanonical
694 AM_BACKSLASH
695 AM_DEFAULT_VERBOSITY
696 AM_DEFAULT_V
697 AM_V
698 am__fastdepCC_FALSE
699 am__fastdepCC_TRUE
700 CCDEPMODE
701 am__nodep
702 AMDEPBACKSLASH
703 AMDEP_FALSE
704 AMDEP_TRUE
705 am__quote
706 am__include
707 DEPDIR
708 am__untar
709 am__tar
710 AMTAR
711 am__leading_dot
712 SET_MAKE
714 mkdir_p
715 MKDIR_P
716 INSTALL_STRIP_PROGRAM
717 STRIP
718 install_sh
719 MAKEINFO
720 AUTOHEADER
721 AUTOMAKE
722 AUTOCONF
723 ACLOCAL
724 VERSION
725 PACKAGE
726 CYGPATH_W
727 am__isrc
728 INSTALL_DATA
729 INSTALL_SCRIPT
730 INSTALL_PROGRAM
731 target_os
732 target_vendor
733 target_cpu
734 target
735 host_os
736 host_vendor
737 host_cpu
738 host
739 build_os
740 build_vendor
741 build_cpu
742 build
743 EGREP
744 GREP
746 OBJEXT
747 EXEEXT
748 ac_ct_CC
749 CPPFLAGS
750 LDFLAGS
751 CFLAGS
753 multi_basedir
754 libtool_VERSION
755 target_alias
756 host_alias
757 build_alias
758 LIBS
759 ECHO_T
760 ECHO_N
761 ECHO_C
762 DEFS
763 mandir
764 localedir
765 libdir
766 psdir
767 pdfdir
768 dvidir
769 htmldir
770 infodir
771 docdir
772 oldincludedir
773 includedir
774 localstatedir
775 sharedstatedir
776 sysconfdir
777 datadir
778 datarootdir
779 libexecdir
780 sbindir
781 bindir
782 program_transform_name
783 prefix
784 exec_prefix
785 PACKAGE_URL
786 PACKAGE_BUGREPORT
787 PACKAGE_STRING
788 PACKAGE_VERSION
789 PACKAGE_TARNAME
790 PACKAGE_NAME
791 PATH_SEPARATOR
792 SHELL'
793 ac_subst_files=''
794 ac_user_opts='
795 enable_option_checking
796 enable_multilib
797 enable_dependency_tracking
798 enable_silent_rules
799 with_cross_host
800 with_build_libsubdir
801 enable_version_specific_runtime_libs
802 with_slibdir
803 enable_maintainer_mode
804 enable_shared
805 enable_static
806 with_pic
807 enable_fast_install
808 with_gnu_ld
809 enable_libtool_lock
810 enable_darwin_at_rpath
811 with_gcc_major_version_only
813 ac_precious_vars='build_alias
814 host_alias
815 target_alias
817 CFLAGS
818 LDFLAGS
819 LIBS
820 CPPFLAGS
822 CXXCPP'
825 # Initialize some variables set by options.
826 ac_init_help=
827 ac_init_version=false
828 ac_unrecognized_opts=
829 ac_unrecognized_sep=
830 # The variables have the same names as the options, with
831 # dashes changed to underlines.
832 cache_file=/dev/null
833 exec_prefix=NONE
834 no_create=
835 no_recursion=
836 prefix=NONE
837 program_prefix=NONE
838 program_suffix=NONE
839 program_transform_name=s,x,x,
840 silent=
841 site=
842 srcdir=
843 verbose=
844 x_includes=NONE
845 x_libraries=NONE
847 # Installation directory options.
848 # These are left unexpanded so users can "make install exec_prefix=/foo"
849 # and all the variables that are supposed to be based on exec_prefix
850 # by default will actually change.
851 # Use braces instead of parens because sh, perl, etc. also accept them.
852 # (The list follows the same order as the GNU Coding Standards.)
853 bindir='${exec_prefix}/bin'
854 sbindir='${exec_prefix}/sbin'
855 libexecdir='${exec_prefix}/libexec'
856 datarootdir='${prefix}/share'
857 datadir='${datarootdir}'
858 sysconfdir='${prefix}/etc'
859 sharedstatedir='${prefix}/com'
860 localstatedir='${prefix}/var'
861 includedir='${prefix}/include'
862 oldincludedir='/usr/include'
863 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
864 infodir='${datarootdir}/info'
865 htmldir='${docdir}'
866 dvidir='${docdir}'
867 pdfdir='${docdir}'
868 psdir='${docdir}'
869 libdir='${exec_prefix}/lib'
870 localedir='${datarootdir}/locale'
871 mandir='${datarootdir}/man'
873 ac_prev=
874 ac_dashdash=
875 for ac_option
877 # If the previous option needs an argument, assign it.
878 if test -n "$ac_prev"; then
879 eval $ac_prev=\$ac_option
880 ac_prev=
881 continue
884 case $ac_option in
885 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
886 *=) ac_optarg= ;;
887 *) ac_optarg=yes ;;
888 esac
890 # Accept the important Cygnus configure options, so we can diagnose typos.
892 case $ac_dashdash$ac_option in
894 ac_dashdash=yes ;;
896 -bindir | --bindir | --bindi | --bind | --bin | --bi)
897 ac_prev=bindir ;;
898 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
899 bindir=$ac_optarg ;;
901 -build | --build | --buil | --bui | --bu)
902 ac_prev=build_alias ;;
903 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
904 build_alias=$ac_optarg ;;
906 -cache-file | --cache-file | --cache-fil | --cache-fi \
907 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
908 ac_prev=cache_file ;;
909 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
910 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
911 cache_file=$ac_optarg ;;
913 --config-cache | -C)
914 cache_file=config.cache ;;
916 -datadir | --datadir | --datadi | --datad)
917 ac_prev=datadir ;;
918 -datadir=* | --datadir=* | --datadi=* | --datad=*)
919 datadir=$ac_optarg ;;
921 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
922 | --dataroo | --dataro | --datar)
923 ac_prev=datarootdir ;;
924 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
925 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
926 datarootdir=$ac_optarg ;;
928 -disable-* | --disable-*)
929 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
930 # Reject names that are not valid shell variable names.
931 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
932 as_fn_error $? "invalid feature name: $ac_useropt"
933 ac_useropt_orig=$ac_useropt
934 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
935 case $ac_user_opts in
937 "enable_$ac_useropt"
938 "*) ;;
939 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
940 ac_unrecognized_sep=', ';;
941 esac
942 eval enable_$ac_useropt=no ;;
944 -docdir | --docdir | --docdi | --doc | --do)
945 ac_prev=docdir ;;
946 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
947 docdir=$ac_optarg ;;
949 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
950 ac_prev=dvidir ;;
951 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
952 dvidir=$ac_optarg ;;
954 -enable-* | --enable-*)
955 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
956 # Reject names that are not valid shell variable names.
957 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
958 as_fn_error $? "invalid feature name: $ac_useropt"
959 ac_useropt_orig=$ac_useropt
960 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
961 case $ac_user_opts in
963 "enable_$ac_useropt"
964 "*) ;;
965 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
966 ac_unrecognized_sep=', ';;
967 esac
968 eval enable_$ac_useropt=\$ac_optarg ;;
970 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
971 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
972 | --exec | --exe | --ex)
973 ac_prev=exec_prefix ;;
974 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
975 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
976 | --exec=* | --exe=* | --ex=*)
977 exec_prefix=$ac_optarg ;;
979 -gas | --gas | --ga | --g)
980 # Obsolete; use --with-gas.
981 with_gas=yes ;;
983 -help | --help | --hel | --he | -h)
984 ac_init_help=long ;;
985 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
986 ac_init_help=recursive ;;
987 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
988 ac_init_help=short ;;
990 -host | --host | --hos | --ho)
991 ac_prev=host_alias ;;
992 -host=* | --host=* | --hos=* | --ho=*)
993 host_alias=$ac_optarg ;;
995 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
996 ac_prev=htmldir ;;
997 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
998 | --ht=*)
999 htmldir=$ac_optarg ;;
1001 -includedir | --includedir | --includedi | --included | --include \
1002 | --includ | --inclu | --incl | --inc)
1003 ac_prev=includedir ;;
1004 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1005 | --includ=* | --inclu=* | --incl=* | --inc=*)
1006 includedir=$ac_optarg ;;
1008 -infodir | --infodir | --infodi | --infod | --info | --inf)
1009 ac_prev=infodir ;;
1010 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1011 infodir=$ac_optarg ;;
1013 -libdir | --libdir | --libdi | --libd)
1014 ac_prev=libdir ;;
1015 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1016 libdir=$ac_optarg ;;
1018 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1019 | --libexe | --libex | --libe)
1020 ac_prev=libexecdir ;;
1021 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1022 | --libexe=* | --libex=* | --libe=*)
1023 libexecdir=$ac_optarg ;;
1025 -localedir | --localedir | --localedi | --localed | --locale)
1026 ac_prev=localedir ;;
1027 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1028 localedir=$ac_optarg ;;
1030 -localstatedir | --localstatedir | --localstatedi | --localstated \
1031 | --localstate | --localstat | --localsta | --localst | --locals)
1032 ac_prev=localstatedir ;;
1033 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1034 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1035 localstatedir=$ac_optarg ;;
1037 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1038 ac_prev=mandir ;;
1039 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1040 mandir=$ac_optarg ;;
1042 -nfp | --nfp | --nf)
1043 # Obsolete; use --without-fp.
1044 with_fp=no ;;
1046 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1047 | --no-cr | --no-c | -n)
1048 no_create=yes ;;
1050 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1051 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1052 no_recursion=yes ;;
1054 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1055 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1056 | --oldin | --oldi | --old | --ol | --o)
1057 ac_prev=oldincludedir ;;
1058 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1059 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1060 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1061 oldincludedir=$ac_optarg ;;
1063 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1064 ac_prev=prefix ;;
1065 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1066 prefix=$ac_optarg ;;
1068 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1069 | --program-pre | --program-pr | --program-p)
1070 ac_prev=program_prefix ;;
1071 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1072 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1073 program_prefix=$ac_optarg ;;
1075 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1076 | --program-suf | --program-su | --program-s)
1077 ac_prev=program_suffix ;;
1078 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1079 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1080 program_suffix=$ac_optarg ;;
1082 -program-transform-name | --program-transform-name \
1083 | --program-transform-nam | --program-transform-na \
1084 | --program-transform-n | --program-transform- \
1085 | --program-transform | --program-transfor \
1086 | --program-transfo | --program-transf \
1087 | --program-trans | --program-tran \
1088 | --progr-tra | --program-tr | --program-t)
1089 ac_prev=program_transform_name ;;
1090 -program-transform-name=* | --program-transform-name=* \
1091 | --program-transform-nam=* | --program-transform-na=* \
1092 | --program-transform-n=* | --program-transform-=* \
1093 | --program-transform=* | --program-transfor=* \
1094 | --program-transfo=* | --program-transf=* \
1095 | --program-trans=* | --program-tran=* \
1096 | --progr-tra=* | --program-tr=* | --program-t=*)
1097 program_transform_name=$ac_optarg ;;
1099 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1100 ac_prev=pdfdir ;;
1101 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1102 pdfdir=$ac_optarg ;;
1104 -psdir | --psdir | --psdi | --psd | --ps)
1105 ac_prev=psdir ;;
1106 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1107 psdir=$ac_optarg ;;
1109 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1110 | -silent | --silent | --silen | --sile | --sil)
1111 silent=yes ;;
1113 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1114 ac_prev=sbindir ;;
1115 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1116 | --sbi=* | --sb=*)
1117 sbindir=$ac_optarg ;;
1119 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1120 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1121 | --sharedst | --shareds | --shared | --share | --shar \
1122 | --sha | --sh)
1123 ac_prev=sharedstatedir ;;
1124 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1125 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1126 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1127 | --sha=* | --sh=*)
1128 sharedstatedir=$ac_optarg ;;
1130 -site | --site | --sit)
1131 ac_prev=site ;;
1132 -site=* | --site=* | --sit=*)
1133 site=$ac_optarg ;;
1135 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1136 ac_prev=srcdir ;;
1137 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1138 srcdir=$ac_optarg ;;
1140 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1141 | --syscon | --sysco | --sysc | --sys | --sy)
1142 ac_prev=sysconfdir ;;
1143 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1144 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1145 sysconfdir=$ac_optarg ;;
1147 -target | --target | --targe | --targ | --tar | --ta | --t)
1148 ac_prev=target_alias ;;
1149 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1150 target_alias=$ac_optarg ;;
1152 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1153 verbose=yes ;;
1155 -version | --version | --versio | --versi | --vers | -V)
1156 ac_init_version=: ;;
1158 -with-* | --with-*)
1159 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1160 # Reject names that are not valid shell variable names.
1161 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1162 as_fn_error $? "invalid package name: $ac_useropt"
1163 ac_useropt_orig=$ac_useropt
1164 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1165 case $ac_user_opts in
1167 "with_$ac_useropt"
1168 "*) ;;
1169 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1170 ac_unrecognized_sep=', ';;
1171 esac
1172 eval with_$ac_useropt=\$ac_optarg ;;
1174 -without-* | --without-*)
1175 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1176 # Reject names that are not valid shell variable names.
1177 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1178 as_fn_error $? "invalid package name: $ac_useropt"
1179 ac_useropt_orig=$ac_useropt
1180 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1181 case $ac_user_opts in
1183 "with_$ac_useropt"
1184 "*) ;;
1185 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1186 ac_unrecognized_sep=', ';;
1187 esac
1188 eval with_$ac_useropt=no ;;
1190 --x)
1191 # Obsolete; use --with-x.
1192 with_x=yes ;;
1194 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1195 | --x-incl | --x-inc | --x-in | --x-i)
1196 ac_prev=x_includes ;;
1197 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1198 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1199 x_includes=$ac_optarg ;;
1201 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1202 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1203 ac_prev=x_libraries ;;
1204 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1205 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1206 x_libraries=$ac_optarg ;;
1208 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1209 Try \`$0 --help' for more information"
1212 *=*)
1213 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1214 # Reject names that are not valid shell variable names.
1215 case $ac_envvar in #(
1216 '' | [0-9]* | *[!_$as_cr_alnum]* )
1217 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1218 esac
1219 eval $ac_envvar=\$ac_optarg
1220 export $ac_envvar ;;
1223 # FIXME: should be removed in autoconf 3.0.
1224 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1225 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1226 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1227 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1230 esac
1231 done
1233 if test -n "$ac_prev"; then
1234 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1235 as_fn_error $? "missing argument to $ac_option"
1238 if test -n "$ac_unrecognized_opts"; then
1239 case $enable_option_checking in
1240 no) ;;
1241 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1242 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1243 esac
1246 # Check all directory arguments for consistency.
1247 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1248 datadir sysconfdir sharedstatedir localstatedir includedir \
1249 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1250 libdir localedir mandir
1252 eval ac_val=\$$ac_var
1253 # Remove trailing slashes.
1254 case $ac_val in
1255 */ )
1256 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1257 eval $ac_var=\$ac_val;;
1258 esac
1259 # Be sure to have absolute directory names.
1260 case $ac_val in
1261 [\\/$]* | ?:[\\/]* ) continue;;
1262 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1263 esac
1264 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1265 done
1267 # There might be people who depend on the old broken behavior: `$host'
1268 # used to hold the argument of --host etc.
1269 # FIXME: To remove some day.
1270 build=$build_alias
1271 host=$host_alias
1272 target=$target_alias
1274 # FIXME: To remove some day.
1275 if test "x$host_alias" != x; then
1276 if test "x$build_alias" = x; then
1277 cross_compiling=maybe
1278 elif test "x$build_alias" != "x$host_alias"; then
1279 cross_compiling=yes
1283 ac_tool_prefix=
1284 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1286 test "$silent" = yes && exec 6>/dev/null
1289 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1290 ac_ls_di=`ls -di .` &&
1291 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1292 as_fn_error $? "working directory cannot be determined"
1293 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1294 as_fn_error $? "pwd does not report name of working directory"
1297 # Find the source files, if location was not specified.
1298 if test -z "$srcdir"; then
1299 ac_srcdir_defaulted=yes
1300 # Try the directory containing this script, then the parent directory.
1301 ac_confdir=`$as_dirname -- "$as_myself" ||
1302 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1303 X"$as_myself" : 'X\(//\)[^/]' \| \
1304 X"$as_myself" : 'X\(//\)$' \| \
1305 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1306 $as_echo X"$as_myself" |
1307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1308 s//\1/
1311 /^X\(\/\/\)[^/].*/{
1312 s//\1/
1315 /^X\(\/\/\)$/{
1316 s//\1/
1319 /^X\(\/\).*/{
1320 s//\1/
1323 s/.*/./; q'`
1324 srcdir=$ac_confdir
1325 if test ! -r "$srcdir/$ac_unique_file"; then
1326 srcdir=..
1328 else
1329 ac_srcdir_defaulted=no
1331 if test ! -r "$srcdir/$ac_unique_file"; then
1332 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1333 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1335 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1336 ac_abs_confdir=`(
1337 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1338 pwd)`
1339 # When building in place, set srcdir=.
1340 if test "$ac_abs_confdir" = "$ac_pwd"; then
1341 srcdir=.
1343 # Remove unnecessary trailing slashes from srcdir.
1344 # Double slashes in file names in object file debugging info
1345 # mess up M-x gdb in Emacs.
1346 case $srcdir in
1347 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1348 esac
1349 for ac_var in $ac_precious_vars; do
1350 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1351 eval ac_env_${ac_var}_value=\$${ac_var}
1352 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1353 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1354 done
1357 # Report the --help message.
1359 if test "$ac_init_help" = "long"; then
1360 # Omit some internal or obsolete options to make the list less imposing.
1361 # This message is too long to be a string in the A/UX 3.1 sh.
1362 cat <<_ACEOF
1363 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1365 Usage: $0 [OPTION]... [VAR=VALUE]...
1367 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1368 VAR=VALUE. See below for descriptions of some of the useful variables.
1370 Defaults for the options are specified in brackets.
1372 Configuration:
1373 -h, --help display this help and exit
1374 --help=short display options specific to this package
1375 --help=recursive display the short help of all the included packages
1376 -V, --version display version information and exit
1377 -q, --quiet, --silent do not print \`checking ...' messages
1378 --cache-file=FILE cache test results in FILE [disabled]
1379 -C, --config-cache alias for \`--cache-file=config.cache'
1380 -n, --no-create do not create output files
1381 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1383 Installation directories:
1384 --prefix=PREFIX install architecture-independent files in PREFIX
1385 [$ac_default_prefix]
1386 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1387 [PREFIX]
1389 By default, \`make install' will install all the files in
1390 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1391 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1392 for instance \`--prefix=\$HOME'.
1394 For better control, use the options below.
1396 Fine tuning of the installation directories:
1397 --bindir=DIR user executables [EPREFIX/bin]
1398 --sbindir=DIR system admin executables [EPREFIX/sbin]
1399 --libexecdir=DIR program executables [EPREFIX/libexec]
1400 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1401 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1402 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1403 --libdir=DIR object code libraries [EPREFIX/lib]
1404 --includedir=DIR C header files [PREFIX/include]
1405 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1406 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1407 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1408 --infodir=DIR info documentation [DATAROOTDIR/info]
1409 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1410 --mandir=DIR man documentation [DATAROOTDIR/man]
1411 --docdir=DIR documentation root [DATAROOTDIR/doc/libgm2]
1412 --htmldir=DIR html documentation [DOCDIR]
1413 --dvidir=DIR dvi documentation [DOCDIR]
1414 --pdfdir=DIR pdf documentation [DOCDIR]
1415 --psdir=DIR ps documentation [DOCDIR]
1416 _ACEOF
1418 cat <<\_ACEOF
1420 Program names:
1421 --program-prefix=PREFIX prepend PREFIX to installed program names
1422 --program-suffix=SUFFIX append SUFFIX to installed program names
1423 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1425 System types:
1426 --build=BUILD configure for building on BUILD [guessed]
1427 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1428 --target=TARGET configure for building compilers for TARGET [HOST]
1429 _ACEOF
1432 if test -n "$ac_init_help"; then
1433 case $ac_init_help in
1434 short | recursive ) echo "Configuration of package-unused version-unused:";;
1435 esac
1436 cat <<\_ACEOF
1438 Optional Features:
1439 --disable-option-checking ignore unrecognized --enable/--with options
1440 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1441 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1442 --enable-multilib build many library versions (default)
1443 --enable-dependency-tracking
1444 do not reject slow dependency extractors
1445 --disable-dependency-tracking
1446 speeds up one-time build
1447 --enable-silent-rules less verbose build output (undo: "make V=1")
1448 --disable-silent-rules verbose build output (undo: "make V=0")
1449 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1450 --enable-maintainer-mode
1451 enable make rules and dependencies not useful (and
1452 sometimes confusing) to the casual installer
1453 --enable-maintainer-mode
1454 enable make rules and dependencies not useful (and
1455 sometimes confusing) to the casual installer
1456 --enable-shared[=PKGS] build shared libraries [default=yes]
1457 --enable-static[=PKGS] build static libraries [default=yes]
1458 --enable-fast-install[=PKGS]
1459 optimize for fast installation [default=yes]
1460 --disable-libtool-lock avoid locking (might break parallel builds)
1461 --enable-darwin-at-rpath
1462 install libraries with @rpath/library-name, requires
1463 rpaths to be added to executables
1465 Optional Packages:
1466 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1467 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1468 --with-cross-host=HOST Configuring with a cross compiler
1469 --with-build-libsubdir=DIR Directory where to find libraries for build system
1470 --with-slibdir=DIR shared libraries in DIR LIBDIR
1471 --with-pic try to use only PIC/non-PIC objects [default=use
1472 both]
1473 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1474 --with-gcc-major-version-only
1475 use only GCC major number in filesystem paths
1477 Some influential environment variables:
1478 CC C compiler command
1479 CFLAGS C compiler flags
1480 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1481 nonstandard directory <lib dir>
1482 LIBS libraries to pass to the linker, e.g. -l<library>
1483 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1484 you have headers in a nonstandard directory <include dir>
1485 CPP C preprocessor
1486 CXX C++ compiler command
1487 CXXFLAGS C++ compiler flags
1488 CCAS assembler compiler command (defaults to CC)
1489 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1490 CXXCPP C++ preprocessor
1492 Use these variables to override the choices made by `configure' or to help
1493 it to find libraries and programs with nonstandard names/locations.
1495 Report bugs to the package provider.
1496 _ACEOF
1497 ac_status=$?
1500 if test "$ac_init_help" = "recursive"; then
1501 # If there are subdirs, report their specific --help.
1502 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1503 test -d "$ac_dir" ||
1504 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1505 continue
1506 ac_builddir=.
1508 case "$ac_dir" in
1509 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1511 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1512 # A ".." for each directory in $ac_dir_suffix.
1513 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1514 case $ac_top_builddir_sub in
1515 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1516 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1517 esac ;;
1518 esac
1519 ac_abs_top_builddir=$ac_pwd
1520 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1521 # for backward compatibility:
1522 ac_top_builddir=$ac_top_build_prefix
1524 case $srcdir in
1525 .) # We are building in place.
1526 ac_srcdir=.
1527 ac_top_srcdir=$ac_top_builddir_sub
1528 ac_abs_top_srcdir=$ac_pwd ;;
1529 [\\/]* | ?:[\\/]* ) # Absolute name.
1530 ac_srcdir=$srcdir$ac_dir_suffix;
1531 ac_top_srcdir=$srcdir
1532 ac_abs_top_srcdir=$srcdir ;;
1533 *) # Relative name.
1534 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1535 ac_top_srcdir=$ac_top_build_prefix$srcdir
1536 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1537 esac
1538 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1540 cd "$ac_dir" || { ac_status=$?; continue; }
1541 # Check for guested configure.
1542 if test -f "$ac_srcdir/configure.gnu"; then
1543 echo &&
1544 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1545 elif test -f "$ac_srcdir/configure"; then
1546 echo &&
1547 $SHELL "$ac_srcdir/configure" --help=recursive
1548 else
1549 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1550 fi || ac_status=$?
1551 cd "$ac_pwd" || { ac_status=$?; break; }
1552 done
1555 test -n "$ac_init_help" && exit $ac_status
1556 if $ac_init_version; then
1557 cat <<\_ACEOF
1558 package-unused configure version-unused
1559 generated by GNU Autoconf 2.69
1561 Copyright (C) 2012 Free Software Foundation, Inc.
1562 This configure script is free software; the Free Software Foundation
1563 gives unlimited permission to copy, distribute and modify it.
1564 _ACEOF
1565 exit
1568 ## ------------------------ ##
1569 ## Autoconf initialization. ##
1570 ## ------------------------ ##
1572 # ac_fn_c_try_compile LINENO
1573 # --------------------------
1574 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1575 ac_fn_c_try_compile ()
1577 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1578 rm -f conftest.$ac_objext
1579 if { { ac_try="$ac_compile"
1580 case "(($ac_try" in
1581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1582 *) ac_try_echo=$ac_try;;
1583 esac
1584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1585 $as_echo "$ac_try_echo"; } >&5
1586 (eval "$ac_compile") 2>conftest.err
1587 ac_status=$?
1588 if test -s conftest.err; then
1589 grep -v '^ *+' conftest.err >conftest.er1
1590 cat conftest.er1 >&5
1591 mv -f conftest.er1 conftest.err
1593 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1594 test $ac_status = 0; } && {
1595 test -z "$ac_c_werror_flag" ||
1596 test ! -s conftest.err
1597 } && test -s conftest.$ac_objext; then :
1598 ac_retval=0
1599 else
1600 $as_echo "$as_me: failed program was:" >&5
1601 sed 's/^/| /' conftest.$ac_ext >&5
1603 ac_retval=1
1605 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1606 as_fn_set_status $ac_retval
1608 } # ac_fn_c_try_compile
1610 # ac_fn_c_try_cpp LINENO
1611 # ----------------------
1612 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1613 ac_fn_c_try_cpp ()
1615 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616 if { { ac_try="$ac_cpp conftest.$ac_ext"
1617 case "(($ac_try" in
1618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1619 *) ac_try_echo=$ac_try;;
1620 esac
1621 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1622 $as_echo "$ac_try_echo"; } >&5
1623 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1624 ac_status=$?
1625 if test -s conftest.err; then
1626 grep -v '^ *+' conftest.err >conftest.er1
1627 cat conftest.er1 >&5
1628 mv -f conftest.er1 conftest.err
1630 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1631 test $ac_status = 0; } > conftest.i && {
1632 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1633 test ! -s conftest.err
1634 }; then :
1635 ac_retval=0
1636 else
1637 $as_echo "$as_me: failed program was:" >&5
1638 sed 's/^/| /' conftest.$ac_ext >&5
1640 ac_retval=1
1642 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1643 as_fn_set_status $ac_retval
1645 } # ac_fn_c_try_cpp
1647 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1648 # -------------------------------------------------------
1649 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1650 # the include files in INCLUDES and setting the cache variable VAR
1651 # accordingly.
1652 ac_fn_c_check_header_mongrel ()
1654 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1655 if eval \${$3+:} false; then :
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1657 $as_echo_n "checking for $2... " >&6; }
1658 if eval \${$3+:} false; then :
1659 $as_echo_n "(cached) " >&6
1661 eval ac_res=\$$3
1662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1663 $as_echo "$ac_res" >&6; }
1664 else
1665 # Is the header compilable?
1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1667 $as_echo_n "checking $2 usability... " >&6; }
1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1669 /* end confdefs.h. */
1671 #include <$2>
1672 _ACEOF
1673 if ac_fn_c_try_compile "$LINENO"; then :
1674 ac_header_compiler=yes
1675 else
1676 ac_header_compiler=no
1678 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1680 $as_echo "$ac_header_compiler" >&6; }
1682 # Is the header present?
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1684 $as_echo_n "checking $2 presence... " >&6; }
1685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1686 /* end confdefs.h. */
1687 #include <$2>
1688 _ACEOF
1689 if ac_fn_c_try_cpp "$LINENO"; then :
1690 ac_header_preproc=yes
1691 else
1692 ac_header_preproc=no
1694 rm -f conftest.err conftest.i conftest.$ac_ext
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1696 $as_echo "$ac_header_preproc" >&6; }
1698 # So? What about this header?
1699 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1700 yes:no: )
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1702 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1704 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1706 no:yes:* )
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1708 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1710 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1712 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1714 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1715 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1716 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1718 esac
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 $as_echo_n "checking for $2... " >&6; }
1721 if eval \${$3+:} false; then :
1722 $as_echo_n "(cached) " >&6
1723 else
1724 eval "$3=\$ac_header_compiler"
1726 eval ac_res=\$$3
1727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1728 $as_echo "$ac_res" >&6; }
1730 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1732 } # ac_fn_c_check_header_mongrel
1734 # ac_fn_c_try_run LINENO
1735 # ----------------------
1736 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1737 # that executables *can* be run.
1738 ac_fn_c_try_run ()
1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1741 if { { ac_try="$ac_link"
1742 case "(($ac_try" in
1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1744 *) ac_try_echo=$ac_try;;
1745 esac
1746 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1747 $as_echo "$ac_try_echo"; } >&5
1748 (eval "$ac_link") 2>&5
1749 ac_status=$?
1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1751 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1752 { { case "(($ac_try" in
1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1754 *) ac_try_echo=$ac_try;;
1755 esac
1756 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1757 $as_echo "$ac_try_echo"; } >&5
1758 (eval "$ac_try") 2>&5
1759 ac_status=$?
1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1761 test $ac_status = 0; }; }; then :
1762 ac_retval=0
1763 else
1764 $as_echo "$as_me: program exited with status $ac_status" >&5
1765 $as_echo "$as_me: failed program was:" >&5
1766 sed 's/^/| /' conftest.$ac_ext >&5
1768 ac_retval=$ac_status
1770 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1772 as_fn_set_status $ac_retval
1774 } # ac_fn_c_try_run
1776 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1777 # -------------------------------------------------------
1778 # Tests whether HEADER exists and can be compiled using the include files in
1779 # INCLUDES, setting the cache variable VAR accordingly.
1780 ac_fn_c_check_header_compile ()
1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1784 $as_echo_n "checking for $2... " >&6; }
1785 if eval \${$3+:} false; then :
1786 $as_echo_n "(cached) " >&6
1787 else
1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1789 /* end confdefs.h. */
1791 #include <$2>
1792 _ACEOF
1793 if ac_fn_c_try_compile "$LINENO"; then :
1794 eval "$3=yes"
1795 else
1796 eval "$3=no"
1798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1800 eval ac_res=\$$3
1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1802 $as_echo "$ac_res" >&6; }
1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805 } # ac_fn_c_check_header_compile
1807 # ac_fn_cxx_try_compile LINENO
1808 # ----------------------------
1809 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1810 ac_fn_cxx_try_compile ()
1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1813 rm -f conftest.$ac_objext
1814 if { { ac_try="$ac_compile"
1815 case "(($ac_try" in
1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1817 *) ac_try_echo=$ac_try;;
1818 esac
1819 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1820 $as_echo "$ac_try_echo"; } >&5
1821 (eval "$ac_compile") 2>conftest.err
1822 ac_status=$?
1823 if test -s conftest.err; then
1824 grep -v '^ *+' conftest.err >conftest.er1
1825 cat conftest.er1 >&5
1826 mv -f conftest.er1 conftest.err
1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1829 test $ac_status = 0; } && {
1830 test -z "$ac_cxx_werror_flag" ||
1831 test ! -s conftest.err
1832 } && test -s conftest.$ac_objext; then :
1833 ac_retval=0
1834 else
1835 $as_echo "$as_me: failed program was:" >&5
1836 sed 's/^/| /' conftest.$ac_ext >&5
1838 ac_retval=1
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 as_fn_set_status $ac_retval
1843 } # ac_fn_cxx_try_compile
1845 # ac_fn_c_try_link LINENO
1846 # -----------------------
1847 # Try to link conftest.$ac_ext, and return whether this succeeded.
1848 ac_fn_c_try_link ()
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 rm -f conftest.$ac_objext conftest$ac_exeext
1852 if { { ac_try="$ac_link"
1853 case "(($ac_try" in
1854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1855 *) ac_try_echo=$ac_try;;
1856 esac
1857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1858 $as_echo "$ac_try_echo"; } >&5
1859 (eval "$ac_link") 2>conftest.err
1860 ac_status=$?
1861 if test -s conftest.err; then
1862 grep -v '^ *+' conftest.err >conftest.er1
1863 cat conftest.er1 >&5
1864 mv -f conftest.er1 conftest.err
1866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1867 test $ac_status = 0; } && {
1868 test -z "$ac_c_werror_flag" ||
1869 test ! -s conftest.err
1870 } && test -s conftest$ac_exeext && {
1871 test "$cross_compiling" = yes ||
1872 test -x conftest$ac_exeext
1873 }; then :
1874 ac_retval=0
1875 else
1876 $as_echo "$as_me: failed program was:" >&5
1877 sed 's/^/| /' conftest.$ac_ext >&5
1879 ac_retval=1
1881 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1882 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1883 # interfere with the next link command; also delete a directory that is
1884 # left behind by Apple's compiler. We do this before executing the actions.
1885 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1886 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1887 as_fn_set_status $ac_retval
1889 } # ac_fn_c_try_link
1891 # ac_fn_c_check_func LINENO FUNC VAR
1892 # ----------------------------------
1893 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1894 ac_fn_c_check_func ()
1896 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1898 $as_echo_n "checking for $2... " >&6; }
1899 if eval \${$3+:} false; then :
1900 $as_echo_n "(cached) " >&6
1901 else
1902 if test x$gcc_no_link = xyes; then
1903 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1905 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1906 /* end confdefs.h. */
1907 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1908 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1909 #define $2 innocuous_$2
1911 /* System header to define __stub macros and hopefully few prototypes,
1912 which can conflict with char $2 (); below.
1913 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1914 <limits.h> exists even on freestanding compilers. */
1916 #ifdef __STDC__
1917 # include <limits.h>
1918 #else
1919 # include <assert.h>
1920 #endif
1922 #undef $2
1924 /* Override any GCC internal prototype to avoid an error.
1925 Use char because int might match the return type of a GCC
1926 builtin and then its argument prototype would still apply. */
1927 #ifdef __cplusplus
1928 extern "C"
1929 #endif
1930 char $2 ();
1931 /* The GNU C library defines this for functions which it implements
1932 to always fail with ENOSYS. Some functions are actually named
1933 something starting with __ and the normal name is an alias. */
1934 #if defined __stub_$2 || defined __stub___$2
1935 choke me
1936 #endif
1939 main ()
1941 return $2 ();
1943 return 0;
1945 _ACEOF
1946 if ac_fn_c_try_link "$LINENO"; then :
1947 eval "$3=yes"
1948 else
1949 eval "$3=no"
1951 rm -f core conftest.err conftest.$ac_objext \
1952 conftest$ac_exeext conftest.$ac_ext
1954 eval ac_res=\$$3
1955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1956 $as_echo "$ac_res" >&6; }
1957 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1959 } # ac_fn_c_check_func
1961 # ac_fn_cxx_try_cpp LINENO
1962 # ------------------------
1963 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1964 ac_fn_cxx_try_cpp ()
1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1967 if { { ac_try="$ac_cpp conftest.$ac_ext"
1968 case "(($ac_try" in
1969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1970 *) ac_try_echo=$ac_try;;
1971 esac
1972 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1973 $as_echo "$ac_try_echo"; } >&5
1974 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1975 ac_status=$?
1976 if test -s conftest.err; then
1977 grep -v '^ *+' conftest.err >conftest.er1
1978 cat conftest.er1 >&5
1979 mv -f conftest.er1 conftest.err
1981 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1982 test $ac_status = 0; } > conftest.i && {
1983 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1984 test ! -s conftest.err
1985 }; then :
1986 ac_retval=0
1987 else
1988 $as_echo "$as_me: failed program was:" >&5
1989 sed 's/^/| /' conftest.$ac_ext >&5
1991 ac_retval=1
1993 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1994 as_fn_set_status $ac_retval
1996 } # ac_fn_cxx_try_cpp
1998 # ac_fn_cxx_try_link LINENO
1999 # -------------------------
2000 # Try to link conftest.$ac_ext, and return whether this succeeded.
2001 ac_fn_cxx_try_link ()
2003 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2004 rm -f conftest.$ac_objext conftest$ac_exeext
2005 if { { ac_try="$ac_link"
2006 case "(($ac_try" in
2007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2008 *) ac_try_echo=$ac_try;;
2009 esac
2010 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2011 $as_echo "$ac_try_echo"; } >&5
2012 (eval "$ac_link") 2>conftest.err
2013 ac_status=$?
2014 if test -s conftest.err; then
2015 grep -v '^ *+' conftest.err >conftest.er1
2016 cat conftest.er1 >&5
2017 mv -f conftest.er1 conftest.err
2019 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2020 test $ac_status = 0; } && {
2021 test -z "$ac_cxx_werror_flag" ||
2022 test ! -s conftest.err
2023 } && test -s conftest$ac_exeext && {
2024 test "$cross_compiling" = yes ||
2025 test -x conftest$ac_exeext
2026 }; then :
2027 ac_retval=0
2028 else
2029 $as_echo "$as_me: failed program was:" >&5
2030 sed 's/^/| /' conftest.$ac_ext >&5
2032 ac_retval=1
2034 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2035 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2036 # interfere with the next link command; also delete a directory that is
2037 # left behind by Apple's compiler. We do this before executing the actions.
2038 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2039 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2040 as_fn_set_status $ac_retval
2042 } # ac_fn_cxx_try_link
2044 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2045 # -------------------------------------------
2046 # Tests whether TYPE exists after having included INCLUDES, setting cache
2047 # variable VAR accordingly.
2048 ac_fn_c_check_type ()
2050 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2052 $as_echo_n "checking for $2... " >&6; }
2053 if eval \${$3+:} false; then :
2054 $as_echo_n "(cached) " >&6
2055 else
2056 eval "$3=no"
2057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2058 /* end confdefs.h. */
2061 main ()
2063 if (sizeof ($2))
2064 return 0;
2066 return 0;
2068 _ACEOF
2069 if ac_fn_c_try_compile "$LINENO"; then :
2070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2071 /* end confdefs.h. */
2074 main ()
2076 if (sizeof (($2)))
2077 return 0;
2079 return 0;
2081 _ACEOF
2082 if ac_fn_c_try_compile "$LINENO"; then :
2084 else
2085 eval "$3=yes"
2087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2091 eval ac_res=\$$3
2092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2093 $as_echo "$ac_res" >&6; }
2094 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2096 } # ac_fn_c_check_type
2097 cat >config.log <<_ACEOF
2098 This file contains any messages produced by compilers while
2099 running configure, to aid debugging if configure makes a mistake.
2101 It was created by package-unused $as_me version-unused, which was
2102 generated by GNU Autoconf 2.69. Invocation command line was
2104 $ $0 $@
2106 _ACEOF
2107 exec 5>>config.log
2109 cat <<_ASUNAME
2110 ## --------- ##
2111 ## Platform. ##
2112 ## --------- ##
2114 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2115 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2116 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2117 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2118 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2120 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2121 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2123 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2124 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2125 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2126 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2127 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2128 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2129 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2131 _ASUNAME
2133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2134 for as_dir in $PATH
2136 IFS=$as_save_IFS
2137 test -z "$as_dir" && as_dir=.
2138 $as_echo "PATH: $as_dir"
2139 done
2140 IFS=$as_save_IFS
2142 } >&5
2144 cat >&5 <<_ACEOF
2147 ## ----------- ##
2148 ## Core tests. ##
2149 ## ----------- ##
2151 _ACEOF
2154 # Keep a trace of the command line.
2155 # Strip out --no-create and --no-recursion so they do not pile up.
2156 # Strip out --silent because we don't want to record it for future runs.
2157 # Also quote any args containing shell meta-characters.
2158 # Make two passes to allow for proper duplicate-argument suppression.
2159 ac_configure_args=
2160 ac_configure_args0=
2161 ac_configure_args1=
2162 ac_must_keep_next=false
2163 for ac_pass in 1 2
2165 for ac_arg
2167 case $ac_arg in
2168 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2169 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2170 | -silent | --silent | --silen | --sile | --sil)
2171 continue ;;
2172 *\'*)
2173 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2174 esac
2175 case $ac_pass in
2176 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2178 as_fn_append ac_configure_args1 " '$ac_arg'"
2179 if test $ac_must_keep_next = true; then
2180 ac_must_keep_next=false # Got value, back to normal.
2181 else
2182 case $ac_arg in
2183 *=* | --config-cache | -C | -disable-* | --disable-* \
2184 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2185 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2186 | -with-* | --with-* | -without-* | --without-* | --x)
2187 case "$ac_configure_args0 " in
2188 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2189 esac
2191 -* ) ac_must_keep_next=true ;;
2192 esac
2194 as_fn_append ac_configure_args " '$ac_arg'"
2196 esac
2197 done
2198 done
2199 { ac_configure_args0=; unset ac_configure_args0;}
2200 { ac_configure_args1=; unset ac_configure_args1;}
2202 # When interrupted or exit'd, cleanup temporary files, and complete
2203 # config.log. We remove comments because anyway the quotes in there
2204 # would cause problems or look ugly.
2205 # WARNING: Use '\'' to represent an apostrophe within the trap.
2206 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2207 trap 'exit_status=$?
2208 # Save into config.log some information that might help in debugging.
2210 echo
2212 $as_echo "## ---------------- ##
2213 ## Cache variables. ##
2214 ## ---------------- ##"
2215 echo
2216 # The following way of writing the cache mishandles newlines in values,
2218 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2219 eval ac_val=\$$ac_var
2220 case $ac_val in #(
2221 *${as_nl}*)
2222 case $ac_var in #(
2223 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2224 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2225 esac
2226 case $ac_var in #(
2227 _ | IFS | as_nl) ;; #(
2228 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2229 *) { eval $ac_var=; unset $ac_var;} ;;
2230 esac ;;
2231 esac
2232 done
2233 (set) 2>&1 |
2234 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2235 *${as_nl}ac_space=\ *)
2236 sed -n \
2237 "s/'\''/'\''\\\\'\'''\''/g;
2238 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2239 ;; #(
2241 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2243 esac |
2244 sort
2246 echo
2248 $as_echo "## ----------------- ##
2249 ## Output variables. ##
2250 ## ----------------- ##"
2251 echo
2252 for ac_var in $ac_subst_vars
2254 eval ac_val=\$$ac_var
2255 case $ac_val in
2256 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2257 esac
2258 $as_echo "$ac_var='\''$ac_val'\''"
2259 done | sort
2260 echo
2262 if test -n "$ac_subst_files"; then
2263 $as_echo "## ------------------- ##
2264 ## File substitutions. ##
2265 ## ------------------- ##"
2266 echo
2267 for ac_var in $ac_subst_files
2269 eval ac_val=\$$ac_var
2270 case $ac_val in
2271 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2272 esac
2273 $as_echo "$ac_var='\''$ac_val'\''"
2274 done | sort
2275 echo
2278 if test -s confdefs.h; then
2279 $as_echo "## ----------- ##
2280 ## confdefs.h. ##
2281 ## ----------- ##"
2282 echo
2283 cat confdefs.h
2284 echo
2286 test "$ac_signal" != 0 &&
2287 $as_echo "$as_me: caught signal $ac_signal"
2288 $as_echo "$as_me: exit $exit_status"
2289 } >&5
2290 rm -f core *.core core.conftest.* &&
2291 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2292 exit $exit_status
2294 for ac_signal in 1 2 13 15; do
2295 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2296 done
2297 ac_signal=0
2299 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2300 rm -f -r conftest* confdefs.h
2302 $as_echo "/* confdefs.h */" > confdefs.h
2304 # Predefined preprocessor variables.
2306 cat >>confdefs.h <<_ACEOF
2307 #define PACKAGE_NAME "$PACKAGE_NAME"
2308 _ACEOF
2310 cat >>confdefs.h <<_ACEOF
2311 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2312 _ACEOF
2314 cat >>confdefs.h <<_ACEOF
2315 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2316 _ACEOF
2318 cat >>confdefs.h <<_ACEOF
2319 #define PACKAGE_STRING "$PACKAGE_STRING"
2320 _ACEOF
2322 cat >>confdefs.h <<_ACEOF
2323 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2324 _ACEOF
2326 cat >>confdefs.h <<_ACEOF
2327 #define PACKAGE_URL "$PACKAGE_URL"
2328 _ACEOF
2331 # Let the site file select an alternate cache file if it wants to.
2332 # Prefer an explicitly selected file to automatically selected ones.
2333 ac_site_file1=NONE
2334 ac_site_file2=NONE
2335 if test -n "$CONFIG_SITE"; then
2336 # We do not want a PATH search for config.site.
2337 case $CONFIG_SITE in #((
2338 -*) ac_site_file1=./$CONFIG_SITE;;
2339 */*) ac_site_file1=$CONFIG_SITE;;
2340 *) ac_site_file1=./$CONFIG_SITE;;
2341 esac
2342 elif test "x$prefix" != xNONE; then
2343 ac_site_file1=$prefix/share/config.site
2344 ac_site_file2=$prefix/etc/config.site
2345 else
2346 ac_site_file1=$ac_default_prefix/share/config.site
2347 ac_site_file2=$ac_default_prefix/etc/config.site
2349 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2351 test "x$ac_site_file" = xNONE && continue
2352 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2353 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2354 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2355 sed 's/^/| /' "$ac_site_file" >&5
2356 . "$ac_site_file" \
2357 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2358 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2359 as_fn_error $? "failed to load site script $ac_site_file
2360 See \`config.log' for more details" "$LINENO" 5; }
2362 done
2364 if test -r "$cache_file"; then
2365 # Some versions of bash will fail to source /dev/null (special files
2366 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2367 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2369 $as_echo "$as_me: loading cache $cache_file" >&6;}
2370 case $cache_file in
2371 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2372 *) . "./$cache_file";;
2373 esac
2375 else
2376 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2377 $as_echo "$as_me: creating cache $cache_file" >&6;}
2378 >$cache_file
2381 # Check that the precious variables saved in the cache have kept the same
2382 # value.
2383 ac_cache_corrupted=false
2384 for ac_var in $ac_precious_vars; do
2385 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2386 eval ac_new_set=\$ac_env_${ac_var}_set
2387 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2388 eval ac_new_val=\$ac_env_${ac_var}_value
2389 case $ac_old_set,$ac_new_set in
2390 set,)
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2392 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2393 ac_cache_corrupted=: ;;
2394 ,set)
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2396 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2397 ac_cache_corrupted=: ;;
2398 ,);;
2400 if test "x$ac_old_val" != "x$ac_new_val"; then
2401 # differences in whitespace do not lead to failure.
2402 ac_old_val_w=`echo x $ac_old_val`
2403 ac_new_val_w=`echo x $ac_new_val`
2404 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2405 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2406 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2407 ac_cache_corrupted=:
2408 else
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2410 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2411 eval $ac_var=\$ac_old_val
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2414 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2415 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2416 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2417 fi;;
2418 esac
2419 # Pass precious variables to config.status.
2420 if test "$ac_new_set" = set; then
2421 case $ac_new_val in
2422 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2423 *) ac_arg=$ac_var=$ac_new_val ;;
2424 esac
2425 case " $ac_configure_args " in
2426 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2427 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2428 esac
2430 done
2431 if $ac_cache_corrupted; then
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2433 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2435 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2436 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2438 ## -------------------- ##
2439 ## Main body of script. ##
2440 ## -------------------- ##
2442 ac_ext=c
2443 ac_cpp='$CPP $CPPFLAGS'
2444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2453 # AC_CONFIG_MACRO_DIR([config])
2454 ac_config_headers="$ac_config_headers config.h"
2457 libtool_VERSION=18:0:0
2460 # Default to --enable-multilib
2461 # Check whether --enable-multilib was given.
2462 if test "${enable_multilib+set}" = set; then :
2463 enableval=$enable_multilib; case "$enableval" in
2464 yes) multilib=yes ;;
2465 no) multilib=no ;;
2466 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2467 esac
2468 else
2469 multilib=yes
2473 # We may get other options which we leave undocumented:
2474 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2475 # See config-ml.in if you want the gory details.
2477 if test "$srcdir" = "."; then
2478 if test "$with_target_subdir" != "."; then
2479 multi_basedir="$srcdir/$with_multisrctop../.."
2480 else
2481 multi_basedir="$srcdir/$with_multisrctop.."
2483 else
2484 multi_basedir="$srcdir/.."
2488 # Even if the default multilib is not a cross compilation,
2489 # it may be that some of the other multilibs are.
2490 if test $cross_compiling = no && test $multilib = yes \
2491 && test "x${with_multisubdir}" != x ; then
2492 cross_compiling=maybe
2495 ac_config_commands="$ac_config_commands default-1"
2500 ac_aux_dir=
2501 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2502 if test -f "$ac_dir/install-sh"; then
2503 ac_aux_dir=$ac_dir
2504 ac_install_sh="$ac_aux_dir/install-sh -c"
2505 break
2506 elif test -f "$ac_dir/install.sh"; then
2507 ac_aux_dir=$ac_dir
2508 ac_install_sh="$ac_aux_dir/install.sh -c"
2509 break
2510 elif test -f "$ac_dir/shtool"; then
2511 ac_aux_dir=$ac_dir
2512 ac_install_sh="$ac_aux_dir/shtool install -c"
2513 break
2515 done
2516 if test -z "$ac_aux_dir"; then
2517 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2520 # These three variables are undocumented and unsupported,
2521 # and are intended to be withdrawn in a future Autoconf release.
2522 # They can cause serious problems if a builder's source tree is in a directory
2523 # whose full name contains unusual characters.
2524 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2525 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2526 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2529 # Expand $ac_aux_dir to an absolute path.
2530 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2532 ac_ext=c
2533 ac_cpp='$CPP $CPPFLAGS'
2534 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2535 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2536 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2537 if test -n "$ac_tool_prefix"; then
2538 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2539 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2541 $as_echo_n "checking for $ac_word... " >&6; }
2542 if ${ac_cv_prog_CC+:} false; then :
2543 $as_echo_n "(cached) " >&6
2544 else
2545 if test -n "$CC"; then
2546 ac_cv_prog_CC="$CC" # Let the user override the test.
2547 else
2548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2549 for as_dir in $PATH
2551 IFS=$as_save_IFS
2552 test -z "$as_dir" && as_dir=.
2553 for ac_exec_ext in '' $ac_executable_extensions; do
2554 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2555 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2557 break 2
2559 done
2560 done
2561 IFS=$as_save_IFS
2565 CC=$ac_cv_prog_CC
2566 if test -n "$CC"; then
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2568 $as_echo "$CC" >&6; }
2569 else
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2571 $as_echo "no" >&6; }
2576 if test -z "$ac_cv_prog_CC"; then
2577 ac_ct_CC=$CC
2578 # Extract the first word of "gcc", so it can be a program name with args.
2579 set dummy gcc; ac_word=$2
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2581 $as_echo_n "checking for $ac_word... " >&6; }
2582 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2583 $as_echo_n "(cached) " >&6
2584 else
2585 if test -n "$ac_ct_CC"; then
2586 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2587 else
2588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2589 for as_dir in $PATH
2591 IFS=$as_save_IFS
2592 test -z "$as_dir" && as_dir=.
2593 for ac_exec_ext in '' $ac_executable_extensions; do
2594 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2595 ac_cv_prog_ac_ct_CC="gcc"
2596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2597 break 2
2599 done
2600 done
2601 IFS=$as_save_IFS
2605 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2606 if test -n "$ac_ct_CC"; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2608 $as_echo "$ac_ct_CC" >&6; }
2609 else
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2611 $as_echo "no" >&6; }
2614 if test "x$ac_ct_CC" = x; then
2615 CC=""
2616 else
2617 case $cross_compiling:$ac_tool_warned in
2618 yes:)
2619 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2620 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2621 ac_tool_warned=yes ;;
2622 esac
2623 CC=$ac_ct_CC
2625 else
2626 CC="$ac_cv_prog_CC"
2629 if test -z "$CC"; then
2630 if test -n "$ac_tool_prefix"; then
2631 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2632 set dummy ${ac_tool_prefix}cc; ac_word=$2
2633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2634 $as_echo_n "checking for $ac_word... " >&6; }
2635 if ${ac_cv_prog_CC+:} false; then :
2636 $as_echo_n "(cached) " >&6
2637 else
2638 if test -n "$CC"; then
2639 ac_cv_prog_CC="$CC" # Let the user override the test.
2640 else
2641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2642 for as_dir in $PATH
2644 IFS=$as_save_IFS
2645 test -z "$as_dir" && as_dir=.
2646 for ac_exec_ext in '' $ac_executable_extensions; do
2647 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2648 ac_cv_prog_CC="${ac_tool_prefix}cc"
2649 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2650 break 2
2652 done
2653 done
2654 IFS=$as_save_IFS
2658 CC=$ac_cv_prog_CC
2659 if test -n "$CC"; then
2660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2661 $as_echo "$CC" >&6; }
2662 else
2663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2664 $as_echo "no" >&6; }
2670 if test -z "$CC"; then
2671 # Extract the first word of "cc", so it can be a program name with args.
2672 set dummy cc; ac_word=$2
2673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674 $as_echo_n "checking for $ac_word... " >&6; }
2675 if ${ac_cv_prog_CC+:} false; then :
2676 $as_echo_n "(cached) " >&6
2677 else
2678 if test -n "$CC"; then
2679 ac_cv_prog_CC="$CC" # Let the user override the test.
2680 else
2681 ac_prog_rejected=no
2682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2683 for as_dir in $PATH
2685 IFS=$as_save_IFS
2686 test -z "$as_dir" && as_dir=.
2687 for ac_exec_ext in '' $ac_executable_extensions; do
2688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2689 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2690 ac_prog_rejected=yes
2691 continue
2693 ac_cv_prog_CC="cc"
2694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2695 break 2
2697 done
2698 done
2699 IFS=$as_save_IFS
2701 if test $ac_prog_rejected = yes; then
2702 # We found a bogon in the path, so make sure we never use it.
2703 set dummy $ac_cv_prog_CC
2704 shift
2705 if test $# != 0; then
2706 # We chose a different compiler from the bogus one.
2707 # However, it has the same basename, so the bogon will be chosen
2708 # first if we set CC to just the basename; use the full file name.
2709 shift
2710 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2715 CC=$ac_cv_prog_CC
2716 if test -n "$CC"; then
2717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2718 $as_echo "$CC" >&6; }
2719 else
2720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2721 $as_echo "no" >&6; }
2726 if test -z "$CC"; then
2727 if test -n "$ac_tool_prefix"; then
2728 for ac_prog in cl.exe
2730 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2731 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2733 $as_echo_n "checking for $ac_word... " >&6; }
2734 if ${ac_cv_prog_CC+:} false; then :
2735 $as_echo_n "(cached) " >&6
2736 else
2737 if test -n "$CC"; then
2738 ac_cv_prog_CC="$CC" # Let the user override the test.
2739 else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2743 IFS=$as_save_IFS
2744 test -z "$as_dir" && as_dir=.
2745 for ac_exec_ext in '' $ac_executable_extensions; do
2746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2747 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2749 break 2
2751 done
2752 done
2753 IFS=$as_save_IFS
2757 CC=$ac_cv_prog_CC
2758 if test -n "$CC"; then
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2760 $as_echo "$CC" >&6; }
2761 else
2762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2763 $as_echo "no" >&6; }
2767 test -n "$CC" && break
2768 done
2770 if test -z "$CC"; then
2771 ac_ct_CC=$CC
2772 for ac_prog in cl.exe
2774 # Extract the first word of "$ac_prog", so it can be a program name with args.
2775 set dummy $ac_prog; ac_word=$2
2776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2777 $as_echo_n "checking for $ac_word... " >&6; }
2778 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2779 $as_echo_n "(cached) " >&6
2780 else
2781 if test -n "$ac_ct_CC"; then
2782 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2783 else
2784 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2785 for as_dir in $PATH
2787 IFS=$as_save_IFS
2788 test -z "$as_dir" && as_dir=.
2789 for ac_exec_ext in '' $ac_executable_extensions; do
2790 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2791 ac_cv_prog_ac_ct_CC="$ac_prog"
2792 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2793 break 2
2795 done
2796 done
2797 IFS=$as_save_IFS
2801 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2802 if test -n "$ac_ct_CC"; then
2803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2804 $as_echo "$ac_ct_CC" >&6; }
2805 else
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2807 $as_echo "no" >&6; }
2811 test -n "$ac_ct_CC" && break
2812 done
2814 if test "x$ac_ct_CC" = x; then
2815 CC=""
2816 else
2817 case $cross_compiling:$ac_tool_warned in
2818 yes:)
2819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2820 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2821 ac_tool_warned=yes ;;
2822 esac
2823 CC=$ac_ct_CC
2830 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2831 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2832 as_fn_error $? "no acceptable C compiler found in \$PATH
2833 See \`config.log' for more details" "$LINENO" 5; }
2835 # Provide some information about the compiler.
2836 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2837 set X $ac_compile
2838 ac_compiler=$2
2839 for ac_option in --version -v -V -qversion; do
2840 { { ac_try="$ac_compiler $ac_option >&5"
2841 case "(($ac_try" in
2842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2843 *) ac_try_echo=$ac_try;;
2844 esac
2845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2846 $as_echo "$ac_try_echo"; } >&5
2847 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2848 ac_status=$?
2849 if test -s conftest.err; then
2850 sed '10a\
2851 ... rest of stderr output deleted ...
2852 10q' conftest.err >conftest.er1
2853 cat conftest.er1 >&5
2855 rm -f conftest.er1 conftest.err
2856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2857 test $ac_status = 0; }
2858 done
2860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2861 /* end confdefs.h. */
2862 #include <stdio.h>
2864 main ()
2866 printf ("hello world\n");
2868 return 0;
2870 _ACEOF
2871 # FIXME: Cleanup?
2872 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
2873 (eval $ac_link) 2>&5
2874 ac_status=$?
2875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2876 test $ac_status = 0; }; then :
2877 gcc_no_link=no
2878 else
2879 gcc_no_link=yes
2881 if test x$gcc_no_link = xyes; then
2882 # Setting cross_compile will disable run tests; it will
2883 # also disable AC_CHECK_FILE but that's generally
2884 # correct if we can't link.
2885 cross_compiling=yes
2886 EXEEXT=
2887 else
2888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2889 /* end confdefs.h. */
2892 main ()
2896 return 0;
2898 _ACEOF
2899 ac_clean_files_save=$ac_clean_files
2900 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2901 # Try to create an executable without -o first, disregard a.out.
2902 # It will help us diagnose broken compilers, and finding out an intuition
2903 # of exeext.
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2905 $as_echo_n "checking whether the C compiler works... " >&6; }
2906 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2908 # The possible output files:
2909 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2911 ac_rmfiles=
2912 for ac_file in $ac_files
2914 case $ac_file in
2915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2916 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2917 esac
2918 done
2919 rm -f $ac_rmfiles
2921 if { { ac_try="$ac_link_default"
2922 case "(($ac_try" in
2923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2924 *) ac_try_echo=$ac_try;;
2925 esac
2926 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2927 $as_echo "$ac_try_echo"; } >&5
2928 (eval "$ac_link_default") 2>&5
2929 ac_status=$?
2930 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2931 test $ac_status = 0; }; then :
2932 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2933 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2934 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2935 # so that the user can short-circuit this test for compilers unknown to
2936 # Autoconf.
2937 for ac_file in $ac_files ''
2939 test -f "$ac_file" || continue
2940 case $ac_file in
2941 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2943 [ab].out )
2944 # We found the default executable, but exeext='' is most
2945 # certainly right.
2946 break;;
2947 *.* )
2948 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2949 then :; else
2950 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2952 # We set ac_cv_exeext here because the later test for it is not
2953 # safe: cross compilers may not add the suffix if given an `-o'
2954 # argument, so we may need to know it at that point already.
2955 # Even if this section looks crufty: it has the advantage of
2956 # actually working.
2957 break;;
2959 break;;
2960 esac
2961 done
2962 test "$ac_cv_exeext" = no && ac_cv_exeext=
2964 else
2965 ac_file=''
2967 if test -z "$ac_file"; then :
2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2969 $as_echo "no" >&6; }
2970 $as_echo "$as_me: failed program was:" >&5
2971 sed 's/^/| /' conftest.$ac_ext >&5
2973 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2974 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2975 as_fn_error 77 "C compiler cannot create executables
2976 See \`config.log' for more details" "$LINENO" 5; }
2977 else
2978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2979 $as_echo "yes" >&6; }
2981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2982 $as_echo_n "checking for C compiler default output file name... " >&6; }
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2984 $as_echo "$ac_file" >&6; }
2985 ac_exeext=$ac_cv_exeext
2987 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2988 ac_clean_files=$ac_clean_files_save
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2990 $as_echo_n "checking for suffix of executables... " >&6; }
2991 if { { ac_try="$ac_link"
2992 case "(($ac_try" in
2993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2994 *) ac_try_echo=$ac_try;;
2995 esac
2996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2997 $as_echo "$ac_try_echo"; } >&5
2998 (eval "$ac_link") 2>&5
2999 ac_status=$?
3000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3001 test $ac_status = 0; }; then :
3002 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3003 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3004 # work properly (i.e., refer to `conftest.exe'), while it won't with
3005 # `rm'.
3006 for ac_file in conftest.exe conftest conftest.*; do
3007 test -f "$ac_file" || continue
3008 case $ac_file in
3009 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3010 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3011 break;;
3012 * ) break;;
3013 esac
3014 done
3015 else
3016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3018 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3019 See \`config.log' for more details" "$LINENO" 5; }
3021 rm -f conftest conftest$ac_cv_exeext
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3023 $as_echo "$ac_cv_exeext" >&6; }
3025 rm -f conftest.$ac_ext
3026 EXEEXT=$ac_cv_exeext
3027 ac_exeext=$EXEEXT
3028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3029 /* end confdefs.h. */
3030 #include <stdio.h>
3032 main ()
3034 FILE *f = fopen ("conftest.out", "w");
3035 return ferror (f) || fclose (f) != 0;
3038 return 0;
3040 _ACEOF
3041 ac_clean_files="$ac_clean_files conftest.out"
3042 # Check that the compiler produces executables we can run. If not, either
3043 # the compiler is broken, or we cross compile.
3044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3045 $as_echo_n "checking whether we are cross compiling... " >&6; }
3046 if test "$cross_compiling" != yes; then
3047 { { ac_try="$ac_link"
3048 case "(($ac_try" in
3049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3050 *) ac_try_echo=$ac_try;;
3051 esac
3052 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3053 $as_echo "$ac_try_echo"; } >&5
3054 (eval "$ac_link") 2>&5
3055 ac_status=$?
3056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3057 test $ac_status = 0; }
3058 if { ac_try='./conftest$ac_cv_exeext'
3059 { { case "(($ac_try" in
3060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3061 *) ac_try_echo=$ac_try;;
3062 esac
3063 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3064 $as_echo "$ac_try_echo"; } >&5
3065 (eval "$ac_try") 2>&5
3066 ac_status=$?
3067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3068 test $ac_status = 0; }; }; then
3069 cross_compiling=no
3070 else
3071 if test "$cross_compiling" = maybe; then
3072 cross_compiling=yes
3073 else
3074 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3075 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3076 as_fn_error $? "cannot run C compiled programs.
3077 If you meant to cross compile, use \`--host'.
3078 See \`config.log' for more details" "$LINENO" 5; }
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3083 $as_echo "$cross_compiling" >&6; }
3085 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3086 ac_clean_files=$ac_clean_files_save
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3089 $as_echo_n "checking for suffix of object files... " >&6; }
3090 if ${ac_cv_objext+:} false; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3094 /* end confdefs.h. */
3097 main ()
3101 return 0;
3103 _ACEOF
3104 rm -f conftest.o conftest.obj
3105 if { { ac_try="$ac_compile"
3106 case "(($ac_try" in
3107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3108 *) ac_try_echo=$ac_try;;
3109 esac
3110 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3111 $as_echo "$ac_try_echo"; } >&5
3112 (eval "$ac_compile") 2>&5
3113 ac_status=$?
3114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3115 test $ac_status = 0; }; then :
3116 for ac_file in conftest.o conftest.obj conftest.*; do
3117 test -f "$ac_file" || continue;
3118 case $ac_file in
3119 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3120 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3121 break;;
3122 esac
3123 done
3124 else
3125 $as_echo "$as_me: failed program was:" >&5
3126 sed 's/^/| /' conftest.$ac_ext >&5
3128 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3130 as_fn_error $? "cannot compute suffix of object files: cannot compile
3131 See \`config.log' for more details" "$LINENO" 5; }
3133 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3136 $as_echo "$ac_cv_objext" >&6; }
3137 OBJEXT=$ac_cv_objext
3138 ac_objext=$OBJEXT
3139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3140 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3141 if ${ac_cv_c_compiler_gnu+:} false; then :
3142 $as_echo_n "(cached) " >&6
3143 else
3144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3145 /* end confdefs.h. */
3148 main ()
3150 #ifndef __GNUC__
3151 choke me
3152 #endif
3155 return 0;
3157 _ACEOF
3158 if ac_fn_c_try_compile "$LINENO"; then :
3159 ac_compiler_gnu=yes
3160 else
3161 ac_compiler_gnu=no
3163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3164 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3168 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3169 if test $ac_compiler_gnu = yes; then
3170 GCC=yes
3171 else
3172 GCC=
3174 ac_test_CFLAGS=${CFLAGS+set}
3175 ac_save_CFLAGS=$CFLAGS
3176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3177 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3178 if ${ac_cv_prog_cc_g+:} false; then :
3179 $as_echo_n "(cached) " >&6
3180 else
3181 ac_save_c_werror_flag=$ac_c_werror_flag
3182 ac_c_werror_flag=yes
3183 ac_cv_prog_cc_g=no
3184 CFLAGS="-g"
3185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3186 /* end confdefs.h. */
3189 main ()
3193 return 0;
3195 _ACEOF
3196 if ac_fn_c_try_compile "$LINENO"; then :
3197 ac_cv_prog_cc_g=yes
3198 else
3199 CFLAGS=""
3200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3201 /* end confdefs.h. */
3204 main ()
3208 return 0;
3210 _ACEOF
3211 if ac_fn_c_try_compile "$LINENO"; then :
3213 else
3214 ac_c_werror_flag=$ac_save_c_werror_flag
3215 CFLAGS="-g"
3216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3217 /* end confdefs.h. */
3220 main ()
3224 return 0;
3226 _ACEOF
3227 if ac_fn_c_try_compile "$LINENO"; then :
3228 ac_cv_prog_cc_g=yes
3230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3235 ac_c_werror_flag=$ac_save_c_werror_flag
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3238 $as_echo "$ac_cv_prog_cc_g" >&6; }
3239 if test "$ac_test_CFLAGS" = set; then
3240 CFLAGS=$ac_save_CFLAGS
3241 elif test $ac_cv_prog_cc_g = yes; then
3242 if test "$GCC" = yes; then
3243 CFLAGS="-g -O2"
3244 else
3245 CFLAGS="-g"
3247 else
3248 if test "$GCC" = yes; then
3249 CFLAGS="-O2"
3250 else
3251 CFLAGS=
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3255 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3256 if ${ac_cv_prog_cc_c89+:} false; then :
3257 $as_echo_n "(cached) " >&6
3258 else
3259 ac_cv_prog_cc_c89=no
3260 ac_save_CC=$CC
3261 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3262 /* end confdefs.h. */
3263 #include <stdarg.h>
3264 #include <stdio.h>
3265 struct stat;
3266 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3267 struct buf { int x; };
3268 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3269 static char *e (p, i)
3270 char **p;
3271 int i;
3273 return p[i];
3275 static char *f (char * (*g) (char **, int), char **p, ...)
3277 char *s;
3278 va_list v;
3279 va_start (v,p);
3280 s = g (p, va_arg (v,int));
3281 va_end (v);
3282 return s;
3285 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3286 function prototypes and stuff, but not '\xHH' hex character constants.
3287 These don't provoke an error unfortunately, instead are silently treated
3288 as 'x'. The following induces an error, until -std is added to get
3289 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3290 array size at least. It's necessary to write '\x00'==0 to get something
3291 that's true only with -std. */
3292 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3294 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3295 inside strings and character constants. */
3296 #define FOO(x) 'x'
3297 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3299 int test (int i, double x);
3300 struct s1 {int (*f) (int a);};
3301 struct s2 {int (*f) (double a);};
3302 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3303 int argc;
3304 char **argv;
3306 main ()
3308 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3310 return 0;
3312 _ACEOF
3313 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3314 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3316 CC="$ac_save_CC $ac_arg"
3317 if ac_fn_c_try_compile "$LINENO"; then :
3318 ac_cv_prog_cc_c89=$ac_arg
3320 rm -f core conftest.err conftest.$ac_objext
3321 test "x$ac_cv_prog_cc_c89" != "xno" && break
3322 done
3323 rm -f conftest.$ac_ext
3324 CC=$ac_save_CC
3327 # AC_CACHE_VAL
3328 case "x$ac_cv_prog_cc_c89" in
3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3331 $as_echo "none needed" >&6; } ;;
3332 xno)
3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3334 $as_echo "unsupported" >&6; } ;;
3336 CC="$CC $ac_cv_prog_cc_c89"
3337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3338 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3339 esac
3340 if test "x$ac_cv_prog_cc_c89" != xno; then :
3344 ac_ext=c
3345 ac_cpp='$CPP $CPPFLAGS'
3346 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3347 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3348 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3350 ac_ext=c
3351 ac_cpp='$CPP $CPPFLAGS'
3352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3356 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3357 if ${am_cv_prog_cc_c_o+:} false; then :
3358 $as_echo_n "(cached) " >&6
3359 else
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3364 main ()
3368 return 0;
3370 _ACEOF
3371 # Make sure it works both with $CC and with simple cc.
3372 # Following AC_PROG_CC_C_O, we do the test twice because some
3373 # compilers refuse to overwrite an existing .o file with -o,
3374 # though they will create one.
3375 am_cv_prog_cc_c_o=yes
3376 for am_i in 1 2; do
3377 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3378 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3379 ac_status=$?
3380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3381 (exit $ac_status); } \
3382 && test -f conftest2.$ac_objext; then
3383 : OK
3384 else
3385 am_cv_prog_cc_c_o=no
3386 break
3388 done
3389 rm -f core conftest*
3390 unset am_i
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3393 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3394 if test "$am_cv_prog_cc_c_o" != yes; then
3395 # Losing compiler, so override with the script.
3396 # FIXME: It is wrong to rewrite CC.
3397 # But if we don't then we get into trouble of one sort or another.
3398 # A longer-term fix would be to have automake use am__CC in this case,
3399 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3400 CC="$am_aux_dir/compile $CC"
3402 ac_ext=c
3403 ac_cpp='$CPP $CPPFLAGS'
3404 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3405 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3406 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3410 ac_ext=c
3411 ac_cpp='$CPP $CPPFLAGS'
3412 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3413 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3414 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3416 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3417 # On Suns, sometimes $CPP names a directory.
3418 if test -n "$CPP" && test -d "$CPP"; then
3419 CPP=
3421 if test -z "$CPP"; then
3422 if ${ac_cv_prog_CPP+:} false; then :
3423 $as_echo_n "(cached) " >&6
3424 else
3425 # Double quotes because CPP needs to be expanded
3426 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3428 ac_preproc_ok=false
3429 for ac_c_preproc_warn_flag in '' yes
3431 # Use a header file that comes with gcc, so configuring glibc
3432 # with a fresh cross-compiler works.
3433 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3434 # <limits.h> exists even on freestanding compilers.
3435 # On the NeXT, cc -E runs the code through the compiler's parser,
3436 # not just through cpp. "Syntax error" is here to catch this case.
3437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3438 /* end confdefs.h. */
3439 #ifdef __STDC__
3440 # include <limits.h>
3441 #else
3442 # include <assert.h>
3443 #endif
3444 Syntax error
3445 _ACEOF
3446 if ac_fn_c_try_cpp "$LINENO"; then :
3448 else
3449 # Broken: fails on valid input.
3450 continue
3452 rm -f conftest.err conftest.i conftest.$ac_ext
3454 # OK, works on sane cases. Now check whether nonexistent headers
3455 # can be detected and how.
3456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3457 /* end confdefs.h. */
3458 #include <ac_nonexistent.h>
3459 _ACEOF
3460 if ac_fn_c_try_cpp "$LINENO"; then :
3461 # Broken: success on invalid input.
3462 continue
3463 else
3464 # Passes both tests.
3465 ac_preproc_ok=:
3466 break
3468 rm -f conftest.err conftest.i conftest.$ac_ext
3470 done
3471 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3472 rm -f conftest.i conftest.err conftest.$ac_ext
3473 if $ac_preproc_ok; then :
3474 break
3477 done
3478 ac_cv_prog_CPP=$CPP
3481 CPP=$ac_cv_prog_CPP
3482 else
3483 ac_cv_prog_CPP=$CPP
3485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3486 $as_echo "$CPP" >&6; }
3487 ac_preproc_ok=false
3488 for ac_c_preproc_warn_flag in '' yes
3490 # Use a header file that comes with gcc, so configuring glibc
3491 # with a fresh cross-compiler works.
3492 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3493 # <limits.h> exists even on freestanding compilers.
3494 # On the NeXT, cc -E runs the code through the compiler's parser,
3495 # not just through cpp. "Syntax error" is here to catch this case.
3496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3497 /* end confdefs.h. */
3498 #ifdef __STDC__
3499 # include <limits.h>
3500 #else
3501 # include <assert.h>
3502 #endif
3503 Syntax error
3504 _ACEOF
3505 if ac_fn_c_try_cpp "$LINENO"; then :
3507 else
3508 # Broken: fails on valid input.
3509 continue
3511 rm -f conftest.err conftest.i conftest.$ac_ext
3513 # OK, works on sane cases. Now check whether nonexistent headers
3514 # can be detected and how.
3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3516 /* end confdefs.h. */
3517 #include <ac_nonexistent.h>
3518 _ACEOF
3519 if ac_fn_c_try_cpp "$LINENO"; then :
3520 # Broken: success on invalid input.
3521 continue
3522 else
3523 # Passes both tests.
3524 ac_preproc_ok=:
3525 break
3527 rm -f conftest.err conftest.i conftest.$ac_ext
3529 done
3530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3531 rm -f conftest.i conftest.err conftest.$ac_ext
3532 if $ac_preproc_ok; then :
3534 else
3535 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3536 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3537 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3538 See \`config.log' for more details" "$LINENO" 5; }
3541 ac_ext=c
3542 ac_cpp='$CPP $CPPFLAGS'
3543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3549 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3550 if ${ac_cv_path_GREP+:} false; then :
3551 $as_echo_n "(cached) " >&6
3552 else
3553 if test -z "$GREP"; then
3554 ac_path_GREP_found=false
3555 # Loop through the user's path and test for each of PROGNAME-LIST
3556 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3557 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3559 IFS=$as_save_IFS
3560 test -z "$as_dir" && as_dir=.
3561 for ac_prog in grep ggrep; do
3562 for ac_exec_ext in '' $ac_executable_extensions; do
3563 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3564 as_fn_executable_p "$ac_path_GREP" || continue
3565 # Check for GNU ac_path_GREP and select it if it is found.
3566 # Check for GNU $ac_path_GREP
3567 case `"$ac_path_GREP" --version 2>&1` in
3568 *GNU*)
3569 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3571 ac_count=0
3572 $as_echo_n 0123456789 >"conftest.in"
3573 while :
3575 cat "conftest.in" "conftest.in" >"conftest.tmp"
3576 mv "conftest.tmp" "conftest.in"
3577 cp "conftest.in" "conftest.nl"
3578 $as_echo 'GREP' >> "conftest.nl"
3579 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3580 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3581 as_fn_arith $ac_count + 1 && ac_count=$as_val
3582 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3583 # Best one so far, save it but keep looking for a better one
3584 ac_cv_path_GREP="$ac_path_GREP"
3585 ac_path_GREP_max=$ac_count
3587 # 10*(2^10) chars as input seems more than enough
3588 test $ac_count -gt 10 && break
3589 done
3590 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3591 esac
3593 $ac_path_GREP_found && break 3
3594 done
3595 done
3596 done
3597 IFS=$as_save_IFS
3598 if test -z "$ac_cv_path_GREP"; then
3599 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3601 else
3602 ac_cv_path_GREP=$GREP
3606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3607 $as_echo "$ac_cv_path_GREP" >&6; }
3608 GREP="$ac_cv_path_GREP"
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3612 $as_echo_n "checking for egrep... " >&6; }
3613 if ${ac_cv_path_EGREP+:} false; then :
3614 $as_echo_n "(cached) " >&6
3615 else
3616 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3617 then ac_cv_path_EGREP="$GREP -E"
3618 else
3619 if test -z "$EGREP"; then
3620 ac_path_EGREP_found=false
3621 # Loop through the user's path and test for each of PROGNAME-LIST
3622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3623 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3625 IFS=$as_save_IFS
3626 test -z "$as_dir" && as_dir=.
3627 for ac_prog in egrep; do
3628 for ac_exec_ext in '' $ac_executable_extensions; do
3629 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3630 as_fn_executable_p "$ac_path_EGREP" || continue
3631 # Check for GNU ac_path_EGREP and select it if it is found.
3632 # Check for GNU $ac_path_EGREP
3633 case `"$ac_path_EGREP" --version 2>&1` in
3634 *GNU*)
3635 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3637 ac_count=0
3638 $as_echo_n 0123456789 >"conftest.in"
3639 while :
3641 cat "conftest.in" "conftest.in" >"conftest.tmp"
3642 mv "conftest.tmp" "conftest.in"
3643 cp "conftest.in" "conftest.nl"
3644 $as_echo 'EGREP' >> "conftest.nl"
3645 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3646 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3647 as_fn_arith $ac_count + 1 && ac_count=$as_val
3648 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3649 # Best one so far, save it but keep looking for a better one
3650 ac_cv_path_EGREP="$ac_path_EGREP"
3651 ac_path_EGREP_max=$ac_count
3653 # 10*(2^10) chars as input seems more than enough
3654 test $ac_count -gt 10 && break
3655 done
3656 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3657 esac
3659 $ac_path_EGREP_found && break 3
3660 done
3661 done
3662 done
3663 IFS=$as_save_IFS
3664 if test -z "$ac_cv_path_EGREP"; then
3665 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3667 else
3668 ac_cv_path_EGREP=$EGREP
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3674 $as_echo "$ac_cv_path_EGREP" >&6; }
3675 EGREP="$ac_cv_path_EGREP"
3678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3679 $as_echo_n "checking for ANSI C header files... " >&6; }
3680 if ${ac_cv_header_stdc+:} false; then :
3681 $as_echo_n "(cached) " >&6
3682 else
3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3684 /* end confdefs.h. */
3685 #include <stdlib.h>
3686 #include <stdarg.h>
3687 #include <string.h>
3688 #include <float.h>
3691 main ()
3695 return 0;
3697 _ACEOF
3698 if ac_fn_c_try_compile "$LINENO"; then :
3699 ac_cv_header_stdc=yes
3700 else
3701 ac_cv_header_stdc=no
3703 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3705 if test $ac_cv_header_stdc = yes; then
3706 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3709 #include <string.h>
3711 _ACEOF
3712 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3713 $EGREP "memchr" >/dev/null 2>&1; then :
3715 else
3716 ac_cv_header_stdc=no
3718 rm -f conftest*
3722 if test $ac_cv_header_stdc = yes; then
3723 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3725 /* end confdefs.h. */
3726 #include <stdlib.h>
3728 _ACEOF
3729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3730 $EGREP "free" >/dev/null 2>&1; then :
3732 else
3733 ac_cv_header_stdc=no
3735 rm -f conftest*
3739 if test $ac_cv_header_stdc = yes; then
3740 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3741 if test "$cross_compiling" = yes; then :
3743 else
3744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3745 /* end confdefs.h. */
3746 #include <ctype.h>
3747 #include <stdlib.h>
3748 #if ((' ' & 0x0FF) == 0x020)
3749 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3750 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3751 #else
3752 # define ISLOWER(c) \
3753 (('a' <= (c) && (c) <= 'i') \
3754 || ('j' <= (c) && (c) <= 'r') \
3755 || ('s' <= (c) && (c) <= 'z'))
3756 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3757 #endif
3759 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3761 main ()
3763 int i;
3764 for (i = 0; i < 256; i++)
3765 if (XOR (islower (i), ISLOWER (i))
3766 || toupper (i) != TOUPPER (i))
3767 return 2;
3768 return 0;
3770 _ACEOF
3771 if ac_fn_c_try_run "$LINENO"; then :
3773 else
3774 ac_cv_header_stdc=no
3776 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3777 conftest.$ac_objext conftest.beam conftest.$ac_ext
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3783 $as_echo "$ac_cv_header_stdc" >&6; }
3784 if test $ac_cv_header_stdc = yes; then
3786 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3790 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3791 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3792 inttypes.h stdint.h unistd.h
3793 do :
3794 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3795 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3797 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3798 cat >>confdefs.h <<_ACEOF
3799 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3800 _ACEOF
3804 done
3808 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3809 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3810 MINIX=yes
3811 else
3812 MINIX=
3816 if test "$MINIX" = yes; then
3818 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3821 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3824 $as_echo "#define _MINIX 1" >>confdefs.h
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3830 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3831 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3832 $as_echo_n "(cached) " >&6
3833 else
3834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3835 /* end confdefs.h. */
3837 # define __EXTENSIONS__ 1
3838 $ac_includes_default
3840 main ()
3844 return 0;
3846 _ACEOF
3847 if ac_fn_c_try_compile "$LINENO"; then :
3848 ac_cv_safe_to_define___extensions__=yes
3849 else
3850 ac_cv_safe_to_define___extensions__=no
3852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3855 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3856 test $ac_cv_safe_to_define___extensions__ = yes &&
3857 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3859 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3861 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3863 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3865 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3869 # Do not delete or change the following two lines. For why, see
3870 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
3871 # Make sure we can run config.sub.
3872 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3873 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3876 $as_echo_n "checking build system type... " >&6; }
3877 if ${ac_cv_build+:} false; then :
3878 $as_echo_n "(cached) " >&6
3879 else
3880 ac_build_alias=$build_alias
3881 test "x$ac_build_alias" = x &&
3882 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3883 test "x$ac_build_alias" = x &&
3884 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3885 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3886 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3890 $as_echo "$ac_cv_build" >&6; }
3891 case $ac_cv_build in
3892 *-*-*) ;;
3893 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3894 esac
3895 build=$ac_cv_build
3896 ac_save_IFS=$IFS; IFS='-'
3897 set x $ac_cv_build
3898 shift
3899 build_cpu=$1
3900 build_vendor=$2
3901 shift; shift
3902 # Remember, the first character of IFS is used to create $*,
3903 # except with old shells:
3904 build_os=$*
3905 IFS=$ac_save_IFS
3906 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3910 $as_echo_n "checking host system type... " >&6; }
3911 if ${ac_cv_host+:} false; then :
3912 $as_echo_n "(cached) " >&6
3913 else
3914 if test "x$host_alias" = x; then
3915 ac_cv_host=$ac_cv_build
3916 else
3917 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3918 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3923 $as_echo "$ac_cv_host" >&6; }
3924 case $ac_cv_host in
3925 *-*-*) ;;
3926 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3927 esac
3928 host=$ac_cv_host
3929 ac_save_IFS=$IFS; IFS='-'
3930 set x $ac_cv_host
3931 shift
3932 host_cpu=$1
3933 host_vendor=$2
3934 shift; shift
3935 # Remember, the first character of IFS is used to create $*,
3936 # except with old shells:
3937 host_os=$*
3938 IFS=$ac_save_IFS
3939 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3943 $as_echo_n "checking target system type... " >&6; }
3944 if ${ac_cv_target+:} false; then :
3945 $as_echo_n "(cached) " >&6
3946 else
3947 if test "x$target_alias" = x; then
3948 ac_cv_target=$ac_cv_host
3949 else
3950 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3951 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3956 $as_echo "$ac_cv_target" >&6; }
3957 case $ac_cv_target in
3958 *-*-*) ;;
3959 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3960 esac
3961 target=$ac_cv_target
3962 ac_save_IFS=$IFS; IFS='-'
3963 set x $ac_cv_target
3964 shift
3965 target_cpu=$1
3966 target_vendor=$2
3967 shift; shift
3968 # Remember, the first character of IFS is used to create $*,
3969 # except with old shells:
3970 target_os=$*
3971 IFS=$ac_save_IFS
3972 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3975 # The aliases save the names the user supplied, while $host etc.
3976 # will get canonicalized.
3977 test -n "$target_alias" &&
3978 test "$program_prefix$program_suffix$program_transform_name" = \
3979 NONENONEs,x,x, &&
3980 program_prefix=${target_alias}-
3982 target_alias=${target_alias-$host_alias}
3985 if test "$build" != "$host"; then
3986 # We are being configured with some form of cross compiler.
3987 GLIBCXX_IS_NATIVE=false
3988 case "$host","$target" in
3989 # Darwin crosses can use the host system's libraries and headers,
3990 # because of the fat library support. Of course, it must be the
3991 # same version of Darwin on both sides. Allow the user to
3992 # just say --target=foo-darwin without a version number to mean
3993 # "the version on this system".
3994 *-*-darwin*,*-*-darwin*)
3995 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
3996 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
3997 if test $hostos = $targetos || test $targetos = darwin ; then
3998 GLIBCXX_IS_NATIVE=true
4005 esac
4006 else
4007 GLIBCXX_IS_NATIVE=true
4010 # Runs configure.host, and assorted other critical bits. Sets
4011 # up critical shell variables.
4012 GLIBCXX_CONFIGURE
4014 # For gettimeofday support.
4015 GLIBCXX_CHECK_GETTIMEOFDAY
4017 # For clock_gettime, nanosleep and sched_yield support.
4018 GLIBCXX_ENABLE_LIBSTDCXX_TIME
4021 am__api_version='1.15'
4023 # Find a good install program. We prefer a C program (faster),
4024 # so one script is as good as another. But avoid the broken or
4025 # incompatible versions:
4026 # SysV /etc/install, /usr/sbin/install
4027 # SunOS /usr/etc/install
4028 # IRIX /sbin/install
4029 # AIX /bin/install
4030 # AmigaOS /C/install, which installs bootblocks on floppy discs
4031 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4032 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4033 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4034 # OS/2's system install, which has a completely different semantic
4035 # ./install, which can be erroneously created by make from ./install.sh.
4036 # Reject install programs that cannot install multiple files.
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4038 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4039 if test -z "$INSTALL"; then
4040 if ${ac_cv_path_install+:} false; then :
4041 $as_echo_n "(cached) " >&6
4042 else
4043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4044 for as_dir in $PATH
4046 IFS=$as_save_IFS
4047 test -z "$as_dir" && as_dir=.
4048 # Account for people who put trailing slashes in PATH elements.
4049 case $as_dir/ in #((
4050 ./ | .// | /[cC]/* | \
4051 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4052 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4053 /usr/ucb/* ) ;;
4055 # OSF1 and SCO ODT 3.0 have their own names for install.
4056 # Don't use installbsd from OSF since it installs stuff as root
4057 # by default.
4058 for ac_prog in ginstall scoinst install; do
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4061 if test $ac_prog = install &&
4062 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4063 # AIX install. It has an incompatible calling convention.
4065 elif test $ac_prog = install &&
4066 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4067 # program-specific install script used by HP pwplus--don't use.
4069 else
4070 rm -rf conftest.one conftest.two conftest.dir
4071 echo one > conftest.one
4072 echo two > conftest.two
4073 mkdir conftest.dir
4074 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4075 test -s conftest.one && test -s conftest.two &&
4076 test -s conftest.dir/conftest.one &&
4077 test -s conftest.dir/conftest.two
4078 then
4079 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4080 break 3
4084 done
4085 done
4087 esac
4089 done
4090 IFS=$as_save_IFS
4092 rm -rf conftest.one conftest.two conftest.dir
4095 if test "${ac_cv_path_install+set}" = set; then
4096 INSTALL=$ac_cv_path_install
4097 else
4098 # As a last resort, use the slow shell script. Don't cache a
4099 # value for INSTALL within a source directory, because that will
4100 # break other packages using the cache if that directory is
4101 # removed, or if the value is a relative name.
4102 INSTALL=$ac_install_sh
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4106 $as_echo "$INSTALL" >&6; }
4108 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4109 # It thinks the first close brace ends the variable substitution.
4110 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4112 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4114 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4117 $as_echo_n "checking whether build environment is sane... " >&6; }
4118 # Reject unsafe characters in $srcdir or the absolute working directory
4119 # name. Accept space and tab only in the latter.
4120 am_lf='
4122 case `pwd` in
4123 *[\\\"\#\$\&\'\`$am_lf]*)
4124 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4125 esac
4126 case $srcdir in
4127 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4128 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4129 esac
4131 # Do 'set' in a subshell so we don't clobber the current shell's
4132 # arguments. Must try -L first in case configure is actually a
4133 # symlink; some systems play weird games with the mod time of symlinks
4134 # (eg FreeBSD returns the mod time of the symlink's containing
4135 # directory).
4136 if (
4137 am_has_slept=no
4138 for am_try in 1 2; do
4139 echo "timestamp, slept: $am_has_slept" > conftest.file
4140 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4141 if test "$*" = "X"; then
4142 # -L didn't work.
4143 set X `ls -t "$srcdir/configure" conftest.file`
4145 if test "$*" != "X $srcdir/configure conftest.file" \
4146 && test "$*" != "X conftest.file $srcdir/configure"; then
4148 # If neither matched, then we have a broken ls. This can happen
4149 # if, for instance, CONFIG_SHELL is bash and it inherits a
4150 # broken ls alias from the environment. This has actually
4151 # happened. Such a system could not be considered "sane".
4152 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4153 alias in your environment" "$LINENO" 5
4155 if test "$2" = conftest.file || test $am_try -eq 2; then
4156 break
4158 # Just in case.
4159 sleep 1
4160 am_has_slept=yes
4161 done
4162 test "$2" = conftest.file
4164 then
4165 # Ok.
4167 else
4168 as_fn_error $? "newly created file is older than distributed files!
4169 Check your system clock" "$LINENO" 5
4171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4172 $as_echo "yes" >&6; }
4173 # If we didn't sleep, we still need to ensure time stamps of config.status and
4174 # generated files are strictly newer.
4175 am_sleep_pid=
4176 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4177 ( sleep 1 ) &
4178 am_sleep_pid=$!
4181 rm -f conftest.file
4183 test "$program_prefix" != NONE &&
4184 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4185 # Use a double $ so make ignores it.
4186 test "$program_suffix" != NONE &&
4187 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4188 # Double any \ or $.
4189 # By default was `s,x,x', remove it if useless.
4190 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4191 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4193 if test x"${MISSING+set}" != xset; then
4194 case $am_aux_dir in
4195 *\ * | *\ *)
4196 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4198 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4199 esac
4201 # Use eval to expand $SHELL
4202 if eval "$MISSING --is-lightweight"; then
4203 am_missing_run="$MISSING "
4204 else
4205 am_missing_run=
4206 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4207 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4210 if test x"${install_sh+set}" != xset; then
4211 case $am_aux_dir in
4212 *\ * | *\ *)
4213 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4215 install_sh="\${SHELL} $am_aux_dir/install-sh"
4216 esac
4219 # Installed binaries are usually stripped using 'strip' when the user
4220 # run "make install-strip". However 'strip' might not be the right
4221 # tool to use in cross-compilation environments, therefore Automake
4222 # will honor the 'STRIP' environment variable to overrule this program.
4223 if test "$cross_compiling" != no; then
4224 if test -n "$ac_tool_prefix"; then
4225 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4226 set dummy ${ac_tool_prefix}strip; ac_word=$2
4227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4228 $as_echo_n "checking for $ac_word... " >&6; }
4229 if ${ac_cv_prog_STRIP+:} false; then :
4230 $as_echo_n "(cached) " >&6
4231 else
4232 if test -n "$STRIP"; then
4233 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4234 else
4235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4236 for as_dir in $PATH
4238 IFS=$as_save_IFS
4239 test -z "$as_dir" && as_dir=.
4240 for ac_exec_ext in '' $ac_executable_extensions; do
4241 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4242 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4243 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4244 break 2
4246 done
4247 done
4248 IFS=$as_save_IFS
4252 STRIP=$ac_cv_prog_STRIP
4253 if test -n "$STRIP"; then
4254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4255 $as_echo "$STRIP" >&6; }
4256 else
4257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4258 $as_echo "no" >&6; }
4263 if test -z "$ac_cv_prog_STRIP"; then
4264 ac_ct_STRIP=$STRIP
4265 # Extract the first word of "strip", so it can be a program name with args.
4266 set dummy strip; ac_word=$2
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4268 $as_echo_n "checking for $ac_word... " >&6; }
4269 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4270 $as_echo_n "(cached) " >&6
4271 else
4272 if test -n "$ac_ct_STRIP"; then
4273 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4274 else
4275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4276 for as_dir in $PATH
4278 IFS=$as_save_IFS
4279 test -z "$as_dir" && as_dir=.
4280 for ac_exec_ext in '' $ac_executable_extensions; do
4281 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4282 ac_cv_prog_ac_ct_STRIP="strip"
4283 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4284 break 2
4286 done
4287 done
4288 IFS=$as_save_IFS
4292 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4293 if test -n "$ac_ct_STRIP"; then
4294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4295 $as_echo "$ac_ct_STRIP" >&6; }
4296 else
4297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4298 $as_echo "no" >&6; }
4301 if test "x$ac_ct_STRIP" = x; then
4302 STRIP=":"
4303 else
4304 case $cross_compiling:$ac_tool_warned in
4305 yes:)
4306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4307 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4308 ac_tool_warned=yes ;;
4309 esac
4310 STRIP=$ac_ct_STRIP
4312 else
4313 STRIP="$ac_cv_prog_STRIP"
4317 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4320 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4321 if test -z "$MKDIR_P"; then
4322 if ${ac_cv_path_mkdir+:} false; then :
4323 $as_echo_n "(cached) " >&6
4324 else
4325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4326 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4328 IFS=$as_save_IFS
4329 test -z "$as_dir" && as_dir=.
4330 for ac_prog in mkdir gmkdir; do
4331 for ac_exec_ext in '' $ac_executable_extensions; do
4332 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4333 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4334 'mkdir (GNU coreutils) '* | \
4335 'mkdir (coreutils) '* | \
4336 'mkdir (fileutils) '4.1*)
4337 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4338 break 3;;
4339 esac
4340 done
4341 done
4342 done
4343 IFS=$as_save_IFS
4347 test -d ./--version && rmdir ./--version
4348 if test "${ac_cv_path_mkdir+set}" = set; then
4349 MKDIR_P="$ac_cv_path_mkdir -p"
4350 else
4351 # As a last resort, use the slow shell script. Don't cache a
4352 # value for MKDIR_P within a source directory, because that will
4353 # break other packages using the cache if that directory is
4354 # removed, or if the value is a relative name.
4355 MKDIR_P="$ac_install_sh -d"
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4359 $as_echo "$MKDIR_P" >&6; }
4361 for ac_prog in gawk mawk nawk awk
4363 # Extract the first word of "$ac_prog", so it can be a program name with args.
4364 set dummy $ac_prog; ac_word=$2
4365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4366 $as_echo_n "checking for $ac_word... " >&6; }
4367 if ${ac_cv_prog_AWK+:} false; then :
4368 $as_echo_n "(cached) " >&6
4369 else
4370 if test -n "$AWK"; then
4371 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4372 else
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
4378 for ac_exec_ext in '' $ac_executable_extensions; do
4379 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4380 ac_cv_prog_AWK="$ac_prog"
4381 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4382 break 2
4384 done
4385 done
4386 IFS=$as_save_IFS
4390 AWK=$ac_cv_prog_AWK
4391 if test -n "$AWK"; then
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4393 $as_echo "$AWK" >&6; }
4394 else
4395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4396 $as_echo "no" >&6; }
4400 test -n "$AWK" && break
4401 done
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4404 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4405 set x ${MAKE-make}
4406 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4407 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 cat >conftest.make <<\_ACEOF
4411 SHELL = /bin/sh
4412 all:
4413 @echo '@@@%%%=$(MAKE)=@@@%%%'
4414 _ACEOF
4415 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4416 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4417 *@@@%%%=?*=@@@%%%*)
4418 eval ac_cv_prog_make_${ac_make}_set=yes;;
4420 eval ac_cv_prog_make_${ac_make}_set=no;;
4421 esac
4422 rm -f conftest.make
4424 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4426 $as_echo "yes" >&6; }
4427 SET_MAKE=
4428 else
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4430 $as_echo "no" >&6; }
4431 SET_MAKE="MAKE=${MAKE-make}"
4434 rm -rf .tst 2>/dev/null
4435 mkdir .tst 2>/dev/null
4436 if test -d .tst; then
4437 am__leading_dot=.
4438 else
4439 am__leading_dot=_
4441 rmdir .tst 2>/dev/null
4443 DEPDIR="${am__leading_dot}deps"
4445 ac_config_commands="$ac_config_commands depfiles"
4448 am_make=${MAKE-make}
4449 cat > confinc << 'END'
4450 am__doit:
4451 @echo this is the am__doit target
4452 .PHONY: am__doit
4454 # If we don't find an include directive, just comment out the code.
4455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4456 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4457 am__include="#"
4458 am__quote=
4459 _am_result=none
4460 # First try GNU make style include.
4461 echo "include confinc" > confmf
4462 # Ignore all kinds of additional output from 'make'.
4463 case `$am_make -s -f confmf 2> /dev/null` in #(
4464 *the\ am__doit\ target*)
4465 am__include=include
4466 am__quote=
4467 _am_result=GNU
4469 esac
4470 # Now try BSD make style include.
4471 if test "$am__include" = "#"; then
4472 echo '.include "confinc"' > confmf
4473 case `$am_make -s -f confmf 2> /dev/null` in #(
4474 *the\ am__doit\ target*)
4475 am__include=.include
4476 am__quote="\""
4477 _am_result=BSD
4479 esac
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4484 $as_echo "$_am_result" >&6; }
4485 rm -f confinc confmf
4487 # Check whether --enable-dependency-tracking was given.
4488 if test "${enable_dependency_tracking+set}" = set; then :
4489 enableval=$enable_dependency_tracking;
4492 if test "x$enable_dependency_tracking" != xno; then
4493 am_depcomp="$ac_aux_dir/depcomp"
4494 AMDEPBACKSLASH='\'
4495 am__nodep='_no'
4497 if test "x$enable_dependency_tracking" != xno; then
4498 AMDEP_TRUE=
4499 AMDEP_FALSE='#'
4500 else
4501 AMDEP_TRUE='#'
4502 AMDEP_FALSE=
4506 # Check whether --enable-silent-rules was given.
4507 if test "${enable_silent_rules+set}" = set; then :
4508 enableval=$enable_silent_rules;
4511 case $enable_silent_rules in # (((
4512 yes) AM_DEFAULT_VERBOSITY=0;;
4513 no) AM_DEFAULT_VERBOSITY=1;;
4514 *) AM_DEFAULT_VERBOSITY=1;;
4515 esac
4516 am_make=${MAKE-make}
4517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4518 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4519 if ${am_cv_make_support_nested_variables+:} false; then :
4520 $as_echo_n "(cached) " >&6
4521 else
4522 if $as_echo 'TRUE=$(BAR$(V))
4523 BAR0=false
4524 BAR1=true
4526 am__doit:
4527 @$(TRUE)
4528 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4529 am_cv_make_support_nested_variables=yes
4530 else
4531 am_cv_make_support_nested_variables=no
4534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4535 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4536 if test $am_cv_make_support_nested_variables = yes; then
4537 AM_V='$(V)'
4538 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4539 else
4540 AM_V=$AM_DEFAULT_VERBOSITY
4541 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4543 AM_BACKSLASH='\'
4545 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4546 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4547 # is not polluted with repeated "-I."
4548 am__isrc=' -I$(srcdir)'
4549 # test to see if srcdir already configured
4550 if test -f $srcdir/config.status; then
4551 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4555 # test whether we have cygpath
4556 if test -z "$CYGPATH_W"; then
4557 if (cygpath --version) >/dev/null 2>/dev/null; then
4558 CYGPATH_W='cygpath -w'
4559 else
4560 CYGPATH_W=echo
4565 # Define the identity of the package.
4566 PACKAGE='libgm2'
4567 VERSION='version-unused'
4570 # Some tools Automake needs.
4572 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4575 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4578 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4581 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4584 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4586 # For better backward compatibility. To be removed once Automake 1.9.x
4587 # dies out for good. For more background, see:
4588 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4589 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4590 mkdir_p='$(MKDIR_P)'
4592 # We need awk for the "check" target (and possibly the TAP driver). The
4593 # system "awk" is bad on some platforms.
4594 # Always define AMTAR for backward compatibility. Yes, it's still used
4595 # in the wild :-( We should find a proper way to deprecate it ...
4596 AMTAR='$${TAR-tar}'
4599 # We'll loop over all known methods to create a tar archive until one works.
4600 _am_tools='gnutar pax cpio none'
4602 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4608 depcc="$CC" am_compiler_list=
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4611 $as_echo_n "checking dependency style of $depcc... " >&6; }
4612 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4616 # We make a subdir and do the tests there. Otherwise we can end up
4617 # making bogus files that we don't know about and never remove. For
4618 # instance it was reported that on HP-UX the gcc test will end up
4619 # making a dummy file named 'D' -- because '-MD' means "put the output
4620 # in D".
4621 rm -rf conftest.dir
4622 mkdir conftest.dir
4623 # Copy depcomp to subdir because otherwise we won't find it if we're
4624 # using a relative directory.
4625 cp "$am_depcomp" conftest.dir
4626 cd conftest.dir
4627 # We will build objects and dependencies in a subdirectory because
4628 # it helps to detect inapplicable dependency modes. For instance
4629 # both Tru64's cc and ICC support -MD to output dependencies as a
4630 # side effect of compilation, but ICC will put the dependencies in
4631 # the current directory while Tru64 will put them in the object
4632 # directory.
4633 mkdir sub
4635 am_cv_CC_dependencies_compiler_type=none
4636 if test "$am_compiler_list" = ""; then
4637 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4639 am__universal=false
4640 case " $depcc " in #(
4641 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4642 esac
4644 for depmode in $am_compiler_list; do
4645 # Setup a source with many dependencies, because some compilers
4646 # like to wrap large dependency lists on column 80 (with \), and
4647 # we should not choose a depcomp mode which is confused by this.
4649 # We need to recreate these files for each test, as the compiler may
4650 # overwrite some of them when testing with obscure command lines.
4651 # This happens at least with the AIX C compiler.
4652 : > sub/conftest.c
4653 for i in 1 2 3 4 5 6; do
4654 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4655 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4656 # Solaris 10 /bin/sh.
4657 echo '/* dummy */' > sub/conftst$i.h
4658 done
4659 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4661 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4662 # mode. It turns out that the SunPro C++ compiler does not properly
4663 # handle '-M -o', and we need to detect this. Also, some Intel
4664 # versions had trouble with output in subdirs.
4665 am__obj=sub/conftest.${OBJEXT-o}
4666 am__minus_obj="-o $am__obj"
4667 case $depmode in
4668 gcc)
4669 # This depmode causes a compiler race in universal mode.
4670 test "$am__universal" = false || continue
4672 nosideeffect)
4673 # After this tag, mechanisms are not by side-effect, so they'll
4674 # only be used when explicitly requested.
4675 if test "x$enable_dependency_tracking" = xyes; then
4676 continue
4677 else
4678 break
4681 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4682 # This compiler won't grok '-c -o', but also, the minuso test has
4683 # not run yet. These depmodes are late enough in the game, and
4684 # so weak that their functioning should not be impacted.
4685 am__obj=conftest.${OBJEXT-o}
4686 am__minus_obj=
4688 none) break ;;
4689 esac
4690 if depmode=$depmode \
4691 source=sub/conftest.c object=$am__obj \
4692 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4693 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4694 >/dev/null 2>conftest.err &&
4695 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4696 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4697 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4698 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4699 # icc doesn't choke on unknown options, it will just issue warnings
4700 # or remarks (even with -Werror). So we grep stderr for any message
4701 # that says an option was ignored or not supported.
4702 # When given -MP, icc 7.0 and 7.1 complain thusly:
4703 # icc: Command line warning: ignoring option '-M'; no argument required
4704 # The diagnosis changed in icc 8.0:
4705 # icc: Command line remark: option '-MP' not supported
4706 if (grep 'ignoring option' conftest.err ||
4707 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4708 am_cv_CC_dependencies_compiler_type=$depmode
4709 break
4712 done
4714 cd ..
4715 rm -rf conftest.dir
4716 else
4717 am_cv_CC_dependencies_compiler_type=none
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4722 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4723 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4726 test "x$enable_dependency_tracking" != xno \
4727 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4728 am__fastdepCC_TRUE=
4729 am__fastdepCC_FALSE='#'
4730 else
4731 am__fastdepCC_TRUE='#'
4732 am__fastdepCC_FALSE=
4737 # POSIX will say in a future version that running "rm -f" with no argument
4738 # is OK; and we want to be able to make that assumption in our Makefile
4739 # recipes. So use an aggressive probe to check that the usage we want is
4740 # actually supported "in the wild" to an acceptable degree.
4741 # See automake bug#10828.
4742 # To make any issue more visible, cause the running configure to be aborted
4743 # by default if the 'rm' program in use doesn't match our expectations; the
4744 # user can still override this though.
4745 if rm -f && rm -fr && rm -rf; then : OK; else
4746 cat >&2 <<'END'
4747 Oops!
4749 Your 'rm' program seems unable to run without file operands specified
4750 on the command line, even when the '-f' option is present. This is contrary
4751 to the behaviour of most rm programs out there, and not conforming with
4752 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4754 Please tell bug-automake@gnu.org about your system, including the value
4755 of your $PATH and any error possibly output before this message. This
4756 can help us improve future automake versions.
4759 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4760 echo 'Configuration will proceed anyway, since you have set the' >&2
4761 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4762 echo >&2
4763 else
4764 cat >&2 <<'END'
4765 Aborting the configuration process, to ensure you take notice of the issue.
4767 You can download and install GNU coreutils to get an 'rm' implementation
4768 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4770 If you want to complete the configuration process using your problematic
4771 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4772 to "yes", and re-run configure.
4775 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4784 # Check whether --with-cross-host was given.
4785 if test "${with_cross_host+set}" = set; then :
4786 withval=$with_cross_host;
4790 # Checks for header files.
4791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4792 $as_echo_n "checking for ANSI C header files... " >&6; }
4793 if ${ac_cv_header_stdc+:} false; then :
4794 $as_echo_n "(cached) " >&6
4795 else
4796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4797 /* end confdefs.h. */
4798 #include <stdlib.h>
4799 #include <stdarg.h>
4800 #include <string.h>
4801 #include <float.h>
4804 main ()
4808 return 0;
4810 _ACEOF
4811 if ac_fn_c_try_compile "$LINENO"; then :
4812 ac_cv_header_stdc=yes
4813 else
4814 ac_cv_header_stdc=no
4816 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4818 if test $ac_cv_header_stdc = yes; then
4819 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4821 /* end confdefs.h. */
4822 #include <string.h>
4824 _ACEOF
4825 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4826 $EGREP "memchr" >/dev/null 2>&1; then :
4828 else
4829 ac_cv_header_stdc=no
4831 rm -f conftest*
4835 if test $ac_cv_header_stdc = yes; then
4836 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4838 /* end confdefs.h. */
4839 #include <stdlib.h>
4841 _ACEOF
4842 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4843 $EGREP "free" >/dev/null 2>&1; then :
4845 else
4846 ac_cv_header_stdc=no
4848 rm -f conftest*
4852 if test $ac_cv_header_stdc = yes; then
4853 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4854 if test "$cross_compiling" = yes; then :
4856 else
4857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4858 /* end confdefs.h. */
4859 #include <ctype.h>
4860 #include <stdlib.h>
4861 #if ((' ' & 0x0FF) == 0x020)
4862 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4863 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4864 #else
4865 # define ISLOWER(c) \
4866 (('a' <= (c) && (c) <= 'i') \
4867 || ('j' <= (c) && (c) <= 'r') \
4868 || ('s' <= (c) && (c) <= 'z'))
4869 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4870 #endif
4872 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4874 main ()
4876 int i;
4877 for (i = 0; i < 256; i++)
4878 if (XOR (islower (i), ISLOWER (i))
4879 || toupper (i) != TOUPPER (i))
4880 return 2;
4881 return 0;
4883 _ACEOF
4884 if ac_fn_c_try_run "$LINENO"; then :
4886 else
4887 ac_cv_header_stdc=no
4889 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4890 conftest.$ac_objext conftest.beam conftest.$ac_ext
4895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4896 $as_echo "$ac_cv_header_stdc" >&6; }
4897 if test $ac_cv_header_stdc = yes; then
4899 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4904 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4905 if ${ac_cv_header_sys_wait_h+:} false; then :
4906 $as_echo_n "(cached) " >&6
4907 else
4908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4909 /* end confdefs.h. */
4910 #include <sys/types.h>
4911 #include <sys/wait.h>
4912 #ifndef WEXITSTATUS
4913 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4914 #endif
4915 #ifndef WIFEXITED
4916 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4917 #endif
4920 main ()
4922 int s;
4923 wait (&s);
4924 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4926 return 0;
4928 _ACEOF
4929 if ac_fn_c_try_compile "$LINENO"; then :
4930 ac_cv_header_sys_wait_h=yes
4931 else
4932 ac_cv_header_sys_wait_h=no
4934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4937 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4938 if test $ac_cv_header_sys_wait_h = yes; then
4940 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4944 ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
4945 if test "x$ac_cv_header_math_h" = xyes; then :
4947 $as_echo "#define HAVE_MATH_H 1" >>confdefs.h
4953 for ac_header in getopt.h limits.h stddef.h string.h strings.h \
4954 stdlib.h time.h \
4955 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
4956 sys/resource.h sys/param.h sys/times.h sys/stat.h \
4957 sys/socket.h \
4958 sys/wait.h sys/ioctl.h errno.h sys/errno.h \
4959 pwd.h direct.h dirent.h signal.h malloc.h langinfo.h \
4960 pthread.h stdarg.h stdio.h sys/types.h termios.h \
4961 netinet/in.h netdb.h sys/uio.h sys/stat.h wchar.h
4962 do :
4963 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4964 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4965 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4966 cat >>confdefs.h <<_ACEOF
4967 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4968 _ACEOF
4972 done
4976 case ${build_alias} in
4977 "") build_noncanonical=${build} ;;
4978 *) build_noncanonical=${build_alias} ;;
4979 esac
4981 case ${host_alias} in
4982 "") host_noncanonical=${build_noncanonical} ;;
4983 *) host_noncanonical=${host_alias} ;;
4984 esac
4988 case ${target_alias} in
4989 "") target_noncanonical=${host_noncanonical} ;;
4990 *) target_noncanonical=${target_alias} ;;
4991 esac
4996 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
4997 # have matching libraries, they should use host libraries: Makefile.tpl
4998 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
4999 # However, they still use the build modules, because the corresponding
5000 # host modules (e.g. bison) are only built for the host when bootstrap
5001 # finishes. So:
5002 # - build_subdir is where we find build modules, and never changes.
5003 # - build_libsubdir is where we find build libraries, and can be overridden.
5005 # Prefix 'build-' so this never conflicts with target_subdir.
5006 build_subdir="build-${build_noncanonical}"
5008 # Check whether --with-build-libsubdir was given.
5009 if test "${with_build_libsubdir+set}" = set; then :
5010 withval=$with_build_libsubdir; build_libsubdir="$withval"
5011 else
5012 build_libsubdir="$build_subdir"
5015 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
5016 if ( test $srcdir = . && test -d gcc ) \
5017 || test -d $srcdir/../host-${host_noncanonical}; then
5018 host_subdir="host-${host_noncanonical}"
5019 else
5020 host_subdir=.
5022 # No prefix.
5023 target_subdir=${target_noncanonical}
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
5027 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
5028 # Check whether --enable-version-specific-runtime-libs was given.
5029 if test "${enable_version_specific_runtime_libs+set}" = set; then :
5030 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
5031 yes) version_specific_libs=yes ;;
5032 no) version_specific_libs=no ;;
5033 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
5034 esac
5035 else
5036 version_specific_libs=no
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
5040 $as_echo "$version_specific_libs" >&6; }
5043 # Check whether --with-slibdir was given.
5044 if test "${with_slibdir+set}" = set; then :
5045 withval=$with_slibdir; slibdir="$with_slibdir"
5046 else
5047 if test "${version_specific_libs}" = yes; then
5048 slibdir='$(libsubdir)'
5049 elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
5050 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
5051 else
5052 slibdir='$(libdir)'
5058 # Command-line options.
5059 # Very limited version of AC_MAINTAINER_MODE.
5060 # Check whether --enable-maintainer-mode was given.
5061 if test "${enable_maintainer_mode+set}" = set; then :
5062 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
5063 yes) MAINT='' ;;
5064 no) MAINT='#' ;;
5065 *) as_fn_error $? "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
5066 esac
5067 maintainer_mode=${enableval}
5068 else
5069 MAINT='#'
5073 toolexecdir=no
5074 toolexeclibdir=no
5076 # Calculate toolexeclibdir
5077 # Also toolexecdir, though it's only used in toolexeclibdir
5078 case ${version_specific_libs} in
5079 yes)
5080 # Need the gcc compiler version to know where to install libraries
5081 # and header files if --enable-version-specific-runtime-libs option
5082 # is selected.
5083 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
5084 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5087 if test -n "$with_cross_host" &&
5088 test x"$with_cross_host" != x"no"; then
5089 # Install a library built with a cross compiler in tooldir, not libdir.
5090 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
5091 toolexeclibdir='$(toolexecdir)/lib'
5092 else
5093 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
5094 toolexeclibdir='$(libdir)'
5096 multi_os_directory=`$CC -print-multi-os-directory`
5097 case $multi_os_directory in
5098 .) ;; # Avoid trailing /.
5099 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5100 esac
5102 esac
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5112 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5113 # Check whether --enable-maintainer-mode was given.
5114 if test "${enable_maintainer_mode+set}" = set; then :
5115 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5116 else
5117 USE_MAINTAINER_MODE=no
5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5121 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5122 if test $USE_MAINTAINER_MODE = yes; then
5123 MAINTAINER_MODE_TRUE=
5124 MAINTAINER_MODE_FALSE='#'
5125 else
5126 MAINTAINER_MODE_TRUE='#'
5127 MAINTAINER_MODE_FALSE=
5130 MAINT=$MAINTAINER_MODE_TRUE
5134 # Check the compiler.
5135 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
5136 # We must force CC to /not/ be precious variables; otherwise
5137 # the wrong, non-multilib-adjusted value will be used in multilibs.
5138 # As a side effect, we have to subst CFLAGS ourselves.
5142 ac_ext=c
5143 ac_cpp='$CPP $CPPFLAGS'
5144 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5145 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5146 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5147 if test -n "$ac_tool_prefix"; then
5148 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5149 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5151 $as_echo_n "checking for $ac_word... " >&6; }
5152 if ${ac_cv_prog_CC+:} false; then :
5153 $as_echo_n "(cached) " >&6
5154 else
5155 if test -n "$CC"; then
5156 ac_cv_prog_CC="$CC" # Let the user override the test.
5157 else
5158 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5159 for as_dir in $PATH
5161 IFS=$as_save_IFS
5162 test -z "$as_dir" && as_dir=.
5163 for ac_exec_ext in '' $ac_executable_extensions; do
5164 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5165 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5166 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5167 break 2
5169 done
5170 done
5171 IFS=$as_save_IFS
5175 CC=$ac_cv_prog_CC
5176 if test -n "$CC"; then
5177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5178 $as_echo "$CC" >&6; }
5179 else
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5181 $as_echo "no" >&6; }
5186 if test -z "$ac_cv_prog_CC"; then
5187 ac_ct_CC=$CC
5188 # Extract the first word of "gcc", so it can be a program name with args.
5189 set dummy gcc; ac_word=$2
5190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5191 $as_echo_n "checking for $ac_word... " >&6; }
5192 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5193 $as_echo_n "(cached) " >&6
5194 else
5195 if test -n "$ac_ct_CC"; then
5196 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5197 else
5198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5199 for as_dir in $PATH
5201 IFS=$as_save_IFS
5202 test -z "$as_dir" && as_dir=.
5203 for ac_exec_ext in '' $ac_executable_extensions; do
5204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5205 ac_cv_prog_ac_ct_CC="gcc"
5206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5207 break 2
5209 done
5210 done
5211 IFS=$as_save_IFS
5215 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5216 if test -n "$ac_ct_CC"; then
5217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5218 $as_echo "$ac_ct_CC" >&6; }
5219 else
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5221 $as_echo "no" >&6; }
5224 if test "x$ac_ct_CC" = x; then
5225 CC=""
5226 else
5227 case $cross_compiling:$ac_tool_warned in
5228 yes:)
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5230 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5231 ac_tool_warned=yes ;;
5232 esac
5233 CC=$ac_ct_CC
5235 else
5236 CC="$ac_cv_prog_CC"
5239 if test -z "$CC"; then
5240 if test -n "$ac_tool_prefix"; then
5241 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5242 set dummy ${ac_tool_prefix}cc; ac_word=$2
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5244 $as_echo_n "checking for $ac_word... " >&6; }
5245 if ${ac_cv_prog_CC+:} false; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 if test -n "$CC"; then
5249 ac_cv_prog_CC="$CC" # Let the user override the test.
5250 else
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258 ac_cv_prog_CC="${ac_tool_prefix}cc"
5259 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5260 break 2
5262 done
5263 done
5264 IFS=$as_save_IFS
5268 CC=$ac_cv_prog_CC
5269 if test -n "$CC"; then
5270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5271 $as_echo "$CC" >&6; }
5272 else
5273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5274 $as_echo "no" >&6; }
5280 if test -z "$CC"; then
5281 # Extract the first word of "cc", so it can be a program name with args.
5282 set dummy cc; ac_word=$2
5283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5284 $as_echo_n "checking for $ac_word... " >&6; }
5285 if ${ac_cv_prog_CC+:} false; then :
5286 $as_echo_n "(cached) " >&6
5287 else
5288 if test -n "$CC"; then
5289 ac_cv_prog_CC="$CC" # Let the user override the test.
5290 else
5291 ac_prog_rejected=no
5292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5293 for as_dir in $PATH
5295 IFS=$as_save_IFS
5296 test -z "$as_dir" && as_dir=.
5297 for ac_exec_ext in '' $ac_executable_extensions; do
5298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5299 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5300 ac_prog_rejected=yes
5301 continue
5303 ac_cv_prog_CC="cc"
5304 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5305 break 2
5307 done
5308 done
5309 IFS=$as_save_IFS
5311 if test $ac_prog_rejected = yes; then
5312 # We found a bogon in the path, so make sure we never use it.
5313 set dummy $ac_cv_prog_CC
5314 shift
5315 if test $# != 0; then
5316 # We chose a different compiler from the bogus one.
5317 # However, it has the same basename, so the bogon will be chosen
5318 # first if we set CC to just the basename; use the full file name.
5319 shift
5320 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5325 CC=$ac_cv_prog_CC
5326 if test -n "$CC"; then
5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5328 $as_echo "$CC" >&6; }
5329 else
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5331 $as_echo "no" >&6; }
5336 if test -z "$CC"; then
5337 if test -n "$ac_tool_prefix"; then
5338 for ac_prog in cl.exe
5340 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5341 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5343 $as_echo_n "checking for $ac_word... " >&6; }
5344 if ${ac_cv_prog_CC+:} false; then :
5345 $as_echo_n "(cached) " >&6
5346 else
5347 if test -n "$CC"; then
5348 ac_cv_prog_CC="$CC" # Let the user override the test.
5349 else
5350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5351 for as_dir in $PATH
5353 IFS=$as_save_IFS
5354 test -z "$as_dir" && as_dir=.
5355 for ac_exec_ext in '' $ac_executable_extensions; do
5356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5357 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5359 break 2
5361 done
5362 done
5363 IFS=$as_save_IFS
5367 CC=$ac_cv_prog_CC
5368 if test -n "$CC"; then
5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5370 $as_echo "$CC" >&6; }
5371 else
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5373 $as_echo "no" >&6; }
5377 test -n "$CC" && break
5378 done
5380 if test -z "$CC"; then
5381 ac_ct_CC=$CC
5382 for ac_prog in cl.exe
5384 # Extract the first word of "$ac_prog", so it can be a program name with args.
5385 set dummy $ac_prog; ac_word=$2
5386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5387 $as_echo_n "checking for $ac_word... " >&6; }
5388 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5389 $as_echo_n "(cached) " >&6
5390 else
5391 if test -n "$ac_ct_CC"; then
5392 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5393 else
5394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5395 for as_dir in $PATH
5397 IFS=$as_save_IFS
5398 test -z "$as_dir" && as_dir=.
5399 for ac_exec_ext in '' $ac_executable_extensions; do
5400 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5401 ac_cv_prog_ac_ct_CC="$ac_prog"
5402 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5403 break 2
5405 done
5406 done
5407 IFS=$as_save_IFS
5411 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5412 if test -n "$ac_ct_CC"; then
5413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5414 $as_echo "$ac_ct_CC" >&6; }
5415 else
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5417 $as_echo "no" >&6; }
5421 test -n "$ac_ct_CC" && break
5422 done
5424 if test "x$ac_ct_CC" = x; then
5425 CC=""
5426 else
5427 case $cross_compiling:$ac_tool_warned in
5428 yes:)
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5430 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5431 ac_tool_warned=yes ;;
5432 esac
5433 CC=$ac_ct_CC
5440 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5441 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5442 as_fn_error $? "no acceptable C compiler found in \$PATH
5443 See \`config.log' for more details" "$LINENO" 5; }
5445 # Provide some information about the compiler.
5446 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5447 set X $ac_compile
5448 ac_compiler=$2
5449 for ac_option in --version -v -V -qversion; do
5450 { { ac_try="$ac_compiler $ac_option >&5"
5451 case "(($ac_try" in
5452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5453 *) ac_try_echo=$ac_try;;
5454 esac
5455 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5456 $as_echo "$ac_try_echo"; } >&5
5457 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5458 ac_status=$?
5459 if test -s conftest.err; then
5460 sed '10a\
5461 ... rest of stderr output deleted ...
5462 10q' conftest.err >conftest.er1
5463 cat conftest.er1 >&5
5465 rm -f conftest.er1 conftest.err
5466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5467 test $ac_status = 0; }
5468 done
5470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5471 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5472 if ${ac_cv_c_compiler_gnu+:} false; then :
5473 $as_echo_n "(cached) " >&6
5474 else
5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h. */
5479 main ()
5481 #ifndef __GNUC__
5482 choke me
5483 #endif
5486 return 0;
5488 _ACEOF
5489 if ac_fn_c_try_compile "$LINENO"; then :
5490 ac_compiler_gnu=yes
5491 else
5492 ac_compiler_gnu=no
5494 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5495 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5499 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5500 if test $ac_compiler_gnu = yes; then
5501 GCC=yes
5502 else
5503 GCC=
5505 ac_test_CFLAGS=${CFLAGS+set}
5506 ac_save_CFLAGS=$CFLAGS
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5508 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5509 if ${ac_cv_prog_cc_g+:} false; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 ac_save_c_werror_flag=$ac_c_werror_flag
5513 ac_c_werror_flag=yes
5514 ac_cv_prog_cc_g=no
5515 CFLAGS="-g"
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5520 main ()
5524 return 0;
5526 _ACEOF
5527 if ac_fn_c_try_compile "$LINENO"; then :
5528 ac_cv_prog_cc_g=yes
5529 else
5530 CFLAGS=""
5531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5532 /* end confdefs.h. */
5535 main ()
5539 return 0;
5541 _ACEOF
5542 if ac_fn_c_try_compile "$LINENO"; then :
5544 else
5545 ac_c_werror_flag=$ac_save_c_werror_flag
5546 CFLAGS="-g"
5547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5548 /* end confdefs.h. */
5551 main ()
5555 return 0;
5557 _ACEOF
5558 if ac_fn_c_try_compile "$LINENO"; then :
5559 ac_cv_prog_cc_g=yes
5561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5566 ac_c_werror_flag=$ac_save_c_werror_flag
5568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5569 $as_echo "$ac_cv_prog_cc_g" >&6; }
5570 if test "$ac_test_CFLAGS" = set; then
5571 CFLAGS=$ac_save_CFLAGS
5572 elif test $ac_cv_prog_cc_g = yes; then
5573 if test "$GCC" = yes; then
5574 CFLAGS="-g -O2"
5575 else
5576 CFLAGS="-g"
5578 else
5579 if test "$GCC" = yes; then
5580 CFLAGS="-O2"
5581 else
5582 CFLAGS=
5585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5586 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5587 if ${ac_cv_prog_cc_c89+:} false; then :
5588 $as_echo_n "(cached) " >&6
5589 else
5590 ac_cv_prog_cc_c89=no
5591 ac_save_CC=$CC
5592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5593 /* end confdefs.h. */
5594 #include <stdarg.h>
5595 #include <stdio.h>
5596 struct stat;
5597 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5598 struct buf { int x; };
5599 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5600 static char *e (p, i)
5601 char **p;
5602 int i;
5604 return p[i];
5606 static char *f (char * (*g) (char **, int), char **p, ...)
5608 char *s;
5609 va_list v;
5610 va_start (v,p);
5611 s = g (p, va_arg (v,int));
5612 va_end (v);
5613 return s;
5616 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5617 function prototypes and stuff, but not '\xHH' hex character constants.
5618 These don't provoke an error unfortunately, instead are silently treated
5619 as 'x'. The following induces an error, until -std is added to get
5620 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5621 array size at least. It's necessary to write '\x00'==0 to get something
5622 that's true only with -std. */
5623 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5625 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5626 inside strings and character constants. */
5627 #define FOO(x) 'x'
5628 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5630 int test (int i, double x);
5631 struct s1 {int (*f) (int a);};
5632 struct s2 {int (*f) (double a);};
5633 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5634 int argc;
5635 char **argv;
5637 main ()
5639 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5641 return 0;
5643 _ACEOF
5644 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5645 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5647 CC="$ac_save_CC $ac_arg"
5648 if ac_fn_c_try_compile "$LINENO"; then :
5649 ac_cv_prog_cc_c89=$ac_arg
5651 rm -f core conftest.err conftest.$ac_objext
5652 test "x$ac_cv_prog_cc_c89" != "xno" && break
5653 done
5654 rm -f conftest.$ac_ext
5655 CC=$ac_save_CC
5658 # AC_CACHE_VAL
5659 case "x$ac_cv_prog_cc_c89" in
5661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5662 $as_echo "none needed" >&6; } ;;
5663 xno)
5664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5665 $as_echo "unsupported" >&6; } ;;
5667 CC="$CC $ac_cv_prog_cc_c89"
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5669 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5670 esac
5671 if test "x$ac_cv_prog_cc_c89" != xno; then :
5675 ac_ext=c
5676 ac_cpp='$CPP $CPPFLAGS'
5677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5681 ac_ext=c
5682 ac_cpp='$CPP $CPPFLAGS'
5683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5687 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5688 if ${am_cv_prog_cc_c_o+:} false; then :
5689 $as_echo_n "(cached) " >&6
5690 else
5691 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5692 /* end confdefs.h. */
5695 main ()
5699 return 0;
5701 _ACEOF
5702 # Make sure it works both with $CC and with simple cc.
5703 # Following AC_PROG_CC_C_O, we do the test twice because some
5704 # compilers refuse to overwrite an existing .o file with -o,
5705 # though they will create one.
5706 am_cv_prog_cc_c_o=yes
5707 for am_i in 1 2; do
5708 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5709 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5710 ac_status=$?
5711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5712 (exit $ac_status); } \
5713 && test -f conftest2.$ac_objext; then
5714 : OK
5715 else
5716 am_cv_prog_cc_c_o=no
5717 break
5719 done
5720 rm -f core conftest*
5721 unset am_i
5723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5724 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5725 if test "$am_cv_prog_cc_c_o" != yes; then
5726 # Losing compiler, so override with the script.
5727 # FIXME: It is wrong to rewrite CC.
5728 # But if we don't then we get into trouble of one sort or another.
5729 # A longer-term fix would be to have automake use am__CC in this case,
5730 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5731 CC="$am_aux_dir/compile $CC"
5733 ac_ext=c
5734 ac_cpp='$CPP $CPPFLAGS'
5735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5740 ac_ext=cpp
5741 ac_cpp='$CXXCPP $CPPFLAGS'
5742 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5743 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5744 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5745 if test -z "$CXX"; then
5746 if test -n "$CCC"; then
5747 CXX=$CCC
5748 else
5749 if test -n "$ac_tool_prefix"; then
5750 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5752 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5753 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5755 $as_echo_n "checking for $ac_word... " >&6; }
5756 if ${ac_cv_prog_CXX+:} false; then :
5757 $as_echo_n "(cached) " >&6
5758 else
5759 if test -n "$CXX"; then
5760 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5761 else
5762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5763 for as_dir in $PATH
5765 IFS=$as_save_IFS
5766 test -z "$as_dir" && as_dir=.
5767 for ac_exec_ext in '' $ac_executable_extensions; do
5768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5769 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5771 break 2
5773 done
5774 done
5775 IFS=$as_save_IFS
5779 CXX=$ac_cv_prog_CXX
5780 if test -n "$CXX"; then
5781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5782 $as_echo "$CXX" >&6; }
5783 else
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5785 $as_echo "no" >&6; }
5789 test -n "$CXX" && break
5790 done
5792 if test -z "$CXX"; then
5793 ac_ct_CXX=$CXX
5794 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5796 # Extract the first word of "$ac_prog", so it can be a program name with args.
5797 set dummy $ac_prog; ac_word=$2
5798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5799 $as_echo_n "checking for $ac_word... " >&6; }
5800 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5801 $as_echo_n "(cached) " >&6
5802 else
5803 if test -n "$ac_ct_CXX"; then
5804 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5805 else
5806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5807 for as_dir in $PATH
5809 IFS=$as_save_IFS
5810 test -z "$as_dir" && as_dir=.
5811 for ac_exec_ext in '' $ac_executable_extensions; do
5812 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5813 ac_cv_prog_ac_ct_CXX="$ac_prog"
5814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5815 break 2
5817 done
5818 done
5819 IFS=$as_save_IFS
5823 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5824 if test -n "$ac_ct_CXX"; then
5825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5826 $as_echo "$ac_ct_CXX" >&6; }
5827 else
5828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5829 $as_echo "no" >&6; }
5833 test -n "$ac_ct_CXX" && break
5834 done
5836 if test "x$ac_ct_CXX" = x; then
5837 CXX="g++"
5838 else
5839 case $cross_compiling:$ac_tool_warned in
5840 yes:)
5841 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5842 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5843 ac_tool_warned=yes ;;
5844 esac
5845 CXX=$ac_ct_CXX
5851 # Provide some information about the compiler.
5852 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5853 set X $ac_compile
5854 ac_compiler=$2
5855 for ac_option in --version -v -V -qversion; do
5856 { { ac_try="$ac_compiler $ac_option >&5"
5857 case "(($ac_try" in
5858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5859 *) ac_try_echo=$ac_try;;
5860 esac
5861 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5862 $as_echo "$ac_try_echo"; } >&5
5863 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5864 ac_status=$?
5865 if test -s conftest.err; then
5866 sed '10a\
5867 ... rest of stderr output deleted ...
5868 10q' conftest.err >conftest.er1
5869 cat conftest.er1 >&5
5871 rm -f conftest.er1 conftest.err
5872 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5873 test $ac_status = 0; }
5874 done
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5877 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5878 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5879 $as_echo_n "(cached) " >&6
5880 else
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5885 main ()
5887 #ifndef __GNUC__
5888 choke me
5889 #endif
5892 return 0;
5894 _ACEOF
5895 if ac_fn_cxx_try_compile "$LINENO"; then :
5896 ac_compiler_gnu=yes
5897 else
5898 ac_compiler_gnu=no
5900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5901 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5905 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5906 if test $ac_compiler_gnu = yes; then
5907 GXX=yes
5908 else
5909 GXX=
5911 ac_test_CXXFLAGS=${CXXFLAGS+set}
5912 ac_save_CXXFLAGS=$CXXFLAGS
5913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5914 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5915 if ${ac_cv_prog_cxx_g+:} false; then :
5916 $as_echo_n "(cached) " >&6
5917 else
5918 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5919 ac_cxx_werror_flag=yes
5920 ac_cv_prog_cxx_g=no
5921 CXXFLAGS="-g"
5922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5923 /* end confdefs.h. */
5926 main ()
5930 return 0;
5932 _ACEOF
5933 if ac_fn_cxx_try_compile "$LINENO"; then :
5934 ac_cv_prog_cxx_g=yes
5935 else
5936 CXXFLAGS=""
5937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5938 /* end confdefs.h. */
5941 main ()
5945 return 0;
5947 _ACEOF
5948 if ac_fn_cxx_try_compile "$LINENO"; then :
5950 else
5951 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5952 CXXFLAGS="-g"
5953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5954 /* end confdefs.h. */
5957 main ()
5961 return 0;
5963 _ACEOF
5964 if ac_fn_cxx_try_compile "$LINENO"; then :
5965 ac_cv_prog_cxx_g=yes
5967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5969 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5972 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5975 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5976 if test "$ac_test_CXXFLAGS" = set; then
5977 CXXFLAGS=$ac_save_CXXFLAGS
5978 elif test $ac_cv_prog_cxx_g = yes; then
5979 if test "$GXX" = yes; then
5980 CXXFLAGS="-g -O2"
5981 else
5982 CXXFLAGS="-g"
5984 else
5985 if test "$GXX" = yes; then
5986 CXXFLAGS="-O2"
5987 else
5988 CXXFLAGS=
5991 ac_ext=c
5992 ac_cpp='$CPP $CPPFLAGS'
5993 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5994 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5995 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5997 depcc="$CXX" am_compiler_list=
5999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6000 $as_echo_n "checking dependency style of $depcc... " >&6; }
6001 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
6002 $as_echo_n "(cached) " >&6
6003 else
6004 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6005 # We make a subdir and do the tests there. Otherwise we can end up
6006 # making bogus files that we don't know about and never remove. For
6007 # instance it was reported that on HP-UX the gcc test will end up
6008 # making a dummy file named 'D' -- because '-MD' means "put the output
6009 # in D".
6010 rm -rf conftest.dir
6011 mkdir conftest.dir
6012 # Copy depcomp to subdir because otherwise we won't find it if we're
6013 # using a relative directory.
6014 cp "$am_depcomp" conftest.dir
6015 cd conftest.dir
6016 # We will build objects and dependencies in a subdirectory because
6017 # it helps to detect inapplicable dependency modes. For instance
6018 # both Tru64's cc and ICC support -MD to output dependencies as a
6019 # side effect of compilation, but ICC will put the dependencies in
6020 # the current directory while Tru64 will put them in the object
6021 # directory.
6022 mkdir sub
6024 am_cv_CXX_dependencies_compiler_type=none
6025 if test "$am_compiler_list" = ""; then
6026 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6028 am__universal=false
6029 case " $depcc " in #(
6030 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6031 esac
6033 for depmode in $am_compiler_list; do
6034 # Setup a source with many dependencies, because some compilers
6035 # like to wrap large dependency lists on column 80 (with \), and
6036 # we should not choose a depcomp mode which is confused by this.
6038 # We need to recreate these files for each test, as the compiler may
6039 # overwrite some of them when testing with obscure command lines.
6040 # This happens at least with the AIX C compiler.
6041 : > sub/conftest.c
6042 for i in 1 2 3 4 5 6; do
6043 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6044 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6045 # Solaris 10 /bin/sh.
6046 echo '/* dummy */' > sub/conftst$i.h
6047 done
6048 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6050 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6051 # mode. It turns out that the SunPro C++ compiler does not properly
6052 # handle '-M -o', and we need to detect this. Also, some Intel
6053 # versions had trouble with output in subdirs.
6054 am__obj=sub/conftest.${OBJEXT-o}
6055 am__minus_obj="-o $am__obj"
6056 case $depmode in
6057 gcc)
6058 # This depmode causes a compiler race in universal mode.
6059 test "$am__universal" = false || continue
6061 nosideeffect)
6062 # After this tag, mechanisms are not by side-effect, so they'll
6063 # only be used when explicitly requested.
6064 if test "x$enable_dependency_tracking" = xyes; then
6065 continue
6066 else
6067 break
6070 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6071 # This compiler won't grok '-c -o', but also, the minuso test has
6072 # not run yet. These depmodes are late enough in the game, and
6073 # so weak that their functioning should not be impacted.
6074 am__obj=conftest.${OBJEXT-o}
6075 am__minus_obj=
6077 none) break ;;
6078 esac
6079 if depmode=$depmode \
6080 source=sub/conftest.c object=$am__obj \
6081 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6082 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6083 >/dev/null 2>conftest.err &&
6084 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6085 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6086 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6087 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6088 # icc doesn't choke on unknown options, it will just issue warnings
6089 # or remarks (even with -Werror). So we grep stderr for any message
6090 # that says an option was ignored or not supported.
6091 # When given -MP, icc 7.0 and 7.1 complain thusly:
6092 # icc: Command line warning: ignoring option '-M'; no argument required
6093 # The diagnosis changed in icc 8.0:
6094 # icc: Command line remark: option '-MP' not supported
6095 if (grep 'ignoring option' conftest.err ||
6096 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6097 am_cv_CXX_dependencies_compiler_type=$depmode
6098 break
6101 done
6103 cd ..
6104 rm -rf conftest.dir
6105 else
6106 am_cv_CXX_dependencies_compiler_type=none
6110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6111 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6112 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6115 test "x$enable_dependency_tracking" != xno \
6116 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6117 am__fastdepCXX_TRUE=
6118 am__fastdepCXX_FALSE='#'
6119 else
6120 am__fastdepCXX_TRUE='#'
6121 am__fastdepCXX_FALSE=
6125 # By default we simply use the C compiler to build assembly code.
6127 test "${CCAS+set}" = set || CCAS=$CC
6128 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6132 depcc="$CCAS" am_compiler_list=
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6135 $as_echo_n "checking dependency style of $depcc... " >&6; }
6136 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
6137 $as_echo_n "(cached) " >&6
6138 else
6139 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6140 # We make a subdir and do the tests there. Otherwise we can end up
6141 # making bogus files that we don't know about and never remove. For
6142 # instance it was reported that on HP-UX the gcc test will end up
6143 # making a dummy file named 'D' -- because '-MD' means "put the output
6144 # in D".
6145 rm -rf conftest.dir
6146 mkdir conftest.dir
6147 # Copy depcomp to subdir because otherwise we won't find it if we're
6148 # using a relative directory.
6149 cp "$am_depcomp" conftest.dir
6150 cd conftest.dir
6151 # We will build objects and dependencies in a subdirectory because
6152 # it helps to detect inapplicable dependency modes. For instance
6153 # both Tru64's cc and ICC support -MD to output dependencies as a
6154 # side effect of compilation, but ICC will put the dependencies in
6155 # the current directory while Tru64 will put them in the object
6156 # directory.
6157 mkdir sub
6159 am_cv_CCAS_dependencies_compiler_type=none
6160 if test "$am_compiler_list" = ""; then
6161 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6163 am__universal=false
6166 for depmode in $am_compiler_list; do
6167 # Setup a source with many dependencies, because some compilers
6168 # like to wrap large dependency lists on column 80 (with \), and
6169 # we should not choose a depcomp mode which is confused by this.
6171 # We need to recreate these files for each test, as the compiler may
6172 # overwrite some of them when testing with obscure command lines.
6173 # This happens at least with the AIX C compiler.
6174 : > sub/conftest.c
6175 for i in 1 2 3 4 5 6; do
6176 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6177 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6178 # Solaris 10 /bin/sh.
6179 echo '/* dummy */' > sub/conftst$i.h
6180 done
6181 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6183 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6184 # mode. It turns out that the SunPro C++ compiler does not properly
6185 # handle '-M -o', and we need to detect this. Also, some Intel
6186 # versions had trouble with output in subdirs.
6187 am__obj=sub/conftest.${OBJEXT-o}
6188 am__minus_obj="-o $am__obj"
6189 case $depmode in
6190 gcc)
6191 # This depmode causes a compiler race in universal mode.
6192 test "$am__universal" = false || continue
6194 nosideeffect)
6195 # After this tag, mechanisms are not by side-effect, so they'll
6196 # only be used when explicitly requested.
6197 if test "x$enable_dependency_tracking" = xyes; then
6198 continue
6199 else
6200 break
6203 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6204 # This compiler won't grok '-c -o', but also, the minuso test has
6205 # not run yet. These depmodes are late enough in the game, and
6206 # so weak that their functioning should not be impacted.
6207 am__obj=conftest.${OBJEXT-o}
6208 am__minus_obj=
6210 none) break ;;
6211 esac
6212 if depmode=$depmode \
6213 source=sub/conftest.c object=$am__obj \
6214 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6215 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6216 >/dev/null 2>conftest.err &&
6217 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6218 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6219 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6220 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6221 # icc doesn't choke on unknown options, it will just issue warnings
6222 # or remarks (even with -Werror). So we grep stderr for any message
6223 # that says an option was ignored or not supported.
6224 # When given -MP, icc 7.0 and 7.1 complain thusly:
6225 # icc: Command line warning: ignoring option '-M'; no argument required
6226 # The diagnosis changed in icc 8.0:
6227 # icc: Command line remark: option '-MP' not supported
6228 if (grep 'ignoring option' conftest.err ||
6229 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6230 am_cv_CCAS_dependencies_compiler_type=$depmode
6231 break
6234 done
6236 cd ..
6237 rm -rf conftest.dir
6238 else
6239 am_cv_CCAS_dependencies_compiler_type=none
6243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6244 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6245 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6248 test "x$enable_dependency_tracking" != xno \
6249 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6250 am__fastdepCCAS_TRUE=
6251 am__fastdepCCAS_FALSE='#'
6252 else
6253 am__fastdepCCAS_TRUE='#'
6254 am__fastdepCCAS_FALSE=
6262 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
6263 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
6264 # in both places for now and restore CFLAGS at the end of config.
6265 save_CFLAGS="$CFLAGS"
6267 # Find other programs we need.
6268 if test -n "$ac_tool_prefix"; then
6269 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6270 set dummy ${ac_tool_prefix}ar; ac_word=$2
6271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6272 $as_echo_n "checking for $ac_word... " >&6; }
6273 if ${ac_cv_prog_AR+:} false; then :
6274 $as_echo_n "(cached) " >&6
6275 else
6276 if test -n "$AR"; then
6277 ac_cv_prog_AR="$AR" # Let the user override the test.
6278 else
6279 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6280 for as_dir in $PATH
6282 IFS=$as_save_IFS
6283 test -z "$as_dir" && as_dir=.
6284 for ac_exec_ext in '' $ac_executable_extensions; do
6285 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6286 ac_cv_prog_AR="${ac_tool_prefix}ar"
6287 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6288 break 2
6290 done
6291 done
6292 IFS=$as_save_IFS
6296 AR=$ac_cv_prog_AR
6297 if test -n "$AR"; then
6298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6299 $as_echo "$AR" >&6; }
6300 else
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6302 $as_echo "no" >&6; }
6307 if test -z "$ac_cv_prog_AR"; then
6308 ac_ct_AR=$AR
6309 # Extract the first word of "ar", so it can be a program name with args.
6310 set dummy ar; ac_word=$2
6311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6312 $as_echo_n "checking for $ac_word... " >&6; }
6313 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6314 $as_echo_n "(cached) " >&6
6315 else
6316 if test -n "$ac_ct_AR"; then
6317 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6318 else
6319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6320 for as_dir in $PATH
6322 IFS=$as_save_IFS
6323 test -z "$as_dir" && as_dir=.
6324 for ac_exec_ext in '' $ac_executable_extensions; do
6325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6326 ac_cv_prog_ac_ct_AR="ar"
6327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6328 break 2
6330 done
6331 done
6332 IFS=$as_save_IFS
6336 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6337 if test -n "$ac_ct_AR"; then
6338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6339 $as_echo "$ac_ct_AR" >&6; }
6340 else
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6342 $as_echo "no" >&6; }
6345 if test "x$ac_ct_AR" = x; then
6346 AR=""
6347 else
6348 case $cross_compiling:$ac_tool_warned in
6349 yes:)
6350 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6351 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6352 ac_tool_warned=yes ;;
6353 esac
6354 AR=$ac_ct_AR
6356 else
6357 AR="$ac_cv_prog_AR"
6360 if test -n "$ac_tool_prefix"; then
6361 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6362 set dummy ${ac_tool_prefix}nm; ac_word=$2
6363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6364 $as_echo_n "checking for $ac_word... " >&6; }
6365 if ${ac_cv_prog_NM+:} false; then :
6366 $as_echo_n "(cached) " >&6
6367 else
6368 if test -n "$NM"; then
6369 ac_cv_prog_NM="$NM" # Let the user override the test.
6370 else
6371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6372 for as_dir in $PATH
6374 IFS=$as_save_IFS
6375 test -z "$as_dir" && as_dir=.
6376 for ac_exec_ext in '' $ac_executable_extensions; do
6377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6378 ac_cv_prog_NM="${ac_tool_prefix}nm"
6379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6380 break 2
6382 done
6383 done
6384 IFS=$as_save_IFS
6388 NM=$ac_cv_prog_NM
6389 if test -n "$NM"; then
6390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
6391 $as_echo "$NM" >&6; }
6392 else
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6394 $as_echo "no" >&6; }
6399 if test -z "$ac_cv_prog_NM"; then
6400 ac_ct_NM=$NM
6401 # Extract the first word of "nm", so it can be a program name with args.
6402 set dummy nm; ac_word=$2
6403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6404 $as_echo_n "checking for $ac_word... " >&6; }
6405 if ${ac_cv_prog_ac_ct_NM+:} false; then :
6406 $as_echo_n "(cached) " >&6
6407 else
6408 if test -n "$ac_ct_NM"; then
6409 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6410 else
6411 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6412 for as_dir in $PATH
6414 IFS=$as_save_IFS
6415 test -z "$as_dir" && as_dir=.
6416 for ac_exec_ext in '' $ac_executable_extensions; do
6417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6418 ac_cv_prog_ac_ct_NM="nm"
6419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6420 break 2
6422 done
6423 done
6424 IFS=$as_save_IFS
6428 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6429 if test -n "$ac_ct_NM"; then
6430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
6431 $as_echo "$ac_ct_NM" >&6; }
6432 else
6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6434 $as_echo "no" >&6; }
6437 if test "x$ac_ct_NM" = x; then
6438 NM=""
6439 else
6440 case $cross_compiling:$ac_tool_warned in
6441 yes:)
6442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6443 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6444 ac_tool_warned=yes ;;
6445 esac
6446 NM=$ac_ct_NM
6448 else
6449 NM="$ac_cv_prog_NM"
6452 if test -n "$ac_tool_prefix"; then
6453 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6454 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6456 $as_echo_n "checking for $ac_word... " >&6; }
6457 if ${ac_cv_prog_RANLIB+:} false; then :
6458 $as_echo_n "(cached) " >&6
6459 else
6460 if test -n "$RANLIB"; then
6461 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6462 else
6463 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6464 for as_dir in $PATH
6466 IFS=$as_save_IFS
6467 test -z "$as_dir" && as_dir=.
6468 for ac_exec_ext in '' $ac_executable_extensions; do
6469 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6470 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6471 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6472 break 2
6474 done
6475 done
6476 IFS=$as_save_IFS
6480 RANLIB=$ac_cv_prog_RANLIB
6481 if test -n "$RANLIB"; then
6482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6483 $as_echo "$RANLIB" >&6; }
6484 else
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6486 $as_echo "no" >&6; }
6491 if test -z "$ac_cv_prog_RANLIB"; then
6492 ac_ct_RANLIB=$RANLIB
6493 # Extract the first word of "ranlib", so it can be a program name with args.
6494 set dummy ranlib; ac_word=$2
6495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6496 $as_echo_n "checking for $ac_word... " >&6; }
6497 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6498 $as_echo_n "(cached) " >&6
6499 else
6500 if test -n "$ac_ct_RANLIB"; then
6501 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6502 else
6503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6504 for as_dir in $PATH
6506 IFS=$as_save_IFS
6507 test -z "$as_dir" && as_dir=.
6508 for ac_exec_ext in '' $ac_executable_extensions; do
6509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6510 ac_cv_prog_ac_ct_RANLIB="ranlib"
6511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6512 break 2
6514 done
6515 done
6516 IFS=$as_save_IFS
6520 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6521 if test -n "$ac_ct_RANLIB"; then
6522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6523 $as_echo "$ac_ct_RANLIB" >&6; }
6524 else
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6526 $as_echo "no" >&6; }
6529 if test "x$ac_ct_RANLIB" = x; then
6530 RANLIB="ranlib-not-found-in-path-error"
6531 else
6532 case $cross_compiling:$ac_tool_warned in
6533 yes:)
6534 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6535 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6536 ac_tool_warned=yes ;;
6537 esac
6538 RANLIB=$ac_ct_RANLIB
6540 else
6541 RANLIB="$ac_cv_prog_RANLIB"
6544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6545 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6546 set x ${MAKE-make}
6547 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6548 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6549 $as_echo_n "(cached) " >&6
6550 else
6551 cat >conftest.make <<\_ACEOF
6552 SHELL = /bin/sh
6553 all:
6554 @echo '@@@%%%=$(MAKE)=@@@%%%'
6555 _ACEOF
6556 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6557 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6558 *@@@%%%=?*=@@@%%%*)
6559 eval ac_cv_prog_make_${ac_make}_set=yes;;
6561 eval ac_cv_prog_make_${ac_make}_set=no;;
6562 esac
6563 rm -f conftest.make
6565 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6567 $as_echo "yes" >&6; }
6568 SET_MAKE=
6569 else
6570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6571 $as_echo "no" >&6; }
6572 SET_MAKE="MAKE=${MAKE-make}"
6577 case `pwd` in
6578 *\ * | *\ *)
6579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6580 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6581 esac
6585 macro_version='2.2.7a'
6586 macro_revision='1.3134'
6600 ltmain="$ac_aux_dir/ltmain.sh"
6602 # Backslashify metacharacters that are still active within
6603 # double-quoted strings.
6604 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6606 # Same as above, but do not quote variable references.
6607 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6609 # Sed substitution to delay expansion of an escaped shell variable in a
6610 # double_quote_subst'ed string.
6611 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6613 # Sed substitution to delay expansion of an escaped single quote.
6614 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6616 # Sed substitution to avoid accidental globbing in evaled expressions
6617 no_glob_subst='s/\*/\\\*/g'
6619 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6620 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6621 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6624 $as_echo_n "checking how to print strings... " >&6; }
6625 # Test print first, because it will be a builtin if present.
6626 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6627 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6628 ECHO='print -r --'
6629 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6630 ECHO='printf %s\n'
6631 else
6632 # Use this function as a fallback that always works.
6633 func_fallback_echo ()
6635 eval 'cat <<_LTECHO_EOF
6637 _LTECHO_EOF'
6639 ECHO='func_fallback_echo'
6642 # func_echo_all arg...
6643 # Invoke $ECHO with all args, space-separated.
6644 func_echo_all ()
6646 $ECHO ""
6649 case "$ECHO" in
6650 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6651 $as_echo "printf" >&6; } ;;
6652 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6653 $as_echo "print -r" >&6; } ;;
6654 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6655 $as_echo "cat" >&6; } ;;
6656 esac
6671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6672 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6673 if ${ac_cv_path_SED+:} false; then :
6674 $as_echo_n "(cached) " >&6
6675 else
6676 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6677 for ac_i in 1 2 3 4 5 6 7; do
6678 ac_script="$ac_script$as_nl$ac_script"
6679 done
6680 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6681 { ac_script=; unset ac_script;}
6682 if test -z "$SED"; then
6683 ac_path_SED_found=false
6684 # Loop through the user's path and test for each of PROGNAME-LIST
6685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6686 for as_dir in $PATH
6688 IFS=$as_save_IFS
6689 test -z "$as_dir" && as_dir=.
6690 for ac_prog in sed gsed; do
6691 for ac_exec_ext in '' $ac_executable_extensions; do
6692 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6693 as_fn_executable_p "$ac_path_SED" || continue
6694 # Check for GNU ac_path_SED and select it if it is found.
6695 # Check for GNU $ac_path_SED
6696 case `"$ac_path_SED" --version 2>&1` in
6697 *GNU*)
6698 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6700 ac_count=0
6701 $as_echo_n 0123456789 >"conftest.in"
6702 while :
6704 cat "conftest.in" "conftest.in" >"conftest.tmp"
6705 mv "conftest.tmp" "conftest.in"
6706 cp "conftest.in" "conftest.nl"
6707 $as_echo '' >> "conftest.nl"
6708 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6709 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6710 as_fn_arith $ac_count + 1 && ac_count=$as_val
6711 if test $ac_count -gt ${ac_path_SED_max-0}; then
6712 # Best one so far, save it but keep looking for a better one
6713 ac_cv_path_SED="$ac_path_SED"
6714 ac_path_SED_max=$ac_count
6716 # 10*(2^10) chars as input seems more than enough
6717 test $ac_count -gt 10 && break
6718 done
6719 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6720 esac
6722 $ac_path_SED_found && break 3
6723 done
6724 done
6725 done
6726 IFS=$as_save_IFS
6727 if test -z "$ac_cv_path_SED"; then
6728 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6730 else
6731 ac_cv_path_SED=$SED
6735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6736 $as_echo "$ac_cv_path_SED" >&6; }
6737 SED="$ac_cv_path_SED"
6738 rm -f conftest.sed
6740 test -z "$SED" && SED=sed
6741 Xsed="$SED -e 1s/^X//"
6753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6754 $as_echo_n "checking for fgrep... " >&6; }
6755 if ${ac_cv_path_FGREP+:} false; then :
6756 $as_echo_n "(cached) " >&6
6757 else
6758 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6759 then ac_cv_path_FGREP="$GREP -F"
6760 else
6761 if test -z "$FGREP"; then
6762 ac_path_FGREP_found=false
6763 # Loop through the user's path and test for each of PROGNAME-LIST
6764 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6765 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6767 IFS=$as_save_IFS
6768 test -z "$as_dir" && as_dir=.
6769 for ac_prog in fgrep; do
6770 for ac_exec_ext in '' $ac_executable_extensions; do
6771 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6772 as_fn_executable_p "$ac_path_FGREP" || continue
6773 # Check for GNU ac_path_FGREP and select it if it is found.
6774 # Check for GNU $ac_path_FGREP
6775 case `"$ac_path_FGREP" --version 2>&1` in
6776 *GNU*)
6777 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6779 ac_count=0
6780 $as_echo_n 0123456789 >"conftest.in"
6781 while :
6783 cat "conftest.in" "conftest.in" >"conftest.tmp"
6784 mv "conftest.tmp" "conftest.in"
6785 cp "conftest.in" "conftest.nl"
6786 $as_echo 'FGREP' >> "conftest.nl"
6787 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6788 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6789 as_fn_arith $ac_count + 1 && ac_count=$as_val
6790 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6791 # Best one so far, save it but keep looking for a better one
6792 ac_cv_path_FGREP="$ac_path_FGREP"
6793 ac_path_FGREP_max=$ac_count
6795 # 10*(2^10) chars as input seems more than enough
6796 test $ac_count -gt 10 && break
6797 done
6798 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6799 esac
6801 $ac_path_FGREP_found && break 3
6802 done
6803 done
6804 done
6805 IFS=$as_save_IFS
6806 if test -z "$ac_cv_path_FGREP"; then
6807 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6809 else
6810 ac_cv_path_FGREP=$FGREP
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6816 $as_echo "$ac_cv_path_FGREP" >&6; }
6817 FGREP="$ac_cv_path_FGREP"
6820 test -z "$GREP" && GREP=grep
6840 # Check whether --with-gnu-ld was given.
6841 if test "${with_gnu_ld+set}" = set; then :
6842 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6843 else
6844 with_gnu_ld=no
6847 ac_prog=ld
6848 if test "$GCC" = yes; then
6849 # Check if gcc -print-prog-name=ld gives a path.
6850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6851 $as_echo_n "checking for ld used by $CC... " >&6; }
6852 case $host in
6853 *-*-mingw*)
6854 # gcc leaves a trailing carriage return which upsets mingw
6855 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6857 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6858 esac
6859 case $ac_prog in
6860 # Accept absolute paths.
6861 [\\/]* | ?:[\\/]*)
6862 re_direlt='/[^/][^/]*/\.\./'
6863 # Canonicalize the pathname of ld
6864 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6865 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6866 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6867 done
6868 test -z "$LD" && LD="$ac_prog"
6871 # If it fails, then pretend we aren't using GCC.
6872 ac_prog=ld
6875 # If it is relative, then search for the first ld in PATH.
6876 with_gnu_ld=unknown
6878 esac
6879 elif test "$with_gnu_ld" = yes; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6881 $as_echo_n "checking for GNU ld... " >&6; }
6882 else
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6884 $as_echo_n "checking for non-GNU ld... " >&6; }
6886 if ${lt_cv_path_LD+:} false; then :
6887 $as_echo_n "(cached) " >&6
6888 else
6889 if test -z "$LD"; then
6890 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6891 for ac_dir in $PATH; do
6892 IFS="$lt_save_ifs"
6893 test -z "$ac_dir" && ac_dir=.
6894 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6895 lt_cv_path_LD="$ac_dir/$ac_prog"
6896 # Check to see if the program is GNU ld. I'd rather use --version,
6897 # but apparently some variants of GNU ld only accept -v.
6898 # Break only if it was the GNU/non-GNU ld that we prefer.
6899 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6900 *GNU* | *'with BFD'*)
6901 test "$with_gnu_ld" != no && break
6904 test "$with_gnu_ld" != yes && break
6906 esac
6908 done
6909 IFS="$lt_save_ifs"
6910 else
6911 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6915 LD="$lt_cv_path_LD"
6916 if test -n "$LD"; then
6917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6918 $as_echo "$LD" >&6; }
6919 else
6920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6921 $as_echo "no" >&6; }
6923 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6925 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6926 if ${lt_cv_prog_gnu_ld+:} false; then :
6927 $as_echo_n "(cached) " >&6
6928 else
6929 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6930 case `$LD -v 2>&1 </dev/null` in
6931 *GNU* | *'with BFD'*)
6932 lt_cv_prog_gnu_ld=yes
6935 lt_cv_prog_gnu_ld=no
6937 esac
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6940 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6941 with_gnu_ld=$lt_cv_prog_gnu_ld
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6952 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6953 if ${lt_cv_path_NM+:} false; then :
6954 $as_echo_n "(cached) " >&6
6955 else
6956 if test -n "$NM"; then
6957 # Let the user override the nm to test.
6958 lt_nm_to_check="$NM"
6959 else
6960 lt_nm_to_check="${ac_tool_prefix}nm"
6961 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6962 lt_nm_to_check="$lt_nm_to_check nm"
6965 for lt_tmp_nm in "$lt_nm_to_check"; do
6966 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6967 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6968 IFS="$lt_save_ifs"
6969 test -z "$ac_dir" && ac_dir=.
6970 # Strip out any user-provided options from the nm to test twice,
6971 # the first time to test to see if nm (rather than its options) has
6972 # an explicit path, the second time to yield a file which can be
6973 # nm'ed itself.
6974 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6975 case "$tmp_nm_path" in
6976 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6977 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6978 esac
6979 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6980 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6981 # Check to see if the nm accepts a BSD-compat flag.
6982 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6983 # nm: unknown option "B" ignored
6984 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6985 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6986 break
6989 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6990 *$tmp_nm*)
6991 lt_cv_path_NM="$tmp_nm -p"
6992 break
6995 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6996 continue # so that we can try to find one that supports BSD flags
6998 esac
7000 esac
7002 done
7003 IFS="$lt_save_ifs"
7004 done
7005 : ${lt_cv_path_NM=no}
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7008 $as_echo "$lt_cv_path_NM" >&6; }
7009 if test "$lt_cv_path_NM" != "no"; then
7010 NM="$lt_cv_path_NM"
7011 else
7012 # Didn't find any BSD compatible name lister, look for dumpbin.
7013 if test -n "$DUMPBIN"; then :
7014 # Let the user override the test.
7015 else
7016 if test -n "$ac_tool_prefix"; then
7017 for ac_prog in dumpbin "link -dump"
7019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7022 $as_echo_n "checking for $ac_word... " >&6; }
7023 if ${ac_cv_prog_DUMPBIN+:} false; then :
7024 $as_echo_n "(cached) " >&6
7025 else
7026 if test -n "$DUMPBIN"; then
7027 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7028 else
7029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7030 for as_dir in $PATH
7032 IFS=$as_save_IFS
7033 test -z "$as_dir" && as_dir=.
7034 for ac_exec_ext in '' $ac_executable_extensions; do
7035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7036 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7038 break 2
7040 done
7041 done
7042 IFS=$as_save_IFS
7046 DUMPBIN=$ac_cv_prog_DUMPBIN
7047 if test -n "$DUMPBIN"; then
7048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7049 $as_echo "$DUMPBIN" >&6; }
7050 else
7051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7052 $as_echo "no" >&6; }
7056 test -n "$DUMPBIN" && break
7057 done
7059 if test -z "$DUMPBIN"; then
7060 ac_ct_DUMPBIN=$DUMPBIN
7061 for ac_prog in dumpbin "link -dump"
7063 # Extract the first word of "$ac_prog", so it can be a program name with args.
7064 set dummy $ac_prog; ac_word=$2
7065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7066 $as_echo_n "checking for $ac_word... " >&6; }
7067 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7068 $as_echo_n "(cached) " >&6
7069 else
7070 if test -n "$ac_ct_DUMPBIN"; then
7071 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7072 else
7073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7074 for as_dir in $PATH
7076 IFS=$as_save_IFS
7077 test -z "$as_dir" && as_dir=.
7078 for ac_exec_ext in '' $ac_executable_extensions; do
7079 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7080 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7082 break 2
7084 done
7085 done
7086 IFS=$as_save_IFS
7090 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7091 if test -n "$ac_ct_DUMPBIN"; then
7092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7093 $as_echo "$ac_ct_DUMPBIN" >&6; }
7094 else
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7096 $as_echo "no" >&6; }
7100 test -n "$ac_ct_DUMPBIN" && break
7101 done
7103 if test "x$ac_ct_DUMPBIN" = x; then
7104 DUMPBIN=":"
7105 else
7106 case $cross_compiling:$ac_tool_warned in
7107 yes:)
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7110 ac_tool_warned=yes ;;
7111 esac
7112 DUMPBIN=$ac_ct_DUMPBIN
7116 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7117 *COFF*)
7118 DUMPBIN="$DUMPBIN -symbols"
7121 DUMPBIN=:
7123 esac
7126 if test "$DUMPBIN" != ":"; then
7127 NM="$DUMPBIN"
7130 test -z "$NM" && NM=nm
7137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7138 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7139 if ${lt_cv_nm_interface+:} false; then :
7140 $as_echo_n "(cached) " >&6
7141 else
7142 lt_cv_nm_interface="BSD nm"
7143 echo "int some_variable = 0;" > conftest.$ac_ext
7144 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7145 (eval "$ac_compile" 2>conftest.err)
7146 cat conftest.err >&5
7147 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7148 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7149 cat conftest.err >&5
7150 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7151 cat conftest.out >&5
7152 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7153 lt_cv_nm_interface="MS dumpbin"
7155 rm -f conftest*
7157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7158 $as_echo "$lt_cv_nm_interface" >&6; }
7160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7161 $as_echo_n "checking whether ln -s works... " >&6; }
7162 LN_S=$as_ln_s
7163 if test "$LN_S" = "ln -s"; then
7164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7165 $as_echo "yes" >&6; }
7166 else
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7168 $as_echo "no, using $LN_S" >&6; }
7171 # find the maximum length of command line arguments
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7173 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7174 if ${lt_cv_sys_max_cmd_len+:} false; then :
7175 $as_echo_n "(cached) " >&6
7176 else
7178 teststring="ABCD"
7180 case $build_os in
7181 msdosdjgpp*)
7182 # On DJGPP, this test can blow up pretty badly due to problems in libc
7183 # (any single argument exceeding 2000 bytes causes a buffer overrun
7184 # during glob expansion). Even if it were fixed, the result of this
7185 # check would be larger than it should be.
7186 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7189 gnu*)
7190 # Under GNU Hurd, this test is not required because there is
7191 # no limit to the length of command line arguments.
7192 # Libtool will interpret -1 as no limit whatsoever
7193 lt_cv_sys_max_cmd_len=-1;
7196 cygwin* | mingw* | cegcc*)
7197 # On Win9x/ME, this test blows up -- it succeeds, but takes
7198 # about 5 minutes as the teststring grows exponentially.
7199 # Worse, since 9x/ME are not pre-emptively multitasking,
7200 # you end up with a "frozen" computer, even though with patience
7201 # the test eventually succeeds (with a max line length of 256k).
7202 # Instead, let's just punt: use the minimum linelength reported by
7203 # all of the supported platforms: 8192 (on NT/2K/XP).
7204 lt_cv_sys_max_cmd_len=8192;
7207 mint*)
7208 # On MiNT this can take a long time and run out of memory.
7209 lt_cv_sys_max_cmd_len=8192;
7212 amigaos*)
7213 # On AmigaOS with pdksh, this test takes hours, literally.
7214 # So we just punt and use a minimum line length of 8192.
7215 lt_cv_sys_max_cmd_len=8192;
7218 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7219 # This has been around since 386BSD, at least. Likely further.
7220 if test -x /sbin/sysctl; then
7221 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7222 elif test -x /usr/sbin/sysctl; then
7223 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7224 else
7225 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7227 # And add a safety zone
7228 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7229 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7232 interix*)
7233 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7234 lt_cv_sys_max_cmd_len=196608
7237 osf*)
7238 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7239 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7240 # nice to cause kernel panics so lets avoid the loop below.
7241 # First set a reasonable default.
7242 lt_cv_sys_max_cmd_len=16384
7244 if test -x /sbin/sysconfig; then
7245 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7246 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7247 esac
7250 sco3.2v5*)
7251 lt_cv_sys_max_cmd_len=102400
7253 sysv5* | sco5v6* | sysv4.2uw2*)
7254 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7255 if test -n "$kargmax"; then
7256 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7257 else
7258 lt_cv_sys_max_cmd_len=32768
7262 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7263 if test -n "$lt_cv_sys_max_cmd_len"; then
7264 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7265 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7266 else
7267 # Make teststring a little bigger before we do anything with it.
7268 # a 1K string should be a reasonable start.
7269 for i in 1 2 3 4 5 6 7 8 ; do
7270 teststring=$teststring$teststring
7271 done
7272 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7273 # If test is not a shell built-in, we'll probably end up computing a
7274 # maximum length that is only half of the actual maximum length, but
7275 # we can't tell.
7276 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7277 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7278 test $i != 17 # 1/2 MB should be enough
7280 i=`expr $i + 1`
7281 teststring=$teststring$teststring
7282 done
7283 # Only check the string length outside the loop.
7284 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7285 teststring=
7286 # Add a significant safety factor because C++ compilers can tack on
7287 # massive amounts of additional arguments before passing them to the
7288 # linker. It appears as though 1/2 is a usable value.
7289 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7292 esac
7296 if test -n $lt_cv_sys_max_cmd_len ; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7298 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7299 else
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7301 $as_echo "none" >&6; }
7303 max_cmd_len=$lt_cv_sys_max_cmd_len
7310 : ${CP="cp -f"}
7311 : ${MV="mv -f"}
7312 : ${RM="rm -f"}
7314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7315 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7316 # Try some XSI features
7317 xsi_shell=no
7318 ( _lt_dummy="a/b/c"
7319 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7320 = c,a/b,, \
7321 && eval 'test $(( 1 + 1 )) -eq 2 \
7322 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7323 && xsi_shell=yes
7324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7325 $as_echo "$xsi_shell" >&6; }
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7329 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7330 lt_shell_append=no
7331 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7332 >/dev/null 2>&1 \
7333 && lt_shell_append=yes
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7335 $as_echo "$lt_shell_append" >&6; }
7338 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7339 lt_unset=unset
7340 else
7341 lt_unset=false
7348 # test EBCDIC or ASCII
7349 case `echo X|tr X '\101'` in
7350 A) # ASCII based system
7351 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7352 lt_SP2NL='tr \040 \012'
7353 lt_NL2SP='tr \015\012 \040\040'
7355 *) # EBCDIC based system
7356 lt_SP2NL='tr \100 \n'
7357 lt_NL2SP='tr \r\n \100\100'
7359 esac
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7370 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7371 if ${lt_cv_ld_reload_flag+:} false; then :
7372 $as_echo_n "(cached) " >&6
7373 else
7374 lt_cv_ld_reload_flag='-r'
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7377 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7378 reload_flag=$lt_cv_ld_reload_flag
7379 case $reload_flag in
7380 "" | " "*) ;;
7381 *) reload_flag=" $reload_flag" ;;
7382 esac
7383 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7384 case $host_os in
7385 darwin*)
7386 if test "$GCC" = yes; then
7387 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7388 else
7389 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7392 esac
7402 if test -n "$ac_tool_prefix"; then
7403 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7404 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7406 $as_echo_n "checking for $ac_word... " >&6; }
7407 if ${ac_cv_prog_OBJDUMP+:} false; then :
7408 $as_echo_n "(cached) " >&6
7409 else
7410 if test -n "$OBJDUMP"; then
7411 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7412 else
7413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 for as_dir in $PATH
7416 IFS=$as_save_IFS
7417 test -z "$as_dir" && as_dir=.
7418 for ac_exec_ext in '' $ac_executable_extensions; do
7419 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7420 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7422 break 2
7424 done
7425 done
7426 IFS=$as_save_IFS
7430 OBJDUMP=$ac_cv_prog_OBJDUMP
7431 if test -n "$OBJDUMP"; then
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7433 $as_echo "$OBJDUMP" >&6; }
7434 else
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7436 $as_echo "no" >&6; }
7441 if test -z "$ac_cv_prog_OBJDUMP"; then
7442 ac_ct_OBJDUMP=$OBJDUMP
7443 # Extract the first word of "objdump", so it can be a program name with args.
7444 set dummy objdump; ac_word=$2
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7446 $as_echo_n "checking for $ac_word... " >&6; }
7447 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7448 $as_echo_n "(cached) " >&6
7449 else
7450 if test -n "$ac_ct_OBJDUMP"; then
7451 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7452 else
7453 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7454 for as_dir in $PATH
7456 IFS=$as_save_IFS
7457 test -z "$as_dir" && as_dir=.
7458 for ac_exec_ext in '' $ac_executable_extensions; do
7459 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7460 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7461 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7462 break 2
7464 done
7465 done
7466 IFS=$as_save_IFS
7470 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7471 if test -n "$ac_ct_OBJDUMP"; then
7472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7473 $as_echo "$ac_ct_OBJDUMP" >&6; }
7474 else
7475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7476 $as_echo "no" >&6; }
7479 if test "x$ac_ct_OBJDUMP" = x; then
7480 OBJDUMP="false"
7481 else
7482 case $cross_compiling:$ac_tool_warned in
7483 yes:)
7484 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7485 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7486 ac_tool_warned=yes ;;
7487 esac
7488 OBJDUMP=$ac_ct_OBJDUMP
7490 else
7491 OBJDUMP="$ac_cv_prog_OBJDUMP"
7494 test -z "$OBJDUMP" && OBJDUMP=objdump
7504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7505 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7506 if ${lt_cv_deplibs_check_method+:} false; then :
7507 $as_echo_n "(cached) " >&6
7508 else
7509 lt_cv_file_magic_cmd='$MAGIC_CMD'
7510 lt_cv_file_magic_test_file=
7511 lt_cv_deplibs_check_method='unknown'
7512 # Need to set the preceding variable on all platforms that support
7513 # interlibrary dependencies.
7514 # 'none' -- dependencies not supported.
7515 # `unknown' -- same as none, but documents that we really don't know.
7516 # 'pass_all' -- all dependencies passed with no checks.
7517 # 'test_compile' -- check by making test program.
7518 # 'file_magic [[regex]]' -- check by looking for files in library path
7519 # which responds to the $file_magic_cmd with a given extended regex.
7520 # If you have `file' or equivalent on your system and you're not sure
7521 # whether `pass_all' will *always* work, you probably want this one.
7523 case $host_os in
7524 aix[4-9]*)
7525 lt_cv_deplibs_check_method=pass_all
7528 beos*)
7529 lt_cv_deplibs_check_method=pass_all
7532 bsdi[45]*)
7533 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7534 lt_cv_file_magic_cmd='/usr/bin/file -L'
7535 lt_cv_file_magic_test_file=/shlib/libc.so
7538 cygwin*)
7539 # func_win32_libid is a shell function defined in ltmain.sh
7540 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7541 lt_cv_file_magic_cmd='func_win32_libid'
7544 mingw* | pw32*)
7545 # Base MSYS/MinGW do not provide the 'file' command needed by
7546 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7547 # unless we find 'file', for example because we are cross-compiling.
7548 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7549 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7550 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7551 lt_cv_file_magic_cmd='func_win32_libid'
7552 else
7553 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7554 lt_cv_file_magic_cmd='$OBJDUMP -f'
7558 cegcc*)
7559 # use the weaker test based on 'objdump'. See mingw*.
7560 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7561 lt_cv_file_magic_cmd='$OBJDUMP -f'
7564 darwin* | rhapsody*)
7565 lt_cv_deplibs_check_method=pass_all
7568 freebsd* | dragonfly*)
7569 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7570 case $host_cpu in
7571 i*86 )
7572 # Not sure whether the presence of OpenBSD here was a mistake.
7573 # Let's accept both of them until this is cleared up.
7574 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7575 lt_cv_file_magic_cmd=/usr/bin/file
7576 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7578 esac
7579 else
7580 lt_cv_deplibs_check_method=pass_all
7584 gnu*)
7585 lt_cv_deplibs_check_method=pass_all
7588 haiku*)
7589 lt_cv_deplibs_check_method=pass_all
7592 hpux10.20* | hpux11*)
7593 lt_cv_file_magic_cmd=/usr/bin/file
7594 case $host_cpu in
7595 ia64*)
7596 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7597 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7599 hppa*64*)
7600 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]'
7601 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7604 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7605 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7607 esac
7610 interix[3-9]*)
7611 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7612 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7615 irix5* | irix6* | nonstopux*)
7616 case $LD in
7617 *-32|*"-32 ") libmagic=32-bit;;
7618 *-n32|*"-n32 ") libmagic=N32;;
7619 *-64|*"-64 ") libmagic=64-bit;;
7620 *) libmagic=never-match;;
7621 esac
7622 lt_cv_deplibs_check_method=pass_all
7625 # This must be Linux ELF.
7626 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7627 lt_cv_deplibs_check_method=pass_all
7630 netbsd*)
7631 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7632 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7633 else
7634 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7638 newos6*)
7639 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7640 lt_cv_file_magic_cmd=/usr/bin/file
7641 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7644 *nto* | *qnx*)
7645 lt_cv_deplibs_check_method=pass_all
7648 openbsd*)
7649 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7650 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7651 else
7652 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7656 osf3* | osf4* | osf5*)
7657 lt_cv_deplibs_check_method=pass_all
7660 rdos*)
7661 lt_cv_deplibs_check_method=pass_all
7664 solaris*)
7665 lt_cv_deplibs_check_method=pass_all
7668 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7669 lt_cv_deplibs_check_method=pass_all
7672 sysv4 | sysv4.3*)
7673 case $host_vendor in
7674 motorola)
7675 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]'
7676 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7678 ncr)
7679 lt_cv_deplibs_check_method=pass_all
7681 sequent)
7682 lt_cv_file_magic_cmd='/bin/file'
7683 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7685 sni)
7686 lt_cv_file_magic_cmd='/bin/file'
7687 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7688 lt_cv_file_magic_test_file=/lib/libc.so
7690 siemens)
7691 lt_cv_deplibs_check_method=pass_all
7694 lt_cv_deplibs_check_method=pass_all
7696 esac
7699 tpf*)
7700 lt_cv_deplibs_check_method=pass_all
7702 vxworks*)
7703 # Assume VxWorks cross toolchains are built on Linux, possibly
7704 # as canadian for Windows hosts.
7705 lt_cv_deplibs_check_method=pass_all
7707 esac
7710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7711 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7712 file_magic_cmd=$lt_cv_file_magic_cmd
7713 deplibs_check_method=$lt_cv_deplibs_check_method
7714 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7727 plugin_option=
7728 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
7729 for plugin in $plugin_names; do
7730 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7731 if test x$plugin_so = x$plugin; then
7732 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7734 if test x$plugin_so != x$plugin; then
7735 plugin_option="--plugin $plugin_so"
7736 break
7738 done
7740 if test -n "$ac_tool_prefix"; then
7741 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7742 set dummy ${ac_tool_prefix}ar; ac_word=$2
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7744 $as_echo_n "checking for $ac_word... " >&6; }
7745 if ${ac_cv_prog_AR+:} false; then :
7746 $as_echo_n "(cached) " >&6
7747 else
7748 if test -n "$AR"; then
7749 ac_cv_prog_AR="$AR" # Let the user override the test.
7750 else
7751 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 for as_dir in $PATH
7754 IFS=$as_save_IFS
7755 test -z "$as_dir" && as_dir=.
7756 for ac_exec_ext in '' $ac_executable_extensions; do
7757 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7758 ac_cv_prog_AR="${ac_tool_prefix}ar"
7759 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7760 break 2
7762 done
7763 done
7764 IFS=$as_save_IFS
7768 AR=$ac_cv_prog_AR
7769 if test -n "$AR"; then
7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7771 $as_echo "$AR" >&6; }
7772 else
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7774 $as_echo "no" >&6; }
7779 if test -z "$ac_cv_prog_AR"; then
7780 ac_ct_AR=$AR
7781 # Extract the first word of "ar", so it can be a program name with args.
7782 set dummy ar; ac_word=$2
7783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7784 $as_echo_n "checking for $ac_word... " >&6; }
7785 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7786 $as_echo_n "(cached) " >&6
7787 else
7788 if test -n "$ac_ct_AR"; then
7789 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7790 else
7791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7792 for as_dir in $PATH
7794 IFS=$as_save_IFS
7795 test -z "$as_dir" && as_dir=.
7796 for ac_exec_ext in '' $ac_executable_extensions; do
7797 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7798 ac_cv_prog_ac_ct_AR="ar"
7799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7800 break 2
7802 done
7803 done
7804 IFS=$as_save_IFS
7808 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7809 if test -n "$ac_ct_AR"; then
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7811 $as_echo "$ac_ct_AR" >&6; }
7812 else
7813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7814 $as_echo "no" >&6; }
7817 if test "x$ac_ct_AR" = x; then
7818 AR="false"
7819 else
7820 case $cross_compiling:$ac_tool_warned in
7821 yes:)
7822 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7823 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7824 ac_tool_warned=yes ;;
7825 esac
7826 AR=$ac_ct_AR
7828 else
7829 AR="$ac_cv_prog_AR"
7832 test -z "$AR" && AR=ar
7833 if test -n "$plugin_option"; then
7834 if $AR --help 2>&1 | grep -q "\--plugin"; then
7835 touch conftest.c
7836 $AR $plugin_option rc conftest.a conftest.c
7837 if test "$?" != 0; then
7838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
7839 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
7840 else
7841 AR="$AR $plugin_option"
7843 rm -f conftest.*
7846 test -z "$AR_FLAGS" && AR_FLAGS=cru
7858 if test -n "$ac_tool_prefix"; then
7859 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7860 set dummy ${ac_tool_prefix}strip; ac_word=$2
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7862 $as_echo_n "checking for $ac_word... " >&6; }
7863 if ${ac_cv_prog_STRIP+:} false; then :
7864 $as_echo_n "(cached) " >&6
7865 else
7866 if test -n "$STRIP"; then
7867 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7868 else
7869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7870 for as_dir in $PATH
7872 IFS=$as_save_IFS
7873 test -z "$as_dir" && as_dir=.
7874 for ac_exec_ext in '' $ac_executable_extensions; do
7875 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7876 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7877 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7878 break 2
7880 done
7881 done
7882 IFS=$as_save_IFS
7886 STRIP=$ac_cv_prog_STRIP
7887 if test -n "$STRIP"; then
7888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7889 $as_echo "$STRIP" >&6; }
7890 else
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7892 $as_echo "no" >&6; }
7897 if test -z "$ac_cv_prog_STRIP"; then
7898 ac_ct_STRIP=$STRIP
7899 # Extract the first word of "strip", so it can be a program name with args.
7900 set dummy strip; ac_word=$2
7901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7902 $as_echo_n "checking for $ac_word... " >&6; }
7903 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7904 $as_echo_n "(cached) " >&6
7905 else
7906 if test -n "$ac_ct_STRIP"; then
7907 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7908 else
7909 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7910 for as_dir in $PATH
7912 IFS=$as_save_IFS
7913 test -z "$as_dir" && as_dir=.
7914 for ac_exec_ext in '' $ac_executable_extensions; do
7915 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7916 ac_cv_prog_ac_ct_STRIP="strip"
7917 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7918 break 2
7920 done
7921 done
7922 IFS=$as_save_IFS
7926 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7927 if test -n "$ac_ct_STRIP"; then
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7929 $as_echo "$ac_ct_STRIP" >&6; }
7930 else
7931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7932 $as_echo "no" >&6; }
7935 if test "x$ac_ct_STRIP" = x; then
7936 STRIP=":"
7937 else
7938 case $cross_compiling:$ac_tool_warned in
7939 yes:)
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7941 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7942 ac_tool_warned=yes ;;
7943 esac
7944 STRIP=$ac_ct_STRIP
7946 else
7947 STRIP="$ac_cv_prog_STRIP"
7950 test -z "$STRIP" && STRIP=:
7957 if test -n "$ac_tool_prefix"; then
7958 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7959 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7961 $as_echo_n "checking for $ac_word... " >&6; }
7962 if ${ac_cv_prog_RANLIB+:} false; then :
7963 $as_echo_n "(cached) " >&6
7964 else
7965 if test -n "$RANLIB"; then
7966 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7967 else
7968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7969 for as_dir in $PATH
7971 IFS=$as_save_IFS
7972 test -z "$as_dir" && as_dir=.
7973 for ac_exec_ext in '' $ac_executable_extensions; do
7974 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7975 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7977 break 2
7979 done
7980 done
7981 IFS=$as_save_IFS
7985 RANLIB=$ac_cv_prog_RANLIB
7986 if test -n "$RANLIB"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7988 $as_echo "$RANLIB" >&6; }
7989 else
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7991 $as_echo "no" >&6; }
7996 if test -z "$ac_cv_prog_RANLIB"; then
7997 ac_ct_RANLIB=$RANLIB
7998 # Extract the first word of "ranlib", so it can be a program name with args.
7999 set dummy ranlib; ac_word=$2
8000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8001 $as_echo_n "checking for $ac_word... " >&6; }
8002 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8003 $as_echo_n "(cached) " >&6
8004 else
8005 if test -n "$ac_ct_RANLIB"; then
8006 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8007 else
8008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8009 for as_dir in $PATH
8011 IFS=$as_save_IFS
8012 test -z "$as_dir" && as_dir=.
8013 for ac_exec_ext in '' $ac_executable_extensions; do
8014 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8015 ac_cv_prog_ac_ct_RANLIB="ranlib"
8016 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8017 break 2
8019 done
8020 done
8021 IFS=$as_save_IFS
8025 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8026 if test -n "$ac_ct_RANLIB"; then
8027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8028 $as_echo "$ac_ct_RANLIB" >&6; }
8029 else
8030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8031 $as_echo "no" >&6; }
8034 if test "x$ac_ct_RANLIB" = x; then
8035 RANLIB=":"
8036 else
8037 case $cross_compiling:$ac_tool_warned in
8038 yes:)
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8041 ac_tool_warned=yes ;;
8042 esac
8043 RANLIB=$ac_ct_RANLIB
8045 else
8046 RANLIB="$ac_cv_prog_RANLIB"
8049 test -z "$RANLIB" && RANLIB=:
8050 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
8051 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
8052 RANLIB="$RANLIB $plugin_option"
8061 # Determine commands to create old-style static archives.
8062 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8063 old_postinstall_cmds='chmod 644 $oldlib'
8064 old_postuninstall_cmds=
8066 if test -n "$RANLIB"; then
8067 case $host_os in
8068 openbsd*)
8069 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8072 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8074 esac
8075 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8078 case $host_os in
8079 darwin*)
8080 lock_old_archive_extraction=yes ;;
8082 lock_old_archive_extraction=no ;;
8083 esac
8123 # If no C compiler was specified, use CC.
8124 LTCC=${LTCC-"$CC"}
8126 # If no C compiler flags were specified, use CFLAGS.
8127 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8129 # Allow CC to be a program name with arguments.
8130 compiler=$CC
8133 # Check for command to grab the raw symbol name followed by C symbol from nm.
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8135 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8136 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8137 $as_echo_n "(cached) " >&6
8138 else
8140 # These are sane defaults that work on at least a few old systems.
8141 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8143 # Character class describing NM global symbol codes.
8144 symcode='[BCDEGRST]'
8146 # Regexp to match symbols that can be accessed directly from C.
8147 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8149 # Define system-specific variables.
8150 case $host_os in
8151 aix*)
8152 symcode='[BCDT]'
8154 cygwin* | mingw* | pw32* | cegcc*)
8155 symcode='[ABCDGISTW]'
8157 hpux*)
8158 if test "$host_cpu" = ia64; then
8159 symcode='[ABCDEGRST]'
8162 irix* | nonstopux*)
8163 symcode='[BCDEGRST]'
8165 osf*)
8166 symcode='[BCDEGQRST]'
8168 solaris*)
8169 symcode='[BCDRT]'
8171 sco3.2v5*)
8172 symcode='[DT]'
8174 sysv4.2uw2*)
8175 symcode='[DT]'
8177 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8178 symcode='[ABDT]'
8180 sysv4)
8181 symcode='[DFNSTU]'
8183 esac
8185 # If we're using GNU nm, then use its standard symbol codes.
8186 case `$NM -V 2>&1` in
8187 *GNU* | *'with BFD'*)
8188 symcode='[ABCDGIRSTW]' ;;
8189 esac
8191 # Transform an extracted symbol line into a proper C declaration.
8192 # Some systems (esp. on ia64) link data and code symbols differently,
8193 # so use this general approach.
8194 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8196 # Transform an extracted symbol line into symbol name and symbol address
8197 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8198 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'"
8200 # Handle CRLF in mingw tool chain
8201 opt_cr=
8202 case $build_os in
8203 mingw*)
8204 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8206 esac
8208 # Try without a prefix underscore, then with it.
8209 for ac_symprfx in "" "_"; do
8211 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8212 symxfrm="\\1 $ac_symprfx\\2 \\2"
8214 # Write the raw and C identifiers.
8215 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8216 # Fake it for dumpbin and say T for any non-static function
8217 # and D for any global variable.
8218 # Also find C++ and __fastcall symbols from MSVC++,
8219 # which start with @ or ?.
8220 lt_cv_sys_global_symbol_pipe="$AWK '"\
8221 " {last_section=section; section=\$ 3};"\
8222 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8223 " \$ 0!~/External *\|/{next};"\
8224 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8225 " {if(hide[section]) next};"\
8226 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8227 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8228 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8229 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8230 " ' prfx=^$ac_symprfx"
8231 else
8232 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8235 # Check to see that the pipe works correctly.
8236 pipe_works=no
8238 rm -f conftest*
8239 cat > conftest.$ac_ext <<_LT_EOF
8240 #ifdef __cplusplus
8241 extern "C" {
8242 #endif
8243 char nm_test_var;
8244 void nm_test_func(void);
8245 void nm_test_func(void){}
8246 #ifdef __cplusplus
8248 #endif
8249 int main(){nm_test_var='a';nm_test_func();return(0);}
8250 _LT_EOF
8252 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8253 (eval $ac_compile) 2>&5
8254 ac_status=$?
8255 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8256 test $ac_status = 0; }; then
8257 # Now try to grab the symbols.
8258 nlist=conftest.nm
8259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8260 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8261 ac_status=$?
8262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8263 test $ac_status = 0; } && test -s "$nlist"; then
8264 # Try sorting and uniquifying the output.
8265 if sort "$nlist" | uniq > "$nlist"T; then
8266 mv -f "$nlist"T "$nlist"
8267 else
8268 rm -f "$nlist"T
8271 # Make sure that we snagged all the symbols we need.
8272 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8273 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8274 cat <<_LT_EOF > conftest.$ac_ext
8275 #ifdef __cplusplus
8276 extern "C" {
8277 #endif
8279 _LT_EOF
8280 # Now generate the symbol file.
8281 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8283 cat <<_LT_EOF >> conftest.$ac_ext
8285 /* The mapping between symbol names and symbols. */
8286 const struct {
8287 const char *name;
8288 void *address;
8290 lt__PROGRAM__LTX_preloaded_symbols[] =
8292 { "@PROGRAM@", (void *) 0 },
8293 _LT_EOF
8294 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8295 cat <<\_LT_EOF >> conftest.$ac_ext
8296 {0, (void *) 0}
8299 /* This works around a problem in FreeBSD linker */
8300 #ifdef FREEBSD_WORKAROUND
8301 static const void *lt_preloaded_setup() {
8302 return lt__PROGRAM__LTX_preloaded_symbols;
8304 #endif
8306 #ifdef __cplusplus
8308 #endif
8309 _LT_EOF
8310 # Now try linking the two files.
8311 mv conftest.$ac_objext conftstm.$ac_objext
8312 lt_save_LIBS="$LIBS"
8313 lt_save_CFLAGS="$CFLAGS"
8314 LIBS="conftstm.$ac_objext"
8315 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8316 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8317 (eval $ac_link) 2>&5
8318 ac_status=$?
8319 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8320 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8321 pipe_works=yes
8323 LIBS="$lt_save_LIBS"
8324 CFLAGS="$lt_save_CFLAGS"
8325 else
8326 echo "cannot find nm_test_func in $nlist" >&5
8328 else
8329 echo "cannot find nm_test_var in $nlist" >&5
8331 else
8332 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8334 else
8335 echo "$progname: failed program was:" >&5
8336 cat conftest.$ac_ext >&5
8338 rm -rf conftest* conftst*
8340 # Do not use the global_symbol_pipe unless it works.
8341 if test "$pipe_works" = yes; then
8342 break
8343 else
8344 lt_cv_sys_global_symbol_pipe=
8346 done
8350 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8351 lt_cv_sys_global_symbol_to_cdecl=
8353 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8355 $as_echo "failed" >&6; }
8356 else
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8358 $as_echo "ok" >&6; }
8382 # Check whether --enable-libtool-lock was given.
8383 if test "${enable_libtool_lock+set}" = set; then :
8384 enableval=$enable_libtool_lock;
8387 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8389 # Some flags need to be propagated to the compiler or linker for good
8390 # libtool support.
8391 case $host in
8392 ia64-*-hpux*)
8393 # Find out which ABI we are using.
8394 echo 'int i;' > conftest.$ac_ext
8395 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8396 (eval $ac_compile) 2>&5
8397 ac_status=$?
8398 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8399 test $ac_status = 0; }; then
8400 case `/usr/bin/file conftest.$ac_objext` in
8401 *ELF-32*)
8402 HPUX_IA64_MODE="32"
8404 *ELF-64*)
8405 HPUX_IA64_MODE="64"
8407 esac
8409 rm -rf conftest*
8411 *-*-irix6*)
8412 # Find out which ABI we are using.
8413 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8414 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8415 (eval $ac_compile) 2>&5
8416 ac_status=$?
8417 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8418 test $ac_status = 0; }; then
8419 if test "$lt_cv_prog_gnu_ld" = yes; then
8420 case `/usr/bin/file conftest.$ac_objext` in
8421 *32-bit*)
8422 LD="${LD-ld} -melf32bsmip"
8424 *N32*)
8425 LD="${LD-ld} -melf32bmipn32"
8427 *64-bit*)
8428 LD="${LD-ld} -melf64bmip"
8430 esac
8431 else
8432 case `/usr/bin/file conftest.$ac_objext` in
8433 *32-bit*)
8434 LD="${LD-ld} -32"
8436 *N32*)
8437 LD="${LD-ld} -n32"
8439 *64-bit*)
8440 LD="${LD-ld} -64"
8442 esac
8445 rm -rf conftest*
8448 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8449 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8450 # Find out which ABI we are using.
8451 echo 'int i;' > conftest.$ac_ext
8452 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8453 (eval $ac_compile) 2>&5
8454 ac_status=$?
8455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8456 test $ac_status = 0; }; then
8457 case `/usr/bin/file conftest.o` in
8458 *32-bit*)
8459 case $host in
8460 x86_64-*kfreebsd*-gnu)
8461 LD="${LD-ld} -m elf_i386_fbsd"
8463 x86_64-*linux*)
8464 case `/usr/bin/file conftest.o` in
8465 *x86-64*)
8466 LD="${LD-ld} -m elf32_x86_64"
8469 LD="${LD-ld} -m elf_i386"
8471 esac
8473 powerpc64le-*linux*)
8474 LD="${LD-ld} -m elf32lppclinux"
8476 powerpc64-*linux*)
8477 LD="${LD-ld} -m elf32ppclinux"
8479 s390x-*linux*)
8480 LD="${LD-ld} -m elf_s390"
8482 sparc64-*linux*)
8483 LD="${LD-ld} -m elf32_sparc"
8485 esac
8487 *64-bit*)
8488 case $host in
8489 x86_64-*kfreebsd*-gnu)
8490 LD="${LD-ld} -m elf_x86_64_fbsd"
8492 x86_64-*linux*)
8493 LD="${LD-ld} -m elf_x86_64"
8495 powerpcle-*linux*)
8496 LD="${LD-ld} -m elf64lppc"
8498 powerpc-*linux*)
8499 LD="${LD-ld} -m elf64ppc"
8501 s390*-*linux*|s390*-*tpf*)
8502 LD="${LD-ld} -m elf64_s390"
8504 sparc*-*linux*)
8505 LD="${LD-ld} -m elf64_sparc"
8507 esac
8509 esac
8511 rm -rf conftest*
8514 *-*-sco3.2v5*)
8515 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8516 SAVE_CFLAGS="$CFLAGS"
8517 CFLAGS="$CFLAGS -belf"
8518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8519 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8520 if ${lt_cv_cc_needs_belf+:} false; then :
8521 $as_echo_n "(cached) " >&6
8522 else
8523 ac_ext=c
8524 ac_cpp='$CPP $CPPFLAGS'
8525 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8526 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8527 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8529 if test x$gcc_no_link = xyes; then
8530 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8533 /* end confdefs.h. */
8536 main ()
8540 return 0;
8542 _ACEOF
8543 if ac_fn_c_try_link "$LINENO"; then :
8544 lt_cv_cc_needs_belf=yes
8545 else
8546 lt_cv_cc_needs_belf=no
8548 rm -f core conftest.err conftest.$ac_objext \
8549 conftest$ac_exeext conftest.$ac_ext
8550 ac_ext=c
8551 ac_cpp='$CPP $CPPFLAGS'
8552 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8553 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8554 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8558 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8559 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8560 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8561 CFLAGS="$SAVE_CFLAGS"
8564 sparc*-*solaris*)
8565 # Find out which ABI we are using.
8566 echo 'int i;' > conftest.$ac_ext
8567 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8568 (eval $ac_compile) 2>&5
8569 ac_status=$?
8570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8571 test $ac_status = 0; }; then
8572 case `/usr/bin/file conftest.o` in
8573 *64-bit*)
8574 case $lt_cv_prog_gnu_ld in
8575 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8577 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8578 LD="${LD-ld} -64"
8581 esac
8583 esac
8585 rm -rf conftest*
8587 esac
8589 need_locks="$enable_libtool_lock"
8592 case $host_os in
8593 rhapsody* | darwin*)
8594 if test -n "$ac_tool_prefix"; then
8595 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8596 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8598 $as_echo_n "checking for $ac_word... " >&6; }
8599 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8600 $as_echo_n "(cached) " >&6
8601 else
8602 if test -n "$DSYMUTIL"; then
8603 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8604 else
8605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8606 for as_dir in $PATH
8608 IFS=$as_save_IFS
8609 test -z "$as_dir" && as_dir=.
8610 for ac_exec_ext in '' $ac_executable_extensions; do
8611 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8612 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8613 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8614 break 2
8616 done
8617 done
8618 IFS=$as_save_IFS
8622 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8623 if test -n "$DSYMUTIL"; then
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8625 $as_echo "$DSYMUTIL" >&6; }
8626 else
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8628 $as_echo "no" >&6; }
8633 if test -z "$ac_cv_prog_DSYMUTIL"; then
8634 ac_ct_DSYMUTIL=$DSYMUTIL
8635 # Extract the first word of "dsymutil", so it can be a program name with args.
8636 set dummy dsymutil; ac_word=$2
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8638 $as_echo_n "checking for $ac_word... " >&6; }
8639 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8640 $as_echo_n "(cached) " >&6
8641 else
8642 if test -n "$ac_ct_DSYMUTIL"; then
8643 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8644 else
8645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8646 for as_dir in $PATH
8648 IFS=$as_save_IFS
8649 test -z "$as_dir" && as_dir=.
8650 for ac_exec_ext in '' $ac_executable_extensions; do
8651 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8652 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8654 break 2
8656 done
8657 done
8658 IFS=$as_save_IFS
8662 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8663 if test -n "$ac_ct_DSYMUTIL"; then
8664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8665 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8666 else
8667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8668 $as_echo "no" >&6; }
8671 if test "x$ac_ct_DSYMUTIL" = x; then
8672 DSYMUTIL=":"
8673 else
8674 case $cross_compiling:$ac_tool_warned in
8675 yes:)
8676 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8677 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8678 ac_tool_warned=yes ;;
8679 esac
8680 DSYMUTIL=$ac_ct_DSYMUTIL
8682 else
8683 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8686 if test -n "$ac_tool_prefix"; then
8687 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8688 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8690 $as_echo_n "checking for $ac_word... " >&6; }
8691 if ${ac_cv_prog_NMEDIT+:} false; then :
8692 $as_echo_n "(cached) " >&6
8693 else
8694 if test -n "$NMEDIT"; then
8695 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8696 else
8697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8698 for as_dir in $PATH
8700 IFS=$as_save_IFS
8701 test -z "$as_dir" && as_dir=.
8702 for ac_exec_ext in '' $ac_executable_extensions; do
8703 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8704 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8705 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8706 break 2
8708 done
8709 done
8710 IFS=$as_save_IFS
8714 NMEDIT=$ac_cv_prog_NMEDIT
8715 if test -n "$NMEDIT"; then
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8717 $as_echo "$NMEDIT" >&6; }
8718 else
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8720 $as_echo "no" >&6; }
8725 if test -z "$ac_cv_prog_NMEDIT"; then
8726 ac_ct_NMEDIT=$NMEDIT
8727 # Extract the first word of "nmedit", so it can be a program name with args.
8728 set dummy nmedit; ac_word=$2
8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8730 $as_echo_n "checking for $ac_word... " >&6; }
8731 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8732 $as_echo_n "(cached) " >&6
8733 else
8734 if test -n "$ac_ct_NMEDIT"; then
8735 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8736 else
8737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8738 for as_dir in $PATH
8740 IFS=$as_save_IFS
8741 test -z "$as_dir" && as_dir=.
8742 for ac_exec_ext in '' $ac_executable_extensions; do
8743 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8744 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8745 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8746 break 2
8748 done
8749 done
8750 IFS=$as_save_IFS
8754 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8755 if test -n "$ac_ct_NMEDIT"; then
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8757 $as_echo "$ac_ct_NMEDIT" >&6; }
8758 else
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760 $as_echo "no" >&6; }
8763 if test "x$ac_ct_NMEDIT" = x; then
8764 NMEDIT=":"
8765 else
8766 case $cross_compiling:$ac_tool_warned in
8767 yes:)
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8769 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8770 ac_tool_warned=yes ;;
8771 esac
8772 NMEDIT=$ac_ct_NMEDIT
8774 else
8775 NMEDIT="$ac_cv_prog_NMEDIT"
8778 if test -n "$ac_tool_prefix"; then
8779 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8780 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8782 $as_echo_n "checking for $ac_word... " >&6; }
8783 if ${ac_cv_prog_LIPO+:} false; then :
8784 $as_echo_n "(cached) " >&6
8785 else
8786 if test -n "$LIPO"; then
8787 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8788 else
8789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8790 for as_dir in $PATH
8792 IFS=$as_save_IFS
8793 test -z "$as_dir" && as_dir=.
8794 for ac_exec_ext in '' $ac_executable_extensions; do
8795 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8796 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8797 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8798 break 2
8800 done
8801 done
8802 IFS=$as_save_IFS
8806 LIPO=$ac_cv_prog_LIPO
8807 if test -n "$LIPO"; then
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8809 $as_echo "$LIPO" >&6; }
8810 else
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8812 $as_echo "no" >&6; }
8817 if test -z "$ac_cv_prog_LIPO"; then
8818 ac_ct_LIPO=$LIPO
8819 # Extract the first word of "lipo", so it can be a program name with args.
8820 set dummy lipo; ac_word=$2
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8822 $as_echo_n "checking for $ac_word... " >&6; }
8823 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8824 $as_echo_n "(cached) " >&6
8825 else
8826 if test -n "$ac_ct_LIPO"; then
8827 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8828 else
8829 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8830 for as_dir in $PATH
8832 IFS=$as_save_IFS
8833 test -z "$as_dir" && as_dir=.
8834 for ac_exec_ext in '' $ac_executable_extensions; do
8835 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8836 ac_cv_prog_ac_ct_LIPO="lipo"
8837 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8838 break 2
8840 done
8841 done
8842 IFS=$as_save_IFS
8846 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8847 if test -n "$ac_ct_LIPO"; then
8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8849 $as_echo "$ac_ct_LIPO" >&6; }
8850 else
8851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8852 $as_echo "no" >&6; }
8855 if test "x$ac_ct_LIPO" = x; then
8856 LIPO=":"
8857 else
8858 case $cross_compiling:$ac_tool_warned in
8859 yes:)
8860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8861 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8862 ac_tool_warned=yes ;;
8863 esac
8864 LIPO=$ac_ct_LIPO
8866 else
8867 LIPO="$ac_cv_prog_LIPO"
8870 if test -n "$ac_tool_prefix"; then
8871 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8872 set dummy ${ac_tool_prefix}otool; ac_word=$2
8873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8874 $as_echo_n "checking for $ac_word... " >&6; }
8875 if ${ac_cv_prog_OTOOL+:} false; then :
8876 $as_echo_n "(cached) " >&6
8877 else
8878 if test -n "$OTOOL"; then
8879 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8880 else
8881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8882 for as_dir in $PATH
8884 IFS=$as_save_IFS
8885 test -z "$as_dir" && as_dir=.
8886 for ac_exec_ext in '' $ac_executable_extensions; do
8887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8888 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8890 break 2
8892 done
8893 done
8894 IFS=$as_save_IFS
8898 OTOOL=$ac_cv_prog_OTOOL
8899 if test -n "$OTOOL"; then
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8901 $as_echo "$OTOOL" >&6; }
8902 else
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8904 $as_echo "no" >&6; }
8909 if test -z "$ac_cv_prog_OTOOL"; then
8910 ac_ct_OTOOL=$OTOOL
8911 # Extract the first word of "otool", so it can be a program name with args.
8912 set dummy otool; ac_word=$2
8913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8914 $as_echo_n "checking for $ac_word... " >&6; }
8915 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8916 $as_echo_n "(cached) " >&6
8917 else
8918 if test -n "$ac_ct_OTOOL"; then
8919 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8920 else
8921 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8922 for as_dir in $PATH
8924 IFS=$as_save_IFS
8925 test -z "$as_dir" && as_dir=.
8926 for ac_exec_ext in '' $ac_executable_extensions; do
8927 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8928 ac_cv_prog_ac_ct_OTOOL="otool"
8929 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8930 break 2
8932 done
8933 done
8934 IFS=$as_save_IFS
8938 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8939 if test -n "$ac_ct_OTOOL"; then
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8941 $as_echo "$ac_ct_OTOOL" >&6; }
8942 else
8943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8944 $as_echo "no" >&6; }
8947 if test "x$ac_ct_OTOOL" = x; then
8948 OTOOL=":"
8949 else
8950 case $cross_compiling:$ac_tool_warned in
8951 yes:)
8952 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8953 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8954 ac_tool_warned=yes ;;
8955 esac
8956 OTOOL=$ac_ct_OTOOL
8958 else
8959 OTOOL="$ac_cv_prog_OTOOL"
8962 if test -n "$ac_tool_prefix"; then
8963 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8964 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8966 $as_echo_n "checking for $ac_word... " >&6; }
8967 if ${ac_cv_prog_OTOOL64+:} false; then :
8968 $as_echo_n "(cached) " >&6
8969 else
8970 if test -n "$OTOOL64"; then
8971 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8972 else
8973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8974 for as_dir in $PATH
8976 IFS=$as_save_IFS
8977 test -z "$as_dir" && as_dir=.
8978 for ac_exec_ext in '' $ac_executable_extensions; do
8979 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8980 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8981 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8982 break 2
8984 done
8985 done
8986 IFS=$as_save_IFS
8990 OTOOL64=$ac_cv_prog_OTOOL64
8991 if test -n "$OTOOL64"; then
8992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8993 $as_echo "$OTOOL64" >&6; }
8994 else
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8996 $as_echo "no" >&6; }
9001 if test -z "$ac_cv_prog_OTOOL64"; then
9002 ac_ct_OTOOL64=$OTOOL64
9003 # Extract the first word of "otool64", so it can be a program name with args.
9004 set dummy otool64; ac_word=$2
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9006 $as_echo_n "checking for $ac_word... " >&6; }
9007 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9008 $as_echo_n "(cached) " >&6
9009 else
9010 if test -n "$ac_ct_OTOOL64"; then
9011 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9012 else
9013 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9014 for as_dir in $PATH
9016 IFS=$as_save_IFS
9017 test -z "$as_dir" && as_dir=.
9018 for ac_exec_ext in '' $ac_executable_extensions; do
9019 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9020 ac_cv_prog_ac_ct_OTOOL64="otool64"
9021 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9022 break 2
9024 done
9025 done
9026 IFS=$as_save_IFS
9030 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9031 if test -n "$ac_ct_OTOOL64"; then
9032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9033 $as_echo "$ac_ct_OTOOL64" >&6; }
9034 else
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9036 $as_echo "no" >&6; }
9039 if test "x$ac_ct_OTOOL64" = x; then
9040 OTOOL64=":"
9041 else
9042 case $cross_compiling:$ac_tool_warned in
9043 yes:)
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9045 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9046 ac_tool_warned=yes ;;
9047 esac
9048 OTOOL64=$ac_ct_OTOOL64
9050 else
9051 OTOOL64="$ac_cv_prog_OTOOL64"
9080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9081 $as_echo_n "checking for -single_module linker flag... " >&6; }
9082 if ${lt_cv_apple_cc_single_mod+:} false; then :
9083 $as_echo_n "(cached) " >&6
9084 else
9085 lt_cv_apple_cc_single_mod=no
9086 if test -z "${LT_MULTI_MODULE}"; then
9087 # By default we will add the -single_module flag. You can override
9088 # by either setting the environment variable LT_MULTI_MODULE
9089 # non-empty at configure time, or by adding -multi_module to the
9090 # link flags.
9091 rm -rf libconftest.dylib*
9092 echo "int foo(void){return 1;}" > conftest.c
9093 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9094 -dynamiclib -Wl,-single_module conftest.c" >&5
9095 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9096 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9097 _lt_result=$?
9098 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9099 lt_cv_apple_cc_single_mod=yes
9100 else
9101 cat conftest.err >&5
9103 rm -rf libconftest.dylib*
9104 rm -f conftest.*
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9108 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9110 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9111 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9112 $as_echo_n "(cached) " >&6
9113 else
9114 lt_cv_ld_exported_symbols_list=no
9115 save_LDFLAGS=$LDFLAGS
9116 echo "_main" > conftest.sym
9117 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9118 if test x$gcc_no_link = xyes; then
9119 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9122 /* end confdefs.h. */
9125 main ()
9129 return 0;
9131 _ACEOF
9132 if ac_fn_c_try_link "$LINENO"; then :
9133 lt_cv_ld_exported_symbols_list=yes
9134 else
9135 lt_cv_ld_exported_symbols_list=no
9137 rm -f core conftest.err conftest.$ac_objext \
9138 conftest$ac_exeext conftest.$ac_ext
9139 LDFLAGS="$save_LDFLAGS"
9142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9143 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9145 $as_echo_n "checking for -force_load linker flag... " >&6; }
9146 if ${lt_cv_ld_force_load+:} false; then :
9147 $as_echo_n "(cached) " >&6
9148 else
9149 lt_cv_ld_force_load=no
9150 cat > conftest.c << _LT_EOF
9151 int forced_loaded() { return 2;}
9152 _LT_EOF
9153 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9154 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9155 echo "$AR cru libconftest.a conftest.o" >&5
9156 $AR cru libconftest.a conftest.o 2>&5
9157 cat > conftest.c << _LT_EOF
9158 int main() { return 0;}
9159 _LT_EOF
9160 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9161 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9162 _lt_result=$?
9163 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9164 lt_cv_ld_force_load=yes
9165 else
9166 cat conftest.err >&5
9168 rm -f conftest.err libconftest.a conftest conftest.c
9169 rm -rf conftest.dSYM
9172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9173 $as_echo "$lt_cv_ld_force_load" >&6; }
9174 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
9175 # build without first building modern cctools / linker.
9176 case $host_cpu-$host_os in
9177 *-rhapsody* | *-darwin1.[012])
9178 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9179 *-darwin1.*)
9180 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9181 *-darwin*)
9182 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
9183 # deployment target is forced to an earlier version.
9184 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
9185 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0-9]*)
9187 10.[012][,.]*)
9188 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9192 esac
9194 esac
9195 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9196 _lt_dar_single_mod='$single_module'
9198 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9199 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9200 else
9201 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9203 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9204 _lt_dsymutil='~$DSYMUTIL $lib || :'
9205 else
9206 _lt_dsymutil=
9209 esac
9211 for ac_header in dlfcn.h
9212 do :
9213 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9215 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9216 cat >>confdefs.h <<_ACEOF
9217 #define HAVE_DLFCN_H 1
9218 _ACEOF
9222 done
9229 # Set options
9233 enable_dlopen=no
9236 enable_win32_dll=no
9239 # Check whether --enable-shared was given.
9240 if test "${enable_shared+set}" = set; then :
9241 enableval=$enable_shared; p=${PACKAGE-default}
9242 case $enableval in
9243 yes) enable_shared=yes ;;
9244 no) enable_shared=no ;;
9246 enable_shared=no
9247 # Look at the argument we got. We use all the common list separators.
9248 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9249 for pkg in $enableval; do
9250 IFS="$lt_save_ifs"
9251 if test "X$pkg" = "X$p"; then
9252 enable_shared=yes
9254 done
9255 IFS="$lt_save_ifs"
9257 esac
9258 else
9259 enable_shared=yes
9270 # Check whether --enable-static was given.
9271 if test "${enable_static+set}" = set; then :
9272 enableval=$enable_static; p=${PACKAGE-default}
9273 case $enableval in
9274 yes) enable_static=yes ;;
9275 no) enable_static=no ;;
9277 enable_static=no
9278 # Look at the argument we got. We use all the common list separators.
9279 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9280 for pkg in $enableval; do
9281 IFS="$lt_save_ifs"
9282 if test "X$pkg" = "X$p"; then
9283 enable_static=yes
9285 done
9286 IFS="$lt_save_ifs"
9288 esac
9289 else
9290 enable_static=yes
9302 # Check whether --with-pic was given.
9303 if test "${with_pic+set}" = set; then :
9304 withval=$with_pic; pic_mode="$withval"
9305 else
9306 pic_mode=default
9310 test -z "$pic_mode" && pic_mode=default
9318 # Check whether --enable-fast-install was given.
9319 if test "${enable_fast_install+set}" = set; then :
9320 enableval=$enable_fast_install; p=${PACKAGE-default}
9321 case $enableval in
9322 yes) enable_fast_install=yes ;;
9323 no) enable_fast_install=no ;;
9325 enable_fast_install=no
9326 # Look at the argument we got. We use all the common list separators.
9327 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9328 for pkg in $enableval; do
9329 IFS="$lt_save_ifs"
9330 if test "X$pkg" = "X$p"; then
9331 enable_fast_install=yes
9333 done
9334 IFS="$lt_save_ifs"
9336 esac
9337 else
9338 enable_fast_install=yes
9351 # This can be used to rebuild libtool when needed
9352 LIBTOOL_DEPS="$ltmain"
9354 # Always use our own libtool.
9355 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9382 test -z "$LN_S" && LN_S="ln -s"
9397 if test -n "${ZSH_VERSION+set}" ; then
9398 setopt NO_GLOB_SUBST
9401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9402 $as_echo_n "checking for objdir... " >&6; }
9403 if ${lt_cv_objdir+:} false; then :
9404 $as_echo_n "(cached) " >&6
9405 else
9406 rm -f .libs 2>/dev/null
9407 mkdir .libs 2>/dev/null
9408 if test -d .libs; then
9409 lt_cv_objdir=.libs
9410 else
9411 # MS-DOS does not allow filenames that begin with a dot.
9412 lt_cv_objdir=_libs
9414 rmdir .libs 2>/dev/null
9416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9417 $as_echo "$lt_cv_objdir" >&6; }
9418 objdir=$lt_cv_objdir
9424 cat >>confdefs.h <<_ACEOF
9425 #define LT_OBJDIR "$lt_cv_objdir/"
9426 _ACEOF
9431 case $host_os in
9432 aix3*)
9433 # AIX sometimes has problems with the GCC collect2 program. For some
9434 # reason, if we set the COLLECT_NAMES environment variable, the problems
9435 # vanish in a puff of smoke.
9436 if test "X${COLLECT_NAMES+set}" != Xset; then
9437 COLLECT_NAMES=
9438 export COLLECT_NAMES
9441 esac
9443 # Global variables:
9444 ofile=libtool
9445 can_build_shared=yes
9447 # All known linkers require a `.a' archive for static linking (except MSVC,
9448 # which needs '.lib').
9449 libext=a
9451 with_gnu_ld="$lt_cv_prog_gnu_ld"
9453 old_CC="$CC"
9454 old_CFLAGS="$CFLAGS"
9456 # Set sane defaults for various variables
9457 test -z "$CC" && CC=cc
9458 test -z "$LTCC" && LTCC=$CC
9459 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9460 test -z "$LD" && LD=ld
9461 test -z "$ac_objext" && ac_objext=o
9463 for cc_temp in $compiler""; do
9464 case $cc_temp in
9465 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9466 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9467 \-*) ;;
9468 *) break;;
9469 esac
9470 done
9471 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9474 # Only perform the check for file, if the check method requires it
9475 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9476 case $deplibs_check_method in
9477 file_magic*)
9478 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9480 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9481 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9482 $as_echo_n "(cached) " >&6
9483 else
9484 case $MAGIC_CMD in
9485 [\\/*] | ?:[\\/]*)
9486 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9489 lt_save_MAGIC_CMD="$MAGIC_CMD"
9490 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9491 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9492 for ac_dir in $ac_dummy; do
9493 IFS="$lt_save_ifs"
9494 test -z "$ac_dir" && ac_dir=.
9495 if test -f $ac_dir/${ac_tool_prefix}file; then
9496 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9497 if test -n "$file_magic_test_file"; then
9498 case $deplibs_check_method in
9499 "file_magic "*)
9500 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9501 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9502 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9503 $EGREP "$file_magic_regex" > /dev/null; then
9505 else
9506 cat <<_LT_EOF 1>&2
9508 *** Warning: the command libtool uses to detect shared libraries,
9509 *** $file_magic_cmd, produces output that libtool cannot recognize.
9510 *** The result is that libtool may fail to recognize shared libraries
9511 *** as such. This will affect the creation of libtool libraries that
9512 *** depend on shared libraries, but programs linked with such libtool
9513 *** libraries will work regardless of this problem. Nevertheless, you
9514 *** may want to report the problem to your system manager and/or to
9515 *** bug-libtool@gnu.org
9517 _LT_EOF
9518 fi ;;
9519 esac
9521 break
9523 done
9524 IFS="$lt_save_ifs"
9525 MAGIC_CMD="$lt_save_MAGIC_CMD"
9527 esac
9530 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9531 if test -n "$MAGIC_CMD"; then
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9533 $as_echo "$MAGIC_CMD" >&6; }
9534 else
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9536 $as_echo "no" >&6; }
9543 if test -z "$lt_cv_path_MAGIC_CMD"; then
9544 if test -n "$ac_tool_prefix"; then
9545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9546 $as_echo_n "checking for file... " >&6; }
9547 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9548 $as_echo_n "(cached) " >&6
9549 else
9550 case $MAGIC_CMD in
9551 [\\/*] | ?:[\\/]*)
9552 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9555 lt_save_MAGIC_CMD="$MAGIC_CMD"
9556 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9557 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9558 for ac_dir in $ac_dummy; do
9559 IFS="$lt_save_ifs"
9560 test -z "$ac_dir" && ac_dir=.
9561 if test -f $ac_dir/file; then
9562 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9563 if test -n "$file_magic_test_file"; then
9564 case $deplibs_check_method in
9565 "file_magic "*)
9566 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9567 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9568 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9569 $EGREP "$file_magic_regex" > /dev/null; then
9571 else
9572 cat <<_LT_EOF 1>&2
9574 *** Warning: the command libtool uses to detect shared libraries,
9575 *** $file_magic_cmd, produces output that libtool cannot recognize.
9576 *** The result is that libtool may fail to recognize shared libraries
9577 *** as such. This will affect the creation of libtool libraries that
9578 *** depend on shared libraries, but programs linked with such libtool
9579 *** libraries will work regardless of this problem. Nevertheless, you
9580 *** may want to report the problem to your system manager and/or to
9581 *** bug-libtool@gnu.org
9583 _LT_EOF
9584 fi ;;
9585 esac
9587 break
9589 done
9590 IFS="$lt_save_ifs"
9591 MAGIC_CMD="$lt_save_MAGIC_CMD"
9593 esac
9596 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9597 if test -n "$MAGIC_CMD"; then
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9599 $as_echo "$MAGIC_CMD" >&6; }
9600 else
9601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9602 $as_echo "no" >&6; }
9606 else
9607 MAGIC_CMD=:
9613 esac
9615 # Use C for the default configuration in the libtool script
9617 lt_save_CC="$CC"
9618 ac_ext=c
9619 ac_cpp='$CPP $CPPFLAGS'
9620 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9621 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9622 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9625 # Source file extension for C test sources.
9626 ac_ext=c
9628 # Object file extension for compiled C test sources.
9629 objext=o
9630 objext=$objext
9632 # Code to be used in simple compile tests
9633 lt_simple_compile_test_code="int some_variable = 0;"
9635 # Code to be used in simple link tests
9636 lt_simple_link_test_code='int main(){return(0);}'
9644 # If no C compiler was specified, use CC.
9645 LTCC=${LTCC-"$CC"}
9647 # If no C compiler flags were specified, use CFLAGS.
9648 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9650 # Allow CC to be a program name with arguments.
9651 compiler=$CC
9653 # Save the default compiler, since it gets overwritten when the other
9654 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9655 compiler_DEFAULT=$CC
9657 # save warnings/boilerplate of simple test code
9658 ac_outfile=conftest.$ac_objext
9659 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9660 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9661 _lt_compiler_boilerplate=`cat conftest.err`
9662 $RM conftest*
9664 ac_outfile=conftest.$ac_objext
9665 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9666 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9667 _lt_linker_boilerplate=`cat conftest.err`
9668 $RM -r conftest*
9671 ## CAVEAT EMPTOR:
9672 ## There is no encapsulation within the following macros, do not change
9673 ## the running order or otherwise move them around unless you know exactly
9674 ## what you are doing...
9675 if test -n "$compiler"; then
9677 lt_prog_compiler_no_builtin_flag=
9679 if test "$GCC" = yes; then
9680 case $cc_basename in
9681 nvcc*)
9682 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9684 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9685 esac
9687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9688 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9689 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9690 $as_echo_n "(cached) " >&6
9691 else
9692 lt_cv_prog_compiler_rtti_exceptions=no
9693 ac_outfile=conftest.$ac_objext
9694 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9695 lt_compiler_flag="-fno-rtti -fno-exceptions"
9696 # Insert the option either (1) after the last *FLAGS variable, or
9697 # (2) before a word containing "conftest.", or (3) at the end.
9698 # Note that $ac_compile itself does not contain backslashes and begins
9699 # with a dollar sign (not a hyphen), so the echo should work correctly.
9700 # The option is referenced via a variable to avoid confusing sed.
9701 lt_compile=`echo "$ac_compile" | $SED \
9702 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9703 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9704 -e 's:$: $lt_compiler_flag:'`
9705 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9706 (eval "$lt_compile" 2>conftest.err)
9707 ac_status=$?
9708 cat conftest.err >&5
9709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9710 if (exit $ac_status) && test -s "$ac_outfile"; then
9711 # The compiler can only warn and ignore the option if not recognized
9712 # So say no if there are warnings other than the usual output.
9713 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9714 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9715 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9716 lt_cv_prog_compiler_rtti_exceptions=yes
9719 $RM conftest*
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9723 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9725 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9726 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9727 else
9738 lt_prog_compiler_wl=
9739 lt_prog_compiler_pic=
9740 lt_prog_compiler_static=
9742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9743 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9745 if test "$GCC" = yes; then
9746 lt_prog_compiler_wl='-Wl,'
9747 lt_prog_compiler_static='-static'
9749 case $host_os in
9750 aix*)
9751 # All AIX code is PIC.
9752 if test "$host_cpu" = ia64; then
9753 # AIX 5 now supports IA64 processor
9754 lt_prog_compiler_static='-Bstatic'
9756 lt_prog_compiler_pic='-fPIC'
9759 amigaos*)
9760 case $host_cpu in
9761 powerpc)
9762 # see comment about AmigaOS4 .so support
9763 lt_prog_compiler_pic='-fPIC'
9765 m68k)
9766 # FIXME: we need at least 68020 code to build shared libraries, but
9767 # adding the `-m68020' flag to GCC prevents building anything better,
9768 # like `-m68040'.
9769 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9771 esac
9774 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9775 # PIC is the default for these OSes.
9778 mingw* | cygwin* | pw32* | os2* | cegcc*)
9779 # This hack is so that the source file can tell whether it is being
9780 # built for inclusion in a dll (and should export symbols for example).
9781 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9782 # (--disable-auto-import) libraries
9783 lt_prog_compiler_pic='-DDLL_EXPORT'
9786 darwin* | rhapsody*)
9787 # PIC is the default on this platform
9788 # Common symbols not allowed in MH_DYLIB files
9789 lt_prog_compiler_pic='-fno-common'
9792 haiku*)
9793 # PIC is the default for Haiku.
9794 # The "-static" flag exists, but is broken.
9795 lt_prog_compiler_static=
9798 hpux*)
9799 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9800 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9801 # sets the default TLS model and affects inlining.
9802 case $host_cpu in
9803 hppa*64*)
9804 # +Z the default
9807 lt_prog_compiler_pic='-fPIC'
9809 esac
9812 interix[3-9]*)
9813 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9814 # Instead, we relocate shared libraries at runtime.
9817 msdosdjgpp*)
9818 # Just because we use GCC doesn't mean we suddenly get shared libraries
9819 # on systems that don't support them.
9820 lt_prog_compiler_can_build_shared=no
9821 enable_shared=no
9824 *nto* | *qnx*)
9825 # QNX uses GNU C++, but need to define -shared option too, otherwise
9826 # it will coredump.
9827 lt_prog_compiler_pic='-fPIC -shared'
9830 sysv4*MP*)
9831 if test -d /usr/nec; then
9832 lt_prog_compiler_pic=-Kconform_pic
9837 lt_prog_compiler_pic='-fPIC'
9839 esac
9841 case $cc_basename in
9842 nvcc*) # Cuda Compiler Driver 2.2
9843 lt_prog_compiler_wl='-Xlinker '
9844 lt_prog_compiler_pic='-Xcompiler -fPIC'
9846 esac
9847 else
9848 # PORTME Check for flag to pass linker flags through the system compiler.
9849 case $host_os in
9850 aix*)
9851 lt_prog_compiler_wl='-Wl,'
9852 if test "$host_cpu" = ia64; then
9853 # AIX 5 now supports IA64 processor
9854 lt_prog_compiler_static='-Bstatic'
9855 else
9856 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9860 mingw* | cygwin* | pw32* | os2* | cegcc*)
9861 # This hack is so that the source file can tell whether it is being
9862 # built for inclusion in a dll (and should export symbols for example).
9863 lt_prog_compiler_pic='-DDLL_EXPORT'
9866 hpux9* | hpux10* | hpux11*)
9867 lt_prog_compiler_wl='-Wl,'
9868 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9869 # not for PA HP-UX.
9870 case $host_cpu in
9871 hppa*64*|ia64*)
9872 # +Z the default
9875 lt_prog_compiler_pic='+Z'
9877 esac
9878 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9879 lt_prog_compiler_static='${wl}-a ${wl}archive'
9882 irix5* | irix6* | nonstopux*)
9883 lt_prog_compiler_wl='-Wl,'
9884 # PIC (with -KPIC) is the default.
9885 lt_prog_compiler_static='-non_shared'
9888 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9889 case $cc_basename in
9890 # old Intel for x86_64 which still supported -KPIC.
9891 ecc*)
9892 lt_prog_compiler_wl='-Wl,'
9893 lt_prog_compiler_pic='-KPIC'
9894 lt_prog_compiler_static='-static'
9896 # icc used to be incompatible with GCC.
9897 # ICC 10 doesn't accept -KPIC any more.
9898 icc* | ifort*)
9899 lt_prog_compiler_wl='-Wl,'
9900 lt_prog_compiler_pic='-fPIC'
9901 lt_prog_compiler_static='-static'
9903 # Lahey Fortran 8.1.
9904 lf95*)
9905 lt_prog_compiler_wl='-Wl,'
9906 lt_prog_compiler_pic='--shared'
9907 lt_prog_compiler_static='--static'
9909 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9910 # Portland Group compilers (*not* the Pentium gcc compiler,
9911 # which looks to be a dead project)
9912 lt_prog_compiler_wl='-Wl,'
9913 lt_prog_compiler_pic='-fpic'
9914 lt_prog_compiler_static='-Bstatic'
9916 ccc*)
9917 lt_prog_compiler_wl='-Wl,'
9918 # All Alpha code is PIC.
9919 lt_prog_compiler_static='-non_shared'
9921 xl* | bgxl* | bgf* | mpixl*)
9922 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9923 lt_prog_compiler_wl='-Wl,'
9924 lt_prog_compiler_pic='-qpic'
9925 lt_prog_compiler_static='-qstaticlink'
9928 case `$CC -V 2>&1 | sed 5q` in
9929 *Sun\ F* | *Sun*Fortran*)
9930 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9931 lt_prog_compiler_pic='-KPIC'
9932 lt_prog_compiler_static='-Bstatic'
9933 lt_prog_compiler_wl=''
9935 *Sun\ C*)
9936 # Sun C 5.9
9937 lt_prog_compiler_pic='-KPIC'
9938 lt_prog_compiler_static='-Bstatic'
9939 lt_prog_compiler_wl='-Wl,'
9941 esac
9943 esac
9946 newsos6)
9947 lt_prog_compiler_pic='-KPIC'
9948 lt_prog_compiler_static='-Bstatic'
9951 *nto* | *qnx*)
9952 # QNX uses GNU C++, but need to define -shared option too, otherwise
9953 # it will coredump.
9954 lt_prog_compiler_pic='-fPIC -shared'
9957 osf3* | osf4* | osf5*)
9958 lt_prog_compiler_wl='-Wl,'
9959 # All OSF/1 code is PIC.
9960 lt_prog_compiler_static='-non_shared'
9963 rdos*)
9964 lt_prog_compiler_static='-non_shared'
9967 solaris*)
9968 lt_prog_compiler_pic='-KPIC'
9969 lt_prog_compiler_static='-Bstatic'
9970 case $cc_basename in
9971 f77* | f90* | f95*)
9972 lt_prog_compiler_wl='-Qoption ld ';;
9974 lt_prog_compiler_wl='-Wl,';;
9975 esac
9978 sunos4*)
9979 lt_prog_compiler_wl='-Qoption ld '
9980 lt_prog_compiler_pic='-PIC'
9981 lt_prog_compiler_static='-Bstatic'
9984 sysv4 | sysv4.2uw2* | sysv4.3*)
9985 lt_prog_compiler_wl='-Wl,'
9986 lt_prog_compiler_pic='-KPIC'
9987 lt_prog_compiler_static='-Bstatic'
9990 sysv4*MP*)
9991 if test -d /usr/nec ;then
9992 lt_prog_compiler_pic='-Kconform_pic'
9993 lt_prog_compiler_static='-Bstatic'
9997 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9998 lt_prog_compiler_wl='-Wl,'
9999 lt_prog_compiler_pic='-KPIC'
10000 lt_prog_compiler_static='-Bstatic'
10003 unicos*)
10004 lt_prog_compiler_wl='-Wl,'
10005 lt_prog_compiler_can_build_shared=no
10008 uts4*)
10009 lt_prog_compiler_pic='-pic'
10010 lt_prog_compiler_static='-Bstatic'
10014 lt_prog_compiler_can_build_shared=no
10016 esac
10019 case $host_os in
10020 # For platforms which do not support PIC, -DPIC is meaningless:
10021 *djgpp*)
10022 lt_prog_compiler_pic=
10025 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10027 esac
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10029 $as_echo "$lt_prog_compiler_pic" >&6; }
10037 # Check to make sure the PIC flag actually works.
10039 if test -n "$lt_prog_compiler_pic"; then
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10041 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10042 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10043 $as_echo_n "(cached) " >&6
10044 else
10045 lt_cv_prog_compiler_pic_works=no
10046 ac_outfile=conftest.$ac_objext
10047 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10048 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10049 # Insert the option either (1) after the last *FLAGS variable, or
10050 # (2) before a word containing "conftest.", or (3) at the end.
10051 # Note that $ac_compile itself does not contain backslashes and begins
10052 # with a dollar sign (not a hyphen), so the echo should work correctly.
10053 # The option is referenced via a variable to avoid confusing sed.
10054 lt_compile=`echo "$ac_compile" | $SED \
10055 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10056 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10057 -e 's:$: $lt_compiler_flag:'`
10058 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10059 (eval "$lt_compile" 2>conftest.err)
10060 ac_status=$?
10061 cat conftest.err >&5
10062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10063 if (exit $ac_status) && test -s "$ac_outfile"; then
10064 # The compiler can only warn and ignore the option if not recognized
10065 # So say no if there are warnings other than the usual output.
10066 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10067 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10068 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10069 lt_cv_prog_compiler_pic_works=yes
10072 $RM conftest*
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10076 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10078 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10079 case $lt_prog_compiler_pic in
10080 "" | " "*) ;;
10081 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10082 esac
10083 else
10084 lt_prog_compiler_pic=
10085 lt_prog_compiler_can_build_shared=no
10096 # Check to make sure the static flag actually works.
10098 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10100 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10101 if ${lt_cv_prog_compiler_static_works+:} false; then :
10102 $as_echo_n "(cached) " >&6
10103 else
10104 lt_cv_prog_compiler_static_works=no
10105 save_LDFLAGS="$LDFLAGS"
10106 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10107 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10108 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10109 # The linker can only warn and ignore the option if not recognized
10110 # So say no if there are warnings
10111 if test -s conftest.err; then
10112 # Append any errors to the config.log.
10113 cat conftest.err 1>&5
10114 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10115 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10116 if diff conftest.exp conftest.er2 >/dev/null; then
10117 lt_cv_prog_compiler_static_works=yes
10119 else
10120 lt_cv_prog_compiler_static_works=yes
10123 $RM -r conftest*
10124 LDFLAGS="$save_LDFLAGS"
10127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10128 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10130 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10132 else
10133 lt_prog_compiler_static=
10142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10143 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10144 if ${lt_cv_prog_compiler_c_o+:} false; then :
10145 $as_echo_n "(cached) " >&6
10146 else
10147 lt_cv_prog_compiler_c_o=no
10148 $RM -r conftest 2>/dev/null
10149 mkdir conftest
10150 cd conftest
10151 mkdir out
10152 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10154 lt_compiler_flag="-o out/conftest2.$ac_objext"
10155 # Insert the option either (1) after the last *FLAGS variable, or
10156 # (2) before a word containing "conftest.", or (3) at the end.
10157 # Note that $ac_compile itself does not contain backslashes and begins
10158 # with a dollar sign (not a hyphen), so the echo should work correctly.
10159 lt_compile=`echo "$ac_compile" | $SED \
10160 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10161 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10162 -e 's:$: $lt_compiler_flag:'`
10163 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10164 (eval "$lt_compile" 2>out/conftest.err)
10165 ac_status=$?
10166 cat out/conftest.err >&5
10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10168 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10169 then
10170 # The compiler can only warn and ignore the option if not recognized
10171 # So say no if there are warnings
10172 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10173 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10174 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10175 lt_cv_prog_compiler_c_o=yes
10178 chmod u+w . 2>&5
10179 $RM conftest*
10180 # SGI C++ compiler will create directory out/ii_files/ for
10181 # template instantiation
10182 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10183 $RM out/* && rmdir out
10184 cd ..
10185 $RM -r conftest
10186 $RM conftest*
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10190 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10198 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10199 if ${lt_cv_prog_compiler_c_o+:} false; then :
10200 $as_echo_n "(cached) " >&6
10201 else
10202 lt_cv_prog_compiler_c_o=no
10203 $RM -r conftest 2>/dev/null
10204 mkdir conftest
10205 cd conftest
10206 mkdir out
10207 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10209 lt_compiler_flag="-o out/conftest2.$ac_objext"
10210 # Insert the option either (1) after the last *FLAGS variable, or
10211 # (2) before a word containing "conftest.", or (3) at the end.
10212 # Note that $ac_compile itself does not contain backslashes and begins
10213 # with a dollar sign (not a hyphen), so the echo should work correctly.
10214 lt_compile=`echo "$ac_compile" | $SED \
10215 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10216 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10217 -e 's:$: $lt_compiler_flag:'`
10218 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10219 (eval "$lt_compile" 2>out/conftest.err)
10220 ac_status=$?
10221 cat out/conftest.err >&5
10222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10223 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10224 then
10225 # The compiler can only warn and ignore the option if not recognized
10226 # So say no if there are warnings
10227 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10228 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10229 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10230 lt_cv_prog_compiler_c_o=yes
10233 chmod u+w . 2>&5
10234 $RM conftest*
10235 # SGI C++ compiler will create directory out/ii_files/ for
10236 # template instantiation
10237 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10238 $RM out/* && rmdir out
10239 cd ..
10240 $RM -r conftest
10241 $RM conftest*
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10245 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10250 hard_links="nottested"
10251 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10252 # do not overwrite the value of need_locks provided by the user
10253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10254 $as_echo_n "checking if we can lock with hard links... " >&6; }
10255 hard_links=yes
10256 $RM conftest*
10257 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10258 touch conftest.a
10259 ln conftest.a conftest.b 2>&5 || hard_links=no
10260 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10262 $as_echo "$hard_links" >&6; }
10263 if test "$hard_links" = no; then
10264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10265 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10266 need_locks=warn
10268 else
10269 need_locks=no
10277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10278 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10280 runpath_var=
10281 allow_undefined_flag=
10282 always_export_symbols=no
10283 archive_cmds=
10284 archive_expsym_cmds=
10285 compiler_needs_object=no
10286 enable_shared_with_static_runtimes=no
10287 export_dynamic_flag_spec=
10288 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10289 hardcode_automatic=no
10290 hardcode_direct=no
10291 hardcode_direct_absolute=no
10292 hardcode_libdir_flag_spec=
10293 hardcode_libdir_flag_spec_ld=
10294 hardcode_libdir_separator=
10295 hardcode_minus_L=no
10296 hardcode_shlibpath_var=unsupported
10297 inherit_rpath=no
10298 link_all_deplibs=unknown
10299 module_cmds=
10300 module_expsym_cmds=
10301 old_archive_from_new_cmds=
10302 old_archive_from_expsyms_cmds=
10303 thread_safe_flag_spec=
10304 whole_archive_flag_spec=
10305 # include_expsyms should be a list of space-separated symbols to be *always*
10306 # included in the symbol list
10307 include_expsyms=
10308 # exclude_expsyms can be an extended regexp of symbols to exclude
10309 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10310 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10311 # as well as any symbol that contains `d'.
10312 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10313 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10314 # platforms (ab)use it in PIC code, but their linkers get confused if
10315 # the symbol is explicitly referenced. Since portable code cannot
10316 # rely on this symbol name, it's probably fine to never include it in
10317 # preloaded symbol tables.
10318 # Exclude shared library initialization/finalization symbols.
10319 extract_expsyms_cmds=
10321 case $host_os in
10322 cygwin* | mingw* | pw32* | cegcc*)
10323 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10324 # When not using gcc, we currently assume that we are using
10325 # Microsoft Visual C++.
10326 if test "$GCC" != yes; then
10327 with_gnu_ld=no
10330 interix*)
10331 # we just hope/assume this is gcc and not c89 (= MSVC++)
10332 with_gnu_ld=yes
10334 openbsd*)
10335 with_gnu_ld=no
10337 esac
10339 ld_shlibs=yes
10341 # On some targets, GNU ld is compatible enough with the native linker
10342 # that we're better off using the native interface for both.
10343 lt_use_gnu_ld_interface=no
10344 if test "$with_gnu_ld" = yes; then
10345 case $host_os in
10346 aix*)
10347 # The AIX port of GNU ld has always aspired to compatibility
10348 # with the native linker. However, as the warning in the GNU ld
10349 # block says, versions before 2.19.5* couldn't really create working
10350 # shared libraries, regardless of the interface used.
10351 case `$LD -v 2>&1` in
10352 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10353 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10354 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10356 lt_use_gnu_ld_interface=yes
10358 esac
10361 lt_use_gnu_ld_interface=yes
10363 esac
10366 if test "$lt_use_gnu_ld_interface" = yes; then
10367 # If archive_cmds runs LD, not CC, wlarc should be empty
10368 wlarc='${wl}'
10370 # Set some defaults for GNU ld with shared library support. These
10371 # are reset later if shared libraries are not supported. Putting them
10372 # here allows them to be overridden if necessary.
10373 runpath_var=LD_RUN_PATH
10374 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10375 export_dynamic_flag_spec='${wl}--export-dynamic'
10376 # ancient GNU ld didn't support --whole-archive et. al.
10377 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10378 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10379 else
10380 whole_archive_flag_spec=
10382 supports_anon_versioning=no
10383 case `$LD -v 2>&1` in
10384 *GNU\ gold*) supports_anon_versioning=yes ;;
10385 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10386 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10387 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10388 *\ 2.11.*) ;; # other 2.11 versions
10389 *) supports_anon_versioning=yes ;;
10390 esac
10392 # See if GNU ld supports shared libraries.
10393 case $host_os in
10394 aix[3-9]*)
10395 # On AIX/PPC, the GNU linker is very broken
10396 if test "$host_cpu" != ia64; then
10397 ld_shlibs=no
10398 cat <<_LT_EOF 1>&2
10400 *** Warning: the GNU linker, at least up to release 2.19, is reported
10401 *** to be unable to reliably create shared libraries on AIX.
10402 *** Therefore, libtool is disabling shared libraries support. If you
10403 *** really care for shared libraries, you may want to install binutils
10404 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10405 *** You will then need to restart the configuration process.
10407 _LT_EOF
10411 amigaos*)
10412 case $host_cpu in
10413 powerpc)
10414 # see comment about AmigaOS4 .so support
10415 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10416 archive_expsym_cmds=''
10418 m68k)
10419 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)'
10420 hardcode_libdir_flag_spec='-L$libdir'
10421 hardcode_minus_L=yes
10423 esac
10426 beos*)
10427 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10428 allow_undefined_flag=unsupported
10429 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10430 # support --undefined. This deserves some investigation. FIXME
10431 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10432 else
10433 ld_shlibs=no
10437 cygwin* | mingw* | pw32* | cegcc*)
10438 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10439 # as there is no search path for DLLs.
10440 hardcode_libdir_flag_spec='-L$libdir'
10441 export_dynamic_flag_spec='${wl}--export-all-symbols'
10442 allow_undefined_flag=unsupported
10443 always_export_symbols=no
10444 enable_shared_with_static_runtimes=yes
10445 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10447 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10448 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10449 # If the export-symbols file already is a .def file (1st line
10450 # is EXPORTS), use it as is; otherwise, prepend...
10451 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10452 cp $export_symbols $output_objdir/$soname.def;
10453 else
10454 echo EXPORTS > $output_objdir/$soname.def;
10455 cat $export_symbols >> $output_objdir/$soname.def;
10457 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10458 else
10459 ld_shlibs=no
10463 haiku*)
10464 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10465 link_all_deplibs=yes
10468 interix[3-9]*)
10469 hardcode_direct=no
10470 hardcode_shlibpath_var=no
10471 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10472 export_dynamic_flag_spec='${wl}-E'
10473 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10474 # Instead, shared libraries are loaded at an image base (0x10000000 by
10475 # default) and relocated if they conflict, which is a slow very memory
10476 # consuming and fragmenting process. To avoid this, we pick a random,
10477 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10478 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10479 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10480 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'
10483 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10484 tmp_diet=no
10485 if test "$host_os" = linux-dietlibc; then
10486 case $cc_basename in
10487 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10488 esac
10490 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10491 && test "$tmp_diet" = no
10492 then
10493 tmp_addflag=' $pic_flag'
10494 tmp_sharedflag='-shared'
10495 case $cc_basename,$host_cpu in
10496 pgcc*) # Portland Group C compiler
10497 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'
10498 tmp_addflag=' $pic_flag'
10500 pgf77* | pgf90* | pgf95* | pgfortran*)
10501 # Portland Group f77 and f90 compilers
10502 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'
10503 tmp_addflag=' $pic_flag -Mnomain' ;;
10504 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10505 tmp_addflag=' -i_dynamic' ;;
10506 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10507 tmp_addflag=' -i_dynamic -nofor_main' ;;
10508 ifc* | ifort*) # Intel Fortran compiler
10509 tmp_addflag=' -nofor_main' ;;
10510 lf95*) # Lahey Fortran 8.1
10511 whole_archive_flag_spec=
10512 tmp_sharedflag='--shared' ;;
10513 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10514 tmp_sharedflag='-qmkshrobj'
10515 tmp_addflag= ;;
10516 nvcc*) # Cuda Compiler Driver 2.2
10517 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'
10518 compiler_needs_object=yes
10520 esac
10521 case `$CC -V 2>&1 | sed 5q` in
10522 *Sun\ C*) # Sun C 5.9
10523 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'
10524 compiler_needs_object=yes
10525 tmp_sharedflag='-G' ;;
10526 *Sun\ F*) # Sun Fortran 8.3
10527 tmp_sharedflag='-G' ;;
10528 esac
10529 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10531 if test "x$supports_anon_versioning" = xyes; then
10532 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10533 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10534 echo "local: *; };" >> $output_objdir/$libname.ver~
10535 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10538 case $cc_basename in
10539 xlf* | bgf* | bgxlf* | mpixlf*)
10540 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10541 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10542 hardcode_libdir_flag_spec=
10543 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10544 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10545 if test "x$supports_anon_versioning" = xyes; then
10546 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10547 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10548 echo "local: *; };" >> $output_objdir/$libname.ver~
10549 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10552 esac
10553 else
10554 ld_shlibs=no
10558 netbsd*)
10559 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10560 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10561 wlarc=
10562 else
10563 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10564 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10568 solaris*)
10569 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10570 ld_shlibs=no
10571 cat <<_LT_EOF 1>&2
10573 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10574 *** create shared libraries on Solaris systems. Therefore, libtool
10575 *** is disabling shared libraries support. We urge you to upgrade GNU
10576 *** binutils to release 2.9.1 or newer. Another option is to modify
10577 *** your PATH or compiler configuration so that the native linker is
10578 *** used, and then restart.
10580 _LT_EOF
10581 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10582 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10583 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10584 else
10585 ld_shlibs=no
10589 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10590 case `$LD -v 2>&1` in
10591 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10592 ld_shlibs=no
10593 cat <<_LT_EOF 1>&2
10595 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10596 *** reliably create shared libraries on SCO systems. Therefore, libtool
10597 *** is disabling shared libraries support. We urge you to upgrade GNU
10598 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10599 *** your PATH or compiler configuration so that the native linker is
10600 *** used, and then restart.
10602 _LT_EOF
10605 # For security reasons, it is highly recommended that you always
10606 # use absolute paths for naming shared libraries, and exclude the
10607 # DT_RUNPATH tag from executables and libraries. But doing so
10608 # requires that you compile everything twice, which is a pain.
10609 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10610 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10611 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10612 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10613 else
10614 ld_shlibs=no
10617 esac
10620 sunos4*)
10621 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10622 wlarc=
10623 hardcode_direct=yes
10624 hardcode_shlibpath_var=no
10628 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10629 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10630 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10631 else
10632 ld_shlibs=no
10635 esac
10637 if test "$ld_shlibs" = no; then
10638 runpath_var=
10639 hardcode_libdir_flag_spec=
10640 export_dynamic_flag_spec=
10641 whole_archive_flag_spec=
10643 else
10644 # PORTME fill in a description of your system's linker (not GNU ld)
10645 case $host_os in
10646 aix3*)
10647 allow_undefined_flag=unsupported
10648 always_export_symbols=yes
10649 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'
10650 # Note: this linker hardcodes the directories in LIBPATH if there
10651 # are no directories specified by -L.
10652 hardcode_minus_L=yes
10653 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10654 # Neither direct hardcoding nor static linking is supported with a
10655 # broken collect2.
10656 hardcode_direct=unsupported
10660 aix[4-9]*)
10661 if test "$host_cpu" = ia64; then
10662 # On IA64, the linker does run time linking by default, so we don't
10663 # have to do anything special.
10664 aix_use_runtimelinking=no
10665 exp_sym_flag='-Bexport'
10666 no_entry_flag=""
10667 else
10668 # If we're using GNU nm, then we don't want the "-C" option.
10669 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10670 # Also, AIX nm treats weak defined symbols like other global
10671 # defined symbols, whereas GNU nm marks them as "W".
10672 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10673 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'
10674 else
10675 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'
10677 aix_use_runtimelinking=no
10679 # Test if we are trying to use run time linking or normal
10680 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10681 # need to do runtime linking.
10682 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10683 for ld_flag in $LDFLAGS; do
10684 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10685 aix_use_runtimelinking=yes
10686 break
10688 done
10690 esac
10692 exp_sym_flag='-bexport'
10693 no_entry_flag='-bnoentry'
10696 # When large executables or shared objects are built, AIX ld can
10697 # have problems creating the table of contents. If linking a library
10698 # or program results in "error TOC overflow" add -mminimal-toc to
10699 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10700 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10702 archive_cmds=''
10703 hardcode_direct=yes
10704 hardcode_direct_absolute=yes
10705 hardcode_libdir_separator=':'
10706 link_all_deplibs=yes
10707 file_list_spec='${wl}-f,'
10709 if test "$GCC" = yes; then
10710 case $host_os in aix4.[012]|aix4.[012].*)
10711 # We only want to do this on AIX 4.2 and lower, the check
10712 # below for broken collect2 doesn't work under 4.3+
10713 collect2name=`${CC} -print-prog-name=collect2`
10714 if test -f "$collect2name" &&
10715 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10716 then
10717 # We have reworked collect2
10719 else
10720 # We have old collect2
10721 hardcode_direct=unsupported
10722 # It fails to find uninstalled libraries when the uninstalled
10723 # path is not listed in the libpath. Setting hardcode_minus_L
10724 # to unsupported forces relinking
10725 hardcode_minus_L=yes
10726 hardcode_libdir_flag_spec='-L$libdir'
10727 hardcode_libdir_separator=
10730 esac
10731 shared_flag='-shared'
10732 if test "$aix_use_runtimelinking" = yes; then
10733 shared_flag="$shared_flag "'${wl}-G'
10735 else
10736 # not using gcc
10737 if test "$host_cpu" = ia64; then
10738 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10739 # chokes on -Wl,-G. The following line is correct:
10740 shared_flag='-G'
10741 else
10742 if test "$aix_use_runtimelinking" = yes; then
10743 shared_flag='${wl}-G'
10744 else
10745 shared_flag='${wl}-bM:SRE'
10750 export_dynamic_flag_spec='${wl}-bexpall'
10751 # It seems that -bexpall does not export symbols beginning with
10752 # underscore (_), so it is better to generate a list of symbols to export.
10753 always_export_symbols=yes
10754 if test "$aix_use_runtimelinking" = yes; then
10755 # Warning - without using the other runtime loading flags (-brtl),
10756 # -berok will link without error, but may produce a broken library.
10757 allow_undefined_flag='-berok'
10758 # Determine the default libpath from the value encoded in an
10759 # empty executable.
10760 if test x$gcc_no_link = xyes; then
10761 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10764 /* end confdefs.h. */
10767 main ()
10771 return 0;
10773 _ACEOF
10774 if ac_fn_c_try_link "$LINENO"; then :
10776 lt_aix_libpath_sed='
10777 /Import File Strings/,/^$/ {
10778 /^0/ {
10779 s/^0 *\(.*\)$/\1/
10783 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10784 # Check for a 64-bit object if we didn't find anything.
10785 if test -z "$aix_libpath"; then
10786 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10789 rm -f core conftest.err conftest.$ac_objext \
10790 conftest$ac_exeext conftest.$ac_ext
10791 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10793 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10794 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"
10795 else
10796 if test "$host_cpu" = ia64; then
10797 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10798 allow_undefined_flag="-z nodefs"
10799 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"
10800 else
10801 # Determine the default libpath from the value encoded in an
10802 # empty executable.
10803 if test x$gcc_no_link = xyes; then
10804 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10806 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10807 /* end confdefs.h. */
10810 main ()
10814 return 0;
10816 _ACEOF
10817 if ac_fn_c_try_link "$LINENO"; then :
10819 lt_aix_libpath_sed='
10820 /Import File Strings/,/^$/ {
10821 /^0/ {
10822 s/^0 *\(.*\)$/\1/
10826 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10827 # Check for a 64-bit object if we didn't find anything.
10828 if test -z "$aix_libpath"; then
10829 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10832 rm -f core conftest.err conftest.$ac_objext \
10833 conftest$ac_exeext conftest.$ac_ext
10834 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10836 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10837 # Warning - without using the other run time loading flags,
10838 # -berok will link without error, but may produce a broken library.
10839 no_undefined_flag=' ${wl}-bernotok'
10840 allow_undefined_flag=' ${wl}-berok'
10841 if test "$with_gnu_ld" = yes; then
10842 # We only use this code for GNU lds that support --whole-archive.
10843 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10844 else
10845 # Exported symbols can be pulled into shared objects from archives
10846 whole_archive_flag_spec='$convenience'
10848 archive_cmds_need_lc=yes
10849 # This is similar to how AIX traditionally builds its shared libraries.
10850 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'
10855 amigaos*)
10856 case $host_cpu in
10857 powerpc)
10858 # see comment about AmigaOS4 .so support
10859 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10860 archive_expsym_cmds=''
10862 m68k)
10863 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)'
10864 hardcode_libdir_flag_spec='-L$libdir'
10865 hardcode_minus_L=yes
10867 esac
10870 bsdi[45]*)
10871 export_dynamic_flag_spec=-rdynamic
10874 cygwin* | mingw* | pw32* | cegcc*)
10875 # When not using gcc, we currently assume that we are using
10876 # Microsoft Visual C++.
10877 # hardcode_libdir_flag_spec is actually meaningless, as there is
10878 # no search path for DLLs.
10879 hardcode_libdir_flag_spec=' '
10880 allow_undefined_flag=unsupported
10881 # Tell ltmain to make .lib files, not .a files.
10882 libext=lib
10883 # Tell ltmain to make .dll files, not .so files.
10884 shrext_cmds=".dll"
10885 # FIXME: Setting linknames here is a bad hack.
10886 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10887 # The linker will automatically build a .lib file if we build a DLL.
10888 old_archive_from_new_cmds='true'
10889 # FIXME: Should let the user specify the lib program.
10890 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10891 fix_srcfile_path='`cygpath -w "$srcfile"`'
10892 enable_shared_with_static_runtimes=yes
10895 darwin* | rhapsody*)
10899 # Publish an arg to allow the user to select that Darwin host (and target)
10900 # libraries should be given install-names like @rpath/libfoo.dylib. This
10901 # requires that the user of the library then adds an 'rpath' to the DSO that
10902 # needs access.
10903 # NOTE: there are defaults below, for systems that support rpaths. The person
10904 # configuring can override the defaults for any system version that supports
10905 # them - they are, however, forced off for system versions without support.
10906 # Check whether --enable-darwin-at-rpath was given.
10907 if test "${enable_darwin_at_rpath+set}" = set; then :
10908 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
10909 # This is not supported before macOS 10.5 / Darwin9.
10910 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10911 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
10913 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
10914 enable_darwin_at_rpath=no
10916 esac
10918 else
10919 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
10920 # As above, before 10.5 / Darwin9 this does not work.
10921 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
10922 enable_darwin_at_rpath=no
10925 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
10926 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
10927 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
10928 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
10929 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
10930 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
10931 enable_darwin_at_rpath=yes
10933 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
10934 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
10936 esac
10941 archive_cmds_need_lc=no
10942 hardcode_direct=no
10943 hardcode_automatic=yes
10944 hardcode_shlibpath_var=unsupported
10945 if test "$lt_cv_ld_force_load" = "yes"; then
10946 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\"`'
10947 else
10948 whole_archive_flag_spec=''
10950 link_all_deplibs=yes
10951 allow_undefined_flag="$_lt_dar_allow_undefined"
10952 case $cc_basename in
10953 ifort*) _lt_dar_can_shared=yes ;;
10954 *) _lt_dar_can_shared=$GCC ;;
10955 esac
10956 if test "$_lt_dar_can_shared" = "yes"; then
10957 output_verbose_link_cmd=func_echo_all
10958 _lt_install_name='\$rpath/\$soname'
10959 if test "x$enable_darwin_at_rpath" = "xyes"; then
10960 _lt_install_name='@rpath/\$soname'
10962 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
10963 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10964 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}"
10965 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}"
10967 else
10968 ld_shlibs=no
10973 dgux*)
10974 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10975 hardcode_libdir_flag_spec='-L$libdir'
10976 hardcode_shlibpath_var=no
10979 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10980 # support. Future versions do this automatically, but an explicit c++rt0.o
10981 # does not break anything, and helps significantly (at the cost of a little
10982 # extra space).
10983 freebsd2.2*)
10984 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10985 hardcode_libdir_flag_spec='-R$libdir'
10986 hardcode_direct=yes
10987 hardcode_shlibpath_var=no
10990 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10991 freebsd2.*)
10992 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10993 hardcode_direct=yes
10994 hardcode_minus_L=yes
10995 hardcode_shlibpath_var=no
10998 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10999 freebsd* | dragonfly*)
11000 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
11001 hardcode_libdir_flag_spec='-R$libdir'
11002 hardcode_direct=yes
11003 hardcode_shlibpath_var=no
11006 hpux9*)
11007 if test "$GCC" = yes; then
11008 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'
11009 else
11010 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'
11012 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11013 hardcode_libdir_separator=:
11014 hardcode_direct=yes
11016 # hardcode_minus_L: Not really in the search PATH,
11017 # but as the default location of the library.
11018 hardcode_minus_L=yes
11019 export_dynamic_flag_spec='${wl}-E'
11022 hpux10*)
11023 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11024 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11025 else
11026 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11028 if test "$with_gnu_ld" = no; then
11029 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11030 hardcode_libdir_flag_spec_ld='+b $libdir'
11031 hardcode_libdir_separator=:
11032 hardcode_direct=yes
11033 hardcode_direct_absolute=yes
11034 export_dynamic_flag_spec='${wl}-E'
11035 # hardcode_minus_L: Not really in the search PATH,
11036 # but as the default location of the library.
11037 hardcode_minus_L=yes
11041 hpux11*)
11042 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
11043 case $host_cpu in
11044 hppa*64*)
11045 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11047 ia64*)
11048 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11051 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11053 esac
11054 else
11055 case $host_cpu in
11056 hppa*64*)
11057 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11059 ia64*)
11060 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11064 # Older versions of the 11.00 compiler do not understand -b yet
11065 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11067 $as_echo_n "checking if $CC understands -b... " >&6; }
11068 if ${lt_cv_prog_compiler__b+:} false; then :
11069 $as_echo_n "(cached) " >&6
11070 else
11071 lt_cv_prog_compiler__b=no
11072 save_LDFLAGS="$LDFLAGS"
11073 LDFLAGS="$LDFLAGS -b"
11074 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11075 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11076 # The linker can only warn and ignore the option if not recognized
11077 # So say no if there are warnings
11078 if test -s conftest.err; then
11079 # Append any errors to the config.log.
11080 cat conftest.err 1>&5
11081 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11082 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11083 if diff conftest.exp conftest.er2 >/dev/null; then
11084 lt_cv_prog_compiler__b=yes
11086 else
11087 lt_cv_prog_compiler__b=yes
11090 $RM -r conftest*
11091 LDFLAGS="$save_LDFLAGS"
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11095 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11097 if test x"$lt_cv_prog_compiler__b" = xyes; then
11098 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11099 else
11100 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11104 esac
11106 if test "$with_gnu_ld" = no; then
11107 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11108 hardcode_libdir_separator=:
11110 case $host_cpu in
11111 hppa*64*|ia64*)
11112 hardcode_direct=no
11113 hardcode_shlibpath_var=no
11116 hardcode_direct=yes
11117 hardcode_direct_absolute=yes
11118 export_dynamic_flag_spec='${wl}-E'
11120 # hardcode_minus_L: Not really in the search PATH,
11121 # but as the default location of the library.
11122 hardcode_minus_L=yes
11124 esac
11128 irix5* | irix6* | nonstopux*)
11129 if test "$GCC" = yes; then
11130 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'
11131 # Try to use the -exported_symbol ld option, if it does not
11132 # work, assume that -exports_file does not work either and
11133 # implicitly export all symbols.
11134 save_LDFLAGS="$LDFLAGS"
11135 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11136 if test x$gcc_no_link = xyes; then
11137 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11140 /* end confdefs.h. */
11141 int foo(void) {}
11142 _ACEOF
11143 if ac_fn_c_try_link "$LINENO"; then :
11144 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'
11147 rm -f core conftest.err conftest.$ac_objext \
11148 conftest$ac_exeext conftest.$ac_ext
11149 LDFLAGS="$save_LDFLAGS"
11150 else
11151 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'
11152 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'
11154 archive_cmds_need_lc='no'
11155 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11156 hardcode_libdir_separator=:
11157 inherit_rpath=yes
11158 link_all_deplibs=yes
11161 netbsd*)
11162 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11163 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11164 else
11165 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11167 hardcode_libdir_flag_spec='-R$libdir'
11168 hardcode_direct=yes
11169 hardcode_shlibpath_var=no
11172 newsos6)
11173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11174 hardcode_direct=yes
11175 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11176 hardcode_libdir_separator=:
11177 hardcode_shlibpath_var=no
11180 *nto* | *qnx*)
11183 openbsd*)
11184 if test -f /usr/libexec/ld.so; then
11185 hardcode_direct=yes
11186 hardcode_shlibpath_var=no
11187 hardcode_direct_absolute=yes
11188 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11189 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11190 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11191 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11192 export_dynamic_flag_spec='${wl}-E'
11193 else
11194 case $host_os in
11195 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11196 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11197 hardcode_libdir_flag_spec='-R$libdir'
11200 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11201 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11203 esac
11205 else
11206 ld_shlibs=no
11210 os2*)
11211 hardcode_libdir_flag_spec='-L$libdir'
11212 hardcode_minus_L=yes
11213 allow_undefined_flag=unsupported
11214 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'
11215 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11218 osf3*)
11219 if test "$GCC" = yes; then
11220 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11221 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'
11222 else
11223 allow_undefined_flag=' -expect_unresolved \*'
11224 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'
11226 archive_cmds_need_lc='no'
11227 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11228 hardcode_libdir_separator=:
11231 osf4* | osf5*) # as osf3* with the addition of -msym flag
11232 if test "$GCC" = yes; then
11233 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11234 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'
11235 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11236 else
11237 allow_undefined_flag=' -expect_unresolved \*'
11238 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'
11239 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~
11240 $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'
11242 # Both c and cxx compiler support -rpath directly
11243 hardcode_libdir_flag_spec='-rpath $libdir'
11245 archive_cmds_need_lc='no'
11246 hardcode_libdir_separator=:
11249 solaris*)
11250 no_undefined_flag=' -z defs'
11251 if test "$GCC" = yes; then
11252 wlarc='${wl}'
11253 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11254 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11255 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11256 else
11257 case `$CC -V 2>&1` in
11258 *"Compilers 5.0"*)
11259 wlarc=''
11260 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11261 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11262 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11265 wlarc='${wl}'
11266 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11267 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11268 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11270 esac
11272 hardcode_libdir_flag_spec='-R$libdir'
11273 hardcode_shlibpath_var=no
11274 case $host_os in
11275 solaris2.[0-5] | solaris2.[0-5].*) ;;
11277 # The compiler driver will combine and reorder linker options,
11278 # but understands `-z linker_flag'. GCC discards it without `$wl',
11279 # but is careful enough not to reorder.
11280 # Supported since Solaris 2.6 (maybe 2.5.1?)
11281 if test "$GCC" = yes; then
11282 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11283 else
11284 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11287 esac
11288 link_all_deplibs=yes
11291 sunos4*)
11292 if test "x$host_vendor" = xsequent; then
11293 # Use $CC to link under sequent, because it throws in some extra .o
11294 # files that make .init and .fini sections work.
11295 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11296 else
11297 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11299 hardcode_libdir_flag_spec='-L$libdir'
11300 hardcode_direct=yes
11301 hardcode_minus_L=yes
11302 hardcode_shlibpath_var=no
11305 sysv4)
11306 case $host_vendor in
11307 sni)
11308 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11309 hardcode_direct=yes # is this really true???
11311 siemens)
11312 ## LD is ld it makes a PLAMLIB
11313 ## CC just makes a GrossModule.
11314 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11315 reload_cmds='$CC -r -o $output$reload_objs'
11316 hardcode_direct=no
11318 motorola)
11319 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11320 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11322 esac
11323 runpath_var='LD_RUN_PATH'
11324 hardcode_shlibpath_var=no
11327 sysv4.3*)
11328 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11329 hardcode_shlibpath_var=no
11330 export_dynamic_flag_spec='-Bexport'
11333 sysv4*MP*)
11334 if test -d /usr/nec; then
11335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11336 hardcode_shlibpath_var=no
11337 runpath_var=LD_RUN_PATH
11338 hardcode_runpath_var=yes
11339 ld_shlibs=yes
11343 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11344 no_undefined_flag='${wl}-z,text'
11345 archive_cmds_need_lc=no
11346 hardcode_shlibpath_var=no
11347 runpath_var='LD_RUN_PATH'
11349 if test "$GCC" = yes; then
11350 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11351 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11352 else
11353 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11354 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11358 sysv5* | sco3.2v5* | sco5v6*)
11359 # Note: We can NOT use -z defs as we might desire, because we do not
11360 # link with -lc, and that would cause any symbols used from libc to
11361 # always be unresolved, which means just about no library would
11362 # ever link correctly. If we're not using GNU ld we use -z text
11363 # though, which does catch some bad symbols but isn't as heavy-handed
11364 # as -z defs.
11365 no_undefined_flag='${wl}-z,text'
11366 allow_undefined_flag='${wl}-z,nodefs'
11367 archive_cmds_need_lc=no
11368 hardcode_shlibpath_var=no
11369 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11370 hardcode_libdir_separator=':'
11371 link_all_deplibs=yes
11372 export_dynamic_flag_spec='${wl}-Bexport'
11373 runpath_var='LD_RUN_PATH'
11375 if test "$GCC" = yes; then
11376 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11377 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11378 else
11379 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11380 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11384 uts4*)
11385 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11386 hardcode_libdir_flag_spec='-L$libdir'
11387 hardcode_shlibpath_var=no
11391 ld_shlibs=no
11393 esac
11395 if test x$host_vendor = xsni; then
11396 case $host in
11397 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11398 export_dynamic_flag_spec='${wl}-Blargedynsym'
11400 esac
11404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11405 $as_echo "$ld_shlibs" >&6; }
11406 test "$ld_shlibs" = no && can_build_shared=no
11408 with_gnu_ld=$with_gnu_ld
11425 # Do we need to explicitly link libc?
11427 case "x$archive_cmds_need_lc" in
11428 x|xyes)
11429 # Assume -lc should be added
11430 archive_cmds_need_lc=yes
11432 if test "$enable_shared" = yes && test "$GCC" = yes; then
11433 case $archive_cmds in
11434 *'~'*)
11435 # FIXME: we may have to deal with multi-command sequences.
11437 '$CC '*)
11438 # Test whether the compiler implicitly links with -lc since on some
11439 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11440 # to ld, don't add -lc before -lgcc.
11441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11442 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11443 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11444 $as_echo_n "(cached) " >&6
11445 else
11446 $RM conftest*
11447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11449 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11450 (eval $ac_compile) 2>&5
11451 ac_status=$?
11452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11453 test $ac_status = 0; } 2>conftest.err; then
11454 soname=conftest
11455 lib=conftest
11456 libobjs=conftest.$ac_objext
11457 deplibs=
11458 wl=$lt_prog_compiler_wl
11459 pic_flag=$lt_prog_compiler_pic
11460 compiler_flags=-v
11461 linker_flags=-v
11462 verstring=
11463 output_objdir=.
11464 libname=conftest
11465 lt_save_allow_undefined_flag=$allow_undefined_flag
11466 allow_undefined_flag=
11467 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11468 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11469 ac_status=$?
11470 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11471 test $ac_status = 0; }
11472 then
11473 lt_cv_archive_cmds_need_lc=no
11474 else
11475 lt_cv_archive_cmds_need_lc=yes
11477 allow_undefined_flag=$lt_save_allow_undefined_flag
11478 else
11479 cat conftest.err 1>&5
11481 $RM conftest*
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11485 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11486 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11488 esac
11491 esac
11649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11650 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11652 if test "$GCC" = yes; then
11653 case $host_os in
11654 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11655 *) lt_awk_arg="/^libraries:/" ;;
11656 esac
11657 case $host_os in
11658 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11659 *) lt_sed_strip_eq="s,=/,/,g" ;;
11660 esac
11661 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11662 case $lt_search_path_spec in
11663 *\;*)
11664 # if the path contains ";" then we assume it to be the separator
11665 # otherwise default to the standard path separator (i.e. ":") - it is
11666 # assumed that no part of a normal pathname contains ";" but that should
11667 # okay in the real world where ";" in dirpaths is itself problematic.
11668 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11671 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11673 esac
11674 # Ok, now we have the path, separated by spaces, we can step through it
11675 # and add multilib dir if necessary.
11676 lt_tmp_lt_search_path_spec=
11677 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11678 for lt_sys_path in $lt_search_path_spec; do
11679 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11680 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11681 else
11682 test -d "$lt_sys_path" && \
11683 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11685 done
11686 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11687 BEGIN {RS=" "; FS="/|\n";} {
11688 lt_foo="";
11689 lt_count=0;
11690 for (lt_i = NF; lt_i > 0; lt_i--) {
11691 if ($lt_i != "" && $lt_i != ".") {
11692 if ($lt_i == "..") {
11693 lt_count++;
11694 } else {
11695 if (lt_count == 0) {
11696 lt_foo="/" $lt_i lt_foo;
11697 } else {
11698 lt_count--;
11703 if (lt_foo != "") { lt_freq[lt_foo]++; }
11704 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11706 # AWK program above erroneously prepends '/' to C:/dos/paths
11707 # for these hosts.
11708 case $host_os in
11709 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11710 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11711 esac
11712 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11713 else
11714 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11716 library_names_spec=
11717 libname_spec='lib$name'
11718 soname_spec=
11719 shrext_cmds=".so"
11720 postinstall_cmds=
11721 postuninstall_cmds=
11722 finish_cmds=
11723 finish_eval=
11724 shlibpath_var=
11725 shlibpath_overrides_runpath=unknown
11726 version_type=none
11727 dynamic_linker="$host_os ld.so"
11728 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11729 need_lib_prefix=unknown
11730 hardcode_into_libs=no
11732 # when you set need_version to no, make sure it does not cause -set_version
11733 # flags to be left without arguments
11734 need_version=unknown
11736 case $host_os in
11737 aix3*)
11738 version_type=linux
11739 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11740 shlibpath_var=LIBPATH
11742 # AIX 3 has no versioning support, so we append a major version to the name.
11743 soname_spec='${libname}${release}${shared_ext}$major'
11746 aix[4-9]*)
11747 version_type=linux
11748 need_lib_prefix=no
11749 need_version=no
11750 hardcode_into_libs=yes
11751 if test "$host_cpu" = ia64; then
11752 # AIX 5 supports IA64
11753 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11754 shlibpath_var=LD_LIBRARY_PATH
11755 else
11756 # With GCC up to 2.95.x, collect2 would create an import file
11757 # for dependence libraries. The import file would start with
11758 # the line `#! .'. This would cause the generated library to
11759 # depend on `.', always an invalid library. This was fixed in
11760 # development snapshots of GCC prior to 3.0.
11761 case $host_os in
11762 aix4 | aix4.[01] | aix4.[01].*)
11763 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11764 echo ' yes '
11765 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11767 else
11768 can_build_shared=no
11771 esac
11772 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11773 # soname into executable. Probably we can add versioning support to
11774 # collect2, so additional links can be useful in future.
11775 if test "$aix_use_runtimelinking" = yes; then
11776 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11777 # instead of lib<name>.a to let people know that these are not
11778 # typical AIX shared libraries.
11779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11780 else
11781 # We preserve .a as extension for shared libraries through AIX4.2
11782 # and later when we are not doing run time linking.
11783 library_names_spec='${libname}${release}.a $libname.a'
11784 soname_spec='${libname}${release}${shared_ext}$major'
11786 shlibpath_var=LIBPATH
11790 amigaos*)
11791 case $host_cpu in
11792 powerpc)
11793 # Since July 2007 AmigaOS4 officially supports .so libraries.
11794 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11797 m68k)
11798 library_names_spec='$libname.ixlibrary $libname.a'
11799 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11800 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'
11802 esac
11805 beos*)
11806 library_names_spec='${libname}${shared_ext}'
11807 dynamic_linker="$host_os ld.so"
11808 shlibpath_var=LIBRARY_PATH
11811 bsdi[45]*)
11812 version_type=linux
11813 need_version=no
11814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11815 soname_spec='${libname}${release}${shared_ext}$major'
11816 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11817 shlibpath_var=LD_LIBRARY_PATH
11818 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11819 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11820 # the default ld.so.conf also contains /usr/contrib/lib and
11821 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11822 # libtool to hard-code these into programs
11825 cygwin* | mingw* | pw32* | cegcc*)
11826 version_type=windows
11827 shrext_cmds=".dll"
11828 need_version=no
11829 need_lib_prefix=no
11831 case $GCC,$host_os in
11832 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11833 library_names_spec='$libname.dll.a'
11834 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11835 postinstall_cmds='base_file=`basename \${file}`~
11836 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11837 dldir=$destdir/`dirname \$dlpath`~
11838 test -d \$dldir || mkdir -p \$dldir~
11839 $install_prog $dir/$dlname \$dldir/$dlname~
11840 chmod a+x \$dldir/$dlname~
11841 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11842 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11844 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11845 dlpath=$dir/\$dldll~
11846 $RM \$dlpath'
11847 shlibpath_overrides_runpath=yes
11849 case $host_os in
11850 cygwin*)
11851 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11852 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11854 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11856 mingw* | cegcc*)
11857 # MinGW DLLs use traditional 'lib' prefix
11858 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11860 pw32*)
11861 # pw32 DLLs use 'pw' prefix rather than 'lib'
11862 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11864 esac
11868 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11870 esac
11871 dynamic_linker='Win32 ld.exe'
11872 # FIXME: first we should search . and the directory the executable is in
11873 shlibpath_var=PATH
11876 darwin* | rhapsody*)
11877 dynamic_linker="$host_os dyld"
11878 version_type=darwin
11879 need_lib_prefix=no
11880 need_version=no
11881 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11882 soname_spec='${libname}${release}${major}$shared_ext'
11883 shlibpath_overrides_runpath=yes
11884 shlibpath_var=DYLD_LIBRARY_PATH
11885 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11887 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11888 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11891 dgux*)
11892 version_type=linux
11893 need_lib_prefix=no
11894 need_version=no
11895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11896 soname_spec='${libname}${release}${shared_ext}$major'
11897 shlibpath_var=LD_LIBRARY_PATH
11900 freebsd* | dragonfly*)
11901 # DragonFly does not have aout. When/if they implement a new
11902 # versioning mechanism, adjust this.
11903 if test -x /usr/bin/objformat; then
11904 objformat=`/usr/bin/objformat`
11905 else
11906 case $host_os in
11907 freebsd[23].*) objformat=aout ;;
11908 *) objformat=elf ;;
11909 esac
11911 version_type=freebsd-$objformat
11912 case $version_type in
11913 freebsd-elf*)
11914 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11915 need_version=no
11916 need_lib_prefix=no
11918 freebsd-*)
11919 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11920 need_version=yes
11922 esac
11923 shlibpath_var=LD_LIBRARY_PATH
11924 case $host_os in
11925 freebsd2.*)
11926 shlibpath_overrides_runpath=yes
11928 freebsd3.[01]* | freebsdelf3.[01]*)
11929 shlibpath_overrides_runpath=yes
11930 hardcode_into_libs=yes
11932 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11933 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11934 shlibpath_overrides_runpath=no
11935 hardcode_into_libs=yes
11937 *) # from 4.6 on, and DragonFly
11938 shlibpath_overrides_runpath=yes
11939 hardcode_into_libs=yes
11941 esac
11944 haiku*)
11945 version_type=linux
11946 need_lib_prefix=no
11947 need_version=no
11948 dynamic_linker="$host_os runtime_loader"
11949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11950 soname_spec='${libname}${release}${shared_ext}$major'
11951 shlibpath_var=LIBRARY_PATH
11952 shlibpath_overrides_runpath=yes
11953 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11954 hardcode_into_libs=yes
11957 hpux9* | hpux10* | hpux11*)
11958 # Give a soname corresponding to the major version so that dld.sl refuses to
11959 # link against other versions.
11960 version_type=sunos
11961 need_lib_prefix=no
11962 need_version=no
11963 case $host_cpu in
11964 ia64*)
11965 shrext_cmds='.so'
11966 hardcode_into_libs=yes
11967 dynamic_linker="$host_os dld.so"
11968 shlibpath_var=LD_LIBRARY_PATH
11969 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11971 soname_spec='${libname}${release}${shared_ext}$major'
11972 if test "X$HPUX_IA64_MODE" = X32; then
11973 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11974 else
11975 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11977 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11979 hppa*64*)
11980 shrext_cmds='.sl'
11981 hardcode_into_libs=yes
11982 dynamic_linker="$host_os dld.sl"
11983 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11984 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11986 soname_spec='${libname}${release}${shared_ext}$major'
11987 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11988 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11991 shrext_cmds='.sl'
11992 dynamic_linker="$host_os dld.sl"
11993 shlibpath_var=SHLIB_PATH
11994 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11995 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11996 soname_spec='${libname}${release}${shared_ext}$major'
11998 esac
11999 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
12000 postinstall_cmds='chmod 555 $lib'
12001 # or fails outright, so override atomically:
12002 install_override_mode=555
12005 interix[3-9]*)
12006 version_type=linux
12007 need_lib_prefix=no
12008 need_version=no
12009 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12010 soname_spec='${libname}${release}${shared_ext}$major'
12011 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
12012 shlibpath_var=LD_LIBRARY_PATH
12013 shlibpath_overrides_runpath=no
12014 hardcode_into_libs=yes
12017 irix5* | irix6* | nonstopux*)
12018 case $host_os in
12019 nonstopux*) version_type=nonstopux ;;
12021 if test "$lt_cv_prog_gnu_ld" = yes; then
12022 version_type=linux
12023 else
12024 version_type=irix
12025 fi ;;
12026 esac
12027 need_lib_prefix=no
12028 need_version=no
12029 soname_spec='${libname}${release}${shared_ext}$major'
12030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
12031 case $host_os in
12032 irix5* | nonstopux*)
12033 libsuff= shlibsuff=
12036 case $LD in # libtool.m4 will add one of these switches to LD
12037 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
12038 libsuff= shlibsuff= libmagic=32-bit;;
12039 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
12040 libsuff=32 shlibsuff=N32 libmagic=N32;;
12041 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
12042 libsuff=64 shlibsuff=64 libmagic=64-bit;;
12043 *) libsuff= shlibsuff= libmagic=never-match;;
12044 esac
12046 esac
12047 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
12048 shlibpath_overrides_runpath=no
12049 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12050 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12051 hardcode_into_libs=yes
12054 # No shared lib support for Linux oldld, aout, or coff.
12055 linux*oldld* | linux*aout* | linux*coff*)
12056 dynamic_linker=no
12059 # This must be Linux ELF.
12061 # uclinux* changes (here and below) have been submitted to the libtool
12062 # project, but have not yet been accepted: they are GCC-local changes
12063 # for the time being. (See
12064 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
12065 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
12066 version_type=linux
12067 need_lib_prefix=no
12068 need_version=no
12069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12070 soname_spec='${libname}${release}${shared_ext}$major'
12071 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12072 shlibpath_var=LD_LIBRARY_PATH
12073 shlibpath_overrides_runpath=no
12075 # Some binutils ld are patched to set DT_RUNPATH
12076 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12077 $as_echo_n "(cached) " >&6
12078 else
12079 lt_cv_shlibpath_overrides_runpath=no
12080 save_LDFLAGS=$LDFLAGS
12081 save_libdir=$libdir
12082 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12083 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12084 if test x$gcc_no_link = xyes; then
12085 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12088 /* end confdefs.h. */
12091 main ()
12095 return 0;
12097 _ACEOF
12098 if ac_fn_c_try_link "$LINENO"; then :
12099 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12100 lt_cv_shlibpath_overrides_runpath=yes
12103 rm -f core conftest.err conftest.$ac_objext \
12104 conftest$ac_exeext conftest.$ac_ext
12105 LDFLAGS=$save_LDFLAGS
12106 libdir=$save_libdir
12110 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12112 # This implies no fast_install, which is unacceptable.
12113 # Some rework will be needed to allow for fast_install
12114 # before this can be enabled.
12115 hardcode_into_libs=yes
12117 # Append ld.so.conf contents to the search path
12118 if test -f /etc/ld.so.conf; then
12119 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' ' '`
12120 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12123 # We used to test for /lib/ld.so.1 and disable shared libraries on
12124 # powerpc, because MkLinux only supported shared libraries with the
12125 # GNU dynamic linker. Since this was broken with cross compilers,
12126 # most powerpc-linux boxes support dynamic linking these days and
12127 # people can always --disable-shared, the test was removed, and we
12128 # assume the GNU/Linux dynamic linker is in use.
12129 dynamic_linker='GNU/Linux ld.so'
12132 netbsd*)
12133 version_type=sunos
12134 need_lib_prefix=no
12135 need_version=no
12136 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12138 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12139 dynamic_linker='NetBSD (a.out) ld.so'
12140 else
12141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12142 soname_spec='${libname}${release}${shared_ext}$major'
12143 dynamic_linker='NetBSD ld.elf_so'
12145 shlibpath_var=LD_LIBRARY_PATH
12146 shlibpath_overrides_runpath=yes
12147 hardcode_into_libs=yes
12150 newsos6)
12151 version_type=linux
12152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12153 shlibpath_var=LD_LIBRARY_PATH
12154 shlibpath_overrides_runpath=yes
12157 *nto* | *qnx*)
12158 version_type=qnx
12159 need_lib_prefix=no
12160 need_version=no
12161 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12162 soname_spec='${libname}${release}${shared_ext}$major'
12163 shlibpath_var=LD_LIBRARY_PATH
12164 shlibpath_overrides_runpath=no
12165 hardcode_into_libs=yes
12166 dynamic_linker='ldqnx.so'
12169 openbsd*)
12170 version_type=sunos
12171 sys_lib_dlsearch_path_spec="/usr/lib"
12172 need_lib_prefix=no
12173 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12174 case $host_os in
12175 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12176 *) need_version=no ;;
12177 esac
12178 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12179 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12180 shlibpath_var=LD_LIBRARY_PATH
12181 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12182 case $host_os in
12183 openbsd2.[89] | openbsd2.[89].*)
12184 shlibpath_overrides_runpath=no
12187 shlibpath_overrides_runpath=yes
12189 esac
12190 else
12191 shlibpath_overrides_runpath=yes
12195 os2*)
12196 libname_spec='$name'
12197 shrext_cmds=".dll"
12198 need_lib_prefix=no
12199 library_names_spec='$libname${shared_ext} $libname.a'
12200 dynamic_linker='OS/2 ld.exe'
12201 shlibpath_var=LIBPATH
12204 osf3* | osf4* | osf5*)
12205 version_type=osf
12206 need_lib_prefix=no
12207 need_version=no
12208 soname_spec='${libname}${release}${shared_ext}$major'
12209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12210 shlibpath_var=LD_LIBRARY_PATH
12211 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12212 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12215 rdos*)
12216 dynamic_linker=no
12219 solaris*)
12220 version_type=linux
12221 need_lib_prefix=no
12222 need_version=no
12223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12224 soname_spec='${libname}${release}${shared_ext}$major'
12225 shlibpath_var=LD_LIBRARY_PATH
12226 shlibpath_overrides_runpath=yes
12227 hardcode_into_libs=yes
12228 # ldd complains unless libraries are executable
12229 postinstall_cmds='chmod +x $lib'
12232 sunos4*)
12233 version_type=sunos
12234 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12235 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12236 shlibpath_var=LD_LIBRARY_PATH
12237 shlibpath_overrides_runpath=yes
12238 if test "$with_gnu_ld" = yes; then
12239 need_lib_prefix=no
12241 need_version=yes
12244 sysv4 | sysv4.3*)
12245 version_type=linux
12246 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12247 soname_spec='${libname}${release}${shared_ext}$major'
12248 shlibpath_var=LD_LIBRARY_PATH
12249 case $host_vendor in
12250 sni)
12251 shlibpath_overrides_runpath=no
12252 need_lib_prefix=no
12253 runpath_var=LD_RUN_PATH
12255 siemens)
12256 need_lib_prefix=no
12258 motorola)
12259 need_lib_prefix=no
12260 need_version=no
12261 shlibpath_overrides_runpath=no
12262 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12264 esac
12267 sysv4*MP*)
12268 if test -d /usr/nec ;then
12269 version_type=linux
12270 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12271 soname_spec='$libname${shared_ext}.$major'
12272 shlibpath_var=LD_LIBRARY_PATH
12276 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12277 version_type=freebsd-elf
12278 need_lib_prefix=no
12279 need_version=no
12280 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12281 soname_spec='${libname}${release}${shared_ext}$major'
12282 shlibpath_var=LD_LIBRARY_PATH
12283 shlibpath_overrides_runpath=yes
12284 hardcode_into_libs=yes
12285 if test "$with_gnu_ld" = yes; then
12286 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12287 else
12288 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12289 case $host_os in
12290 sco3.2v5*)
12291 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12293 esac
12295 sys_lib_dlsearch_path_spec='/usr/lib'
12298 tpf*)
12299 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12300 version_type=linux
12301 need_lib_prefix=no
12302 need_version=no
12303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12304 shlibpath_var=LD_LIBRARY_PATH
12305 shlibpath_overrides_runpath=no
12306 hardcode_into_libs=yes
12309 uts4*)
12310 version_type=linux
12311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12312 soname_spec='${libname}${release}${shared_ext}$major'
12313 shlibpath_var=LD_LIBRARY_PATH
12316 # Shared libraries for VwWorks, >= 7 only at this stage
12317 # and (fpic) still incompatible with "large" code models
12318 # in a few configurations. Only for RTP mode in any case,
12319 # and upon explicit request at configure time.
12320 vxworks7*)
12321 dynamic_linker=no
12322 case ${with_multisubdir}-${enable_shared} in
12323 *large*)
12325 *mrtp*-yes)
12326 version_type=linux
12327 need_lib_prefix=no
12328 need_version=no
12329 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12330 soname_spec='${libname}${release}${shared_ext}$major'
12331 dynamic_linker="$host_os module_loader"
12333 esac
12336 dynamic_linker=no
12338 esac
12339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12340 $as_echo "$dynamic_linker" >&6; }
12341 test "$dynamic_linker" = no && can_build_shared=no
12343 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12344 if test "$GCC" = yes; then
12345 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12348 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12349 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12351 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12352 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12447 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12448 hardcode_action=
12449 if test -n "$hardcode_libdir_flag_spec" ||
12450 test -n "$runpath_var" ||
12451 test "X$hardcode_automatic" = "Xyes" ; then
12453 # We can hardcode non-existent directories.
12454 if test "$hardcode_direct" != no &&
12455 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12456 # have to relink, otherwise we might link with an installed library
12457 # when we should be linking with a yet-to-be-installed one
12458 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12459 test "$hardcode_minus_L" != no; then
12460 # Linking always hardcodes the temporary library directory.
12461 hardcode_action=relink
12462 else
12463 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12464 hardcode_action=immediate
12466 else
12467 # We cannot hardcode anything, or else we can only hardcode existing
12468 # directories.
12469 hardcode_action=unsupported
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12472 $as_echo "$hardcode_action" >&6; }
12474 if test "$hardcode_action" = relink ||
12475 test "$inherit_rpath" = yes; then
12476 # Fast installation is not supported
12477 enable_fast_install=no
12478 elif test "$shlibpath_overrides_runpath" = yes ||
12479 test "$enable_shared" = no; then
12480 # Fast installation is not necessary
12481 enable_fast_install=needless
12489 if test "x$enable_dlopen" != xyes; then
12490 enable_dlopen=unknown
12491 enable_dlopen_self=unknown
12492 enable_dlopen_self_static=unknown
12493 else
12494 lt_cv_dlopen=no
12495 lt_cv_dlopen_libs=
12497 case $host_os in
12498 beos*)
12499 lt_cv_dlopen="load_add_on"
12500 lt_cv_dlopen_libs=
12501 lt_cv_dlopen_self=yes
12504 mingw* | pw32* | cegcc*)
12505 lt_cv_dlopen="LoadLibrary"
12506 lt_cv_dlopen_libs=
12509 cygwin*)
12510 lt_cv_dlopen="dlopen"
12511 lt_cv_dlopen_libs=
12514 darwin*)
12515 # if libdl is installed we need to link against it
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12517 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12518 if ${ac_cv_lib_dl_dlopen+:} false; then :
12519 $as_echo_n "(cached) " >&6
12520 else
12521 ac_check_lib_save_LIBS=$LIBS
12522 LIBS="-ldl $LIBS"
12523 if test x$gcc_no_link = xyes; then
12524 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12527 /* end confdefs.h. */
12529 /* Override any GCC internal prototype to avoid an error.
12530 Use char because int might match the return type of a GCC
12531 builtin and then its argument prototype would still apply. */
12532 #ifdef __cplusplus
12533 extern "C"
12534 #endif
12535 char dlopen ();
12537 main ()
12539 return dlopen ();
12541 return 0;
12543 _ACEOF
12544 if ac_fn_c_try_link "$LINENO"; then :
12545 ac_cv_lib_dl_dlopen=yes
12546 else
12547 ac_cv_lib_dl_dlopen=no
12549 rm -f core conftest.err conftest.$ac_objext \
12550 conftest$ac_exeext conftest.$ac_ext
12551 LIBS=$ac_check_lib_save_LIBS
12553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12554 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12555 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12556 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12557 else
12559 lt_cv_dlopen="dyld"
12560 lt_cv_dlopen_libs=
12561 lt_cv_dlopen_self=yes
12568 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12569 if test "x$ac_cv_func_shl_load" = xyes; then :
12570 lt_cv_dlopen="shl_load"
12571 else
12572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12573 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12574 if ${ac_cv_lib_dld_shl_load+:} false; then :
12575 $as_echo_n "(cached) " >&6
12576 else
12577 ac_check_lib_save_LIBS=$LIBS
12578 LIBS="-ldld $LIBS"
12579 if test x$gcc_no_link = xyes; then
12580 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12583 /* end confdefs.h. */
12585 /* Override any GCC internal prototype to avoid an error.
12586 Use char because int might match the return type of a GCC
12587 builtin and then its argument prototype would still apply. */
12588 #ifdef __cplusplus
12589 extern "C"
12590 #endif
12591 char shl_load ();
12593 main ()
12595 return shl_load ();
12597 return 0;
12599 _ACEOF
12600 if ac_fn_c_try_link "$LINENO"; then :
12601 ac_cv_lib_dld_shl_load=yes
12602 else
12603 ac_cv_lib_dld_shl_load=no
12605 rm -f core conftest.err conftest.$ac_objext \
12606 conftest$ac_exeext conftest.$ac_ext
12607 LIBS=$ac_check_lib_save_LIBS
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12610 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12611 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12612 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12613 else
12614 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12615 if test "x$ac_cv_func_dlopen" = xyes; then :
12616 lt_cv_dlopen="dlopen"
12617 else
12618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12619 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12620 if ${ac_cv_lib_dl_dlopen+:} false; then :
12621 $as_echo_n "(cached) " >&6
12622 else
12623 ac_check_lib_save_LIBS=$LIBS
12624 LIBS="-ldl $LIBS"
12625 if test x$gcc_no_link = xyes; then
12626 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12629 /* end confdefs.h. */
12631 /* Override any GCC internal prototype to avoid an error.
12632 Use char because int might match the return type of a GCC
12633 builtin and then its argument prototype would still apply. */
12634 #ifdef __cplusplus
12635 extern "C"
12636 #endif
12637 char dlopen ();
12639 main ()
12641 return dlopen ();
12643 return 0;
12645 _ACEOF
12646 if ac_fn_c_try_link "$LINENO"; then :
12647 ac_cv_lib_dl_dlopen=yes
12648 else
12649 ac_cv_lib_dl_dlopen=no
12651 rm -f core conftest.err conftest.$ac_objext \
12652 conftest$ac_exeext conftest.$ac_ext
12653 LIBS=$ac_check_lib_save_LIBS
12655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12656 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12657 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12658 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12659 else
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12661 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12662 if ${ac_cv_lib_svld_dlopen+:} false; then :
12663 $as_echo_n "(cached) " >&6
12664 else
12665 ac_check_lib_save_LIBS=$LIBS
12666 LIBS="-lsvld $LIBS"
12667 if test x$gcc_no_link = xyes; then
12668 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12673 /* Override any GCC internal prototype to avoid an error.
12674 Use char because int might match the return type of a GCC
12675 builtin and then its argument prototype would still apply. */
12676 #ifdef __cplusplus
12677 extern "C"
12678 #endif
12679 char dlopen ();
12681 main ()
12683 return dlopen ();
12685 return 0;
12687 _ACEOF
12688 if ac_fn_c_try_link "$LINENO"; then :
12689 ac_cv_lib_svld_dlopen=yes
12690 else
12691 ac_cv_lib_svld_dlopen=no
12693 rm -f core conftest.err conftest.$ac_objext \
12694 conftest$ac_exeext conftest.$ac_ext
12695 LIBS=$ac_check_lib_save_LIBS
12697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12698 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12699 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12700 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12701 else
12702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12703 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12704 if ${ac_cv_lib_dld_dld_link+:} false; then :
12705 $as_echo_n "(cached) " >&6
12706 else
12707 ac_check_lib_save_LIBS=$LIBS
12708 LIBS="-ldld $LIBS"
12709 if test x$gcc_no_link = xyes; then
12710 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12713 /* end confdefs.h. */
12715 /* Override any GCC internal prototype to avoid an error.
12716 Use char because int might match the return type of a GCC
12717 builtin and then its argument prototype would still apply. */
12718 #ifdef __cplusplus
12719 extern "C"
12720 #endif
12721 char dld_link ();
12723 main ()
12725 return dld_link ();
12727 return 0;
12729 _ACEOF
12730 if ac_fn_c_try_link "$LINENO"; then :
12731 ac_cv_lib_dld_dld_link=yes
12732 else
12733 ac_cv_lib_dld_dld_link=no
12735 rm -f core conftest.err conftest.$ac_objext \
12736 conftest$ac_exeext conftest.$ac_ext
12737 LIBS=$ac_check_lib_save_LIBS
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12740 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12741 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12742 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12761 esac
12763 if test "x$lt_cv_dlopen" != xno; then
12764 enable_dlopen=yes
12765 else
12766 enable_dlopen=no
12769 case $lt_cv_dlopen in
12770 dlopen)
12771 save_CPPFLAGS="$CPPFLAGS"
12772 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12774 save_LDFLAGS="$LDFLAGS"
12775 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12777 save_LIBS="$LIBS"
12778 LIBS="$lt_cv_dlopen_libs $LIBS"
12780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12781 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12782 if ${lt_cv_dlopen_self+:} false; then :
12783 $as_echo_n "(cached) " >&6
12784 else
12785 if test "$cross_compiling" = yes; then :
12786 lt_cv_dlopen_self=cross
12787 else
12788 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12789 lt_status=$lt_dlunknown
12790 cat > conftest.$ac_ext <<_LT_EOF
12791 #line 12791 "configure"
12792 #include "confdefs.h"
12794 #if HAVE_DLFCN_H
12795 #include <dlfcn.h>
12796 #endif
12798 #include <stdio.h>
12800 #ifdef RTLD_GLOBAL
12801 # define LT_DLGLOBAL RTLD_GLOBAL
12802 #else
12803 # ifdef DL_GLOBAL
12804 # define LT_DLGLOBAL DL_GLOBAL
12805 # else
12806 # define LT_DLGLOBAL 0
12807 # endif
12808 #endif
12810 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12811 find out it does not work in some platform. */
12812 #ifndef LT_DLLAZY_OR_NOW
12813 # ifdef RTLD_LAZY
12814 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12815 # else
12816 # ifdef DL_LAZY
12817 # define LT_DLLAZY_OR_NOW DL_LAZY
12818 # else
12819 # ifdef RTLD_NOW
12820 # define LT_DLLAZY_OR_NOW RTLD_NOW
12821 # else
12822 # ifdef DL_NOW
12823 # define LT_DLLAZY_OR_NOW DL_NOW
12824 # else
12825 # define LT_DLLAZY_OR_NOW 0
12826 # endif
12827 # endif
12828 # endif
12829 # endif
12830 #endif
12832 /* When -fvisbility=hidden is used, assume the code has been annotated
12833 correspondingly for the symbols needed. */
12834 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12835 void fnord () __attribute__((visibility("default")));
12836 #endif
12838 void fnord () { int i=42; }
12839 int main ()
12841 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12842 int status = $lt_dlunknown;
12844 if (self)
12846 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12847 else
12849 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12850 else puts (dlerror ());
12852 /* dlclose (self); */
12854 else
12855 puts (dlerror ());
12857 return status;
12859 _LT_EOF
12860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12861 (eval $ac_link) 2>&5
12862 ac_status=$?
12863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12864 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12865 (./conftest; exit; ) >&5 2>/dev/null
12866 lt_status=$?
12867 case x$lt_status in
12868 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12869 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12870 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12871 esac
12872 else :
12873 # compilation failed
12874 lt_cv_dlopen_self=no
12877 rm -fr conftest*
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12882 $as_echo "$lt_cv_dlopen_self" >&6; }
12884 if test "x$lt_cv_dlopen_self" = xyes; then
12885 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12887 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12888 if ${lt_cv_dlopen_self_static+:} false; then :
12889 $as_echo_n "(cached) " >&6
12890 else
12891 if test "$cross_compiling" = yes; then :
12892 lt_cv_dlopen_self_static=cross
12893 else
12894 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12895 lt_status=$lt_dlunknown
12896 cat > conftest.$ac_ext <<_LT_EOF
12897 #line 12897 "configure"
12898 #include "confdefs.h"
12900 #if HAVE_DLFCN_H
12901 #include <dlfcn.h>
12902 #endif
12904 #include <stdio.h>
12906 #ifdef RTLD_GLOBAL
12907 # define LT_DLGLOBAL RTLD_GLOBAL
12908 #else
12909 # ifdef DL_GLOBAL
12910 # define LT_DLGLOBAL DL_GLOBAL
12911 # else
12912 # define LT_DLGLOBAL 0
12913 # endif
12914 #endif
12916 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12917 find out it does not work in some platform. */
12918 #ifndef LT_DLLAZY_OR_NOW
12919 # ifdef RTLD_LAZY
12920 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12921 # else
12922 # ifdef DL_LAZY
12923 # define LT_DLLAZY_OR_NOW DL_LAZY
12924 # else
12925 # ifdef RTLD_NOW
12926 # define LT_DLLAZY_OR_NOW RTLD_NOW
12927 # else
12928 # ifdef DL_NOW
12929 # define LT_DLLAZY_OR_NOW DL_NOW
12930 # else
12931 # define LT_DLLAZY_OR_NOW 0
12932 # endif
12933 # endif
12934 # endif
12935 # endif
12936 #endif
12938 /* When -fvisbility=hidden is used, assume the code has been annotated
12939 correspondingly for the symbols needed. */
12940 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12941 void fnord () __attribute__((visibility("default")));
12942 #endif
12944 void fnord () { int i=42; }
12945 int main ()
12947 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12948 int status = $lt_dlunknown;
12950 if (self)
12952 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12953 else
12955 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12956 else puts (dlerror ());
12958 /* dlclose (self); */
12960 else
12961 puts (dlerror ());
12963 return status;
12965 _LT_EOF
12966 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12967 (eval $ac_link) 2>&5
12968 ac_status=$?
12969 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12970 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12971 (./conftest; exit; ) >&5 2>/dev/null
12972 lt_status=$?
12973 case x$lt_status in
12974 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12975 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12976 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12977 esac
12978 else :
12979 # compilation failed
12980 lt_cv_dlopen_self_static=no
12983 rm -fr conftest*
12987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12988 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12991 CPPFLAGS="$save_CPPFLAGS"
12992 LDFLAGS="$save_LDFLAGS"
12993 LIBS="$save_LIBS"
12995 esac
12997 case $lt_cv_dlopen_self in
12998 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12999 *) enable_dlopen_self=unknown ;;
13000 esac
13002 case $lt_cv_dlopen_self_static in
13003 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
13004 *) enable_dlopen_self_static=unknown ;;
13005 esac
13024 striplib=
13025 old_striplib=
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
13027 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
13028 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
13029 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13030 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13032 $as_echo "yes" >&6; }
13033 else
13034 # FIXME - insert some real tests, host_os isn't really good enough
13035 case $host_os in
13036 darwin*)
13037 if test -n "$STRIP" ; then
13038 striplib="$STRIP -x"
13039 old_striplib="$STRIP -S"
13040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13041 $as_echo "yes" >&6; }
13042 else
13043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13044 $as_echo "no" >&6; }
13048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13049 $as_echo "no" >&6; }
13051 esac
13065 # Report which library types will actually be built
13066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13067 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13069 $as_echo "$can_build_shared" >&6; }
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13072 $as_echo_n "checking whether to build shared libraries... " >&6; }
13073 test "$can_build_shared" = "no" && enable_shared=no
13075 # On AIX, shared libraries and static libraries use the same namespace, and
13076 # are all built from PIC.
13077 case $host_os in
13078 aix3*)
13079 test "$enable_shared" = yes && enable_static=no
13080 if test -n "$RANLIB"; then
13081 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13082 postinstall_cmds='$RANLIB $lib'
13086 aix[4-9]*)
13087 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13088 test "$enable_shared" = yes && enable_static=no
13091 esac
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13093 $as_echo "$enable_shared" >&6; }
13095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13096 $as_echo_n "checking whether to build static libraries... " >&6; }
13097 # Make sure either enable_shared or enable_static is yes.
13098 test "$enable_shared" = yes || enable_static=yes
13099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13100 $as_echo "$enable_static" >&6; }
13106 ac_ext=c
13107 ac_cpp='$CPP $CPPFLAGS'
13108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13112 CC="$lt_save_CC"
13114 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13115 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13116 (test "X$CXX" != "Xg++"))) ; then
13117 ac_ext=cpp
13118 ac_cpp='$CXXCPP $CPPFLAGS'
13119 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13120 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13121 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13123 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13124 if test -z "$CXXCPP"; then
13125 if ${ac_cv_prog_CXXCPP+:} false; then :
13126 $as_echo_n "(cached) " >&6
13127 else
13128 # Double quotes because CXXCPP needs to be expanded
13129 for CXXCPP in "$CXX -E" "/lib/cpp"
13131 ac_preproc_ok=false
13132 for ac_cxx_preproc_warn_flag in '' yes
13134 # Use a header file that comes with gcc, so configuring glibc
13135 # with a fresh cross-compiler works.
13136 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13137 # <limits.h> exists even on freestanding compilers.
13138 # On the NeXT, cc -E runs the code through the compiler's parser,
13139 # not just through cpp. "Syntax error" is here to catch this case.
13140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13141 /* end confdefs.h. */
13142 #ifdef __STDC__
13143 # include <limits.h>
13144 #else
13145 # include <assert.h>
13146 #endif
13147 Syntax error
13148 _ACEOF
13149 if ac_fn_cxx_try_cpp "$LINENO"; then :
13151 else
13152 # Broken: fails on valid input.
13153 continue
13155 rm -f conftest.err conftest.i conftest.$ac_ext
13157 # OK, works on sane cases. Now check whether nonexistent headers
13158 # can be detected and how.
13159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13160 /* end confdefs.h. */
13161 #include <ac_nonexistent.h>
13162 _ACEOF
13163 if ac_fn_cxx_try_cpp "$LINENO"; then :
13164 # Broken: success on invalid input.
13165 continue
13166 else
13167 # Passes both tests.
13168 ac_preproc_ok=:
13169 break
13171 rm -f conftest.err conftest.i conftest.$ac_ext
13173 done
13174 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13175 rm -f conftest.i conftest.err conftest.$ac_ext
13176 if $ac_preproc_ok; then :
13177 break
13180 done
13181 ac_cv_prog_CXXCPP=$CXXCPP
13184 CXXCPP=$ac_cv_prog_CXXCPP
13185 else
13186 ac_cv_prog_CXXCPP=$CXXCPP
13188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13189 $as_echo "$CXXCPP" >&6; }
13190 ac_preproc_ok=false
13191 for ac_cxx_preproc_warn_flag in '' yes
13193 # Use a header file that comes with gcc, so configuring glibc
13194 # with a fresh cross-compiler works.
13195 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13196 # <limits.h> exists even on freestanding compilers.
13197 # On the NeXT, cc -E runs the code through the compiler's parser,
13198 # not just through cpp. "Syntax error" is here to catch this case.
13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h. */
13201 #ifdef __STDC__
13202 # include <limits.h>
13203 #else
13204 # include <assert.h>
13205 #endif
13206 Syntax error
13207 _ACEOF
13208 if ac_fn_cxx_try_cpp "$LINENO"; then :
13210 else
13211 # Broken: fails on valid input.
13212 continue
13214 rm -f conftest.err conftest.i conftest.$ac_ext
13216 # OK, works on sane cases. Now check whether nonexistent headers
13217 # can be detected and how.
13218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13219 /* end confdefs.h. */
13220 #include <ac_nonexistent.h>
13221 _ACEOF
13222 if ac_fn_cxx_try_cpp "$LINENO"; then :
13223 # Broken: success on invalid input.
13224 continue
13225 else
13226 # Passes both tests.
13227 ac_preproc_ok=:
13228 break
13230 rm -f conftest.err conftest.i conftest.$ac_ext
13232 done
13233 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13234 rm -f conftest.i conftest.err conftest.$ac_ext
13235 if $ac_preproc_ok; then :
13237 else
13238 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13239 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13240 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13241 See \`config.log' for more details" "$LINENO" 5; }
13244 ac_ext=c
13245 ac_cpp='$CPP $CPPFLAGS'
13246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13250 else
13251 _lt_caught_CXX_error=yes
13254 ac_ext=cpp
13255 ac_cpp='$CXXCPP $CPPFLAGS'
13256 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13257 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13258 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13260 archive_cmds_need_lc_CXX=no
13261 allow_undefined_flag_CXX=
13262 always_export_symbols_CXX=no
13263 archive_expsym_cmds_CXX=
13264 compiler_needs_object_CXX=no
13265 export_dynamic_flag_spec_CXX=
13266 hardcode_direct_CXX=no
13267 hardcode_direct_absolute_CXX=no
13268 hardcode_libdir_flag_spec_CXX=
13269 hardcode_libdir_flag_spec_ld_CXX=
13270 hardcode_libdir_separator_CXX=
13271 hardcode_minus_L_CXX=no
13272 hardcode_shlibpath_var_CXX=unsupported
13273 hardcode_automatic_CXX=no
13274 inherit_rpath_CXX=no
13275 module_cmds_CXX=
13276 module_expsym_cmds_CXX=
13277 link_all_deplibs_CXX=unknown
13278 old_archive_cmds_CXX=$old_archive_cmds
13279 reload_flag_CXX=$reload_flag
13280 reload_cmds_CXX=$reload_cmds
13281 no_undefined_flag_CXX=
13282 whole_archive_flag_spec_CXX=
13283 enable_shared_with_static_runtimes_CXX=no
13285 # Source file extension for C++ test sources.
13286 ac_ext=cpp
13288 # Object file extension for compiled C++ test sources.
13289 objext=o
13290 objext_CXX=$objext
13292 # No sense in running all these tests if we already determined that
13293 # the CXX compiler isn't working. Some variables (like enable_shared)
13294 # are currently assumed to apply to all compilers on this platform,
13295 # and will be corrupted by setting them based on a non-working compiler.
13296 if test "$_lt_caught_CXX_error" != yes; then
13297 # Code to be used in simple compile tests
13298 lt_simple_compile_test_code="int some_variable = 0;"
13300 # Code to be used in simple link tests
13301 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13303 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13310 # If no C compiler was specified, use CC.
13311 LTCC=${LTCC-"$CC"}
13313 # If no C compiler flags were specified, use CFLAGS.
13314 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13316 # Allow CC to be a program name with arguments.
13317 compiler=$CC
13320 # save warnings/boilerplate of simple test code
13321 ac_outfile=conftest.$ac_objext
13322 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13323 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13324 _lt_compiler_boilerplate=`cat conftest.err`
13325 $RM conftest*
13327 ac_outfile=conftest.$ac_objext
13328 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13329 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13330 _lt_linker_boilerplate=`cat conftest.err`
13331 $RM -r conftest*
13334 # Allow CC to be a program name with arguments.
13335 lt_save_CC=$CC
13336 lt_save_LD=$LD
13337 lt_save_GCC=$GCC
13338 GCC=$GXX
13339 lt_save_with_gnu_ld=$with_gnu_ld
13340 lt_save_path_LD=$lt_cv_path_LD
13341 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13342 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13343 else
13344 $as_unset lt_cv_prog_gnu_ld
13346 if test -n "${lt_cv_path_LDCXX+set}"; then
13347 lt_cv_path_LD=$lt_cv_path_LDCXX
13348 else
13349 $as_unset lt_cv_path_LD
13351 test -z "${LDCXX+set}" || LD=$LDCXX
13352 CC=${CXX-"c++"}
13353 compiler=$CC
13354 compiler_CXX=$CC
13355 for cc_temp in $compiler""; do
13356 case $cc_temp in
13357 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13358 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13359 \-*) ;;
13360 *) break;;
13361 esac
13362 done
13363 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13366 if test -n "$compiler"; then
13367 # We don't want -fno-exception when compiling C++ code, so set the
13368 # no_builtin_flag separately
13369 if test "$GXX" = yes; then
13370 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13371 else
13372 lt_prog_compiler_no_builtin_flag_CXX=
13375 if test "$GXX" = yes; then
13376 # Set up default GNU C++ configuration
13380 # Check whether --with-gnu-ld was given.
13381 if test "${with_gnu_ld+set}" = set; then :
13382 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13383 else
13384 with_gnu_ld=no
13387 ac_prog=ld
13388 if test "$GCC" = yes; then
13389 # Check if gcc -print-prog-name=ld gives a path.
13390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13391 $as_echo_n "checking for ld used by $CC... " >&6; }
13392 case $host in
13393 *-*-mingw*)
13394 # gcc leaves a trailing carriage return which upsets mingw
13395 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13397 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13398 esac
13399 case $ac_prog in
13400 # Accept absolute paths.
13401 [\\/]* | ?:[\\/]*)
13402 re_direlt='/[^/][^/]*/\.\./'
13403 # Canonicalize the pathname of ld
13404 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13405 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13406 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13407 done
13408 test -z "$LD" && LD="$ac_prog"
13411 # If it fails, then pretend we aren't using GCC.
13412 ac_prog=ld
13415 # If it is relative, then search for the first ld in PATH.
13416 with_gnu_ld=unknown
13418 esac
13419 elif test "$with_gnu_ld" = yes; then
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13421 $as_echo_n "checking for GNU ld... " >&6; }
13422 else
13423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13424 $as_echo_n "checking for non-GNU ld... " >&6; }
13426 if ${lt_cv_path_LD+:} false; then :
13427 $as_echo_n "(cached) " >&6
13428 else
13429 if test -z "$LD"; then
13430 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13431 for ac_dir in $PATH; do
13432 IFS="$lt_save_ifs"
13433 test -z "$ac_dir" && ac_dir=.
13434 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13435 lt_cv_path_LD="$ac_dir/$ac_prog"
13436 # Check to see if the program is GNU ld. I'd rather use --version,
13437 # but apparently some variants of GNU ld only accept -v.
13438 # Break only if it was the GNU/non-GNU ld that we prefer.
13439 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13440 *GNU* | *'with BFD'*)
13441 test "$with_gnu_ld" != no && break
13444 test "$with_gnu_ld" != yes && break
13446 esac
13448 done
13449 IFS="$lt_save_ifs"
13450 else
13451 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13455 LD="$lt_cv_path_LD"
13456 if test -n "$LD"; then
13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13458 $as_echo "$LD" >&6; }
13459 else
13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13461 $as_echo "no" >&6; }
13463 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13465 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13466 if ${lt_cv_prog_gnu_ld+:} false; then :
13467 $as_echo_n "(cached) " >&6
13468 else
13469 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13470 case `$LD -v 2>&1 </dev/null` in
13471 *GNU* | *'with BFD'*)
13472 lt_cv_prog_gnu_ld=yes
13475 lt_cv_prog_gnu_ld=no
13477 esac
13479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13480 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13481 with_gnu_ld=$lt_cv_prog_gnu_ld
13489 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13490 # archiving commands below assume that GNU ld is being used.
13491 if test "$with_gnu_ld" = yes; then
13492 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13493 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'
13495 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13496 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13498 # If archive_cmds runs LD, not CC, wlarc should be empty
13499 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13500 # investigate it a little bit more. (MM)
13501 wlarc='${wl}'
13503 # ancient GNU ld didn't support --whole-archive et. al.
13504 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13505 $GREP 'no-whole-archive' > /dev/null; then
13506 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13507 else
13508 whole_archive_flag_spec_CXX=
13510 else
13511 with_gnu_ld=no
13512 wlarc=
13514 # A generic and very simple default shared library creation
13515 # command for GNU C++ for the case where it uses the native
13516 # linker, instead of GNU ld. If possible, this setting should
13517 # overridden to take advantage of the native linker features on
13518 # the platform it is being used on.
13519 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13522 # Commands to make compiler produce verbose output that lists
13523 # what "hidden" libraries, object files and flags are used when
13524 # linking a shared library.
13525 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13527 else
13528 GXX=no
13529 with_gnu_ld=no
13530 wlarc=
13533 # PORTME: fill in a description of your system's C++ link characteristics
13534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13535 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13536 ld_shlibs_CXX=yes
13537 case $host_os in
13538 aix3*)
13539 # FIXME: insert proper C++ library support
13540 ld_shlibs_CXX=no
13542 aix[4-9]*)
13543 if test "$host_cpu" = ia64; then
13544 # On IA64, the linker does run time linking by default, so we don't
13545 # have to do anything special.
13546 aix_use_runtimelinking=no
13547 exp_sym_flag='-Bexport'
13548 no_entry_flag=""
13549 else
13550 aix_use_runtimelinking=no
13552 # Test if we are trying to use run time linking or normal
13553 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13554 # need to do runtime linking.
13555 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13556 for ld_flag in $LDFLAGS; do
13557 case $ld_flag in
13558 *-brtl*)
13559 aix_use_runtimelinking=yes
13560 break
13562 esac
13563 done
13565 esac
13567 exp_sym_flag='-bexport'
13568 no_entry_flag='-bnoentry'
13571 # When large executables or shared objects are built, AIX ld can
13572 # have problems creating the table of contents. If linking a library
13573 # or program results in "error TOC overflow" add -mminimal-toc to
13574 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13575 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13577 archive_cmds_CXX=''
13578 hardcode_direct_CXX=yes
13579 hardcode_direct_absolute_CXX=yes
13580 hardcode_libdir_separator_CXX=':'
13581 link_all_deplibs_CXX=yes
13582 file_list_spec_CXX='${wl}-f,'
13584 if test "$GXX" = yes; then
13585 case $host_os in aix4.[012]|aix4.[012].*)
13586 # We only want to do this on AIX 4.2 and lower, the check
13587 # below for broken collect2 doesn't work under 4.3+
13588 collect2name=`${CC} -print-prog-name=collect2`
13589 if test -f "$collect2name" &&
13590 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13591 then
13592 # We have reworked collect2
13594 else
13595 # We have old collect2
13596 hardcode_direct_CXX=unsupported
13597 # It fails to find uninstalled libraries when the uninstalled
13598 # path is not listed in the libpath. Setting hardcode_minus_L
13599 # to unsupported forces relinking
13600 hardcode_minus_L_CXX=yes
13601 hardcode_libdir_flag_spec_CXX='-L$libdir'
13602 hardcode_libdir_separator_CXX=
13604 esac
13605 shared_flag='-shared'
13606 if test "$aix_use_runtimelinking" = yes; then
13607 shared_flag="$shared_flag "'${wl}-G'
13609 else
13610 # not using gcc
13611 if test "$host_cpu" = ia64; then
13612 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13613 # chokes on -Wl,-G. The following line is correct:
13614 shared_flag='-G'
13615 else
13616 if test "$aix_use_runtimelinking" = yes; then
13617 shared_flag='${wl}-G'
13618 else
13619 shared_flag='${wl}-bM:SRE'
13624 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13625 # It seems that -bexpall does not export symbols beginning with
13626 # underscore (_), so it is better to generate a list of symbols to
13627 # export.
13628 always_export_symbols_CXX=yes
13629 if test "$aix_use_runtimelinking" = yes; then
13630 # Warning - without using the other runtime loading flags (-brtl),
13631 # -berok will link without error, but may produce a broken library.
13632 allow_undefined_flag_CXX='-berok'
13633 # Determine the default libpath from the value encoded in an empty
13634 # executable.
13635 if test x$gcc_no_link = xyes; then
13636 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13639 /* end confdefs.h. */
13642 main ()
13646 return 0;
13648 _ACEOF
13649 if ac_fn_cxx_try_link "$LINENO"; then :
13651 lt_aix_libpath_sed='
13652 /Import File Strings/,/^$/ {
13653 /^0/ {
13654 s/^0 *\(.*\)$/\1/
13658 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13659 # Check for a 64-bit object if we didn't find anything.
13660 if test -z "$aix_libpath"; then
13661 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13664 rm -f core conftest.err conftest.$ac_objext \
13665 conftest$ac_exeext conftest.$ac_ext
13666 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13668 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13670 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"
13671 else
13672 if test "$host_cpu" = ia64; then
13673 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13674 allow_undefined_flag_CXX="-z nodefs"
13675 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"
13676 else
13677 # Determine the default libpath from the value encoded in an
13678 # empty executable.
13679 if test x$gcc_no_link = xyes; then
13680 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13683 /* end confdefs.h. */
13686 main ()
13690 return 0;
13692 _ACEOF
13693 if ac_fn_cxx_try_link "$LINENO"; then :
13695 lt_aix_libpath_sed='
13696 /Import File Strings/,/^$/ {
13697 /^0/ {
13698 s/^0 *\(.*\)$/\1/
13702 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13703 # Check for a 64-bit object if we didn't find anything.
13704 if test -z "$aix_libpath"; then
13705 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13708 rm -f core conftest.err conftest.$ac_objext \
13709 conftest$ac_exeext conftest.$ac_ext
13710 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13712 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13713 # Warning - without using the other run time loading flags,
13714 # -berok will link without error, but may produce a broken library.
13715 no_undefined_flag_CXX=' ${wl}-bernotok'
13716 allow_undefined_flag_CXX=' ${wl}-berok'
13717 if test "$with_gnu_ld" = yes; then
13718 # We only use this code for GNU lds that support --whole-archive.
13719 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13720 else
13721 # Exported symbols can be pulled into shared objects from archives
13722 whole_archive_flag_spec_CXX='$convenience'
13724 archive_cmds_need_lc_CXX=yes
13725 # This is similar to how AIX traditionally builds its shared
13726 # libraries.
13727 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'
13732 beos*)
13733 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13734 allow_undefined_flag_CXX=unsupported
13735 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13736 # support --undefined. This deserves some investigation. FIXME
13737 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13738 else
13739 ld_shlibs_CXX=no
13743 chorus*)
13744 case $cc_basename in
13746 # FIXME: insert proper C++ library support
13747 ld_shlibs_CXX=no
13749 esac
13752 cygwin* | mingw* | pw32* | cegcc*)
13753 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13754 # as there is no search path for DLLs.
13755 hardcode_libdir_flag_spec_CXX='-L$libdir'
13756 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13757 allow_undefined_flag_CXX=unsupported
13758 always_export_symbols_CXX=no
13759 enable_shared_with_static_runtimes_CXX=yes
13761 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13762 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'
13763 # If the export-symbols file already is a .def file (1st line
13764 # is EXPORTS), use it as is; otherwise, prepend...
13765 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13766 cp $export_symbols $output_objdir/$soname.def;
13767 else
13768 echo EXPORTS > $output_objdir/$soname.def;
13769 cat $export_symbols >> $output_objdir/$soname.def;
13771 $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'
13772 else
13773 ld_shlibs_CXX=no
13776 darwin* | rhapsody*)
13780 # Publish an arg to allow the user to select that Darwin host (and target)
13781 # libraries should be given install-names like @rpath/libfoo.dylib. This
13782 # requires that the user of the library then adds an 'rpath' to the DSO that
13783 # needs access.
13784 # NOTE: there are defaults below, for systems that support rpaths. The person
13785 # configuring can override the defaults for any system version that supports
13786 # them - they are, however, forced off for system versions without support.
13787 # Check whether --enable-darwin-at-rpath was given.
13788 if test "${enable_darwin_at_rpath+set}" = set; then :
13789 enableval=$enable_darwin_at_rpath; if test "x$enable_darwin_at_rpath" = "xyes"; then
13790 # This is not supported before macOS 10.5 / Darwin9.
13791 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13792 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&5
13794 $as_echo "$as_me: WARNING: Darwin @rpath library names are incompatible with OSX versions earlier than 10.5 (rpaths disabled)" >&2;}
13795 enable_darwin_at_rpath=no
13797 esac
13799 else
13800 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host_os in
13801 # As above, before 10.5 / Darwin9 this does not work.
13802 UNSET,darwin[4-8]*|UNSET,rhapsody*|10.[0-4][,.]*)
13803 enable_darwin_at_rpath=no
13806 # We cannot build and test reliably on macOS 10.11+ (Darwin15+) without use
13807 # of rpaths, since runpaths set via DYLD_LIBRARY_PATH are elided by key
13808 # system executables (e.g. /bin/sh). Force rpaths on for these systems.
13809 UNSET,darwin1[5-9]*|UNSET,darwin2*|10.1[1-9][,.]*|1[1-9].*[,.]* )
13810 { $as_echo "$as_me:${as_lineno-$LINENO}: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&5
13811 $as_echo "$as_me: @rpath library names are needed on macOS versions later than 10.11 (rpaths have been enabled)" >&6;}
13812 enable_darwin_at_rpath=yes
13814 # NOTE: we are not (yet) doing anything for 10.5 .. 10.10, since they can
13815 # work with either DYLD_LIBRARY_PATH or embedded rpaths.
13817 esac
13822 archive_cmds_need_lc_CXX=no
13823 hardcode_direct_CXX=no
13824 hardcode_automatic_CXX=yes
13825 hardcode_shlibpath_var_CXX=unsupported
13826 if test "$lt_cv_ld_force_load" = "yes"; then
13827 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\"`'
13828 else
13829 whole_archive_flag_spec_CXX=''
13831 link_all_deplibs_CXX=yes
13832 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13833 case $cc_basename in
13834 ifort*) _lt_dar_can_shared=yes ;;
13835 *) _lt_dar_can_shared=$GCC ;;
13836 esac
13837 if test "$_lt_dar_can_shared" = "yes"; then
13838 output_verbose_link_cmd=func_echo_all
13839 _lt_install_name='\$rpath/\$soname'
13840 if test "x$enable_darwin_at_rpath" = "xyes"; then
13841 _lt_install_name='@rpath/\$soname'
13843 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name ${_lt_install_name} \$verstring ${_lt_dsymutil}"
13844 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13845 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}"
13846 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}"
13847 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13848 _lt_install_name='\$rpath/\$soname'
13849 if test "x$enable_darwin_at_rpath" = "xyes"; then
13850 _lt_install_name='@rpath/\$soname'
13852 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}"
13853 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}"
13856 else
13857 ld_shlibs_CXX=no
13862 dgux*)
13863 case $cc_basename in
13864 ec++*)
13865 # FIXME: insert proper C++ library support
13866 ld_shlibs_CXX=no
13868 ghcx*)
13869 # Green Hills C++ Compiler
13870 # FIXME: insert proper C++ library support
13871 ld_shlibs_CXX=no
13874 # FIXME: insert proper C++ library support
13875 ld_shlibs_CXX=no
13877 esac
13880 freebsd2.*)
13881 # C++ shared libraries reported to be fairly broken before
13882 # switch to ELF
13883 ld_shlibs_CXX=no
13886 freebsd-elf*)
13887 archive_cmds_need_lc_CXX=no
13890 freebsd* | dragonfly*)
13891 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13892 # conventions
13893 ld_shlibs_CXX=yes
13896 gnu*)
13899 haiku*)
13900 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13901 link_all_deplibs_CXX=yes
13904 hpux9*)
13905 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13906 hardcode_libdir_separator_CXX=:
13907 export_dynamic_flag_spec_CXX='${wl}-E'
13908 hardcode_direct_CXX=yes
13909 hardcode_minus_L_CXX=yes # Not in the search PATH,
13910 # but as the default
13911 # location of the library.
13913 case $cc_basename in
13914 CC*)
13915 # FIXME: insert proper C++ library support
13916 ld_shlibs_CXX=no
13918 aCC*)
13919 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'
13920 # Commands to make compiler produce verbose output that lists
13921 # what "hidden" libraries, object files and flags are used when
13922 # linking a shared library.
13924 # There doesn't appear to be a way to prevent this compiler from
13925 # explicitly linking system object files so we need to strip them
13926 # from the output so that they don't get included in the library
13927 # dependencies.
13928 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"'
13931 if test "$GXX" = yes; then
13932 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'
13933 else
13934 # FIXME: insert proper C++ library support
13935 ld_shlibs_CXX=no
13938 esac
13941 hpux10*|hpux11*)
13942 if test $with_gnu_ld = no; then
13943 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13944 hardcode_libdir_separator_CXX=:
13946 case $host_cpu in
13947 hppa*64*|ia64*)
13950 export_dynamic_flag_spec_CXX='${wl}-E'
13952 esac
13954 case $host_cpu in
13955 hppa*64*|ia64*)
13956 hardcode_direct_CXX=no
13957 hardcode_shlibpath_var_CXX=no
13960 hardcode_direct_CXX=yes
13961 hardcode_direct_absolute_CXX=yes
13962 hardcode_minus_L_CXX=yes # Not in the search PATH,
13963 # but as the default
13964 # location of the library.
13966 esac
13968 case $cc_basename in
13969 CC*)
13970 # FIXME: insert proper C++ library support
13971 ld_shlibs_CXX=no
13973 aCC*)
13974 case $host_cpu in
13975 hppa*64*)
13976 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13978 ia64*)
13979 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13982 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13984 esac
13985 # Commands to make compiler produce verbose output that lists
13986 # what "hidden" libraries, object files and flags are used when
13987 # linking a shared library.
13989 # There doesn't appear to be a way to prevent this compiler from
13990 # explicitly linking system object files so we need to strip them
13991 # from the output so that they don't get included in the library
13992 # dependencies.
13993 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"'
13996 if test "$GXX" = yes; then
13997 if test $with_gnu_ld = no; then
13998 case $host_cpu in
13999 hppa*64*)
14000 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14002 ia64*)
14003 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14006 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'
14008 esac
14010 else
14011 # FIXME: insert proper C++ library support
14012 ld_shlibs_CXX=no
14015 esac
14018 interix[3-9]*)
14019 hardcode_direct_CXX=no
14020 hardcode_shlibpath_var_CXX=no
14021 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14022 export_dynamic_flag_spec_CXX='${wl}-E'
14023 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
14024 # Instead, shared libraries are loaded at an image base (0x10000000 by
14025 # default) and relocated if they conflict, which is a slow very memory
14026 # consuming and fragmenting process. To avoid this, we pick a random,
14027 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
14028 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
14029 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'
14030 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'
14032 irix5* | irix6*)
14033 case $cc_basename in
14034 CC*)
14035 # SGI C++
14036 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'
14038 # Archives containing C++ object files must be created using
14039 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
14040 # necessary to make sure instantiated templates are included
14041 # in the archive.
14042 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
14045 if test "$GXX" = yes; then
14046 if test "$with_gnu_ld" = no; then
14047 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'
14048 else
14049 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'
14052 link_all_deplibs_CXX=yes
14054 esac
14055 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14056 hardcode_libdir_separator_CXX=:
14057 inherit_rpath_CXX=yes
14060 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14061 case $cc_basename in
14062 KCC*)
14063 # Kuck and Associates, Inc. (KAI) C++ Compiler
14065 # KCC will only create a shared library if the output file
14066 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14067 # to its proper name (with version) after linking.
14068 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'
14069 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'
14070 # Commands to make compiler produce verbose output that lists
14071 # what "hidden" libraries, object files and flags are used when
14072 # linking a shared library.
14074 # There doesn't appear to be a way to prevent this compiler from
14075 # explicitly linking system object files so we need to strip them
14076 # from the output so that they don't get included in the library
14077 # dependencies.
14078 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"'
14080 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14081 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14083 # Archives containing C++ object files must be created using
14084 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
14085 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
14087 icpc* | ecpc* )
14088 # Intel C++
14089 with_gnu_ld=yes
14090 # version 8.0 and above of icpc choke on multiply defined symbols
14091 # if we add $predep_objects and $postdep_objects, however 7.1 and
14092 # earlier do not add the objects themselves.
14093 case `$CC -V 2>&1` in
14094 *"Version 7."*)
14095 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14096 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'
14098 *) # Version 8.0 or newer
14099 tmp_idyn=
14100 case $host_cpu in
14101 ia64*) tmp_idyn=' -i_dynamic';;
14102 esac
14103 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14104 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'
14106 esac
14107 archive_cmds_need_lc_CXX=no
14108 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14109 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14110 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14112 pgCC* | pgcpp*)
14113 # Portland Group C++ compiler
14114 case `$CC -V` in
14115 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14116 prelink_cmds_CXX='tpldir=Template.dir~
14117 rm -rf $tpldir~
14118 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14119 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14120 old_archive_cmds_CXX='tpldir=Template.dir~
14121 rm -rf $tpldir~
14122 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14123 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14124 $RANLIB $oldlib'
14125 archive_cmds_CXX='tpldir=Template.dir~
14126 rm -rf $tpldir~
14127 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14128 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14129 archive_expsym_cmds_CXX='tpldir=Template.dir~
14130 rm -rf $tpldir~
14131 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14132 $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'
14134 *) # Version 6 and above use weak symbols
14135 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14136 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'
14138 esac
14140 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14141 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14142 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'
14144 cxx*)
14145 # Compaq C++
14146 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14147 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'
14149 runpath_var=LD_RUN_PATH
14150 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14151 hardcode_libdir_separator_CXX=:
14153 # Commands to make compiler produce verbose output that lists
14154 # what "hidden" libraries, object files and flags are used when
14155 # linking a shared library.
14157 # There doesn't appear to be a way to prevent this compiler from
14158 # explicitly linking system object files so we need to strip them
14159 # from the output so that they don't get included in the library
14160 # dependencies.
14161 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'
14163 xl* | mpixl* | bgxl*)
14164 # IBM XL 8.0 on PPC, with GNU ld
14165 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14166 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14167 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14168 if test "x$supports_anon_versioning" = xyes; then
14169 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14170 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14171 echo "local: *; };" >> $output_objdir/$libname.ver~
14172 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14176 case `$CC -V 2>&1 | sed 5q` in
14177 *Sun\ C*)
14178 # Sun C++ 5.9
14179 no_undefined_flag_CXX=' -zdefs'
14180 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14181 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'
14182 hardcode_libdir_flag_spec_CXX='-R$libdir'
14183 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'
14184 compiler_needs_object_CXX=yes
14186 # Not sure whether something based on
14187 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14188 # would be better.
14189 output_verbose_link_cmd='func_echo_all'
14191 # Archives containing C++ object files must be created using
14192 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14193 # necessary to make sure instantiated templates are included
14194 # in the archive.
14195 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14197 esac
14199 esac
14202 lynxos*)
14203 # FIXME: insert proper C++ library support
14204 ld_shlibs_CXX=no
14207 m88k*)
14208 # FIXME: insert proper C++ library support
14209 ld_shlibs_CXX=no
14212 mvs*)
14213 case $cc_basename in
14214 cxx*)
14215 # FIXME: insert proper C++ library support
14216 ld_shlibs_CXX=no
14219 # FIXME: insert proper C++ library support
14220 ld_shlibs_CXX=no
14222 esac
14225 netbsd*)
14226 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14227 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14228 wlarc=
14229 hardcode_libdir_flag_spec_CXX='-R$libdir'
14230 hardcode_direct_CXX=yes
14231 hardcode_shlibpath_var_CXX=no
14233 # Workaround some broken pre-1.5 toolchains
14234 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14237 *nto* | *qnx*)
14238 ld_shlibs_CXX=yes
14241 openbsd2*)
14242 # C++ shared libraries are fairly broken
14243 ld_shlibs_CXX=no
14246 openbsd*)
14247 if test -f /usr/libexec/ld.so; then
14248 hardcode_direct_CXX=yes
14249 hardcode_shlibpath_var_CXX=no
14250 hardcode_direct_absolute_CXX=yes
14251 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14252 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14253 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14254 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14255 export_dynamic_flag_spec_CXX='${wl}-E'
14256 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14258 output_verbose_link_cmd=func_echo_all
14259 else
14260 ld_shlibs_CXX=no
14264 osf3* | osf4* | osf5*)
14265 case $cc_basename in
14266 KCC*)
14267 # Kuck and Associates, Inc. (KAI) C++ Compiler
14269 # KCC will only create a shared library if the output file
14270 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14271 # to its proper name (with version) after linking.
14272 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'
14274 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14275 hardcode_libdir_separator_CXX=:
14277 # Archives containing C++ object files must be created using
14278 # the KAI C++ compiler.
14279 case $host in
14280 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14281 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14282 esac
14284 RCC*)
14285 # Rational C++ 2.4.1
14286 # FIXME: insert proper C++ library support
14287 ld_shlibs_CXX=no
14289 cxx*)
14290 case $host in
14291 osf3*)
14292 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14293 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'
14294 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14297 allow_undefined_flag_CXX=' -expect_unresolved \*'
14298 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'
14299 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14300 echo "-hidden">> $lib.exp~
14301 $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~
14302 $RM $lib.exp'
14303 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14305 esac
14307 hardcode_libdir_separator_CXX=:
14309 # Commands to make compiler produce verbose output that lists
14310 # what "hidden" libraries, object files and flags are used when
14311 # linking a shared library.
14313 # There doesn't appear to be a way to prevent this compiler from
14314 # explicitly linking system object files so we need to strip them
14315 # from the output so that they don't get included in the library
14316 # dependencies.
14317 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"'
14320 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14321 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14322 case $host in
14323 osf3*)
14324 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'
14327 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'
14329 esac
14331 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14332 hardcode_libdir_separator_CXX=:
14334 # Commands to make compiler produce verbose output that lists
14335 # what "hidden" libraries, object files and flags are used when
14336 # linking a shared library.
14337 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14339 else
14340 # FIXME: insert proper C++ library support
14341 ld_shlibs_CXX=no
14344 esac
14347 psos*)
14348 # FIXME: insert proper C++ library support
14349 ld_shlibs_CXX=no
14352 sunos4*)
14353 case $cc_basename in
14354 CC*)
14355 # Sun C++ 4.x
14356 # FIXME: insert proper C++ library support
14357 ld_shlibs_CXX=no
14359 lcc*)
14360 # Lucid
14361 # FIXME: insert proper C++ library support
14362 ld_shlibs_CXX=no
14365 # FIXME: insert proper C++ library support
14366 ld_shlibs_CXX=no
14368 esac
14371 solaris*)
14372 case $cc_basename in
14373 CC*)
14374 # Sun C++ 4.2, 5.x and Centerline C++
14375 archive_cmds_need_lc_CXX=yes
14376 no_undefined_flag_CXX=' -zdefs'
14377 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14378 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14379 $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'
14381 hardcode_libdir_flag_spec_CXX='-R$libdir'
14382 hardcode_shlibpath_var_CXX=no
14383 case $host_os in
14384 solaris2.[0-5] | solaris2.[0-5].*) ;;
14386 # The compiler driver will combine and reorder linker options,
14387 # but understands `-z linker_flag'.
14388 # Supported since Solaris 2.6 (maybe 2.5.1?)
14389 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14391 esac
14392 link_all_deplibs_CXX=yes
14394 output_verbose_link_cmd='func_echo_all'
14396 # Archives containing C++ object files must be created using
14397 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14398 # necessary to make sure instantiated templates are included
14399 # in the archive.
14400 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14402 gcx*)
14403 # Green Hills C++ Compiler
14404 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14406 # The C++ compiler must be used to create the archive.
14407 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14410 # GNU C++ compiler with Solaris linker
14411 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14412 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14413 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14414 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14415 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14416 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14418 # Commands to make compiler produce verbose output that lists
14419 # what "hidden" libraries, object files and flags are used when
14420 # linking a shared library.
14421 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14422 else
14423 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14424 # platform.
14425 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14426 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14427 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14429 # Commands to make compiler produce verbose output that lists
14430 # what "hidden" libraries, object files and flags are used when
14431 # linking a shared library.
14432 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14435 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14436 case $host_os in
14437 solaris2.[0-5] | solaris2.[0-5].*) ;;
14439 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14441 esac
14444 esac
14447 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14448 no_undefined_flag_CXX='${wl}-z,text'
14449 archive_cmds_need_lc_CXX=no
14450 hardcode_shlibpath_var_CXX=no
14451 runpath_var='LD_RUN_PATH'
14453 case $cc_basename in
14454 CC*)
14455 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14456 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14459 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14460 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14462 esac
14465 sysv5* | sco3.2v5* | sco5v6*)
14466 # Note: We can NOT use -z defs as we might desire, because we do not
14467 # link with -lc, and that would cause any symbols used from libc to
14468 # always be unresolved, which means just about no library would
14469 # ever link correctly. If we're not using GNU ld we use -z text
14470 # though, which does catch some bad symbols but isn't as heavy-handed
14471 # as -z defs.
14472 no_undefined_flag_CXX='${wl}-z,text'
14473 allow_undefined_flag_CXX='${wl}-z,nodefs'
14474 archive_cmds_need_lc_CXX=no
14475 hardcode_shlibpath_var_CXX=no
14476 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14477 hardcode_libdir_separator_CXX=':'
14478 link_all_deplibs_CXX=yes
14479 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14480 runpath_var='LD_RUN_PATH'
14482 case $cc_basename in
14483 CC*)
14484 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14485 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14486 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14487 '"$old_archive_cmds_CXX"
14488 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14489 '"$reload_cmds_CXX"
14492 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14493 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14495 esac
14498 tandem*)
14499 case $cc_basename in
14500 NCC*)
14501 # NonStop-UX NCC 3.20
14502 # FIXME: insert proper C++ library support
14503 ld_shlibs_CXX=no
14506 # FIXME: insert proper C++ library support
14507 ld_shlibs_CXX=no
14509 esac
14512 vxworks*)
14513 # For VxWorks ports, we assume the use of a GNU linker with
14514 # standard elf conventions.
14515 ld_shlibs_CXX=yes
14519 # FIXME: insert proper C++ library support
14520 ld_shlibs_CXX=no
14522 esac
14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14525 $as_echo "$ld_shlibs_CXX" >&6; }
14526 test "$ld_shlibs_CXX" = no && can_build_shared=no
14528 GCC_CXX="$GXX"
14529 LD_CXX="$LD"
14531 ## CAVEAT EMPTOR:
14532 ## There is no encapsulation within the following macros, do not change
14533 ## the running order or otherwise move them around unless you know exactly
14534 ## what you are doing...
14535 # Dependencies to place before and after the object being linked:
14536 predep_objects_CXX=
14537 postdep_objects_CXX=
14538 predeps_CXX=
14539 postdeps_CXX=
14540 compiler_lib_search_path_CXX=
14542 cat > conftest.$ac_ext <<_LT_EOF
14543 class Foo
14545 public:
14546 Foo (void) { a = 0; }
14547 private:
14548 int a;
14550 _LT_EOF
14552 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14553 (eval $ac_compile) 2>&5
14554 ac_status=$?
14555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14556 test $ac_status = 0; }; then
14557 # Parse the compiler output and extract the necessary
14558 # objects, libraries and library flags.
14560 # Sentinel used to keep track of whether or not we are before
14561 # the conftest object file.
14562 pre_test_object_deps_done=no
14564 for p in `eval "$output_verbose_link_cmd"`; do
14565 case $p in
14567 -L* | -R* | -l*)
14568 # Some compilers place space between "-{L,R}" and the path.
14569 # Remove the space.
14570 if test $p = "-L" ||
14571 test $p = "-R"; then
14572 prev=$p
14573 continue
14574 else
14575 prev=
14578 if test "$pre_test_object_deps_done" = no; then
14579 case $p in
14580 -L* | -R*)
14581 # Internal compiler library paths should come after those
14582 # provided the user. The postdeps already come after the
14583 # user supplied libs so there is no need to process them.
14584 if test -z "$compiler_lib_search_path_CXX"; then
14585 compiler_lib_search_path_CXX="${prev}${p}"
14586 else
14587 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14590 # The "-l" case would never come before the object being
14591 # linked, so don't bother handling this case.
14592 esac
14593 else
14594 if test -z "$postdeps_CXX"; then
14595 postdeps_CXX="${prev}${p}"
14596 else
14597 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14602 *.$objext)
14603 # This assumes that the test object file only shows up
14604 # once in the compiler output.
14605 if test "$p" = "conftest.$objext"; then
14606 pre_test_object_deps_done=yes
14607 continue
14610 if test "$pre_test_object_deps_done" = no; then
14611 if test -z "$predep_objects_CXX"; then
14612 predep_objects_CXX="$p"
14613 else
14614 predep_objects_CXX="$predep_objects_CXX $p"
14616 else
14617 if test -z "$postdep_objects_CXX"; then
14618 postdep_objects_CXX="$p"
14619 else
14620 postdep_objects_CXX="$postdep_objects_CXX $p"
14625 *) ;; # Ignore the rest.
14627 esac
14628 done
14630 # Clean up.
14631 rm -f a.out a.exe
14632 else
14633 echo "libtool.m4: error: problem compiling CXX test program"
14636 $RM -f confest.$objext
14638 # PORTME: override above test on systems where it is broken
14639 case $host_os in
14640 interix[3-9]*)
14641 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14642 # hack all around it, let's just trust "g++" to DTRT.
14643 predep_objects_CXX=
14644 postdep_objects_CXX=
14645 postdeps_CXX=
14648 linux*)
14649 case `$CC -V 2>&1 | sed 5q` in
14650 *Sun\ C*)
14651 # Sun C++ 5.9
14653 # The more standards-conforming stlport4 library is
14654 # incompatible with the Cstd library. Avoid specifying
14655 # it if it's in CXXFLAGS. Ignore libCrun as
14656 # -library=stlport4 depends on it.
14657 case " $CXX $CXXFLAGS " in
14658 *" -library=stlport4 "*)
14659 solaris_use_stlport4=yes
14661 esac
14663 if test "$solaris_use_stlport4" != yes; then
14664 postdeps_CXX='-library=Cstd -library=Crun'
14667 esac
14670 solaris*)
14671 case $cc_basename in
14672 CC*)
14673 # The more standards-conforming stlport4 library is
14674 # incompatible with the Cstd library. Avoid specifying
14675 # it if it's in CXXFLAGS. Ignore libCrun as
14676 # -library=stlport4 depends on it.
14677 case " $CXX $CXXFLAGS " in
14678 *" -library=stlport4 "*)
14679 solaris_use_stlport4=yes
14681 esac
14683 # Adding this requires a known-good setup of shared libraries for
14684 # Sun compiler versions before 5.6, else PIC objects from an old
14685 # archive will be linked into the output, leading to subtle bugs.
14686 if test "$solaris_use_stlport4" != yes; then
14687 postdeps_CXX='-library=Cstd -library=Crun'
14690 esac
14692 esac
14695 case " $postdeps_CXX " in
14696 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14697 esac
14698 compiler_lib_search_dirs_CXX=
14699 if test -n "${compiler_lib_search_path_CXX}"; then
14700 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14733 lt_prog_compiler_wl_CXX=
14734 lt_prog_compiler_pic_CXX=
14735 lt_prog_compiler_static_CXX=
14737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14738 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14740 # C++ specific cases for pic, static, wl, etc.
14741 if test "$GXX" = yes; then
14742 lt_prog_compiler_wl_CXX='-Wl,'
14743 lt_prog_compiler_static_CXX='-static'
14745 case $host_os in
14746 aix*)
14747 # All AIX code is PIC.
14748 if test "$host_cpu" = ia64; then
14749 # AIX 5 now supports IA64 processor
14750 lt_prog_compiler_static_CXX='-Bstatic'
14752 lt_prog_compiler_pic_CXX='-fPIC'
14755 amigaos*)
14756 case $host_cpu in
14757 powerpc)
14758 # see comment about AmigaOS4 .so support
14759 lt_prog_compiler_pic_CXX='-fPIC'
14761 m68k)
14762 # FIXME: we need at least 68020 code to build shared libraries, but
14763 # adding the `-m68020' flag to GCC prevents building anything better,
14764 # like `-m68040'.
14765 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14767 esac
14770 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14771 # PIC is the default for these OSes.
14773 mingw* | cygwin* | os2* | pw32* | cegcc*)
14774 # This hack is so that the source file can tell whether it is being
14775 # built for inclusion in a dll (and should export symbols for example).
14776 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14777 # (--disable-auto-import) libraries
14778 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14780 darwin* | rhapsody*)
14781 # PIC is the default on this platform
14782 # Common symbols not allowed in MH_DYLIB files
14783 lt_prog_compiler_pic_CXX='-fno-common'
14785 *djgpp*)
14786 # DJGPP does not support shared libraries at all
14787 lt_prog_compiler_pic_CXX=
14789 haiku*)
14790 # PIC is the default for Haiku.
14791 # The "-static" flag exists, but is broken.
14792 lt_prog_compiler_static_CXX=
14794 interix[3-9]*)
14795 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14796 # Instead, we relocate shared libraries at runtime.
14798 sysv4*MP*)
14799 if test -d /usr/nec; then
14800 lt_prog_compiler_pic_CXX=-Kconform_pic
14803 hpux*)
14804 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14805 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14806 # sets the default TLS model and affects inlining.
14807 case $host_cpu in
14808 hppa*64*)
14811 lt_prog_compiler_pic_CXX='-fPIC'
14813 esac
14815 *qnx* | *nto*)
14816 # QNX uses GNU C++, but need to define -shared option too, otherwise
14817 # it will coredump.
14818 lt_prog_compiler_pic_CXX='-fPIC -shared'
14821 lt_prog_compiler_pic_CXX='-fPIC'
14823 esac
14824 else
14825 case $host_os in
14826 aix[4-9]*)
14827 # All AIX code is PIC.
14828 if test "$host_cpu" = ia64; then
14829 # AIX 5 now supports IA64 processor
14830 lt_prog_compiler_static_CXX='-Bstatic'
14831 else
14832 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14835 chorus*)
14836 case $cc_basename in
14837 cxch68*)
14838 # Green Hills C++ Compiler
14839 # _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"
14841 esac
14843 dgux*)
14844 case $cc_basename in
14845 ec++*)
14846 lt_prog_compiler_pic_CXX='-KPIC'
14848 ghcx*)
14849 # Green Hills C++ Compiler
14850 lt_prog_compiler_pic_CXX='-pic'
14854 esac
14856 freebsd* | dragonfly*)
14857 # FreeBSD uses GNU C++
14859 hpux9* | hpux10* | hpux11*)
14860 case $cc_basename in
14861 CC*)
14862 lt_prog_compiler_wl_CXX='-Wl,'
14863 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14864 if test "$host_cpu" != ia64; then
14865 lt_prog_compiler_pic_CXX='+Z'
14868 aCC*)
14869 lt_prog_compiler_wl_CXX='-Wl,'
14870 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14871 case $host_cpu in
14872 hppa*64*|ia64*)
14873 # +Z the default
14876 lt_prog_compiler_pic_CXX='+Z'
14878 esac
14882 esac
14884 interix*)
14885 # This is c89, which is MS Visual C++ (no shared libs)
14886 # Anyone wants to do a port?
14888 irix5* | irix6* | nonstopux*)
14889 case $cc_basename in
14890 CC*)
14891 lt_prog_compiler_wl_CXX='-Wl,'
14892 lt_prog_compiler_static_CXX='-non_shared'
14893 # CC pic flag -KPIC is the default.
14897 esac
14899 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14900 case $cc_basename in
14901 KCC*)
14902 # KAI C++ Compiler
14903 lt_prog_compiler_wl_CXX='--backend -Wl,'
14904 lt_prog_compiler_pic_CXX='-fPIC'
14906 ecpc* )
14907 # old Intel C++ for x86_64 which still supported -KPIC.
14908 lt_prog_compiler_wl_CXX='-Wl,'
14909 lt_prog_compiler_pic_CXX='-KPIC'
14910 lt_prog_compiler_static_CXX='-static'
14912 icpc* )
14913 # Intel C++, used to be incompatible with GCC.
14914 # ICC 10 doesn't accept -KPIC any more.
14915 lt_prog_compiler_wl_CXX='-Wl,'
14916 lt_prog_compiler_pic_CXX='-fPIC'
14917 lt_prog_compiler_static_CXX='-static'
14919 pgCC* | pgcpp*)
14920 # Portland Group C++ compiler
14921 lt_prog_compiler_wl_CXX='-Wl,'
14922 lt_prog_compiler_pic_CXX='-fpic'
14923 lt_prog_compiler_static_CXX='-Bstatic'
14925 cxx*)
14926 # Compaq C++
14927 # Make sure the PIC flag is empty. It appears that all Alpha
14928 # Linux and Compaq Tru64 Unix objects are PIC.
14929 lt_prog_compiler_pic_CXX=
14930 lt_prog_compiler_static_CXX='-non_shared'
14932 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14933 # IBM XL 8.0, 9.0 on PPC and BlueGene
14934 lt_prog_compiler_wl_CXX='-Wl,'
14935 lt_prog_compiler_pic_CXX='-qpic'
14936 lt_prog_compiler_static_CXX='-qstaticlink'
14939 case `$CC -V 2>&1 | sed 5q` in
14940 *Sun\ C*)
14941 # Sun C++ 5.9
14942 lt_prog_compiler_pic_CXX='-KPIC'
14943 lt_prog_compiler_static_CXX='-Bstatic'
14944 lt_prog_compiler_wl_CXX='-Qoption ld '
14946 esac
14948 esac
14950 lynxos*)
14952 m88k*)
14954 mvs*)
14955 case $cc_basename in
14956 cxx*)
14957 lt_prog_compiler_pic_CXX='-W c,exportall'
14961 esac
14963 netbsd*)
14965 *qnx* | *nto*)
14966 # QNX uses GNU C++, but need to define -shared option too, otherwise
14967 # it will coredump.
14968 lt_prog_compiler_pic_CXX='-fPIC -shared'
14970 osf3* | osf4* | osf5*)
14971 case $cc_basename in
14972 KCC*)
14973 lt_prog_compiler_wl_CXX='--backend -Wl,'
14975 RCC*)
14976 # Rational C++ 2.4.1
14977 lt_prog_compiler_pic_CXX='-pic'
14979 cxx*)
14980 # Digital/Compaq C++
14981 lt_prog_compiler_wl_CXX='-Wl,'
14982 # Make sure the PIC flag is empty. It appears that all Alpha
14983 # Linux and Compaq Tru64 Unix objects are PIC.
14984 lt_prog_compiler_pic_CXX=
14985 lt_prog_compiler_static_CXX='-non_shared'
14989 esac
14991 psos*)
14993 solaris*)
14994 case $cc_basename in
14995 CC*)
14996 # Sun C++ 4.2, 5.x and Centerline C++
14997 lt_prog_compiler_pic_CXX='-KPIC'
14998 lt_prog_compiler_static_CXX='-Bstatic'
14999 lt_prog_compiler_wl_CXX='-Qoption ld '
15001 gcx*)
15002 # Green Hills C++ Compiler
15003 lt_prog_compiler_pic_CXX='-PIC'
15007 esac
15009 sunos4*)
15010 case $cc_basename in
15011 CC*)
15012 # Sun C++ 4.x
15013 lt_prog_compiler_pic_CXX='-pic'
15014 lt_prog_compiler_static_CXX='-Bstatic'
15016 lcc*)
15017 # Lucid
15018 lt_prog_compiler_pic_CXX='-pic'
15022 esac
15024 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15025 case $cc_basename in
15026 CC*)
15027 lt_prog_compiler_wl_CXX='-Wl,'
15028 lt_prog_compiler_pic_CXX='-KPIC'
15029 lt_prog_compiler_static_CXX='-Bstatic'
15031 esac
15033 tandem*)
15034 case $cc_basename in
15035 NCC*)
15036 # NonStop-UX NCC 3.20
15037 lt_prog_compiler_pic_CXX='-KPIC'
15041 esac
15043 vxworks*)
15046 lt_prog_compiler_can_build_shared_CXX=no
15048 esac
15051 case $host_os in
15052 # For platforms which do not support PIC, -DPIC is meaningless:
15053 *djgpp*)
15054 lt_prog_compiler_pic_CXX=
15057 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
15059 esac
15060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
15061 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
15066 # Check to make sure the PIC flag actually works.
15068 if test -n "$lt_prog_compiler_pic_CXX"; then
15069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
15070 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
15071 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
15072 $as_echo_n "(cached) " >&6
15073 else
15074 lt_cv_prog_compiler_pic_works_CXX=no
15075 ac_outfile=conftest.$ac_objext
15076 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15077 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
15078 # Insert the option either (1) after the last *FLAGS variable, or
15079 # (2) before a word containing "conftest.", or (3) at the end.
15080 # Note that $ac_compile itself does not contain backslashes and begins
15081 # with a dollar sign (not a hyphen), so the echo should work correctly.
15082 # The option is referenced via a variable to avoid confusing sed.
15083 lt_compile=`echo "$ac_compile" | $SED \
15084 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15085 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15086 -e 's:$: $lt_compiler_flag:'`
15087 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15088 (eval "$lt_compile" 2>conftest.err)
15089 ac_status=$?
15090 cat conftest.err >&5
15091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15092 if (exit $ac_status) && test -s "$ac_outfile"; then
15093 # The compiler can only warn and ignore the option if not recognized
15094 # So say no if there are warnings other than the usual output.
15095 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
15096 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15097 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15098 lt_cv_prog_compiler_pic_works_CXX=yes
15101 $RM conftest*
15104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15105 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15107 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15108 case $lt_prog_compiler_pic_CXX in
15109 "" | " "*) ;;
15110 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15111 esac
15112 else
15113 lt_prog_compiler_pic_CXX=
15114 lt_prog_compiler_can_build_shared_CXX=no
15122 # Check to make sure the static flag actually works.
15124 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15126 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15127 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15128 $as_echo_n "(cached) " >&6
15129 else
15130 lt_cv_prog_compiler_static_works_CXX=no
15131 save_LDFLAGS="$LDFLAGS"
15132 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15133 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15134 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15135 # The linker can only warn and ignore the option if not recognized
15136 # So say no if there are warnings
15137 if test -s conftest.err; then
15138 # Append any errors to the config.log.
15139 cat conftest.err 1>&5
15140 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15141 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15142 if diff conftest.exp conftest.er2 >/dev/null; then
15143 lt_cv_prog_compiler_static_works_CXX=yes
15145 else
15146 lt_cv_prog_compiler_static_works_CXX=yes
15149 $RM -r conftest*
15150 LDFLAGS="$save_LDFLAGS"
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15154 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15156 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15158 else
15159 lt_prog_compiler_static_CXX=
15165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15166 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15167 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15168 $as_echo_n "(cached) " >&6
15169 else
15170 lt_cv_prog_compiler_c_o_CXX=no
15171 $RM -r conftest 2>/dev/null
15172 mkdir conftest
15173 cd conftest
15174 mkdir out
15175 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15177 lt_compiler_flag="-o out/conftest2.$ac_objext"
15178 # Insert the option either (1) after the last *FLAGS variable, or
15179 # (2) before a word containing "conftest.", or (3) at the end.
15180 # Note that $ac_compile itself does not contain backslashes and begins
15181 # with a dollar sign (not a hyphen), so the echo should work correctly.
15182 lt_compile=`echo "$ac_compile" | $SED \
15183 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15184 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15185 -e 's:$: $lt_compiler_flag:'`
15186 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15187 (eval "$lt_compile" 2>out/conftest.err)
15188 ac_status=$?
15189 cat out/conftest.err >&5
15190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15191 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15192 then
15193 # The compiler can only warn and ignore the option if not recognized
15194 # So say no if there are warnings
15195 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15196 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15197 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15198 lt_cv_prog_compiler_c_o_CXX=yes
15201 chmod u+w . 2>&5
15202 $RM conftest*
15203 # SGI C++ compiler will create directory out/ii_files/ for
15204 # template instantiation
15205 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15206 $RM out/* && rmdir out
15207 cd ..
15208 $RM -r conftest
15209 $RM conftest*
15212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15213 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15218 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15219 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15220 $as_echo_n "(cached) " >&6
15221 else
15222 lt_cv_prog_compiler_c_o_CXX=no
15223 $RM -r conftest 2>/dev/null
15224 mkdir conftest
15225 cd conftest
15226 mkdir out
15227 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15229 lt_compiler_flag="-o out/conftest2.$ac_objext"
15230 # Insert the option either (1) after the last *FLAGS variable, or
15231 # (2) before a word containing "conftest.", or (3) at the end.
15232 # Note that $ac_compile itself does not contain backslashes and begins
15233 # with a dollar sign (not a hyphen), so the echo should work correctly.
15234 lt_compile=`echo "$ac_compile" | $SED \
15235 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15236 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15237 -e 's:$: $lt_compiler_flag:'`
15238 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15239 (eval "$lt_compile" 2>out/conftest.err)
15240 ac_status=$?
15241 cat out/conftest.err >&5
15242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15243 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15244 then
15245 # The compiler can only warn and ignore the option if not recognized
15246 # So say no if there are warnings
15247 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15248 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15249 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15250 lt_cv_prog_compiler_c_o_CXX=yes
15253 chmod u+w . 2>&5
15254 $RM conftest*
15255 # SGI C++ compiler will create directory out/ii_files/ for
15256 # template instantiation
15257 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15258 $RM out/* && rmdir out
15259 cd ..
15260 $RM -r conftest
15261 $RM conftest*
15264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15265 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15270 hard_links="nottested"
15271 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15272 # do not overwrite the value of need_locks provided by the user
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15274 $as_echo_n "checking if we can lock with hard links... " >&6; }
15275 hard_links=yes
15276 $RM conftest*
15277 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15278 touch conftest.a
15279 ln conftest.a conftest.b 2>&5 || hard_links=no
15280 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15282 $as_echo "$hard_links" >&6; }
15283 if test "$hard_links" = no; then
15284 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15285 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15286 need_locks=warn
15288 else
15289 need_locks=no
15294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15295 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15297 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15298 case $host_os in
15299 aix[4-9]*)
15300 # If we're using GNU nm, then we don't want the "-C" option.
15301 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15302 # Also, AIX nm treats weak defined symbols like other global defined
15303 # symbols, whereas GNU nm marks them as "W".
15304 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15305 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'
15306 else
15307 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'
15310 pw32*)
15311 export_symbols_cmds_CXX="$ltdll_cmds"
15313 cygwin* | mingw* | cegcc*)
15314 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'
15317 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15319 esac
15320 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15323 $as_echo "$ld_shlibs_CXX" >&6; }
15324 test "$ld_shlibs_CXX" = no && can_build_shared=no
15326 with_gnu_ld_CXX=$with_gnu_ld
15334 # Do we need to explicitly link libc?
15336 case "x$archive_cmds_need_lc_CXX" in
15337 x|xyes)
15338 # Assume -lc should be added
15339 archive_cmds_need_lc_CXX=yes
15341 if test "$enable_shared" = yes && test "$GCC" = yes; then
15342 case $archive_cmds_CXX in
15343 *'~'*)
15344 # FIXME: we may have to deal with multi-command sequences.
15346 '$CC '*)
15347 # Test whether the compiler implicitly links with -lc since on some
15348 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15349 # to ld, don't add -lc before -lgcc.
15350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15351 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15352 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15353 $as_echo_n "(cached) " >&6
15354 else
15355 $RM conftest*
15356 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15359 (eval $ac_compile) 2>&5
15360 ac_status=$?
15361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15362 test $ac_status = 0; } 2>conftest.err; then
15363 soname=conftest
15364 lib=conftest
15365 libobjs=conftest.$ac_objext
15366 deplibs=
15367 wl=$lt_prog_compiler_wl_CXX
15368 pic_flag=$lt_prog_compiler_pic_CXX
15369 compiler_flags=-v
15370 linker_flags=-v
15371 verstring=
15372 output_objdir=.
15373 libname=conftest
15374 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15375 allow_undefined_flag_CXX=
15376 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15377 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15378 ac_status=$?
15379 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15380 test $ac_status = 0; }
15381 then
15382 lt_cv_archive_cmds_need_lc_CXX=no
15383 else
15384 lt_cv_archive_cmds_need_lc_CXX=yes
15386 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15387 else
15388 cat conftest.err 1>&5
15390 $RM conftest*
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15394 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15395 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15397 esac
15400 esac
15465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15466 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15468 library_names_spec=
15469 libname_spec='lib$name'
15470 soname_spec=
15471 shrext_cmds=".so"
15472 postinstall_cmds=
15473 postuninstall_cmds=
15474 finish_cmds=
15475 finish_eval=
15476 shlibpath_var=
15477 shlibpath_overrides_runpath=unknown
15478 version_type=none
15479 dynamic_linker="$host_os ld.so"
15480 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15481 need_lib_prefix=unknown
15482 hardcode_into_libs=no
15484 # when you set need_version to no, make sure it does not cause -set_version
15485 # flags to be left without arguments
15486 need_version=unknown
15488 case $host_os in
15489 aix3*)
15490 version_type=linux
15491 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15492 shlibpath_var=LIBPATH
15494 # AIX 3 has no versioning support, so we append a major version to the name.
15495 soname_spec='${libname}${release}${shared_ext}$major'
15498 aix[4-9]*)
15499 version_type=linux
15500 need_lib_prefix=no
15501 need_version=no
15502 hardcode_into_libs=yes
15503 if test "$host_cpu" = ia64; then
15504 # AIX 5 supports IA64
15505 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15506 shlibpath_var=LD_LIBRARY_PATH
15507 else
15508 # With GCC up to 2.95.x, collect2 would create an import file
15509 # for dependence libraries. The import file would start with
15510 # the line `#! .'. This would cause the generated library to
15511 # depend on `.', always an invalid library. This was fixed in
15512 # development snapshots of GCC prior to 3.0.
15513 case $host_os in
15514 aix4 | aix4.[01] | aix4.[01].*)
15515 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15516 echo ' yes '
15517 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15519 else
15520 can_build_shared=no
15523 esac
15524 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15525 # soname into executable. Probably we can add versioning support to
15526 # collect2, so additional links can be useful in future.
15527 if test "$aix_use_runtimelinking" = yes; then
15528 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15529 # instead of lib<name>.a to let people know that these are not
15530 # typical AIX shared libraries.
15531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15532 else
15533 # We preserve .a as extension for shared libraries through AIX4.2
15534 # and later when we are not doing run time linking.
15535 library_names_spec='${libname}${release}.a $libname.a'
15536 soname_spec='${libname}${release}${shared_ext}$major'
15538 shlibpath_var=LIBPATH
15542 amigaos*)
15543 case $host_cpu in
15544 powerpc)
15545 # Since July 2007 AmigaOS4 officially supports .so libraries.
15546 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15547 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15549 m68k)
15550 library_names_spec='$libname.ixlibrary $libname.a'
15551 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15552 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'
15554 esac
15557 beos*)
15558 library_names_spec='${libname}${shared_ext}'
15559 dynamic_linker="$host_os ld.so"
15560 shlibpath_var=LIBRARY_PATH
15563 bsdi[45]*)
15564 version_type=linux
15565 need_version=no
15566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15567 soname_spec='${libname}${release}${shared_ext}$major'
15568 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15569 shlibpath_var=LD_LIBRARY_PATH
15570 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15571 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15572 # the default ld.so.conf also contains /usr/contrib/lib and
15573 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15574 # libtool to hard-code these into programs
15577 cygwin* | mingw* | pw32* | cegcc*)
15578 version_type=windows
15579 shrext_cmds=".dll"
15580 need_version=no
15581 need_lib_prefix=no
15583 case $GCC,$host_os in
15584 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15585 library_names_spec='$libname.dll.a'
15586 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15587 postinstall_cmds='base_file=`basename \${file}`~
15588 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15589 dldir=$destdir/`dirname \$dlpath`~
15590 test -d \$dldir || mkdir -p \$dldir~
15591 $install_prog $dir/$dlname \$dldir/$dlname~
15592 chmod a+x \$dldir/$dlname~
15593 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15594 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15596 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15597 dlpath=$dir/\$dldll~
15598 $RM \$dlpath'
15599 shlibpath_overrides_runpath=yes
15601 case $host_os in
15602 cygwin*)
15603 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15604 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15607 mingw* | cegcc*)
15608 # MinGW DLLs use traditional 'lib' prefix
15609 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15611 pw32*)
15612 # pw32 DLLs use 'pw' prefix rather than 'lib'
15613 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15615 esac
15619 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15621 esac
15622 dynamic_linker='Win32 ld.exe'
15623 # FIXME: first we should search . and the directory the executable is in
15624 shlibpath_var=PATH
15627 darwin* | rhapsody*)
15628 dynamic_linker="$host_os dyld"
15629 version_type=darwin
15630 need_lib_prefix=no
15631 need_version=no
15632 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15633 soname_spec='${libname}${release}${major}$shared_ext'
15634 shlibpath_overrides_runpath=yes
15635 shlibpath_var=DYLD_LIBRARY_PATH
15636 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15638 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15641 dgux*)
15642 version_type=linux
15643 need_lib_prefix=no
15644 need_version=no
15645 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15646 soname_spec='${libname}${release}${shared_ext}$major'
15647 shlibpath_var=LD_LIBRARY_PATH
15650 freebsd* | dragonfly*)
15651 # DragonFly does not have aout. When/if they implement a new
15652 # versioning mechanism, adjust this.
15653 if test -x /usr/bin/objformat; then
15654 objformat=`/usr/bin/objformat`
15655 else
15656 case $host_os in
15657 freebsd[23].*) objformat=aout ;;
15658 *) objformat=elf ;;
15659 esac
15661 version_type=freebsd-$objformat
15662 case $version_type in
15663 freebsd-elf*)
15664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15665 need_version=no
15666 need_lib_prefix=no
15668 freebsd-*)
15669 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15670 need_version=yes
15672 esac
15673 shlibpath_var=LD_LIBRARY_PATH
15674 case $host_os in
15675 freebsd2.*)
15676 shlibpath_overrides_runpath=yes
15678 freebsd3.[01]* | freebsdelf3.[01]*)
15679 shlibpath_overrides_runpath=yes
15680 hardcode_into_libs=yes
15682 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15683 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15684 shlibpath_overrides_runpath=no
15685 hardcode_into_libs=yes
15687 *) # from 4.6 on, and DragonFly
15688 shlibpath_overrides_runpath=yes
15689 hardcode_into_libs=yes
15691 esac
15694 haiku*)
15695 version_type=linux
15696 need_lib_prefix=no
15697 need_version=no
15698 dynamic_linker="$host_os runtime_loader"
15699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15700 soname_spec='${libname}${release}${shared_ext}$major'
15701 shlibpath_var=LIBRARY_PATH
15702 shlibpath_overrides_runpath=yes
15703 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15704 hardcode_into_libs=yes
15707 hpux9* | hpux10* | hpux11*)
15708 # Give a soname corresponding to the major version so that dld.sl refuses to
15709 # link against other versions.
15710 version_type=sunos
15711 need_lib_prefix=no
15712 need_version=no
15713 case $host_cpu in
15714 ia64*)
15715 shrext_cmds='.so'
15716 hardcode_into_libs=yes
15717 dynamic_linker="$host_os dld.so"
15718 shlibpath_var=LD_LIBRARY_PATH
15719 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15721 soname_spec='${libname}${release}${shared_ext}$major'
15722 if test "X$HPUX_IA64_MODE" = X32; then
15723 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15724 else
15725 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15727 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15729 hppa*64*)
15730 shrext_cmds='.sl'
15731 hardcode_into_libs=yes
15732 dynamic_linker="$host_os dld.sl"
15733 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15734 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15736 soname_spec='${libname}${release}${shared_ext}$major'
15737 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15738 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15741 shrext_cmds='.sl'
15742 dynamic_linker="$host_os dld.sl"
15743 shlibpath_var=SHLIB_PATH
15744 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15746 soname_spec='${libname}${release}${shared_ext}$major'
15748 esac
15749 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15750 postinstall_cmds='chmod 555 $lib'
15751 # or fails outright, so override atomically:
15752 install_override_mode=555
15755 interix[3-9]*)
15756 version_type=linux
15757 need_lib_prefix=no
15758 need_version=no
15759 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15760 soname_spec='${libname}${release}${shared_ext}$major'
15761 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15762 shlibpath_var=LD_LIBRARY_PATH
15763 shlibpath_overrides_runpath=no
15764 hardcode_into_libs=yes
15767 irix5* | irix6* | nonstopux*)
15768 case $host_os in
15769 nonstopux*) version_type=nonstopux ;;
15771 if test "$lt_cv_prog_gnu_ld" = yes; then
15772 version_type=linux
15773 else
15774 version_type=irix
15775 fi ;;
15776 esac
15777 need_lib_prefix=no
15778 need_version=no
15779 soname_spec='${libname}${release}${shared_ext}$major'
15780 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15781 case $host_os in
15782 irix5* | nonstopux*)
15783 libsuff= shlibsuff=
15786 case $LD in # libtool.m4 will add one of these switches to LD
15787 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15788 libsuff= shlibsuff= libmagic=32-bit;;
15789 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15790 libsuff=32 shlibsuff=N32 libmagic=N32;;
15791 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15792 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15793 *) libsuff= shlibsuff= libmagic=never-match;;
15794 esac
15796 esac
15797 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15798 shlibpath_overrides_runpath=no
15799 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15800 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15801 hardcode_into_libs=yes
15804 # No shared lib support for Linux oldld, aout, or coff.
15805 linux*oldld* | linux*aout* | linux*coff*)
15806 dynamic_linker=no
15809 # This must be Linux ELF.
15811 # uclinux* changes (here and below) have been submitted to the libtool
15812 # project, but have not yet been accepted: they are GCC-local changes
15813 # for the time being. (See
15814 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15815 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
15816 version_type=linux
15817 need_lib_prefix=no
15818 need_version=no
15819 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15820 soname_spec='${libname}${release}${shared_ext}$major'
15821 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15822 shlibpath_var=LD_LIBRARY_PATH
15823 shlibpath_overrides_runpath=no
15825 # Some binutils ld are patched to set DT_RUNPATH
15826 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15827 $as_echo_n "(cached) " >&6
15828 else
15829 lt_cv_shlibpath_overrides_runpath=no
15830 save_LDFLAGS=$LDFLAGS
15831 save_libdir=$libdir
15832 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15833 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15834 if test x$gcc_no_link = xyes; then
15835 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15838 /* end confdefs.h. */
15841 main ()
15845 return 0;
15847 _ACEOF
15848 if ac_fn_cxx_try_link "$LINENO"; then :
15849 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15850 lt_cv_shlibpath_overrides_runpath=yes
15853 rm -f core conftest.err conftest.$ac_objext \
15854 conftest$ac_exeext conftest.$ac_ext
15855 LDFLAGS=$save_LDFLAGS
15856 libdir=$save_libdir
15860 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15862 # This implies no fast_install, which is unacceptable.
15863 # Some rework will be needed to allow for fast_install
15864 # before this can be enabled.
15865 hardcode_into_libs=yes
15867 # Append ld.so.conf contents to the search path
15868 if test -f /etc/ld.so.conf; then
15869 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' ' '`
15870 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15873 # We used to test for /lib/ld.so.1 and disable shared libraries on
15874 # powerpc, because MkLinux only supported shared libraries with the
15875 # GNU dynamic linker. Since this was broken with cross compilers,
15876 # most powerpc-linux boxes support dynamic linking these days and
15877 # people can always --disable-shared, the test was removed, and we
15878 # assume the GNU/Linux dynamic linker is in use.
15879 dynamic_linker='GNU/Linux ld.so'
15882 netbsd*)
15883 version_type=sunos
15884 need_lib_prefix=no
15885 need_version=no
15886 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15887 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15888 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15889 dynamic_linker='NetBSD (a.out) ld.so'
15890 else
15891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15892 soname_spec='${libname}${release}${shared_ext}$major'
15893 dynamic_linker='NetBSD ld.elf_so'
15895 shlibpath_var=LD_LIBRARY_PATH
15896 shlibpath_overrides_runpath=yes
15897 hardcode_into_libs=yes
15900 newsos6)
15901 version_type=linux
15902 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15903 shlibpath_var=LD_LIBRARY_PATH
15904 shlibpath_overrides_runpath=yes
15907 *nto* | *qnx*)
15908 version_type=qnx
15909 need_lib_prefix=no
15910 need_version=no
15911 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15912 soname_spec='${libname}${release}${shared_ext}$major'
15913 shlibpath_var=LD_LIBRARY_PATH
15914 shlibpath_overrides_runpath=no
15915 hardcode_into_libs=yes
15916 dynamic_linker='ldqnx.so'
15919 openbsd*)
15920 version_type=sunos
15921 sys_lib_dlsearch_path_spec="/usr/lib"
15922 need_lib_prefix=no
15923 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15924 case $host_os in
15925 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15926 *) need_version=no ;;
15927 esac
15928 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15929 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15930 shlibpath_var=LD_LIBRARY_PATH
15931 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15932 case $host_os in
15933 openbsd2.[89] | openbsd2.[89].*)
15934 shlibpath_overrides_runpath=no
15937 shlibpath_overrides_runpath=yes
15939 esac
15940 else
15941 shlibpath_overrides_runpath=yes
15945 os2*)
15946 libname_spec='$name'
15947 shrext_cmds=".dll"
15948 need_lib_prefix=no
15949 library_names_spec='$libname${shared_ext} $libname.a'
15950 dynamic_linker='OS/2 ld.exe'
15951 shlibpath_var=LIBPATH
15954 osf3* | osf4* | osf5*)
15955 version_type=osf
15956 need_lib_prefix=no
15957 need_version=no
15958 soname_spec='${libname}${release}${shared_ext}$major'
15959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15960 shlibpath_var=LD_LIBRARY_PATH
15961 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15962 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15965 rdos*)
15966 dynamic_linker=no
15969 solaris*)
15970 version_type=linux
15971 need_lib_prefix=no
15972 need_version=no
15973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15974 soname_spec='${libname}${release}${shared_ext}$major'
15975 shlibpath_var=LD_LIBRARY_PATH
15976 shlibpath_overrides_runpath=yes
15977 hardcode_into_libs=yes
15978 # ldd complains unless libraries are executable
15979 postinstall_cmds='chmod +x $lib'
15982 sunos4*)
15983 version_type=sunos
15984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15985 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15986 shlibpath_var=LD_LIBRARY_PATH
15987 shlibpath_overrides_runpath=yes
15988 if test "$with_gnu_ld" = yes; then
15989 need_lib_prefix=no
15991 need_version=yes
15994 sysv4 | sysv4.3*)
15995 version_type=linux
15996 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15997 soname_spec='${libname}${release}${shared_ext}$major'
15998 shlibpath_var=LD_LIBRARY_PATH
15999 case $host_vendor in
16000 sni)
16001 shlibpath_overrides_runpath=no
16002 need_lib_prefix=no
16003 runpath_var=LD_RUN_PATH
16005 siemens)
16006 need_lib_prefix=no
16008 motorola)
16009 need_lib_prefix=no
16010 need_version=no
16011 shlibpath_overrides_runpath=no
16012 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
16014 esac
16017 sysv4*MP*)
16018 if test -d /usr/nec ;then
16019 version_type=linux
16020 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
16021 soname_spec='$libname${shared_ext}.$major'
16022 shlibpath_var=LD_LIBRARY_PATH
16026 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
16027 version_type=freebsd-elf
16028 need_lib_prefix=no
16029 need_version=no
16030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16031 soname_spec='${libname}${release}${shared_ext}$major'
16032 shlibpath_var=LD_LIBRARY_PATH
16033 shlibpath_overrides_runpath=yes
16034 hardcode_into_libs=yes
16035 if test "$with_gnu_ld" = yes; then
16036 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
16037 else
16038 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
16039 case $host_os in
16040 sco3.2v5*)
16041 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
16043 esac
16045 sys_lib_dlsearch_path_spec='/usr/lib'
16048 tpf*)
16049 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
16050 version_type=linux
16051 need_lib_prefix=no
16052 need_version=no
16053 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16054 shlibpath_var=LD_LIBRARY_PATH
16055 shlibpath_overrides_runpath=no
16056 hardcode_into_libs=yes
16059 uts4*)
16060 version_type=linux
16061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16062 soname_spec='${libname}${release}${shared_ext}$major'
16063 shlibpath_var=LD_LIBRARY_PATH
16066 # Shared libraries for VwWorks, >= 7 only at this stage
16067 # and (fpic) still incompatible with "large" code models
16068 # in a few configurations. Only for RTP mode in any case,
16069 # and upon explicit request at configure time.
16070 vxworks7*)
16071 dynamic_linker=no
16072 case ${with_multisubdir}-${enable_shared} in
16073 *large*)
16075 *mrtp*-yes)
16076 version_type=linux
16077 need_lib_prefix=no
16078 need_version=no
16079 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16080 soname_spec='${libname}${release}${shared_ext}$major'
16081 dynamic_linker="$host_os module_loader"
16083 esac
16086 dynamic_linker=no
16088 esac
16089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
16090 $as_echo "$dynamic_linker" >&6; }
16091 test "$dynamic_linker" = no && can_build_shared=no
16093 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16094 if test "$GCC" = yes; then
16095 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16098 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
16099 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16101 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16102 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16143 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16144 hardcode_action_CXX=
16145 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16146 test -n "$runpath_var_CXX" ||
16147 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16149 # We can hardcode non-existent directories.
16150 if test "$hardcode_direct_CXX" != no &&
16151 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16152 # have to relink, otherwise we might link with an installed library
16153 # when we should be linking with a yet-to-be-installed one
16154 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16155 test "$hardcode_minus_L_CXX" != no; then
16156 # Linking always hardcodes the temporary library directory.
16157 hardcode_action_CXX=relink
16158 else
16159 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16160 hardcode_action_CXX=immediate
16162 else
16163 # We cannot hardcode anything, or else we can only hardcode existing
16164 # directories.
16165 hardcode_action_CXX=unsupported
16167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16168 $as_echo "$hardcode_action_CXX" >&6; }
16170 if test "$hardcode_action_CXX" = relink ||
16171 test "$inherit_rpath_CXX" = yes; then
16172 # Fast installation is not supported
16173 enable_fast_install=no
16174 elif test "$shlibpath_overrides_runpath" = yes ||
16175 test "$enable_shared" = no; then
16176 # Fast installation is not necessary
16177 enable_fast_install=needless
16186 fi # test -n "$compiler"
16188 CC=$lt_save_CC
16189 LDCXX=$LD
16190 LD=$lt_save_LD
16191 GCC=$lt_save_GCC
16192 with_gnu_ld=$lt_save_with_gnu_ld
16193 lt_cv_path_LDCXX=$lt_cv_path_LD
16194 lt_cv_path_LD=$lt_save_path_LD
16195 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16196 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16197 fi # test "$_lt_caught_CXX_error" != yes
16199 ac_ext=c
16200 ac_cpp='$CPP $CPPFLAGS'
16201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16217 ac_config_commands="$ac_config_commands libtool"
16222 # Only expand once:
16226 enable_dlopen=yes
16231 if test x$enable_darwin_at_rpath = xyes; then
16232 ENABLE_DARWIN_AT_RPATH_TRUE=
16233 ENABLE_DARWIN_AT_RPATH_FALSE='#'
16234 else
16235 ENABLE_DARWIN_AT_RPATH_TRUE='#'
16236 ENABLE_DARWIN_AT_RPATH_FALSE=
16243 if test "${multilib}" = "yes"; then
16244 multilib_arg="--enable-multilib"
16245 else
16246 multilib_arg=
16249 ac_fn_c_check_type "$LINENO" "struct timezone" "ac_cv_type_struct_timezone" "$ac_includes_default"
16250 if test "x$ac_cv_type_struct_timezone" = xyes; then :
16252 cat >>confdefs.h <<_ACEOF
16253 #define HAVE_STRUCT_TIMEZONE 1
16254 _ACEOF
16258 ac_fn_c_check_type "$LINENO" "struct stat" "ac_cv_type_struct_stat" "$ac_includes_default"
16259 if test "x$ac_cv_type_struct_stat" = xyes; then :
16261 cat >>confdefs.h <<_ACEOF
16262 #define HAVE_STRUCT_STAT 1
16263 _ACEOF
16267 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
16268 if test "x$ac_cv_type_struct_timespec" = xyes; then :
16270 cat >>confdefs.h <<_ACEOF
16271 #define HAVE_STRUCT_TIMESPEC 1
16272 _ACEOF
16276 ac_fn_c_check_type "$LINENO" "struct timeval" "ac_cv_type_struct_timeval" "$ac_includes_default"
16277 if test "x$ac_cv_type_struct_timeval" = xyes; then :
16279 cat >>confdefs.h <<_ACEOF
16280 #define HAVE_STRUCT_TIMEVAL 1
16281 _ACEOF
16285 ac_fn_c_check_type "$LINENO" "struct tm" "ac_cv_type_struct_tm" "$ac_includes_default"
16286 if test "x$ac_cv_type_struct_tm" = xyes; then :
16288 cat >>confdefs.h <<_ACEOF
16289 #define HAVE_STRUCT_TM 1
16290 _ACEOF
16296 # Check if struct tm contains the tm_gmtoff field.
16297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
16298 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
16299 if ${ac_cv_struct_tm_gmtoff+:} false; then :
16300 $as_echo_n "(cached) " >&6
16301 else
16302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16303 /* end confdefs.h. */
16305 #include <time.h>
16308 main ()
16311 struct tm tm;
16312 tm.tm_gmtoff = 1;
16315 return 0;
16317 _ACEOF
16318 if ac_fn_c_try_compile "$LINENO"; then :
16319 ac_cv_struct_tm_gmtoff=yes
16320 else
16321 ac_cv_struct_tm_gmtoff=no
16324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_gmtoff" >&5
16328 $as_echo "$ac_cv_struct_tm_gmtoff" >&6; }
16330 if (test "$ac_cv_struct_tm_gmtoff" = "yes"); then
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end detects struct tm with the tm_gmtoff field." >&5
16332 $as_echo_n "checking m2 front end detects struct tm with the tm_gmtoff field.... " >&6; }
16334 $as_echo "#define HAVE_TM_TM_GMTOFF 1" >>confdefs.h
16338 ac_ext=c
16339 ac_cpp='$CPP $CPPFLAGS'
16340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16344 # Check the compiler.
16345 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
16346 # We must force CC to /not/ be precious variables; otherwise
16347 # the wrong, non-multilib-adjusted value will be used in multilibs.
16348 # As a side effect, we have to subst CFLAGS ourselves.
16352 ac_ext=c
16353 ac_cpp='$CPP $CPPFLAGS'
16354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16357 if test -n "$ac_tool_prefix"; then
16358 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16359 set dummy ${ac_tool_prefix}gcc; ac_word=$2
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16361 $as_echo_n "checking for $ac_word... " >&6; }
16362 if ${ac_cv_prog_CC+:} false; then :
16363 $as_echo_n "(cached) " >&6
16364 else
16365 if test -n "$CC"; then
16366 ac_cv_prog_CC="$CC" # Let the user override the test.
16367 else
16368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16369 for as_dir in $PATH
16371 IFS=$as_save_IFS
16372 test -z "$as_dir" && as_dir=.
16373 for ac_exec_ext in '' $ac_executable_extensions; do
16374 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16375 ac_cv_prog_CC="${ac_tool_prefix}gcc"
16376 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16377 break 2
16379 done
16380 done
16381 IFS=$as_save_IFS
16385 CC=$ac_cv_prog_CC
16386 if test -n "$CC"; then
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16388 $as_echo "$CC" >&6; }
16389 else
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16391 $as_echo "no" >&6; }
16396 if test -z "$ac_cv_prog_CC"; then
16397 ac_ct_CC=$CC
16398 # Extract the first word of "gcc", so it can be a program name with args.
16399 set dummy gcc; ac_word=$2
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16401 $as_echo_n "checking for $ac_word... " >&6; }
16402 if ${ac_cv_prog_ac_ct_CC+:} false; then :
16403 $as_echo_n "(cached) " >&6
16404 else
16405 if test -n "$ac_ct_CC"; then
16406 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16407 else
16408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16409 for as_dir in $PATH
16411 IFS=$as_save_IFS
16412 test -z "$as_dir" && as_dir=.
16413 for ac_exec_ext in '' $ac_executable_extensions; do
16414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16415 ac_cv_prog_ac_ct_CC="gcc"
16416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16417 break 2
16419 done
16420 done
16421 IFS=$as_save_IFS
16425 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16426 if test -n "$ac_ct_CC"; then
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16428 $as_echo "$ac_ct_CC" >&6; }
16429 else
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16431 $as_echo "no" >&6; }
16434 if test "x$ac_ct_CC" = x; then
16435 CC=""
16436 else
16437 case $cross_compiling:$ac_tool_warned in
16438 yes:)
16439 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16440 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16441 ac_tool_warned=yes ;;
16442 esac
16443 CC=$ac_ct_CC
16445 else
16446 CC="$ac_cv_prog_CC"
16449 if test -z "$CC"; then
16450 if test -n "$ac_tool_prefix"; then
16451 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16452 set dummy ${ac_tool_prefix}cc; ac_word=$2
16453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16454 $as_echo_n "checking for $ac_word... " >&6; }
16455 if ${ac_cv_prog_CC+:} false; then :
16456 $as_echo_n "(cached) " >&6
16457 else
16458 if test -n "$CC"; then
16459 ac_cv_prog_CC="$CC" # Let the user override the test.
16460 else
16461 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16462 for as_dir in $PATH
16464 IFS=$as_save_IFS
16465 test -z "$as_dir" && as_dir=.
16466 for ac_exec_ext in '' $ac_executable_extensions; do
16467 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16468 ac_cv_prog_CC="${ac_tool_prefix}cc"
16469 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16470 break 2
16472 done
16473 done
16474 IFS=$as_save_IFS
16478 CC=$ac_cv_prog_CC
16479 if test -n "$CC"; then
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16481 $as_echo "$CC" >&6; }
16482 else
16483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16484 $as_echo "no" >&6; }
16490 if test -z "$CC"; then
16491 # Extract the first word of "cc", so it can be a program name with args.
16492 set dummy cc; ac_word=$2
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16494 $as_echo_n "checking for $ac_word... " >&6; }
16495 if ${ac_cv_prog_CC+:} false; then :
16496 $as_echo_n "(cached) " >&6
16497 else
16498 if test -n "$CC"; then
16499 ac_cv_prog_CC="$CC" # Let the user override the test.
16500 else
16501 ac_prog_rejected=no
16502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16503 for as_dir in $PATH
16505 IFS=$as_save_IFS
16506 test -z "$as_dir" && as_dir=.
16507 for ac_exec_ext in '' $ac_executable_extensions; do
16508 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16509 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16510 ac_prog_rejected=yes
16511 continue
16513 ac_cv_prog_CC="cc"
16514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16515 break 2
16517 done
16518 done
16519 IFS=$as_save_IFS
16521 if test $ac_prog_rejected = yes; then
16522 # We found a bogon in the path, so make sure we never use it.
16523 set dummy $ac_cv_prog_CC
16524 shift
16525 if test $# != 0; then
16526 # We chose a different compiler from the bogus one.
16527 # However, it has the same basename, so the bogon will be chosen
16528 # first if we set CC to just the basename; use the full file name.
16529 shift
16530 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16535 CC=$ac_cv_prog_CC
16536 if test -n "$CC"; then
16537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16538 $as_echo "$CC" >&6; }
16539 else
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16541 $as_echo "no" >&6; }
16546 if test -z "$CC"; then
16547 if test -n "$ac_tool_prefix"; then
16548 for ac_prog in cl.exe
16550 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16551 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16553 $as_echo_n "checking for $ac_word... " >&6; }
16554 if ${ac_cv_prog_CC+:} false; then :
16555 $as_echo_n "(cached) " >&6
16556 else
16557 if test -n "$CC"; then
16558 ac_cv_prog_CC="$CC" # Let the user override the test.
16559 else
16560 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16561 for as_dir in $PATH
16563 IFS=$as_save_IFS
16564 test -z "$as_dir" && as_dir=.
16565 for ac_exec_ext in '' $ac_executable_extensions; do
16566 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16567 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16568 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16569 break 2
16571 done
16572 done
16573 IFS=$as_save_IFS
16577 CC=$ac_cv_prog_CC
16578 if test -n "$CC"; then
16579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16580 $as_echo "$CC" >&6; }
16581 else
16582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16583 $as_echo "no" >&6; }
16587 test -n "$CC" && break
16588 done
16590 if test -z "$CC"; then
16591 ac_ct_CC=$CC
16592 for ac_prog in cl.exe
16594 # Extract the first word of "$ac_prog", so it can be a program name with args.
16595 set dummy $ac_prog; ac_word=$2
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16597 $as_echo_n "checking for $ac_word... " >&6; }
16598 if ${ac_cv_prog_ac_ct_CC+:} false; then :
16599 $as_echo_n "(cached) " >&6
16600 else
16601 if test -n "$ac_ct_CC"; then
16602 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16603 else
16604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16605 for as_dir in $PATH
16607 IFS=$as_save_IFS
16608 test -z "$as_dir" && as_dir=.
16609 for ac_exec_ext in '' $ac_executable_extensions; do
16610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16611 ac_cv_prog_ac_ct_CC="$ac_prog"
16612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16613 break 2
16615 done
16616 done
16617 IFS=$as_save_IFS
16621 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16622 if test -n "$ac_ct_CC"; then
16623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16624 $as_echo "$ac_ct_CC" >&6; }
16625 else
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16627 $as_echo "no" >&6; }
16631 test -n "$ac_ct_CC" && break
16632 done
16634 if test "x$ac_ct_CC" = x; then
16635 CC=""
16636 else
16637 case $cross_compiling:$ac_tool_warned in
16638 yes:)
16639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16641 ac_tool_warned=yes ;;
16642 esac
16643 CC=$ac_ct_CC
16650 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16651 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16652 as_fn_error $? "no acceptable C compiler found in \$PATH
16653 See \`config.log' for more details" "$LINENO" 5; }
16655 # Provide some information about the compiler.
16656 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
16657 set X $ac_compile
16658 ac_compiler=$2
16659 for ac_option in --version -v -V -qversion; do
16660 { { ac_try="$ac_compiler $ac_option >&5"
16661 case "(($ac_try" in
16662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16663 *) ac_try_echo=$ac_try;;
16664 esac
16665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16666 $as_echo "$ac_try_echo"; } >&5
16667 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16668 ac_status=$?
16669 if test -s conftest.err; then
16670 sed '10a\
16671 ... rest of stderr output deleted ...
16672 10q' conftest.err >conftest.er1
16673 cat conftest.er1 >&5
16675 rm -f conftest.er1 conftest.err
16676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16677 test $ac_status = 0; }
16678 done
16680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
16681 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
16682 if ${ac_cv_c_compiler_gnu+:} false; then :
16683 $as_echo_n "(cached) " >&6
16684 else
16685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16686 /* end confdefs.h. */
16689 main ()
16691 #ifndef __GNUC__
16692 choke me
16693 #endif
16696 return 0;
16698 _ACEOF
16699 if ac_fn_c_try_compile "$LINENO"; then :
16700 ac_compiler_gnu=yes
16701 else
16702 ac_compiler_gnu=no
16704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16705 ac_cv_c_compiler_gnu=$ac_compiler_gnu
16708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
16709 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
16710 if test $ac_compiler_gnu = yes; then
16711 GCC=yes
16712 else
16713 GCC=
16715 ac_test_CFLAGS=${CFLAGS+set}
16716 ac_save_CFLAGS=$CFLAGS
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
16718 $as_echo_n "checking whether $CC accepts -g... " >&6; }
16719 if ${ac_cv_prog_cc_g+:} false; then :
16720 $as_echo_n "(cached) " >&6
16721 else
16722 ac_save_c_werror_flag=$ac_c_werror_flag
16723 ac_c_werror_flag=yes
16724 ac_cv_prog_cc_g=no
16725 CFLAGS="-g"
16726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16727 /* end confdefs.h. */
16730 main ()
16734 return 0;
16736 _ACEOF
16737 if ac_fn_c_try_compile "$LINENO"; then :
16738 ac_cv_prog_cc_g=yes
16739 else
16740 CFLAGS=""
16741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16742 /* end confdefs.h. */
16745 main ()
16749 return 0;
16751 _ACEOF
16752 if ac_fn_c_try_compile "$LINENO"; then :
16754 else
16755 ac_c_werror_flag=$ac_save_c_werror_flag
16756 CFLAGS="-g"
16757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16758 /* end confdefs.h. */
16761 main ()
16765 return 0;
16767 _ACEOF
16768 if ac_fn_c_try_compile "$LINENO"; then :
16769 ac_cv_prog_cc_g=yes
16771 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16776 ac_c_werror_flag=$ac_save_c_werror_flag
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
16779 $as_echo "$ac_cv_prog_cc_g" >&6; }
16780 if test "$ac_test_CFLAGS" = set; then
16781 CFLAGS=$ac_save_CFLAGS
16782 elif test $ac_cv_prog_cc_g = yes; then
16783 if test "$GCC" = yes; then
16784 CFLAGS="-g -O2"
16785 else
16786 CFLAGS="-g"
16788 else
16789 if test "$GCC" = yes; then
16790 CFLAGS="-O2"
16791 else
16792 CFLAGS=
16795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
16796 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
16797 if ${ac_cv_prog_cc_c89+:} false; then :
16798 $as_echo_n "(cached) " >&6
16799 else
16800 ac_cv_prog_cc_c89=no
16801 ac_save_CC=$CC
16802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16803 /* end confdefs.h. */
16804 #include <stdarg.h>
16805 #include <stdio.h>
16806 struct stat;
16807 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
16808 struct buf { int x; };
16809 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16810 static char *e (p, i)
16811 char **p;
16812 int i;
16814 return p[i];
16816 static char *f (char * (*g) (char **, int), char **p, ...)
16818 char *s;
16819 va_list v;
16820 va_start (v,p);
16821 s = g (p, va_arg (v,int));
16822 va_end (v);
16823 return s;
16826 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
16827 function prototypes and stuff, but not '\xHH' hex character constants.
16828 These don't provoke an error unfortunately, instead are silently treated
16829 as 'x'. The following induces an error, until -std is added to get
16830 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
16831 array size at least. It's necessary to write '\x00'==0 to get something
16832 that's true only with -std. */
16833 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16835 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16836 inside strings and character constants. */
16837 #define FOO(x) 'x'
16838 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16840 int test (int i, double x);
16841 struct s1 {int (*f) (int a);};
16842 struct s2 {int (*f) (double a);};
16843 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16844 int argc;
16845 char **argv;
16847 main ()
16849 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
16851 return 0;
16853 _ACEOF
16854 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16855 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16857 CC="$ac_save_CC $ac_arg"
16858 if ac_fn_c_try_compile "$LINENO"; then :
16859 ac_cv_prog_cc_c89=$ac_arg
16861 rm -f core conftest.err conftest.$ac_objext
16862 test "x$ac_cv_prog_cc_c89" != "xno" && break
16863 done
16864 rm -f conftest.$ac_ext
16865 CC=$ac_save_CC
16868 # AC_CACHE_VAL
16869 case "x$ac_cv_prog_cc_c89" in
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16872 $as_echo "none needed" >&6; } ;;
16873 xno)
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16875 $as_echo "unsupported" >&6; } ;;
16877 CC="$CC $ac_cv_prog_cc_c89"
16878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
16879 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
16880 esac
16881 if test "x$ac_cv_prog_cc_c89" != xno; then :
16885 ac_ext=c
16886 ac_cpp='$CPP $CPPFLAGS'
16887 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16888 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16889 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16891 ac_ext=c
16892 ac_cpp='$CPP $CPPFLAGS'
16893 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16894 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16895 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
16897 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
16898 if ${am_cv_prog_cc_c_o+:} false; then :
16899 $as_echo_n "(cached) " >&6
16900 else
16901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16902 /* end confdefs.h. */
16905 main ()
16909 return 0;
16911 _ACEOF
16912 # Make sure it works both with $CC and with simple cc.
16913 # Following AC_PROG_CC_C_O, we do the test twice because some
16914 # compilers refuse to overwrite an existing .o file with -o,
16915 # though they will create one.
16916 am_cv_prog_cc_c_o=yes
16917 for am_i in 1 2; do
16918 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
16919 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
16920 ac_status=$?
16921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16922 (exit $ac_status); } \
16923 && test -f conftest2.$ac_objext; then
16924 : OK
16925 else
16926 am_cv_prog_cc_c_o=no
16927 break
16929 done
16930 rm -f core conftest*
16931 unset am_i
16933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
16934 $as_echo "$am_cv_prog_cc_c_o" >&6; }
16935 if test "$am_cv_prog_cc_c_o" != yes; then
16936 # Losing compiler, so override with the script.
16937 # FIXME: It is wrong to rewrite CC.
16938 # But if we don't then we get into trouble of one sort or another.
16939 # A longer-term fix would be to have automake use am__CC in this case,
16940 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16941 CC="$am_aux_dir/compile $CC"
16943 ac_ext=c
16944 ac_cpp='$CPP $CPPFLAGS'
16945 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16946 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16947 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for access" >&5
16960 $as_echo_n "checking m2 front end checking c library for access... " >&6; }
16961 if test x$gcc_no_link != xyes; then
16962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for access in -lc" >&5
16963 $as_echo_n "checking for access in -lc... " >&6; }
16964 if ${ac_cv_lib_c_access+:} false; then :
16965 $as_echo_n "(cached) " >&6
16966 else
16967 ac_check_lib_save_LIBS=$LIBS
16968 LIBS="-lc $LIBS"
16969 if test x$gcc_no_link = xyes; then
16970 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16973 /* end confdefs.h. */
16975 /* Override any GCC internal prototype to avoid an error.
16976 Use char because int might match the return type of a GCC
16977 builtin and then its argument prototype would still apply. */
16978 #ifdef __cplusplus
16979 extern "C"
16980 #endif
16981 char access ();
16983 main ()
16985 return access ();
16987 return 0;
16989 _ACEOF
16990 if ac_fn_c_try_link "$LINENO"; then :
16991 ac_cv_lib_c_access=yes
16992 else
16993 ac_cv_lib_c_access=no
16995 rm -f core conftest.err conftest.$ac_objext \
16996 conftest$ac_exeext conftest.$ac_ext
16997 LIBS=$ac_check_lib_save_LIBS
16999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_access" >&5
17000 $as_echo "$ac_cv_lib_c_access" >&6; }
17001 if test "x$ac_cv_lib_c_access" = xyes; then :
17003 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
17005 else
17007 $as_echo "#undef HAVE_ACCESS" >>confdefs.h
17011 else
17012 if test "x$ac_cv_lib_c_access" = xyes; then
17014 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
17016 elif test "x$ac_cv_func_access" = xyes; then
17018 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
17020 else
17022 $as_echo "#undef HAVE_ACCESS" >>confdefs.h
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for brk" >&5
17029 $as_echo_n "checking m2 front end checking c library for brk... " >&6; }
17030 if test x$gcc_no_link != xyes; then
17031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for brk in -lc" >&5
17032 $as_echo_n "checking for brk in -lc... " >&6; }
17033 if ${ac_cv_lib_c_brk+:} false; then :
17034 $as_echo_n "(cached) " >&6
17035 else
17036 ac_check_lib_save_LIBS=$LIBS
17037 LIBS="-lc $LIBS"
17038 if test x$gcc_no_link = xyes; then
17039 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17042 /* end confdefs.h. */
17044 /* Override any GCC internal prototype to avoid an error.
17045 Use char because int might match the return type of a GCC
17046 builtin and then its argument prototype would still apply. */
17047 #ifdef __cplusplus
17048 extern "C"
17049 #endif
17050 char brk ();
17052 main ()
17054 return brk ();
17056 return 0;
17058 _ACEOF
17059 if ac_fn_c_try_link "$LINENO"; then :
17060 ac_cv_lib_c_brk=yes
17061 else
17062 ac_cv_lib_c_brk=no
17064 rm -f core conftest.err conftest.$ac_objext \
17065 conftest$ac_exeext conftest.$ac_ext
17066 LIBS=$ac_check_lib_save_LIBS
17068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_brk" >&5
17069 $as_echo "$ac_cv_lib_c_brk" >&6; }
17070 if test "x$ac_cv_lib_c_brk" = xyes; then :
17072 $as_echo "#define HAVE_BRK 1" >>confdefs.h
17074 else
17076 $as_echo "#undef HAVE_BRK" >>confdefs.h
17080 else
17081 if test "x$ac_cv_lib_c_brk" = xyes; then
17083 $as_echo "#define HAVE_BRK 1" >>confdefs.h
17085 elif test "x$ac_cv_func_brk" = xyes; then
17087 $as_echo "#define HAVE_BRK 1" >>confdefs.h
17089 else
17091 $as_echo "#undef HAVE_BRK" >>confdefs.h
17097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for cfmakeraw" >&5
17098 $as_echo_n "checking m2 front end checking c library for cfmakeraw... " >&6; }
17099 if test x$gcc_no_link != xyes; then
17100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cfmakeraw in -lc" >&5
17101 $as_echo_n "checking for cfmakeraw in -lc... " >&6; }
17102 if ${ac_cv_lib_c_cfmakeraw+:} false; then :
17103 $as_echo_n "(cached) " >&6
17104 else
17105 ac_check_lib_save_LIBS=$LIBS
17106 LIBS="-lc $LIBS"
17107 if test x$gcc_no_link = xyes; then
17108 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17111 /* end confdefs.h. */
17113 /* Override any GCC internal prototype to avoid an error.
17114 Use char because int might match the return type of a GCC
17115 builtin and then its argument prototype would still apply. */
17116 #ifdef __cplusplus
17117 extern "C"
17118 #endif
17119 char cfmakeraw ();
17121 main ()
17123 return cfmakeraw ();
17125 return 0;
17127 _ACEOF
17128 if ac_fn_c_try_link "$LINENO"; then :
17129 ac_cv_lib_c_cfmakeraw=yes
17130 else
17131 ac_cv_lib_c_cfmakeraw=no
17133 rm -f core conftest.err conftest.$ac_objext \
17134 conftest$ac_exeext conftest.$ac_ext
17135 LIBS=$ac_check_lib_save_LIBS
17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_cfmakeraw" >&5
17138 $as_echo "$ac_cv_lib_c_cfmakeraw" >&6; }
17139 if test "x$ac_cv_lib_c_cfmakeraw" = xyes; then :
17141 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
17143 else
17145 $as_echo "#undef HAVE_CFMAKERAW" >>confdefs.h
17149 else
17150 if test "x$ac_cv_lib_c_cfmakeraw" = xyes; then
17152 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
17154 elif test "x$ac_cv_func_cfmakeraw" = xyes; then
17156 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
17158 else
17160 $as_echo "#undef HAVE_CFMAKERAW" >>confdefs.h
17166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for clock_gettime" >&5
17167 $as_echo_n "checking m2 front end checking c library for clock_gettime... " >&6; }
17168 if test x$gcc_no_link != xyes; then
17169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
17170 $as_echo_n "checking for clock_gettime in -lc... " >&6; }
17171 if ${ac_cv_lib_c_clock_gettime+:} false; then :
17172 $as_echo_n "(cached) " >&6
17173 else
17174 ac_check_lib_save_LIBS=$LIBS
17175 LIBS="-lc $LIBS"
17176 if test x$gcc_no_link = xyes; then
17177 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17180 /* end confdefs.h. */
17182 /* Override any GCC internal prototype to avoid an error.
17183 Use char because int might match the return type of a GCC
17184 builtin and then its argument prototype would still apply. */
17185 #ifdef __cplusplus
17186 extern "C"
17187 #endif
17188 char clock_gettime ();
17190 main ()
17192 return clock_gettime ();
17194 return 0;
17196 _ACEOF
17197 if ac_fn_c_try_link "$LINENO"; then :
17198 ac_cv_lib_c_clock_gettime=yes
17199 else
17200 ac_cv_lib_c_clock_gettime=no
17202 rm -f core conftest.err conftest.$ac_objext \
17203 conftest$ac_exeext conftest.$ac_ext
17204 LIBS=$ac_check_lib_save_LIBS
17206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
17207 $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
17208 if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
17210 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
17212 else
17214 $as_echo "#undef HAVE_CLOCK_GETTIME" >>confdefs.h
17218 else
17219 if test "x$ac_cv_lib_c_clock_gettime" = xyes; then
17221 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
17223 elif test "x$ac_cv_func_clock_gettime" = xyes; then
17225 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
17227 else
17229 $as_echo "#undef HAVE_CLOCK_GETTIME" >>confdefs.h
17235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for clock_settime" >&5
17236 $as_echo_n "checking m2 front end checking c library for clock_settime... " >&6; }
17237 if test x$gcc_no_link != xyes; then
17238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lc" >&5
17239 $as_echo_n "checking for clock_settime in -lc... " >&6; }
17240 if ${ac_cv_lib_c_clock_settime+:} false; then :
17241 $as_echo_n "(cached) " >&6
17242 else
17243 ac_check_lib_save_LIBS=$LIBS
17244 LIBS="-lc $LIBS"
17245 if test x$gcc_no_link = xyes; then
17246 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17249 /* end confdefs.h. */
17251 /* Override any GCC internal prototype to avoid an error.
17252 Use char because int might match the return type of a GCC
17253 builtin and then its argument prototype would still apply. */
17254 #ifdef __cplusplus
17255 extern "C"
17256 #endif
17257 char clock_settime ();
17259 main ()
17261 return clock_settime ();
17263 return 0;
17265 _ACEOF
17266 if ac_fn_c_try_link "$LINENO"; then :
17267 ac_cv_lib_c_clock_settime=yes
17268 else
17269 ac_cv_lib_c_clock_settime=no
17271 rm -f core conftest.err conftest.$ac_objext \
17272 conftest$ac_exeext conftest.$ac_ext
17273 LIBS=$ac_check_lib_save_LIBS
17275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_settime" >&5
17276 $as_echo "$ac_cv_lib_c_clock_settime" >&6; }
17277 if test "x$ac_cv_lib_c_clock_settime" = xyes; then :
17279 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
17281 else
17283 $as_echo "#undef HAVE_CLOCK_SETTIME" >>confdefs.h
17287 else
17288 if test "x$ac_cv_lib_c_clock_settime" = xyes; then
17290 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
17292 elif test "x$ac_cv_func_clock_settime" = xyes; then
17294 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
17296 else
17298 $as_echo "#undef HAVE_CLOCK_SETTIME" >>confdefs.h
17304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for close" >&5
17305 $as_echo_n "checking m2 front end checking c library for close... " >&6; }
17306 if test x$gcc_no_link != xyes; then
17307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for close in -lc" >&5
17308 $as_echo_n "checking for close in -lc... " >&6; }
17309 if ${ac_cv_lib_c_close+:} false; then :
17310 $as_echo_n "(cached) " >&6
17311 else
17312 ac_check_lib_save_LIBS=$LIBS
17313 LIBS="-lc $LIBS"
17314 if test x$gcc_no_link = xyes; then
17315 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17318 /* end confdefs.h. */
17320 /* Override any GCC internal prototype to avoid an error.
17321 Use char because int might match the return type of a GCC
17322 builtin and then its argument prototype would still apply. */
17323 #ifdef __cplusplus
17324 extern "C"
17325 #endif
17326 char close ();
17328 main ()
17330 return close ();
17332 return 0;
17334 _ACEOF
17335 if ac_fn_c_try_link "$LINENO"; then :
17336 ac_cv_lib_c_close=yes
17337 else
17338 ac_cv_lib_c_close=no
17340 rm -f core conftest.err conftest.$ac_objext \
17341 conftest$ac_exeext conftest.$ac_ext
17342 LIBS=$ac_check_lib_save_LIBS
17344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_close" >&5
17345 $as_echo "$ac_cv_lib_c_close" >&6; }
17346 if test "x$ac_cv_lib_c_close" = xyes; then :
17348 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
17350 else
17352 $as_echo "#undef HAVE_CLOSE" >>confdefs.h
17356 else
17357 if test "x$ac_cv_lib_c_close" = xyes; then
17359 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
17361 elif test "x$ac_cv_func_close" = xyes; then
17363 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
17365 else
17367 $as_echo "#undef HAVE_CLOSE" >>confdefs.h
17373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for ctime" >&5
17374 $as_echo_n "checking m2 front end checking c library for ctime... " >&6; }
17375 if test x$gcc_no_link != xyes; then
17376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctime in -lc" >&5
17377 $as_echo_n "checking for ctime in -lc... " >&6; }
17378 if ${ac_cv_lib_c_ctime+:} false; then :
17379 $as_echo_n "(cached) " >&6
17380 else
17381 ac_check_lib_save_LIBS=$LIBS
17382 LIBS="-lc $LIBS"
17383 if test x$gcc_no_link = xyes; then
17384 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17387 /* end confdefs.h. */
17389 /* Override any GCC internal prototype to avoid an error.
17390 Use char because int might match the return type of a GCC
17391 builtin and then its argument prototype would still apply. */
17392 #ifdef __cplusplus
17393 extern "C"
17394 #endif
17395 char ctime ();
17397 main ()
17399 return ctime ();
17401 return 0;
17403 _ACEOF
17404 if ac_fn_c_try_link "$LINENO"; then :
17405 ac_cv_lib_c_ctime=yes
17406 else
17407 ac_cv_lib_c_ctime=no
17409 rm -f core conftest.err conftest.$ac_objext \
17410 conftest$ac_exeext conftest.$ac_ext
17411 LIBS=$ac_check_lib_save_LIBS
17413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_ctime" >&5
17414 $as_echo "$ac_cv_lib_c_ctime" >&6; }
17415 if test "x$ac_cv_lib_c_ctime" = xyes; then :
17417 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
17419 else
17421 $as_echo "#undef HAVE_CTIME" >>confdefs.h
17425 else
17426 if test "x$ac_cv_lib_c_ctime" = xyes; then
17428 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
17430 elif test "x$ac_cv_func_ctime" = xyes; then
17432 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
17434 else
17436 $as_echo "#undef HAVE_CTIME" >>confdefs.h
17442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for creat" >&5
17443 $as_echo_n "checking m2 front end checking c library for creat... " >&6; }
17444 if test x$gcc_no_link != xyes; then
17445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for creat in -lc" >&5
17446 $as_echo_n "checking for creat in -lc... " >&6; }
17447 if ${ac_cv_lib_c_creat+:} false; then :
17448 $as_echo_n "(cached) " >&6
17449 else
17450 ac_check_lib_save_LIBS=$LIBS
17451 LIBS="-lc $LIBS"
17452 if test x$gcc_no_link = xyes; then
17453 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17456 /* end confdefs.h. */
17458 /* Override any GCC internal prototype to avoid an error.
17459 Use char because int might match the return type of a GCC
17460 builtin and then its argument prototype would still apply. */
17461 #ifdef __cplusplus
17462 extern "C"
17463 #endif
17464 char creat ();
17466 main ()
17468 return creat ();
17470 return 0;
17472 _ACEOF
17473 if ac_fn_c_try_link "$LINENO"; then :
17474 ac_cv_lib_c_creat=yes
17475 else
17476 ac_cv_lib_c_creat=no
17478 rm -f core conftest.err conftest.$ac_objext \
17479 conftest$ac_exeext conftest.$ac_ext
17480 LIBS=$ac_check_lib_save_LIBS
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_creat" >&5
17483 $as_echo "$ac_cv_lib_c_creat" >&6; }
17484 if test "x$ac_cv_lib_c_creat" = xyes; then :
17486 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
17488 else
17490 $as_echo "#undef HAVE_CREAT" >>confdefs.h
17494 else
17495 if test "x$ac_cv_lib_c_creat" = xyes; then
17497 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
17499 elif test "x$ac_cv_func_creat" = xyes; then
17501 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
17503 else
17505 $as_echo "#undef HAVE_CREAT" >>confdefs.h
17511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for daylight" >&5
17512 $as_echo_n "checking m2 front end checking c library for daylight... " >&6; }
17513 if test x$gcc_no_link != xyes; then
17514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight in -lc" >&5
17515 $as_echo_n "checking for daylight in -lc... " >&6; }
17516 if ${ac_cv_lib_c_daylight+:} false; then :
17517 $as_echo_n "(cached) " >&6
17518 else
17519 ac_check_lib_save_LIBS=$LIBS
17520 LIBS="-lc $LIBS"
17521 if test x$gcc_no_link = xyes; then
17522 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17525 /* end confdefs.h. */
17527 /* Override any GCC internal prototype to avoid an error.
17528 Use char because int might match the return type of a GCC
17529 builtin and then its argument prototype would still apply. */
17530 #ifdef __cplusplus
17531 extern "C"
17532 #endif
17533 char daylight ();
17535 main ()
17537 return daylight ();
17539 return 0;
17541 _ACEOF
17542 if ac_fn_c_try_link "$LINENO"; then :
17543 ac_cv_lib_c_daylight=yes
17544 else
17545 ac_cv_lib_c_daylight=no
17547 rm -f core conftest.err conftest.$ac_objext \
17548 conftest$ac_exeext conftest.$ac_ext
17549 LIBS=$ac_check_lib_save_LIBS
17551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_daylight" >&5
17552 $as_echo "$ac_cv_lib_c_daylight" >&6; }
17553 if test "x$ac_cv_lib_c_daylight" = xyes; then :
17555 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
17557 else
17559 $as_echo "#undef HAVE_DAYLIGHT" >>confdefs.h
17563 else
17564 if test "x$ac_cv_lib_c_daylight" = xyes; then
17566 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
17568 elif test "x$ac_cv_func_daylight" = xyes; then
17570 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
17572 else
17574 $as_echo "#undef HAVE_DAYLIGHT" >>confdefs.h
17580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for dup" >&5
17581 $as_echo_n "checking m2 front end checking c library for dup... " >&6; }
17582 if test x$gcc_no_link != xyes; then
17583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup in -lc" >&5
17584 $as_echo_n "checking for dup in -lc... " >&6; }
17585 if ${ac_cv_lib_c_dup+:} false; then :
17586 $as_echo_n "(cached) " >&6
17587 else
17588 ac_check_lib_save_LIBS=$LIBS
17589 LIBS="-lc $LIBS"
17590 if test x$gcc_no_link = xyes; then
17591 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17594 /* end confdefs.h. */
17596 /* Override any GCC internal prototype to avoid an error.
17597 Use char because int might match the return type of a GCC
17598 builtin and then its argument prototype would still apply. */
17599 #ifdef __cplusplus
17600 extern "C"
17601 #endif
17602 char dup ();
17604 main ()
17606 return dup ();
17608 return 0;
17610 _ACEOF
17611 if ac_fn_c_try_link "$LINENO"; then :
17612 ac_cv_lib_c_dup=yes
17613 else
17614 ac_cv_lib_c_dup=no
17616 rm -f core conftest.err conftest.$ac_objext \
17617 conftest$ac_exeext conftest.$ac_ext
17618 LIBS=$ac_check_lib_save_LIBS
17620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dup" >&5
17621 $as_echo "$ac_cv_lib_c_dup" >&6; }
17622 if test "x$ac_cv_lib_c_dup" = xyes; then :
17624 $as_echo "#define HAVE_DUP 1" >>confdefs.h
17626 else
17628 $as_echo "#undef HAVE_DUP" >>confdefs.h
17632 else
17633 if test "x$ac_cv_lib_c_dup" = xyes; then
17635 $as_echo "#define HAVE_DUP 1" >>confdefs.h
17637 elif test "x$ac_cv_func_dup" = xyes; then
17639 $as_echo "#define HAVE_DUP 1" >>confdefs.h
17641 else
17643 $as_echo "#undef HAVE_DUP" >>confdefs.h
17649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for execve" >&5
17650 $as_echo_n "checking m2 front end checking c library for execve... " >&6; }
17651 if test x$gcc_no_link != xyes; then
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execve in -lc" >&5
17653 $as_echo_n "checking for execve in -lc... " >&6; }
17654 if ${ac_cv_lib_c_execve+:} false; then :
17655 $as_echo_n "(cached) " >&6
17656 else
17657 ac_check_lib_save_LIBS=$LIBS
17658 LIBS="-lc $LIBS"
17659 if test x$gcc_no_link = xyes; then
17660 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17663 /* end confdefs.h. */
17665 /* Override any GCC internal prototype to avoid an error.
17666 Use char because int might match the return type of a GCC
17667 builtin and then its argument prototype would still apply. */
17668 #ifdef __cplusplus
17669 extern "C"
17670 #endif
17671 char execve ();
17673 main ()
17675 return execve ();
17677 return 0;
17679 _ACEOF
17680 if ac_fn_c_try_link "$LINENO"; then :
17681 ac_cv_lib_c_execve=yes
17682 else
17683 ac_cv_lib_c_execve=no
17685 rm -f core conftest.err conftest.$ac_objext \
17686 conftest$ac_exeext conftest.$ac_ext
17687 LIBS=$ac_check_lib_save_LIBS
17689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_execve" >&5
17690 $as_echo "$ac_cv_lib_c_execve" >&6; }
17691 if test "x$ac_cv_lib_c_execve" = xyes; then :
17693 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
17695 else
17697 $as_echo "#undef HAVE_EXECVE" >>confdefs.h
17701 else
17702 if test "x$ac_cv_lib_c_execve" = xyes; then
17704 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
17706 elif test "x$ac_cv_func_execve" = xyes; then
17708 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
17710 else
17712 $as_echo "#undef HAVE_EXECVE" >>confdefs.h
17718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for exit" >&5
17719 $as_echo_n "checking m2 front end checking c library for exit... " >&6; }
17720 if test x$gcc_no_link != xyes; then
17721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lc" >&5
17722 $as_echo_n "checking for exit in -lc... " >&6; }
17723 if ${ac_cv_lib_c_exit+:} false; then :
17724 $as_echo_n "(cached) " >&6
17725 else
17726 ac_check_lib_save_LIBS=$LIBS
17727 LIBS="-lc $LIBS"
17728 if test x$gcc_no_link = xyes; then
17729 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17732 /* end confdefs.h. */
17734 /* Override any GCC internal prototype to avoid an error.
17735 Use char because int might match the return type of a GCC
17736 builtin and then its argument prototype would still apply. */
17737 #ifdef __cplusplus
17738 extern "C"
17739 #endif
17740 char exit ();
17742 main ()
17744 return exit ();
17746 return 0;
17748 _ACEOF
17749 if ac_fn_c_try_link "$LINENO"; then :
17750 ac_cv_lib_c_exit=yes
17751 else
17752 ac_cv_lib_c_exit=no
17754 rm -f core conftest.err conftest.$ac_objext \
17755 conftest$ac_exeext conftest.$ac_ext
17756 LIBS=$ac_check_lib_save_LIBS
17758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_exit" >&5
17759 $as_echo "$ac_cv_lib_c_exit" >&6; }
17760 if test "x$ac_cv_lib_c_exit" = xyes; then :
17762 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
17764 else
17766 $as_echo "#undef HAVE_EXIT" >>confdefs.h
17770 else
17771 if test "x$ac_cv_lib_c_exit" = xyes; then
17773 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
17775 elif test "x$ac_cv_func_exit" = xyes; then
17777 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
17779 else
17781 $as_echo "#undef HAVE_EXIT" >>confdefs.h
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for fcntl" >&5
17788 $as_echo_n "checking m2 front end checking c library for fcntl... " >&6; }
17789 if test x$gcc_no_link != xyes; then
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcntl in -lc" >&5
17791 $as_echo_n "checking for fcntl in -lc... " >&6; }
17792 if ${ac_cv_lib_c_fcntl+:} false; then :
17793 $as_echo_n "(cached) " >&6
17794 else
17795 ac_check_lib_save_LIBS=$LIBS
17796 LIBS="-lc $LIBS"
17797 if test x$gcc_no_link = xyes; then
17798 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17801 /* end confdefs.h. */
17803 /* Override any GCC internal prototype to avoid an error.
17804 Use char because int might match the return type of a GCC
17805 builtin and then its argument prototype would still apply. */
17806 #ifdef __cplusplus
17807 extern "C"
17808 #endif
17809 char fcntl ();
17811 main ()
17813 return fcntl ();
17815 return 0;
17817 _ACEOF
17818 if ac_fn_c_try_link "$LINENO"; then :
17819 ac_cv_lib_c_fcntl=yes
17820 else
17821 ac_cv_lib_c_fcntl=no
17823 rm -f core conftest.err conftest.$ac_objext \
17824 conftest$ac_exeext conftest.$ac_ext
17825 LIBS=$ac_check_lib_save_LIBS
17827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_fcntl" >&5
17828 $as_echo "$ac_cv_lib_c_fcntl" >&6; }
17829 if test "x$ac_cv_lib_c_fcntl" = xyes; then :
17831 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
17833 else
17835 $as_echo "#undef HAVE_FCNTL" >>confdefs.h
17839 else
17840 if test "x$ac_cv_lib_c_fcntl" = xyes; then
17842 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
17844 elif test "x$ac_cv_func_fcntl" = xyes; then
17846 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
17848 else
17850 $as_echo "#undef HAVE_FCNTL" >>confdefs.h
17856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for fstat" >&5
17857 $as_echo_n "checking m2 front end checking c library for fstat... " >&6; }
17858 if test x$gcc_no_link != xyes; then
17859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fstat in -lc" >&5
17860 $as_echo_n "checking for fstat in -lc... " >&6; }
17861 if ${ac_cv_lib_c_fstat+:} false; then :
17862 $as_echo_n "(cached) " >&6
17863 else
17864 ac_check_lib_save_LIBS=$LIBS
17865 LIBS="-lc $LIBS"
17866 if test x$gcc_no_link = xyes; then
17867 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17870 /* end confdefs.h. */
17872 /* Override any GCC internal prototype to avoid an error.
17873 Use char because int might match the return type of a GCC
17874 builtin and then its argument prototype would still apply. */
17875 #ifdef __cplusplus
17876 extern "C"
17877 #endif
17878 char fstat ();
17880 main ()
17882 return fstat ();
17884 return 0;
17886 _ACEOF
17887 if ac_fn_c_try_link "$LINENO"; then :
17888 ac_cv_lib_c_fstat=yes
17889 else
17890 ac_cv_lib_c_fstat=no
17892 rm -f core conftest.err conftest.$ac_objext \
17893 conftest$ac_exeext conftest.$ac_ext
17894 LIBS=$ac_check_lib_save_LIBS
17896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_fstat" >&5
17897 $as_echo "$ac_cv_lib_c_fstat" >&6; }
17898 if test "x$ac_cv_lib_c_fstat" = xyes; then :
17900 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
17902 else
17904 $as_echo "#undef HAVE_FSTAT" >>confdefs.h
17908 else
17909 if test "x$ac_cv_lib_c_fstat" = xyes; then
17911 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
17913 elif test "x$ac_cv_func_fstat" = xyes; then
17915 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
17917 else
17919 $as_echo "#undef HAVE_FSTAT" >>confdefs.h
17925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getdents" >&5
17926 $as_echo_n "checking m2 front end checking c library for getdents... " >&6; }
17927 if test x$gcc_no_link != xyes; then
17928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getdents in -lc" >&5
17929 $as_echo_n "checking for getdents in -lc... " >&6; }
17930 if ${ac_cv_lib_c_getdents+:} false; then :
17931 $as_echo_n "(cached) " >&6
17932 else
17933 ac_check_lib_save_LIBS=$LIBS
17934 LIBS="-lc $LIBS"
17935 if test x$gcc_no_link = xyes; then
17936 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17939 /* end confdefs.h. */
17941 /* Override any GCC internal prototype to avoid an error.
17942 Use char because int might match the return type of a GCC
17943 builtin and then its argument prototype would still apply. */
17944 #ifdef __cplusplus
17945 extern "C"
17946 #endif
17947 char getdents ();
17949 main ()
17951 return getdents ();
17953 return 0;
17955 _ACEOF
17956 if ac_fn_c_try_link "$LINENO"; then :
17957 ac_cv_lib_c_getdents=yes
17958 else
17959 ac_cv_lib_c_getdents=no
17961 rm -f core conftest.err conftest.$ac_objext \
17962 conftest$ac_exeext conftest.$ac_ext
17963 LIBS=$ac_check_lib_save_LIBS
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getdents" >&5
17966 $as_echo "$ac_cv_lib_c_getdents" >&6; }
17967 if test "x$ac_cv_lib_c_getdents" = xyes; then :
17969 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
17971 else
17973 $as_echo "#undef HAVE_GETDENTS" >>confdefs.h
17977 else
17978 if test "x$ac_cv_lib_c_getdents" = xyes; then
17980 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
17982 elif test "x$ac_cv_func_getdents" = xyes; then
17984 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
17986 else
17988 $as_echo "#undef HAVE_GETDENTS" >>confdefs.h
17994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getgid" >&5
17995 $as_echo_n "checking m2 front end checking c library for getgid... " >&6; }
17996 if test x$gcc_no_link != xyes; then
17997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgid in -lc" >&5
17998 $as_echo_n "checking for getgid in -lc... " >&6; }
17999 if ${ac_cv_lib_c_getgid+:} false; then :
18000 $as_echo_n "(cached) " >&6
18001 else
18002 ac_check_lib_save_LIBS=$LIBS
18003 LIBS="-lc $LIBS"
18004 if test x$gcc_no_link = xyes; then
18005 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18008 /* end confdefs.h. */
18010 /* Override any GCC internal prototype to avoid an error.
18011 Use char because int might match the return type of a GCC
18012 builtin and then its argument prototype would still apply. */
18013 #ifdef __cplusplus
18014 extern "C"
18015 #endif
18016 char getgid ();
18018 main ()
18020 return getgid ();
18022 return 0;
18024 _ACEOF
18025 if ac_fn_c_try_link "$LINENO"; then :
18026 ac_cv_lib_c_getgid=yes
18027 else
18028 ac_cv_lib_c_getgid=no
18030 rm -f core conftest.err conftest.$ac_objext \
18031 conftest$ac_exeext conftest.$ac_ext
18032 LIBS=$ac_check_lib_save_LIBS
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getgid" >&5
18035 $as_echo "$ac_cv_lib_c_getgid" >&6; }
18036 if test "x$ac_cv_lib_c_getgid" = xyes; then :
18038 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
18040 else
18042 $as_echo "#undef HAVE_GETGID" >>confdefs.h
18046 else
18047 if test "x$ac_cv_lib_c_getgid" = xyes; then
18049 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
18051 elif test "x$ac_cv_func_getgid" = xyes; then
18053 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
18055 else
18057 $as_echo "#undef HAVE_GETGID" >>confdefs.h
18063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getopt_long" >&5
18064 $as_echo_n "checking m2 front end checking c library for getopt_long... " >&6; }
18065 if test x$gcc_no_link != xyes; then
18066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long in -lc" >&5
18067 $as_echo_n "checking for getopt_long in -lc... " >&6; }
18068 if ${ac_cv_lib_c_getopt_long+:} false; then :
18069 $as_echo_n "(cached) " >&6
18070 else
18071 ac_check_lib_save_LIBS=$LIBS
18072 LIBS="-lc $LIBS"
18073 if test x$gcc_no_link = xyes; then
18074 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18077 /* end confdefs.h. */
18079 /* Override any GCC internal prototype to avoid an error.
18080 Use char because int might match the return type of a GCC
18081 builtin and then its argument prototype would still apply. */
18082 #ifdef __cplusplus
18083 extern "C"
18084 #endif
18085 char getopt_long ();
18087 main ()
18089 return getopt_long ();
18091 return 0;
18093 _ACEOF
18094 if ac_fn_c_try_link "$LINENO"; then :
18095 ac_cv_lib_c_getopt_long=yes
18096 else
18097 ac_cv_lib_c_getopt_long=no
18099 rm -f core conftest.err conftest.$ac_objext \
18100 conftest$ac_exeext conftest.$ac_ext
18101 LIBS=$ac_check_lib_save_LIBS
18103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getopt_long" >&5
18104 $as_echo "$ac_cv_lib_c_getopt_long" >&6; }
18105 if test "x$ac_cv_lib_c_getopt_long" = xyes; then :
18107 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
18109 else
18111 $as_echo "#undef HAVE_GETOPT_LONG" >>confdefs.h
18115 else
18116 if test "x$ac_cv_lib_c_getopt_long" = xyes; then
18118 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
18120 elif test "x$ac_cv_func_getopt_long" = xyes; then
18122 $as_echo "#define HAVE_GETOPT_LONG 1" >>confdefs.h
18124 else
18126 $as_echo "#undef HAVE_GETOPT_LONG" >>confdefs.h
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getopt_long_only" >&5
18133 $as_echo_n "checking m2 front end checking c library for getopt_long_only... " >&6; }
18134 if test x$gcc_no_link != xyes; then
18135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getopt_long_only in -lc" >&5
18136 $as_echo_n "checking for getopt_long_only in -lc... " >&6; }
18137 if ${ac_cv_lib_c_getopt_long_only+:} false; then :
18138 $as_echo_n "(cached) " >&6
18139 else
18140 ac_check_lib_save_LIBS=$LIBS
18141 LIBS="-lc $LIBS"
18142 if test x$gcc_no_link = xyes; then
18143 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18146 /* end confdefs.h. */
18148 /* Override any GCC internal prototype to avoid an error.
18149 Use char because int might match the return type of a GCC
18150 builtin and then its argument prototype would still apply. */
18151 #ifdef __cplusplus
18152 extern "C"
18153 #endif
18154 char getopt_long_only ();
18156 main ()
18158 return getopt_long_only ();
18160 return 0;
18162 _ACEOF
18163 if ac_fn_c_try_link "$LINENO"; then :
18164 ac_cv_lib_c_getopt_long_only=yes
18165 else
18166 ac_cv_lib_c_getopt_long_only=no
18168 rm -f core conftest.err conftest.$ac_objext \
18169 conftest$ac_exeext conftest.$ac_ext
18170 LIBS=$ac_check_lib_save_LIBS
18172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getopt_long_only" >&5
18173 $as_echo "$ac_cv_lib_c_getopt_long_only" >&6; }
18174 if test "x$ac_cv_lib_c_getopt_long_only" = xyes; then :
18176 $as_echo "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h
18178 else
18180 $as_echo "#undef HAVE_GETOPT_LONG_ONLY" >>confdefs.h
18184 else
18185 if test "x$ac_cv_lib_c_getopt_long_only" = xyes; then
18187 $as_echo "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h
18189 elif test "x$ac_cv_func_getopt_long_only" = xyes; then
18191 $as_echo "#define HAVE_GETOPT_LONG_ONLY 1" >>confdefs.h
18193 else
18195 $as_echo "#undef HAVE_GETOPT_LONG_ONLY" >>confdefs.h
18201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getpid" >&5
18202 $as_echo_n "checking m2 front end checking c library for getpid... " >&6; }
18203 if test x$gcc_no_link != xyes; then
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpid in -lc" >&5
18205 $as_echo_n "checking for getpid in -lc... " >&6; }
18206 if ${ac_cv_lib_c_getpid+:} false; then :
18207 $as_echo_n "(cached) " >&6
18208 else
18209 ac_check_lib_save_LIBS=$LIBS
18210 LIBS="-lc $LIBS"
18211 if test x$gcc_no_link = xyes; then
18212 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18215 /* end confdefs.h. */
18217 /* Override any GCC internal prototype to avoid an error.
18218 Use char because int might match the return type of a GCC
18219 builtin and then its argument prototype would still apply. */
18220 #ifdef __cplusplus
18221 extern "C"
18222 #endif
18223 char getpid ();
18225 main ()
18227 return getpid ();
18229 return 0;
18231 _ACEOF
18232 if ac_fn_c_try_link "$LINENO"; then :
18233 ac_cv_lib_c_getpid=yes
18234 else
18235 ac_cv_lib_c_getpid=no
18237 rm -f core conftest.err conftest.$ac_objext \
18238 conftest$ac_exeext conftest.$ac_ext
18239 LIBS=$ac_check_lib_save_LIBS
18241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpid" >&5
18242 $as_echo "$ac_cv_lib_c_getpid" >&6; }
18243 if test "x$ac_cv_lib_c_getpid" = xyes; then :
18245 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
18247 else
18249 $as_echo "#undef HAVE_GETPID" >>confdefs.h
18253 else
18254 if test "x$ac_cv_lib_c_getpid" = xyes; then
18256 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
18258 elif test "x$ac_cv_func_getpid" = xyes; then
18260 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
18262 else
18264 $as_echo "#undef HAVE_GETPID" >>confdefs.h
18270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for gettimeofday" >&5
18271 $as_echo_n "checking m2 front end checking c library for gettimeofday... " >&6; }
18272 if test x$gcc_no_link != xyes; then
18273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lc" >&5
18274 $as_echo_n "checking for gettimeofday in -lc... " >&6; }
18275 if ${ac_cv_lib_c_gettimeofday+:} false; then :
18276 $as_echo_n "(cached) " >&6
18277 else
18278 ac_check_lib_save_LIBS=$LIBS
18279 LIBS="-lc $LIBS"
18280 if test x$gcc_no_link = xyes; then
18281 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18284 /* end confdefs.h. */
18286 /* Override any GCC internal prototype to avoid an error.
18287 Use char because int might match the return type of a GCC
18288 builtin and then its argument prototype would still apply. */
18289 #ifdef __cplusplus
18290 extern "C"
18291 #endif
18292 char gettimeofday ();
18294 main ()
18296 return gettimeofday ();
18298 return 0;
18300 _ACEOF
18301 if ac_fn_c_try_link "$LINENO"; then :
18302 ac_cv_lib_c_gettimeofday=yes
18303 else
18304 ac_cv_lib_c_gettimeofday=no
18306 rm -f core conftest.err conftest.$ac_objext \
18307 conftest$ac_exeext conftest.$ac_ext
18308 LIBS=$ac_check_lib_save_LIBS
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gettimeofday" >&5
18311 $as_echo "$ac_cv_lib_c_gettimeofday" >&6; }
18312 if test "x$ac_cv_lib_c_gettimeofday" = xyes; then :
18314 $as_echo "#define HAVE_GETTIMEOFD 1" >>confdefs.h
18316 else
18318 $as_echo "#undef HAVE_GETTIMEOFD" >>confdefs.h
18322 else
18323 if test "x$ac_cv_lib_c_gettimeofday" = xyes; then
18325 $as_echo "#define HAVE_GETTIMEOFD 1" >>confdefs.h
18327 elif test "x$ac_cv_func_gettimeofday" = xyes; then
18329 $as_echo "#define HAVE_GETTIMEOFD 1" >>confdefs.h
18331 else
18333 $as_echo "#undef HAVE_GETTIMEOFD" >>confdefs.h
18339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getuid" >&5
18340 $as_echo_n "checking m2 front end checking c library for getuid... " >&6; }
18341 if test x$gcc_no_link != xyes; then
18342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getuid in -lc" >&5
18343 $as_echo_n "checking for getuid in -lc... " >&6; }
18344 if ${ac_cv_lib_c_getuid+:} false; then :
18345 $as_echo_n "(cached) " >&6
18346 else
18347 ac_check_lib_save_LIBS=$LIBS
18348 LIBS="-lc $LIBS"
18349 if test x$gcc_no_link = xyes; then
18350 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18353 /* end confdefs.h. */
18355 /* Override any GCC internal prototype to avoid an error.
18356 Use char because int might match the return type of a GCC
18357 builtin and then its argument prototype would still apply. */
18358 #ifdef __cplusplus
18359 extern "C"
18360 #endif
18361 char getuid ();
18363 main ()
18365 return getuid ();
18367 return 0;
18369 _ACEOF
18370 if ac_fn_c_try_link "$LINENO"; then :
18371 ac_cv_lib_c_getuid=yes
18372 else
18373 ac_cv_lib_c_getuid=no
18375 rm -f core conftest.err conftest.$ac_objext \
18376 conftest$ac_exeext conftest.$ac_ext
18377 LIBS=$ac_check_lib_save_LIBS
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getuid" >&5
18380 $as_echo "$ac_cv_lib_c_getuid" >&6; }
18381 if test "x$ac_cv_lib_c_getuid" = xyes; then :
18383 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
18385 else
18387 $as_echo "#undef HAVE_GETUID" >>confdefs.h
18391 else
18392 if test "x$ac_cv_lib_c_getuid" = xyes; then
18394 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
18396 elif test "x$ac_cv_func_getuid" = xyes; then
18398 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
18400 else
18402 $as_echo "#undef HAVE_GETUID" >>confdefs.h
18408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for ioctl" >&5
18409 $as_echo_n "checking m2 front end checking c library for ioctl... " >&6; }
18410 if test x$gcc_no_link != xyes; then
18411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl in -lc" >&5
18412 $as_echo_n "checking for ioctl in -lc... " >&6; }
18413 if ${ac_cv_lib_c_ioctl+:} false; then :
18414 $as_echo_n "(cached) " >&6
18415 else
18416 ac_check_lib_save_LIBS=$LIBS
18417 LIBS="-lc $LIBS"
18418 if test x$gcc_no_link = xyes; then
18419 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18422 /* end confdefs.h. */
18424 /* Override any GCC internal prototype to avoid an error.
18425 Use char because int might match the return type of a GCC
18426 builtin and then its argument prototype would still apply. */
18427 #ifdef __cplusplus
18428 extern "C"
18429 #endif
18430 char ioctl ();
18432 main ()
18434 return ioctl ();
18436 return 0;
18438 _ACEOF
18439 if ac_fn_c_try_link "$LINENO"; then :
18440 ac_cv_lib_c_ioctl=yes
18441 else
18442 ac_cv_lib_c_ioctl=no
18444 rm -f core conftest.err conftest.$ac_objext \
18445 conftest$ac_exeext conftest.$ac_ext
18446 LIBS=$ac_check_lib_save_LIBS
18448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_ioctl" >&5
18449 $as_echo "$ac_cv_lib_c_ioctl" >&6; }
18450 if test "x$ac_cv_lib_c_ioctl" = xyes; then :
18452 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
18454 else
18456 $as_echo "#undef HAVE_IOCTL" >>confdefs.h
18460 else
18461 if test "x$ac_cv_lib_c_ioctl" = xyes; then
18463 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
18465 elif test "x$ac_cv_func_ioctl" = xyes; then
18467 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
18469 else
18471 $as_echo "#undef HAVE_IOCTL" >>confdefs.h
18477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for kill" >&5
18478 $as_echo_n "checking m2 front end checking c library for kill... " >&6; }
18479 if test x$gcc_no_link != xyes; then
18480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kill in -lc" >&5
18481 $as_echo_n "checking for kill in -lc... " >&6; }
18482 if ${ac_cv_lib_c_kill+:} false; then :
18483 $as_echo_n "(cached) " >&6
18484 else
18485 ac_check_lib_save_LIBS=$LIBS
18486 LIBS="-lc $LIBS"
18487 if test x$gcc_no_link = xyes; then
18488 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18491 /* end confdefs.h. */
18493 /* Override any GCC internal prototype to avoid an error.
18494 Use char because int might match the return type of a GCC
18495 builtin and then its argument prototype would still apply. */
18496 #ifdef __cplusplus
18497 extern "C"
18498 #endif
18499 char kill ();
18501 main ()
18503 return kill ();
18505 return 0;
18507 _ACEOF
18508 if ac_fn_c_try_link "$LINENO"; then :
18509 ac_cv_lib_c_kill=yes
18510 else
18511 ac_cv_lib_c_kill=no
18513 rm -f core conftest.err conftest.$ac_objext \
18514 conftest$ac_exeext conftest.$ac_ext
18515 LIBS=$ac_check_lib_save_LIBS
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_kill" >&5
18518 $as_echo "$ac_cv_lib_c_kill" >&6; }
18519 if test "x$ac_cv_lib_c_kill" = xyes; then :
18521 $as_echo "#define HAVE_KILL 1" >>confdefs.h
18523 else
18525 $as_echo "#undef HAVE_KILL" >>confdefs.h
18529 else
18530 if test "x$ac_cv_lib_c_kill" = xyes; then
18532 $as_echo "#define HAVE_KILL 1" >>confdefs.h
18534 elif test "x$ac_cv_func_kill" = xyes; then
18536 $as_echo "#define HAVE_KILL 1" >>confdefs.h
18538 else
18540 $as_echo "#undef HAVE_KILL" >>confdefs.h
18546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for link" >&5
18547 $as_echo_n "checking m2 front end checking c library for link... " >&6; }
18548 if test x$gcc_no_link != xyes; then
18549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link in -lc" >&5
18550 $as_echo_n "checking for link in -lc... " >&6; }
18551 if ${ac_cv_lib_c_link+:} false; then :
18552 $as_echo_n "(cached) " >&6
18553 else
18554 ac_check_lib_save_LIBS=$LIBS
18555 LIBS="-lc $LIBS"
18556 if test x$gcc_no_link = xyes; then
18557 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18560 /* end confdefs.h. */
18562 /* Override any GCC internal prototype to avoid an error.
18563 Use char because int might match the return type of a GCC
18564 builtin and then its argument prototype would still apply. */
18565 #ifdef __cplusplus
18566 extern "C"
18567 #endif
18568 char link ();
18570 main ()
18572 return link ();
18574 return 0;
18576 _ACEOF
18577 if ac_fn_c_try_link "$LINENO"; then :
18578 ac_cv_lib_c_link=yes
18579 else
18580 ac_cv_lib_c_link=no
18582 rm -f core conftest.err conftest.$ac_objext \
18583 conftest$ac_exeext conftest.$ac_ext
18584 LIBS=$ac_check_lib_save_LIBS
18586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_link" >&5
18587 $as_echo "$ac_cv_lib_c_link" >&6; }
18588 if test "x$ac_cv_lib_c_link" = xyes; then :
18590 $as_echo "#define HAVE_LINK 1" >>confdefs.h
18592 else
18594 $as_echo "#undef HAVE_LINK" >>confdefs.h
18598 else
18599 if test "x$ac_cv_lib_c_link" = xyes; then
18601 $as_echo "#define HAVE_LINK 1" >>confdefs.h
18603 elif test "x$ac_cv_func_link" = xyes; then
18605 $as_echo "#define HAVE_LINK 1" >>confdefs.h
18607 else
18609 $as_echo "#undef HAVE_LINK" >>confdefs.h
18615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for lseek" >&5
18616 $as_echo_n "checking m2 front end checking c library for lseek... " >&6; }
18617 if test x$gcc_no_link != xyes; then
18618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lseek in -lc" >&5
18619 $as_echo_n "checking for lseek in -lc... " >&6; }
18620 if ${ac_cv_lib_c_lseek+:} false; then :
18621 $as_echo_n "(cached) " >&6
18622 else
18623 ac_check_lib_save_LIBS=$LIBS
18624 LIBS="-lc $LIBS"
18625 if test x$gcc_no_link = xyes; then
18626 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18629 /* end confdefs.h. */
18631 /* Override any GCC internal prototype to avoid an error.
18632 Use char because int might match the return type of a GCC
18633 builtin and then its argument prototype would still apply. */
18634 #ifdef __cplusplus
18635 extern "C"
18636 #endif
18637 char lseek ();
18639 main ()
18641 return lseek ();
18643 return 0;
18645 _ACEOF
18646 if ac_fn_c_try_link "$LINENO"; then :
18647 ac_cv_lib_c_lseek=yes
18648 else
18649 ac_cv_lib_c_lseek=no
18651 rm -f core conftest.err conftest.$ac_objext \
18652 conftest$ac_exeext conftest.$ac_ext
18653 LIBS=$ac_check_lib_save_LIBS
18655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_lseek" >&5
18656 $as_echo "$ac_cv_lib_c_lseek" >&6; }
18657 if test "x$ac_cv_lib_c_lseek" = xyes; then :
18659 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
18661 else
18663 $as_echo "#undef HAVE_LSEEK" >>confdefs.h
18667 else
18668 if test "x$ac_cv_lib_c_lseek" = xyes; then
18670 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
18672 elif test "x$ac_cv_func_lseek" = xyes; then
18674 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
18676 else
18678 $as_echo "#undef HAVE_LSEEK" >>confdefs.h
18684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for open" >&5
18685 $as_echo_n "checking m2 front end checking c library for open... " >&6; }
18686 if test x$gcc_no_link != xyes; then
18687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for open in -lc" >&5
18688 $as_echo_n "checking for open in -lc... " >&6; }
18689 if ${ac_cv_lib_c_open+:} false; then :
18690 $as_echo_n "(cached) " >&6
18691 else
18692 ac_check_lib_save_LIBS=$LIBS
18693 LIBS="-lc $LIBS"
18694 if test x$gcc_no_link = xyes; then
18695 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18698 /* end confdefs.h. */
18700 /* Override any GCC internal prototype to avoid an error.
18701 Use char because int might match the return type of a GCC
18702 builtin and then its argument prototype would still apply. */
18703 #ifdef __cplusplus
18704 extern "C"
18705 #endif
18706 char open ();
18708 main ()
18710 return open ();
18712 return 0;
18714 _ACEOF
18715 if ac_fn_c_try_link "$LINENO"; then :
18716 ac_cv_lib_c_open=yes
18717 else
18718 ac_cv_lib_c_open=no
18720 rm -f core conftest.err conftest.$ac_objext \
18721 conftest$ac_exeext conftest.$ac_ext
18722 LIBS=$ac_check_lib_save_LIBS
18724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_open" >&5
18725 $as_echo "$ac_cv_lib_c_open" >&6; }
18726 if test "x$ac_cv_lib_c_open" = xyes; then :
18728 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
18730 else
18732 $as_echo "#undef HAVE_OPEN" >>confdefs.h
18736 else
18737 if test "x$ac_cv_lib_c_open" = xyes; then
18739 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
18741 elif test "x$ac_cv_func_open" = xyes; then
18743 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
18745 else
18747 $as_echo "#undef HAVE_OPEN" >>confdefs.h
18753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for pause" >&5
18754 $as_echo_n "checking m2 front end checking c library for pause... " >&6; }
18755 if test x$gcc_no_link != xyes; then
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pause in -lc" >&5
18757 $as_echo_n "checking for pause in -lc... " >&6; }
18758 if ${ac_cv_lib_c_pause+:} false; then :
18759 $as_echo_n "(cached) " >&6
18760 else
18761 ac_check_lib_save_LIBS=$LIBS
18762 LIBS="-lc $LIBS"
18763 if test x$gcc_no_link = xyes; then
18764 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18767 /* end confdefs.h. */
18769 /* Override any GCC internal prototype to avoid an error.
18770 Use char because int might match the return type of a GCC
18771 builtin and then its argument prototype would still apply. */
18772 #ifdef __cplusplus
18773 extern "C"
18774 #endif
18775 char pause ();
18777 main ()
18779 return pause ();
18781 return 0;
18783 _ACEOF
18784 if ac_fn_c_try_link "$LINENO"; then :
18785 ac_cv_lib_c_pause=yes
18786 else
18787 ac_cv_lib_c_pause=no
18789 rm -f core conftest.err conftest.$ac_objext \
18790 conftest$ac_exeext conftest.$ac_ext
18791 LIBS=$ac_check_lib_save_LIBS
18793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pause" >&5
18794 $as_echo "$ac_cv_lib_c_pause" >&6; }
18795 if test "x$ac_cv_lib_c_pause" = xyes; then :
18797 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
18799 else
18801 $as_echo "#undef HAVE_PAUSE" >>confdefs.h
18805 else
18806 if test "x$ac_cv_lib_c_pause" = xyes; then
18808 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
18810 elif test "x$ac_cv_func_pause" = xyes; then
18812 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
18814 else
18816 $as_echo "#undef HAVE_PAUSE" >>confdefs.h
18822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for pipe" >&5
18823 $as_echo_n "checking m2 front end checking c library for pipe... " >&6; }
18824 if test x$gcc_no_link != xyes; then
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pipe in -lc" >&5
18826 $as_echo_n "checking for pipe in -lc... " >&6; }
18827 if ${ac_cv_lib_c_pipe+:} false; then :
18828 $as_echo_n "(cached) " >&6
18829 else
18830 ac_check_lib_save_LIBS=$LIBS
18831 LIBS="-lc $LIBS"
18832 if test x$gcc_no_link = xyes; then
18833 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18836 /* end confdefs.h. */
18838 /* Override any GCC internal prototype to avoid an error.
18839 Use char because int might match the return type of a GCC
18840 builtin and then its argument prototype would still apply. */
18841 #ifdef __cplusplus
18842 extern "C"
18843 #endif
18844 char pipe ();
18846 main ()
18848 return pipe ();
18850 return 0;
18852 _ACEOF
18853 if ac_fn_c_try_link "$LINENO"; then :
18854 ac_cv_lib_c_pipe=yes
18855 else
18856 ac_cv_lib_c_pipe=no
18858 rm -f core conftest.err conftest.$ac_objext \
18859 conftest$ac_exeext conftest.$ac_ext
18860 LIBS=$ac_check_lib_save_LIBS
18862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pipe" >&5
18863 $as_echo "$ac_cv_lib_c_pipe" >&6; }
18864 if test "x$ac_cv_lib_c_pipe" = xyes; then :
18866 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
18868 else
18870 $as_echo "#undef HAVE_PIPE" >>confdefs.h
18874 else
18875 if test "x$ac_cv_lib_c_pipe" = xyes; then
18877 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
18879 elif test "x$ac_cv_func_pipe" = xyes; then
18881 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
18883 else
18885 $as_echo "#undef HAVE_PIPE" >>confdefs.h
18891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for rand" >&5
18892 $as_echo_n "checking m2 front end checking c library for rand... " >&6; }
18893 if test x$gcc_no_link != xyes; then
18894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rand in -lc" >&5
18895 $as_echo_n "checking for rand in -lc... " >&6; }
18896 if ${ac_cv_lib_c_rand+:} false; then :
18897 $as_echo_n "(cached) " >&6
18898 else
18899 ac_check_lib_save_LIBS=$LIBS
18900 LIBS="-lc $LIBS"
18901 if test x$gcc_no_link = xyes; then
18902 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18905 /* end confdefs.h. */
18907 /* Override any GCC internal prototype to avoid an error.
18908 Use char because int might match the return type of a GCC
18909 builtin and then its argument prototype would still apply. */
18910 #ifdef __cplusplus
18911 extern "C"
18912 #endif
18913 char rand ();
18915 main ()
18917 return rand ();
18919 return 0;
18921 _ACEOF
18922 if ac_fn_c_try_link "$LINENO"; then :
18923 ac_cv_lib_c_rand=yes
18924 else
18925 ac_cv_lib_c_rand=no
18927 rm -f core conftest.err conftest.$ac_objext \
18928 conftest$ac_exeext conftest.$ac_ext
18929 LIBS=$ac_check_lib_save_LIBS
18931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_rand" >&5
18932 $as_echo "$ac_cv_lib_c_rand" >&6; }
18933 if test "x$ac_cv_lib_c_rand" = xyes; then :
18935 $as_echo "#define HAVE_RAND 1" >>confdefs.h
18937 else
18939 $as_echo "#undef HAVE_RAND" >>confdefs.h
18943 else
18944 if test "x$ac_cv_lib_c_rand" = xyes; then
18946 $as_echo "#define HAVE_RAND 1" >>confdefs.h
18948 elif test "x$ac_cv_func_rand" = xyes; then
18950 $as_echo "#define HAVE_RAND 1" >>confdefs.h
18952 else
18954 $as_echo "#undef HAVE_RAND" >>confdefs.h
18960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for read" >&5
18961 $as_echo_n "checking m2 front end checking c library for read... " >&6; }
18962 if test x$gcc_no_link != xyes; then
18963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for read in -lc" >&5
18964 $as_echo_n "checking for read in -lc... " >&6; }
18965 if ${ac_cv_lib_c_read+:} false; then :
18966 $as_echo_n "(cached) " >&6
18967 else
18968 ac_check_lib_save_LIBS=$LIBS
18969 LIBS="-lc $LIBS"
18970 if test x$gcc_no_link = xyes; then
18971 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18974 /* end confdefs.h. */
18976 /* Override any GCC internal prototype to avoid an error.
18977 Use char because int might match the return type of a GCC
18978 builtin and then its argument prototype would still apply. */
18979 #ifdef __cplusplus
18980 extern "C"
18981 #endif
18982 char read ();
18984 main ()
18986 return read ();
18988 return 0;
18990 _ACEOF
18991 if ac_fn_c_try_link "$LINENO"; then :
18992 ac_cv_lib_c_read=yes
18993 else
18994 ac_cv_lib_c_read=no
18996 rm -f core conftest.err conftest.$ac_objext \
18997 conftest$ac_exeext conftest.$ac_ext
18998 LIBS=$ac_check_lib_save_LIBS
19000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_read" >&5
19001 $as_echo "$ac_cv_lib_c_read" >&6; }
19002 if test "x$ac_cv_lib_c_read" = xyes; then :
19004 $as_echo "#define HAVE_READ 1" >>confdefs.h
19006 else
19008 $as_echo "#undef HAVE_READ" >>confdefs.h
19012 else
19013 if test "x$ac_cv_lib_c_read" = xyes; then
19015 $as_echo "#define HAVE_READ 1" >>confdefs.h
19017 elif test "x$ac_cv_func_read" = xyes; then
19019 $as_echo "#define HAVE_READ 1" >>confdefs.h
19021 else
19023 $as_echo "#undef HAVE_READ" >>confdefs.h
19029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for select" >&5
19030 $as_echo_n "checking m2 front end checking c library for select... " >&6; }
19031 if test x$gcc_no_link != xyes; then
19032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select in -lc" >&5
19033 $as_echo_n "checking for select in -lc... " >&6; }
19034 if ${ac_cv_lib_c_select+:} false; then :
19035 $as_echo_n "(cached) " >&6
19036 else
19037 ac_check_lib_save_LIBS=$LIBS
19038 LIBS="-lc $LIBS"
19039 if test x$gcc_no_link = xyes; then
19040 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19043 /* end confdefs.h. */
19045 /* Override any GCC internal prototype to avoid an error.
19046 Use char because int might match the return type of a GCC
19047 builtin and then its argument prototype would still apply. */
19048 #ifdef __cplusplus
19049 extern "C"
19050 #endif
19051 char select ();
19053 main ()
19055 return select ();
19057 return 0;
19059 _ACEOF
19060 if ac_fn_c_try_link "$LINENO"; then :
19061 ac_cv_lib_c_select=yes
19062 else
19063 ac_cv_lib_c_select=no
19065 rm -f core conftest.err conftest.$ac_objext \
19066 conftest$ac_exeext conftest.$ac_ext
19067 LIBS=$ac_check_lib_save_LIBS
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_select" >&5
19070 $as_echo "$ac_cv_lib_c_select" >&6; }
19071 if test "x$ac_cv_lib_c_select" = xyes; then :
19073 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
19075 else
19077 $as_echo "#undef HAVE_SELECT" >>confdefs.h
19081 else
19082 if test "x$ac_cv_lib_c_select" = xyes; then
19084 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
19086 elif test "x$ac_cv_func_select" = xyes; then
19088 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
19090 else
19092 $as_echo "#undef HAVE_SELECT" >>confdefs.h
19098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setitimer" >&5
19099 $as_echo_n "checking m2 front end checking c library for setitimer... " >&6; }
19100 if test x$gcc_no_link != xyes; then
19101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setitimer in -lc" >&5
19102 $as_echo_n "checking for setitimer in -lc... " >&6; }
19103 if ${ac_cv_lib_c_setitimer+:} false; then :
19104 $as_echo_n "(cached) " >&6
19105 else
19106 ac_check_lib_save_LIBS=$LIBS
19107 LIBS="-lc $LIBS"
19108 if test x$gcc_no_link = xyes; then
19109 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19112 /* end confdefs.h. */
19114 /* Override any GCC internal prototype to avoid an error.
19115 Use char because int might match the return type of a GCC
19116 builtin and then its argument prototype would still apply. */
19117 #ifdef __cplusplus
19118 extern "C"
19119 #endif
19120 char setitimer ();
19122 main ()
19124 return setitimer ();
19126 return 0;
19128 _ACEOF
19129 if ac_fn_c_try_link "$LINENO"; then :
19130 ac_cv_lib_c_setitimer=yes
19131 else
19132 ac_cv_lib_c_setitimer=no
19134 rm -f core conftest.err conftest.$ac_objext \
19135 conftest$ac_exeext conftest.$ac_ext
19136 LIBS=$ac_check_lib_save_LIBS
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setitimer" >&5
19139 $as_echo "$ac_cv_lib_c_setitimer" >&6; }
19140 if test "x$ac_cv_lib_c_setitimer" = xyes; then :
19142 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
19144 else
19146 $as_echo "#undef HAVE_SETITIMER" >>confdefs.h
19150 else
19151 if test "x$ac_cv_lib_c_setitimer" = xyes; then
19153 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
19155 elif test "x$ac_cv_func_setitimer" = xyes; then
19157 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
19159 else
19161 $as_echo "#undef HAVE_SETITIMER" >>confdefs.h
19167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setgid" >&5
19168 $as_echo_n "checking m2 front end checking c library for setgid... " >&6; }
19169 if test x$gcc_no_link != xyes; then
19170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgid in -lc" >&5
19171 $as_echo_n "checking for setgid in -lc... " >&6; }
19172 if ${ac_cv_lib_c_setgid+:} false; then :
19173 $as_echo_n "(cached) " >&6
19174 else
19175 ac_check_lib_save_LIBS=$LIBS
19176 LIBS="-lc $LIBS"
19177 if test x$gcc_no_link = xyes; then
19178 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19181 /* end confdefs.h. */
19183 /* Override any GCC internal prototype to avoid an error.
19184 Use char because int might match the return type of a GCC
19185 builtin and then its argument prototype would still apply. */
19186 #ifdef __cplusplus
19187 extern "C"
19188 #endif
19189 char setgid ();
19191 main ()
19193 return setgid ();
19195 return 0;
19197 _ACEOF
19198 if ac_fn_c_try_link "$LINENO"; then :
19199 ac_cv_lib_c_setgid=yes
19200 else
19201 ac_cv_lib_c_setgid=no
19203 rm -f core conftest.err conftest.$ac_objext \
19204 conftest$ac_exeext conftest.$ac_ext
19205 LIBS=$ac_check_lib_save_LIBS
19207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setgid" >&5
19208 $as_echo "$ac_cv_lib_c_setgid" >&6; }
19209 if test "x$ac_cv_lib_c_setgid" = xyes; then :
19211 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
19213 else
19215 $as_echo "#undef HAVE_SETGID" >>confdefs.h
19219 else
19220 if test "x$ac_cv_lib_c_setgid" = xyes; then
19222 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
19224 elif test "x$ac_cv_func_setgid" = xyes; then
19226 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
19228 else
19230 $as_echo "#undef HAVE_SETGID" >>confdefs.h
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setuid" >&5
19237 $as_echo_n "checking m2 front end checking c library for setuid... " >&6; }
19238 if test x$gcc_no_link != xyes; then
19239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setuid in -lc" >&5
19240 $as_echo_n "checking for setuid in -lc... " >&6; }
19241 if ${ac_cv_lib_c_setuid+:} false; then :
19242 $as_echo_n "(cached) " >&6
19243 else
19244 ac_check_lib_save_LIBS=$LIBS
19245 LIBS="-lc $LIBS"
19246 if test x$gcc_no_link = xyes; then
19247 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19250 /* end confdefs.h. */
19252 /* Override any GCC internal prototype to avoid an error.
19253 Use char because int might match the return type of a GCC
19254 builtin and then its argument prototype would still apply. */
19255 #ifdef __cplusplus
19256 extern "C"
19257 #endif
19258 char setuid ();
19260 main ()
19262 return setuid ();
19264 return 0;
19266 _ACEOF
19267 if ac_fn_c_try_link "$LINENO"; then :
19268 ac_cv_lib_c_setuid=yes
19269 else
19270 ac_cv_lib_c_setuid=no
19272 rm -f core conftest.err conftest.$ac_objext \
19273 conftest$ac_exeext conftest.$ac_ext
19274 LIBS=$ac_check_lib_save_LIBS
19276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setuid" >&5
19277 $as_echo "$ac_cv_lib_c_setuid" >&6; }
19278 if test "x$ac_cv_lib_c_setuid" = xyes; then :
19280 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
19282 else
19284 $as_echo "#undef HAVE_SETUID" >>confdefs.h
19288 else
19289 if test "x$ac_cv_lib_c_setuid" = xyes; then
19291 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
19293 elif test "x$ac_cv_func_setuid" = xyes; then
19295 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
19297 else
19299 $as_echo "#undef HAVE_SETUID" >>confdefs.h
19305 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for stat" >&5
19306 $as_echo_n "checking m2 front end checking c library for stat... " >&6; }
19307 if test x$gcc_no_link != xyes; then
19308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stat in -lc" >&5
19309 $as_echo_n "checking for stat in -lc... " >&6; }
19310 if ${ac_cv_lib_c_stat+:} false; then :
19311 $as_echo_n "(cached) " >&6
19312 else
19313 ac_check_lib_save_LIBS=$LIBS
19314 LIBS="-lc $LIBS"
19315 if test x$gcc_no_link = xyes; then
19316 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19319 /* end confdefs.h. */
19321 /* Override any GCC internal prototype to avoid an error.
19322 Use char because int might match the return type of a GCC
19323 builtin and then its argument prototype would still apply. */
19324 #ifdef __cplusplus
19325 extern "C"
19326 #endif
19327 char stat ();
19329 main ()
19331 return stat ();
19333 return 0;
19335 _ACEOF
19336 if ac_fn_c_try_link "$LINENO"; then :
19337 ac_cv_lib_c_stat=yes
19338 else
19339 ac_cv_lib_c_stat=no
19341 rm -f core conftest.err conftest.$ac_objext \
19342 conftest$ac_exeext conftest.$ac_ext
19343 LIBS=$ac_check_lib_save_LIBS
19345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_stat" >&5
19346 $as_echo "$ac_cv_lib_c_stat" >&6; }
19347 if test "x$ac_cv_lib_c_stat" = xyes; then :
19349 $as_echo "#define HAVE_STAT 1" >>confdefs.h
19351 else
19353 $as_echo "#undef HAVE_STAT" >>confdefs.h
19357 else
19358 if test "x$ac_cv_lib_c_stat" = xyes; then
19360 $as_echo "#define HAVE_STAT 1" >>confdefs.h
19362 elif test "x$ac_cv_func_stat" = xyes; then
19364 $as_echo "#define HAVE_STAT 1" >>confdefs.h
19366 else
19368 $as_echo "#undef HAVE_STAT" >>confdefs.h
19374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strsignal" >&5
19375 $as_echo_n "checking m2 front end checking c library for strsignal... " >&6; }
19376 if test x$gcc_no_link != xyes; then
19377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strsignal in -lc" >&5
19378 $as_echo_n "checking for strsignal in -lc... " >&6; }
19379 if ${ac_cv_lib_c_strsignal+:} false; then :
19380 $as_echo_n "(cached) " >&6
19381 else
19382 ac_check_lib_save_LIBS=$LIBS
19383 LIBS="-lc $LIBS"
19384 if test x$gcc_no_link = xyes; then
19385 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19387 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19388 /* end confdefs.h. */
19390 /* Override any GCC internal prototype to avoid an error.
19391 Use char because int might match the return type of a GCC
19392 builtin and then its argument prototype would still apply. */
19393 #ifdef __cplusplus
19394 extern "C"
19395 #endif
19396 char strsignal ();
19398 main ()
19400 return strsignal ();
19402 return 0;
19404 _ACEOF
19405 if ac_fn_c_try_link "$LINENO"; then :
19406 ac_cv_lib_c_strsignal=yes
19407 else
19408 ac_cv_lib_c_strsignal=no
19410 rm -f core conftest.err conftest.$ac_objext \
19411 conftest$ac_exeext conftest.$ac_ext
19412 LIBS=$ac_check_lib_save_LIBS
19414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strsignal" >&5
19415 $as_echo "$ac_cv_lib_c_strsignal" >&6; }
19416 if test "x$ac_cv_lib_c_strsignal" = xyes; then :
19418 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
19420 else
19422 $as_echo "#undef HAVE_STRSIGNAL" >>confdefs.h
19426 else
19427 if test "x$ac_cv_lib_c_strsignal" = xyes; then
19429 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
19431 elif test "x$ac_cv_func_strsignal" = xyes; then
19433 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
19435 else
19437 $as_echo "#undef HAVE_STRSIGNAL" >>confdefs.h
19443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strtod" >&5
19444 $as_echo_n "checking m2 front end checking c library for strtod... " >&6; }
19445 if test x$gcc_no_link != xyes; then
19446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lc" >&5
19447 $as_echo_n "checking for strtod in -lc... " >&6; }
19448 if ${ac_cv_lib_c_strtod+:} false; then :
19449 $as_echo_n "(cached) " >&6
19450 else
19451 ac_check_lib_save_LIBS=$LIBS
19452 LIBS="-lc $LIBS"
19453 if test x$gcc_no_link = xyes; then
19454 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19457 /* end confdefs.h. */
19459 /* Override any GCC internal prototype to avoid an error.
19460 Use char because int might match the return type of a GCC
19461 builtin and then its argument prototype would still apply. */
19462 #ifdef __cplusplus
19463 extern "C"
19464 #endif
19465 char strtod ();
19467 main ()
19469 return strtod ();
19471 return 0;
19473 _ACEOF
19474 if ac_fn_c_try_link "$LINENO"; then :
19475 ac_cv_lib_c_strtod=yes
19476 else
19477 ac_cv_lib_c_strtod=no
19479 rm -f core conftest.err conftest.$ac_objext \
19480 conftest$ac_exeext conftest.$ac_ext
19481 LIBS=$ac_check_lib_save_LIBS
19483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strtod" >&5
19484 $as_echo "$ac_cv_lib_c_strtod" >&6; }
19485 if test "x$ac_cv_lib_c_strtod" = xyes; then :
19487 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
19489 else
19491 $as_echo "#undef HAVE_STRTOD" >>confdefs.h
19495 else
19496 if test "x$ac_cv_lib_c_strtod" = xyes; then
19498 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
19500 elif test "x$ac_cv_func_strtod" = xyes; then
19502 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
19504 else
19506 $as_echo "#undef HAVE_STRTOD" >>confdefs.h
19512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strtold" >&5
19513 $as_echo_n "checking m2 front end checking c library for strtold... " >&6; }
19514 if test x$gcc_no_link != xyes; then
19515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold in -lc" >&5
19516 $as_echo_n "checking for strtold in -lc... " >&6; }
19517 if ${ac_cv_lib_c_strtold+:} false; then :
19518 $as_echo_n "(cached) " >&6
19519 else
19520 ac_check_lib_save_LIBS=$LIBS
19521 LIBS="-lc $LIBS"
19522 if test x$gcc_no_link = xyes; then
19523 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19526 /* end confdefs.h. */
19528 /* Override any GCC internal prototype to avoid an error.
19529 Use char because int might match the return type of a GCC
19530 builtin and then its argument prototype would still apply. */
19531 #ifdef __cplusplus
19532 extern "C"
19533 #endif
19534 char strtold ();
19536 main ()
19538 return strtold ();
19540 return 0;
19542 _ACEOF
19543 if ac_fn_c_try_link "$LINENO"; then :
19544 ac_cv_lib_c_strtold=yes
19545 else
19546 ac_cv_lib_c_strtold=no
19548 rm -f core conftest.err conftest.$ac_objext \
19549 conftest$ac_exeext conftest.$ac_ext
19550 LIBS=$ac_check_lib_save_LIBS
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strtold" >&5
19553 $as_echo "$ac_cv_lib_c_strtold" >&6; }
19554 if test "x$ac_cv_lib_c_strtold" = xyes; then :
19556 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
19558 else
19560 $as_echo "#undef HAVE_STRTOLD" >>confdefs.h
19564 else
19565 if test "x$ac_cv_lib_c_strtold" = xyes; then
19567 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
19569 elif test "x$ac_cv_func_strtold" = xyes; then
19571 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
19573 else
19575 $as_echo "#undef HAVE_STRTOLD" >>confdefs.h
19581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for times" >&5
19582 $as_echo_n "checking m2 front end checking c library for times... " >&6; }
19583 if test x$gcc_no_link != xyes; then
19584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for times in -lc" >&5
19585 $as_echo_n "checking for times in -lc... " >&6; }
19586 if ${ac_cv_lib_c_times+:} false; then :
19587 $as_echo_n "(cached) " >&6
19588 else
19589 ac_check_lib_save_LIBS=$LIBS
19590 LIBS="-lc $LIBS"
19591 if test x$gcc_no_link = xyes; then
19592 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19595 /* end confdefs.h. */
19597 /* Override any GCC internal prototype to avoid an error.
19598 Use char because int might match the return type of a GCC
19599 builtin and then its argument prototype would still apply. */
19600 #ifdef __cplusplus
19601 extern "C"
19602 #endif
19603 char times ();
19605 main ()
19607 return times ();
19609 return 0;
19611 _ACEOF
19612 if ac_fn_c_try_link "$LINENO"; then :
19613 ac_cv_lib_c_times=yes
19614 else
19615 ac_cv_lib_c_times=no
19617 rm -f core conftest.err conftest.$ac_objext \
19618 conftest$ac_exeext conftest.$ac_ext
19619 LIBS=$ac_check_lib_save_LIBS
19621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_times" >&5
19622 $as_echo "$ac_cv_lib_c_times" >&6; }
19623 if test "x$ac_cv_lib_c_times" = xyes; then :
19625 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
19627 else
19629 $as_echo "#undef HAVE_TIMES" >>confdefs.h
19633 else
19634 if test "x$ac_cv_lib_c_times" = xyes; then
19636 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
19638 elif test "x$ac_cv_func_times" = xyes; then
19640 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
19642 else
19644 $as_echo "#undef HAVE_TIMES" >>confdefs.h
19650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for timezone" >&5
19651 $as_echo_n "checking m2 front end checking c library for timezone... " >&6; }
19652 if test x$gcc_no_link != xyes; then
19653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone in -lc" >&5
19654 $as_echo_n "checking for timezone in -lc... " >&6; }
19655 if ${ac_cv_lib_c_timezone+:} false; then :
19656 $as_echo_n "(cached) " >&6
19657 else
19658 ac_check_lib_save_LIBS=$LIBS
19659 LIBS="-lc $LIBS"
19660 if test x$gcc_no_link = xyes; then
19661 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19664 /* end confdefs.h. */
19666 /* Override any GCC internal prototype to avoid an error.
19667 Use char because int might match the return type of a GCC
19668 builtin and then its argument prototype would still apply. */
19669 #ifdef __cplusplus
19670 extern "C"
19671 #endif
19672 char timezone ();
19674 main ()
19676 return timezone ();
19678 return 0;
19680 _ACEOF
19681 if ac_fn_c_try_link "$LINENO"; then :
19682 ac_cv_lib_c_timezone=yes
19683 else
19684 ac_cv_lib_c_timezone=no
19686 rm -f core conftest.err conftest.$ac_objext \
19687 conftest$ac_exeext conftest.$ac_ext
19688 LIBS=$ac_check_lib_save_LIBS
19690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_timezone" >&5
19691 $as_echo "$ac_cv_lib_c_timezone" >&6; }
19692 if test "x$ac_cv_lib_c_timezone" = xyes; then :
19694 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
19696 else
19698 $as_echo "#undef HAVE_TIMEZONE" >>confdefs.h
19702 else
19703 if test "x$ac_cv_lib_c_timezone" = xyes; then
19705 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
19707 elif test "x$ac_cv_func_timezone" = xyes; then
19709 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
19711 else
19713 $as_echo "#undef HAVE_TIMEZONE" >>confdefs.h
19719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for tzname" >&5
19720 $as_echo_n "checking m2 front end checking c library for tzname... " >&6; }
19721 if test x$gcc_no_link != xyes; then
19722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname in -lc" >&5
19723 $as_echo_n "checking for tzname in -lc... " >&6; }
19724 if ${ac_cv_lib_c_tzname+:} false; then :
19725 $as_echo_n "(cached) " >&6
19726 else
19727 ac_check_lib_save_LIBS=$LIBS
19728 LIBS="-lc $LIBS"
19729 if test x$gcc_no_link = xyes; then
19730 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19733 /* end confdefs.h. */
19735 /* Override any GCC internal prototype to avoid an error.
19736 Use char because int might match the return type of a GCC
19737 builtin and then its argument prototype would still apply. */
19738 #ifdef __cplusplus
19739 extern "C"
19740 #endif
19741 char tzname ();
19743 main ()
19745 return tzname ();
19747 return 0;
19749 _ACEOF
19750 if ac_fn_c_try_link "$LINENO"; then :
19751 ac_cv_lib_c_tzname=yes
19752 else
19753 ac_cv_lib_c_tzname=no
19755 rm -f core conftest.err conftest.$ac_objext \
19756 conftest$ac_exeext conftest.$ac_ext
19757 LIBS=$ac_check_lib_save_LIBS
19759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_tzname" >&5
19760 $as_echo "$ac_cv_lib_c_tzname" >&6; }
19761 if test "x$ac_cv_lib_c_tzname" = xyes; then :
19763 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19765 else
19767 $as_echo "#undef HAVE_TZNAME" >>confdefs.h
19771 else
19772 if test "x$ac_cv_lib_c_tzname" = xyes; then
19774 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19776 elif test "x$ac_cv_func_tzname" = xyes; then
19778 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19780 else
19782 $as_echo "#undef HAVE_TZNAME" >>confdefs.h
19788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for unlink" >&5
19789 $as_echo_n "checking m2 front end checking c library for unlink... " >&6; }
19790 if test x$gcc_no_link != xyes; then
19791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unlink in -lc" >&5
19792 $as_echo_n "checking for unlink in -lc... " >&6; }
19793 if ${ac_cv_lib_c_unlink+:} false; then :
19794 $as_echo_n "(cached) " >&6
19795 else
19796 ac_check_lib_save_LIBS=$LIBS
19797 LIBS="-lc $LIBS"
19798 if test x$gcc_no_link = xyes; then
19799 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19802 /* end confdefs.h. */
19804 /* Override any GCC internal prototype to avoid an error.
19805 Use char because int might match the return type of a GCC
19806 builtin and then its argument prototype would still apply. */
19807 #ifdef __cplusplus
19808 extern "C"
19809 #endif
19810 char unlink ();
19812 main ()
19814 return unlink ();
19816 return 0;
19818 _ACEOF
19819 if ac_fn_c_try_link "$LINENO"; then :
19820 ac_cv_lib_c_unlink=yes
19821 else
19822 ac_cv_lib_c_unlink=no
19824 rm -f core conftest.err conftest.$ac_objext \
19825 conftest$ac_exeext conftest.$ac_ext
19826 LIBS=$ac_check_lib_save_LIBS
19828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_unlink" >&5
19829 $as_echo "$ac_cv_lib_c_unlink" >&6; }
19830 if test "x$ac_cv_lib_c_unlink" = xyes; then :
19832 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
19834 else
19836 $as_echo "#undef HAVE_UNLINK" >>confdefs.h
19840 else
19841 if test "x$ac_cv_lib_c_unlink" = xyes; then
19843 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
19845 elif test "x$ac_cv_func_unlink" = xyes; then
19847 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
19849 else
19851 $as_echo "#undef HAVE_UNLINK" >>confdefs.h
19857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for wait" >&5
19858 $as_echo_n "checking m2 front end checking c library for wait... " >&6; }
19859 if test x$gcc_no_link != xyes; then
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait in -lc" >&5
19861 $as_echo_n "checking for wait in -lc... " >&6; }
19862 if ${ac_cv_lib_c_wait+:} false; then :
19863 $as_echo_n "(cached) " >&6
19864 else
19865 ac_check_lib_save_LIBS=$LIBS
19866 LIBS="-lc $LIBS"
19867 if test x$gcc_no_link = xyes; then
19868 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19871 /* end confdefs.h. */
19873 /* Override any GCC internal prototype to avoid an error.
19874 Use char because int might match the return type of a GCC
19875 builtin and then its argument prototype would still apply. */
19876 #ifdef __cplusplus
19877 extern "C"
19878 #endif
19879 char wait ();
19881 main ()
19883 return wait ();
19885 return 0;
19887 _ACEOF
19888 if ac_fn_c_try_link "$LINENO"; then :
19889 ac_cv_lib_c_wait=yes
19890 else
19891 ac_cv_lib_c_wait=no
19893 rm -f core conftest.err conftest.$ac_objext \
19894 conftest$ac_exeext conftest.$ac_ext
19895 LIBS=$ac_check_lib_save_LIBS
19897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_wait" >&5
19898 $as_echo "$ac_cv_lib_c_wait" >&6; }
19899 if test "x$ac_cv_lib_c_wait" = xyes; then :
19901 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
19903 else
19905 $as_echo "#undef HAVE_WAIT" >>confdefs.h
19909 else
19910 if test "x$ac_cv_lib_c_wait" = xyes; then
19912 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
19914 elif test "x$ac_cv_func_wait" = xyes; then
19916 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
19918 else
19920 $as_echo "#undef HAVE_WAIT" >>confdefs.h
19926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for write" >&5
19927 $as_echo_n "checking m2 front end checking c library for write... " >&6; }
19928 if test x$gcc_no_link != xyes; then
19929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for write in -lc" >&5
19930 $as_echo_n "checking for write in -lc... " >&6; }
19931 if ${ac_cv_lib_c_write+:} false; then :
19932 $as_echo_n "(cached) " >&6
19933 else
19934 ac_check_lib_save_LIBS=$LIBS
19935 LIBS="-lc $LIBS"
19936 if test x$gcc_no_link = xyes; then
19937 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19939 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19940 /* end confdefs.h. */
19942 /* Override any GCC internal prototype to avoid an error.
19943 Use char because int might match the return type of a GCC
19944 builtin and then its argument prototype would still apply. */
19945 #ifdef __cplusplus
19946 extern "C"
19947 #endif
19948 char write ();
19950 main ()
19952 return write ();
19954 return 0;
19956 _ACEOF
19957 if ac_fn_c_try_link "$LINENO"; then :
19958 ac_cv_lib_c_write=yes
19959 else
19960 ac_cv_lib_c_write=no
19962 rm -f core conftest.err conftest.$ac_objext \
19963 conftest$ac_exeext conftest.$ac_ext
19964 LIBS=$ac_check_lib_save_LIBS
19966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_write" >&5
19967 $as_echo "$ac_cv_lib_c_write" >&6; }
19968 if test "x$ac_cv_lib_c_write" = xyes; then :
19970 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
19972 else
19974 $as_echo "#undef HAVE_WRITE" >>confdefs.h
19978 else
19979 if test "x$ac_cv_lib_c_write" = xyes; then
19981 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
19983 elif test "x$ac_cv_func_write" = xyes; then
19985 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
19987 else
19989 $as_echo "#undef HAVE_WRITE" >>confdefs.h
19996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbit" >&5
19997 $as_echo_n "checking m2 front end checking m library for signbit... " >&6; }
19998 if test x$gcc_no_link != xyes; then
19999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit in -lm" >&5
20000 $as_echo_n "checking for signbit in -lm... " >&6; }
20001 if ${ac_cv_lib_m_signbit+:} false; then :
20002 $as_echo_n "(cached) " >&6
20003 else
20004 ac_check_lib_save_LIBS=$LIBS
20005 LIBS="-lm $LIBS"
20006 if test x$gcc_no_link = xyes; then
20007 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20010 /* end confdefs.h. */
20012 /* Override any GCC internal prototype to avoid an error.
20013 Use char because int might match the return type of a GCC
20014 builtin and then its argument prototype would still apply. */
20015 #ifdef __cplusplus
20016 extern "C"
20017 #endif
20018 char signbit ();
20020 main ()
20022 return signbit ();
20024 return 0;
20026 _ACEOF
20027 if ac_fn_c_try_link "$LINENO"; then :
20028 ac_cv_lib_m_signbit=yes
20029 else
20030 ac_cv_lib_m_signbit=no
20032 rm -f core conftest.err conftest.$ac_objext \
20033 conftest$ac_exeext conftest.$ac_ext
20034 LIBS=$ac_check_lib_save_LIBS
20036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbit" >&5
20037 $as_echo "$ac_cv_lib_m_signbit" >&6; }
20038 if test "x$ac_cv_lib_m_signbit" = xyes; then :
20040 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
20042 else
20044 $as_echo "#undef HAVE_SIGNBIT" >>confdefs.h
20048 else
20049 if test "x$ac_cv_lib_m_signbit" = xyes; then
20051 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
20053 elif test "x$ac_cv_func_signbit" = xyes; then
20055 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
20057 else
20059 $as_echo "#undef HAVE_SIGNBIT" >>confdefs.h
20065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbitf" >&5
20066 $as_echo_n "checking m2 front end checking m library for signbitf... " >&6; }
20067 if test x$gcc_no_link != xyes; then
20068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbitf in -lm" >&5
20069 $as_echo_n "checking for signbitf in -lm... " >&6; }
20070 if ${ac_cv_lib_m_signbitf+:} false; then :
20071 $as_echo_n "(cached) " >&6
20072 else
20073 ac_check_lib_save_LIBS=$LIBS
20074 LIBS="-lm $LIBS"
20075 if test x$gcc_no_link = xyes; then
20076 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20079 /* end confdefs.h. */
20081 /* Override any GCC internal prototype to avoid an error.
20082 Use char because int might match the return type of a GCC
20083 builtin and then its argument prototype would still apply. */
20084 #ifdef __cplusplus
20085 extern "C"
20086 #endif
20087 char signbitf ();
20089 main ()
20091 return signbitf ();
20093 return 0;
20095 _ACEOF
20096 if ac_fn_c_try_link "$LINENO"; then :
20097 ac_cv_lib_m_signbitf=yes
20098 else
20099 ac_cv_lib_m_signbitf=no
20101 rm -f core conftest.err conftest.$ac_objext \
20102 conftest$ac_exeext conftest.$ac_ext
20103 LIBS=$ac_check_lib_save_LIBS
20105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbitf" >&5
20106 $as_echo "$ac_cv_lib_m_signbitf" >&6; }
20107 if test "x$ac_cv_lib_m_signbitf" = xyes; then :
20109 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
20111 else
20113 $as_echo "#undef HAVE_SIGNBITF" >>confdefs.h
20117 else
20118 if test "x$ac_cv_lib_m_signbitf" = xyes; then
20120 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
20122 elif test "x$ac_cv_func_signbitf" = xyes; then
20124 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
20126 else
20128 $as_echo "#undef HAVE_SIGNBITF" >>confdefs.h
20134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbitl" >&5
20135 $as_echo_n "checking m2 front end checking m library for signbitl... " >&6; }
20136 if test x$gcc_no_link != xyes; then
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbitl in -lm" >&5
20138 $as_echo_n "checking for signbitl in -lm... " >&6; }
20139 if ${ac_cv_lib_m_signbitl+:} false; then :
20140 $as_echo_n "(cached) " >&6
20141 else
20142 ac_check_lib_save_LIBS=$LIBS
20143 LIBS="-lm $LIBS"
20144 if test x$gcc_no_link = xyes; then
20145 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20148 /* end confdefs.h. */
20150 /* Override any GCC internal prototype to avoid an error.
20151 Use char because int might match the return type of a GCC
20152 builtin and then its argument prototype would still apply. */
20153 #ifdef __cplusplus
20154 extern "C"
20155 #endif
20156 char signbitl ();
20158 main ()
20160 return signbitl ();
20162 return 0;
20164 _ACEOF
20165 if ac_fn_c_try_link "$LINENO"; then :
20166 ac_cv_lib_m_signbitl=yes
20167 else
20168 ac_cv_lib_m_signbitl=no
20170 rm -f core conftest.err conftest.$ac_objext \
20171 conftest$ac_exeext conftest.$ac_ext
20172 LIBS=$ac_check_lib_save_LIBS
20174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbitl" >&5
20175 $as_echo "$ac_cv_lib_m_signbitl" >&6; }
20176 if test "x$ac_cv_lib_m_signbitl" = xyes; then :
20178 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
20180 else
20182 $as_echo "#undef HAVE_SIGNBITL" >>confdefs.h
20186 else
20187 if test "x$ac_cv_lib_m_signbitl" = xyes; then
20189 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
20191 elif test "x$ac_cv_func_signbitl" = xyes; then
20193 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
20195 else
20197 $as_echo "#undef HAVE_SIGNBITL" >>confdefs.h
20203 { $as_echo "$as_me:${as_lineno-$LINENO}: libgm2 has finished checking target libc and libm contents." >&5
20204 $as_echo "$as_me: libgm2 has finished checking target libc and libm contents." >&6;}
20206 # We test the host here and later on check the target.
20208 # All known M2_HOST_OS values. This is the union of all host operating systems
20209 # supported by gm2.
20211 M2_SUPPORTED_HOST_OS="aix freebsd hurd linux netbsd openbsd solaris windows darwin"
20213 M2_HOST_OS=unknown
20215 case ${host} in
20216 *-*-darwin*) M2_HOST_OS=darwin ;;
20217 *-*-freebsd*) M2_HOST_OS=freebsd ;;
20218 *-*-linux*) M2_HOST_OS=linux ;;
20219 *-*-netbsd*) M2_HOST_OS=netbsd ;;
20220 *-*-openbsd*) M2_HOST_OS=openbsd ;;
20221 *-*-solaris2*) M2_HOST_OS=solaris ;;
20222 *-*-aix*) M2_HOST_OS=aix ;;
20223 *-*-gnu*) M2_HOST_OS=hurd ;;
20224 esac
20226 M2_TARGET_OS=unknown
20228 case ${target} in
20229 *-*-darwin*) M2_TARGET_OS=darwin ;;
20230 *-*-freebsd*) M2_TARGET_OS=freebsd ;;
20231 *-*-linux*) M2_TARGET_OS=linux ;;
20232 *-*-netbsd*) M2_TARGET_OS=netbsd ;;
20233 *-*-openbsd*) M2_TARGET_OS=openbsd ;;
20234 *-*-solaris2*) M2_TARGET_OS=solaris ;;
20235 *-*-aix*) M2_TARGET_OS=aix ;;
20236 *-*-gnu*) M2_TARGET_OS=hurd ;;
20237 esac
20239 # M2_HOST_OS=unknown
20240 if test x${M2_HOST_OS} = xunknown; then
20241 { $as_echo "$as_me:${as_lineno-$LINENO}: unsupported host, will build a minimal m2 library" >&5
20242 $as_echo "$as_me: unsupported host, will build a minimal m2 library" >&6;}
20243 BUILD_PIMLIB=false
20244 BUILD_ISOLIB=false
20245 BUILD_CORLIB=false
20246 BUILD_LOGLIB=false
20247 else
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 library will be built on ${M2_HOST_OS}" >&5
20249 $as_echo "$as_me: m2 library will be built on ${M2_HOST_OS}" >&6;}
20250 BUILD_PIMLIB=true
20251 BUILD_ISOLIB=true
20252 BUILD_CORLIB=true
20253 BUILD_LOGLIB=true
20256 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
20259 # Propagate GM2_FOR_TARGET into Makefiles
20260 GM2_FOR_TARGET=${GM2_FOR_TARGET:-gcc}
20263 # Now we check the target as long as it is a supported host.
20264 # For some embedded targets we choose minimal runtime system which is
20265 # just enough to satisfy the linker targetting raw metal.
20266 if test x${M2_HOST_OS} != xunknown; then
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 library building for target ${target}" >&5
20268 $as_echo "$as_me: m2 library building for target ${target}" >&6;}
20269 case "$target" in
20271 avr25*-*-* | avr31*-*-* | avr35*-*-* | avr4*-*-* | avr5*-*-* | avr51*-*-* | avr6*-*-*)
20272 BUILD_PIMLIB=false
20273 BUILD_ISOLIB=false
20274 BUILD_CORLIB=false
20275 BUILD_LOGLIB=false
20278 avrxmega2*-*-* | avrxmega4*-*-* | avrxmega5*-*-* | avrxmega6*-*-* | avrxmega7*-*-*)
20279 BUILD_PIMLIB=false
20280 BUILD_ISOLIB=false
20281 BUILD_CORLIB=false
20282 BUILD_LOGLIB=false
20285 avr3-*-*)
20286 BUILD_PIMLIB=true
20287 BUILD_ISOLIB=true
20288 BUILD_CORLIB=true
20289 BUILD_LOGLIB=true
20291 esp32-*-*)
20292 BUILD_PIMLIB=false
20293 BUILD_ISOLIB=false
20294 BUILD_CORLIB=false
20295 BUILD_LOGLIB=false
20298 esac
20301 # GM2_MSG_RESULT issue a query message from the first parameter and a boolean result
20302 # in the second parameter is printed as a "yes" or "no".
20306 if test x${M2_HOST_OS} = xunknown; then
20307 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 front end will only build minimal Modula-2 runtime library on this host" >&5
20308 $as_echo "$as_me: m2 front end will only build minimal Modula-2 runtime library on this host" >&6;}
20309 else
20311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build PIM libraries:" >&5
20312 $as_echo_n "checking m2 front end will build PIM libraries:... " >&6; }
20313 if test x${BUILD_PIMLIB} = xtrue; then
20314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20315 $as_echo "yes" >&6; }
20316 else
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20318 $as_echo "no" >&6; }
20322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build ISO libraries:" >&5
20323 $as_echo_n "checking m2 front end will build ISO libraries:... " >&6; }
20324 if test x${BUILD_ISOLIB} = xtrue; then
20325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20326 $as_echo "yes" >&6; }
20327 else
20328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20329 $as_echo "no" >&6; }
20333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build coroutine libraries:" >&5
20334 $as_echo_n "checking m2 front end will build coroutine libraries:... " >&6; }
20335 if test x${BUILD_CORLIB} = xtrue; then
20336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20337 $as_echo "yes" >&6; }
20338 else
20339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20340 $as_echo "no" >&6; }
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build Logitech compatability libraries:" >&5
20345 $as_echo_n "checking m2 front end will build Logitech compatability libraries:... " >&6; }
20346 if test x${BUILD_LOGLIB} = xtrue; then
20347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20348 $as_echo "yes" >&6; }
20349 else
20350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20351 $as_echo "no" >&6; }
20356 if test x$BUILD_PIMLIB = xtrue; then
20357 BUILD_PIMLIB_TRUE=
20358 BUILD_PIMLIB_FALSE='#'
20359 else
20360 BUILD_PIMLIB_TRUE='#'
20361 BUILD_PIMLIB_FALSE=
20364 if test x$BUILD_ISOLIB = xtrue; then
20365 BUILD_ISOLIB_TRUE=
20366 BUILD_ISOLIB_FALSE='#'
20367 else
20368 BUILD_ISOLIB_TRUE='#'
20369 BUILD_ISOLIB_FALSE=
20372 if test x$BUILD_CORLIB = xtrue; then
20373 BUILD_CORLIB_TRUE=
20374 BUILD_CORLIB_FALSE='#'
20375 else
20376 BUILD_CORLIB_TRUE='#'
20377 BUILD_CORLIB_FALSE=
20380 if test x$BUILD_LOGLIB = xtrue; then
20381 BUILD_LOGLIB_TRUE=
20382 BUILD_LOGLIB_FALSE='#'
20383 else
20384 BUILD_LOGLIB_TRUE='#'
20385 BUILD_LOGLIB_FALSE=
20388 if test x$M2_TARGET_OS = xdarwin; then
20389 TARGET_DARWIN_TRUE=
20390 TARGET_DARWIN_FALSE='#'
20391 else
20392 TARGET_DARWIN_TRUE='#'
20393 TARGET_DARWIN_FALSE=
20397 # Determine what GCC version number to use in filesystem paths.
20399 get_gcc_base_ver="cat"
20401 # Check whether --with-gcc-major-version-only was given.
20402 if test "${with_gcc_major_version_only+set}" = set; then :
20403 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
20404 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
20413 ac_config_files="$ac_config_files Makefile"
20416 ac_config_files="$ac_config_files libm2min/Makefile libm2pim/Makefile libm2iso/Makefile libm2cor/Makefile libm2log/Makefile"
20419 { $as_echo "$as_me:${as_lineno-$LINENO}: libgm2 has been configured." >&5
20420 $as_echo "$as_me: libgm2 has been configured." >&6;}
20422 cat >confcache <<\_ACEOF
20423 # This file is a shell script that caches the results of configure
20424 # tests run on this system so they can be shared between configure
20425 # scripts and configure runs, see configure's option --config-cache.
20426 # It is not useful on other systems. If it contains results you don't
20427 # want to keep, you may remove or edit it.
20429 # config.status only pays attention to the cache file if you give it
20430 # the --recheck option to rerun configure.
20432 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20433 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20434 # following values.
20436 _ACEOF
20438 # The following way of writing the cache mishandles newlines in values,
20439 # but we know of no workaround that is simple, portable, and efficient.
20440 # So, we kill variables containing newlines.
20441 # Ultrix sh set writes to stderr and can't be redirected directly,
20442 # and sets the high bit in the cache file unless we assign to the vars.
20444 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20445 eval ac_val=\$$ac_var
20446 case $ac_val in #(
20447 *${as_nl}*)
20448 case $ac_var in #(
20449 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20450 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20451 esac
20452 case $ac_var in #(
20453 _ | IFS | as_nl) ;; #(
20454 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20455 *) { eval $ac_var=; unset $ac_var;} ;;
20456 esac ;;
20457 esac
20458 done
20460 (set) 2>&1 |
20461 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20462 *${as_nl}ac_space=\ *)
20463 # `set' does not quote correctly, so add quotes: double-quote
20464 # substitution turns \\\\ into \\, and sed turns \\ into \.
20465 sed -n \
20466 "s/'/'\\\\''/g;
20467 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20468 ;; #(
20470 # `set' quotes correctly as required by POSIX, so do not add quotes.
20471 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20473 esac |
20474 sort
20476 sed '
20477 /^ac_cv_env_/b end
20478 t clear
20479 :clear
20480 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20481 t end
20482 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20483 :end' >>confcache
20484 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20485 if test -w "$cache_file"; then
20486 if test "x$cache_file" != "x/dev/null"; then
20487 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20488 $as_echo "$as_me: updating cache $cache_file" >&6;}
20489 if test ! -f "$cache_file" || test -h "$cache_file"; then
20490 cat confcache >"$cache_file"
20491 else
20492 case $cache_file in #(
20493 */* | ?:*)
20494 mv -f confcache "$cache_file"$$ &&
20495 mv -f "$cache_file"$$ "$cache_file" ;; #(
20497 mv -f confcache "$cache_file" ;;
20498 esac
20501 else
20502 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20503 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20506 rm -f confcache
20508 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20509 # Let make expand exec_prefix.
20510 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20512 DEFS=-DHAVE_CONFIG_H
20514 ac_libobjs=
20515 ac_ltlibobjs=
20517 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20518 # 1. Remove the extension, and $U if already installed.
20519 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20520 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20521 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20522 # will be set to the directory where LIBOBJS objects are built.
20523 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20524 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20525 done
20526 LIBOBJS=$ac_libobjs
20528 LTLIBOBJS=$ac_ltlibobjs
20531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20532 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20533 if test -n "$am_sleep_pid"; then
20534 # Hide warnings about reused PIDs.
20535 wait $am_sleep_pid 2>/dev/null
20537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20538 $as_echo "done" >&6; }
20539 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20540 as_fn_error $? "conditional \"AMDEP\" was never defined.
20541 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20543 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20544 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20545 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20547 if test -n "$EXEEXT"; then
20548 am__EXEEXT_TRUE=
20549 am__EXEEXT_FALSE='#'
20550 else
20551 am__EXEEXT_TRUE='#'
20552 am__EXEEXT_FALSE=
20555 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20556 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20557 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20559 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20560 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20561 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20563 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
20564 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
20565 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20567 if test -z "${ENABLE_DARWIN_AT_RPATH_TRUE}" && test -z "${ENABLE_DARWIN_AT_RPATH_FALSE}"; then
20568 as_fn_error $? "conditional \"ENABLE_DARWIN_AT_RPATH\" was never defined.
20569 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20571 if test -z "${BUILD_PIMLIB_TRUE}" && test -z "${BUILD_PIMLIB_FALSE}"; then
20572 as_fn_error $? "conditional \"BUILD_PIMLIB\" was never defined.
20573 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20575 if test -z "${BUILD_ISOLIB_TRUE}" && test -z "${BUILD_ISOLIB_FALSE}"; then
20576 as_fn_error $? "conditional \"BUILD_ISOLIB\" was never defined.
20577 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20579 if test -z "${BUILD_CORLIB_TRUE}" && test -z "${BUILD_CORLIB_FALSE}"; then
20580 as_fn_error $? "conditional \"BUILD_CORLIB\" was never defined.
20581 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20583 if test -z "${BUILD_LOGLIB_TRUE}" && test -z "${BUILD_LOGLIB_FALSE}"; then
20584 as_fn_error $? "conditional \"BUILD_LOGLIB\" was never defined.
20585 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20587 if test -z "${TARGET_DARWIN_TRUE}" && test -z "${TARGET_DARWIN_FALSE}"; then
20588 as_fn_error $? "conditional \"TARGET_DARWIN\" was never defined.
20589 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20592 : "${CONFIG_STATUS=./config.status}"
20593 ac_write_fail=0
20594 ac_clean_files_save=$ac_clean_files
20595 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20596 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20597 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20598 as_write_fail=0
20599 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20600 #! $SHELL
20601 # Generated by $as_me.
20602 # Run this file to recreate the current configuration.
20603 # Compiler output produced by configure, useful for debugging
20604 # configure, is in config.log if it exists.
20606 debug=false
20607 ac_cs_recheck=false
20608 ac_cs_silent=false
20610 SHELL=\${CONFIG_SHELL-$SHELL}
20611 export SHELL
20612 _ASEOF
20613 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20614 ## -------------------- ##
20615 ## M4sh Initialization. ##
20616 ## -------------------- ##
20618 # Be more Bourne compatible
20619 DUALCASE=1; export DUALCASE # for MKS sh
20620 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20621 emulate sh
20622 NULLCMD=:
20623 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20624 # is contrary to our usage. Disable this feature.
20625 alias -g '${1+"$@"}'='"$@"'
20626 setopt NO_GLOB_SUBST
20627 else
20628 case `(set -o) 2>/dev/null` in #(
20629 *posix*) :
20630 set -o posix ;; #(
20631 *) :
20633 esac
20637 as_nl='
20639 export as_nl
20640 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20641 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20642 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20643 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20644 # Prefer a ksh shell builtin over an external printf program on Solaris,
20645 # but without wasting forks for bash or zsh.
20646 if test -z "$BASH_VERSION$ZSH_VERSION" \
20647 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20648 as_echo='print -r --'
20649 as_echo_n='print -rn --'
20650 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20651 as_echo='printf %s\n'
20652 as_echo_n='printf %s'
20653 else
20654 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20655 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20656 as_echo_n='/usr/ucb/echo -n'
20657 else
20658 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20659 as_echo_n_body='eval
20660 arg=$1;
20661 case $arg in #(
20662 *"$as_nl"*)
20663 expr "X$arg" : "X\\(.*\\)$as_nl";
20664 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20665 esac;
20666 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20668 export as_echo_n_body
20669 as_echo_n='sh -c $as_echo_n_body as_echo'
20671 export as_echo_body
20672 as_echo='sh -c $as_echo_body as_echo'
20675 # The user is always right.
20676 if test "${PATH_SEPARATOR+set}" != set; then
20677 PATH_SEPARATOR=:
20678 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20679 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20680 PATH_SEPARATOR=';'
20685 # IFS
20686 # We need space, tab and new line, in precisely that order. Quoting is
20687 # there to prevent editors from complaining about space-tab.
20688 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20689 # splitting by setting IFS to empty value.)
20690 IFS=" "" $as_nl"
20692 # Find who we are. Look in the path if we contain no directory separator.
20693 as_myself=
20694 case $0 in #((
20695 *[\\/]* ) as_myself=$0 ;;
20696 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20697 for as_dir in $PATH
20699 IFS=$as_save_IFS
20700 test -z "$as_dir" && as_dir=.
20701 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20702 done
20703 IFS=$as_save_IFS
20706 esac
20707 # We did not find ourselves, most probably we were run as `sh COMMAND'
20708 # in which case we are not to be found in the path.
20709 if test "x$as_myself" = x; then
20710 as_myself=$0
20712 if test ! -f "$as_myself"; then
20713 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20714 exit 1
20717 # Unset variables that we do not need and which cause bugs (e.g. in
20718 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20719 # suppresses any "Segmentation fault" message there. '((' could
20720 # trigger a bug in pdksh 5.2.14.
20721 for as_var in BASH_ENV ENV MAIL MAILPATH
20722 do eval test x\${$as_var+set} = xset \
20723 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20724 done
20725 PS1='$ '
20726 PS2='> '
20727 PS4='+ '
20729 # NLS nuisances.
20730 LC_ALL=C
20731 export LC_ALL
20732 LANGUAGE=C
20733 export LANGUAGE
20735 # CDPATH.
20736 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20739 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20740 # ----------------------------------------
20741 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20742 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20743 # script with STATUS, using 1 if that was 0.
20744 as_fn_error ()
20746 as_status=$1; test $as_status -eq 0 && as_status=1
20747 if test "$4"; then
20748 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20749 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20751 $as_echo "$as_me: error: $2" >&2
20752 as_fn_exit $as_status
20753 } # as_fn_error
20756 # as_fn_set_status STATUS
20757 # -----------------------
20758 # Set $? to STATUS, without forking.
20759 as_fn_set_status ()
20761 return $1
20762 } # as_fn_set_status
20764 # as_fn_exit STATUS
20765 # -----------------
20766 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20767 as_fn_exit ()
20769 set +e
20770 as_fn_set_status $1
20771 exit $1
20772 } # as_fn_exit
20774 # as_fn_unset VAR
20775 # ---------------
20776 # Portably unset VAR.
20777 as_fn_unset ()
20779 { eval $1=; unset $1;}
20781 as_unset=as_fn_unset
20782 # as_fn_append VAR VALUE
20783 # ----------------------
20784 # Append the text in VALUE to the end of the definition contained in VAR. Take
20785 # advantage of any shell optimizations that allow amortized linear growth over
20786 # repeated appends, instead of the typical quadratic growth present in naive
20787 # implementations.
20788 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20789 eval 'as_fn_append ()
20791 eval $1+=\$2
20793 else
20794 as_fn_append ()
20796 eval $1=\$$1\$2
20798 fi # as_fn_append
20800 # as_fn_arith ARG...
20801 # ------------------
20802 # Perform arithmetic evaluation on the ARGs, and store the result in the
20803 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20804 # must be portable across $(()) and expr.
20805 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20806 eval 'as_fn_arith ()
20808 as_val=$(( $* ))
20810 else
20811 as_fn_arith ()
20813 as_val=`expr "$@" || test $? -eq 1`
20815 fi # as_fn_arith
20818 if expr a : '\(a\)' >/dev/null 2>&1 &&
20819 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20820 as_expr=expr
20821 else
20822 as_expr=false
20825 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20826 as_basename=basename
20827 else
20828 as_basename=false
20831 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20832 as_dirname=dirname
20833 else
20834 as_dirname=false
20837 as_me=`$as_basename -- "$0" ||
20838 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20839 X"$0" : 'X\(//\)$' \| \
20840 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20841 $as_echo X/"$0" |
20842 sed '/^.*\/\([^/][^/]*\)\/*$/{
20843 s//\1/
20846 /^X\/\(\/\/\)$/{
20847 s//\1/
20850 /^X\/\(\/\).*/{
20851 s//\1/
20854 s/.*/./; q'`
20856 # Avoid depending upon Character Ranges.
20857 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20858 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20859 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20860 as_cr_digits='0123456789'
20861 as_cr_alnum=$as_cr_Letters$as_cr_digits
20863 ECHO_C= ECHO_N= ECHO_T=
20864 case `echo -n x` in #(((((
20865 -n*)
20866 case `echo 'xy\c'` in
20867 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20868 xy) ECHO_C='\c';;
20869 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20870 ECHO_T=' ';;
20871 esac;;
20873 ECHO_N='-n';;
20874 esac
20876 rm -f conf$$ conf$$.exe conf$$.file
20877 if test -d conf$$.dir; then
20878 rm -f conf$$.dir/conf$$.file
20879 else
20880 rm -f conf$$.dir
20881 mkdir conf$$.dir 2>/dev/null
20883 if (echo >conf$$.file) 2>/dev/null; then
20884 if ln -s conf$$.file conf$$ 2>/dev/null; then
20885 as_ln_s='ln -s'
20886 # ... but there are two gotchas:
20887 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20888 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20889 # In both cases, we have to default to `cp -pR'.
20890 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20891 as_ln_s='cp -pR'
20892 elif ln conf$$.file conf$$ 2>/dev/null; then
20893 as_ln_s=ln
20894 else
20895 as_ln_s='cp -pR'
20897 else
20898 as_ln_s='cp -pR'
20900 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20901 rmdir conf$$.dir 2>/dev/null
20904 # as_fn_mkdir_p
20905 # -------------
20906 # Create "$as_dir" as a directory, including parents if necessary.
20907 as_fn_mkdir_p ()
20910 case $as_dir in #(
20911 -*) as_dir=./$as_dir;;
20912 esac
20913 test -d "$as_dir" || eval $as_mkdir_p || {
20914 as_dirs=
20915 while :; do
20916 case $as_dir in #(
20917 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20918 *) as_qdir=$as_dir;;
20919 esac
20920 as_dirs="'$as_qdir' $as_dirs"
20921 as_dir=`$as_dirname -- "$as_dir" ||
20922 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20923 X"$as_dir" : 'X\(//\)[^/]' \| \
20924 X"$as_dir" : 'X\(//\)$' \| \
20925 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20926 $as_echo X"$as_dir" |
20927 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20928 s//\1/
20931 /^X\(\/\/\)[^/].*/{
20932 s//\1/
20935 /^X\(\/\/\)$/{
20936 s//\1/
20939 /^X\(\/\).*/{
20940 s//\1/
20943 s/.*/./; q'`
20944 test -d "$as_dir" && break
20945 done
20946 test -z "$as_dirs" || eval "mkdir $as_dirs"
20947 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20950 } # as_fn_mkdir_p
20951 if mkdir -p . 2>/dev/null; then
20952 as_mkdir_p='mkdir -p "$as_dir"'
20953 else
20954 test -d ./-p && rmdir ./-p
20955 as_mkdir_p=false
20959 # as_fn_executable_p FILE
20960 # -----------------------
20961 # Test if FILE is an executable regular file.
20962 as_fn_executable_p ()
20964 test -f "$1" && test -x "$1"
20965 } # as_fn_executable_p
20966 as_test_x='test -x'
20967 as_executable_p=as_fn_executable_p
20969 # Sed expression to map a string onto a valid CPP name.
20970 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20972 # Sed expression to map a string onto a valid variable name.
20973 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20976 exec 6>&1
20977 ## ----------------------------------- ##
20978 ## Main body of $CONFIG_STATUS script. ##
20979 ## ----------------------------------- ##
20980 _ASEOF
20981 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20984 # Save the log message, to keep $0 and so on meaningful, and to
20985 # report actual input values of CONFIG_FILES etc. instead of their
20986 # values after options handling.
20987 ac_log="
20988 This file was extended by package-unused $as_me version-unused, which was
20989 generated by GNU Autoconf 2.69. Invocation command line was
20991 CONFIG_FILES = $CONFIG_FILES
20992 CONFIG_HEADERS = $CONFIG_HEADERS
20993 CONFIG_LINKS = $CONFIG_LINKS
20994 CONFIG_COMMANDS = $CONFIG_COMMANDS
20995 $ $0 $@
20997 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21000 _ACEOF
21002 case $ac_config_files in *"
21003 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21004 esac
21006 case $ac_config_headers in *"
21007 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
21008 esac
21011 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21012 # Files that config.status was made for.
21013 config_files="$ac_config_files"
21014 config_headers="$ac_config_headers"
21015 config_commands="$ac_config_commands"
21017 _ACEOF
21019 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21020 ac_cs_usage="\
21021 \`$as_me' instantiates files and other configuration actions
21022 from templates according to the current configuration. Unless the files
21023 and actions are specified as TAGs, all are instantiated by default.
21025 Usage: $0 [OPTION]... [TAG]...
21027 -h, --help print this help, then exit
21028 -V, --version print version number and configuration settings, then exit
21029 --config print configuration, then exit
21030 -q, --quiet, --silent
21031 do not print progress messages
21032 -d, --debug don't remove temporary files
21033 --recheck update $as_me by reconfiguring in the same conditions
21034 --file=FILE[:TEMPLATE]
21035 instantiate the configuration file FILE
21036 --header=FILE[:TEMPLATE]
21037 instantiate the configuration header FILE
21039 Configuration files:
21040 $config_files
21042 Configuration headers:
21043 $config_headers
21045 Configuration commands:
21046 $config_commands
21048 Report bugs to the package provider."
21050 _ACEOF
21051 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21052 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
21053 ac_cs_version="\\
21054 package-unused config.status version-unused
21055 configured by $0, generated by GNU Autoconf 2.69,
21056 with options \\"\$ac_cs_config\\"
21058 Copyright (C) 2012 Free Software Foundation, Inc.
21059 This config.status script is free software; the Free Software Foundation
21060 gives unlimited permission to copy, distribute and modify it."
21062 ac_pwd='$ac_pwd'
21063 srcdir='$srcdir'
21064 INSTALL='$INSTALL'
21065 MKDIR_P='$MKDIR_P'
21066 AWK='$AWK'
21067 test -n "\$AWK" || AWK=awk
21068 _ACEOF
21070 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21071 # The default lists apply if the user does not specify any file.
21072 ac_need_defaults=:
21073 while test $# != 0
21075 case $1 in
21076 --*=?*)
21077 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21078 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21079 ac_shift=:
21081 --*=)
21082 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21083 ac_optarg=
21084 ac_shift=:
21087 ac_option=$1
21088 ac_optarg=$2
21089 ac_shift=shift
21091 esac
21093 case $ac_option in
21094 # Handling of the options.
21095 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21096 ac_cs_recheck=: ;;
21097 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21098 $as_echo "$ac_cs_version"; exit ;;
21099 --config | --confi | --conf | --con | --co | --c )
21100 $as_echo "$ac_cs_config"; exit ;;
21101 --debug | --debu | --deb | --de | --d | -d )
21102 debug=: ;;
21103 --file | --fil | --fi | --f )
21104 $ac_shift
21105 case $ac_optarg in
21106 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21107 '') as_fn_error $? "missing file argument" ;;
21108 esac
21109 as_fn_append CONFIG_FILES " '$ac_optarg'"
21110 ac_need_defaults=false;;
21111 --header | --heade | --head | --hea )
21112 $ac_shift
21113 case $ac_optarg in
21114 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21115 esac
21116 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
21117 ac_need_defaults=false;;
21118 --he | --h)
21119 # Conflict between --help and --header
21120 as_fn_error $? "ambiguous option: \`$1'
21121 Try \`$0 --help' for more information.";;
21122 --help | --hel | -h )
21123 $as_echo "$ac_cs_usage"; exit ;;
21124 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21125 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21126 ac_cs_silent=: ;;
21128 # This is an error.
21129 -*) as_fn_error $? "unrecognized option: \`$1'
21130 Try \`$0 --help' for more information." ;;
21132 *) as_fn_append ac_config_targets " $1"
21133 ac_need_defaults=false ;;
21135 esac
21136 shift
21137 done
21139 ac_configure_extra_args=
21141 if $ac_cs_silent; then
21142 exec 6>/dev/null
21143 ac_configure_extra_args="$ac_configure_extra_args --silent"
21146 _ACEOF
21147 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21148 if \$ac_cs_recheck; then
21149 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21150 shift
21151 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21152 CONFIG_SHELL='$SHELL'
21153 export CONFIG_SHELL
21154 exec "\$@"
21157 _ACEOF
21158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21159 exec 5>>config.log
21161 echo
21162 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21163 ## Running $as_me. ##
21164 _ASBOX
21165 $as_echo "$ac_log"
21166 } >&5
21168 _ACEOF
21169 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21171 # INIT-COMMANDS
21174 srcdir="$srcdir"
21175 host="$host"
21176 target="$target"
21177 with_multisubdir="$with_multisubdir"
21178 with_multisrctop="$with_multisrctop"
21179 with_target_subdir="$with_target_subdir"
21180 ac_configure_args="${multilib_arg} ${ac_configure_args}"
21181 multi_basedir="$multi_basedir"
21182 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
21183 CC="$CC"
21184 CXX="$CXX"
21185 GFORTRAN="$GFORTRAN"
21186 GDC="$GDC"
21187 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21190 # The HP-UX ksh and POSIX shell print the target directory to stdout
21191 # if CDPATH is set.
21192 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21194 sed_quote_subst='$sed_quote_subst'
21195 double_quote_subst='$double_quote_subst'
21196 delay_variable_subst='$delay_variable_subst'
21197 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
21198 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
21199 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
21200 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
21201 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
21202 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
21203 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
21204 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
21205 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
21206 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
21207 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
21208 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
21209 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
21210 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
21211 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
21212 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
21213 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
21214 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
21215 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
21216 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
21217 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
21218 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
21219 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
21220 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
21221 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
21222 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
21223 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
21224 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
21225 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
21226 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
21227 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
21228 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
21229 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
21230 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
21231 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
21232 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
21233 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
21234 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21235 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21236 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
21237 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
21238 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
21239 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
21240 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
21241 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
21242 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
21243 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
21244 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
21245 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"`'
21246 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
21247 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
21248 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
21249 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
21250 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
21251 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
21252 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
21253 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
21254 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
21255 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
21256 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
21257 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21258 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21259 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21260 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21261 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21262 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21263 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21264 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21265 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21266 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21267 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21268 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21269 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21270 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21271 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21272 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21273 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21274 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21275 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21276 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21277 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
21278 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21279 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21280 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21281 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21282 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21283 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21284 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21285 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21286 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
21287 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21288 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21289 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21290 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21291 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21292 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21293 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21294 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21295 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21296 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21297 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21298 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21299 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21300 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21301 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21302 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21303 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21304 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21305 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21306 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21307 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21308 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21309 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21310 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21311 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21312 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21313 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21314 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21315 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21316 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21317 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21318 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21319 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21320 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21321 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21322 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21323 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21324 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21325 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21326 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21327 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21328 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21329 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21330 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21331 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21332 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21333 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21334 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21335 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21336 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21337 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21338 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21339 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21340 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21341 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21342 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21343 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21344 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21345 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21346 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21347 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21348 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21349 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
21350 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21351 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21352 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21353 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21354 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21355 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21356 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21357 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21358 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
21359 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21360 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21361 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21362 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21363 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21364 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21365 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21366 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21367 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21368 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21369 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21370 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21371 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21373 LTCC='$LTCC'
21374 LTCFLAGS='$LTCFLAGS'
21375 compiler='$compiler_DEFAULT'
21377 # A function that is used when there is no print builtin or printf.
21378 func_fallback_echo ()
21380 eval 'cat <<_LTECHO_EOF
21382 _LTECHO_EOF'
21385 # Quote evaled strings.
21386 for var in SHELL \
21387 ECHO \
21388 SED \
21389 GREP \
21390 EGREP \
21391 FGREP \
21392 LD \
21393 NM \
21394 LN_S \
21395 lt_SP2NL \
21396 lt_NL2SP \
21397 reload_flag \
21398 OBJDUMP \
21399 deplibs_check_method \
21400 file_magic_cmd \
21401 AR \
21402 AR_FLAGS \
21403 STRIP \
21404 RANLIB \
21405 CC \
21406 CFLAGS \
21407 compiler \
21408 lt_cv_sys_global_symbol_pipe \
21409 lt_cv_sys_global_symbol_to_cdecl \
21410 lt_cv_sys_global_symbol_to_c_name_address \
21411 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21412 lt_prog_compiler_no_builtin_flag \
21413 lt_prog_compiler_wl \
21414 lt_prog_compiler_pic \
21415 lt_prog_compiler_static \
21416 lt_cv_prog_compiler_c_o \
21417 need_locks \
21418 DSYMUTIL \
21419 NMEDIT \
21420 LIPO \
21421 OTOOL \
21422 OTOOL64 \
21423 shrext_cmds \
21424 export_dynamic_flag_spec \
21425 whole_archive_flag_spec \
21426 compiler_needs_object \
21427 with_gnu_ld \
21428 allow_undefined_flag \
21429 no_undefined_flag \
21430 hardcode_libdir_flag_spec \
21431 hardcode_libdir_flag_spec_ld \
21432 hardcode_libdir_separator \
21433 fix_srcfile_path \
21434 exclude_expsyms \
21435 include_expsyms \
21436 file_list_spec \
21437 variables_saved_for_relink \
21438 libname_spec \
21439 library_names_spec \
21440 soname_spec \
21441 install_override_mode \
21442 finish_eval \
21443 old_striplib \
21444 striplib \
21445 compiler_lib_search_dirs \
21446 predep_objects \
21447 postdep_objects \
21448 predeps \
21449 postdeps \
21450 compiler_lib_search_path \
21451 LD_CXX \
21452 reload_flag_CXX \
21453 compiler_CXX \
21454 lt_prog_compiler_no_builtin_flag_CXX \
21455 lt_prog_compiler_wl_CXX \
21456 lt_prog_compiler_pic_CXX \
21457 lt_prog_compiler_static_CXX \
21458 lt_cv_prog_compiler_c_o_CXX \
21459 export_dynamic_flag_spec_CXX \
21460 whole_archive_flag_spec_CXX \
21461 compiler_needs_object_CXX \
21462 with_gnu_ld_CXX \
21463 allow_undefined_flag_CXX \
21464 no_undefined_flag_CXX \
21465 hardcode_libdir_flag_spec_CXX \
21466 hardcode_libdir_flag_spec_ld_CXX \
21467 hardcode_libdir_separator_CXX \
21468 fix_srcfile_path_CXX \
21469 exclude_expsyms_CXX \
21470 include_expsyms_CXX \
21471 file_list_spec_CXX \
21472 compiler_lib_search_dirs_CXX \
21473 predep_objects_CXX \
21474 postdep_objects_CXX \
21475 predeps_CXX \
21476 postdeps_CXX \
21477 compiler_lib_search_path_CXX; do
21478 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21479 *[\\\\\\\`\\"\\\$]*)
21480 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21483 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21485 esac
21486 done
21488 # Double-quote double-evaled strings.
21489 for var in reload_cmds \
21490 old_postinstall_cmds \
21491 old_postuninstall_cmds \
21492 old_archive_cmds \
21493 extract_expsyms_cmds \
21494 old_archive_from_new_cmds \
21495 old_archive_from_expsyms_cmds \
21496 archive_cmds \
21497 archive_expsym_cmds \
21498 module_cmds \
21499 module_expsym_cmds \
21500 export_symbols_cmds \
21501 prelink_cmds \
21502 postinstall_cmds \
21503 postuninstall_cmds \
21504 finish_cmds \
21505 sys_lib_search_path_spec \
21506 sys_lib_dlsearch_path_spec \
21507 reload_cmds_CXX \
21508 old_archive_cmds_CXX \
21509 old_archive_from_new_cmds_CXX \
21510 old_archive_from_expsyms_cmds_CXX \
21511 archive_cmds_CXX \
21512 archive_expsym_cmds_CXX \
21513 module_cmds_CXX \
21514 module_expsym_cmds_CXX \
21515 export_symbols_cmds_CXX \
21516 prelink_cmds_CXX; do
21517 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21518 *[\\\\\\\`\\"\\\$]*)
21519 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21522 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21524 esac
21525 done
21527 ac_aux_dir='$ac_aux_dir'
21528 xsi_shell='$xsi_shell'
21529 lt_shell_append='$lt_shell_append'
21531 # See if we are running on zsh, and set the options which allow our
21532 # commands through without removal of \ escapes INIT.
21533 if test -n "\${ZSH_VERSION+set}" ; then
21534 setopt NO_GLOB_SUBST
21538 PACKAGE='$PACKAGE'
21539 VERSION='$VERSION'
21540 TIMESTAMP='$TIMESTAMP'
21541 RM='$RM'
21542 ofile='$ofile'
21549 _ACEOF
21551 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21553 # Handling of arguments.
21554 for ac_config_target in $ac_config_targets
21556 case $ac_config_target in
21557 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21558 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21559 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21560 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21561 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21562 "libm2min/Makefile") CONFIG_FILES="$CONFIG_FILES libm2min/Makefile" ;;
21563 "libm2pim/Makefile") CONFIG_FILES="$CONFIG_FILES libm2pim/Makefile" ;;
21564 "libm2iso/Makefile") CONFIG_FILES="$CONFIG_FILES libm2iso/Makefile" ;;
21565 "libm2cor/Makefile") CONFIG_FILES="$CONFIG_FILES libm2cor/Makefile" ;;
21566 "libm2log/Makefile") CONFIG_FILES="$CONFIG_FILES libm2log/Makefile" ;;
21568 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21569 esac
21570 done
21573 # If the user did not use the arguments to specify the items to instantiate,
21574 # then the envvar interface is used. Set only those that are not.
21575 # We use the long form for the default assignment because of an extremely
21576 # bizarre bug on SunOS 4.1.3.
21577 if $ac_need_defaults; then
21578 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21579 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21580 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21583 # Have a temporary directory for convenience. Make it in the build tree
21584 # simply because there is no reason against having it here, and in addition,
21585 # creating and moving files from /tmp can sometimes cause problems.
21586 # Hook for its removal unless debugging.
21587 # Note that there is a small window in which the directory will not be cleaned:
21588 # after its creation but before its name has been assigned to `$tmp'.
21589 $debug ||
21591 tmp= ac_tmp=
21592 trap 'exit_status=$?
21593 : "${ac_tmp:=$tmp}"
21594 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21596 trap 'as_fn_exit 1' 1 2 13 15
21598 # Create a (secure) tmp directory for tmp files.
21601 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21602 test -d "$tmp"
21603 } ||
21605 tmp=./conf$$-$RANDOM
21606 (umask 077 && mkdir "$tmp")
21607 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21608 ac_tmp=$tmp
21610 # Set up the scripts for CONFIG_FILES section.
21611 # No need to generate them if there are no CONFIG_FILES.
21612 # This happens for instance with `./config.status config.h'.
21613 if test -n "$CONFIG_FILES"; then
21616 ac_cr=`echo X | tr X '\015'`
21617 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21618 # But we know of no other shell where ac_cr would be empty at this
21619 # point, so we can use a bashism as a fallback.
21620 if test "x$ac_cr" = x; then
21621 eval ac_cr=\$\'\\r\'
21623 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21624 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21625 ac_cs_awk_cr='\\r'
21626 else
21627 ac_cs_awk_cr=$ac_cr
21630 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21631 _ACEOF
21635 echo "cat >conf$$subs.awk <<_ACEOF" &&
21636 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21637 echo "_ACEOF"
21638 } >conf$$subs.sh ||
21639 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21640 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21641 ac_delim='%!_!# '
21642 for ac_last_try in false false false false false :; do
21643 . ./conf$$subs.sh ||
21644 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21646 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21647 if test $ac_delim_n = $ac_delim_num; then
21648 break
21649 elif $ac_last_try; then
21650 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21651 else
21652 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21654 done
21655 rm -f conf$$subs.sh
21657 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21658 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21659 _ACEOF
21660 sed -n '
21662 s/^/S["/; s/!.*/"]=/
21665 s/^[^!]*!//
21666 :repl
21667 t repl
21668 s/'"$ac_delim"'$//
21669 t delim
21672 s/\(.\{148\}\)..*/\1/
21673 t more1
21674 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21677 b repl
21678 :more1
21679 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21682 s/.\{148\}//
21683 t nl
21684 :delim
21686 s/\(.\{148\}\)..*/\1/
21687 t more2
21688 s/["\\]/\\&/g; s/^/"/; s/$/"/
21691 :more2
21692 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21695 s/.\{148\}//
21696 t delim
21697 ' <conf$$subs.awk | sed '
21698 /^[^""]/{
21700 s/\n//
21702 ' >>$CONFIG_STATUS || ac_write_fail=1
21703 rm -f conf$$subs.awk
21704 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21705 _ACAWK
21706 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21707 for (key in S) S_is_set[key] = 1
21708 FS = "\a"
21712 line = $ 0
21713 nfields = split(line, field, "@")
21714 substed = 0
21715 len = length(field[1])
21716 for (i = 2; i < nfields; i++) {
21717 key = field[i]
21718 keylen = length(key)
21719 if (S_is_set[key]) {
21720 value = S[key]
21721 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21722 len += length(value) + length(field[++i])
21723 substed = 1
21724 } else
21725 len += 1 + keylen
21728 print line
21731 _ACAWK
21732 _ACEOF
21733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21734 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21735 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21736 else
21738 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21739 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21740 _ACEOF
21742 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21743 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21744 # trailing colons and then remove the whole line if VPATH becomes empty
21745 # (actually we leave an empty line to preserve line numbers).
21746 if test "x$srcdir" = x.; then
21747 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21749 s///
21750 s/^/:/
21751 s/[ ]*$/:/
21752 s/:\$(srcdir):/:/g
21753 s/:\${srcdir}:/:/g
21754 s/:@srcdir@:/:/g
21755 s/^:*//
21756 s/:*$//
21758 s/\(=[ ]*\).*/\1/
21760 s/\n//
21761 s/^[^=]*=[ ]*$//
21765 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21766 fi # test -n "$CONFIG_FILES"
21768 # Set up the scripts for CONFIG_HEADERS section.
21769 # No need to generate them if there are no CONFIG_HEADERS.
21770 # This happens for instance with `./config.status Makefile'.
21771 if test -n "$CONFIG_HEADERS"; then
21772 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21773 BEGIN {
21774 _ACEOF
21776 # Transform confdefs.h into an awk script `defines.awk', embedded as
21777 # here-document in config.status, that substitutes the proper values into
21778 # config.h.in to produce config.h.
21780 # Create a delimiter string that does not exist in confdefs.h, to ease
21781 # handling of long lines.
21782 ac_delim='%!_!# '
21783 for ac_last_try in false false :; do
21784 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21785 if test -z "$ac_tt"; then
21786 break
21787 elif $ac_last_try; then
21788 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21789 else
21790 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21792 done
21794 # For the awk script, D is an array of macro values keyed by name,
21795 # likewise P contains macro parameters if any. Preserve backslash
21796 # newline sequences.
21798 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21799 sed -n '
21800 s/.\{148\}/&'"$ac_delim"'/g
21801 t rset
21802 :rset
21803 s/^[ ]*#[ ]*define[ ][ ]*/ /
21804 t def
21806 :def
21807 s/\\$//
21808 t bsnl
21809 s/["\\]/\\&/g
21810 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21811 D["\1"]=" \3"/p
21812 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21814 :bsnl
21815 s/["\\]/\\&/g
21816 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21817 D["\1"]=" \3\\\\\\n"\\/p
21818 t cont
21819 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21820 t cont
21822 :cont
21824 s/.\{148\}/&'"$ac_delim"'/g
21825 t clear
21826 :clear
21827 s/\\$//
21828 t bsnlc
21829 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21831 :bsnlc
21832 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21833 b cont
21834 ' <confdefs.h | sed '
21835 s/'"$ac_delim"'/"\\\
21836 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21838 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21839 for (key in D) D_is_set[key] = 1
21840 FS = "\a"
21842 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21843 line = \$ 0
21844 split(line, arg, " ")
21845 if (arg[1] == "#") {
21846 defundef = arg[2]
21847 mac1 = arg[3]
21848 } else {
21849 defundef = substr(arg[1], 2)
21850 mac1 = arg[2]
21852 split(mac1, mac2, "(") #)
21853 macro = mac2[1]
21854 prefix = substr(line, 1, index(line, defundef) - 1)
21855 if (D_is_set[macro]) {
21856 # Preserve the white space surrounding the "#".
21857 print prefix "define", macro P[macro] D[macro]
21858 next
21859 } else {
21860 # Replace #undef with comments. This is necessary, for example,
21861 # in the case of _POSIX_SOURCE, which is predefined and required
21862 # on some systems where configure will not decide to define it.
21863 if (defundef == "undef") {
21864 print "/*", prefix defundef, macro, "*/"
21865 next
21869 { print }
21870 _ACAWK
21871 _ACEOF
21872 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21873 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21874 fi # test -n "$CONFIG_HEADERS"
21877 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21878 shift
21879 for ac_tag
21881 case $ac_tag in
21882 :[FHLC]) ac_mode=$ac_tag; continue;;
21883 esac
21884 case $ac_mode$ac_tag in
21885 :[FHL]*:*);;
21886 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21887 :[FH]-) ac_tag=-:-;;
21888 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21889 esac
21890 ac_save_IFS=$IFS
21891 IFS=:
21892 set x $ac_tag
21893 IFS=$ac_save_IFS
21894 shift
21895 ac_file=$1
21896 shift
21898 case $ac_mode in
21899 :L) ac_source=$1;;
21900 :[FH])
21901 ac_file_inputs=
21902 for ac_f
21904 case $ac_f in
21905 -) ac_f="$ac_tmp/stdin";;
21906 *) # Look for the file first in the build tree, then in the source tree
21907 # (if the path is not absolute). The absolute path cannot be DOS-style,
21908 # because $ac_f cannot contain `:'.
21909 test -f "$ac_f" ||
21910 case $ac_f in
21911 [\\/$]*) false;;
21912 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21913 esac ||
21914 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21915 esac
21916 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21917 as_fn_append ac_file_inputs " '$ac_f'"
21918 done
21920 # Let's still pretend it is `configure' which instantiates (i.e., don't
21921 # use $as_me), people would be surprised to read:
21922 # /* config.h. Generated by config.status. */
21923 configure_input='Generated from '`
21924 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21925 `' by configure.'
21926 if test x"$ac_file" != x-; then
21927 configure_input="$ac_file. $configure_input"
21928 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21929 $as_echo "$as_me: creating $ac_file" >&6;}
21931 # Neutralize special characters interpreted by sed in replacement strings.
21932 case $configure_input in #(
21933 *\&* | *\|* | *\\* )
21934 ac_sed_conf_input=`$as_echo "$configure_input" |
21935 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21936 *) ac_sed_conf_input=$configure_input;;
21937 esac
21939 case $ac_tag in
21940 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21941 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21942 esac
21944 esac
21946 ac_dir=`$as_dirname -- "$ac_file" ||
21947 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21948 X"$ac_file" : 'X\(//\)[^/]' \| \
21949 X"$ac_file" : 'X\(//\)$' \| \
21950 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21951 $as_echo X"$ac_file" |
21952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21953 s//\1/
21956 /^X\(\/\/\)[^/].*/{
21957 s//\1/
21960 /^X\(\/\/\)$/{
21961 s//\1/
21964 /^X\(\/\).*/{
21965 s//\1/
21968 s/.*/./; q'`
21969 as_dir="$ac_dir"; as_fn_mkdir_p
21970 ac_builddir=.
21972 case "$ac_dir" in
21973 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21975 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21976 # A ".." for each directory in $ac_dir_suffix.
21977 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21978 case $ac_top_builddir_sub in
21979 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21980 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21981 esac ;;
21982 esac
21983 ac_abs_top_builddir=$ac_pwd
21984 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21985 # for backward compatibility:
21986 ac_top_builddir=$ac_top_build_prefix
21988 case $srcdir in
21989 .) # We are building in place.
21990 ac_srcdir=.
21991 ac_top_srcdir=$ac_top_builddir_sub
21992 ac_abs_top_srcdir=$ac_pwd ;;
21993 [\\/]* | ?:[\\/]* ) # Absolute name.
21994 ac_srcdir=$srcdir$ac_dir_suffix;
21995 ac_top_srcdir=$srcdir
21996 ac_abs_top_srcdir=$srcdir ;;
21997 *) # Relative name.
21998 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21999 ac_top_srcdir=$ac_top_build_prefix$srcdir
22000 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22001 esac
22002 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22005 case $ac_mode in
22008 # CONFIG_FILE
22011 case $INSTALL in
22012 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22013 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22014 esac
22015 ac_MKDIR_P=$MKDIR_P
22016 case $MKDIR_P in
22017 [\\/$]* | ?:[\\/]* ) ;;
22018 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22019 esac
22020 _ACEOF
22022 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22023 # If the template does not know about datarootdir, expand it.
22024 # FIXME: This hack should be removed a few years after 2.60.
22025 ac_datarootdir_hack=; ac_datarootdir_seen=
22026 ac_sed_dataroot='
22027 /datarootdir/ {
22031 /@datadir@/p
22032 /@docdir@/p
22033 /@infodir@/p
22034 /@localedir@/p
22035 /@mandir@/p'
22036 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22037 *datarootdir*) ac_datarootdir_seen=yes;;
22038 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22040 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22041 _ACEOF
22042 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22043 ac_datarootdir_hack='
22044 s&@datadir@&$datadir&g
22045 s&@docdir@&$docdir&g
22046 s&@infodir@&$infodir&g
22047 s&@localedir@&$localedir&g
22048 s&@mandir@&$mandir&g
22049 s&\\\${datarootdir}&$datarootdir&g' ;;
22050 esac
22051 _ACEOF
22053 # Neutralize VPATH when `$srcdir' = `.'.
22054 # Shell code in configure.ac might set extrasub.
22055 # FIXME: do we really want to maintain this feature?
22056 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22057 ac_sed_extra="$ac_vpsub
22058 $extrasub
22059 _ACEOF
22060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22062 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22063 s|@configure_input@|$ac_sed_conf_input|;t t
22064 s&@top_builddir@&$ac_top_builddir_sub&;t t
22065 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22066 s&@srcdir@&$ac_srcdir&;t t
22067 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22068 s&@top_srcdir@&$ac_top_srcdir&;t t
22069 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22070 s&@builddir@&$ac_builddir&;t t
22071 s&@abs_builddir@&$ac_abs_builddir&;t t
22072 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22073 s&@INSTALL@&$ac_INSTALL&;t t
22074 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22075 $ac_datarootdir_hack
22077 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
22078 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22080 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22081 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
22082 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
22083 "$ac_tmp/out"`; test -z "$ac_out"; } &&
22084 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22085 which seems to be undefined. Please make sure it is defined" >&5
22086 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22087 which seems to be undefined. Please make sure it is defined" >&2;}
22089 rm -f "$ac_tmp/stdin"
22090 case $ac_file in
22091 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
22092 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
22093 esac \
22094 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22098 # CONFIG_HEADER
22100 if test x"$ac_file" != x-; then
22102 $as_echo "/* $configure_input */" \
22103 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
22104 } >"$ac_tmp/config.h" \
22105 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22106 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
22107 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
22108 $as_echo "$as_me: $ac_file is unchanged" >&6;}
22109 else
22110 rm -f "$ac_file"
22111 mv "$ac_tmp/config.h" "$ac_file" \
22112 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
22114 else
22115 $as_echo "/* $configure_input */" \
22116 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
22117 || as_fn_error $? "could not create -" "$LINENO" 5
22119 # Compute "$ac_file"'s index in $config_headers.
22120 _am_arg="$ac_file"
22121 _am_stamp_count=1
22122 for _am_header in $config_headers :; do
22123 case $_am_header in
22124 $_am_arg | $_am_arg:* )
22125 break ;;
22127 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
22128 esac
22129 done
22130 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
22131 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22132 X"$_am_arg" : 'X\(//\)[^/]' \| \
22133 X"$_am_arg" : 'X\(//\)$' \| \
22134 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
22135 $as_echo X"$_am_arg" |
22136 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22137 s//\1/
22140 /^X\(\/\/\)[^/].*/{
22141 s//\1/
22144 /^X\(\/\/\)$/{
22145 s//\1/
22148 /^X\(\/\).*/{
22149 s//\1/
22152 s/.*/./; q'`/stamp-h$_am_stamp_count
22155 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22156 $as_echo "$as_me: executing $ac_file commands" >&6;}
22158 esac
22161 case $ac_file$ac_mode in
22162 "default-1":C)
22163 # Only add multilib support code if we just rebuilt the top-level
22164 # Makefile.
22165 case " $CONFIG_FILES " in
22166 *" Makefile "*)
22167 ac_file=Makefile . ${multi_basedir}/config-ml.in
22169 esac ;;
22170 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22171 # Older Autoconf quotes --file arguments for eval, but not when files
22172 # are listed without --file. Let's play safe and only enable the eval
22173 # if we detect the quoting.
22174 case $CONFIG_FILES in
22175 *\'*) eval set x "$CONFIG_FILES" ;;
22176 *) set x $CONFIG_FILES ;;
22177 esac
22178 shift
22179 for mf
22181 # Strip MF so we end up with the name of the file.
22182 mf=`echo "$mf" | sed -e 's/:.*$//'`
22183 # Check whether this is an Automake generated Makefile or not.
22184 # We used to match only the files named 'Makefile.in', but
22185 # some people rename them; so instead we look at the file content.
22186 # Grep'ing the first line is not enough: some people post-process
22187 # each Makefile.in and add a new line on top of each file to say so.
22188 # Grep'ing the whole file is not good either: AIX grep has a line
22189 # limit of 2048, but all sed's we know have understand at least 4000.
22190 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22191 dirpart=`$as_dirname -- "$mf" ||
22192 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22193 X"$mf" : 'X\(//\)[^/]' \| \
22194 X"$mf" : 'X\(//\)$' \| \
22195 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22196 $as_echo X"$mf" |
22197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22198 s//\1/
22201 /^X\(\/\/\)[^/].*/{
22202 s//\1/
22205 /^X\(\/\/\)$/{
22206 s//\1/
22209 /^X\(\/\).*/{
22210 s//\1/
22213 s/.*/./; q'`
22214 else
22215 continue
22217 # Extract the definition of DEPDIR, am__include, and am__quote
22218 # from the Makefile without running 'make'.
22219 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22220 test -z "$DEPDIR" && continue
22221 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22222 test -z "$am__include" && continue
22223 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22224 # Find all dependency output files, they are included files with
22225 # $(DEPDIR) in their names. We invoke sed twice because it is the
22226 # simplest approach to changing $(DEPDIR) to its actual value in the
22227 # expansion.
22228 for file in `sed -n "
22229 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22230 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
22231 # Make sure the directory exists.
22232 test -f "$dirpart/$file" && continue
22233 fdir=`$as_dirname -- "$file" ||
22234 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22235 X"$file" : 'X\(//\)[^/]' \| \
22236 X"$file" : 'X\(//\)$' \| \
22237 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22238 $as_echo X"$file" |
22239 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22240 s//\1/
22243 /^X\(\/\/\)[^/].*/{
22244 s//\1/
22247 /^X\(\/\/\)$/{
22248 s//\1/
22251 /^X\(\/\).*/{
22252 s//\1/
22255 s/.*/./; q'`
22256 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22257 # echo "creating $dirpart/$file"
22258 echo '# dummy' > "$dirpart/$file"
22259 done
22260 done
22263 "libtool":C)
22265 # See if we are running on zsh, and set the options which allow our
22266 # commands through without removal of \ escapes.
22267 if test -n "${ZSH_VERSION+set}" ; then
22268 setopt NO_GLOB_SUBST
22271 cfgfile="${ofile}T"
22272 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22273 $RM "$cfgfile"
22275 cat <<_LT_EOF >> "$cfgfile"
22276 #! $SHELL
22278 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22279 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22280 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22281 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22283 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22284 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
22285 # Written by Gordon Matzigkeit, 1996
22287 # This file is part of GNU Libtool.
22289 # GNU Libtool is free software; you can redistribute it and/or
22290 # modify it under the terms of the GNU General Public License as
22291 # published by the Free Software Foundation; either version 2 of
22292 # the License, or (at your option) any later version.
22294 # As a special exception to the GNU General Public License,
22295 # if you distribute this file as part of a program or library that
22296 # is built using GNU Libtool, you may include this file under the
22297 # same distribution terms that you use for the rest of that program.
22299 # GNU Libtool is distributed in the hope that it will be useful,
22300 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22301 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22302 # GNU General Public License for more details.
22304 # You should have received a copy of the GNU General Public License
22305 # along with GNU Libtool; see the file COPYING. If not, a copy
22306 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22307 # obtained by writing to the Free Software Foundation, Inc.,
22308 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22311 # The names of the tagged configurations supported by this script.
22312 available_tags="CXX "
22314 # ### BEGIN LIBTOOL CONFIG
22316 # Which release of libtool.m4 was used?
22317 macro_version=$macro_version
22318 macro_revision=$macro_revision
22320 # Whether or not to build shared libraries.
22321 build_libtool_libs=$enable_shared
22323 # Whether or not to build static libraries.
22324 build_old_libs=$enable_static
22326 # What type of objects to build.
22327 pic_mode=$pic_mode
22329 # Whether or not to optimize for fast installation.
22330 fast_install=$enable_fast_install
22332 # Shell to use when invoking shell scripts.
22333 SHELL=$lt_SHELL
22335 # An echo program that protects backslashes.
22336 ECHO=$lt_ECHO
22338 # The host system.
22339 host_alias=$host_alias
22340 host=$host
22341 host_os=$host_os
22343 # The build system.
22344 build_alias=$build_alias
22345 build=$build
22346 build_os=$build_os
22348 # A sed program that does not truncate output.
22349 SED=$lt_SED
22351 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22352 Xsed="\$SED -e 1s/^X//"
22354 # A grep program that handles long lines.
22355 GREP=$lt_GREP
22357 # An ERE matcher.
22358 EGREP=$lt_EGREP
22360 # A literal string matcher.
22361 FGREP=$lt_FGREP
22363 # A BSD- or MS-compatible name lister.
22364 NM=$lt_NM
22366 # Whether we need soft or hard links.
22367 LN_S=$lt_LN_S
22369 # What is the maximum length of a command?
22370 max_cmd_len=$max_cmd_len
22372 # Object file suffix (normally "o").
22373 objext=$ac_objext
22375 # Executable file suffix (normally "").
22376 exeext=$exeext
22378 # whether the shell understands "unset".
22379 lt_unset=$lt_unset
22381 # turn spaces into newlines.
22382 SP2NL=$lt_lt_SP2NL
22384 # turn newlines into spaces.
22385 NL2SP=$lt_lt_NL2SP
22387 # An object symbol dumper.
22388 OBJDUMP=$lt_OBJDUMP
22390 # Method to check whether dependent libraries are shared objects.
22391 deplibs_check_method=$lt_deplibs_check_method
22393 # Command to use when deplibs_check_method == "file_magic".
22394 file_magic_cmd=$lt_file_magic_cmd
22396 # The archiver.
22397 AR=$lt_AR
22398 AR_FLAGS=$lt_AR_FLAGS
22400 # A symbol stripping program.
22401 STRIP=$lt_STRIP
22403 # Commands used to install an old-style archive.
22404 RANLIB=$lt_RANLIB
22405 old_postinstall_cmds=$lt_old_postinstall_cmds
22406 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22408 # Whether to use a lock for old archive extraction.
22409 lock_old_archive_extraction=$lock_old_archive_extraction
22411 # A C compiler.
22412 LTCC=$lt_CC
22414 # LTCC compiler flags.
22415 LTCFLAGS=$lt_CFLAGS
22417 # Take the output of nm and produce a listing of raw symbols and C names.
22418 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22420 # Transform the output of nm in a proper C declaration.
22421 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22423 # Transform the output of nm in a C name address pair.
22424 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22426 # Transform the output of nm in a C name address pair when lib prefix is needed.
22427 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22429 # The name of the directory that contains temporary libtool files.
22430 objdir=$objdir
22432 # Used to examine libraries when file_magic_cmd begins with "file".
22433 MAGIC_CMD=$MAGIC_CMD
22435 # Must we lock files when doing compilation?
22436 need_locks=$lt_need_locks
22438 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22439 DSYMUTIL=$lt_DSYMUTIL
22441 # Tool to change global to local symbols on Mac OS X.
22442 NMEDIT=$lt_NMEDIT
22444 # Tool to manipulate fat objects and archives on Mac OS X.
22445 LIPO=$lt_LIPO
22447 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22448 OTOOL=$lt_OTOOL
22450 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22451 OTOOL64=$lt_OTOOL64
22453 # Old archive suffix (normally "a").
22454 libext=$libext
22456 # Shared library suffix (normally ".so").
22457 shrext_cmds=$lt_shrext_cmds
22459 # The commands to extract the exported symbol list from a shared archive.
22460 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22462 # Variables whose values should be saved in libtool wrapper scripts and
22463 # restored at link time.
22464 variables_saved_for_relink=$lt_variables_saved_for_relink
22466 # Do we need the "lib" prefix for modules?
22467 need_lib_prefix=$need_lib_prefix
22469 # Do we need a version for libraries?
22470 need_version=$need_version
22472 # Library versioning type.
22473 version_type=$version_type
22475 # Shared library runtime path variable.
22476 runpath_var=$runpath_var
22478 # Shared library path variable.
22479 shlibpath_var=$shlibpath_var
22481 # Is shlibpath searched before the hard-coded library search path?
22482 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22484 # Format of library name prefix.
22485 libname_spec=$lt_libname_spec
22487 # List of archive names. First name is the real one, the rest are links.
22488 # The last name is the one that the linker finds with -lNAME
22489 library_names_spec=$lt_library_names_spec
22491 # The coded name of the library, if different from the real name.
22492 soname_spec=$lt_soname_spec
22494 # Permission mode override for installation of shared libraries.
22495 install_override_mode=$lt_install_override_mode
22497 # Command to use after installation of a shared archive.
22498 postinstall_cmds=$lt_postinstall_cmds
22500 # Command to use after uninstallation of a shared archive.
22501 postuninstall_cmds=$lt_postuninstall_cmds
22503 # Commands used to finish a libtool library installation in a directory.
22504 finish_cmds=$lt_finish_cmds
22506 # As "finish_cmds", except a single script fragment to be evaled but
22507 # not shown.
22508 finish_eval=$lt_finish_eval
22510 # Whether we should hardcode library paths into libraries.
22511 hardcode_into_libs=$hardcode_into_libs
22513 # Compile-time system search path for libraries.
22514 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22516 # Run-time system search path for libraries.
22517 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22519 # Whether dlopen is supported.
22520 dlopen_support=$enable_dlopen
22522 # Whether dlopen of programs is supported.
22523 dlopen_self=$enable_dlopen_self
22525 # Whether dlopen of statically linked programs is supported.
22526 dlopen_self_static=$enable_dlopen_self_static
22528 # Commands to strip libraries.
22529 old_striplib=$lt_old_striplib
22530 striplib=$lt_striplib
22533 # The linker used to build libraries.
22534 LD=$lt_LD
22536 # How to create reloadable object files.
22537 reload_flag=$lt_reload_flag
22538 reload_cmds=$lt_reload_cmds
22540 # Commands used to build an old-style archive.
22541 old_archive_cmds=$lt_old_archive_cmds
22543 # A language specific compiler.
22544 CC=$lt_compiler
22546 # Is the compiler the GNU compiler?
22547 with_gcc=$GCC
22549 # Compiler flag to turn off builtin functions.
22550 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22552 # How to pass a linker flag through the compiler.
22553 wl=$lt_lt_prog_compiler_wl
22555 # Additional compiler flags for building library objects.
22556 pic_flag=$lt_lt_prog_compiler_pic
22558 # Compiler flag to prevent dynamic linking.
22559 link_static_flag=$lt_lt_prog_compiler_static
22561 # Does compiler simultaneously support -c and -o options?
22562 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22564 # Whether or not to add -lc for building shared libraries.
22565 build_libtool_need_lc=$archive_cmds_need_lc
22567 # Whether or not to disallow shared libs when runtime libs are static.
22568 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22570 # Compiler flag to allow reflexive dlopens.
22571 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22573 # Compiler flag to generate shared objects directly from archives.
22574 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22576 # Whether the compiler copes with passing no objects directly.
22577 compiler_needs_object=$lt_compiler_needs_object
22579 # Create an old-style archive from a shared archive.
22580 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22582 # Create a temporary old-style archive to link instead of a shared archive.
22583 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22585 # Commands used to build a shared archive.
22586 archive_cmds=$lt_archive_cmds
22587 archive_expsym_cmds=$lt_archive_expsym_cmds
22589 # Commands used to build a loadable module if different from building
22590 # a shared archive.
22591 module_cmds=$lt_module_cmds
22592 module_expsym_cmds=$lt_module_expsym_cmds
22594 # Whether we are building with GNU ld or not.
22595 with_gnu_ld=$lt_with_gnu_ld
22597 # Flag that allows shared libraries with undefined symbols to be built.
22598 allow_undefined_flag=$lt_allow_undefined_flag
22600 # Flag that enforces no undefined symbols.
22601 no_undefined_flag=$lt_no_undefined_flag
22603 # Flag to hardcode \$libdir into a binary during linking.
22604 # This must work even if \$libdir does not exist
22605 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22607 # If ld is used when linking, flag to hardcode \$libdir into a binary
22608 # during linking. This must work even if \$libdir does not exist.
22609 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22611 # Whether we need a single "-rpath" flag with a separated argument.
22612 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22614 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22615 # DIR into the resulting binary.
22616 hardcode_direct=$hardcode_direct
22618 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22619 # DIR into the resulting binary and the resulting library dependency is
22620 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22621 # library is relocated.
22622 hardcode_direct_absolute=$hardcode_direct_absolute
22624 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22625 # into the resulting binary.
22626 hardcode_minus_L=$hardcode_minus_L
22628 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22629 # into the resulting binary.
22630 hardcode_shlibpath_var=$hardcode_shlibpath_var
22632 # Set to "yes" if building a shared library automatically hardcodes DIR
22633 # into the library and all subsequent libraries and executables linked
22634 # against it.
22635 hardcode_automatic=$hardcode_automatic
22637 # Set to yes if linker adds runtime paths of dependent libraries
22638 # to runtime path list.
22639 inherit_rpath=$inherit_rpath
22641 # Whether libtool must link a program against all its dependency libraries.
22642 link_all_deplibs=$link_all_deplibs
22644 # Fix the shell variable \$srcfile for the compiler.
22645 fix_srcfile_path=$lt_fix_srcfile_path
22647 # Set to "yes" if exported symbols are required.
22648 always_export_symbols=$always_export_symbols
22650 # The commands to list exported symbols.
22651 export_symbols_cmds=$lt_export_symbols_cmds
22653 # Symbols that should not be listed in the preloaded symbols.
22654 exclude_expsyms=$lt_exclude_expsyms
22656 # Symbols that must always be exported.
22657 include_expsyms=$lt_include_expsyms
22659 # Commands necessary for linking programs (against libraries) with templates.
22660 prelink_cmds=$lt_prelink_cmds
22662 # Specify filename containing input files.
22663 file_list_spec=$lt_file_list_spec
22665 # How to hardcode a shared library path into an executable.
22666 hardcode_action=$hardcode_action
22668 # The directories searched by this compiler when creating a shared library.
22669 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22671 # Dependencies to place before and after the objects being linked to
22672 # create a shared library.
22673 predep_objects=$lt_predep_objects
22674 postdep_objects=$lt_postdep_objects
22675 predeps=$lt_predeps
22676 postdeps=$lt_postdeps
22678 # The library search path used internally by the compiler when linking
22679 # a shared library.
22680 compiler_lib_search_path=$lt_compiler_lib_search_path
22682 # ### END LIBTOOL CONFIG
22684 _LT_EOF
22686 case $host_os in
22687 aix3*)
22688 cat <<\_LT_EOF >> "$cfgfile"
22689 # AIX sometimes has problems with the GCC collect2 program. For some
22690 # reason, if we set the COLLECT_NAMES environment variable, the problems
22691 # vanish in a puff of smoke.
22692 if test "X${COLLECT_NAMES+set}" != Xset; then
22693 COLLECT_NAMES=
22694 export COLLECT_NAMES
22696 _LT_EOF
22698 esac
22701 ltmain="$ac_aux_dir/ltmain.sh"
22704 # We use sed instead of cat because bash on DJGPP gets confused if
22705 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22706 # text mode, it properly converts lines to CR/LF. This bash problem
22707 # is reportedly fixed, but why not run on old versions too?
22708 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22709 || (rm -f "$cfgfile"; exit 1)
22711 case $xsi_shell in
22712 yes)
22713 cat << \_LT_EOF >> "$cfgfile"
22715 # func_dirname file append nondir_replacement
22716 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22717 # otherwise set result to NONDIR_REPLACEMENT.
22718 func_dirname ()
22720 case ${1} in
22721 */*) func_dirname_result="${1%/*}${2}" ;;
22722 * ) func_dirname_result="${3}" ;;
22723 esac
22726 # func_basename file
22727 func_basename ()
22729 func_basename_result="${1##*/}"
22732 # func_dirname_and_basename file append nondir_replacement
22733 # perform func_basename and func_dirname in a single function
22734 # call:
22735 # dirname: Compute the dirname of FILE. If nonempty,
22736 # add APPEND to the result, otherwise set result
22737 # to NONDIR_REPLACEMENT.
22738 # value returned in "$func_dirname_result"
22739 # basename: Compute filename of FILE.
22740 # value retuned in "$func_basename_result"
22741 # Implementation must be kept synchronized with func_dirname
22742 # and func_basename. For efficiency, we do not delegate to
22743 # those functions but instead duplicate the functionality here.
22744 func_dirname_and_basename ()
22746 case ${1} in
22747 */*) func_dirname_result="${1%/*}${2}" ;;
22748 * ) func_dirname_result="${3}" ;;
22749 esac
22750 func_basename_result="${1##*/}"
22753 # func_stripname prefix suffix name
22754 # strip PREFIX and SUFFIX off of NAME.
22755 # PREFIX and SUFFIX must not contain globbing or regex special
22756 # characters, hashes, percent signs, but SUFFIX may contain a leading
22757 # dot (in which case that matches only a dot).
22758 func_stripname ()
22760 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22761 # positional parameters, so assign one to ordinary parameter first.
22762 func_stripname_result=${3}
22763 func_stripname_result=${func_stripname_result#"${1}"}
22764 func_stripname_result=${func_stripname_result%"${2}"}
22767 # func_opt_split
22768 func_opt_split ()
22770 func_opt_split_opt=${1%%=*}
22771 func_opt_split_arg=${1#*=}
22774 # func_lo2o object
22775 func_lo2o ()
22777 case ${1} in
22778 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22779 *) func_lo2o_result=${1} ;;
22780 esac
22783 # func_xform libobj-or-source
22784 func_xform ()
22786 func_xform_result=${1%.*}.lo
22789 # func_arith arithmetic-term...
22790 func_arith ()
22792 func_arith_result=$(( $* ))
22795 # func_len string
22796 # STRING may not start with a hyphen.
22797 func_len ()
22799 func_len_result=${#1}
22802 _LT_EOF
22804 *) # Bourne compatible functions.
22805 cat << \_LT_EOF >> "$cfgfile"
22807 # func_dirname file append nondir_replacement
22808 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22809 # otherwise set result to NONDIR_REPLACEMENT.
22810 func_dirname ()
22812 # Extract subdirectory from the argument.
22813 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
22814 if test "X$func_dirname_result" = "X${1}"; then
22815 func_dirname_result="${3}"
22816 else
22817 func_dirname_result="$func_dirname_result${2}"
22821 # func_basename file
22822 func_basename ()
22824 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
22828 # func_stripname prefix suffix name
22829 # strip PREFIX and SUFFIX off of NAME.
22830 # PREFIX and SUFFIX must not contain globbing or regex special
22831 # characters, hashes, percent signs, but SUFFIX may contain a leading
22832 # dot (in which case that matches only a dot).
22833 # func_strip_suffix prefix name
22834 func_stripname ()
22836 case ${2} in
22837 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
22838 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
22839 esac
22842 # sed scripts:
22843 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22844 my_sed_long_arg='1s/^-[^=]*=//'
22846 # func_opt_split
22847 func_opt_split ()
22849 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
22850 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
22853 # func_lo2o object
22854 func_lo2o ()
22856 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
22859 # func_xform libobj-or-source
22860 func_xform ()
22862 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
22865 # func_arith arithmetic-term...
22866 func_arith ()
22868 func_arith_result=`expr "$@"`
22871 # func_len string
22872 # STRING may not start with a hyphen.
22873 func_len ()
22875 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22878 _LT_EOF
22879 esac
22881 case $lt_shell_append in
22882 yes)
22883 cat << \_LT_EOF >> "$cfgfile"
22885 # func_append var value
22886 # Append VALUE to the end of shell variable VAR.
22887 func_append ()
22889 eval "$1+=\$2"
22891 _LT_EOF
22894 cat << \_LT_EOF >> "$cfgfile"
22896 # func_append var value
22897 # Append VALUE to the end of shell variable VAR.
22898 func_append ()
22900 eval "$1=\$$1\$2"
22903 _LT_EOF
22905 esac
22908 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22909 || (rm -f "$cfgfile"; exit 1)
22911 mv -f "$cfgfile" "$ofile" ||
22912 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22913 chmod +x "$ofile"
22916 cat <<_LT_EOF >> "$ofile"
22918 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22920 # The linker used to build libraries.
22921 LD=$lt_LD_CXX
22923 # How to create reloadable object files.
22924 reload_flag=$lt_reload_flag_CXX
22925 reload_cmds=$lt_reload_cmds_CXX
22927 # Commands used to build an old-style archive.
22928 old_archive_cmds=$lt_old_archive_cmds_CXX
22930 # A language specific compiler.
22931 CC=$lt_compiler_CXX
22933 # Is the compiler the GNU compiler?
22934 with_gcc=$GCC_CXX
22936 # Compiler flag to turn off builtin functions.
22937 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22939 # How to pass a linker flag through the compiler.
22940 wl=$lt_lt_prog_compiler_wl_CXX
22942 # Additional compiler flags for building library objects.
22943 pic_flag=$lt_lt_prog_compiler_pic_CXX
22945 # Compiler flag to prevent dynamic linking.
22946 link_static_flag=$lt_lt_prog_compiler_static_CXX
22948 # Does compiler simultaneously support -c and -o options?
22949 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22951 # Whether or not to add -lc for building shared libraries.
22952 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22954 # Whether or not to disallow shared libs when runtime libs are static.
22955 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22957 # Compiler flag to allow reflexive dlopens.
22958 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22960 # Compiler flag to generate shared objects directly from archives.
22961 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22963 # Whether the compiler copes with passing no objects directly.
22964 compiler_needs_object=$lt_compiler_needs_object_CXX
22966 # Create an old-style archive from a shared archive.
22967 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22969 # Create a temporary old-style archive to link instead of a shared archive.
22970 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22972 # Commands used to build a shared archive.
22973 archive_cmds=$lt_archive_cmds_CXX
22974 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22976 # Commands used to build a loadable module if different from building
22977 # a shared archive.
22978 module_cmds=$lt_module_cmds_CXX
22979 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22981 # Whether we are building with GNU ld or not.
22982 with_gnu_ld=$lt_with_gnu_ld_CXX
22984 # Flag that allows shared libraries with undefined symbols to be built.
22985 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22987 # Flag that enforces no undefined symbols.
22988 no_undefined_flag=$lt_no_undefined_flag_CXX
22990 # Flag to hardcode \$libdir into a binary during linking.
22991 # This must work even if \$libdir does not exist
22992 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22994 # If ld is used when linking, flag to hardcode \$libdir into a binary
22995 # during linking. This must work even if \$libdir does not exist.
22996 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22998 # Whether we need a single "-rpath" flag with a separated argument.
22999 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23001 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23002 # DIR into the resulting binary.
23003 hardcode_direct=$hardcode_direct_CXX
23005 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23006 # DIR into the resulting binary and the resulting library dependency is
23007 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23008 # library is relocated.
23009 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23011 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23012 # into the resulting binary.
23013 hardcode_minus_L=$hardcode_minus_L_CXX
23015 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23016 # into the resulting binary.
23017 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23019 # Set to "yes" if building a shared library automatically hardcodes DIR
23020 # into the library and all subsequent libraries and executables linked
23021 # against it.
23022 hardcode_automatic=$hardcode_automatic_CXX
23024 # Set to yes if linker adds runtime paths of dependent libraries
23025 # to runtime path list.
23026 inherit_rpath=$inherit_rpath_CXX
23028 # Whether libtool must link a program against all its dependency libraries.
23029 link_all_deplibs=$link_all_deplibs_CXX
23031 # Fix the shell variable \$srcfile for the compiler.
23032 fix_srcfile_path=$lt_fix_srcfile_path_CXX
23034 # Set to "yes" if exported symbols are required.
23035 always_export_symbols=$always_export_symbols_CXX
23037 # The commands to list exported symbols.
23038 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23040 # Symbols that should not be listed in the preloaded symbols.
23041 exclude_expsyms=$lt_exclude_expsyms_CXX
23043 # Symbols that must always be exported.
23044 include_expsyms=$lt_include_expsyms_CXX
23046 # Commands necessary for linking programs (against libraries) with templates.
23047 prelink_cmds=$lt_prelink_cmds_CXX
23049 # Specify filename containing input files.
23050 file_list_spec=$lt_file_list_spec_CXX
23052 # How to hardcode a shared library path into an executable.
23053 hardcode_action=$hardcode_action_CXX
23055 # The directories searched by this compiler when creating a shared library.
23056 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23058 # Dependencies to place before and after the objects being linked to
23059 # create a shared library.
23060 predep_objects=$lt_predep_objects_CXX
23061 postdep_objects=$lt_postdep_objects_CXX
23062 predeps=$lt_predeps_CXX
23063 postdeps=$lt_postdeps_CXX
23065 # The library search path used internally by the compiler when linking
23066 # a shared library.
23067 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23069 # ### END LIBTOOL TAG CONFIG: CXX
23070 _LT_EOF
23073 "libm2min/Makefile":F) cat > vpsed$$ << \_EOF
23074 s!`test -f '$<' || echo '$(srcdir)/'`!!
23075 _EOF
23076 sed -f vpsed$$ $ac_file > tmp$$
23077 mv tmp$$ $ac_file
23078 rm vpsed$$
23079 echo 'MULTISUBDIR =' >> $ac_file
23080 ml_norecursion=yes
23081 . ${multi_basedir}/config-ml.in
23082 { ml_norecursion=; unset ml_norecursion;}
23084 "libm2pim/Makefile":F) cat > vpsed$$ << \_EOF
23085 s!`test -f '$<' || echo '$(srcdir)/'`!!
23086 _EOF
23087 sed -f vpsed$$ $ac_file > tmp$$
23088 mv tmp$$ $ac_file
23089 rm vpsed$$
23090 echo 'MULTISUBDIR =' >> $ac_file
23091 ml_norecursion=yes
23092 . ${multi_basedir}/config-ml.in
23093 { ml_norecursion=; unset ml_norecursion;}
23095 "libm2iso/Makefile":F) cat > vpsed$$ << \_EOF
23096 s!`test -f '$<' || echo '$(srcdir)/'`!!
23097 _EOF
23098 sed -f vpsed$$ $ac_file > tmp$$
23099 mv tmp$$ $ac_file
23100 rm vpsed$$
23101 echo 'MULTISUBDIR =' >> $ac_file
23102 ml_norecursion=yes
23103 . ${multi_basedir}/config-ml.in
23104 { ml_norecursion=; unset ml_norecursion;}
23106 "libm2cor/Makefile":F) cat > vpsed$$ << \_EOF
23107 s!`test -f '$<' || echo '$(srcdir)/'`!!
23108 _EOF
23109 sed -f vpsed$$ $ac_file > tmp$$
23110 mv tmp$$ $ac_file
23111 rm vpsed$$
23112 echo 'MULTISUBDIR =' >> $ac_file
23113 ml_norecursion=yes
23114 . ${multi_basedir}/config-ml.in
23115 { ml_norecursion=; unset ml_norecursion;}
23117 "libm2log/Makefile":F) cat > vpsed$$ << \_EOF
23118 s!`test -f '$<' || echo '$(srcdir)/'`!!
23119 _EOF
23120 sed -f vpsed$$ $ac_file > tmp$$
23121 mv tmp$$ $ac_file
23122 rm vpsed$$
23123 echo 'MULTISUBDIR =' >> $ac_file
23124 ml_norecursion=yes
23125 . ${multi_basedir}/config-ml.in
23126 { ml_norecursion=; unset ml_norecursion;}
23129 esac
23130 done # for ac_tag
23133 as_fn_exit 0
23134 _ACEOF
23135 ac_clean_files=$ac_clean_files_save
23137 test $ac_write_fail = 0 ||
23138 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
23141 # configure is writing to config.log, and then calls config.status.
23142 # config.status does its own redirection, appending to config.log.
23143 # Unfortunately, on DOS this fails, as config.log is still kept open
23144 # by configure, so config.status won't be able to write to it; its
23145 # output is simply discarded. So we exec the FD to /dev/null,
23146 # effectively closing config.log, so it can be properly (re)opened and
23147 # appended to by config.status. When coming back to configure, we
23148 # need to make the FD available again.
23149 if test "$no_create" != yes; then
23150 ac_cs_success=:
23151 ac_config_status_args=
23152 test "$silent" = yes &&
23153 ac_config_status_args="$ac_config_status_args --quiet"
23154 exec 5>/dev/null
23155 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23156 exec 5>>config.log
23157 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23158 # would make configure fail if this is the last instruction.
23159 $ac_cs_success || as_fn_exit 1
23161 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23163 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}