rs6000: build constant via lis;rotldi
[official-gcc.git] / libgm2 / configure
blob072d584544ecb14673471c34b04c7bc7ed021cc0
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 CXXCPP
653 OTOOL64
654 OTOOL
655 LIPO
656 NMEDIT
657 DSYMUTIL
658 OBJDUMP
659 LN_S
660 ac_ct_DUMPBIN
661 DUMPBIN
663 FGREP
665 LIBTOOL
666 RANLIB
669 am__fastdepCCAS_FALSE
670 am__fastdepCCAS_TRUE
671 CCASDEPMODE
672 CCASFLAGS
673 CCAS
674 am__fastdepCXX_FALSE
675 am__fastdepCXX_TRUE
676 CXXDEPMODE
677 ac_ct_CXX
678 CXXFLAGS
680 MAINTAINER_MODE_FALSE
681 MAINTAINER_MODE_TRUE
682 toolexeclibdir
683 toolexecdir
684 MAINT
685 slibdir
686 target_subdir
687 host_subdir
688 build_subdir
689 build_libsubdir
690 target_noncanonical
691 host_noncanonical
692 AM_BACKSLASH
693 AM_DEFAULT_VERBOSITY
694 AM_DEFAULT_V
695 AM_V
696 am__fastdepCC_FALSE
697 am__fastdepCC_TRUE
698 CCDEPMODE
699 am__nodep
700 AMDEPBACKSLASH
701 AMDEP_FALSE
702 AMDEP_TRUE
703 am__quote
704 am__include
705 DEPDIR
706 am__untar
707 am__tar
708 AMTAR
709 am__leading_dot
710 SET_MAKE
712 mkdir_p
713 MKDIR_P
714 INSTALL_STRIP_PROGRAM
715 STRIP
716 install_sh
717 MAKEINFO
718 AUTOHEADER
719 AUTOMAKE
720 AUTOCONF
721 ACLOCAL
722 VERSION
723 PACKAGE
724 CYGPATH_W
725 am__isrc
726 INSTALL_DATA
727 INSTALL_SCRIPT
728 INSTALL_PROGRAM
729 target_os
730 target_vendor
731 target_cpu
732 target
733 host_os
734 host_vendor
735 host_cpu
736 host
737 build_os
738 build_vendor
739 build_cpu
740 build
741 EGREP
742 GREP
744 OBJEXT
745 EXEEXT
746 ac_ct_CC
747 CPPFLAGS
748 LDFLAGS
749 CFLAGS
751 multi_basedir
752 libtool_VERSION
753 target_alias
754 host_alias
755 build_alias
756 LIBS
757 ECHO_T
758 ECHO_N
759 ECHO_C
760 DEFS
761 mandir
762 localedir
763 libdir
764 psdir
765 pdfdir
766 dvidir
767 htmldir
768 infodir
769 docdir
770 oldincludedir
771 includedir
772 localstatedir
773 sharedstatedir
774 sysconfdir
775 datadir
776 datarootdir
777 libexecdir
778 sbindir
779 bindir
780 program_transform_name
781 prefix
782 exec_prefix
783 PACKAGE_URL
784 PACKAGE_BUGREPORT
785 PACKAGE_STRING
786 PACKAGE_VERSION
787 PACKAGE_TARNAME
788 PACKAGE_NAME
789 PATH_SEPARATOR
790 SHELL'
791 ac_subst_files=''
792 ac_user_opts='
793 enable_option_checking
794 enable_multilib
795 enable_dependency_tracking
796 enable_silent_rules
797 with_cross_host
798 with_build_libsubdir
799 enable_version_specific_runtime_libs
800 with_slibdir
801 enable_maintainer_mode
802 enable_shared
803 enable_static
804 with_pic
805 enable_fast_install
806 with_gnu_ld
807 enable_libtool_lock
808 with_gcc_major_version_only
810 ac_precious_vars='build_alias
811 host_alias
812 target_alias
814 CFLAGS
815 LDFLAGS
816 LIBS
817 CPPFLAGS
819 CXXCPP'
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 ac_unrecognized_opts=
826 ac_unrecognized_sep=
827 # The variables have the same names as the options, with
828 # dashes changed to underlines.
829 cache_file=/dev/null
830 exec_prefix=NONE
831 no_create=
832 no_recursion=
833 prefix=NONE
834 program_prefix=NONE
835 program_suffix=NONE
836 program_transform_name=s,x,x,
837 silent=
838 site=
839 srcdir=
840 verbose=
841 x_includes=NONE
842 x_libraries=NONE
844 # Installation directory options.
845 # These are left unexpanded so users can "make install exec_prefix=/foo"
846 # and all the variables that are supposed to be based on exec_prefix
847 # by default will actually change.
848 # Use braces instead of parens because sh, perl, etc. also accept them.
849 # (The list follows the same order as the GNU Coding Standards.)
850 bindir='${exec_prefix}/bin'
851 sbindir='${exec_prefix}/sbin'
852 libexecdir='${exec_prefix}/libexec'
853 datarootdir='${prefix}/share'
854 datadir='${datarootdir}'
855 sysconfdir='${prefix}/etc'
856 sharedstatedir='${prefix}/com'
857 localstatedir='${prefix}/var'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
862 htmldir='${docdir}'
863 dvidir='${docdir}'
864 pdfdir='${docdir}'
865 psdir='${docdir}'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
870 ac_prev=
871 ac_dashdash=
872 for ac_option
874 # If the previous option needs an argument, assign it.
875 if test -n "$ac_prev"; then
876 eval $ac_prev=\$ac_option
877 ac_prev=
878 continue
881 case $ac_option in
882 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883 *=) ac_optarg= ;;
884 *) ac_optarg=yes ;;
885 esac
887 # Accept the important Cygnus configure options, so we can diagnose typos.
889 case $ac_dashdash$ac_option in
891 ac_dashdash=yes ;;
893 -bindir | --bindir | --bindi | --bind | --bin | --bi)
894 ac_prev=bindir ;;
895 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
896 bindir=$ac_optarg ;;
898 -build | --build | --buil | --bui | --bu)
899 ac_prev=build_alias ;;
900 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
901 build_alias=$ac_optarg ;;
903 -cache-file | --cache-file | --cache-fil | --cache-fi \
904 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
905 ac_prev=cache_file ;;
906 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
907 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
908 cache_file=$ac_optarg ;;
910 --config-cache | -C)
911 cache_file=config.cache ;;
913 -datadir | --datadir | --datadi | --datad)
914 ac_prev=datadir ;;
915 -datadir=* | --datadir=* | --datadi=* | --datad=*)
916 datadir=$ac_optarg ;;
918 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
919 | --dataroo | --dataro | --datar)
920 ac_prev=datarootdir ;;
921 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
922 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
923 datarootdir=$ac_optarg ;;
925 -disable-* | --disable-*)
926 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
927 # Reject names that are not valid shell variable names.
928 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
929 as_fn_error $? "invalid feature name: $ac_useropt"
930 ac_useropt_orig=$ac_useropt
931 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
932 case $ac_user_opts in
934 "enable_$ac_useropt"
935 "*) ;;
936 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
937 ac_unrecognized_sep=', ';;
938 esac
939 eval enable_$ac_useropt=no ;;
941 -docdir | --docdir | --docdi | --doc | --do)
942 ac_prev=docdir ;;
943 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
944 docdir=$ac_optarg ;;
946 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
947 ac_prev=dvidir ;;
948 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
949 dvidir=$ac_optarg ;;
951 -enable-* | --enable-*)
952 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
953 # Reject names that are not valid shell variable names.
954 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
955 as_fn_error $? "invalid feature name: $ac_useropt"
956 ac_useropt_orig=$ac_useropt
957 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
958 case $ac_user_opts in
960 "enable_$ac_useropt"
961 "*) ;;
962 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
963 ac_unrecognized_sep=', ';;
964 esac
965 eval enable_$ac_useropt=\$ac_optarg ;;
967 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
968 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
969 | --exec | --exe | --ex)
970 ac_prev=exec_prefix ;;
971 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
972 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
973 | --exec=* | --exe=* | --ex=*)
974 exec_prefix=$ac_optarg ;;
976 -gas | --gas | --ga | --g)
977 # Obsolete; use --with-gas.
978 with_gas=yes ;;
980 -help | --help | --hel | --he | -h)
981 ac_init_help=long ;;
982 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
983 ac_init_help=recursive ;;
984 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
985 ac_init_help=short ;;
987 -host | --host | --hos | --ho)
988 ac_prev=host_alias ;;
989 -host=* | --host=* | --hos=* | --ho=*)
990 host_alias=$ac_optarg ;;
992 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
993 ac_prev=htmldir ;;
994 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
995 | --ht=*)
996 htmldir=$ac_optarg ;;
998 -includedir | --includedir | --includedi | --included | --include \
999 | --includ | --inclu | --incl | --inc)
1000 ac_prev=includedir ;;
1001 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1002 | --includ=* | --inclu=* | --incl=* | --inc=*)
1003 includedir=$ac_optarg ;;
1005 -infodir | --infodir | --infodi | --infod | --info | --inf)
1006 ac_prev=infodir ;;
1007 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1008 infodir=$ac_optarg ;;
1010 -libdir | --libdir | --libdi | --libd)
1011 ac_prev=libdir ;;
1012 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1013 libdir=$ac_optarg ;;
1015 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1016 | --libexe | --libex | --libe)
1017 ac_prev=libexecdir ;;
1018 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1019 | --libexe=* | --libex=* | --libe=*)
1020 libexecdir=$ac_optarg ;;
1022 -localedir | --localedir | --localedi | --localed | --locale)
1023 ac_prev=localedir ;;
1024 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1025 localedir=$ac_optarg ;;
1027 -localstatedir | --localstatedir | --localstatedi | --localstated \
1028 | --localstate | --localstat | --localsta | --localst | --locals)
1029 ac_prev=localstatedir ;;
1030 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1031 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1032 localstatedir=$ac_optarg ;;
1034 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1035 ac_prev=mandir ;;
1036 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1037 mandir=$ac_optarg ;;
1039 -nfp | --nfp | --nf)
1040 # Obsolete; use --without-fp.
1041 with_fp=no ;;
1043 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1044 | --no-cr | --no-c | -n)
1045 no_create=yes ;;
1047 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1048 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1049 no_recursion=yes ;;
1051 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1052 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1053 | --oldin | --oldi | --old | --ol | --o)
1054 ac_prev=oldincludedir ;;
1055 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1056 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1057 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1058 oldincludedir=$ac_optarg ;;
1060 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1061 ac_prev=prefix ;;
1062 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1063 prefix=$ac_optarg ;;
1065 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1066 | --program-pre | --program-pr | --program-p)
1067 ac_prev=program_prefix ;;
1068 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1069 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1070 program_prefix=$ac_optarg ;;
1072 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1073 | --program-suf | --program-su | --program-s)
1074 ac_prev=program_suffix ;;
1075 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1076 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1077 program_suffix=$ac_optarg ;;
1079 -program-transform-name | --program-transform-name \
1080 | --program-transform-nam | --program-transform-na \
1081 | --program-transform-n | --program-transform- \
1082 | --program-transform | --program-transfor \
1083 | --program-transfo | --program-transf \
1084 | --program-trans | --program-tran \
1085 | --progr-tra | --program-tr | --program-t)
1086 ac_prev=program_transform_name ;;
1087 -program-transform-name=* | --program-transform-name=* \
1088 | --program-transform-nam=* | --program-transform-na=* \
1089 | --program-transform-n=* | --program-transform-=* \
1090 | --program-transform=* | --program-transfor=* \
1091 | --program-transfo=* | --program-transf=* \
1092 | --program-trans=* | --program-tran=* \
1093 | --progr-tra=* | --program-tr=* | --program-t=*)
1094 program_transform_name=$ac_optarg ;;
1096 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1097 ac_prev=pdfdir ;;
1098 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1099 pdfdir=$ac_optarg ;;
1101 -psdir | --psdir | --psdi | --psd | --ps)
1102 ac_prev=psdir ;;
1103 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1104 psdir=$ac_optarg ;;
1106 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1107 | -silent | --silent | --silen | --sile | --sil)
1108 silent=yes ;;
1110 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1111 ac_prev=sbindir ;;
1112 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1113 | --sbi=* | --sb=*)
1114 sbindir=$ac_optarg ;;
1116 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1117 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1118 | --sharedst | --shareds | --shared | --share | --shar \
1119 | --sha | --sh)
1120 ac_prev=sharedstatedir ;;
1121 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1122 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1123 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1124 | --sha=* | --sh=*)
1125 sharedstatedir=$ac_optarg ;;
1127 -site | --site | --sit)
1128 ac_prev=site ;;
1129 -site=* | --site=* | --sit=*)
1130 site=$ac_optarg ;;
1132 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1133 ac_prev=srcdir ;;
1134 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1135 srcdir=$ac_optarg ;;
1137 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1138 | --syscon | --sysco | --sysc | --sys | --sy)
1139 ac_prev=sysconfdir ;;
1140 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1141 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1142 sysconfdir=$ac_optarg ;;
1144 -target | --target | --targe | --targ | --tar | --ta | --t)
1145 ac_prev=target_alias ;;
1146 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1147 target_alias=$ac_optarg ;;
1149 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1150 verbose=yes ;;
1152 -version | --version | --versio | --versi | --vers | -V)
1153 ac_init_version=: ;;
1155 -with-* | --with-*)
1156 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1157 # Reject names that are not valid shell variable names.
1158 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1159 as_fn_error $? "invalid package name: $ac_useropt"
1160 ac_useropt_orig=$ac_useropt
1161 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1162 case $ac_user_opts in
1164 "with_$ac_useropt"
1165 "*) ;;
1166 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1167 ac_unrecognized_sep=', ';;
1168 esac
1169 eval with_$ac_useropt=\$ac_optarg ;;
1171 -without-* | --without-*)
1172 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1173 # Reject names that are not valid shell variable names.
1174 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1175 as_fn_error $? "invalid package name: $ac_useropt"
1176 ac_useropt_orig=$ac_useropt
1177 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1178 case $ac_user_opts in
1180 "with_$ac_useropt"
1181 "*) ;;
1182 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1183 ac_unrecognized_sep=', ';;
1184 esac
1185 eval with_$ac_useropt=no ;;
1187 --x)
1188 # Obsolete; use --with-x.
1189 with_x=yes ;;
1191 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1192 | --x-incl | --x-inc | --x-in | --x-i)
1193 ac_prev=x_includes ;;
1194 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1195 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1196 x_includes=$ac_optarg ;;
1198 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1199 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1200 ac_prev=x_libraries ;;
1201 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1202 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1203 x_libraries=$ac_optarg ;;
1205 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1206 Try \`$0 --help' for more information"
1209 *=*)
1210 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1211 # Reject names that are not valid shell variable names.
1212 case $ac_envvar in #(
1213 '' | [0-9]* | *[!_$as_cr_alnum]* )
1214 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1215 esac
1216 eval $ac_envvar=\$ac_optarg
1217 export $ac_envvar ;;
1220 # FIXME: should be removed in autoconf 3.0.
1221 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1222 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1223 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1224 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1227 esac
1228 done
1230 if test -n "$ac_prev"; then
1231 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1232 as_fn_error $? "missing argument to $ac_option"
1235 if test -n "$ac_unrecognized_opts"; then
1236 case $enable_option_checking in
1237 no) ;;
1238 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1239 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1240 esac
1243 # Check all directory arguments for consistency.
1244 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1245 datadir sysconfdir sharedstatedir localstatedir includedir \
1246 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1247 libdir localedir mandir
1249 eval ac_val=\$$ac_var
1250 # Remove trailing slashes.
1251 case $ac_val in
1252 */ )
1253 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1254 eval $ac_var=\$ac_val;;
1255 esac
1256 # Be sure to have absolute directory names.
1257 case $ac_val in
1258 [\\/$]* | ?:[\\/]* ) continue;;
1259 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1260 esac
1261 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1262 done
1264 # There might be people who depend on the old broken behavior: `$host'
1265 # used to hold the argument of --host etc.
1266 # FIXME: To remove some day.
1267 build=$build_alias
1268 host=$host_alias
1269 target=$target_alias
1271 # FIXME: To remove some day.
1272 if test "x$host_alias" != x; then
1273 if test "x$build_alias" = x; then
1274 cross_compiling=maybe
1275 elif test "x$build_alias" != "x$host_alias"; then
1276 cross_compiling=yes
1280 ac_tool_prefix=
1281 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1283 test "$silent" = yes && exec 6>/dev/null
1286 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1287 ac_ls_di=`ls -di .` &&
1288 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1289 as_fn_error $? "working directory cannot be determined"
1290 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1291 as_fn_error $? "pwd does not report name of working directory"
1294 # Find the source files, if location was not specified.
1295 if test -z "$srcdir"; then
1296 ac_srcdir_defaulted=yes
1297 # Try the directory containing this script, then the parent directory.
1298 ac_confdir=`$as_dirname -- "$as_myself" ||
1299 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1300 X"$as_myself" : 'X\(//\)[^/]' \| \
1301 X"$as_myself" : 'X\(//\)$' \| \
1302 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1303 $as_echo X"$as_myself" |
1304 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1305 s//\1/
1308 /^X\(\/\/\)[^/].*/{
1309 s//\1/
1312 /^X\(\/\/\)$/{
1313 s//\1/
1316 /^X\(\/\).*/{
1317 s//\1/
1320 s/.*/./; q'`
1321 srcdir=$ac_confdir
1322 if test ! -r "$srcdir/$ac_unique_file"; then
1323 srcdir=..
1325 else
1326 ac_srcdir_defaulted=no
1328 if test ! -r "$srcdir/$ac_unique_file"; then
1329 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1330 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1332 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1333 ac_abs_confdir=`(
1334 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1335 pwd)`
1336 # When building in place, set srcdir=.
1337 if test "$ac_abs_confdir" = "$ac_pwd"; then
1338 srcdir=.
1340 # Remove unnecessary trailing slashes from srcdir.
1341 # Double slashes in file names in object file debugging info
1342 # mess up M-x gdb in Emacs.
1343 case $srcdir in
1344 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1345 esac
1346 for ac_var in $ac_precious_vars; do
1347 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1348 eval ac_env_${ac_var}_value=\$${ac_var}
1349 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1350 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1351 done
1354 # Report the --help message.
1356 if test "$ac_init_help" = "long"; then
1357 # Omit some internal or obsolete options to make the list less imposing.
1358 # This message is too long to be a string in the A/UX 3.1 sh.
1359 cat <<_ACEOF
1360 \`configure' configures package-unused version-unused to adapt to many kinds of systems.
1362 Usage: $0 [OPTION]... [VAR=VALUE]...
1364 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1365 VAR=VALUE. See below for descriptions of some of the useful variables.
1367 Defaults for the options are specified in brackets.
1369 Configuration:
1370 -h, --help display this help and exit
1371 --help=short display options specific to this package
1372 --help=recursive display the short help of all the included packages
1373 -V, --version display version information and exit
1374 -q, --quiet, --silent do not print \`checking ...' messages
1375 --cache-file=FILE cache test results in FILE [disabled]
1376 -C, --config-cache alias for \`--cache-file=config.cache'
1377 -n, --no-create do not create output files
1378 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1380 Installation directories:
1381 --prefix=PREFIX install architecture-independent files in PREFIX
1382 [$ac_default_prefix]
1383 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1384 [PREFIX]
1386 By default, \`make install' will install all the files in
1387 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1388 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1389 for instance \`--prefix=\$HOME'.
1391 For better control, use the options below.
1393 Fine tuning of the installation directories:
1394 --bindir=DIR user executables [EPREFIX/bin]
1395 --sbindir=DIR system admin executables [EPREFIX/sbin]
1396 --libexecdir=DIR program executables [EPREFIX/libexec]
1397 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1398 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1399 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1400 --libdir=DIR object code libraries [EPREFIX/lib]
1401 --includedir=DIR C header files [PREFIX/include]
1402 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1403 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1404 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1405 --infodir=DIR info documentation [DATAROOTDIR/info]
1406 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1407 --mandir=DIR man documentation [DATAROOTDIR/man]
1408 --docdir=DIR documentation root [DATAROOTDIR/doc/libgm2]
1409 --htmldir=DIR html documentation [DOCDIR]
1410 --dvidir=DIR dvi documentation [DOCDIR]
1411 --pdfdir=DIR pdf documentation [DOCDIR]
1412 --psdir=DIR ps documentation [DOCDIR]
1413 _ACEOF
1415 cat <<\_ACEOF
1417 Program names:
1418 --program-prefix=PREFIX prepend PREFIX to installed program names
1419 --program-suffix=SUFFIX append SUFFIX to installed program names
1420 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1422 System types:
1423 --build=BUILD configure for building on BUILD [guessed]
1424 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1425 --target=TARGET configure for building compilers for TARGET [HOST]
1426 _ACEOF
1429 if test -n "$ac_init_help"; then
1430 case $ac_init_help in
1431 short | recursive ) echo "Configuration of package-unused version-unused:";;
1432 esac
1433 cat <<\_ACEOF
1435 Optional Features:
1436 --disable-option-checking ignore unrecognized --enable/--with options
1437 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1438 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1439 --enable-multilib build many library versions (default)
1440 --enable-dependency-tracking
1441 do not reject slow dependency extractors
1442 --disable-dependency-tracking
1443 speeds up one-time build
1444 --enable-silent-rules less verbose build output (undo: "make V=1")
1445 --disable-silent-rules verbose build output (undo: "make V=0")
1446 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory
1447 --enable-maintainer-mode
1448 enable make rules and dependencies not useful (and
1449 sometimes confusing) to the casual installer
1450 --enable-maintainer-mode
1451 enable make rules and dependencies not useful (and
1452 sometimes confusing) to the casual installer
1453 --enable-shared[=PKGS] build shared libraries [default=yes]
1454 --enable-static[=PKGS] build static libraries [default=yes]
1455 --enable-fast-install[=PKGS]
1456 optimize for fast installation [default=yes]
1457 --disable-libtool-lock avoid locking (might break parallel builds)
1459 Optional Packages:
1460 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1461 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1462 --with-cross-host=HOST Configuring with a cross compiler
1463 --with-build-libsubdir=DIR Directory where to find libraries for build system
1464 --with-slibdir=DIR shared libraries in DIR LIBDIR
1465 --with-pic try to use only PIC/non-PIC objects [default=use
1466 both]
1467 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1468 --with-gcc-major-version-only
1469 use only GCC major number in filesystem paths
1471 Some influential environment variables:
1472 CC C compiler command
1473 CFLAGS C compiler flags
1474 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1475 nonstandard directory <lib dir>
1476 LIBS libraries to pass to the linker, e.g. -l<library>
1477 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1478 you have headers in a nonstandard directory <include dir>
1479 CPP C preprocessor
1480 CXX C++ compiler command
1481 CXXFLAGS C++ compiler flags
1482 CCAS assembler compiler command (defaults to CC)
1483 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1484 CXXCPP C++ preprocessor
1486 Use these variables to override the choices made by `configure' or to help
1487 it to find libraries and programs with nonstandard names/locations.
1489 Report bugs to the package provider.
1490 _ACEOF
1491 ac_status=$?
1494 if test "$ac_init_help" = "recursive"; then
1495 # If there are subdirs, report their specific --help.
1496 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1497 test -d "$ac_dir" ||
1498 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1499 continue
1500 ac_builddir=.
1502 case "$ac_dir" in
1503 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1505 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1506 # A ".." for each directory in $ac_dir_suffix.
1507 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1508 case $ac_top_builddir_sub in
1509 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1510 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1511 esac ;;
1512 esac
1513 ac_abs_top_builddir=$ac_pwd
1514 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1515 # for backward compatibility:
1516 ac_top_builddir=$ac_top_build_prefix
1518 case $srcdir in
1519 .) # We are building in place.
1520 ac_srcdir=.
1521 ac_top_srcdir=$ac_top_builddir_sub
1522 ac_abs_top_srcdir=$ac_pwd ;;
1523 [\\/]* | ?:[\\/]* ) # Absolute name.
1524 ac_srcdir=$srcdir$ac_dir_suffix;
1525 ac_top_srcdir=$srcdir
1526 ac_abs_top_srcdir=$srcdir ;;
1527 *) # Relative name.
1528 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1529 ac_top_srcdir=$ac_top_build_prefix$srcdir
1530 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1531 esac
1532 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1534 cd "$ac_dir" || { ac_status=$?; continue; }
1535 # Check for guested configure.
1536 if test -f "$ac_srcdir/configure.gnu"; then
1537 echo &&
1538 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1539 elif test -f "$ac_srcdir/configure"; then
1540 echo &&
1541 $SHELL "$ac_srcdir/configure" --help=recursive
1542 else
1543 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1544 fi || ac_status=$?
1545 cd "$ac_pwd" || { ac_status=$?; break; }
1546 done
1549 test -n "$ac_init_help" && exit $ac_status
1550 if $ac_init_version; then
1551 cat <<\_ACEOF
1552 package-unused configure version-unused
1553 generated by GNU Autoconf 2.69
1555 Copyright (C) 2012 Free Software Foundation, Inc.
1556 This configure script is free software; the Free Software Foundation
1557 gives unlimited permission to copy, distribute and modify it.
1558 _ACEOF
1559 exit
1562 ## ------------------------ ##
1563 ## Autoconf initialization. ##
1564 ## ------------------------ ##
1566 # ac_fn_c_try_compile LINENO
1567 # --------------------------
1568 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1569 ac_fn_c_try_compile ()
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 rm -f conftest.$ac_objext
1573 if { { ac_try="$ac_compile"
1574 case "(($ac_try" in
1575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1576 *) ac_try_echo=$ac_try;;
1577 esac
1578 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1579 $as_echo "$ac_try_echo"; } >&5
1580 (eval "$ac_compile") 2>conftest.err
1581 ac_status=$?
1582 if test -s conftest.err; then
1583 grep -v '^ *+' conftest.err >conftest.er1
1584 cat conftest.er1 >&5
1585 mv -f conftest.er1 conftest.err
1587 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1588 test $ac_status = 0; } && {
1589 test -z "$ac_c_werror_flag" ||
1590 test ! -s conftest.err
1591 } && test -s conftest.$ac_objext; then :
1592 ac_retval=0
1593 else
1594 $as_echo "$as_me: failed program was:" >&5
1595 sed 's/^/| /' conftest.$ac_ext >&5
1597 ac_retval=1
1599 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1600 as_fn_set_status $ac_retval
1602 } # ac_fn_c_try_compile
1604 # ac_fn_c_try_cpp LINENO
1605 # ----------------------
1606 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1607 ac_fn_c_try_cpp ()
1609 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1610 if { { ac_try="$ac_cpp conftest.$ac_ext"
1611 case "(($ac_try" in
1612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1613 *) ac_try_echo=$ac_try;;
1614 esac
1615 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1616 $as_echo "$ac_try_echo"; } >&5
1617 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1618 ac_status=$?
1619 if test -s conftest.err; then
1620 grep -v '^ *+' conftest.err >conftest.er1
1621 cat conftest.er1 >&5
1622 mv -f conftest.er1 conftest.err
1624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1625 test $ac_status = 0; } > conftest.i && {
1626 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1627 test ! -s conftest.err
1628 }; then :
1629 ac_retval=0
1630 else
1631 $as_echo "$as_me: failed program was:" >&5
1632 sed 's/^/| /' conftest.$ac_ext >&5
1634 ac_retval=1
1636 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1637 as_fn_set_status $ac_retval
1639 } # ac_fn_c_try_cpp
1641 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1642 # -------------------------------------------------------
1643 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1644 # the include files in INCLUDES and setting the cache variable VAR
1645 # accordingly.
1646 ac_fn_c_check_header_mongrel ()
1648 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649 if eval \${$3+:} false; then :
1650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1651 $as_echo_n "checking for $2... " >&6; }
1652 if eval \${$3+:} false; then :
1653 $as_echo_n "(cached) " >&6
1655 eval ac_res=\$$3
1656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1657 $as_echo "$ac_res" >&6; }
1658 else
1659 # Is the header compilable?
1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1661 $as_echo_n "checking $2 usability... " >&6; }
1662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1663 /* end confdefs.h. */
1665 #include <$2>
1666 _ACEOF
1667 if ac_fn_c_try_compile "$LINENO"; then :
1668 ac_header_compiler=yes
1669 else
1670 ac_header_compiler=no
1672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1674 $as_echo "$ac_header_compiler" >&6; }
1676 # Is the header present?
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1678 $as_echo_n "checking $2 presence... " >&6; }
1679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1680 /* end confdefs.h. */
1681 #include <$2>
1682 _ACEOF
1683 if ac_fn_c_try_cpp "$LINENO"; then :
1684 ac_header_preproc=yes
1685 else
1686 ac_header_preproc=no
1688 rm -f conftest.err conftest.i conftest.$ac_ext
1689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1690 $as_echo "$ac_header_preproc" >&6; }
1692 # So? What about this header?
1693 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1694 yes:no: )
1695 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1696 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1697 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1698 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1700 no:yes:* )
1701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1702 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1703 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1704 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1705 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1706 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1708 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1709 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1710 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1712 esac
1713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1714 $as_echo_n "checking for $2... " >&6; }
1715 if eval \${$3+:} false; then :
1716 $as_echo_n "(cached) " >&6
1717 else
1718 eval "$3=\$ac_header_compiler"
1720 eval ac_res=\$$3
1721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1722 $as_echo "$ac_res" >&6; }
1724 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1726 } # ac_fn_c_check_header_mongrel
1728 # ac_fn_c_try_run LINENO
1729 # ----------------------
1730 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1731 # that executables *can* be run.
1732 ac_fn_c_try_run ()
1734 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1735 if { { ac_try="$ac_link"
1736 case "(($ac_try" in
1737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1738 *) ac_try_echo=$ac_try;;
1739 esac
1740 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1741 $as_echo "$ac_try_echo"; } >&5
1742 (eval "$ac_link") 2>&5
1743 ac_status=$?
1744 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1745 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1746 { { case "(($ac_try" in
1747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1748 *) ac_try_echo=$ac_try;;
1749 esac
1750 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1751 $as_echo "$ac_try_echo"; } >&5
1752 (eval "$ac_try") 2>&5
1753 ac_status=$?
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; }; }; then :
1756 ac_retval=0
1757 else
1758 $as_echo "$as_me: program exited with status $ac_status" >&5
1759 $as_echo "$as_me: failed program was:" >&5
1760 sed 's/^/| /' conftest.$ac_ext >&5
1762 ac_retval=$ac_status
1764 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1765 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1766 as_fn_set_status $ac_retval
1768 } # ac_fn_c_try_run
1770 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1771 # -------------------------------------------------------
1772 # Tests whether HEADER exists and can be compiled using the include files in
1773 # INCLUDES, setting the cache variable VAR accordingly.
1774 ac_fn_c_check_header_compile ()
1776 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1778 $as_echo_n "checking for $2... " >&6; }
1779 if eval \${$3+:} false; then :
1780 $as_echo_n "(cached) " >&6
1781 else
1782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1783 /* end confdefs.h. */
1785 #include <$2>
1786 _ACEOF
1787 if ac_fn_c_try_compile "$LINENO"; then :
1788 eval "$3=yes"
1789 else
1790 eval "$3=no"
1792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1794 eval ac_res=\$$3
1795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1796 $as_echo "$ac_res" >&6; }
1797 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1799 } # ac_fn_c_check_header_compile
1801 # ac_fn_cxx_try_compile LINENO
1802 # ----------------------------
1803 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1804 ac_fn_cxx_try_compile ()
1806 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1807 rm -f conftest.$ac_objext
1808 if { { ac_try="$ac_compile"
1809 case "(($ac_try" in
1810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1811 *) ac_try_echo=$ac_try;;
1812 esac
1813 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1814 $as_echo "$ac_try_echo"; } >&5
1815 (eval "$ac_compile") 2>conftest.err
1816 ac_status=$?
1817 if test -s conftest.err; then
1818 grep -v '^ *+' conftest.err >conftest.er1
1819 cat conftest.er1 >&5
1820 mv -f conftest.er1 conftest.err
1822 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1823 test $ac_status = 0; } && {
1824 test -z "$ac_cxx_werror_flag" ||
1825 test ! -s conftest.err
1826 } && test -s conftest.$ac_objext; then :
1827 ac_retval=0
1828 else
1829 $as_echo "$as_me: failed program was:" >&5
1830 sed 's/^/| /' conftest.$ac_ext >&5
1832 ac_retval=1
1834 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1835 as_fn_set_status $ac_retval
1837 } # ac_fn_cxx_try_compile
1839 # ac_fn_c_try_link LINENO
1840 # -----------------------
1841 # Try to link conftest.$ac_ext, and return whether this succeeded.
1842 ac_fn_c_try_link ()
1844 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1845 rm -f conftest.$ac_objext conftest$ac_exeext
1846 if { { ac_try="$ac_link"
1847 case "(($ac_try" in
1848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1849 *) ac_try_echo=$ac_try;;
1850 esac
1851 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1852 $as_echo "$ac_try_echo"; } >&5
1853 (eval "$ac_link") 2>conftest.err
1854 ac_status=$?
1855 if test -s conftest.err; then
1856 grep -v '^ *+' conftest.err >conftest.er1
1857 cat conftest.er1 >&5
1858 mv -f conftest.er1 conftest.err
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && {
1862 test -z "$ac_c_werror_flag" ||
1863 test ! -s conftest.err
1864 } && test -s conftest$ac_exeext && {
1865 test "$cross_compiling" = yes ||
1866 test -x conftest$ac_exeext
1867 }; then :
1868 ac_retval=0
1869 else
1870 $as_echo "$as_me: failed program was:" >&5
1871 sed 's/^/| /' conftest.$ac_ext >&5
1873 ac_retval=1
1875 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1876 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1877 # interfere with the next link command; also delete a directory that is
1878 # left behind by Apple's compiler. We do this before executing the actions.
1879 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1880 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1881 as_fn_set_status $ac_retval
1883 } # ac_fn_c_try_link
1885 # ac_fn_c_check_func LINENO FUNC VAR
1886 # ----------------------------------
1887 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1888 ac_fn_c_check_func ()
1890 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1892 $as_echo_n "checking for $2... " >&6; }
1893 if eval \${$3+:} false; then :
1894 $as_echo_n "(cached) " >&6
1895 else
1896 if test x$gcc_no_link = xyes; then
1897 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1900 /* end confdefs.h. */
1901 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1902 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1903 #define $2 innocuous_$2
1905 /* System header to define __stub macros and hopefully few prototypes,
1906 which can conflict with char $2 (); below.
1907 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1908 <limits.h> exists even on freestanding compilers. */
1910 #ifdef __STDC__
1911 # include <limits.h>
1912 #else
1913 # include <assert.h>
1914 #endif
1916 #undef $2
1918 /* Override any GCC internal prototype to avoid an error.
1919 Use char because int might match the return type of a GCC
1920 builtin and then its argument prototype would still apply. */
1921 #ifdef __cplusplus
1922 extern "C"
1923 #endif
1924 char $2 ();
1925 /* The GNU C library defines this for functions which it implements
1926 to always fail with ENOSYS. Some functions are actually named
1927 something starting with __ and the normal name is an alias. */
1928 #if defined __stub_$2 || defined __stub___$2
1929 choke me
1930 #endif
1933 main ()
1935 return $2 ();
1937 return 0;
1939 _ACEOF
1940 if ac_fn_c_try_link "$LINENO"; then :
1941 eval "$3=yes"
1942 else
1943 eval "$3=no"
1945 rm -f core conftest.err conftest.$ac_objext \
1946 conftest$ac_exeext conftest.$ac_ext
1948 eval ac_res=\$$3
1949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1950 $as_echo "$ac_res" >&6; }
1951 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1953 } # ac_fn_c_check_func
1955 # ac_fn_cxx_try_cpp LINENO
1956 # ------------------------
1957 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1958 ac_fn_cxx_try_cpp ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if { { ac_try="$ac_cpp conftest.$ac_ext"
1962 case "(($ac_try" in
1963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964 *) ac_try_echo=$ac_try;;
1965 esac
1966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967 $as_echo "$ac_try_echo"; } >&5
1968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1969 ac_status=$?
1970 if test -s conftest.err; then
1971 grep -v '^ *+' conftest.err >conftest.er1
1972 cat conftest.er1 >&5
1973 mv -f conftest.er1 conftest.err
1975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976 test $ac_status = 0; } > conftest.i && {
1977 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1978 test ! -s conftest.err
1979 }; then :
1980 ac_retval=0
1981 else
1982 $as_echo "$as_me: failed program was:" >&5
1983 sed 's/^/| /' conftest.$ac_ext >&5
1985 ac_retval=1
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988 as_fn_set_status $ac_retval
1990 } # ac_fn_cxx_try_cpp
1992 # ac_fn_cxx_try_link LINENO
1993 # -------------------------
1994 # Try to link conftest.$ac_ext, and return whether this succeeded.
1995 ac_fn_cxx_try_link ()
1997 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1998 rm -f conftest.$ac_objext conftest$ac_exeext
1999 if { { ac_try="$ac_link"
2000 case "(($ac_try" in
2001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2002 *) ac_try_echo=$ac_try;;
2003 esac
2004 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2005 $as_echo "$ac_try_echo"; } >&5
2006 (eval "$ac_link") 2>conftest.err
2007 ac_status=$?
2008 if test -s conftest.err; then
2009 grep -v '^ *+' conftest.err >conftest.er1
2010 cat conftest.er1 >&5
2011 mv -f conftest.er1 conftest.err
2013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2014 test $ac_status = 0; } && {
2015 test -z "$ac_cxx_werror_flag" ||
2016 test ! -s conftest.err
2017 } && test -s conftest$ac_exeext && {
2018 test "$cross_compiling" = yes ||
2019 test -x conftest$ac_exeext
2020 }; then :
2021 ac_retval=0
2022 else
2023 $as_echo "$as_me: failed program was:" >&5
2024 sed 's/^/| /' conftest.$ac_ext >&5
2026 ac_retval=1
2028 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2029 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2030 # interfere with the next link command; also delete a directory that is
2031 # left behind by Apple's compiler. We do this before executing the actions.
2032 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2033 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2034 as_fn_set_status $ac_retval
2036 } # ac_fn_cxx_try_link
2038 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2039 # -------------------------------------------
2040 # Tests whether TYPE exists after having included INCLUDES, setting cache
2041 # variable VAR accordingly.
2042 ac_fn_c_check_type ()
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046 $as_echo_n "checking for $2... " >&6; }
2047 if eval \${$3+:} false; then :
2048 $as_echo_n "(cached) " >&6
2049 else
2050 eval "$3=no"
2051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2052 /* end confdefs.h. */
2055 main ()
2057 if (sizeof ($2))
2058 return 0;
2060 return 0;
2062 _ACEOF
2063 if ac_fn_c_try_compile "$LINENO"; then :
2064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2065 /* end confdefs.h. */
2068 main ()
2070 if (sizeof (($2)))
2071 return 0;
2073 return 0;
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2078 else
2079 eval "$3=yes"
2081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2083 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2085 eval ac_res=\$$3
2086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2087 $as_echo "$ac_res" >&6; }
2088 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2090 } # ac_fn_c_check_type
2091 cat >config.log <<_ACEOF
2092 This file contains any messages produced by compilers while
2093 running configure, to aid debugging if configure makes a mistake.
2095 It was created by package-unused $as_me version-unused, which was
2096 generated by GNU Autoconf 2.69. Invocation command line was
2098 $ $0 $@
2100 _ACEOF
2101 exec 5>>config.log
2103 cat <<_ASUNAME
2104 ## --------- ##
2105 ## Platform. ##
2106 ## --------- ##
2108 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2109 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2110 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2111 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2112 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2114 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2115 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2117 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2118 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2119 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2120 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2121 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2122 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2123 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2125 _ASUNAME
2127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2128 for as_dir in $PATH
2130 IFS=$as_save_IFS
2131 test -z "$as_dir" && as_dir=.
2132 $as_echo "PATH: $as_dir"
2133 done
2134 IFS=$as_save_IFS
2136 } >&5
2138 cat >&5 <<_ACEOF
2141 ## ----------- ##
2142 ## Core tests. ##
2143 ## ----------- ##
2145 _ACEOF
2148 # Keep a trace of the command line.
2149 # Strip out --no-create and --no-recursion so they do not pile up.
2150 # Strip out --silent because we don't want to record it for future runs.
2151 # Also quote any args containing shell meta-characters.
2152 # Make two passes to allow for proper duplicate-argument suppression.
2153 ac_configure_args=
2154 ac_configure_args0=
2155 ac_configure_args1=
2156 ac_must_keep_next=false
2157 for ac_pass in 1 2
2159 for ac_arg
2161 case $ac_arg in
2162 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2163 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2164 | -silent | --silent | --silen | --sile | --sil)
2165 continue ;;
2166 *\'*)
2167 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2168 esac
2169 case $ac_pass in
2170 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2172 as_fn_append ac_configure_args1 " '$ac_arg'"
2173 if test $ac_must_keep_next = true; then
2174 ac_must_keep_next=false # Got value, back to normal.
2175 else
2176 case $ac_arg in
2177 *=* | --config-cache | -C | -disable-* | --disable-* \
2178 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2179 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2180 | -with-* | --with-* | -without-* | --without-* | --x)
2181 case "$ac_configure_args0 " in
2182 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2183 esac
2185 -* ) ac_must_keep_next=true ;;
2186 esac
2188 as_fn_append ac_configure_args " '$ac_arg'"
2190 esac
2191 done
2192 done
2193 { ac_configure_args0=; unset ac_configure_args0;}
2194 { ac_configure_args1=; unset ac_configure_args1;}
2196 # When interrupted or exit'd, cleanup temporary files, and complete
2197 # config.log. We remove comments because anyway the quotes in there
2198 # would cause problems or look ugly.
2199 # WARNING: Use '\'' to represent an apostrophe within the trap.
2200 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2201 trap 'exit_status=$?
2202 # Save into config.log some information that might help in debugging.
2204 echo
2206 $as_echo "## ---------------- ##
2207 ## Cache variables. ##
2208 ## ---------------- ##"
2209 echo
2210 # The following way of writing the cache mishandles newlines in values,
2212 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2213 eval ac_val=\$$ac_var
2214 case $ac_val in #(
2215 *${as_nl}*)
2216 case $ac_var in #(
2217 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2218 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2219 esac
2220 case $ac_var in #(
2221 _ | IFS | as_nl) ;; #(
2222 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2223 *) { eval $ac_var=; unset $ac_var;} ;;
2224 esac ;;
2225 esac
2226 done
2227 (set) 2>&1 |
2228 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2229 *${as_nl}ac_space=\ *)
2230 sed -n \
2231 "s/'\''/'\''\\\\'\'''\''/g;
2232 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2233 ;; #(
2235 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2237 esac |
2238 sort
2240 echo
2242 $as_echo "## ----------------- ##
2243 ## Output variables. ##
2244 ## ----------------- ##"
2245 echo
2246 for ac_var in $ac_subst_vars
2248 eval ac_val=\$$ac_var
2249 case $ac_val in
2250 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2251 esac
2252 $as_echo "$ac_var='\''$ac_val'\''"
2253 done | sort
2254 echo
2256 if test -n "$ac_subst_files"; then
2257 $as_echo "## ------------------- ##
2258 ## File substitutions. ##
2259 ## ------------------- ##"
2260 echo
2261 for ac_var in $ac_subst_files
2263 eval ac_val=\$$ac_var
2264 case $ac_val in
2265 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2266 esac
2267 $as_echo "$ac_var='\''$ac_val'\''"
2268 done | sort
2269 echo
2272 if test -s confdefs.h; then
2273 $as_echo "## ----------- ##
2274 ## confdefs.h. ##
2275 ## ----------- ##"
2276 echo
2277 cat confdefs.h
2278 echo
2280 test "$ac_signal" != 0 &&
2281 $as_echo "$as_me: caught signal $ac_signal"
2282 $as_echo "$as_me: exit $exit_status"
2283 } >&5
2284 rm -f core *.core core.conftest.* &&
2285 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2286 exit $exit_status
2288 for ac_signal in 1 2 13 15; do
2289 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2290 done
2291 ac_signal=0
2293 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2294 rm -f -r conftest* confdefs.h
2296 $as_echo "/* confdefs.h */" > confdefs.h
2298 # Predefined preprocessor variables.
2300 cat >>confdefs.h <<_ACEOF
2301 #define PACKAGE_NAME "$PACKAGE_NAME"
2302 _ACEOF
2304 cat >>confdefs.h <<_ACEOF
2305 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2306 _ACEOF
2308 cat >>confdefs.h <<_ACEOF
2309 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2310 _ACEOF
2312 cat >>confdefs.h <<_ACEOF
2313 #define PACKAGE_STRING "$PACKAGE_STRING"
2314 _ACEOF
2316 cat >>confdefs.h <<_ACEOF
2317 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2318 _ACEOF
2320 cat >>confdefs.h <<_ACEOF
2321 #define PACKAGE_URL "$PACKAGE_URL"
2322 _ACEOF
2325 # Let the site file select an alternate cache file if it wants to.
2326 # Prefer an explicitly selected file to automatically selected ones.
2327 ac_site_file1=NONE
2328 ac_site_file2=NONE
2329 if test -n "$CONFIG_SITE"; then
2330 # We do not want a PATH search for config.site.
2331 case $CONFIG_SITE in #((
2332 -*) ac_site_file1=./$CONFIG_SITE;;
2333 */*) ac_site_file1=$CONFIG_SITE;;
2334 *) ac_site_file1=./$CONFIG_SITE;;
2335 esac
2336 elif test "x$prefix" != xNONE; then
2337 ac_site_file1=$prefix/share/config.site
2338 ac_site_file2=$prefix/etc/config.site
2339 else
2340 ac_site_file1=$ac_default_prefix/share/config.site
2341 ac_site_file2=$ac_default_prefix/etc/config.site
2343 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2345 test "x$ac_site_file" = xNONE && continue
2346 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2347 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2348 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2349 sed 's/^/| /' "$ac_site_file" >&5
2350 . "$ac_site_file" \
2351 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2352 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2353 as_fn_error $? "failed to load site script $ac_site_file
2354 See \`config.log' for more details" "$LINENO" 5; }
2356 done
2358 if test -r "$cache_file"; then
2359 # Some versions of bash will fail to source /dev/null (special files
2360 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2361 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2363 $as_echo "$as_me: loading cache $cache_file" >&6;}
2364 case $cache_file in
2365 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2366 *) . "./$cache_file";;
2367 esac
2369 else
2370 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2371 $as_echo "$as_me: creating cache $cache_file" >&6;}
2372 >$cache_file
2375 # Check that the precious variables saved in the cache have kept the same
2376 # value.
2377 ac_cache_corrupted=false
2378 for ac_var in $ac_precious_vars; do
2379 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2380 eval ac_new_set=\$ac_env_${ac_var}_set
2381 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2382 eval ac_new_val=\$ac_env_${ac_var}_value
2383 case $ac_old_set,$ac_new_set in
2384 set,)
2385 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2386 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2387 ac_cache_corrupted=: ;;
2388 ,set)
2389 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2390 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2391 ac_cache_corrupted=: ;;
2392 ,);;
2394 if test "x$ac_old_val" != "x$ac_new_val"; then
2395 # differences in whitespace do not lead to failure.
2396 ac_old_val_w=`echo x $ac_old_val`
2397 ac_new_val_w=`echo x $ac_new_val`
2398 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2400 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2401 ac_cache_corrupted=:
2402 else
2403 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2404 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2405 eval $ac_var=\$ac_old_val
2407 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2408 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2409 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2410 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2411 fi;;
2412 esac
2413 # Pass precious variables to config.status.
2414 if test "$ac_new_set" = set; then
2415 case $ac_new_val in
2416 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2417 *) ac_arg=$ac_var=$ac_new_val ;;
2418 esac
2419 case " $ac_configure_args " in
2420 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2421 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2422 esac
2424 done
2425 if $ac_cache_corrupted; then
2426 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2427 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2428 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2429 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2430 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2432 ## -------------------- ##
2433 ## Main body of script. ##
2434 ## -------------------- ##
2436 ac_ext=c
2437 ac_cpp='$CPP $CPPFLAGS'
2438 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2439 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2440 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2447 # AC_CONFIG_MACRO_DIR([config])
2448 ac_config_headers="$ac_config_headers config.h"
2451 libtool_VERSION=18:0:0
2454 # Default to --enable-multilib
2455 # Check whether --enable-multilib was given.
2456 if test "${enable_multilib+set}" = set; then :
2457 enableval=$enable_multilib; case "$enableval" in
2458 yes) multilib=yes ;;
2459 no) multilib=no ;;
2460 *) as_fn_error $? "bad value $enableval for multilib option" "$LINENO" 5 ;;
2461 esac
2462 else
2463 multilib=yes
2467 # We may get other options which we leave undocumented:
2468 # --with-target-subdir, --with-multisrctop, --with-multisubdir
2469 # See config-ml.in if you want the gory details.
2471 if test "$srcdir" = "."; then
2472 if test "$with_target_subdir" != "."; then
2473 multi_basedir="$srcdir/$with_multisrctop../.."
2474 else
2475 multi_basedir="$srcdir/$with_multisrctop.."
2477 else
2478 multi_basedir="$srcdir/.."
2482 # Even if the default multilib is not a cross compilation,
2483 # it may be that some of the other multilibs are.
2484 if test $cross_compiling = no && test $multilib = yes \
2485 && test "x${with_multisubdir}" != x ; then
2486 cross_compiling=maybe
2489 ac_config_commands="$ac_config_commands default-1"
2494 ac_aux_dir=
2495 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2496 if test -f "$ac_dir/install-sh"; then
2497 ac_aux_dir=$ac_dir
2498 ac_install_sh="$ac_aux_dir/install-sh -c"
2499 break
2500 elif test -f "$ac_dir/install.sh"; then
2501 ac_aux_dir=$ac_dir
2502 ac_install_sh="$ac_aux_dir/install.sh -c"
2503 break
2504 elif test -f "$ac_dir/shtool"; then
2505 ac_aux_dir=$ac_dir
2506 ac_install_sh="$ac_aux_dir/shtool install -c"
2507 break
2509 done
2510 if test -z "$ac_aux_dir"; then
2511 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2514 # These three variables are undocumented and unsupported,
2515 # and are intended to be withdrawn in a future Autoconf release.
2516 # They can cause serious problems if a builder's source tree is in a directory
2517 # whose full name contains unusual characters.
2518 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2519 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2520 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2523 # Expand $ac_aux_dir to an absolute path.
2524 am_aux_dir=`cd "$ac_aux_dir" && pwd`
2526 ac_ext=c
2527 ac_cpp='$CPP $CPPFLAGS'
2528 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2529 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2530 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2531 if test -n "$ac_tool_prefix"; then
2532 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2533 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2535 $as_echo_n "checking for $ac_word... " >&6; }
2536 if ${ac_cv_prog_CC+:} false; then :
2537 $as_echo_n "(cached) " >&6
2538 else
2539 if test -n "$CC"; then
2540 ac_cv_prog_CC="$CC" # Let the user override the test.
2541 else
2542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2543 for as_dir in $PATH
2545 IFS=$as_save_IFS
2546 test -z "$as_dir" && as_dir=.
2547 for ac_exec_ext in '' $ac_executable_extensions; do
2548 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2549 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2551 break 2
2553 done
2554 done
2555 IFS=$as_save_IFS
2559 CC=$ac_cv_prog_CC
2560 if test -n "$CC"; then
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2562 $as_echo "$CC" >&6; }
2563 else
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2565 $as_echo "no" >&6; }
2570 if test -z "$ac_cv_prog_CC"; then
2571 ac_ct_CC=$CC
2572 # Extract the first word of "gcc", so it can be a program name with args.
2573 set dummy gcc; ac_word=$2
2574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2575 $as_echo_n "checking for $ac_word... " >&6; }
2576 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2577 $as_echo_n "(cached) " >&6
2578 else
2579 if test -n "$ac_ct_CC"; then
2580 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2581 else
2582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2583 for as_dir in $PATH
2585 IFS=$as_save_IFS
2586 test -z "$as_dir" && as_dir=.
2587 for ac_exec_ext in '' $ac_executable_extensions; do
2588 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2589 ac_cv_prog_ac_ct_CC="gcc"
2590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2591 break 2
2593 done
2594 done
2595 IFS=$as_save_IFS
2599 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2600 if test -n "$ac_ct_CC"; then
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2602 $as_echo "$ac_ct_CC" >&6; }
2603 else
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2605 $as_echo "no" >&6; }
2608 if test "x$ac_ct_CC" = x; then
2609 CC=""
2610 else
2611 case $cross_compiling:$ac_tool_warned in
2612 yes:)
2613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2614 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2615 ac_tool_warned=yes ;;
2616 esac
2617 CC=$ac_ct_CC
2619 else
2620 CC="$ac_cv_prog_CC"
2623 if test -z "$CC"; then
2624 if test -n "$ac_tool_prefix"; then
2625 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2626 set dummy ${ac_tool_prefix}cc; ac_word=$2
2627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2628 $as_echo_n "checking for $ac_word... " >&6; }
2629 if ${ac_cv_prog_CC+:} false; then :
2630 $as_echo_n "(cached) " >&6
2631 else
2632 if test -n "$CC"; then
2633 ac_cv_prog_CC="$CC" # Let the user override the test.
2634 else
2635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2636 for as_dir in $PATH
2638 IFS=$as_save_IFS
2639 test -z "$as_dir" && as_dir=.
2640 for ac_exec_ext in '' $ac_executable_extensions; do
2641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2642 ac_cv_prog_CC="${ac_tool_prefix}cc"
2643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2644 break 2
2646 done
2647 done
2648 IFS=$as_save_IFS
2652 CC=$ac_cv_prog_CC
2653 if test -n "$CC"; then
2654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2655 $as_echo "$CC" >&6; }
2656 else
2657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658 $as_echo "no" >&6; }
2664 if test -z "$CC"; then
2665 # Extract the first word of "cc", so it can be a program name with args.
2666 set dummy cc; ac_word=$2
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668 $as_echo_n "checking for $ac_word... " >&6; }
2669 if ${ac_cv_prog_CC+:} false; then :
2670 $as_echo_n "(cached) " >&6
2671 else
2672 if test -n "$CC"; then
2673 ac_cv_prog_CC="$CC" # Let the user override the test.
2674 else
2675 ac_prog_rejected=no
2676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2677 for as_dir in $PATH
2679 IFS=$as_save_IFS
2680 test -z "$as_dir" && as_dir=.
2681 for ac_exec_ext in '' $ac_executable_extensions; do
2682 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2683 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2684 ac_prog_rejected=yes
2685 continue
2687 ac_cv_prog_CC="cc"
2688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2689 break 2
2691 done
2692 done
2693 IFS=$as_save_IFS
2695 if test $ac_prog_rejected = yes; then
2696 # We found a bogon in the path, so make sure we never use it.
2697 set dummy $ac_cv_prog_CC
2698 shift
2699 if test $# != 0; then
2700 # We chose a different compiler from the bogus one.
2701 # However, it has the same basename, so the bogon will be chosen
2702 # first if we set CC to just the basename; use the full file name.
2703 shift
2704 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2709 CC=$ac_cv_prog_CC
2710 if test -n "$CC"; then
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2712 $as_echo "$CC" >&6; }
2713 else
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2715 $as_echo "no" >&6; }
2720 if test -z "$CC"; then
2721 if test -n "$ac_tool_prefix"; then
2722 for ac_prog in cl.exe
2724 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2725 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2727 $as_echo_n "checking for $ac_word... " >&6; }
2728 if ${ac_cv_prog_CC+:} false; then :
2729 $as_echo_n "(cached) " >&6
2730 else
2731 if test -n "$CC"; then
2732 ac_cv_prog_CC="$CC" # Let the user override the test.
2733 else
2734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2735 for as_dir in $PATH
2737 IFS=$as_save_IFS
2738 test -z "$as_dir" && as_dir=.
2739 for ac_exec_ext in '' $ac_executable_extensions; do
2740 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2741 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2743 break 2
2745 done
2746 done
2747 IFS=$as_save_IFS
2751 CC=$ac_cv_prog_CC
2752 if test -n "$CC"; then
2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2754 $as_echo "$CC" >&6; }
2755 else
2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2757 $as_echo "no" >&6; }
2761 test -n "$CC" && break
2762 done
2764 if test -z "$CC"; then
2765 ac_ct_CC=$CC
2766 for ac_prog in cl.exe
2768 # Extract the first word of "$ac_prog", so it can be a program name with args.
2769 set dummy $ac_prog; ac_word=$2
2770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2771 $as_echo_n "checking for $ac_word... " >&6; }
2772 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2773 $as_echo_n "(cached) " >&6
2774 else
2775 if test -n "$ac_ct_CC"; then
2776 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2777 else
2778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2779 for as_dir in $PATH
2781 IFS=$as_save_IFS
2782 test -z "$as_dir" && as_dir=.
2783 for ac_exec_ext in '' $ac_executable_extensions; do
2784 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2785 ac_cv_prog_ac_ct_CC="$ac_prog"
2786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2787 break 2
2789 done
2790 done
2791 IFS=$as_save_IFS
2795 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2796 if test -n "$ac_ct_CC"; then
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2798 $as_echo "$ac_ct_CC" >&6; }
2799 else
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2801 $as_echo "no" >&6; }
2805 test -n "$ac_ct_CC" && break
2806 done
2808 if test "x$ac_ct_CC" = x; then
2809 CC=""
2810 else
2811 case $cross_compiling:$ac_tool_warned in
2812 yes:)
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2814 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2815 ac_tool_warned=yes ;;
2816 esac
2817 CC=$ac_ct_CC
2824 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2825 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2826 as_fn_error $? "no acceptable C compiler found in \$PATH
2827 See \`config.log' for more details" "$LINENO" 5; }
2829 # Provide some information about the compiler.
2830 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2831 set X $ac_compile
2832 ac_compiler=$2
2833 for ac_option in --version -v -V -qversion; do
2834 { { ac_try="$ac_compiler $ac_option >&5"
2835 case "(($ac_try" in
2836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2837 *) ac_try_echo=$ac_try;;
2838 esac
2839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2840 $as_echo "$ac_try_echo"; } >&5
2841 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2842 ac_status=$?
2843 if test -s conftest.err; then
2844 sed '10a\
2845 ... rest of stderr output deleted ...
2846 10q' conftest.err >conftest.er1
2847 cat conftest.er1 >&5
2849 rm -f conftest.er1 conftest.err
2850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2851 test $ac_status = 0; }
2852 done
2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855 /* end confdefs.h. */
2856 #include <stdio.h>
2858 main ()
2860 printf ("hello world\n");
2862 return 0;
2864 _ACEOF
2865 # FIXME: Cleanup?
2866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
2867 (eval $ac_link) 2>&5
2868 ac_status=$?
2869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2870 test $ac_status = 0; }; then :
2871 gcc_no_link=no
2872 else
2873 gcc_no_link=yes
2875 if test x$gcc_no_link = xyes; then
2876 # Setting cross_compile will disable run tests; it will
2877 # also disable AC_CHECK_FILE but that's generally
2878 # correct if we can't link.
2879 cross_compiling=yes
2880 EXEEXT=
2881 else
2882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2883 /* end confdefs.h. */
2886 main ()
2890 return 0;
2892 _ACEOF
2893 ac_clean_files_save=$ac_clean_files
2894 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2895 # Try to create an executable without -o first, disregard a.out.
2896 # It will help us diagnose broken compilers, and finding out an intuition
2897 # of exeext.
2898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2899 $as_echo_n "checking whether the C compiler works... " >&6; }
2900 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2902 # The possible output files:
2903 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2905 ac_rmfiles=
2906 for ac_file in $ac_files
2908 case $ac_file in
2909 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2910 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2911 esac
2912 done
2913 rm -f $ac_rmfiles
2915 if { { ac_try="$ac_link_default"
2916 case "(($ac_try" in
2917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2918 *) ac_try_echo=$ac_try;;
2919 esac
2920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2921 $as_echo "$ac_try_echo"; } >&5
2922 (eval "$ac_link_default") 2>&5
2923 ac_status=$?
2924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2925 test $ac_status = 0; }; then :
2926 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2927 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2928 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2929 # so that the user can short-circuit this test for compilers unknown to
2930 # Autoconf.
2931 for ac_file in $ac_files ''
2933 test -f "$ac_file" || continue
2934 case $ac_file in
2935 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2937 [ab].out )
2938 # We found the default executable, but exeext='' is most
2939 # certainly right.
2940 break;;
2941 *.* )
2942 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2943 then :; else
2944 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2946 # We set ac_cv_exeext here because the later test for it is not
2947 # safe: cross compilers may not add the suffix if given an `-o'
2948 # argument, so we may need to know it at that point already.
2949 # Even if this section looks crufty: it has the advantage of
2950 # actually working.
2951 break;;
2953 break;;
2954 esac
2955 done
2956 test "$ac_cv_exeext" = no && ac_cv_exeext=
2958 else
2959 ac_file=''
2961 if test -z "$ac_file"; then :
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2963 $as_echo "no" >&6; }
2964 $as_echo "$as_me: failed program was:" >&5
2965 sed 's/^/| /' conftest.$ac_ext >&5
2967 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2968 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2969 as_fn_error 77 "C compiler cannot create executables
2970 See \`config.log' for more details" "$LINENO" 5; }
2971 else
2972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2973 $as_echo "yes" >&6; }
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2976 $as_echo_n "checking for C compiler default output file name... " >&6; }
2977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2978 $as_echo "$ac_file" >&6; }
2979 ac_exeext=$ac_cv_exeext
2981 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2982 ac_clean_files=$ac_clean_files_save
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2984 $as_echo_n "checking for suffix of executables... " >&6; }
2985 if { { ac_try="$ac_link"
2986 case "(($ac_try" in
2987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2988 *) ac_try_echo=$ac_try;;
2989 esac
2990 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2991 $as_echo "$ac_try_echo"; } >&5
2992 (eval "$ac_link") 2>&5
2993 ac_status=$?
2994 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2995 test $ac_status = 0; }; then :
2996 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2997 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2998 # work properly (i.e., refer to `conftest.exe'), while it won't with
2999 # `rm'.
3000 for ac_file in conftest.exe conftest conftest.*; do
3001 test -f "$ac_file" || continue
3002 case $ac_file in
3003 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3004 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3005 break;;
3006 * ) break;;
3007 esac
3008 done
3009 else
3010 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3011 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3012 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3013 See \`config.log' for more details" "$LINENO" 5; }
3015 rm -f conftest conftest$ac_cv_exeext
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3017 $as_echo "$ac_cv_exeext" >&6; }
3019 rm -f conftest.$ac_ext
3020 EXEEXT=$ac_cv_exeext
3021 ac_exeext=$EXEEXT
3022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3023 /* end confdefs.h. */
3024 #include <stdio.h>
3026 main ()
3028 FILE *f = fopen ("conftest.out", "w");
3029 return ferror (f) || fclose (f) != 0;
3032 return 0;
3034 _ACEOF
3035 ac_clean_files="$ac_clean_files conftest.out"
3036 # Check that the compiler produces executables we can run. If not, either
3037 # the compiler is broken, or we cross compile.
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3039 $as_echo_n "checking whether we are cross compiling... " >&6; }
3040 if test "$cross_compiling" != yes; then
3041 { { ac_try="$ac_link"
3042 case "(($ac_try" in
3043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3044 *) ac_try_echo=$ac_try;;
3045 esac
3046 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3047 $as_echo "$ac_try_echo"; } >&5
3048 (eval "$ac_link") 2>&5
3049 ac_status=$?
3050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3051 test $ac_status = 0; }
3052 if { ac_try='./conftest$ac_cv_exeext'
3053 { { case "(($ac_try" in
3054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3055 *) ac_try_echo=$ac_try;;
3056 esac
3057 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3058 $as_echo "$ac_try_echo"; } >&5
3059 (eval "$ac_try") 2>&5
3060 ac_status=$?
3061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3062 test $ac_status = 0; }; }; then
3063 cross_compiling=no
3064 else
3065 if test "$cross_compiling" = maybe; then
3066 cross_compiling=yes
3067 else
3068 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3069 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3070 as_fn_error $? "cannot run C compiled programs.
3071 If you meant to cross compile, use \`--host'.
3072 See \`config.log' for more details" "$LINENO" 5; }
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3077 $as_echo "$cross_compiling" >&6; }
3079 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3080 ac_clean_files=$ac_clean_files_save
3082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3083 $as_echo_n "checking for suffix of object files... " >&6; }
3084 if ${ac_cv_objext+:} false; then :
3085 $as_echo_n "(cached) " >&6
3086 else
3087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088 /* end confdefs.h. */
3091 main ()
3095 return 0;
3097 _ACEOF
3098 rm -f conftest.o conftest.obj
3099 if { { ac_try="$ac_compile"
3100 case "(($ac_try" in
3101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3102 *) ac_try_echo=$ac_try;;
3103 esac
3104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3105 $as_echo "$ac_try_echo"; } >&5
3106 (eval "$ac_compile") 2>&5
3107 ac_status=$?
3108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3109 test $ac_status = 0; }; then :
3110 for ac_file in conftest.o conftest.obj conftest.*; do
3111 test -f "$ac_file" || continue;
3112 case $ac_file in
3113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3114 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3115 break;;
3116 esac
3117 done
3118 else
3119 $as_echo "$as_me: failed program was:" >&5
3120 sed 's/^/| /' conftest.$ac_ext >&5
3122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3124 as_fn_error $? "cannot compute suffix of object files: cannot compile
3125 See \`config.log' for more details" "$LINENO" 5; }
3127 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3130 $as_echo "$ac_cv_objext" >&6; }
3131 OBJEXT=$ac_cv_objext
3132 ac_objext=$OBJEXT
3133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3134 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3135 if ${ac_cv_c_compiler_gnu+:} false; then :
3136 $as_echo_n "(cached) " >&6
3137 else
3138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3139 /* end confdefs.h. */
3142 main ()
3144 #ifndef __GNUC__
3145 choke me
3146 #endif
3149 return 0;
3151 _ACEOF
3152 if ac_fn_c_try_compile "$LINENO"; then :
3153 ac_compiler_gnu=yes
3154 else
3155 ac_compiler_gnu=no
3157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3158 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3162 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3163 if test $ac_compiler_gnu = yes; then
3164 GCC=yes
3165 else
3166 GCC=
3168 ac_test_CFLAGS=${CFLAGS+set}
3169 ac_save_CFLAGS=$CFLAGS
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3171 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3172 if ${ac_cv_prog_cc_g+:} false; then :
3173 $as_echo_n "(cached) " >&6
3174 else
3175 ac_save_c_werror_flag=$ac_c_werror_flag
3176 ac_c_werror_flag=yes
3177 ac_cv_prog_cc_g=no
3178 CFLAGS="-g"
3179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3180 /* end confdefs.h. */
3183 main ()
3187 return 0;
3189 _ACEOF
3190 if ac_fn_c_try_compile "$LINENO"; then :
3191 ac_cv_prog_cc_g=yes
3192 else
3193 CFLAGS=""
3194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3195 /* end confdefs.h. */
3198 main ()
3202 return 0;
3204 _ACEOF
3205 if ac_fn_c_try_compile "$LINENO"; then :
3207 else
3208 ac_c_werror_flag=$ac_save_c_werror_flag
3209 CFLAGS="-g"
3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211 /* end confdefs.h. */
3214 main ()
3218 return 0;
3220 _ACEOF
3221 if ac_fn_c_try_compile "$LINENO"; then :
3222 ac_cv_prog_cc_g=yes
3224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229 ac_c_werror_flag=$ac_save_c_werror_flag
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3232 $as_echo "$ac_cv_prog_cc_g" >&6; }
3233 if test "$ac_test_CFLAGS" = set; then
3234 CFLAGS=$ac_save_CFLAGS
3235 elif test $ac_cv_prog_cc_g = yes; then
3236 if test "$GCC" = yes; then
3237 CFLAGS="-g -O2"
3238 else
3239 CFLAGS="-g"
3241 else
3242 if test "$GCC" = yes; then
3243 CFLAGS="-O2"
3244 else
3245 CFLAGS=
3248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3249 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3250 if ${ac_cv_prog_cc_c89+:} false; then :
3251 $as_echo_n "(cached) " >&6
3252 else
3253 ac_cv_prog_cc_c89=no
3254 ac_save_CC=$CC
3255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3256 /* end confdefs.h. */
3257 #include <stdarg.h>
3258 #include <stdio.h>
3259 struct stat;
3260 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3261 struct buf { int x; };
3262 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3263 static char *e (p, i)
3264 char **p;
3265 int i;
3267 return p[i];
3269 static char *f (char * (*g) (char **, int), char **p, ...)
3271 char *s;
3272 va_list v;
3273 va_start (v,p);
3274 s = g (p, va_arg (v,int));
3275 va_end (v);
3276 return s;
3279 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3280 function prototypes and stuff, but not '\xHH' hex character constants.
3281 These don't provoke an error unfortunately, instead are silently treated
3282 as 'x'. The following induces an error, until -std is added to get
3283 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3284 array size at least. It's necessary to write '\x00'==0 to get something
3285 that's true only with -std. */
3286 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3288 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3289 inside strings and character constants. */
3290 #define FOO(x) 'x'
3291 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3293 int test (int i, double x);
3294 struct s1 {int (*f) (int a);};
3295 struct s2 {int (*f) (double a);};
3296 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3297 int argc;
3298 char **argv;
3300 main ()
3302 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3304 return 0;
3306 _ACEOF
3307 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3308 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3310 CC="$ac_save_CC $ac_arg"
3311 if ac_fn_c_try_compile "$LINENO"; then :
3312 ac_cv_prog_cc_c89=$ac_arg
3314 rm -f core conftest.err conftest.$ac_objext
3315 test "x$ac_cv_prog_cc_c89" != "xno" && break
3316 done
3317 rm -f conftest.$ac_ext
3318 CC=$ac_save_CC
3321 # AC_CACHE_VAL
3322 case "x$ac_cv_prog_cc_c89" in
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3325 $as_echo "none needed" >&6; } ;;
3326 xno)
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3328 $as_echo "unsupported" >&6; } ;;
3330 CC="$CC $ac_cv_prog_cc_c89"
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3332 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3333 esac
3334 if test "x$ac_cv_prog_cc_c89" != xno; then :
3338 ac_ext=c
3339 ac_cpp='$CPP $CPPFLAGS'
3340 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3341 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3342 ac_compiler_gnu=$ac_cv_c_compiler_gnu
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
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
3350 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
3351 if ${am_cv_prog_cc_c_o+:} false; then :
3352 $as_echo_n "(cached) " >&6
3353 else
3354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3355 /* end confdefs.h. */
3358 main ()
3362 return 0;
3364 _ACEOF
3365 # Make sure it works both with $CC and with simple cc.
3366 # Following AC_PROG_CC_C_O, we do the test twice because some
3367 # compilers refuse to overwrite an existing .o file with -o,
3368 # though they will create one.
3369 am_cv_prog_cc_c_o=yes
3370 for am_i in 1 2; do
3371 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
3372 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
3373 ac_status=$?
3374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3375 (exit $ac_status); } \
3376 && test -f conftest2.$ac_objext; then
3377 : OK
3378 else
3379 am_cv_prog_cc_c_o=no
3380 break
3382 done
3383 rm -f core conftest*
3384 unset am_i
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
3387 $as_echo "$am_cv_prog_cc_c_o" >&6; }
3388 if test "$am_cv_prog_cc_c_o" != yes; then
3389 # Losing compiler, so override with the script.
3390 # FIXME: It is wrong to rewrite CC.
3391 # But if we don't then we get into trouble of one sort or another.
3392 # A longer-term fix would be to have automake use am__CC in this case,
3393 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
3394 CC="$am_aux_dir/compile $CC"
3396 ac_ext=c
3397 ac_cpp='$CPP $CPPFLAGS'
3398 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3399 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3400 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3404 ac_ext=c
3405 ac_cpp='$CPP $CPPFLAGS'
3406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3410 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3411 # On Suns, sometimes $CPP names a directory.
3412 if test -n "$CPP" && test -d "$CPP"; then
3413 CPP=
3415 if test -z "$CPP"; then
3416 if ${ac_cv_prog_CPP+:} false; then :
3417 $as_echo_n "(cached) " >&6
3418 else
3419 # Double quotes because CPP needs to be expanded
3420 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3422 ac_preproc_ok=false
3423 for ac_c_preproc_warn_flag in '' yes
3425 # Use a header file that comes with gcc, so configuring glibc
3426 # with a fresh cross-compiler works.
3427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3428 # <limits.h> exists even on freestanding compilers.
3429 # On the NeXT, cc -E runs the code through the compiler's parser,
3430 # not just through cpp. "Syntax error" is here to catch this case.
3431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3432 /* end confdefs.h. */
3433 #ifdef __STDC__
3434 # include <limits.h>
3435 #else
3436 # include <assert.h>
3437 #endif
3438 Syntax error
3439 _ACEOF
3440 if ac_fn_c_try_cpp "$LINENO"; then :
3442 else
3443 # Broken: fails on valid input.
3444 continue
3446 rm -f conftest.err conftest.i conftest.$ac_ext
3448 # OK, works on sane cases. Now check whether nonexistent headers
3449 # can be detected and how.
3450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3451 /* end confdefs.h. */
3452 #include <ac_nonexistent.h>
3453 _ACEOF
3454 if ac_fn_c_try_cpp "$LINENO"; then :
3455 # Broken: success on invalid input.
3456 continue
3457 else
3458 # Passes both tests.
3459 ac_preproc_ok=:
3460 break
3462 rm -f conftest.err conftest.i conftest.$ac_ext
3464 done
3465 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3466 rm -f conftest.i conftest.err conftest.$ac_ext
3467 if $ac_preproc_ok; then :
3468 break
3471 done
3472 ac_cv_prog_CPP=$CPP
3475 CPP=$ac_cv_prog_CPP
3476 else
3477 ac_cv_prog_CPP=$CPP
3479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3480 $as_echo "$CPP" >&6; }
3481 ac_preproc_ok=false
3482 for ac_c_preproc_warn_flag in '' yes
3484 # Use a header file that comes with gcc, so configuring glibc
3485 # with a fresh cross-compiler works.
3486 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3487 # <limits.h> exists even on freestanding compilers.
3488 # On the NeXT, cc -E runs the code through the compiler's parser,
3489 # not just through cpp. "Syntax error" is here to catch this case.
3490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3491 /* end confdefs.h. */
3492 #ifdef __STDC__
3493 # include <limits.h>
3494 #else
3495 # include <assert.h>
3496 #endif
3497 Syntax error
3498 _ACEOF
3499 if ac_fn_c_try_cpp "$LINENO"; then :
3501 else
3502 # Broken: fails on valid input.
3503 continue
3505 rm -f conftest.err conftest.i conftest.$ac_ext
3507 # OK, works on sane cases. Now check whether nonexistent headers
3508 # can be detected and how.
3509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3510 /* end confdefs.h. */
3511 #include <ac_nonexistent.h>
3512 _ACEOF
3513 if ac_fn_c_try_cpp "$LINENO"; then :
3514 # Broken: success on invalid input.
3515 continue
3516 else
3517 # Passes both tests.
3518 ac_preproc_ok=:
3519 break
3521 rm -f conftest.err conftest.i conftest.$ac_ext
3523 done
3524 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3525 rm -f conftest.i conftest.err conftest.$ac_ext
3526 if $ac_preproc_ok; then :
3528 else
3529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3532 See \`config.log' for more details" "$LINENO" 5; }
3535 ac_ext=c
3536 ac_cpp='$CPP $CPPFLAGS'
3537 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3538 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3539 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3543 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3544 if ${ac_cv_path_GREP+:} false; then :
3545 $as_echo_n "(cached) " >&6
3546 else
3547 if test -z "$GREP"; then
3548 ac_path_GREP_found=false
3549 # Loop through the user's path and test for each of PROGNAME-LIST
3550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3551 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3553 IFS=$as_save_IFS
3554 test -z "$as_dir" && as_dir=.
3555 for ac_prog in grep ggrep; do
3556 for ac_exec_ext in '' $ac_executable_extensions; do
3557 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3558 as_fn_executable_p "$ac_path_GREP" || continue
3559 # Check for GNU ac_path_GREP and select it if it is found.
3560 # Check for GNU $ac_path_GREP
3561 case `"$ac_path_GREP" --version 2>&1` in
3562 *GNU*)
3563 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3565 ac_count=0
3566 $as_echo_n 0123456789 >"conftest.in"
3567 while :
3569 cat "conftest.in" "conftest.in" >"conftest.tmp"
3570 mv "conftest.tmp" "conftest.in"
3571 cp "conftest.in" "conftest.nl"
3572 $as_echo 'GREP' >> "conftest.nl"
3573 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3574 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3575 as_fn_arith $ac_count + 1 && ac_count=$as_val
3576 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3577 # Best one so far, save it but keep looking for a better one
3578 ac_cv_path_GREP="$ac_path_GREP"
3579 ac_path_GREP_max=$ac_count
3581 # 10*(2^10) chars as input seems more than enough
3582 test $ac_count -gt 10 && break
3583 done
3584 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3585 esac
3587 $ac_path_GREP_found && break 3
3588 done
3589 done
3590 done
3591 IFS=$as_save_IFS
3592 if test -z "$ac_cv_path_GREP"; then
3593 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3595 else
3596 ac_cv_path_GREP=$GREP
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3601 $as_echo "$ac_cv_path_GREP" >&6; }
3602 GREP="$ac_cv_path_GREP"
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3606 $as_echo_n "checking for egrep... " >&6; }
3607 if ${ac_cv_path_EGREP+:} false; then :
3608 $as_echo_n "(cached) " >&6
3609 else
3610 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3611 then ac_cv_path_EGREP="$GREP -E"
3612 else
3613 if test -z "$EGREP"; then
3614 ac_path_EGREP_found=false
3615 # Loop through the user's path and test for each of PROGNAME-LIST
3616 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3617 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3619 IFS=$as_save_IFS
3620 test -z "$as_dir" && as_dir=.
3621 for ac_prog in egrep; do
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3624 as_fn_executable_p "$ac_path_EGREP" || continue
3625 # Check for GNU ac_path_EGREP and select it if it is found.
3626 # Check for GNU $ac_path_EGREP
3627 case `"$ac_path_EGREP" --version 2>&1` in
3628 *GNU*)
3629 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3631 ac_count=0
3632 $as_echo_n 0123456789 >"conftest.in"
3633 while :
3635 cat "conftest.in" "conftest.in" >"conftest.tmp"
3636 mv "conftest.tmp" "conftest.in"
3637 cp "conftest.in" "conftest.nl"
3638 $as_echo 'EGREP' >> "conftest.nl"
3639 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3640 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3641 as_fn_arith $ac_count + 1 && ac_count=$as_val
3642 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3643 # Best one so far, save it but keep looking for a better one
3644 ac_cv_path_EGREP="$ac_path_EGREP"
3645 ac_path_EGREP_max=$ac_count
3647 # 10*(2^10) chars as input seems more than enough
3648 test $ac_count -gt 10 && break
3649 done
3650 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3651 esac
3653 $ac_path_EGREP_found && break 3
3654 done
3655 done
3656 done
3657 IFS=$as_save_IFS
3658 if test -z "$ac_cv_path_EGREP"; then
3659 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3661 else
3662 ac_cv_path_EGREP=$EGREP
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3668 $as_echo "$ac_cv_path_EGREP" >&6; }
3669 EGREP="$ac_cv_path_EGREP"
3672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3673 $as_echo_n "checking for ANSI C header files... " >&6; }
3674 if ${ac_cv_header_stdc+:} false; then :
3675 $as_echo_n "(cached) " >&6
3676 else
3677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3678 /* end confdefs.h. */
3679 #include <stdlib.h>
3680 #include <stdarg.h>
3681 #include <string.h>
3682 #include <float.h>
3685 main ()
3689 return 0;
3691 _ACEOF
3692 if ac_fn_c_try_compile "$LINENO"; then :
3693 ac_cv_header_stdc=yes
3694 else
3695 ac_cv_header_stdc=no
3697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3699 if test $ac_cv_header_stdc = yes; then
3700 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3702 /* end confdefs.h. */
3703 #include <string.h>
3705 _ACEOF
3706 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3707 $EGREP "memchr" >/dev/null 2>&1; then :
3709 else
3710 ac_cv_header_stdc=no
3712 rm -f conftest*
3716 if test $ac_cv_header_stdc = yes; then
3717 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3719 /* end confdefs.h. */
3720 #include <stdlib.h>
3722 _ACEOF
3723 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3724 $EGREP "free" >/dev/null 2>&1; then :
3726 else
3727 ac_cv_header_stdc=no
3729 rm -f conftest*
3733 if test $ac_cv_header_stdc = yes; then
3734 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3735 if test "$cross_compiling" = yes; then :
3737 else
3738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3739 /* end confdefs.h. */
3740 #include <ctype.h>
3741 #include <stdlib.h>
3742 #if ((' ' & 0x0FF) == 0x020)
3743 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3744 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3745 #else
3746 # define ISLOWER(c) \
3747 (('a' <= (c) && (c) <= 'i') \
3748 || ('j' <= (c) && (c) <= 'r') \
3749 || ('s' <= (c) && (c) <= 'z'))
3750 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3751 #endif
3753 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3755 main ()
3757 int i;
3758 for (i = 0; i < 256; i++)
3759 if (XOR (islower (i), ISLOWER (i))
3760 || toupper (i) != TOUPPER (i))
3761 return 2;
3762 return 0;
3764 _ACEOF
3765 if ac_fn_c_try_run "$LINENO"; then :
3767 else
3768 ac_cv_header_stdc=no
3770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3771 conftest.$ac_objext conftest.beam conftest.$ac_ext
3776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3777 $as_echo "$ac_cv_header_stdc" >&6; }
3778 if test $ac_cv_header_stdc = yes; then
3780 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3784 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3785 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3786 inttypes.h stdint.h unistd.h
3787 do :
3788 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3789 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3791 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3792 cat >>confdefs.h <<_ACEOF
3793 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3794 _ACEOF
3798 done
3802 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3803 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3804 MINIX=yes
3805 else
3806 MINIX=
3810 if test "$MINIX" = yes; then
3812 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3815 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3818 $as_echo "#define _MINIX 1" >>confdefs.h
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3824 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3825 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3826 $as_echo_n "(cached) " >&6
3827 else
3828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3829 /* end confdefs.h. */
3831 # define __EXTENSIONS__ 1
3832 $ac_includes_default
3834 main ()
3838 return 0;
3840 _ACEOF
3841 if ac_fn_c_try_compile "$LINENO"; then :
3842 ac_cv_safe_to_define___extensions__=yes
3843 else
3844 ac_cv_safe_to_define___extensions__=no
3846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3849 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3850 test $ac_cv_safe_to_define___extensions__ = yes &&
3851 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3853 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3855 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3857 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3859 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3863 # Do not delete or change the following two lines. For why, see
3864 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
3865 # Make sure we can run config.sub.
3866 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3867 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3870 $as_echo_n "checking build system type... " >&6; }
3871 if ${ac_cv_build+:} false; then :
3872 $as_echo_n "(cached) " >&6
3873 else
3874 ac_build_alias=$build_alias
3875 test "x$ac_build_alias" = x &&
3876 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3877 test "x$ac_build_alias" = x &&
3878 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3879 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3880 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3884 $as_echo "$ac_cv_build" >&6; }
3885 case $ac_cv_build in
3886 *-*-*) ;;
3887 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3888 esac
3889 build=$ac_cv_build
3890 ac_save_IFS=$IFS; IFS='-'
3891 set x $ac_cv_build
3892 shift
3893 build_cpu=$1
3894 build_vendor=$2
3895 shift; shift
3896 # Remember, the first character of IFS is used to create $*,
3897 # except with old shells:
3898 build_os=$*
3899 IFS=$ac_save_IFS
3900 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3904 $as_echo_n "checking host system type... " >&6; }
3905 if ${ac_cv_host+:} false; then :
3906 $as_echo_n "(cached) " >&6
3907 else
3908 if test "x$host_alias" = x; then
3909 ac_cv_host=$ac_cv_build
3910 else
3911 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3912 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3917 $as_echo "$ac_cv_host" >&6; }
3918 case $ac_cv_host in
3919 *-*-*) ;;
3920 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3921 esac
3922 host=$ac_cv_host
3923 ac_save_IFS=$IFS; IFS='-'
3924 set x $ac_cv_host
3925 shift
3926 host_cpu=$1
3927 host_vendor=$2
3928 shift; shift
3929 # Remember, the first character of IFS is used to create $*,
3930 # except with old shells:
3931 host_os=$*
3932 IFS=$ac_save_IFS
3933 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
3937 $as_echo_n "checking target system type... " >&6; }
3938 if ${ac_cv_target+:} false; then :
3939 $as_echo_n "(cached) " >&6
3940 else
3941 if test "x$target_alias" = x; then
3942 ac_cv_target=$ac_cv_host
3943 else
3944 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
3945 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3950 $as_echo "$ac_cv_target" >&6; }
3951 case $ac_cv_target in
3952 *-*-*) ;;
3953 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3954 esac
3955 target=$ac_cv_target
3956 ac_save_IFS=$IFS; IFS='-'
3957 set x $ac_cv_target
3958 shift
3959 target_cpu=$1
3960 target_vendor=$2
3961 shift; shift
3962 # Remember, the first character of IFS is used to create $*,
3963 # except with old shells:
3964 target_os=$*
3965 IFS=$ac_save_IFS
3966 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3969 # The aliases save the names the user supplied, while $host etc.
3970 # will get canonicalized.
3971 test -n "$target_alias" &&
3972 test "$program_prefix$program_suffix$program_transform_name" = \
3973 NONENONEs,x,x, &&
3974 program_prefix=${target_alias}-
3976 target_alias=${target_alias-$host_alias}
3979 if test "$build" != "$host"; then
3980 # We are being configured with some form of cross compiler.
3981 GLIBCXX_IS_NATIVE=false
3982 case "$host","$target" in
3983 # Darwin crosses can use the host system's libraries and headers,
3984 # because of the fat library support. Of course, it must be the
3985 # same version of Darwin on both sides. Allow the user to
3986 # just say --target=foo-darwin without a version number to mean
3987 # "the version on this system".
3988 *-*-darwin*,*-*-darwin*)
3989 hostos=`echo $host | sed 's/.*-darwin/darwin/'`
3990 targetos=`echo $target | sed 's/.*-darwin/darwin/'`
3991 if test $hostos = $targetos || test $targetos = darwin ; then
3992 GLIBCXX_IS_NATIVE=true
3999 esac
4000 else
4001 GLIBCXX_IS_NATIVE=true
4004 # Runs configure.host, and assorted other critical bits. Sets
4005 # up critical shell variables.
4006 GLIBCXX_CONFIGURE
4008 # For gettimeofday support.
4009 GLIBCXX_CHECK_GETTIMEOFDAY
4011 # For clock_gettime, nanosleep and sched_yield support.
4012 GLIBCXX_ENABLE_LIBSTDCXX_TIME
4015 am__api_version='1.15'
4017 # Find a good install program. We prefer a C program (faster),
4018 # so one script is as good as another. But avoid the broken or
4019 # incompatible versions:
4020 # SysV /etc/install, /usr/sbin/install
4021 # SunOS /usr/etc/install
4022 # IRIX /sbin/install
4023 # AIX /bin/install
4024 # AmigaOS /C/install, which installs bootblocks on floppy discs
4025 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4026 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4027 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4028 # OS/2's system install, which has a completely different semantic
4029 # ./install, which can be erroneously created by make from ./install.sh.
4030 # Reject install programs that cannot install multiple files.
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
4032 $as_echo_n "checking for a BSD-compatible install... " >&6; }
4033 if test -z "$INSTALL"; then
4034 if ${ac_cv_path_install+:} false; then :
4035 $as_echo_n "(cached) " >&6
4036 else
4037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4038 for as_dir in $PATH
4040 IFS=$as_save_IFS
4041 test -z "$as_dir" && as_dir=.
4042 # Account for people who put trailing slashes in PATH elements.
4043 case $as_dir/ in #((
4044 ./ | .// | /[cC]/* | \
4045 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4046 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4047 /usr/ucb/* ) ;;
4049 # OSF1 and SCO ODT 3.0 have their own names for install.
4050 # Don't use installbsd from OSF since it installs stuff as root
4051 # by default.
4052 for ac_prog in ginstall scoinst install; do
4053 for ac_exec_ext in '' $ac_executable_extensions; do
4054 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4055 if test $ac_prog = install &&
4056 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4057 # AIX install. It has an incompatible calling convention.
4059 elif test $ac_prog = install &&
4060 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4061 # program-specific install script used by HP pwplus--don't use.
4063 else
4064 rm -rf conftest.one conftest.two conftest.dir
4065 echo one > conftest.one
4066 echo two > conftest.two
4067 mkdir conftest.dir
4068 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4069 test -s conftest.one && test -s conftest.two &&
4070 test -s conftest.dir/conftest.one &&
4071 test -s conftest.dir/conftest.two
4072 then
4073 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4074 break 3
4078 done
4079 done
4081 esac
4083 done
4084 IFS=$as_save_IFS
4086 rm -rf conftest.one conftest.two conftest.dir
4089 if test "${ac_cv_path_install+set}" = set; then
4090 INSTALL=$ac_cv_path_install
4091 else
4092 # As a last resort, use the slow shell script. Don't cache a
4093 # value for INSTALL within a source directory, because that will
4094 # break other packages using the cache if that directory is
4095 # removed, or if the value is a relative name.
4096 INSTALL=$ac_install_sh
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4100 $as_echo "$INSTALL" >&6; }
4102 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4103 # It thinks the first close brace ends the variable substitution.
4104 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4106 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4108 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4111 $as_echo_n "checking whether build environment is sane... " >&6; }
4112 # Reject unsafe characters in $srcdir or the absolute working directory
4113 # name. Accept space and tab only in the latter.
4114 am_lf='
4116 case `pwd` in
4117 *[\\\"\#\$\&\'\`$am_lf]*)
4118 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4119 esac
4120 case $srcdir in
4121 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4122 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4123 esac
4125 # Do 'set' in a subshell so we don't clobber the current shell's
4126 # arguments. Must try -L first in case configure is actually a
4127 # symlink; some systems play weird games with the mod time of symlinks
4128 # (eg FreeBSD returns the mod time of the symlink's containing
4129 # directory).
4130 if (
4131 am_has_slept=no
4132 for am_try in 1 2; do
4133 echo "timestamp, slept: $am_has_slept" > conftest.file
4134 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4135 if test "$*" = "X"; then
4136 # -L didn't work.
4137 set X `ls -t "$srcdir/configure" conftest.file`
4139 if test "$*" != "X $srcdir/configure conftest.file" \
4140 && test "$*" != "X conftest.file $srcdir/configure"; then
4142 # If neither matched, then we have a broken ls. This can happen
4143 # if, for instance, CONFIG_SHELL is bash and it inherits a
4144 # broken ls alias from the environment. This has actually
4145 # happened. Such a system could not be considered "sane".
4146 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4147 alias in your environment" "$LINENO" 5
4149 if test "$2" = conftest.file || test $am_try -eq 2; then
4150 break
4152 # Just in case.
4153 sleep 1
4154 am_has_slept=yes
4155 done
4156 test "$2" = conftest.file
4158 then
4159 # Ok.
4161 else
4162 as_fn_error $? "newly created file is older than distributed files!
4163 Check your system clock" "$LINENO" 5
4165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4166 $as_echo "yes" >&6; }
4167 # If we didn't sleep, we still need to ensure time stamps of config.status and
4168 # generated files are strictly newer.
4169 am_sleep_pid=
4170 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4171 ( sleep 1 ) &
4172 am_sleep_pid=$!
4175 rm -f conftest.file
4177 test "$program_prefix" != NONE &&
4178 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4179 # Use a double $ so make ignores it.
4180 test "$program_suffix" != NONE &&
4181 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4182 # Double any \ or $.
4183 # By default was `s,x,x', remove it if useless.
4184 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4185 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4187 if test x"${MISSING+set}" != xset; then
4188 case $am_aux_dir in
4189 *\ * | *\ *)
4190 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4192 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4193 esac
4195 # Use eval to expand $SHELL
4196 if eval "$MISSING --is-lightweight"; then
4197 am_missing_run="$MISSING "
4198 else
4199 am_missing_run=
4200 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4201 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4204 if test x"${install_sh+set}" != xset; then
4205 case $am_aux_dir in
4206 *\ * | *\ *)
4207 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4209 install_sh="\${SHELL} $am_aux_dir/install-sh"
4210 esac
4213 # Installed binaries are usually stripped using 'strip' when the user
4214 # run "make install-strip". However 'strip' might not be the right
4215 # tool to use in cross-compilation environments, therefore Automake
4216 # will honor the 'STRIP' environment variable to overrule this program.
4217 if test "$cross_compiling" != no; then
4218 if test -n "$ac_tool_prefix"; then
4219 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4220 set dummy ${ac_tool_prefix}strip; ac_word=$2
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4222 $as_echo_n "checking for $ac_word... " >&6; }
4223 if ${ac_cv_prog_STRIP+:} false; then :
4224 $as_echo_n "(cached) " >&6
4225 else
4226 if test -n "$STRIP"; then
4227 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4228 else
4229 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4230 for as_dir in $PATH
4232 IFS=$as_save_IFS
4233 test -z "$as_dir" && as_dir=.
4234 for ac_exec_ext in '' $ac_executable_extensions; do
4235 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4236 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4237 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4238 break 2
4240 done
4241 done
4242 IFS=$as_save_IFS
4246 STRIP=$ac_cv_prog_STRIP
4247 if test -n "$STRIP"; then
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4249 $as_echo "$STRIP" >&6; }
4250 else
4251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 $as_echo "no" >&6; }
4257 if test -z "$ac_cv_prog_STRIP"; then
4258 ac_ct_STRIP=$STRIP
4259 # Extract the first word of "strip", so it can be a program name with args.
4260 set dummy strip; ac_word=$2
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4262 $as_echo_n "checking for $ac_word... " >&6; }
4263 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4264 $as_echo_n "(cached) " >&6
4265 else
4266 if test -n "$ac_ct_STRIP"; then
4267 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4268 else
4269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH
4272 IFS=$as_save_IFS
4273 test -z "$as_dir" && as_dir=.
4274 for ac_exec_ext in '' $ac_executable_extensions; do
4275 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4276 ac_cv_prog_ac_ct_STRIP="strip"
4277 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4278 break 2
4280 done
4281 done
4282 IFS=$as_save_IFS
4286 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4287 if test -n "$ac_ct_STRIP"; then
4288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4289 $as_echo "$ac_ct_STRIP" >&6; }
4290 else
4291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4292 $as_echo "no" >&6; }
4295 if test "x$ac_ct_STRIP" = x; then
4296 STRIP=":"
4297 else
4298 case $cross_compiling:$ac_tool_warned in
4299 yes:)
4300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4301 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4302 ac_tool_warned=yes ;;
4303 esac
4304 STRIP=$ac_ct_STRIP
4306 else
4307 STRIP="$ac_cv_prog_STRIP"
4311 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4314 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4315 if test -z "$MKDIR_P"; then
4316 if ${ac_cv_path_mkdir+:} false; then :
4317 $as_echo_n "(cached) " >&6
4318 else
4319 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4320 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4322 IFS=$as_save_IFS
4323 test -z "$as_dir" && as_dir=.
4324 for ac_prog in mkdir gmkdir; do
4325 for ac_exec_ext in '' $ac_executable_extensions; do
4326 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4327 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4328 'mkdir (GNU coreutils) '* | \
4329 'mkdir (coreutils) '* | \
4330 'mkdir (fileutils) '4.1*)
4331 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4332 break 3;;
4333 esac
4334 done
4335 done
4336 done
4337 IFS=$as_save_IFS
4341 test -d ./--version && rmdir ./--version
4342 if test "${ac_cv_path_mkdir+set}" = set; then
4343 MKDIR_P="$ac_cv_path_mkdir -p"
4344 else
4345 # As a last resort, use the slow shell script. Don't cache a
4346 # value for MKDIR_P within a source directory, because that will
4347 # break other packages using the cache if that directory is
4348 # removed, or if the value is a relative name.
4349 MKDIR_P="$ac_install_sh -d"
4352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4353 $as_echo "$MKDIR_P" >&6; }
4355 for ac_prog in gawk mawk nawk awk
4357 # Extract the first word of "$ac_prog", so it can be a program name with args.
4358 set dummy $ac_prog; ac_word=$2
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4360 $as_echo_n "checking for $ac_word... " >&6; }
4361 if ${ac_cv_prog_AWK+:} false; then :
4362 $as_echo_n "(cached) " >&6
4363 else
4364 if test -n "$AWK"; then
4365 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4366 else
4367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4368 for as_dir in $PATH
4370 IFS=$as_save_IFS
4371 test -z "$as_dir" && as_dir=.
4372 for ac_exec_ext in '' $ac_executable_extensions; do
4373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4374 ac_cv_prog_AWK="$ac_prog"
4375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4376 break 2
4378 done
4379 done
4380 IFS=$as_save_IFS
4384 AWK=$ac_cv_prog_AWK
4385 if test -n "$AWK"; then
4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4387 $as_echo "$AWK" >&6; }
4388 else
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4390 $as_echo "no" >&6; }
4394 test -n "$AWK" && break
4395 done
4397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4398 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4399 set x ${MAKE-make}
4400 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4401 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4402 $as_echo_n "(cached) " >&6
4403 else
4404 cat >conftest.make <<\_ACEOF
4405 SHELL = /bin/sh
4406 all:
4407 @echo '@@@%%%=$(MAKE)=@@@%%%'
4408 _ACEOF
4409 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4410 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4411 *@@@%%%=?*=@@@%%%*)
4412 eval ac_cv_prog_make_${ac_make}_set=yes;;
4414 eval ac_cv_prog_make_${ac_make}_set=no;;
4415 esac
4416 rm -f conftest.make
4418 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4420 $as_echo "yes" >&6; }
4421 SET_MAKE=
4422 else
4423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4424 $as_echo "no" >&6; }
4425 SET_MAKE="MAKE=${MAKE-make}"
4428 rm -rf .tst 2>/dev/null
4429 mkdir .tst 2>/dev/null
4430 if test -d .tst; then
4431 am__leading_dot=.
4432 else
4433 am__leading_dot=_
4435 rmdir .tst 2>/dev/null
4437 DEPDIR="${am__leading_dot}deps"
4439 ac_config_commands="$ac_config_commands depfiles"
4442 am_make=${MAKE-make}
4443 cat > confinc << 'END'
4444 am__doit:
4445 @echo this is the am__doit target
4446 .PHONY: am__doit
4448 # If we don't find an include directive, just comment out the code.
4449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4450 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4451 am__include="#"
4452 am__quote=
4453 _am_result=none
4454 # First try GNU make style include.
4455 echo "include confinc" > confmf
4456 # Ignore all kinds of additional output from 'make'.
4457 case `$am_make -s -f confmf 2> /dev/null` in #(
4458 *the\ am__doit\ target*)
4459 am__include=include
4460 am__quote=
4461 _am_result=GNU
4463 esac
4464 # Now try BSD make style include.
4465 if test "$am__include" = "#"; then
4466 echo '.include "confinc"' > confmf
4467 case `$am_make -s -f confmf 2> /dev/null` in #(
4468 *the\ am__doit\ target*)
4469 am__include=.include
4470 am__quote="\""
4471 _am_result=BSD
4473 esac
4477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4478 $as_echo "$_am_result" >&6; }
4479 rm -f confinc confmf
4481 # Check whether --enable-dependency-tracking was given.
4482 if test "${enable_dependency_tracking+set}" = set; then :
4483 enableval=$enable_dependency_tracking;
4486 if test "x$enable_dependency_tracking" != xno; then
4487 am_depcomp="$ac_aux_dir/depcomp"
4488 AMDEPBACKSLASH='\'
4489 am__nodep='_no'
4491 if test "x$enable_dependency_tracking" != xno; then
4492 AMDEP_TRUE=
4493 AMDEP_FALSE='#'
4494 else
4495 AMDEP_TRUE='#'
4496 AMDEP_FALSE=
4500 # Check whether --enable-silent-rules was given.
4501 if test "${enable_silent_rules+set}" = set; then :
4502 enableval=$enable_silent_rules;
4505 case $enable_silent_rules in # (((
4506 yes) AM_DEFAULT_VERBOSITY=0;;
4507 no) AM_DEFAULT_VERBOSITY=1;;
4508 *) AM_DEFAULT_VERBOSITY=1;;
4509 esac
4510 am_make=${MAKE-make}
4511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4512 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4513 if ${am_cv_make_support_nested_variables+:} false; then :
4514 $as_echo_n "(cached) " >&6
4515 else
4516 if $as_echo 'TRUE=$(BAR$(V))
4517 BAR0=false
4518 BAR1=true
4520 am__doit:
4521 @$(TRUE)
4522 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4523 am_cv_make_support_nested_variables=yes
4524 else
4525 am_cv_make_support_nested_variables=no
4528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4529 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4530 if test $am_cv_make_support_nested_variables = yes; then
4531 AM_V='$(V)'
4532 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4533 else
4534 AM_V=$AM_DEFAULT_VERBOSITY
4535 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4537 AM_BACKSLASH='\'
4539 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4540 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4541 # is not polluted with repeated "-I."
4542 am__isrc=' -I$(srcdir)'
4543 # test to see if srcdir already configured
4544 if test -f $srcdir/config.status; then
4545 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4549 # test whether we have cygpath
4550 if test -z "$CYGPATH_W"; then
4551 if (cygpath --version) >/dev/null 2>/dev/null; then
4552 CYGPATH_W='cygpath -w'
4553 else
4554 CYGPATH_W=echo
4559 # Define the identity of the package.
4560 PACKAGE='libgm2'
4561 VERSION='version-unused'
4564 # Some tools Automake needs.
4566 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4569 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4572 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4575 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4578 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4580 # For better backward compatibility. To be removed once Automake 1.9.x
4581 # dies out for good. For more background, see:
4582 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4583 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4584 mkdir_p='$(MKDIR_P)'
4586 # We need awk for the "check" target (and possibly the TAP driver). The
4587 # system "awk" is bad on some platforms.
4588 # Always define AMTAR for backward compatibility. Yes, it's still used
4589 # in the wild :-( We should find a proper way to deprecate it ...
4590 AMTAR='$${TAR-tar}'
4593 # We'll loop over all known methods to create a tar archive until one works.
4594 _am_tools='gnutar pax cpio none'
4596 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4602 depcc="$CC" am_compiler_list=
4604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4605 $as_echo_n "checking dependency style of $depcc... " >&6; }
4606 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4607 $as_echo_n "(cached) " >&6
4608 else
4609 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4610 # We make a subdir and do the tests there. Otherwise we can end up
4611 # making bogus files that we don't know about and never remove. For
4612 # instance it was reported that on HP-UX the gcc test will end up
4613 # making a dummy file named 'D' -- because '-MD' means "put the output
4614 # in D".
4615 rm -rf conftest.dir
4616 mkdir conftest.dir
4617 # Copy depcomp to subdir because otherwise we won't find it if we're
4618 # using a relative directory.
4619 cp "$am_depcomp" conftest.dir
4620 cd conftest.dir
4621 # We will build objects and dependencies in a subdirectory because
4622 # it helps to detect inapplicable dependency modes. For instance
4623 # both Tru64's cc and ICC support -MD to output dependencies as a
4624 # side effect of compilation, but ICC will put the dependencies in
4625 # the current directory while Tru64 will put them in the object
4626 # directory.
4627 mkdir sub
4629 am_cv_CC_dependencies_compiler_type=none
4630 if test "$am_compiler_list" = ""; then
4631 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4633 am__universal=false
4634 case " $depcc " in #(
4635 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4636 esac
4638 for depmode in $am_compiler_list; do
4639 # Setup a source with many dependencies, because some compilers
4640 # like to wrap large dependency lists on column 80 (with \), and
4641 # we should not choose a depcomp mode which is confused by this.
4643 # We need to recreate these files for each test, as the compiler may
4644 # overwrite some of them when testing with obscure command lines.
4645 # This happens at least with the AIX C compiler.
4646 : > sub/conftest.c
4647 for i in 1 2 3 4 5 6; do
4648 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4649 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4650 # Solaris 10 /bin/sh.
4651 echo '/* dummy */' > sub/conftst$i.h
4652 done
4653 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4655 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4656 # mode. It turns out that the SunPro C++ compiler does not properly
4657 # handle '-M -o', and we need to detect this. Also, some Intel
4658 # versions had trouble with output in subdirs.
4659 am__obj=sub/conftest.${OBJEXT-o}
4660 am__minus_obj="-o $am__obj"
4661 case $depmode in
4662 gcc)
4663 # This depmode causes a compiler race in universal mode.
4664 test "$am__universal" = false || continue
4666 nosideeffect)
4667 # After this tag, mechanisms are not by side-effect, so they'll
4668 # only be used when explicitly requested.
4669 if test "x$enable_dependency_tracking" = xyes; then
4670 continue
4671 else
4672 break
4675 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4676 # This compiler won't grok '-c -o', but also, the minuso test has
4677 # not run yet. These depmodes are late enough in the game, and
4678 # so weak that their functioning should not be impacted.
4679 am__obj=conftest.${OBJEXT-o}
4680 am__minus_obj=
4682 none) break ;;
4683 esac
4684 if depmode=$depmode \
4685 source=sub/conftest.c object=$am__obj \
4686 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4687 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4688 >/dev/null 2>conftest.err &&
4689 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4690 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4691 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4692 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4693 # icc doesn't choke on unknown options, it will just issue warnings
4694 # or remarks (even with -Werror). So we grep stderr for any message
4695 # that says an option was ignored or not supported.
4696 # When given -MP, icc 7.0 and 7.1 complain thusly:
4697 # icc: Command line warning: ignoring option '-M'; no argument required
4698 # The diagnosis changed in icc 8.0:
4699 # icc: Command line remark: option '-MP' not supported
4700 if (grep 'ignoring option' conftest.err ||
4701 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4702 am_cv_CC_dependencies_compiler_type=$depmode
4703 break
4706 done
4708 cd ..
4709 rm -rf conftest.dir
4710 else
4711 am_cv_CC_dependencies_compiler_type=none
4715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4716 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4717 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4720 test "x$enable_dependency_tracking" != xno \
4721 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4722 am__fastdepCC_TRUE=
4723 am__fastdepCC_FALSE='#'
4724 else
4725 am__fastdepCC_TRUE='#'
4726 am__fastdepCC_FALSE=
4731 # POSIX will say in a future version that running "rm -f" with no argument
4732 # is OK; and we want to be able to make that assumption in our Makefile
4733 # recipes. So use an aggressive probe to check that the usage we want is
4734 # actually supported "in the wild" to an acceptable degree.
4735 # See automake bug#10828.
4736 # To make any issue more visible, cause the running configure to be aborted
4737 # by default if the 'rm' program in use doesn't match our expectations; the
4738 # user can still override this though.
4739 if rm -f && rm -fr && rm -rf; then : OK; else
4740 cat >&2 <<'END'
4741 Oops!
4743 Your 'rm' program seems unable to run without file operands specified
4744 on the command line, even when the '-f' option is present. This is contrary
4745 to the behaviour of most rm programs out there, and not conforming with
4746 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4748 Please tell bug-automake@gnu.org about your system, including the value
4749 of your $PATH and any error possibly output before this message. This
4750 can help us improve future automake versions.
4753 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4754 echo 'Configuration will proceed anyway, since you have set the' >&2
4755 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4756 echo >&2
4757 else
4758 cat >&2 <<'END'
4759 Aborting the configuration process, to ensure you take notice of the issue.
4761 You can download and install GNU coreutils to get an 'rm' implementation
4762 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4764 If you want to complete the configuration process using your problematic
4765 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4766 to "yes", and re-run configure.
4769 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4778 # Check whether --with-cross-host was given.
4779 if test "${with_cross_host+set}" = set; then :
4780 withval=$with_cross_host;
4784 # Checks for header files.
4785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4786 $as_echo_n "checking for ANSI C header files... " >&6; }
4787 if ${ac_cv_header_stdc+:} false; then :
4788 $as_echo_n "(cached) " >&6
4789 else
4790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4791 /* end confdefs.h. */
4792 #include <stdlib.h>
4793 #include <stdarg.h>
4794 #include <string.h>
4795 #include <float.h>
4798 main ()
4802 return 0;
4804 _ACEOF
4805 if ac_fn_c_try_compile "$LINENO"; then :
4806 ac_cv_header_stdc=yes
4807 else
4808 ac_cv_header_stdc=no
4810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4812 if test $ac_cv_header_stdc = yes; then
4813 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4815 /* end confdefs.h. */
4816 #include <string.h>
4818 _ACEOF
4819 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4820 $EGREP "memchr" >/dev/null 2>&1; then :
4822 else
4823 ac_cv_header_stdc=no
4825 rm -f conftest*
4829 if test $ac_cv_header_stdc = yes; then
4830 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4833 #include <stdlib.h>
4835 _ACEOF
4836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4837 $EGREP "free" >/dev/null 2>&1; then :
4839 else
4840 ac_cv_header_stdc=no
4842 rm -f conftest*
4846 if test $ac_cv_header_stdc = yes; then
4847 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4848 if test "$cross_compiling" = yes; then :
4850 else
4851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4852 /* end confdefs.h. */
4853 #include <ctype.h>
4854 #include <stdlib.h>
4855 #if ((' ' & 0x0FF) == 0x020)
4856 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4857 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4858 #else
4859 # define ISLOWER(c) \
4860 (('a' <= (c) && (c) <= 'i') \
4861 || ('j' <= (c) && (c) <= 'r') \
4862 || ('s' <= (c) && (c) <= 'z'))
4863 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4864 #endif
4866 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4868 main ()
4870 int i;
4871 for (i = 0; i < 256; i++)
4872 if (XOR (islower (i), ISLOWER (i))
4873 || toupper (i) != TOUPPER (i))
4874 return 2;
4875 return 0;
4877 _ACEOF
4878 if ac_fn_c_try_run "$LINENO"; then :
4880 else
4881 ac_cv_header_stdc=no
4883 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4884 conftest.$ac_objext conftest.beam conftest.$ac_ext
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4890 $as_echo "$ac_cv_header_stdc" >&6; }
4891 if test $ac_cv_header_stdc = yes; then
4893 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4898 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4899 if ${ac_cv_header_sys_wait_h+:} false; then :
4900 $as_echo_n "(cached) " >&6
4901 else
4902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4903 /* end confdefs.h. */
4904 #include <sys/types.h>
4905 #include <sys/wait.h>
4906 #ifndef WEXITSTATUS
4907 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4908 #endif
4909 #ifndef WIFEXITED
4910 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4911 #endif
4914 main ()
4916 int s;
4917 wait (&s);
4918 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4920 return 0;
4922 _ACEOF
4923 if ac_fn_c_try_compile "$LINENO"; then :
4924 ac_cv_header_sys_wait_h=yes
4925 else
4926 ac_cv_header_sys_wait_h=no
4928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4931 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4932 if test $ac_cv_header_sys_wait_h = yes; then
4934 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4938 ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
4939 if test "x$ac_cv_header_math_h" = xyes; then :
4941 $as_echo "#define HAVE_MATH_H 1" >>confdefs.h
4947 for ac_header in limits.h stddef.h string.h strings.h stdlib.h \
4948 time.h \
4949 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
4950 sys/resource.h sys/param.h sys/times.h sys/stat.h \
4951 sys/socket.h \
4952 sys/wait.h sys/ioctl.h errno.h sys/errno.h \
4953 pwd.h direct.h dirent.h signal.h malloc.h langinfo.h \
4954 pthread.h stdarg.h stdio.h sys/types.h termios.h \
4955 netinet/in.h netdb.h sys/uio.h sys/stat.h wchar.h
4956 do :
4957 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4958 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4959 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4960 cat >>confdefs.h <<_ACEOF
4961 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4962 _ACEOF
4966 done
4971 case ${build_alias} in
4972 "") build_noncanonical=${build} ;;
4973 *) build_noncanonical=${build_alias} ;;
4974 esac
4976 case ${host_alias} in
4977 "") host_noncanonical=${build_noncanonical} ;;
4978 *) host_noncanonical=${host_alias} ;;
4979 esac
4983 case ${target_alias} in
4984 "") target_noncanonical=${host_noncanonical} ;;
4985 *) target_noncanonical=${target_alias} ;;
4986 esac
4991 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
4992 # have matching libraries, they should use host libraries: Makefile.tpl
4993 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
4994 # However, they still use the build modules, because the corresponding
4995 # host modules (e.g. bison) are only built for the host when bootstrap
4996 # finishes. So:
4997 # - build_subdir is where we find build modules, and never changes.
4998 # - build_libsubdir is where we find build libraries, and can be overridden.
5000 # Prefix 'build-' so this never conflicts with target_subdir.
5001 build_subdir="build-${build_noncanonical}"
5003 # Check whether --with-build-libsubdir was given.
5004 if test "${with_build_libsubdir+set}" = set; then :
5005 withval=$with_build_libsubdir; build_libsubdir="$withval"
5006 else
5007 build_libsubdir="$build_subdir"
5010 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
5011 if ( test $srcdir = . && test -d gcc ) \
5012 || test -d $srcdir/../host-${host_noncanonical}; then
5013 host_subdir="host-${host_noncanonical}"
5014 else
5015 host_subdir=.
5017 # No prefix.
5018 target_subdir=${target_noncanonical}
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
5022 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
5023 # Check whether --enable-version-specific-runtime-libs was given.
5024 if test "${enable_version_specific_runtime_libs+set}" = set; then :
5025 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
5026 yes) version_specific_libs=yes ;;
5027 no) version_specific_libs=no ;;
5028 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
5029 esac
5030 else
5031 version_specific_libs=no
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
5035 $as_echo "$version_specific_libs" >&6; }
5038 # Check whether --with-slibdir was given.
5039 if test "${with_slibdir+set}" = set; then :
5040 withval=$with_slibdir; slibdir="$with_slibdir"
5041 else
5042 if test "${version_specific_libs}" = yes; then
5043 slibdir='$(libsubdir)'
5044 elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
5045 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
5046 else
5047 slibdir='$(libdir)'
5053 # Command-line options.
5054 # Very limited version of AC_MAINTAINER_MODE.
5055 # Check whether --enable-maintainer-mode was given.
5056 if test "${enable_maintainer_mode+set}" = set; then :
5057 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
5058 yes) MAINT='' ;;
5059 no) MAINT='#' ;;
5060 *) as_fn_error $? "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
5061 esac
5062 maintainer_mode=${enableval}
5063 else
5064 MAINT='#'
5068 toolexecdir=no
5069 toolexeclibdir=no
5071 # Calculate toolexeclibdir
5072 # Also toolexecdir, though it's only used in toolexeclibdir
5073 case ${version_specific_libs} in
5074 yes)
5075 # Need the gcc compiler version to know where to install libraries
5076 # and header files if --enable-version-specific-runtime-libs option
5077 # is selected.
5078 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
5079 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5082 if test -n "$with_cross_host" &&
5083 test x"$with_cross_host" != x"no"; then
5084 # Install a library built with a cross compiler in tooldir, not libdir.
5085 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
5086 toolexeclibdir='$(toolexecdir)/lib'
5087 else
5088 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
5089 toolexeclibdir='$(libdir)'
5091 multi_os_directory=`$CC -print-multi-os-directory`
5092 case $multi_os_directory in
5093 .) ;; # Avoid trailing /.
5094 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5095 esac
5097 esac
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5107 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5108 # Check whether --enable-maintainer-mode was given.
5109 if test "${enable_maintainer_mode+set}" = set; then :
5110 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5111 else
5112 USE_MAINTAINER_MODE=no
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5116 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5117 if test $USE_MAINTAINER_MODE = yes; then
5118 MAINTAINER_MODE_TRUE=
5119 MAINTAINER_MODE_FALSE='#'
5120 else
5121 MAINTAINER_MODE_TRUE='#'
5122 MAINTAINER_MODE_FALSE=
5125 MAINT=$MAINTAINER_MODE_TRUE
5129 # Check the compiler.
5130 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
5131 # We must force CC to /not/ be precious variables; otherwise
5132 # the wrong, non-multilib-adjusted value will be used in multilibs.
5133 # As a side effect, we have to subst CFLAGS ourselves.
5137 ac_ext=c
5138 ac_cpp='$CPP $CPPFLAGS'
5139 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5140 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5141 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5142 if test -n "$ac_tool_prefix"; then
5143 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5144 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5146 $as_echo_n "checking for $ac_word... " >&6; }
5147 if ${ac_cv_prog_CC+:} false; then :
5148 $as_echo_n "(cached) " >&6
5149 else
5150 if test -n "$CC"; then
5151 ac_cv_prog_CC="$CC" # Let the user override the test.
5152 else
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 for as_dir in $PATH
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5160 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5161 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 break 2
5164 done
5165 done
5166 IFS=$as_save_IFS
5170 CC=$ac_cv_prog_CC
5171 if test -n "$CC"; then
5172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5173 $as_echo "$CC" >&6; }
5174 else
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5176 $as_echo "no" >&6; }
5181 if test -z "$ac_cv_prog_CC"; then
5182 ac_ct_CC=$CC
5183 # Extract the first word of "gcc", so it can be a program name with args.
5184 set dummy gcc; ac_word=$2
5185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5186 $as_echo_n "checking for $ac_word... " >&6; }
5187 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5188 $as_echo_n "(cached) " >&6
5189 else
5190 if test -n "$ac_ct_CC"; then
5191 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5192 else
5193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5194 for as_dir in $PATH
5196 IFS=$as_save_IFS
5197 test -z "$as_dir" && as_dir=.
5198 for ac_exec_ext in '' $ac_executable_extensions; do
5199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5200 ac_cv_prog_ac_ct_CC="gcc"
5201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5202 break 2
5204 done
5205 done
5206 IFS=$as_save_IFS
5210 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5211 if test -n "$ac_ct_CC"; then
5212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5213 $as_echo "$ac_ct_CC" >&6; }
5214 else
5215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5216 $as_echo "no" >&6; }
5219 if test "x$ac_ct_CC" = x; then
5220 CC=""
5221 else
5222 case $cross_compiling:$ac_tool_warned in
5223 yes:)
5224 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5225 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5226 ac_tool_warned=yes ;;
5227 esac
5228 CC=$ac_ct_CC
5230 else
5231 CC="$ac_cv_prog_CC"
5234 if test -z "$CC"; then
5235 if test -n "$ac_tool_prefix"; then
5236 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5237 set dummy ${ac_tool_prefix}cc; ac_word=$2
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5239 $as_echo_n "checking for $ac_word... " >&6; }
5240 if ${ac_cv_prog_CC+:} false; then :
5241 $as_echo_n "(cached) " >&6
5242 else
5243 if test -n "$CC"; then
5244 ac_cv_prog_CC="$CC" # Let the user override the test.
5245 else
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in $PATH
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5253 ac_cv_prog_CC="${ac_tool_prefix}cc"
5254 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 break 2
5257 done
5258 done
5259 IFS=$as_save_IFS
5263 CC=$ac_cv_prog_CC
5264 if test -n "$CC"; then
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5266 $as_echo "$CC" >&6; }
5267 else
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5269 $as_echo "no" >&6; }
5275 if test -z "$CC"; then
5276 # Extract the first word of "cc", so it can be a program name with args.
5277 set dummy cc; ac_word=$2
5278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5279 $as_echo_n "checking for $ac_word... " >&6; }
5280 if ${ac_cv_prog_CC+:} false; then :
5281 $as_echo_n "(cached) " >&6
5282 else
5283 if test -n "$CC"; then
5284 ac_cv_prog_CC="$CC" # Let the user override the test.
5285 else
5286 ac_prog_rejected=no
5287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5288 for as_dir in $PATH
5290 IFS=$as_save_IFS
5291 test -z "$as_dir" && as_dir=.
5292 for ac_exec_ext in '' $ac_executable_extensions; do
5293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5294 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5295 ac_prog_rejected=yes
5296 continue
5298 ac_cv_prog_CC="cc"
5299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5300 break 2
5302 done
5303 done
5304 IFS=$as_save_IFS
5306 if test $ac_prog_rejected = yes; then
5307 # We found a bogon in the path, so make sure we never use it.
5308 set dummy $ac_cv_prog_CC
5309 shift
5310 if test $# != 0; then
5311 # We chose a different compiler from the bogus one.
5312 # However, it has the same basename, so the bogon will be chosen
5313 # first if we set CC to just the basename; use the full file name.
5314 shift
5315 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5320 CC=$ac_cv_prog_CC
5321 if test -n "$CC"; then
5322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5323 $as_echo "$CC" >&6; }
5324 else
5325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5326 $as_echo "no" >&6; }
5331 if test -z "$CC"; then
5332 if test -n "$ac_tool_prefix"; then
5333 for ac_prog in cl.exe
5335 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5336 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5338 $as_echo_n "checking for $ac_word... " >&6; }
5339 if ${ac_cv_prog_CC+:} false; then :
5340 $as_echo_n "(cached) " >&6
5341 else
5342 if test -n "$CC"; then
5343 ac_cv_prog_CC="$CC" # Let the user override the test.
5344 else
5345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5346 for as_dir in $PATH
5348 IFS=$as_save_IFS
5349 test -z "$as_dir" && as_dir=.
5350 for ac_exec_ext in '' $ac_executable_extensions; do
5351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5352 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5354 break 2
5356 done
5357 done
5358 IFS=$as_save_IFS
5362 CC=$ac_cv_prog_CC
5363 if test -n "$CC"; then
5364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5365 $as_echo "$CC" >&6; }
5366 else
5367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5368 $as_echo "no" >&6; }
5372 test -n "$CC" && break
5373 done
5375 if test -z "$CC"; then
5376 ac_ct_CC=$CC
5377 for ac_prog in cl.exe
5379 # Extract the first word of "$ac_prog", so it can be a program name with args.
5380 set dummy $ac_prog; ac_word=$2
5381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5382 $as_echo_n "checking for $ac_word... " >&6; }
5383 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5384 $as_echo_n "(cached) " >&6
5385 else
5386 if test -n "$ac_ct_CC"; then
5387 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5388 else
5389 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5390 for as_dir in $PATH
5392 IFS=$as_save_IFS
5393 test -z "$as_dir" && as_dir=.
5394 for ac_exec_ext in '' $ac_executable_extensions; do
5395 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5396 ac_cv_prog_ac_ct_CC="$ac_prog"
5397 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5398 break 2
5400 done
5401 done
5402 IFS=$as_save_IFS
5406 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5407 if test -n "$ac_ct_CC"; then
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5409 $as_echo "$ac_ct_CC" >&6; }
5410 else
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5412 $as_echo "no" >&6; }
5416 test -n "$ac_ct_CC" && break
5417 done
5419 if test "x$ac_ct_CC" = x; then
5420 CC=""
5421 else
5422 case $cross_compiling:$ac_tool_warned in
5423 yes:)
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5425 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5426 ac_tool_warned=yes ;;
5427 esac
5428 CC=$ac_ct_CC
5435 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5436 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5437 as_fn_error $? "no acceptable C compiler found in \$PATH
5438 See \`config.log' for more details" "$LINENO" 5; }
5440 # Provide some information about the compiler.
5441 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5442 set X $ac_compile
5443 ac_compiler=$2
5444 for ac_option in --version -v -V -qversion; do
5445 { { ac_try="$ac_compiler $ac_option >&5"
5446 case "(($ac_try" in
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5449 esac
5450 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5451 $as_echo "$ac_try_echo"; } >&5
5452 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5453 ac_status=$?
5454 if test -s conftest.err; then
5455 sed '10a\
5456 ... rest of stderr output deleted ...
5457 10q' conftest.err >conftest.er1
5458 cat conftest.er1 >&5
5460 rm -f conftest.er1 conftest.err
5461 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5462 test $ac_status = 0; }
5463 done
5465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5466 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5467 if ${ac_cv_c_compiler_gnu+:} false; then :
5468 $as_echo_n "(cached) " >&6
5469 else
5470 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5471 /* end confdefs.h. */
5474 main ()
5476 #ifndef __GNUC__
5477 choke me
5478 #endif
5481 return 0;
5483 _ACEOF
5484 if ac_fn_c_try_compile "$LINENO"; then :
5485 ac_compiler_gnu=yes
5486 else
5487 ac_compiler_gnu=no
5489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5490 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5494 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5495 if test $ac_compiler_gnu = yes; then
5496 GCC=yes
5497 else
5498 GCC=
5500 ac_test_CFLAGS=${CFLAGS+set}
5501 ac_save_CFLAGS=$CFLAGS
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5503 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5504 if ${ac_cv_prog_cc_g+:} false; then :
5505 $as_echo_n "(cached) " >&6
5506 else
5507 ac_save_c_werror_flag=$ac_c_werror_flag
5508 ac_c_werror_flag=yes
5509 ac_cv_prog_cc_g=no
5510 CFLAGS="-g"
5511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5512 /* end confdefs.h. */
5515 main ()
5519 return 0;
5521 _ACEOF
5522 if ac_fn_c_try_compile "$LINENO"; then :
5523 ac_cv_prog_cc_g=yes
5524 else
5525 CFLAGS=""
5526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5527 /* end confdefs.h. */
5530 main ()
5534 return 0;
5536 _ACEOF
5537 if ac_fn_c_try_compile "$LINENO"; then :
5539 else
5540 ac_c_werror_flag=$ac_save_c_werror_flag
5541 CFLAGS="-g"
5542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5543 /* end confdefs.h. */
5546 main ()
5550 return 0;
5552 _ACEOF
5553 if ac_fn_c_try_compile "$LINENO"; then :
5554 ac_cv_prog_cc_g=yes
5556 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5561 ac_c_werror_flag=$ac_save_c_werror_flag
5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5564 $as_echo "$ac_cv_prog_cc_g" >&6; }
5565 if test "$ac_test_CFLAGS" = set; then
5566 CFLAGS=$ac_save_CFLAGS
5567 elif test $ac_cv_prog_cc_g = yes; then
5568 if test "$GCC" = yes; then
5569 CFLAGS="-g -O2"
5570 else
5571 CFLAGS="-g"
5573 else
5574 if test "$GCC" = yes; then
5575 CFLAGS="-O2"
5576 else
5577 CFLAGS=
5580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5581 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5582 if ${ac_cv_prog_cc_c89+:} false; then :
5583 $as_echo_n "(cached) " >&6
5584 else
5585 ac_cv_prog_cc_c89=no
5586 ac_save_CC=$CC
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5589 #include <stdarg.h>
5590 #include <stdio.h>
5591 struct stat;
5592 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5593 struct buf { int x; };
5594 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5595 static char *e (p, i)
5596 char **p;
5597 int i;
5599 return p[i];
5601 static char *f (char * (*g) (char **, int), char **p, ...)
5603 char *s;
5604 va_list v;
5605 va_start (v,p);
5606 s = g (p, va_arg (v,int));
5607 va_end (v);
5608 return s;
5611 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5612 function prototypes and stuff, but not '\xHH' hex character constants.
5613 These don't provoke an error unfortunately, instead are silently treated
5614 as 'x'. The following induces an error, until -std is added to get
5615 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5616 array size at least. It's necessary to write '\x00'==0 to get something
5617 that's true only with -std. */
5618 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5620 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5621 inside strings and character constants. */
5622 #define FOO(x) 'x'
5623 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5625 int test (int i, double x);
5626 struct s1 {int (*f) (int a);};
5627 struct s2 {int (*f) (double a);};
5628 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5629 int argc;
5630 char **argv;
5632 main ()
5634 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5636 return 0;
5638 _ACEOF
5639 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5640 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5642 CC="$ac_save_CC $ac_arg"
5643 if ac_fn_c_try_compile "$LINENO"; then :
5644 ac_cv_prog_cc_c89=$ac_arg
5646 rm -f core conftest.err conftest.$ac_objext
5647 test "x$ac_cv_prog_cc_c89" != "xno" && break
5648 done
5649 rm -f conftest.$ac_ext
5650 CC=$ac_save_CC
5653 # AC_CACHE_VAL
5654 case "x$ac_cv_prog_cc_c89" in
5656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5657 $as_echo "none needed" >&6; } ;;
5658 xno)
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5660 $as_echo "unsupported" >&6; } ;;
5662 CC="$CC $ac_cv_prog_cc_c89"
5663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5664 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5665 esac
5666 if test "x$ac_cv_prog_cc_c89" != xno; then :
5670 ac_ext=c
5671 ac_cpp='$CPP $CPPFLAGS'
5672 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5673 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5674 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5676 ac_ext=c
5677 ac_cpp='$CPP $CPPFLAGS'
5678 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5679 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5680 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5682 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5683 if ${am_cv_prog_cc_c_o+:} false; then :
5684 $as_echo_n "(cached) " >&6
5685 else
5686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5687 /* end confdefs.h. */
5690 main ()
5694 return 0;
5696 _ACEOF
5697 # Make sure it works both with $CC and with simple cc.
5698 # Following AC_PROG_CC_C_O, we do the test twice because some
5699 # compilers refuse to overwrite an existing .o file with -o,
5700 # though they will create one.
5701 am_cv_prog_cc_c_o=yes
5702 for am_i in 1 2; do
5703 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5704 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5705 ac_status=$?
5706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5707 (exit $ac_status); } \
5708 && test -f conftest2.$ac_objext; then
5709 : OK
5710 else
5711 am_cv_prog_cc_c_o=no
5712 break
5714 done
5715 rm -f core conftest*
5716 unset am_i
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5719 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5720 if test "$am_cv_prog_cc_c_o" != yes; then
5721 # Losing compiler, so override with the script.
5722 # FIXME: It is wrong to rewrite CC.
5723 # But if we don't then we get into trouble of one sort or another.
5724 # A longer-term fix would be to have automake use am__CC in this case,
5725 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5726 CC="$am_aux_dir/compile $CC"
5728 ac_ext=c
5729 ac_cpp='$CPP $CPPFLAGS'
5730 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5731 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5732 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5735 ac_ext=cpp
5736 ac_cpp='$CXXCPP $CPPFLAGS'
5737 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5738 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5739 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5740 if test -z "$CXX"; then
5741 if test -n "$CCC"; then
5742 CXX=$CCC
5743 else
5744 if test -n "$ac_tool_prefix"; then
5745 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5747 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5748 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5750 $as_echo_n "checking for $ac_word... " >&6; }
5751 if ${ac_cv_prog_CXX+:} false; then :
5752 $as_echo_n "(cached) " >&6
5753 else
5754 if test -n "$CXX"; then
5755 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5756 else
5757 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5758 for as_dir in $PATH
5760 IFS=$as_save_IFS
5761 test -z "$as_dir" && as_dir=.
5762 for ac_exec_ext in '' $ac_executable_extensions; do
5763 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5764 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5766 break 2
5768 done
5769 done
5770 IFS=$as_save_IFS
5774 CXX=$ac_cv_prog_CXX
5775 if test -n "$CXX"; then
5776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5777 $as_echo "$CXX" >&6; }
5778 else
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5780 $as_echo "no" >&6; }
5784 test -n "$CXX" && break
5785 done
5787 if test -z "$CXX"; then
5788 ac_ct_CXX=$CXX
5789 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5791 # Extract the first word of "$ac_prog", so it can be a program name with args.
5792 set dummy $ac_prog; ac_word=$2
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5794 $as_echo_n "checking for $ac_word... " >&6; }
5795 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5796 $as_echo_n "(cached) " >&6
5797 else
5798 if test -n "$ac_ct_CXX"; then
5799 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5800 else
5801 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5802 for as_dir in $PATH
5804 IFS=$as_save_IFS
5805 test -z "$as_dir" && as_dir=.
5806 for ac_exec_ext in '' $ac_executable_extensions; do
5807 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5808 ac_cv_prog_ac_ct_CXX="$ac_prog"
5809 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5810 break 2
5812 done
5813 done
5814 IFS=$as_save_IFS
5818 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5819 if test -n "$ac_ct_CXX"; then
5820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5821 $as_echo "$ac_ct_CXX" >&6; }
5822 else
5823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5824 $as_echo "no" >&6; }
5828 test -n "$ac_ct_CXX" && break
5829 done
5831 if test "x$ac_ct_CXX" = x; then
5832 CXX="g++"
5833 else
5834 case $cross_compiling:$ac_tool_warned in
5835 yes:)
5836 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5837 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5838 ac_tool_warned=yes ;;
5839 esac
5840 CXX=$ac_ct_CXX
5846 # Provide some information about the compiler.
5847 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5848 set X $ac_compile
5849 ac_compiler=$2
5850 for ac_option in --version -v -V -qversion; do
5851 { { ac_try="$ac_compiler $ac_option >&5"
5852 case "(($ac_try" in
5853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5854 *) ac_try_echo=$ac_try;;
5855 esac
5856 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5857 $as_echo "$ac_try_echo"; } >&5
5858 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5859 ac_status=$?
5860 if test -s conftest.err; then
5861 sed '10a\
5862 ... rest of stderr output deleted ...
5863 10q' conftest.err >conftest.er1
5864 cat conftest.er1 >&5
5866 rm -f conftest.er1 conftest.err
5867 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5868 test $ac_status = 0; }
5869 done
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5872 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5873 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5874 $as_echo_n "(cached) " >&6
5875 else
5876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5877 /* end confdefs.h. */
5880 main ()
5882 #ifndef __GNUC__
5883 choke me
5884 #endif
5887 return 0;
5889 _ACEOF
5890 if ac_fn_cxx_try_compile "$LINENO"; then :
5891 ac_compiler_gnu=yes
5892 else
5893 ac_compiler_gnu=no
5895 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5896 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5900 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5901 if test $ac_compiler_gnu = yes; then
5902 GXX=yes
5903 else
5904 GXX=
5906 ac_test_CXXFLAGS=${CXXFLAGS+set}
5907 ac_save_CXXFLAGS=$CXXFLAGS
5908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5909 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5910 if ${ac_cv_prog_cxx_g+:} false; then :
5911 $as_echo_n "(cached) " >&6
5912 else
5913 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5914 ac_cxx_werror_flag=yes
5915 ac_cv_prog_cxx_g=no
5916 CXXFLAGS="-g"
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5921 main ()
5925 return 0;
5927 _ACEOF
5928 if ac_fn_cxx_try_compile "$LINENO"; then :
5929 ac_cv_prog_cxx_g=yes
5930 else
5931 CXXFLAGS=""
5932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5933 /* end confdefs.h. */
5936 main ()
5940 return 0;
5942 _ACEOF
5943 if ac_fn_cxx_try_compile "$LINENO"; then :
5945 else
5946 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5947 CXXFLAGS="-g"
5948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5949 /* end confdefs.h. */
5952 main ()
5956 return 0;
5958 _ACEOF
5959 if ac_fn_cxx_try_compile "$LINENO"; then :
5960 ac_cv_prog_cxx_g=yes
5962 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5967 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5970 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5971 if test "$ac_test_CXXFLAGS" = set; then
5972 CXXFLAGS=$ac_save_CXXFLAGS
5973 elif test $ac_cv_prog_cxx_g = yes; then
5974 if test "$GXX" = yes; then
5975 CXXFLAGS="-g -O2"
5976 else
5977 CXXFLAGS="-g"
5979 else
5980 if test "$GXX" = yes; then
5981 CXXFLAGS="-O2"
5982 else
5983 CXXFLAGS=
5986 ac_ext=c
5987 ac_cpp='$CPP $CPPFLAGS'
5988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5992 depcc="$CXX" am_compiler_list=
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5995 $as_echo_n "checking dependency style of $depcc... " >&6; }
5996 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5997 $as_echo_n "(cached) " >&6
5998 else
5999 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6000 # We make a subdir and do the tests there. Otherwise we can end up
6001 # making bogus files that we don't know about and never remove. For
6002 # instance it was reported that on HP-UX the gcc test will end up
6003 # making a dummy file named 'D' -- because '-MD' means "put the output
6004 # in D".
6005 rm -rf conftest.dir
6006 mkdir conftest.dir
6007 # Copy depcomp to subdir because otherwise we won't find it if we're
6008 # using a relative directory.
6009 cp "$am_depcomp" conftest.dir
6010 cd conftest.dir
6011 # We will build objects and dependencies in a subdirectory because
6012 # it helps to detect inapplicable dependency modes. For instance
6013 # both Tru64's cc and ICC support -MD to output dependencies as a
6014 # side effect of compilation, but ICC will put the dependencies in
6015 # the current directory while Tru64 will put them in the object
6016 # directory.
6017 mkdir sub
6019 am_cv_CXX_dependencies_compiler_type=none
6020 if test "$am_compiler_list" = ""; then
6021 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6023 am__universal=false
6024 case " $depcc " in #(
6025 *\ -arch\ *\ -arch\ *) am__universal=true ;;
6026 esac
6028 for depmode in $am_compiler_list; do
6029 # Setup a source with many dependencies, because some compilers
6030 # like to wrap large dependency lists on column 80 (with \), and
6031 # we should not choose a depcomp mode which is confused by this.
6033 # We need to recreate these files for each test, as the compiler may
6034 # overwrite some of them when testing with obscure command lines.
6035 # This happens at least with the AIX C compiler.
6036 : > sub/conftest.c
6037 for i in 1 2 3 4 5 6; do
6038 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6039 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6040 # Solaris 10 /bin/sh.
6041 echo '/* dummy */' > sub/conftst$i.h
6042 done
6043 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6045 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6046 # mode. It turns out that the SunPro C++ compiler does not properly
6047 # handle '-M -o', and we need to detect this. Also, some Intel
6048 # versions had trouble with output in subdirs.
6049 am__obj=sub/conftest.${OBJEXT-o}
6050 am__minus_obj="-o $am__obj"
6051 case $depmode in
6052 gcc)
6053 # This depmode causes a compiler race in universal mode.
6054 test "$am__universal" = false || continue
6056 nosideeffect)
6057 # After this tag, mechanisms are not by side-effect, so they'll
6058 # only be used when explicitly requested.
6059 if test "x$enable_dependency_tracking" = xyes; then
6060 continue
6061 else
6062 break
6065 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6066 # This compiler won't grok '-c -o', but also, the minuso test has
6067 # not run yet. These depmodes are late enough in the game, and
6068 # so weak that their functioning should not be impacted.
6069 am__obj=conftest.${OBJEXT-o}
6070 am__minus_obj=
6072 none) break ;;
6073 esac
6074 if depmode=$depmode \
6075 source=sub/conftest.c object=$am__obj \
6076 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6077 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6078 >/dev/null 2>conftest.err &&
6079 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6080 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6081 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6082 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6083 # icc doesn't choke on unknown options, it will just issue warnings
6084 # or remarks (even with -Werror). So we grep stderr for any message
6085 # that says an option was ignored or not supported.
6086 # When given -MP, icc 7.0 and 7.1 complain thusly:
6087 # icc: Command line warning: ignoring option '-M'; no argument required
6088 # The diagnosis changed in icc 8.0:
6089 # icc: Command line remark: option '-MP' not supported
6090 if (grep 'ignoring option' conftest.err ||
6091 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6092 am_cv_CXX_dependencies_compiler_type=$depmode
6093 break
6096 done
6098 cd ..
6099 rm -rf conftest.dir
6100 else
6101 am_cv_CXX_dependencies_compiler_type=none
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6106 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6107 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6110 test "x$enable_dependency_tracking" != xno \
6111 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6112 am__fastdepCXX_TRUE=
6113 am__fastdepCXX_FALSE='#'
6114 else
6115 am__fastdepCXX_TRUE='#'
6116 am__fastdepCXX_FALSE=
6120 # By default we simply use the C compiler to build assembly code.
6122 test "${CCAS+set}" = set || CCAS=$CC
6123 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6127 depcc="$CCAS" am_compiler_list=
6129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6130 $as_echo_n "checking dependency style of $depcc... " >&6; }
6131 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
6132 $as_echo_n "(cached) " >&6
6133 else
6134 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6135 # We make a subdir and do the tests there. Otherwise we can end up
6136 # making bogus files that we don't know about and never remove. For
6137 # instance it was reported that on HP-UX the gcc test will end up
6138 # making a dummy file named 'D' -- because '-MD' means "put the output
6139 # in D".
6140 rm -rf conftest.dir
6141 mkdir conftest.dir
6142 # Copy depcomp to subdir because otherwise we won't find it if we're
6143 # using a relative directory.
6144 cp "$am_depcomp" conftest.dir
6145 cd conftest.dir
6146 # We will build objects and dependencies in a subdirectory because
6147 # it helps to detect inapplicable dependency modes. For instance
6148 # both Tru64's cc and ICC support -MD to output dependencies as a
6149 # side effect of compilation, but ICC will put the dependencies in
6150 # the current directory while Tru64 will put them in the object
6151 # directory.
6152 mkdir sub
6154 am_cv_CCAS_dependencies_compiler_type=none
6155 if test "$am_compiler_list" = ""; then
6156 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6158 am__universal=false
6161 for depmode in $am_compiler_list; do
6162 # Setup a source with many dependencies, because some compilers
6163 # like to wrap large dependency lists on column 80 (with \), and
6164 # we should not choose a depcomp mode which is confused by this.
6166 # We need to recreate these files for each test, as the compiler may
6167 # overwrite some of them when testing with obscure command lines.
6168 # This happens at least with the AIX C compiler.
6169 : > sub/conftest.c
6170 for i in 1 2 3 4 5 6; do
6171 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6172 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6173 # Solaris 10 /bin/sh.
6174 echo '/* dummy */' > sub/conftst$i.h
6175 done
6176 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6178 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6179 # mode. It turns out that the SunPro C++ compiler does not properly
6180 # handle '-M -o', and we need to detect this. Also, some Intel
6181 # versions had trouble with output in subdirs.
6182 am__obj=sub/conftest.${OBJEXT-o}
6183 am__minus_obj="-o $am__obj"
6184 case $depmode in
6185 gcc)
6186 # This depmode causes a compiler race in universal mode.
6187 test "$am__universal" = false || continue
6189 nosideeffect)
6190 # After this tag, mechanisms are not by side-effect, so they'll
6191 # only be used when explicitly requested.
6192 if test "x$enable_dependency_tracking" = xyes; then
6193 continue
6194 else
6195 break
6198 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6199 # This compiler won't grok '-c -o', but also, the minuso test has
6200 # not run yet. These depmodes are late enough in the game, and
6201 # so weak that their functioning should not be impacted.
6202 am__obj=conftest.${OBJEXT-o}
6203 am__minus_obj=
6205 none) break ;;
6206 esac
6207 if depmode=$depmode \
6208 source=sub/conftest.c object=$am__obj \
6209 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6210 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6211 >/dev/null 2>conftest.err &&
6212 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6213 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6214 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6215 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6216 # icc doesn't choke on unknown options, it will just issue warnings
6217 # or remarks (even with -Werror). So we grep stderr for any message
6218 # that says an option was ignored or not supported.
6219 # When given -MP, icc 7.0 and 7.1 complain thusly:
6220 # icc: Command line warning: ignoring option '-M'; no argument required
6221 # The diagnosis changed in icc 8.0:
6222 # icc: Command line remark: option '-MP' not supported
6223 if (grep 'ignoring option' conftest.err ||
6224 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6225 am_cv_CCAS_dependencies_compiler_type=$depmode
6226 break
6229 done
6231 cd ..
6232 rm -rf conftest.dir
6233 else
6234 am_cv_CCAS_dependencies_compiler_type=none
6238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6239 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6240 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6243 test "x$enable_dependency_tracking" != xno \
6244 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6245 am__fastdepCCAS_TRUE=
6246 am__fastdepCCAS_FALSE='#'
6247 else
6248 am__fastdepCCAS_TRUE='#'
6249 am__fastdepCCAS_FALSE=
6257 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
6258 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
6259 # in both places for now and restore CFLAGS at the end of config.
6260 save_CFLAGS="$CFLAGS"
6262 # Find other programs we need.
6263 if test -n "$ac_tool_prefix"; then
6264 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6265 set dummy ${ac_tool_prefix}ar; ac_word=$2
6266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6267 $as_echo_n "checking for $ac_word... " >&6; }
6268 if ${ac_cv_prog_AR+:} false; then :
6269 $as_echo_n "(cached) " >&6
6270 else
6271 if test -n "$AR"; then
6272 ac_cv_prog_AR="$AR" # Let the user override the test.
6273 else
6274 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6275 for as_dir in $PATH
6277 IFS=$as_save_IFS
6278 test -z "$as_dir" && as_dir=.
6279 for ac_exec_ext in '' $ac_executable_extensions; do
6280 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6281 ac_cv_prog_AR="${ac_tool_prefix}ar"
6282 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6283 break 2
6285 done
6286 done
6287 IFS=$as_save_IFS
6291 AR=$ac_cv_prog_AR
6292 if test -n "$AR"; then
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6294 $as_echo "$AR" >&6; }
6295 else
6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6297 $as_echo "no" >&6; }
6302 if test -z "$ac_cv_prog_AR"; then
6303 ac_ct_AR=$AR
6304 # Extract the first word of "ar", so it can be a program name with args.
6305 set dummy ar; ac_word=$2
6306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6307 $as_echo_n "checking for $ac_word... " >&6; }
6308 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6309 $as_echo_n "(cached) " >&6
6310 else
6311 if test -n "$ac_ct_AR"; then
6312 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6313 else
6314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6315 for as_dir in $PATH
6317 IFS=$as_save_IFS
6318 test -z "$as_dir" && as_dir=.
6319 for ac_exec_ext in '' $ac_executable_extensions; do
6320 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6321 ac_cv_prog_ac_ct_AR="ar"
6322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6323 break 2
6325 done
6326 done
6327 IFS=$as_save_IFS
6331 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6332 if test -n "$ac_ct_AR"; then
6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6334 $as_echo "$ac_ct_AR" >&6; }
6335 else
6336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6337 $as_echo "no" >&6; }
6340 if test "x$ac_ct_AR" = x; then
6341 AR=""
6342 else
6343 case $cross_compiling:$ac_tool_warned in
6344 yes:)
6345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6346 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6347 ac_tool_warned=yes ;;
6348 esac
6349 AR=$ac_ct_AR
6351 else
6352 AR="$ac_cv_prog_AR"
6355 if test -n "$ac_tool_prefix"; then
6356 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6357 set dummy ${ac_tool_prefix}nm; ac_word=$2
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6359 $as_echo_n "checking for $ac_word... " >&6; }
6360 if ${ac_cv_prog_NM+:} false; then :
6361 $as_echo_n "(cached) " >&6
6362 else
6363 if test -n "$NM"; then
6364 ac_cv_prog_NM="$NM" # Let the user override the test.
6365 else
6366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6367 for as_dir in $PATH
6369 IFS=$as_save_IFS
6370 test -z "$as_dir" && as_dir=.
6371 for ac_exec_ext in '' $ac_executable_extensions; do
6372 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6373 ac_cv_prog_NM="${ac_tool_prefix}nm"
6374 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6375 break 2
6377 done
6378 done
6379 IFS=$as_save_IFS
6383 NM=$ac_cv_prog_NM
6384 if test -n "$NM"; then
6385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
6386 $as_echo "$NM" >&6; }
6387 else
6388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6389 $as_echo "no" >&6; }
6394 if test -z "$ac_cv_prog_NM"; then
6395 ac_ct_NM=$NM
6396 # Extract the first word of "nm", so it can be a program name with args.
6397 set dummy nm; ac_word=$2
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6399 $as_echo_n "checking for $ac_word... " >&6; }
6400 if ${ac_cv_prog_ac_ct_NM+:} false; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403 if test -n "$ac_ct_NM"; then
6404 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6405 else
6406 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6407 for as_dir in $PATH
6409 IFS=$as_save_IFS
6410 test -z "$as_dir" && as_dir=.
6411 for ac_exec_ext in '' $ac_executable_extensions; do
6412 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6413 ac_cv_prog_ac_ct_NM="nm"
6414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6415 break 2
6417 done
6418 done
6419 IFS=$as_save_IFS
6423 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6424 if test -n "$ac_ct_NM"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
6426 $as_echo "$ac_ct_NM" >&6; }
6427 else
6428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6429 $as_echo "no" >&6; }
6432 if test "x$ac_ct_NM" = x; then
6433 NM=""
6434 else
6435 case $cross_compiling:$ac_tool_warned in
6436 yes:)
6437 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6438 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6439 ac_tool_warned=yes ;;
6440 esac
6441 NM=$ac_ct_NM
6443 else
6444 NM="$ac_cv_prog_NM"
6447 if test -n "$ac_tool_prefix"; then
6448 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6449 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6451 $as_echo_n "checking for $ac_word... " >&6; }
6452 if ${ac_cv_prog_RANLIB+:} false; then :
6453 $as_echo_n "(cached) " >&6
6454 else
6455 if test -n "$RANLIB"; then
6456 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6457 else
6458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6459 for as_dir in $PATH
6461 IFS=$as_save_IFS
6462 test -z "$as_dir" && as_dir=.
6463 for ac_exec_ext in '' $ac_executable_extensions; do
6464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6465 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6467 break 2
6469 done
6470 done
6471 IFS=$as_save_IFS
6475 RANLIB=$ac_cv_prog_RANLIB
6476 if test -n "$RANLIB"; then
6477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6478 $as_echo "$RANLIB" >&6; }
6479 else
6480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6481 $as_echo "no" >&6; }
6486 if test -z "$ac_cv_prog_RANLIB"; then
6487 ac_ct_RANLIB=$RANLIB
6488 # Extract the first word of "ranlib", so it can be a program name with args.
6489 set dummy ranlib; ac_word=$2
6490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6491 $as_echo_n "checking for $ac_word... " >&6; }
6492 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6493 $as_echo_n "(cached) " >&6
6494 else
6495 if test -n "$ac_ct_RANLIB"; then
6496 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6497 else
6498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6499 for as_dir in $PATH
6501 IFS=$as_save_IFS
6502 test -z "$as_dir" && as_dir=.
6503 for ac_exec_ext in '' $ac_executable_extensions; do
6504 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6505 ac_cv_prog_ac_ct_RANLIB="ranlib"
6506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6507 break 2
6509 done
6510 done
6511 IFS=$as_save_IFS
6515 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6516 if test -n "$ac_ct_RANLIB"; then
6517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6518 $as_echo "$ac_ct_RANLIB" >&6; }
6519 else
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6521 $as_echo "no" >&6; }
6524 if test "x$ac_ct_RANLIB" = x; then
6525 RANLIB="ranlib-not-found-in-path-error"
6526 else
6527 case $cross_compiling:$ac_tool_warned in
6528 yes:)
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6530 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6531 ac_tool_warned=yes ;;
6532 esac
6533 RANLIB=$ac_ct_RANLIB
6535 else
6536 RANLIB="$ac_cv_prog_RANLIB"
6539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6540 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6541 set x ${MAKE-make}
6542 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6543 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6544 $as_echo_n "(cached) " >&6
6545 else
6546 cat >conftest.make <<\_ACEOF
6547 SHELL = /bin/sh
6548 all:
6549 @echo '@@@%%%=$(MAKE)=@@@%%%'
6550 _ACEOF
6551 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6552 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6553 *@@@%%%=?*=@@@%%%*)
6554 eval ac_cv_prog_make_${ac_make}_set=yes;;
6556 eval ac_cv_prog_make_${ac_make}_set=no;;
6557 esac
6558 rm -f conftest.make
6560 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6562 $as_echo "yes" >&6; }
6563 SET_MAKE=
6564 else
6565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6566 $as_echo "no" >&6; }
6567 SET_MAKE="MAKE=${MAKE-make}"
6572 enable_dlopen=yes
6576 case `pwd` in
6577 *\ * | *\ *)
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6579 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6580 esac
6584 macro_version='2.2.7a'
6585 macro_revision='1.3134'
6599 ltmain="$ac_aux_dir/ltmain.sh"
6601 # Backslashify metacharacters that are still active within
6602 # double-quoted strings.
6603 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6605 # Same as above, but do not quote variable references.
6606 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6608 # Sed substitution to delay expansion of an escaped shell variable in a
6609 # double_quote_subst'ed string.
6610 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6612 # Sed substitution to delay expansion of an escaped single quote.
6613 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6615 # Sed substitution to avoid accidental globbing in evaled expressions
6616 no_glob_subst='s/\*/\\\*/g'
6618 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6619 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6620 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6623 $as_echo_n "checking how to print strings... " >&6; }
6624 # Test print first, because it will be a builtin if present.
6625 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6626 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6627 ECHO='print -r --'
6628 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6629 ECHO='printf %s\n'
6630 else
6631 # Use this function as a fallback that always works.
6632 func_fallback_echo ()
6634 eval 'cat <<_LTECHO_EOF
6636 _LTECHO_EOF'
6638 ECHO='func_fallback_echo'
6641 # func_echo_all arg...
6642 # Invoke $ECHO with all args, space-separated.
6643 func_echo_all ()
6645 $ECHO ""
6648 case "$ECHO" in
6649 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6650 $as_echo "printf" >&6; } ;;
6651 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6652 $as_echo "print -r" >&6; } ;;
6653 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6654 $as_echo "cat" >&6; } ;;
6655 esac
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6671 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6672 if ${ac_cv_path_SED+:} false; then :
6673 $as_echo_n "(cached) " >&6
6674 else
6675 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6676 for ac_i in 1 2 3 4 5 6 7; do
6677 ac_script="$ac_script$as_nl$ac_script"
6678 done
6679 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6680 { ac_script=; unset ac_script;}
6681 if test -z "$SED"; then
6682 ac_path_SED_found=false
6683 # Loop through the user's path and test for each of PROGNAME-LIST
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6685 for as_dir in $PATH
6687 IFS=$as_save_IFS
6688 test -z "$as_dir" && as_dir=.
6689 for ac_prog in sed gsed; do
6690 for ac_exec_ext in '' $ac_executable_extensions; do
6691 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6692 as_fn_executable_p "$ac_path_SED" || continue
6693 # Check for GNU ac_path_SED and select it if it is found.
6694 # Check for GNU $ac_path_SED
6695 case `"$ac_path_SED" --version 2>&1` in
6696 *GNU*)
6697 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6699 ac_count=0
6700 $as_echo_n 0123456789 >"conftest.in"
6701 while :
6703 cat "conftest.in" "conftest.in" >"conftest.tmp"
6704 mv "conftest.tmp" "conftest.in"
6705 cp "conftest.in" "conftest.nl"
6706 $as_echo '' >> "conftest.nl"
6707 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6708 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6709 as_fn_arith $ac_count + 1 && ac_count=$as_val
6710 if test $ac_count -gt ${ac_path_SED_max-0}; then
6711 # Best one so far, save it but keep looking for a better one
6712 ac_cv_path_SED="$ac_path_SED"
6713 ac_path_SED_max=$ac_count
6715 # 10*(2^10) chars as input seems more than enough
6716 test $ac_count -gt 10 && break
6717 done
6718 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6719 esac
6721 $ac_path_SED_found && break 3
6722 done
6723 done
6724 done
6725 IFS=$as_save_IFS
6726 if test -z "$ac_cv_path_SED"; then
6727 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6729 else
6730 ac_cv_path_SED=$SED
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6735 $as_echo "$ac_cv_path_SED" >&6; }
6736 SED="$ac_cv_path_SED"
6737 rm -f conftest.sed
6739 test -z "$SED" && SED=sed
6740 Xsed="$SED -e 1s/^X//"
6752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6753 $as_echo_n "checking for fgrep... " >&6; }
6754 if ${ac_cv_path_FGREP+:} false; then :
6755 $as_echo_n "(cached) " >&6
6756 else
6757 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6758 then ac_cv_path_FGREP="$GREP -F"
6759 else
6760 if test -z "$FGREP"; then
6761 ac_path_FGREP_found=false
6762 # Loop through the user's path and test for each of PROGNAME-LIST
6763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6764 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6766 IFS=$as_save_IFS
6767 test -z "$as_dir" && as_dir=.
6768 for ac_prog in fgrep; do
6769 for ac_exec_ext in '' $ac_executable_extensions; do
6770 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6771 as_fn_executable_p "$ac_path_FGREP" || continue
6772 # Check for GNU ac_path_FGREP and select it if it is found.
6773 # Check for GNU $ac_path_FGREP
6774 case `"$ac_path_FGREP" --version 2>&1` in
6775 *GNU*)
6776 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6778 ac_count=0
6779 $as_echo_n 0123456789 >"conftest.in"
6780 while :
6782 cat "conftest.in" "conftest.in" >"conftest.tmp"
6783 mv "conftest.tmp" "conftest.in"
6784 cp "conftest.in" "conftest.nl"
6785 $as_echo 'FGREP' >> "conftest.nl"
6786 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6787 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6788 as_fn_arith $ac_count + 1 && ac_count=$as_val
6789 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6790 # Best one so far, save it but keep looking for a better one
6791 ac_cv_path_FGREP="$ac_path_FGREP"
6792 ac_path_FGREP_max=$ac_count
6794 # 10*(2^10) chars as input seems more than enough
6795 test $ac_count -gt 10 && break
6796 done
6797 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6798 esac
6800 $ac_path_FGREP_found && break 3
6801 done
6802 done
6803 done
6804 IFS=$as_save_IFS
6805 if test -z "$ac_cv_path_FGREP"; then
6806 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6808 else
6809 ac_cv_path_FGREP=$FGREP
6814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6815 $as_echo "$ac_cv_path_FGREP" >&6; }
6816 FGREP="$ac_cv_path_FGREP"
6819 test -z "$GREP" && GREP=grep
6839 # Check whether --with-gnu-ld was given.
6840 if test "${with_gnu_ld+set}" = set; then :
6841 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6842 else
6843 with_gnu_ld=no
6846 ac_prog=ld
6847 if test "$GCC" = yes; then
6848 # Check if gcc -print-prog-name=ld gives a path.
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6850 $as_echo_n "checking for ld used by $CC... " >&6; }
6851 case $host in
6852 *-*-mingw*)
6853 # gcc leaves a trailing carriage return which upsets mingw
6854 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6856 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6857 esac
6858 case $ac_prog in
6859 # Accept absolute paths.
6860 [\\/]* | ?:[\\/]*)
6861 re_direlt='/[^/][^/]*/\.\./'
6862 # Canonicalize the pathname of ld
6863 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6864 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6865 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6866 done
6867 test -z "$LD" && LD="$ac_prog"
6870 # If it fails, then pretend we aren't using GCC.
6871 ac_prog=ld
6874 # If it is relative, then search for the first ld in PATH.
6875 with_gnu_ld=unknown
6877 esac
6878 elif test "$with_gnu_ld" = yes; then
6879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6880 $as_echo_n "checking for GNU ld... " >&6; }
6881 else
6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6883 $as_echo_n "checking for non-GNU ld... " >&6; }
6885 if ${lt_cv_path_LD+:} false; then :
6886 $as_echo_n "(cached) " >&6
6887 else
6888 if test -z "$LD"; then
6889 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6890 for ac_dir in $PATH; do
6891 IFS="$lt_save_ifs"
6892 test -z "$ac_dir" && ac_dir=.
6893 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6894 lt_cv_path_LD="$ac_dir/$ac_prog"
6895 # Check to see if the program is GNU ld. I'd rather use --version,
6896 # but apparently some variants of GNU ld only accept -v.
6897 # Break only if it was the GNU/non-GNU ld that we prefer.
6898 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6899 *GNU* | *'with BFD'*)
6900 test "$with_gnu_ld" != no && break
6903 test "$with_gnu_ld" != yes && break
6905 esac
6907 done
6908 IFS="$lt_save_ifs"
6909 else
6910 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6914 LD="$lt_cv_path_LD"
6915 if test -n "$LD"; then
6916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6917 $as_echo "$LD" >&6; }
6918 else
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6920 $as_echo "no" >&6; }
6922 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6924 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6925 if ${lt_cv_prog_gnu_ld+:} false; then :
6926 $as_echo_n "(cached) " >&6
6927 else
6928 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6929 case `$LD -v 2>&1 </dev/null` in
6930 *GNU* | *'with BFD'*)
6931 lt_cv_prog_gnu_ld=yes
6934 lt_cv_prog_gnu_ld=no
6936 esac
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6939 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6940 with_gnu_ld=$lt_cv_prog_gnu_ld
6950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6951 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6952 if ${lt_cv_path_NM+:} false; then :
6953 $as_echo_n "(cached) " >&6
6954 else
6955 if test -n "$NM"; then
6956 # Let the user override the nm to test.
6957 lt_nm_to_check="$NM"
6958 else
6959 lt_nm_to_check="${ac_tool_prefix}nm"
6960 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6961 lt_nm_to_check="$lt_nm_to_check nm"
6964 for lt_tmp_nm in "$lt_nm_to_check"; do
6965 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6966 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6967 IFS="$lt_save_ifs"
6968 test -z "$ac_dir" && ac_dir=.
6969 # Strip out any user-provided options from the nm to test twice,
6970 # the first time to test to see if nm (rather than its options) has
6971 # an explicit path, the second time to yield a file which can be
6972 # nm'ed itself.
6973 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6974 case "$tmp_nm_path" in
6975 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6976 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6977 esac
6978 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6979 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6980 # Check to see if the nm accepts a BSD-compat flag.
6981 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6982 # nm: unknown option "B" ignored
6983 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6984 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6985 break
6988 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6989 *$tmp_nm*)
6990 lt_cv_path_NM="$tmp_nm -p"
6991 break
6994 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6995 continue # so that we can try to find one that supports BSD flags
6997 esac
6999 esac
7001 done
7002 IFS="$lt_save_ifs"
7003 done
7004 : ${lt_cv_path_NM=no}
7006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
7007 $as_echo "$lt_cv_path_NM" >&6; }
7008 if test "$lt_cv_path_NM" != "no"; then
7009 NM="$lt_cv_path_NM"
7010 else
7011 # Didn't find any BSD compatible name lister, look for dumpbin.
7012 if test -n "$DUMPBIN"; then :
7013 # Let the user override the test.
7014 else
7015 if test -n "$ac_tool_prefix"; then
7016 for ac_prog in dumpbin "link -dump"
7018 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7019 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7021 $as_echo_n "checking for $ac_word... " >&6; }
7022 if ${ac_cv_prog_DUMPBIN+:} false; then :
7023 $as_echo_n "(cached) " >&6
7024 else
7025 if test -n "$DUMPBIN"; then
7026 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
7027 else
7028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7029 for as_dir in $PATH
7031 IFS=$as_save_IFS
7032 test -z "$as_dir" && as_dir=.
7033 for ac_exec_ext in '' $ac_executable_extensions; do
7034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7035 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7037 break 2
7039 done
7040 done
7041 IFS=$as_save_IFS
7045 DUMPBIN=$ac_cv_prog_DUMPBIN
7046 if test -n "$DUMPBIN"; then
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7048 $as_echo "$DUMPBIN" >&6; }
7049 else
7050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7051 $as_echo "no" >&6; }
7055 test -n "$DUMPBIN" && break
7056 done
7058 if test -z "$DUMPBIN"; then
7059 ac_ct_DUMPBIN=$DUMPBIN
7060 for ac_prog in dumpbin "link -dump"
7062 # Extract the first word of "$ac_prog", so it can be a program name with args.
7063 set dummy $ac_prog; ac_word=$2
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7065 $as_echo_n "checking for $ac_word... " >&6; }
7066 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7067 $as_echo_n "(cached) " >&6
7068 else
7069 if test -n "$ac_ct_DUMPBIN"; then
7070 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7071 else
7072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7073 for as_dir in $PATH
7075 IFS=$as_save_IFS
7076 test -z "$as_dir" && as_dir=.
7077 for ac_exec_ext in '' $ac_executable_extensions; do
7078 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7079 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7080 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7081 break 2
7083 done
7084 done
7085 IFS=$as_save_IFS
7089 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7090 if test -n "$ac_ct_DUMPBIN"; then
7091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7092 $as_echo "$ac_ct_DUMPBIN" >&6; }
7093 else
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7095 $as_echo "no" >&6; }
7099 test -n "$ac_ct_DUMPBIN" && break
7100 done
7102 if test "x$ac_ct_DUMPBIN" = x; then
7103 DUMPBIN=":"
7104 else
7105 case $cross_compiling:$ac_tool_warned in
7106 yes:)
7107 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7108 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7109 ac_tool_warned=yes ;;
7110 esac
7111 DUMPBIN=$ac_ct_DUMPBIN
7115 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7116 *COFF*)
7117 DUMPBIN="$DUMPBIN -symbols"
7120 DUMPBIN=:
7122 esac
7125 if test "$DUMPBIN" != ":"; then
7126 NM="$DUMPBIN"
7129 test -z "$NM" && NM=nm
7136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7137 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7138 if ${lt_cv_nm_interface+:} false; then :
7139 $as_echo_n "(cached) " >&6
7140 else
7141 lt_cv_nm_interface="BSD nm"
7142 echo "int some_variable = 0;" > conftest.$ac_ext
7143 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7144 (eval "$ac_compile" 2>conftest.err)
7145 cat conftest.err >&5
7146 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7147 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7148 cat conftest.err >&5
7149 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7150 cat conftest.out >&5
7151 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7152 lt_cv_nm_interface="MS dumpbin"
7154 rm -f conftest*
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7157 $as_echo "$lt_cv_nm_interface" >&6; }
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7160 $as_echo_n "checking whether ln -s works... " >&6; }
7161 LN_S=$as_ln_s
7162 if test "$LN_S" = "ln -s"; then
7163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7164 $as_echo "yes" >&6; }
7165 else
7166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7167 $as_echo "no, using $LN_S" >&6; }
7170 # find the maximum length of command line arguments
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7172 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7173 if ${lt_cv_sys_max_cmd_len+:} false; then :
7174 $as_echo_n "(cached) " >&6
7175 else
7177 teststring="ABCD"
7179 case $build_os in
7180 msdosdjgpp*)
7181 # On DJGPP, this test can blow up pretty badly due to problems in libc
7182 # (any single argument exceeding 2000 bytes causes a buffer overrun
7183 # during glob expansion). Even if it were fixed, the result of this
7184 # check would be larger than it should be.
7185 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7188 gnu*)
7189 # Under GNU Hurd, this test is not required because there is
7190 # no limit to the length of command line arguments.
7191 # Libtool will interpret -1 as no limit whatsoever
7192 lt_cv_sys_max_cmd_len=-1;
7195 cygwin* | mingw* | cegcc*)
7196 # On Win9x/ME, this test blows up -- it succeeds, but takes
7197 # about 5 minutes as the teststring grows exponentially.
7198 # Worse, since 9x/ME are not pre-emptively multitasking,
7199 # you end up with a "frozen" computer, even though with patience
7200 # the test eventually succeeds (with a max line length of 256k).
7201 # Instead, let's just punt: use the minimum linelength reported by
7202 # all of the supported platforms: 8192 (on NT/2K/XP).
7203 lt_cv_sys_max_cmd_len=8192;
7206 mint*)
7207 # On MiNT this can take a long time and run out of memory.
7208 lt_cv_sys_max_cmd_len=8192;
7211 amigaos*)
7212 # On AmigaOS with pdksh, this test takes hours, literally.
7213 # So we just punt and use a minimum line length of 8192.
7214 lt_cv_sys_max_cmd_len=8192;
7217 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7218 # This has been around since 386BSD, at least. Likely further.
7219 if test -x /sbin/sysctl; then
7220 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7221 elif test -x /usr/sbin/sysctl; then
7222 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7223 else
7224 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7226 # And add a safety zone
7227 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7228 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7231 interix*)
7232 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7233 lt_cv_sys_max_cmd_len=196608
7236 osf*)
7237 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7238 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7239 # nice to cause kernel panics so lets avoid the loop below.
7240 # First set a reasonable default.
7241 lt_cv_sys_max_cmd_len=16384
7243 if test -x /sbin/sysconfig; then
7244 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7245 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7246 esac
7249 sco3.2v5*)
7250 lt_cv_sys_max_cmd_len=102400
7252 sysv5* | sco5v6* | sysv4.2uw2*)
7253 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7254 if test -n "$kargmax"; then
7255 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7256 else
7257 lt_cv_sys_max_cmd_len=32768
7261 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7262 if test -n "$lt_cv_sys_max_cmd_len"; then
7263 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7264 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7265 else
7266 # Make teststring a little bigger before we do anything with it.
7267 # a 1K string should be a reasonable start.
7268 for i in 1 2 3 4 5 6 7 8 ; do
7269 teststring=$teststring$teststring
7270 done
7271 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7272 # If test is not a shell built-in, we'll probably end up computing a
7273 # maximum length that is only half of the actual maximum length, but
7274 # we can't tell.
7275 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7276 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7277 test $i != 17 # 1/2 MB should be enough
7279 i=`expr $i + 1`
7280 teststring=$teststring$teststring
7281 done
7282 # Only check the string length outside the loop.
7283 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7284 teststring=
7285 # Add a significant safety factor because C++ compilers can tack on
7286 # massive amounts of additional arguments before passing them to the
7287 # linker. It appears as though 1/2 is a usable value.
7288 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7291 esac
7295 if test -n $lt_cv_sys_max_cmd_len ; then
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7297 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7298 else
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7300 $as_echo "none" >&6; }
7302 max_cmd_len=$lt_cv_sys_max_cmd_len
7309 : ${CP="cp -f"}
7310 : ${MV="mv -f"}
7311 : ${RM="rm -f"}
7313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7314 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7315 # Try some XSI features
7316 xsi_shell=no
7317 ( _lt_dummy="a/b/c"
7318 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7319 = c,a/b,, \
7320 && eval 'test $(( 1 + 1 )) -eq 2 \
7321 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7322 && xsi_shell=yes
7323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7324 $as_echo "$xsi_shell" >&6; }
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7328 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7329 lt_shell_append=no
7330 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7331 >/dev/null 2>&1 \
7332 && lt_shell_append=yes
7333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7334 $as_echo "$lt_shell_append" >&6; }
7337 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7338 lt_unset=unset
7339 else
7340 lt_unset=false
7347 # test EBCDIC or ASCII
7348 case `echo X|tr X '\101'` in
7349 A) # ASCII based system
7350 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7351 lt_SP2NL='tr \040 \012'
7352 lt_NL2SP='tr \015\012 \040\040'
7354 *) # EBCDIC based system
7355 lt_SP2NL='tr \100 \n'
7356 lt_NL2SP='tr \r\n \100\100'
7358 esac
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7369 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7370 if ${lt_cv_ld_reload_flag+:} false; then :
7371 $as_echo_n "(cached) " >&6
7372 else
7373 lt_cv_ld_reload_flag='-r'
7375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7376 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7377 reload_flag=$lt_cv_ld_reload_flag
7378 case $reload_flag in
7379 "" | " "*) ;;
7380 *) reload_flag=" $reload_flag" ;;
7381 esac
7382 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7383 case $host_os in
7384 darwin*)
7385 if test "$GCC" = yes; then
7386 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7387 else
7388 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7391 esac
7401 if test -n "$ac_tool_prefix"; then
7402 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7403 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7405 $as_echo_n "checking for $ac_word... " >&6; }
7406 if ${ac_cv_prog_OBJDUMP+:} false; then :
7407 $as_echo_n "(cached) " >&6
7408 else
7409 if test -n "$OBJDUMP"; then
7410 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7411 else
7412 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7413 for as_dir in $PATH
7415 IFS=$as_save_IFS
7416 test -z "$as_dir" && as_dir=.
7417 for ac_exec_ext in '' $ac_executable_extensions; do
7418 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7419 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7421 break 2
7423 done
7424 done
7425 IFS=$as_save_IFS
7429 OBJDUMP=$ac_cv_prog_OBJDUMP
7430 if test -n "$OBJDUMP"; then
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7432 $as_echo "$OBJDUMP" >&6; }
7433 else
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7435 $as_echo "no" >&6; }
7440 if test -z "$ac_cv_prog_OBJDUMP"; then
7441 ac_ct_OBJDUMP=$OBJDUMP
7442 # Extract the first word of "objdump", so it can be a program name with args.
7443 set dummy objdump; ac_word=$2
7444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7445 $as_echo_n "checking for $ac_word... " >&6; }
7446 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7447 $as_echo_n "(cached) " >&6
7448 else
7449 if test -n "$ac_ct_OBJDUMP"; then
7450 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7451 else
7452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7455 IFS=$as_save_IFS
7456 test -z "$as_dir" && as_dir=.
7457 for ac_exec_ext in '' $ac_executable_extensions; do
7458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7459 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7461 break 2
7463 done
7464 done
7465 IFS=$as_save_IFS
7469 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7470 if test -n "$ac_ct_OBJDUMP"; then
7471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7472 $as_echo "$ac_ct_OBJDUMP" >&6; }
7473 else
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7475 $as_echo "no" >&6; }
7478 if test "x$ac_ct_OBJDUMP" = x; then
7479 OBJDUMP="false"
7480 else
7481 case $cross_compiling:$ac_tool_warned in
7482 yes:)
7483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7484 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7485 ac_tool_warned=yes ;;
7486 esac
7487 OBJDUMP=$ac_ct_OBJDUMP
7489 else
7490 OBJDUMP="$ac_cv_prog_OBJDUMP"
7493 test -z "$OBJDUMP" && OBJDUMP=objdump
7503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7504 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7505 if ${lt_cv_deplibs_check_method+:} false; then :
7506 $as_echo_n "(cached) " >&6
7507 else
7508 lt_cv_file_magic_cmd='$MAGIC_CMD'
7509 lt_cv_file_magic_test_file=
7510 lt_cv_deplibs_check_method='unknown'
7511 # Need to set the preceding variable on all platforms that support
7512 # interlibrary dependencies.
7513 # 'none' -- dependencies not supported.
7514 # `unknown' -- same as none, but documents that we really don't know.
7515 # 'pass_all' -- all dependencies passed with no checks.
7516 # 'test_compile' -- check by making test program.
7517 # 'file_magic [[regex]]' -- check by looking for files in library path
7518 # which responds to the $file_magic_cmd with a given extended regex.
7519 # If you have `file' or equivalent on your system and you're not sure
7520 # whether `pass_all' will *always* work, you probably want this one.
7522 case $host_os in
7523 aix[4-9]*)
7524 lt_cv_deplibs_check_method=pass_all
7527 beos*)
7528 lt_cv_deplibs_check_method=pass_all
7531 bsdi[45]*)
7532 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7533 lt_cv_file_magic_cmd='/usr/bin/file -L'
7534 lt_cv_file_magic_test_file=/shlib/libc.so
7537 cygwin*)
7538 # func_win32_libid is a shell function defined in ltmain.sh
7539 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7540 lt_cv_file_magic_cmd='func_win32_libid'
7543 mingw* | pw32*)
7544 # Base MSYS/MinGW do not provide the 'file' command needed by
7545 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7546 # unless we find 'file', for example because we are cross-compiling.
7547 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7548 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7549 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7550 lt_cv_file_magic_cmd='func_win32_libid'
7551 else
7552 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7553 lt_cv_file_magic_cmd='$OBJDUMP -f'
7557 cegcc*)
7558 # use the weaker test based on 'objdump'. See mingw*.
7559 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7560 lt_cv_file_magic_cmd='$OBJDUMP -f'
7563 darwin* | rhapsody*)
7564 lt_cv_deplibs_check_method=pass_all
7567 freebsd* | dragonfly*)
7568 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7569 case $host_cpu in
7570 i*86 )
7571 # Not sure whether the presence of OpenBSD here was a mistake.
7572 # Let's accept both of them until this is cleared up.
7573 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7574 lt_cv_file_magic_cmd=/usr/bin/file
7575 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7577 esac
7578 else
7579 lt_cv_deplibs_check_method=pass_all
7583 gnu*)
7584 lt_cv_deplibs_check_method=pass_all
7587 haiku*)
7588 lt_cv_deplibs_check_method=pass_all
7591 hpux10.20* | hpux11*)
7592 lt_cv_file_magic_cmd=/usr/bin/file
7593 case $host_cpu in
7594 ia64*)
7595 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7596 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7598 hppa*64*)
7599 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]'
7600 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7603 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7604 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7606 esac
7609 interix[3-9]*)
7610 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7614 irix5* | irix6* | nonstopux*)
7615 case $LD in
7616 *-32|*"-32 ") libmagic=32-bit;;
7617 *-n32|*"-n32 ") libmagic=N32;;
7618 *-64|*"-64 ") libmagic=64-bit;;
7619 *) libmagic=never-match;;
7620 esac
7621 lt_cv_deplibs_check_method=pass_all
7624 # This must be Linux ELF.
7625 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7626 lt_cv_deplibs_check_method=pass_all
7629 netbsd*)
7630 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7631 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7632 else
7633 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7637 newos6*)
7638 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7639 lt_cv_file_magic_cmd=/usr/bin/file
7640 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7643 *nto* | *qnx*)
7644 lt_cv_deplibs_check_method=pass_all
7647 openbsd*)
7648 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7649 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7650 else
7651 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7655 osf3* | osf4* | osf5*)
7656 lt_cv_deplibs_check_method=pass_all
7659 rdos*)
7660 lt_cv_deplibs_check_method=pass_all
7663 solaris*)
7664 lt_cv_deplibs_check_method=pass_all
7667 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7668 lt_cv_deplibs_check_method=pass_all
7671 sysv4 | sysv4.3*)
7672 case $host_vendor in
7673 motorola)
7674 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]'
7675 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7677 ncr)
7678 lt_cv_deplibs_check_method=pass_all
7680 sequent)
7681 lt_cv_file_magic_cmd='/bin/file'
7682 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7684 sni)
7685 lt_cv_file_magic_cmd='/bin/file'
7686 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7687 lt_cv_file_magic_test_file=/lib/libc.so
7689 siemens)
7690 lt_cv_deplibs_check_method=pass_all
7693 lt_cv_deplibs_check_method=pass_all
7695 esac
7698 tpf*)
7699 lt_cv_deplibs_check_method=pass_all
7701 vxworks*)
7702 # Assume VxWorks cross toolchains are built on Linux, possibly
7703 # as canadian for Windows hosts.
7704 lt_cv_deplibs_check_method=pass_all
7706 esac
7709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7710 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7711 file_magic_cmd=$lt_cv_file_magic_cmd
7712 deplibs_check_method=$lt_cv_deplibs_check_method
7713 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7726 plugin_option=
7727 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
7728 for plugin in $plugin_names; do
7729 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7730 if test x$plugin_so = x$plugin; then
7731 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7733 if test x$plugin_so != x$plugin; then
7734 plugin_option="--plugin $plugin_so"
7735 break
7737 done
7739 if test -n "$ac_tool_prefix"; then
7740 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7741 set dummy ${ac_tool_prefix}ar; ac_word=$2
7742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7743 $as_echo_n "checking for $ac_word... " >&6; }
7744 if ${ac_cv_prog_AR+:} false; then :
7745 $as_echo_n "(cached) " >&6
7746 else
7747 if test -n "$AR"; then
7748 ac_cv_prog_AR="$AR" # Let the user override the test.
7749 else
7750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7751 for as_dir in $PATH
7753 IFS=$as_save_IFS
7754 test -z "$as_dir" && as_dir=.
7755 for ac_exec_ext in '' $ac_executable_extensions; do
7756 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7757 ac_cv_prog_AR="${ac_tool_prefix}ar"
7758 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7759 break 2
7761 done
7762 done
7763 IFS=$as_save_IFS
7767 AR=$ac_cv_prog_AR
7768 if test -n "$AR"; then
7769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7770 $as_echo "$AR" >&6; }
7771 else
7772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7773 $as_echo "no" >&6; }
7778 if test -z "$ac_cv_prog_AR"; then
7779 ac_ct_AR=$AR
7780 # Extract the first word of "ar", so it can be a program name with args.
7781 set dummy ar; ac_word=$2
7782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7783 $as_echo_n "checking for $ac_word... " >&6; }
7784 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7785 $as_echo_n "(cached) " >&6
7786 else
7787 if test -n "$ac_ct_AR"; then
7788 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7789 else
7790 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7791 for as_dir in $PATH
7793 IFS=$as_save_IFS
7794 test -z "$as_dir" && as_dir=.
7795 for ac_exec_ext in '' $ac_executable_extensions; do
7796 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7797 ac_cv_prog_ac_ct_AR="ar"
7798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7799 break 2
7801 done
7802 done
7803 IFS=$as_save_IFS
7807 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7808 if test -n "$ac_ct_AR"; then
7809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7810 $as_echo "$ac_ct_AR" >&6; }
7811 else
7812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7813 $as_echo "no" >&6; }
7816 if test "x$ac_ct_AR" = x; then
7817 AR="false"
7818 else
7819 case $cross_compiling:$ac_tool_warned in
7820 yes:)
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7822 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7823 ac_tool_warned=yes ;;
7824 esac
7825 AR=$ac_ct_AR
7827 else
7828 AR="$ac_cv_prog_AR"
7831 test -z "$AR" && AR=ar
7832 if test -n "$plugin_option"; then
7833 if $AR --help 2>&1 | grep -q "\--plugin"; then
7834 touch conftest.c
7835 $AR $plugin_option rc conftest.a conftest.c
7836 if test "$?" != 0; then
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
7838 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
7839 else
7840 AR="$AR $plugin_option"
7842 rm -f conftest.*
7845 test -z "$AR_FLAGS" && AR_FLAGS=cru
7857 if test -n "$ac_tool_prefix"; then
7858 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7859 set dummy ${ac_tool_prefix}strip; ac_word=$2
7860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7861 $as_echo_n "checking for $ac_word... " >&6; }
7862 if ${ac_cv_prog_STRIP+:} false; then :
7863 $as_echo_n "(cached) " >&6
7864 else
7865 if test -n "$STRIP"; then
7866 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7867 else
7868 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7869 for as_dir in $PATH
7871 IFS=$as_save_IFS
7872 test -z "$as_dir" && as_dir=.
7873 for ac_exec_ext in '' $ac_executable_extensions; do
7874 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7875 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7876 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7877 break 2
7879 done
7880 done
7881 IFS=$as_save_IFS
7885 STRIP=$ac_cv_prog_STRIP
7886 if test -n "$STRIP"; then
7887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7888 $as_echo "$STRIP" >&6; }
7889 else
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7891 $as_echo "no" >&6; }
7896 if test -z "$ac_cv_prog_STRIP"; then
7897 ac_ct_STRIP=$STRIP
7898 # Extract the first word of "strip", so it can be a program name with args.
7899 set dummy strip; ac_word=$2
7900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7901 $as_echo_n "checking for $ac_word... " >&6; }
7902 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7903 $as_echo_n "(cached) " >&6
7904 else
7905 if test -n "$ac_ct_STRIP"; then
7906 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7907 else
7908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7909 for as_dir in $PATH
7911 IFS=$as_save_IFS
7912 test -z "$as_dir" && as_dir=.
7913 for ac_exec_ext in '' $ac_executable_extensions; do
7914 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7915 ac_cv_prog_ac_ct_STRIP="strip"
7916 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7917 break 2
7919 done
7920 done
7921 IFS=$as_save_IFS
7925 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7926 if test -n "$ac_ct_STRIP"; then
7927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7928 $as_echo "$ac_ct_STRIP" >&6; }
7929 else
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7931 $as_echo "no" >&6; }
7934 if test "x$ac_ct_STRIP" = x; then
7935 STRIP=":"
7936 else
7937 case $cross_compiling:$ac_tool_warned in
7938 yes:)
7939 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7940 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7941 ac_tool_warned=yes ;;
7942 esac
7943 STRIP=$ac_ct_STRIP
7945 else
7946 STRIP="$ac_cv_prog_STRIP"
7949 test -z "$STRIP" && STRIP=:
7956 if test -n "$ac_tool_prefix"; then
7957 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7958 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7960 $as_echo_n "checking for $ac_word... " >&6; }
7961 if ${ac_cv_prog_RANLIB+:} false; then :
7962 $as_echo_n "(cached) " >&6
7963 else
7964 if test -n "$RANLIB"; then
7965 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7966 else
7967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7968 for as_dir in $PATH
7970 IFS=$as_save_IFS
7971 test -z "$as_dir" && as_dir=.
7972 for ac_exec_ext in '' $ac_executable_extensions; do
7973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7974 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7976 break 2
7978 done
7979 done
7980 IFS=$as_save_IFS
7984 RANLIB=$ac_cv_prog_RANLIB
7985 if test -n "$RANLIB"; then
7986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7987 $as_echo "$RANLIB" >&6; }
7988 else
7989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7990 $as_echo "no" >&6; }
7995 if test -z "$ac_cv_prog_RANLIB"; then
7996 ac_ct_RANLIB=$RANLIB
7997 # Extract the first word of "ranlib", so it can be a program name with args.
7998 set dummy ranlib; ac_word=$2
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8000 $as_echo_n "checking for $ac_word... " >&6; }
8001 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
8002 $as_echo_n "(cached) " >&6
8003 else
8004 if test -n "$ac_ct_RANLIB"; then
8005 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
8006 else
8007 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8008 for as_dir in $PATH
8010 IFS=$as_save_IFS
8011 test -z "$as_dir" && as_dir=.
8012 for ac_exec_ext in '' $ac_executable_extensions; do
8013 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8014 ac_cv_prog_ac_ct_RANLIB="ranlib"
8015 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8016 break 2
8018 done
8019 done
8020 IFS=$as_save_IFS
8024 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
8025 if test -n "$ac_ct_RANLIB"; then
8026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
8027 $as_echo "$ac_ct_RANLIB" >&6; }
8028 else
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8030 $as_echo "no" >&6; }
8033 if test "x$ac_ct_RANLIB" = x; then
8034 RANLIB=":"
8035 else
8036 case $cross_compiling:$ac_tool_warned in
8037 yes:)
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8039 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8040 ac_tool_warned=yes ;;
8041 esac
8042 RANLIB=$ac_ct_RANLIB
8044 else
8045 RANLIB="$ac_cv_prog_RANLIB"
8048 test -z "$RANLIB" && RANLIB=:
8049 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
8050 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
8051 RANLIB="$RANLIB $plugin_option"
8060 # Determine commands to create old-style static archives.
8061 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8062 old_postinstall_cmds='chmod 644 $oldlib'
8063 old_postuninstall_cmds=
8065 if test -n "$RANLIB"; then
8066 case $host_os in
8067 openbsd*)
8068 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8071 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8073 esac
8074 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8077 case $host_os in
8078 darwin*)
8079 lock_old_archive_extraction=yes ;;
8081 lock_old_archive_extraction=no ;;
8082 esac
8122 # If no C compiler was specified, use CC.
8123 LTCC=${LTCC-"$CC"}
8125 # If no C compiler flags were specified, use CFLAGS.
8126 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8128 # Allow CC to be a program name with arguments.
8129 compiler=$CC
8132 # Check for command to grab the raw symbol name followed by C symbol from nm.
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8134 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8135 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8136 $as_echo_n "(cached) " >&6
8137 else
8139 # These are sane defaults that work on at least a few old systems.
8140 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8142 # Character class describing NM global symbol codes.
8143 symcode='[BCDEGRST]'
8145 # Regexp to match symbols that can be accessed directly from C.
8146 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8148 # Define system-specific variables.
8149 case $host_os in
8150 aix*)
8151 symcode='[BCDT]'
8153 cygwin* | mingw* | pw32* | cegcc*)
8154 symcode='[ABCDGISTW]'
8156 hpux*)
8157 if test "$host_cpu" = ia64; then
8158 symcode='[ABCDEGRST]'
8161 irix* | nonstopux*)
8162 symcode='[BCDEGRST]'
8164 osf*)
8165 symcode='[BCDEGQRST]'
8167 solaris*)
8168 symcode='[BCDRT]'
8170 sco3.2v5*)
8171 symcode='[DT]'
8173 sysv4.2uw2*)
8174 symcode='[DT]'
8176 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8177 symcode='[ABDT]'
8179 sysv4)
8180 symcode='[DFNSTU]'
8182 esac
8184 # If we're using GNU nm, then use its standard symbol codes.
8185 case `$NM -V 2>&1` in
8186 *GNU* | *'with BFD'*)
8187 symcode='[ABCDGIRSTW]' ;;
8188 esac
8190 # Transform an extracted symbol line into a proper C declaration.
8191 # Some systems (esp. on ia64) link data and code symbols differently,
8192 # so use this general approach.
8193 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8195 # Transform an extracted symbol line into symbol name and symbol address
8196 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8197 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'"
8199 # Handle CRLF in mingw tool chain
8200 opt_cr=
8201 case $build_os in
8202 mingw*)
8203 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8205 esac
8207 # Try without a prefix underscore, then with it.
8208 for ac_symprfx in "" "_"; do
8210 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8211 symxfrm="\\1 $ac_symprfx\\2 \\2"
8213 # Write the raw and C identifiers.
8214 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8215 # Fake it for dumpbin and say T for any non-static function
8216 # and D for any global variable.
8217 # Also find C++ and __fastcall symbols from MSVC++,
8218 # which start with @ or ?.
8219 lt_cv_sys_global_symbol_pipe="$AWK '"\
8220 " {last_section=section; section=\$ 3};"\
8221 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8222 " \$ 0!~/External *\|/{next};"\
8223 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8224 " {if(hide[section]) next};"\
8225 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8226 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8227 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8228 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8229 " ' prfx=^$ac_symprfx"
8230 else
8231 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8234 # Check to see that the pipe works correctly.
8235 pipe_works=no
8237 rm -f conftest*
8238 cat > conftest.$ac_ext <<_LT_EOF
8239 #ifdef __cplusplus
8240 extern "C" {
8241 #endif
8242 char nm_test_var;
8243 void nm_test_func(void);
8244 void nm_test_func(void){}
8245 #ifdef __cplusplus
8247 #endif
8248 int main(){nm_test_var='a';nm_test_func();return(0);}
8249 _LT_EOF
8251 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8252 (eval $ac_compile) 2>&5
8253 ac_status=$?
8254 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8255 test $ac_status = 0; }; then
8256 # Now try to grab the symbols.
8257 nlist=conftest.nm
8258 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8259 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8260 ac_status=$?
8261 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8262 test $ac_status = 0; } && test -s "$nlist"; then
8263 # Try sorting and uniquifying the output.
8264 if sort "$nlist" | uniq > "$nlist"T; then
8265 mv -f "$nlist"T "$nlist"
8266 else
8267 rm -f "$nlist"T
8270 # Make sure that we snagged all the symbols we need.
8271 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8272 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8273 cat <<_LT_EOF > conftest.$ac_ext
8274 #ifdef __cplusplus
8275 extern "C" {
8276 #endif
8278 _LT_EOF
8279 # Now generate the symbol file.
8280 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8282 cat <<_LT_EOF >> conftest.$ac_ext
8284 /* The mapping between symbol names and symbols. */
8285 const struct {
8286 const char *name;
8287 void *address;
8289 lt__PROGRAM__LTX_preloaded_symbols[] =
8291 { "@PROGRAM@", (void *) 0 },
8292 _LT_EOF
8293 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8294 cat <<\_LT_EOF >> conftest.$ac_ext
8295 {0, (void *) 0}
8298 /* This works around a problem in FreeBSD linker */
8299 #ifdef FREEBSD_WORKAROUND
8300 static const void *lt_preloaded_setup() {
8301 return lt__PROGRAM__LTX_preloaded_symbols;
8303 #endif
8305 #ifdef __cplusplus
8307 #endif
8308 _LT_EOF
8309 # Now try linking the two files.
8310 mv conftest.$ac_objext conftstm.$ac_objext
8311 lt_save_LIBS="$LIBS"
8312 lt_save_CFLAGS="$CFLAGS"
8313 LIBS="conftstm.$ac_objext"
8314 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8316 (eval $ac_link) 2>&5
8317 ac_status=$?
8318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8319 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8320 pipe_works=yes
8322 LIBS="$lt_save_LIBS"
8323 CFLAGS="$lt_save_CFLAGS"
8324 else
8325 echo "cannot find nm_test_func in $nlist" >&5
8327 else
8328 echo "cannot find nm_test_var in $nlist" >&5
8330 else
8331 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8333 else
8334 echo "$progname: failed program was:" >&5
8335 cat conftest.$ac_ext >&5
8337 rm -rf conftest* conftst*
8339 # Do not use the global_symbol_pipe unless it works.
8340 if test "$pipe_works" = yes; then
8341 break
8342 else
8343 lt_cv_sys_global_symbol_pipe=
8345 done
8349 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8350 lt_cv_sys_global_symbol_to_cdecl=
8352 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8354 $as_echo "failed" >&6; }
8355 else
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8357 $as_echo "ok" >&6; }
8381 # Check whether --enable-libtool-lock was given.
8382 if test "${enable_libtool_lock+set}" = set; then :
8383 enableval=$enable_libtool_lock;
8386 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8388 # Some flags need to be propagated to the compiler or linker for good
8389 # libtool support.
8390 case $host in
8391 ia64-*-hpux*)
8392 # Find out which ABI we are using.
8393 echo 'int i;' > conftest.$ac_ext
8394 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8395 (eval $ac_compile) 2>&5
8396 ac_status=$?
8397 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8398 test $ac_status = 0; }; then
8399 case `/usr/bin/file conftest.$ac_objext` in
8400 *ELF-32*)
8401 HPUX_IA64_MODE="32"
8403 *ELF-64*)
8404 HPUX_IA64_MODE="64"
8406 esac
8408 rm -rf conftest*
8410 *-*-irix6*)
8411 # Find out which ABI we are using.
8412 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8414 (eval $ac_compile) 2>&5
8415 ac_status=$?
8416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8417 test $ac_status = 0; }; then
8418 if test "$lt_cv_prog_gnu_ld" = yes; then
8419 case `/usr/bin/file conftest.$ac_objext` in
8420 *32-bit*)
8421 LD="${LD-ld} -melf32bsmip"
8423 *N32*)
8424 LD="${LD-ld} -melf32bmipn32"
8426 *64-bit*)
8427 LD="${LD-ld} -melf64bmip"
8429 esac
8430 else
8431 case `/usr/bin/file conftest.$ac_objext` in
8432 *32-bit*)
8433 LD="${LD-ld} -32"
8435 *N32*)
8436 LD="${LD-ld} -n32"
8438 *64-bit*)
8439 LD="${LD-ld} -64"
8441 esac
8444 rm -rf conftest*
8447 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8448 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8449 # Find out which ABI we are using.
8450 echo 'int i;' > conftest.$ac_ext
8451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8452 (eval $ac_compile) 2>&5
8453 ac_status=$?
8454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8455 test $ac_status = 0; }; then
8456 case `/usr/bin/file conftest.o` in
8457 *32-bit*)
8458 case $host in
8459 x86_64-*kfreebsd*-gnu)
8460 LD="${LD-ld} -m elf_i386_fbsd"
8462 x86_64-*linux*)
8463 case `/usr/bin/file conftest.o` in
8464 *x86-64*)
8465 LD="${LD-ld} -m elf32_x86_64"
8468 LD="${LD-ld} -m elf_i386"
8470 esac
8472 powerpc64le-*linux*)
8473 LD="${LD-ld} -m elf32lppclinux"
8475 powerpc64-*linux*)
8476 LD="${LD-ld} -m elf32ppclinux"
8478 s390x-*linux*)
8479 LD="${LD-ld} -m elf_s390"
8481 sparc64-*linux*)
8482 LD="${LD-ld} -m elf32_sparc"
8484 esac
8486 *64-bit*)
8487 case $host in
8488 x86_64-*kfreebsd*-gnu)
8489 LD="${LD-ld} -m elf_x86_64_fbsd"
8491 x86_64-*linux*)
8492 LD="${LD-ld} -m elf_x86_64"
8494 powerpcle-*linux*)
8495 LD="${LD-ld} -m elf64lppc"
8497 powerpc-*linux*)
8498 LD="${LD-ld} -m elf64ppc"
8500 s390*-*linux*|s390*-*tpf*)
8501 LD="${LD-ld} -m elf64_s390"
8503 sparc*-*linux*)
8504 LD="${LD-ld} -m elf64_sparc"
8506 esac
8508 esac
8510 rm -rf conftest*
8513 *-*-sco3.2v5*)
8514 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8515 SAVE_CFLAGS="$CFLAGS"
8516 CFLAGS="$CFLAGS -belf"
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8518 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8519 if ${lt_cv_cc_needs_belf+:} false; then :
8520 $as_echo_n "(cached) " >&6
8521 else
8522 ac_ext=c
8523 ac_cpp='$CPP $CPPFLAGS'
8524 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8525 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8526 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8528 if test x$gcc_no_link = xyes; then
8529 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8532 /* end confdefs.h. */
8535 main ()
8539 return 0;
8541 _ACEOF
8542 if ac_fn_c_try_link "$LINENO"; then :
8543 lt_cv_cc_needs_belf=yes
8544 else
8545 lt_cv_cc_needs_belf=no
8547 rm -f core conftest.err conftest.$ac_objext \
8548 conftest$ac_exeext conftest.$ac_ext
8549 ac_ext=c
8550 ac_cpp='$CPP $CPPFLAGS'
8551 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8552 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8553 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8557 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8558 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8559 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8560 CFLAGS="$SAVE_CFLAGS"
8563 sparc*-*solaris*)
8564 # Find out which ABI we are using.
8565 echo 'int i;' > conftest.$ac_ext
8566 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8567 (eval $ac_compile) 2>&5
8568 ac_status=$?
8569 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8570 test $ac_status = 0; }; then
8571 case `/usr/bin/file conftest.o` in
8572 *64-bit*)
8573 case $lt_cv_prog_gnu_ld in
8574 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8576 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8577 LD="${LD-ld} -64"
8580 esac
8582 esac
8584 rm -rf conftest*
8586 esac
8588 need_locks="$enable_libtool_lock"
8591 case $host_os in
8592 rhapsody* | darwin*)
8593 if test -n "$ac_tool_prefix"; then
8594 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8595 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8597 $as_echo_n "checking for $ac_word... " >&6; }
8598 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8599 $as_echo_n "(cached) " >&6
8600 else
8601 if test -n "$DSYMUTIL"; then
8602 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8603 else
8604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8605 for as_dir in $PATH
8607 IFS=$as_save_IFS
8608 test -z "$as_dir" && as_dir=.
8609 for ac_exec_ext in '' $ac_executable_extensions; do
8610 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8611 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8613 break 2
8615 done
8616 done
8617 IFS=$as_save_IFS
8621 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8622 if test -n "$DSYMUTIL"; then
8623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8624 $as_echo "$DSYMUTIL" >&6; }
8625 else
8626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8627 $as_echo "no" >&6; }
8632 if test -z "$ac_cv_prog_DSYMUTIL"; then
8633 ac_ct_DSYMUTIL=$DSYMUTIL
8634 # Extract the first word of "dsymutil", so it can be a program name with args.
8635 set dummy dsymutil; ac_word=$2
8636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8637 $as_echo_n "checking for $ac_word... " >&6; }
8638 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8639 $as_echo_n "(cached) " >&6
8640 else
8641 if test -n "$ac_ct_DSYMUTIL"; then
8642 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8643 else
8644 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8645 for as_dir in $PATH
8647 IFS=$as_save_IFS
8648 test -z "$as_dir" && as_dir=.
8649 for ac_exec_ext in '' $ac_executable_extensions; do
8650 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8651 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8653 break 2
8655 done
8656 done
8657 IFS=$as_save_IFS
8661 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8662 if test -n "$ac_ct_DSYMUTIL"; then
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8664 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8665 else
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8667 $as_echo "no" >&6; }
8670 if test "x$ac_ct_DSYMUTIL" = x; then
8671 DSYMUTIL=":"
8672 else
8673 case $cross_compiling:$ac_tool_warned in
8674 yes:)
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8676 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8677 ac_tool_warned=yes ;;
8678 esac
8679 DSYMUTIL=$ac_ct_DSYMUTIL
8681 else
8682 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8685 if test -n "$ac_tool_prefix"; then
8686 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8687 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8689 $as_echo_n "checking for $ac_word... " >&6; }
8690 if ${ac_cv_prog_NMEDIT+:} false; then :
8691 $as_echo_n "(cached) " >&6
8692 else
8693 if test -n "$NMEDIT"; then
8694 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8695 else
8696 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8697 for as_dir in $PATH
8699 IFS=$as_save_IFS
8700 test -z "$as_dir" && as_dir=.
8701 for ac_exec_ext in '' $ac_executable_extensions; do
8702 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8703 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8705 break 2
8707 done
8708 done
8709 IFS=$as_save_IFS
8713 NMEDIT=$ac_cv_prog_NMEDIT
8714 if test -n "$NMEDIT"; then
8715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8716 $as_echo "$NMEDIT" >&6; }
8717 else
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8719 $as_echo "no" >&6; }
8724 if test -z "$ac_cv_prog_NMEDIT"; then
8725 ac_ct_NMEDIT=$NMEDIT
8726 # Extract the first word of "nmedit", so it can be a program name with args.
8727 set dummy nmedit; ac_word=$2
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8729 $as_echo_n "checking for $ac_word... " >&6; }
8730 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8731 $as_echo_n "(cached) " >&6
8732 else
8733 if test -n "$ac_ct_NMEDIT"; then
8734 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8735 else
8736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737 for as_dir in $PATH
8739 IFS=$as_save_IFS
8740 test -z "$as_dir" && as_dir=.
8741 for ac_exec_ext in '' $ac_executable_extensions; do
8742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8743 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8745 break 2
8747 done
8748 done
8749 IFS=$as_save_IFS
8753 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8754 if test -n "$ac_ct_NMEDIT"; then
8755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8756 $as_echo "$ac_ct_NMEDIT" >&6; }
8757 else
8758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8759 $as_echo "no" >&6; }
8762 if test "x$ac_ct_NMEDIT" = x; then
8763 NMEDIT=":"
8764 else
8765 case $cross_compiling:$ac_tool_warned in
8766 yes:)
8767 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8768 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8769 ac_tool_warned=yes ;;
8770 esac
8771 NMEDIT=$ac_ct_NMEDIT
8773 else
8774 NMEDIT="$ac_cv_prog_NMEDIT"
8777 if test -n "$ac_tool_prefix"; then
8778 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8779 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8781 $as_echo_n "checking for $ac_word... " >&6; }
8782 if ${ac_cv_prog_LIPO+:} false; then :
8783 $as_echo_n "(cached) " >&6
8784 else
8785 if test -n "$LIPO"; then
8786 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8787 else
8788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8789 for as_dir in $PATH
8791 IFS=$as_save_IFS
8792 test -z "$as_dir" && as_dir=.
8793 for ac_exec_ext in '' $ac_executable_extensions; do
8794 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8795 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8797 break 2
8799 done
8800 done
8801 IFS=$as_save_IFS
8805 LIPO=$ac_cv_prog_LIPO
8806 if test -n "$LIPO"; then
8807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8808 $as_echo "$LIPO" >&6; }
8809 else
8810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8811 $as_echo "no" >&6; }
8816 if test -z "$ac_cv_prog_LIPO"; then
8817 ac_ct_LIPO=$LIPO
8818 # Extract the first word of "lipo", so it can be a program name with args.
8819 set dummy lipo; ac_word=$2
8820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8821 $as_echo_n "checking for $ac_word... " >&6; }
8822 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8823 $as_echo_n "(cached) " >&6
8824 else
8825 if test -n "$ac_ct_LIPO"; then
8826 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8827 else
8828 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8829 for as_dir in $PATH
8831 IFS=$as_save_IFS
8832 test -z "$as_dir" && as_dir=.
8833 for ac_exec_ext in '' $ac_executable_extensions; do
8834 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8835 ac_cv_prog_ac_ct_LIPO="lipo"
8836 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8837 break 2
8839 done
8840 done
8841 IFS=$as_save_IFS
8845 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8846 if test -n "$ac_ct_LIPO"; then
8847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8848 $as_echo "$ac_ct_LIPO" >&6; }
8849 else
8850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8851 $as_echo "no" >&6; }
8854 if test "x$ac_ct_LIPO" = x; then
8855 LIPO=":"
8856 else
8857 case $cross_compiling:$ac_tool_warned in
8858 yes:)
8859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8860 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8861 ac_tool_warned=yes ;;
8862 esac
8863 LIPO=$ac_ct_LIPO
8865 else
8866 LIPO="$ac_cv_prog_LIPO"
8869 if test -n "$ac_tool_prefix"; then
8870 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8871 set dummy ${ac_tool_prefix}otool; ac_word=$2
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8873 $as_echo_n "checking for $ac_word... " >&6; }
8874 if ${ac_cv_prog_OTOOL+:} false; then :
8875 $as_echo_n "(cached) " >&6
8876 else
8877 if test -n "$OTOOL"; then
8878 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8879 else
8880 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8881 for as_dir in $PATH
8883 IFS=$as_save_IFS
8884 test -z "$as_dir" && as_dir=.
8885 for ac_exec_ext in '' $ac_executable_extensions; do
8886 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8887 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8889 break 2
8891 done
8892 done
8893 IFS=$as_save_IFS
8897 OTOOL=$ac_cv_prog_OTOOL
8898 if test -n "$OTOOL"; then
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8900 $as_echo "$OTOOL" >&6; }
8901 else
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8903 $as_echo "no" >&6; }
8908 if test -z "$ac_cv_prog_OTOOL"; then
8909 ac_ct_OTOOL=$OTOOL
8910 # Extract the first word of "otool", so it can be a program name with args.
8911 set dummy otool; ac_word=$2
8912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8913 $as_echo_n "checking for $ac_word... " >&6; }
8914 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8915 $as_echo_n "(cached) " >&6
8916 else
8917 if test -n "$ac_ct_OTOOL"; then
8918 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8919 else
8920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8921 for as_dir in $PATH
8923 IFS=$as_save_IFS
8924 test -z "$as_dir" && as_dir=.
8925 for ac_exec_ext in '' $ac_executable_extensions; do
8926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8927 ac_cv_prog_ac_ct_OTOOL="otool"
8928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8929 break 2
8931 done
8932 done
8933 IFS=$as_save_IFS
8937 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8938 if test -n "$ac_ct_OTOOL"; then
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8940 $as_echo "$ac_ct_OTOOL" >&6; }
8941 else
8942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8943 $as_echo "no" >&6; }
8946 if test "x$ac_ct_OTOOL" = x; then
8947 OTOOL=":"
8948 else
8949 case $cross_compiling:$ac_tool_warned in
8950 yes:)
8951 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8952 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8953 ac_tool_warned=yes ;;
8954 esac
8955 OTOOL=$ac_ct_OTOOL
8957 else
8958 OTOOL="$ac_cv_prog_OTOOL"
8961 if test -n "$ac_tool_prefix"; then
8962 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8963 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8965 $as_echo_n "checking for $ac_word... " >&6; }
8966 if ${ac_cv_prog_OTOOL64+:} false; then :
8967 $as_echo_n "(cached) " >&6
8968 else
8969 if test -n "$OTOOL64"; then
8970 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8971 else
8972 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8973 for as_dir in $PATH
8975 IFS=$as_save_IFS
8976 test -z "$as_dir" && as_dir=.
8977 for ac_exec_ext in '' $ac_executable_extensions; do
8978 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8979 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8981 break 2
8983 done
8984 done
8985 IFS=$as_save_IFS
8989 OTOOL64=$ac_cv_prog_OTOOL64
8990 if test -n "$OTOOL64"; then
8991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8992 $as_echo "$OTOOL64" >&6; }
8993 else
8994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8995 $as_echo "no" >&6; }
9000 if test -z "$ac_cv_prog_OTOOL64"; then
9001 ac_ct_OTOOL64=$OTOOL64
9002 # Extract the first word of "otool64", so it can be a program name with args.
9003 set dummy otool64; ac_word=$2
9004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9005 $as_echo_n "checking for $ac_word... " >&6; }
9006 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
9007 $as_echo_n "(cached) " >&6
9008 else
9009 if test -n "$ac_ct_OTOOL64"; then
9010 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
9011 else
9012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9013 for as_dir in $PATH
9015 IFS=$as_save_IFS
9016 test -z "$as_dir" && as_dir=.
9017 for ac_exec_ext in '' $ac_executable_extensions; do
9018 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9019 ac_cv_prog_ac_ct_OTOOL64="otool64"
9020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9021 break 2
9023 done
9024 done
9025 IFS=$as_save_IFS
9029 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
9030 if test -n "$ac_ct_OTOOL64"; then
9031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
9032 $as_echo "$ac_ct_OTOOL64" >&6; }
9033 else
9034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9035 $as_echo "no" >&6; }
9038 if test "x$ac_ct_OTOOL64" = x; then
9039 OTOOL64=":"
9040 else
9041 case $cross_compiling:$ac_tool_warned in
9042 yes:)
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9044 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9045 ac_tool_warned=yes ;;
9046 esac
9047 OTOOL64=$ac_ct_OTOOL64
9049 else
9050 OTOOL64="$ac_cv_prog_OTOOL64"
9079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9080 $as_echo_n "checking for -single_module linker flag... " >&6; }
9081 if ${lt_cv_apple_cc_single_mod+:} false; then :
9082 $as_echo_n "(cached) " >&6
9083 else
9084 lt_cv_apple_cc_single_mod=no
9085 if test -z "${LT_MULTI_MODULE}"; then
9086 # By default we will add the -single_module flag. You can override
9087 # by either setting the environment variable LT_MULTI_MODULE
9088 # non-empty at configure time, or by adding -multi_module to the
9089 # link flags.
9090 rm -rf libconftest.dylib*
9091 echo "int foo(void){return 1;}" > conftest.c
9092 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9093 -dynamiclib -Wl,-single_module conftest.c" >&5
9094 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9095 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9096 _lt_result=$?
9097 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9098 lt_cv_apple_cc_single_mod=yes
9099 else
9100 cat conftest.err >&5
9102 rm -rf libconftest.dylib*
9103 rm -f conftest.*
9106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9107 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9109 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9110 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9111 $as_echo_n "(cached) " >&6
9112 else
9113 lt_cv_ld_exported_symbols_list=no
9114 save_LDFLAGS=$LDFLAGS
9115 echo "_main" > conftest.sym
9116 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9117 if test x$gcc_no_link = xyes; then
9118 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9121 /* end confdefs.h. */
9124 main ()
9128 return 0;
9130 _ACEOF
9131 if ac_fn_c_try_link "$LINENO"; then :
9132 lt_cv_ld_exported_symbols_list=yes
9133 else
9134 lt_cv_ld_exported_symbols_list=no
9136 rm -f core conftest.err conftest.$ac_objext \
9137 conftest$ac_exeext conftest.$ac_ext
9138 LDFLAGS="$save_LDFLAGS"
9141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9142 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9144 $as_echo_n "checking for -force_load linker flag... " >&6; }
9145 if ${lt_cv_ld_force_load+:} false; then :
9146 $as_echo_n "(cached) " >&6
9147 else
9148 lt_cv_ld_force_load=no
9149 cat > conftest.c << _LT_EOF
9150 int forced_loaded() { return 2;}
9151 _LT_EOF
9152 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9153 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9154 echo "$AR cru libconftest.a conftest.o" >&5
9155 $AR cru libconftest.a conftest.o 2>&5
9156 cat > conftest.c << _LT_EOF
9157 int main() { return 0;}
9158 _LT_EOF
9159 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9160 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9161 _lt_result=$?
9162 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9163 lt_cv_ld_force_load=yes
9164 else
9165 cat conftest.err >&5
9167 rm -f conftest.err libconftest.a conftest conftest.c
9168 rm -rf conftest.dSYM
9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9172 $as_echo "$lt_cv_ld_force_load" >&6; }
9173 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
9174 # build without first building modern cctools / linker.
9175 case $host_cpu-$host_os in
9176 *-rhapsody* | *-darwin1.[012])
9177 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9178 *-darwin1.*)
9179 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9180 *-darwin*)
9181 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
9182 # deployment target is forced to an earlier version.
9183 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
9184 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
9186 10.[012][,.]*)
9187 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9191 esac
9193 esac
9194 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9195 _lt_dar_single_mod='$single_module'
9197 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9198 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9199 else
9200 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9202 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9203 _lt_dsymutil='~$DSYMUTIL $lib || :'
9204 else
9205 _lt_dsymutil=
9208 esac
9210 for ac_header in dlfcn.h
9211 do :
9212 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9214 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9215 cat >>confdefs.h <<_ACEOF
9216 #define HAVE_DLFCN_H 1
9217 _ACEOF
9221 done
9228 # Set options
9233 enable_win32_dll=no
9236 # Check whether --enable-shared was given.
9237 if test "${enable_shared+set}" = set; then :
9238 enableval=$enable_shared; p=${PACKAGE-default}
9239 case $enableval in
9240 yes) enable_shared=yes ;;
9241 no) enable_shared=no ;;
9243 enable_shared=no
9244 # Look at the argument we got. We use all the common list separators.
9245 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9246 for pkg in $enableval; do
9247 IFS="$lt_save_ifs"
9248 if test "X$pkg" = "X$p"; then
9249 enable_shared=yes
9251 done
9252 IFS="$lt_save_ifs"
9254 esac
9255 else
9256 enable_shared=yes
9267 # Check whether --enable-static was given.
9268 if test "${enable_static+set}" = set; then :
9269 enableval=$enable_static; p=${PACKAGE-default}
9270 case $enableval in
9271 yes) enable_static=yes ;;
9272 no) enable_static=no ;;
9274 enable_static=no
9275 # Look at the argument we got. We use all the common list separators.
9276 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9277 for pkg in $enableval; do
9278 IFS="$lt_save_ifs"
9279 if test "X$pkg" = "X$p"; then
9280 enable_static=yes
9282 done
9283 IFS="$lt_save_ifs"
9285 esac
9286 else
9287 enable_static=yes
9299 # Check whether --with-pic was given.
9300 if test "${with_pic+set}" = set; then :
9301 withval=$with_pic; pic_mode="$withval"
9302 else
9303 pic_mode=default
9307 test -z "$pic_mode" && pic_mode=default
9315 # Check whether --enable-fast-install was given.
9316 if test "${enable_fast_install+set}" = set; then :
9317 enableval=$enable_fast_install; p=${PACKAGE-default}
9318 case $enableval in
9319 yes) enable_fast_install=yes ;;
9320 no) enable_fast_install=no ;;
9322 enable_fast_install=no
9323 # Look at the argument we got. We use all the common list separators.
9324 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9325 for pkg in $enableval; do
9326 IFS="$lt_save_ifs"
9327 if test "X$pkg" = "X$p"; then
9328 enable_fast_install=yes
9330 done
9331 IFS="$lt_save_ifs"
9333 esac
9334 else
9335 enable_fast_install=yes
9348 # This can be used to rebuild libtool when needed
9349 LIBTOOL_DEPS="$ltmain"
9351 # Always use our own libtool.
9352 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9379 test -z "$LN_S" && LN_S="ln -s"
9394 if test -n "${ZSH_VERSION+set}" ; then
9395 setopt NO_GLOB_SUBST
9398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9399 $as_echo_n "checking for objdir... " >&6; }
9400 if ${lt_cv_objdir+:} false; then :
9401 $as_echo_n "(cached) " >&6
9402 else
9403 rm -f .libs 2>/dev/null
9404 mkdir .libs 2>/dev/null
9405 if test -d .libs; then
9406 lt_cv_objdir=.libs
9407 else
9408 # MS-DOS does not allow filenames that begin with a dot.
9409 lt_cv_objdir=_libs
9411 rmdir .libs 2>/dev/null
9413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9414 $as_echo "$lt_cv_objdir" >&6; }
9415 objdir=$lt_cv_objdir
9421 cat >>confdefs.h <<_ACEOF
9422 #define LT_OBJDIR "$lt_cv_objdir/"
9423 _ACEOF
9428 case $host_os in
9429 aix3*)
9430 # AIX sometimes has problems with the GCC collect2 program. For some
9431 # reason, if we set the COLLECT_NAMES environment variable, the problems
9432 # vanish in a puff of smoke.
9433 if test "X${COLLECT_NAMES+set}" != Xset; then
9434 COLLECT_NAMES=
9435 export COLLECT_NAMES
9438 esac
9440 # Global variables:
9441 ofile=libtool
9442 can_build_shared=yes
9444 # All known linkers require a `.a' archive for static linking (except MSVC,
9445 # which needs '.lib').
9446 libext=a
9448 with_gnu_ld="$lt_cv_prog_gnu_ld"
9450 old_CC="$CC"
9451 old_CFLAGS="$CFLAGS"
9453 # Set sane defaults for various variables
9454 test -z "$CC" && CC=cc
9455 test -z "$LTCC" && LTCC=$CC
9456 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9457 test -z "$LD" && LD=ld
9458 test -z "$ac_objext" && ac_objext=o
9460 for cc_temp in $compiler""; do
9461 case $cc_temp in
9462 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9463 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9464 \-*) ;;
9465 *) break;;
9466 esac
9467 done
9468 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9471 # Only perform the check for file, if the check method requires it
9472 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9473 case $deplibs_check_method in
9474 file_magic*)
9475 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9477 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9478 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9479 $as_echo_n "(cached) " >&6
9480 else
9481 case $MAGIC_CMD in
9482 [\\/*] | ?:[\\/]*)
9483 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9486 lt_save_MAGIC_CMD="$MAGIC_CMD"
9487 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9488 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9489 for ac_dir in $ac_dummy; do
9490 IFS="$lt_save_ifs"
9491 test -z "$ac_dir" && ac_dir=.
9492 if test -f $ac_dir/${ac_tool_prefix}file; then
9493 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9494 if test -n "$file_magic_test_file"; then
9495 case $deplibs_check_method in
9496 "file_magic "*)
9497 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9498 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9499 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9500 $EGREP "$file_magic_regex" > /dev/null; then
9502 else
9503 cat <<_LT_EOF 1>&2
9505 *** Warning: the command libtool uses to detect shared libraries,
9506 *** $file_magic_cmd, produces output that libtool cannot recognize.
9507 *** The result is that libtool may fail to recognize shared libraries
9508 *** as such. This will affect the creation of libtool libraries that
9509 *** depend on shared libraries, but programs linked with such libtool
9510 *** libraries will work regardless of this problem. Nevertheless, you
9511 *** may want to report the problem to your system manager and/or to
9512 *** bug-libtool@gnu.org
9514 _LT_EOF
9515 fi ;;
9516 esac
9518 break
9520 done
9521 IFS="$lt_save_ifs"
9522 MAGIC_CMD="$lt_save_MAGIC_CMD"
9524 esac
9527 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9528 if test -n "$MAGIC_CMD"; then
9529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9530 $as_echo "$MAGIC_CMD" >&6; }
9531 else
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9533 $as_echo "no" >&6; }
9540 if test -z "$lt_cv_path_MAGIC_CMD"; then
9541 if test -n "$ac_tool_prefix"; then
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9543 $as_echo_n "checking for file... " >&6; }
9544 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 case $MAGIC_CMD in
9548 [\\/*] | ?:[\\/]*)
9549 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9552 lt_save_MAGIC_CMD="$MAGIC_CMD"
9553 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9554 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9555 for ac_dir in $ac_dummy; do
9556 IFS="$lt_save_ifs"
9557 test -z "$ac_dir" && ac_dir=.
9558 if test -f $ac_dir/file; then
9559 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9560 if test -n "$file_magic_test_file"; then
9561 case $deplibs_check_method in
9562 "file_magic "*)
9563 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9564 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9565 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9566 $EGREP "$file_magic_regex" > /dev/null; then
9568 else
9569 cat <<_LT_EOF 1>&2
9571 *** Warning: the command libtool uses to detect shared libraries,
9572 *** $file_magic_cmd, produces output that libtool cannot recognize.
9573 *** The result is that libtool may fail to recognize shared libraries
9574 *** as such. This will affect the creation of libtool libraries that
9575 *** depend on shared libraries, but programs linked with such libtool
9576 *** libraries will work regardless of this problem. Nevertheless, you
9577 *** may want to report the problem to your system manager and/or to
9578 *** bug-libtool@gnu.org
9580 _LT_EOF
9581 fi ;;
9582 esac
9584 break
9586 done
9587 IFS="$lt_save_ifs"
9588 MAGIC_CMD="$lt_save_MAGIC_CMD"
9590 esac
9593 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9594 if test -n "$MAGIC_CMD"; then
9595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9596 $as_echo "$MAGIC_CMD" >&6; }
9597 else
9598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9599 $as_echo "no" >&6; }
9603 else
9604 MAGIC_CMD=:
9610 esac
9612 # Use C for the default configuration in the libtool script
9614 lt_save_CC="$CC"
9615 ac_ext=c
9616 ac_cpp='$CPP $CPPFLAGS'
9617 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9618 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9619 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9622 # Source file extension for C test sources.
9623 ac_ext=c
9625 # Object file extension for compiled C test sources.
9626 objext=o
9627 objext=$objext
9629 # Code to be used in simple compile tests
9630 lt_simple_compile_test_code="int some_variable = 0;"
9632 # Code to be used in simple link tests
9633 lt_simple_link_test_code='int main(){return(0);}'
9641 # If no C compiler was specified, use CC.
9642 LTCC=${LTCC-"$CC"}
9644 # If no C compiler flags were specified, use CFLAGS.
9645 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9647 # Allow CC to be a program name with arguments.
9648 compiler=$CC
9650 # Save the default compiler, since it gets overwritten when the other
9651 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9652 compiler_DEFAULT=$CC
9654 # save warnings/boilerplate of simple test code
9655 ac_outfile=conftest.$ac_objext
9656 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9657 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9658 _lt_compiler_boilerplate=`cat conftest.err`
9659 $RM conftest*
9661 ac_outfile=conftest.$ac_objext
9662 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9663 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9664 _lt_linker_boilerplate=`cat conftest.err`
9665 $RM -r conftest*
9668 ## CAVEAT EMPTOR:
9669 ## There is no encapsulation within the following macros, do not change
9670 ## the running order or otherwise move them around unless you know exactly
9671 ## what you are doing...
9672 if test -n "$compiler"; then
9674 lt_prog_compiler_no_builtin_flag=
9676 if test "$GCC" = yes; then
9677 case $cc_basename in
9678 nvcc*)
9679 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9681 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9682 esac
9684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9685 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9686 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9687 $as_echo_n "(cached) " >&6
9688 else
9689 lt_cv_prog_compiler_rtti_exceptions=no
9690 ac_outfile=conftest.$ac_objext
9691 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9692 lt_compiler_flag="-fno-rtti -fno-exceptions"
9693 # Insert the option either (1) after the last *FLAGS variable, or
9694 # (2) before a word containing "conftest.", or (3) at the end.
9695 # Note that $ac_compile itself does not contain backslashes and begins
9696 # with a dollar sign (not a hyphen), so the echo should work correctly.
9697 # The option is referenced via a variable to avoid confusing sed.
9698 lt_compile=`echo "$ac_compile" | $SED \
9699 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9700 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9701 -e 's:$: $lt_compiler_flag:'`
9702 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9703 (eval "$lt_compile" 2>conftest.err)
9704 ac_status=$?
9705 cat conftest.err >&5
9706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9707 if (exit $ac_status) && test -s "$ac_outfile"; then
9708 # The compiler can only warn and ignore the option if not recognized
9709 # So say no if there are warnings other than the usual output.
9710 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9711 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9712 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9713 lt_cv_prog_compiler_rtti_exceptions=yes
9716 $RM conftest*
9719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9720 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9722 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9723 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9724 else
9735 lt_prog_compiler_wl=
9736 lt_prog_compiler_pic=
9737 lt_prog_compiler_static=
9739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9740 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9742 if test "$GCC" = yes; then
9743 lt_prog_compiler_wl='-Wl,'
9744 lt_prog_compiler_static='-static'
9746 case $host_os in
9747 aix*)
9748 # All AIX code is PIC.
9749 if test "$host_cpu" = ia64; then
9750 # AIX 5 now supports IA64 processor
9751 lt_prog_compiler_static='-Bstatic'
9753 lt_prog_compiler_pic='-fPIC'
9756 amigaos*)
9757 case $host_cpu in
9758 powerpc)
9759 # see comment about AmigaOS4 .so support
9760 lt_prog_compiler_pic='-fPIC'
9762 m68k)
9763 # FIXME: we need at least 68020 code to build shared libraries, but
9764 # adding the `-m68020' flag to GCC prevents building anything better,
9765 # like `-m68040'.
9766 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9768 esac
9771 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9772 # PIC is the default for these OSes.
9775 mingw* | cygwin* | pw32* | os2* | cegcc*)
9776 # This hack is so that the source file can tell whether it is being
9777 # built for inclusion in a dll (and should export symbols for example).
9778 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9779 # (--disable-auto-import) libraries
9780 lt_prog_compiler_pic='-DDLL_EXPORT'
9783 darwin* | rhapsody*)
9784 # PIC is the default on this platform
9785 # Common symbols not allowed in MH_DYLIB files
9786 lt_prog_compiler_pic='-fno-common'
9789 haiku*)
9790 # PIC is the default for Haiku.
9791 # The "-static" flag exists, but is broken.
9792 lt_prog_compiler_static=
9795 hpux*)
9796 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9797 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9798 # sets the default TLS model and affects inlining.
9799 case $host_cpu in
9800 hppa*64*)
9801 # +Z the default
9804 lt_prog_compiler_pic='-fPIC'
9806 esac
9809 interix[3-9]*)
9810 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9811 # Instead, we relocate shared libraries at runtime.
9814 msdosdjgpp*)
9815 # Just because we use GCC doesn't mean we suddenly get shared libraries
9816 # on systems that don't support them.
9817 lt_prog_compiler_can_build_shared=no
9818 enable_shared=no
9821 *nto* | *qnx*)
9822 # QNX uses GNU C++, but need to define -shared option too, otherwise
9823 # it will coredump.
9824 lt_prog_compiler_pic='-fPIC -shared'
9827 sysv4*MP*)
9828 if test -d /usr/nec; then
9829 lt_prog_compiler_pic=-Kconform_pic
9834 lt_prog_compiler_pic='-fPIC'
9836 esac
9838 case $cc_basename in
9839 nvcc*) # Cuda Compiler Driver 2.2
9840 lt_prog_compiler_wl='-Xlinker '
9841 lt_prog_compiler_pic='-Xcompiler -fPIC'
9843 esac
9844 else
9845 # PORTME Check for flag to pass linker flags through the system compiler.
9846 case $host_os in
9847 aix*)
9848 lt_prog_compiler_wl='-Wl,'
9849 if test "$host_cpu" = ia64; then
9850 # AIX 5 now supports IA64 processor
9851 lt_prog_compiler_static='-Bstatic'
9852 else
9853 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9857 mingw* | cygwin* | pw32* | os2* | cegcc*)
9858 # This hack is so that the source file can tell whether it is being
9859 # built for inclusion in a dll (and should export symbols for example).
9860 lt_prog_compiler_pic='-DDLL_EXPORT'
9863 hpux9* | hpux10* | hpux11*)
9864 lt_prog_compiler_wl='-Wl,'
9865 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9866 # not for PA HP-UX.
9867 case $host_cpu in
9868 hppa*64*|ia64*)
9869 # +Z the default
9872 lt_prog_compiler_pic='+Z'
9874 esac
9875 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9876 lt_prog_compiler_static='${wl}-a ${wl}archive'
9879 irix5* | irix6* | nonstopux*)
9880 lt_prog_compiler_wl='-Wl,'
9881 # PIC (with -KPIC) is the default.
9882 lt_prog_compiler_static='-non_shared'
9885 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9886 case $cc_basename in
9887 # old Intel for x86_64 which still supported -KPIC.
9888 ecc*)
9889 lt_prog_compiler_wl='-Wl,'
9890 lt_prog_compiler_pic='-KPIC'
9891 lt_prog_compiler_static='-static'
9893 # icc used to be incompatible with GCC.
9894 # ICC 10 doesn't accept -KPIC any more.
9895 icc* | ifort*)
9896 lt_prog_compiler_wl='-Wl,'
9897 lt_prog_compiler_pic='-fPIC'
9898 lt_prog_compiler_static='-static'
9900 # Lahey Fortran 8.1.
9901 lf95*)
9902 lt_prog_compiler_wl='-Wl,'
9903 lt_prog_compiler_pic='--shared'
9904 lt_prog_compiler_static='--static'
9906 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9907 # Portland Group compilers (*not* the Pentium gcc compiler,
9908 # which looks to be a dead project)
9909 lt_prog_compiler_wl='-Wl,'
9910 lt_prog_compiler_pic='-fpic'
9911 lt_prog_compiler_static='-Bstatic'
9913 ccc*)
9914 lt_prog_compiler_wl='-Wl,'
9915 # All Alpha code is PIC.
9916 lt_prog_compiler_static='-non_shared'
9918 xl* | bgxl* | bgf* | mpixl*)
9919 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9920 lt_prog_compiler_wl='-Wl,'
9921 lt_prog_compiler_pic='-qpic'
9922 lt_prog_compiler_static='-qstaticlink'
9925 case `$CC -V 2>&1 | sed 5q` in
9926 *Sun\ F* | *Sun*Fortran*)
9927 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9928 lt_prog_compiler_pic='-KPIC'
9929 lt_prog_compiler_static='-Bstatic'
9930 lt_prog_compiler_wl=''
9932 *Sun\ C*)
9933 # Sun C 5.9
9934 lt_prog_compiler_pic='-KPIC'
9935 lt_prog_compiler_static='-Bstatic'
9936 lt_prog_compiler_wl='-Wl,'
9938 esac
9940 esac
9943 newsos6)
9944 lt_prog_compiler_pic='-KPIC'
9945 lt_prog_compiler_static='-Bstatic'
9948 *nto* | *qnx*)
9949 # QNX uses GNU C++, but need to define -shared option too, otherwise
9950 # it will coredump.
9951 lt_prog_compiler_pic='-fPIC -shared'
9954 osf3* | osf4* | osf5*)
9955 lt_prog_compiler_wl='-Wl,'
9956 # All OSF/1 code is PIC.
9957 lt_prog_compiler_static='-non_shared'
9960 rdos*)
9961 lt_prog_compiler_static='-non_shared'
9964 solaris*)
9965 lt_prog_compiler_pic='-KPIC'
9966 lt_prog_compiler_static='-Bstatic'
9967 case $cc_basename in
9968 f77* | f90* | f95*)
9969 lt_prog_compiler_wl='-Qoption ld ';;
9971 lt_prog_compiler_wl='-Wl,';;
9972 esac
9975 sunos4*)
9976 lt_prog_compiler_wl='-Qoption ld '
9977 lt_prog_compiler_pic='-PIC'
9978 lt_prog_compiler_static='-Bstatic'
9981 sysv4 | sysv4.2uw2* | sysv4.3*)
9982 lt_prog_compiler_wl='-Wl,'
9983 lt_prog_compiler_pic='-KPIC'
9984 lt_prog_compiler_static='-Bstatic'
9987 sysv4*MP*)
9988 if test -d /usr/nec ;then
9989 lt_prog_compiler_pic='-Kconform_pic'
9990 lt_prog_compiler_static='-Bstatic'
9994 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9995 lt_prog_compiler_wl='-Wl,'
9996 lt_prog_compiler_pic='-KPIC'
9997 lt_prog_compiler_static='-Bstatic'
10000 unicos*)
10001 lt_prog_compiler_wl='-Wl,'
10002 lt_prog_compiler_can_build_shared=no
10005 uts4*)
10006 lt_prog_compiler_pic='-pic'
10007 lt_prog_compiler_static='-Bstatic'
10011 lt_prog_compiler_can_build_shared=no
10013 esac
10016 case $host_os in
10017 # For platforms which do not support PIC, -DPIC is meaningless:
10018 *djgpp*)
10019 lt_prog_compiler_pic=
10022 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
10024 esac
10025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
10026 $as_echo "$lt_prog_compiler_pic" >&6; }
10034 # Check to make sure the PIC flag actually works.
10036 if test -n "$lt_prog_compiler_pic"; then
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10038 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10039 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10040 $as_echo_n "(cached) " >&6
10041 else
10042 lt_cv_prog_compiler_pic_works=no
10043 ac_outfile=conftest.$ac_objext
10044 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10045 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10046 # Insert the option either (1) after the last *FLAGS variable, or
10047 # (2) before a word containing "conftest.", or (3) at the end.
10048 # Note that $ac_compile itself does not contain backslashes and begins
10049 # with a dollar sign (not a hyphen), so the echo should work correctly.
10050 # The option is referenced via a variable to avoid confusing sed.
10051 lt_compile=`echo "$ac_compile" | $SED \
10052 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10053 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10054 -e 's:$: $lt_compiler_flag:'`
10055 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10056 (eval "$lt_compile" 2>conftest.err)
10057 ac_status=$?
10058 cat conftest.err >&5
10059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10060 if (exit $ac_status) && test -s "$ac_outfile"; then
10061 # The compiler can only warn and ignore the option if not recognized
10062 # So say no if there are warnings other than the usual output.
10063 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10064 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10065 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10066 lt_cv_prog_compiler_pic_works=yes
10069 $RM conftest*
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10073 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10075 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10076 case $lt_prog_compiler_pic in
10077 "" | " "*) ;;
10078 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10079 esac
10080 else
10081 lt_prog_compiler_pic=
10082 lt_prog_compiler_can_build_shared=no
10093 # Check to make sure the static flag actually works.
10095 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10097 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10098 if ${lt_cv_prog_compiler_static_works+:} false; then :
10099 $as_echo_n "(cached) " >&6
10100 else
10101 lt_cv_prog_compiler_static_works=no
10102 save_LDFLAGS="$LDFLAGS"
10103 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10104 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10105 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10106 # The linker can only warn and ignore the option if not recognized
10107 # So say no if there are warnings
10108 if test -s conftest.err; then
10109 # Append any errors to the config.log.
10110 cat conftest.err 1>&5
10111 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10112 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10113 if diff conftest.exp conftest.er2 >/dev/null; then
10114 lt_cv_prog_compiler_static_works=yes
10116 else
10117 lt_cv_prog_compiler_static_works=yes
10120 $RM -r conftest*
10121 LDFLAGS="$save_LDFLAGS"
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10125 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10127 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10129 else
10130 lt_prog_compiler_static=
10139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10140 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10141 if ${lt_cv_prog_compiler_c_o+:} false; then :
10142 $as_echo_n "(cached) " >&6
10143 else
10144 lt_cv_prog_compiler_c_o=no
10145 $RM -r conftest 2>/dev/null
10146 mkdir conftest
10147 cd conftest
10148 mkdir out
10149 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10151 lt_compiler_flag="-o out/conftest2.$ac_objext"
10152 # Insert the option either (1) after the last *FLAGS variable, or
10153 # (2) before a word containing "conftest.", or (3) at the end.
10154 # Note that $ac_compile itself does not contain backslashes and begins
10155 # with a dollar sign (not a hyphen), so the echo should work correctly.
10156 lt_compile=`echo "$ac_compile" | $SED \
10157 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10158 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10159 -e 's:$: $lt_compiler_flag:'`
10160 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10161 (eval "$lt_compile" 2>out/conftest.err)
10162 ac_status=$?
10163 cat out/conftest.err >&5
10164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10165 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10166 then
10167 # The compiler can only warn and ignore the option if not recognized
10168 # So say no if there are warnings
10169 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10170 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10171 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10172 lt_cv_prog_compiler_c_o=yes
10175 chmod u+w . 2>&5
10176 $RM conftest*
10177 # SGI C++ compiler will create directory out/ii_files/ for
10178 # template instantiation
10179 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10180 $RM out/* && rmdir out
10181 cd ..
10182 $RM -r conftest
10183 $RM conftest*
10186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10187 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10195 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10196 if ${lt_cv_prog_compiler_c_o+:} false; then :
10197 $as_echo_n "(cached) " >&6
10198 else
10199 lt_cv_prog_compiler_c_o=no
10200 $RM -r conftest 2>/dev/null
10201 mkdir conftest
10202 cd conftest
10203 mkdir out
10204 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10206 lt_compiler_flag="-o out/conftest2.$ac_objext"
10207 # Insert the option either (1) after the last *FLAGS variable, or
10208 # (2) before a word containing "conftest.", or (3) at the end.
10209 # Note that $ac_compile itself does not contain backslashes and begins
10210 # with a dollar sign (not a hyphen), so the echo should work correctly.
10211 lt_compile=`echo "$ac_compile" | $SED \
10212 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10213 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10214 -e 's:$: $lt_compiler_flag:'`
10215 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10216 (eval "$lt_compile" 2>out/conftest.err)
10217 ac_status=$?
10218 cat out/conftest.err >&5
10219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10220 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10221 then
10222 # The compiler can only warn and ignore the option if not recognized
10223 # So say no if there are warnings
10224 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10225 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10226 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10227 lt_cv_prog_compiler_c_o=yes
10230 chmod u+w . 2>&5
10231 $RM conftest*
10232 # SGI C++ compiler will create directory out/ii_files/ for
10233 # template instantiation
10234 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10235 $RM out/* && rmdir out
10236 cd ..
10237 $RM -r conftest
10238 $RM conftest*
10241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10242 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10247 hard_links="nottested"
10248 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10249 # do not overwrite the value of need_locks provided by the user
10250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10251 $as_echo_n "checking if we can lock with hard links... " >&6; }
10252 hard_links=yes
10253 $RM conftest*
10254 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10255 touch conftest.a
10256 ln conftest.a conftest.b 2>&5 || hard_links=no
10257 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10259 $as_echo "$hard_links" >&6; }
10260 if test "$hard_links" = no; then
10261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10262 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10263 need_locks=warn
10265 else
10266 need_locks=no
10274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10275 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10277 runpath_var=
10278 allow_undefined_flag=
10279 always_export_symbols=no
10280 archive_cmds=
10281 archive_expsym_cmds=
10282 compiler_needs_object=no
10283 enable_shared_with_static_runtimes=no
10284 export_dynamic_flag_spec=
10285 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10286 hardcode_automatic=no
10287 hardcode_direct=no
10288 hardcode_direct_absolute=no
10289 hardcode_libdir_flag_spec=
10290 hardcode_libdir_flag_spec_ld=
10291 hardcode_libdir_separator=
10292 hardcode_minus_L=no
10293 hardcode_shlibpath_var=unsupported
10294 inherit_rpath=no
10295 link_all_deplibs=unknown
10296 module_cmds=
10297 module_expsym_cmds=
10298 old_archive_from_new_cmds=
10299 old_archive_from_expsyms_cmds=
10300 thread_safe_flag_spec=
10301 whole_archive_flag_spec=
10302 # include_expsyms should be a list of space-separated symbols to be *always*
10303 # included in the symbol list
10304 include_expsyms=
10305 # exclude_expsyms can be an extended regexp of symbols to exclude
10306 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10307 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10308 # as well as any symbol that contains `d'.
10309 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10310 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10311 # platforms (ab)use it in PIC code, but their linkers get confused if
10312 # the symbol is explicitly referenced. Since portable code cannot
10313 # rely on this symbol name, it's probably fine to never include it in
10314 # preloaded symbol tables.
10315 # Exclude shared library initialization/finalization symbols.
10316 extract_expsyms_cmds=
10318 case $host_os in
10319 cygwin* | mingw* | pw32* | cegcc*)
10320 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10321 # When not using gcc, we currently assume that we are using
10322 # Microsoft Visual C++.
10323 if test "$GCC" != yes; then
10324 with_gnu_ld=no
10327 interix*)
10328 # we just hope/assume this is gcc and not c89 (= MSVC++)
10329 with_gnu_ld=yes
10331 openbsd*)
10332 with_gnu_ld=no
10334 esac
10336 ld_shlibs=yes
10338 # On some targets, GNU ld is compatible enough with the native linker
10339 # that we're better off using the native interface for both.
10340 lt_use_gnu_ld_interface=no
10341 if test "$with_gnu_ld" = yes; then
10342 case $host_os in
10343 aix*)
10344 # The AIX port of GNU ld has always aspired to compatibility
10345 # with the native linker. However, as the warning in the GNU ld
10346 # block says, versions before 2.19.5* couldn't really create working
10347 # shared libraries, regardless of the interface used.
10348 case `$LD -v 2>&1` in
10349 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10350 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10351 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10353 lt_use_gnu_ld_interface=yes
10355 esac
10358 lt_use_gnu_ld_interface=yes
10360 esac
10363 if test "$lt_use_gnu_ld_interface" = yes; then
10364 # If archive_cmds runs LD, not CC, wlarc should be empty
10365 wlarc='${wl}'
10367 # Set some defaults for GNU ld with shared library support. These
10368 # are reset later if shared libraries are not supported. Putting them
10369 # here allows them to be overridden if necessary.
10370 runpath_var=LD_RUN_PATH
10371 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10372 export_dynamic_flag_spec='${wl}--export-dynamic'
10373 # ancient GNU ld didn't support --whole-archive et. al.
10374 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10375 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10376 else
10377 whole_archive_flag_spec=
10379 supports_anon_versioning=no
10380 case `$LD -v 2>&1` in
10381 *GNU\ gold*) supports_anon_versioning=yes ;;
10382 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10383 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10384 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10385 *\ 2.11.*) ;; # other 2.11 versions
10386 *) supports_anon_versioning=yes ;;
10387 esac
10389 # See if GNU ld supports shared libraries.
10390 case $host_os in
10391 aix[3-9]*)
10392 # On AIX/PPC, the GNU linker is very broken
10393 if test "$host_cpu" != ia64; then
10394 ld_shlibs=no
10395 cat <<_LT_EOF 1>&2
10397 *** Warning: the GNU linker, at least up to release 2.19, is reported
10398 *** to be unable to reliably create shared libraries on AIX.
10399 *** Therefore, libtool is disabling shared libraries support. If you
10400 *** really care for shared libraries, you may want to install binutils
10401 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10402 *** You will then need to restart the configuration process.
10404 _LT_EOF
10408 amigaos*)
10409 case $host_cpu in
10410 powerpc)
10411 # see comment about AmigaOS4 .so support
10412 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10413 archive_expsym_cmds=''
10415 m68k)
10416 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)'
10417 hardcode_libdir_flag_spec='-L$libdir'
10418 hardcode_minus_L=yes
10420 esac
10423 beos*)
10424 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10425 allow_undefined_flag=unsupported
10426 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10427 # support --undefined. This deserves some investigation. FIXME
10428 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10429 else
10430 ld_shlibs=no
10434 cygwin* | mingw* | pw32* | cegcc*)
10435 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10436 # as there is no search path for DLLs.
10437 hardcode_libdir_flag_spec='-L$libdir'
10438 export_dynamic_flag_spec='${wl}--export-all-symbols'
10439 allow_undefined_flag=unsupported
10440 always_export_symbols=no
10441 enable_shared_with_static_runtimes=yes
10442 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10444 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10445 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10446 # If the export-symbols file already is a .def file (1st line
10447 # is EXPORTS), use it as is; otherwise, prepend...
10448 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10449 cp $export_symbols $output_objdir/$soname.def;
10450 else
10451 echo EXPORTS > $output_objdir/$soname.def;
10452 cat $export_symbols >> $output_objdir/$soname.def;
10454 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10455 else
10456 ld_shlibs=no
10460 haiku*)
10461 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10462 link_all_deplibs=yes
10465 interix[3-9]*)
10466 hardcode_direct=no
10467 hardcode_shlibpath_var=no
10468 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10469 export_dynamic_flag_spec='${wl}-E'
10470 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10471 # Instead, shared libraries are loaded at an image base (0x10000000 by
10472 # default) and relocated if they conflict, which is a slow very memory
10473 # consuming and fragmenting process. To avoid this, we pick a random,
10474 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10475 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10476 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10477 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'
10480 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10481 tmp_diet=no
10482 if test "$host_os" = linux-dietlibc; then
10483 case $cc_basename in
10484 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10485 esac
10487 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10488 && test "$tmp_diet" = no
10489 then
10490 tmp_addflag=' $pic_flag'
10491 tmp_sharedflag='-shared'
10492 case $cc_basename,$host_cpu in
10493 pgcc*) # Portland Group C compiler
10494 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'
10495 tmp_addflag=' $pic_flag'
10497 pgf77* | pgf90* | pgf95* | pgfortran*)
10498 # Portland Group f77 and f90 compilers
10499 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'
10500 tmp_addflag=' $pic_flag -Mnomain' ;;
10501 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10502 tmp_addflag=' -i_dynamic' ;;
10503 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10504 tmp_addflag=' -i_dynamic -nofor_main' ;;
10505 ifc* | ifort*) # Intel Fortran compiler
10506 tmp_addflag=' -nofor_main' ;;
10507 lf95*) # Lahey Fortran 8.1
10508 whole_archive_flag_spec=
10509 tmp_sharedflag='--shared' ;;
10510 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10511 tmp_sharedflag='-qmkshrobj'
10512 tmp_addflag= ;;
10513 nvcc*) # Cuda Compiler Driver 2.2
10514 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'
10515 compiler_needs_object=yes
10517 esac
10518 case `$CC -V 2>&1 | sed 5q` in
10519 *Sun\ C*) # Sun C 5.9
10520 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'
10521 compiler_needs_object=yes
10522 tmp_sharedflag='-G' ;;
10523 *Sun\ F*) # Sun Fortran 8.3
10524 tmp_sharedflag='-G' ;;
10525 esac
10526 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10528 if test "x$supports_anon_versioning" = xyes; then
10529 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10530 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10531 echo "local: *; };" >> $output_objdir/$libname.ver~
10532 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10535 case $cc_basename in
10536 xlf* | bgf* | bgxlf* | mpixlf*)
10537 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10538 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10539 hardcode_libdir_flag_spec=
10540 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10541 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10542 if test "x$supports_anon_versioning" = xyes; then
10543 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10544 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10545 echo "local: *; };" >> $output_objdir/$libname.ver~
10546 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10549 esac
10550 else
10551 ld_shlibs=no
10555 netbsd*)
10556 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10557 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10558 wlarc=
10559 else
10560 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10561 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10565 solaris*)
10566 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10567 ld_shlibs=no
10568 cat <<_LT_EOF 1>&2
10570 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10571 *** create shared libraries on Solaris systems. Therefore, libtool
10572 *** is disabling shared libraries support. We urge you to upgrade GNU
10573 *** binutils to release 2.9.1 or newer. Another option is to modify
10574 *** your PATH or compiler configuration so that the native linker is
10575 *** used, and then restart.
10577 _LT_EOF
10578 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10579 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10580 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10581 else
10582 ld_shlibs=no
10586 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10587 case `$LD -v 2>&1` in
10588 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10589 ld_shlibs=no
10590 cat <<_LT_EOF 1>&2
10592 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10593 *** reliably create shared libraries on SCO systems. Therefore, libtool
10594 *** is disabling shared libraries support. We urge you to upgrade GNU
10595 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10596 *** your PATH or compiler configuration so that the native linker is
10597 *** used, and then restart.
10599 _LT_EOF
10602 # For security reasons, it is highly recommended that you always
10603 # use absolute paths for naming shared libraries, and exclude the
10604 # DT_RUNPATH tag from executables and libraries. But doing so
10605 # requires that you compile everything twice, which is a pain.
10606 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10607 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10608 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10609 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10610 else
10611 ld_shlibs=no
10614 esac
10617 sunos4*)
10618 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10619 wlarc=
10620 hardcode_direct=yes
10621 hardcode_shlibpath_var=no
10625 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10626 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10627 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10628 else
10629 ld_shlibs=no
10632 esac
10634 if test "$ld_shlibs" = no; then
10635 runpath_var=
10636 hardcode_libdir_flag_spec=
10637 export_dynamic_flag_spec=
10638 whole_archive_flag_spec=
10640 else
10641 # PORTME fill in a description of your system's linker (not GNU ld)
10642 case $host_os in
10643 aix3*)
10644 allow_undefined_flag=unsupported
10645 always_export_symbols=yes
10646 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'
10647 # Note: this linker hardcodes the directories in LIBPATH if there
10648 # are no directories specified by -L.
10649 hardcode_minus_L=yes
10650 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10651 # Neither direct hardcoding nor static linking is supported with a
10652 # broken collect2.
10653 hardcode_direct=unsupported
10657 aix[4-9]*)
10658 if test "$host_cpu" = ia64; then
10659 # On IA64, the linker does run time linking by default, so we don't
10660 # have to do anything special.
10661 aix_use_runtimelinking=no
10662 exp_sym_flag='-Bexport'
10663 no_entry_flag=""
10664 else
10665 # If we're using GNU nm, then we don't want the "-C" option.
10666 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10667 # Also, AIX nm treats weak defined symbols like other global
10668 # defined symbols, whereas GNU nm marks them as "W".
10669 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10670 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'
10671 else
10672 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'
10674 aix_use_runtimelinking=no
10676 # Test if we are trying to use run time linking or normal
10677 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10678 # need to do runtime linking.
10679 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10680 for ld_flag in $LDFLAGS; do
10681 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10682 aix_use_runtimelinking=yes
10683 break
10685 done
10687 esac
10689 exp_sym_flag='-bexport'
10690 no_entry_flag='-bnoentry'
10693 # When large executables or shared objects are built, AIX ld can
10694 # have problems creating the table of contents. If linking a library
10695 # or program results in "error TOC overflow" add -mminimal-toc to
10696 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10697 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10699 archive_cmds=''
10700 hardcode_direct=yes
10701 hardcode_direct_absolute=yes
10702 hardcode_libdir_separator=':'
10703 link_all_deplibs=yes
10704 file_list_spec='${wl}-f,'
10706 if test "$GCC" = yes; then
10707 case $host_os in aix4.[012]|aix4.[012].*)
10708 # We only want to do this on AIX 4.2 and lower, the check
10709 # below for broken collect2 doesn't work under 4.3+
10710 collect2name=`${CC} -print-prog-name=collect2`
10711 if test -f "$collect2name" &&
10712 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10713 then
10714 # We have reworked collect2
10716 else
10717 # We have old collect2
10718 hardcode_direct=unsupported
10719 # It fails to find uninstalled libraries when the uninstalled
10720 # path is not listed in the libpath. Setting hardcode_minus_L
10721 # to unsupported forces relinking
10722 hardcode_minus_L=yes
10723 hardcode_libdir_flag_spec='-L$libdir'
10724 hardcode_libdir_separator=
10727 esac
10728 shared_flag='-shared'
10729 if test "$aix_use_runtimelinking" = yes; then
10730 shared_flag="$shared_flag "'${wl}-G'
10732 else
10733 # not using gcc
10734 if test "$host_cpu" = ia64; then
10735 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10736 # chokes on -Wl,-G. The following line is correct:
10737 shared_flag='-G'
10738 else
10739 if test "$aix_use_runtimelinking" = yes; then
10740 shared_flag='${wl}-G'
10741 else
10742 shared_flag='${wl}-bM:SRE'
10747 export_dynamic_flag_spec='${wl}-bexpall'
10748 # It seems that -bexpall does not export symbols beginning with
10749 # underscore (_), so it is better to generate a list of symbols to export.
10750 always_export_symbols=yes
10751 if test "$aix_use_runtimelinking" = yes; then
10752 # Warning - without using the other runtime loading flags (-brtl),
10753 # -berok will link without error, but may produce a broken library.
10754 allow_undefined_flag='-berok'
10755 # Determine the default libpath from the value encoded in an
10756 # empty executable.
10757 if test x$gcc_no_link = xyes; then
10758 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h. */
10764 main ()
10768 return 0;
10770 _ACEOF
10771 if ac_fn_c_try_link "$LINENO"; then :
10773 lt_aix_libpath_sed='
10774 /Import File Strings/,/^$/ {
10775 /^0/ {
10776 s/^0 *\(.*\)$/\1/
10780 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10781 # Check for a 64-bit object if we didn't find anything.
10782 if test -z "$aix_libpath"; then
10783 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10786 rm -f core conftest.err conftest.$ac_objext \
10787 conftest$ac_exeext conftest.$ac_ext
10788 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10790 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10791 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"
10792 else
10793 if test "$host_cpu" = ia64; then
10794 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10795 allow_undefined_flag="-z nodefs"
10796 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"
10797 else
10798 # Determine the default libpath from the value encoded in an
10799 # empty executable.
10800 if test x$gcc_no_link = xyes; then
10801 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10804 /* end confdefs.h. */
10807 main ()
10811 return 0;
10813 _ACEOF
10814 if ac_fn_c_try_link "$LINENO"; then :
10816 lt_aix_libpath_sed='
10817 /Import File Strings/,/^$/ {
10818 /^0/ {
10819 s/^0 *\(.*\)$/\1/
10823 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10824 # Check for a 64-bit object if we didn't find anything.
10825 if test -z "$aix_libpath"; then
10826 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10829 rm -f core conftest.err conftest.$ac_objext \
10830 conftest$ac_exeext conftest.$ac_ext
10831 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10833 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10834 # Warning - without using the other run time loading flags,
10835 # -berok will link without error, but may produce a broken library.
10836 no_undefined_flag=' ${wl}-bernotok'
10837 allow_undefined_flag=' ${wl}-berok'
10838 if test "$with_gnu_ld" = yes; then
10839 # We only use this code for GNU lds that support --whole-archive.
10840 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10841 else
10842 # Exported symbols can be pulled into shared objects from archives
10843 whole_archive_flag_spec='$convenience'
10845 archive_cmds_need_lc=yes
10846 # This is similar to how AIX traditionally builds its shared libraries.
10847 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'
10852 amigaos*)
10853 case $host_cpu in
10854 powerpc)
10855 # see comment about AmigaOS4 .so support
10856 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10857 archive_expsym_cmds=''
10859 m68k)
10860 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)'
10861 hardcode_libdir_flag_spec='-L$libdir'
10862 hardcode_minus_L=yes
10864 esac
10867 bsdi[45]*)
10868 export_dynamic_flag_spec=-rdynamic
10871 cygwin* | mingw* | pw32* | cegcc*)
10872 # When not using gcc, we currently assume that we are using
10873 # Microsoft Visual C++.
10874 # hardcode_libdir_flag_spec is actually meaningless, as there is
10875 # no search path for DLLs.
10876 hardcode_libdir_flag_spec=' '
10877 allow_undefined_flag=unsupported
10878 # Tell ltmain to make .lib files, not .a files.
10879 libext=lib
10880 # Tell ltmain to make .dll files, not .so files.
10881 shrext_cmds=".dll"
10882 # FIXME: Setting linknames here is a bad hack.
10883 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10884 # The linker will automatically build a .lib file if we build a DLL.
10885 old_archive_from_new_cmds='true'
10886 # FIXME: Should let the user specify the lib program.
10887 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10888 fix_srcfile_path='`cygpath -w "$srcfile"`'
10889 enable_shared_with_static_runtimes=yes
10892 darwin* | rhapsody*)
10895 archive_cmds_need_lc=no
10896 hardcode_direct=no
10897 hardcode_automatic=yes
10898 hardcode_shlibpath_var=unsupported
10899 if test "$lt_cv_ld_force_load" = "yes"; then
10900 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\"`'
10901 else
10902 whole_archive_flag_spec=''
10904 link_all_deplibs=yes
10905 allow_undefined_flag="$_lt_dar_allow_undefined"
10906 case $cc_basename in
10907 ifort*) _lt_dar_can_shared=yes ;;
10908 *) _lt_dar_can_shared=$GCC ;;
10909 esac
10910 if test "$_lt_dar_can_shared" = "yes"; then
10911 output_verbose_link_cmd=func_echo_all
10912 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10913 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10914 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
10915 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}"
10917 else
10918 ld_shlibs=no
10923 dgux*)
10924 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10925 hardcode_libdir_flag_spec='-L$libdir'
10926 hardcode_shlibpath_var=no
10929 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10930 # support. Future versions do this automatically, but an explicit c++rt0.o
10931 # does not break anything, and helps significantly (at the cost of a little
10932 # extra space).
10933 freebsd2.2*)
10934 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10935 hardcode_libdir_flag_spec='-R$libdir'
10936 hardcode_direct=yes
10937 hardcode_shlibpath_var=no
10940 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10941 freebsd2.*)
10942 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10943 hardcode_direct=yes
10944 hardcode_minus_L=yes
10945 hardcode_shlibpath_var=no
10948 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10949 freebsd* | dragonfly*)
10950 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10951 hardcode_libdir_flag_spec='-R$libdir'
10952 hardcode_direct=yes
10953 hardcode_shlibpath_var=no
10956 hpux9*)
10957 if test "$GCC" = yes; then
10958 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'
10959 else
10960 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'
10962 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10963 hardcode_libdir_separator=:
10964 hardcode_direct=yes
10966 # hardcode_minus_L: Not really in the search PATH,
10967 # but as the default location of the library.
10968 hardcode_minus_L=yes
10969 export_dynamic_flag_spec='${wl}-E'
10972 hpux10*)
10973 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10974 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10975 else
10976 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10978 if test "$with_gnu_ld" = no; then
10979 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10980 hardcode_libdir_flag_spec_ld='+b $libdir'
10981 hardcode_libdir_separator=:
10982 hardcode_direct=yes
10983 hardcode_direct_absolute=yes
10984 export_dynamic_flag_spec='${wl}-E'
10985 # hardcode_minus_L: Not really in the search PATH,
10986 # but as the default location of the library.
10987 hardcode_minus_L=yes
10991 hpux11*)
10992 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10993 case $host_cpu in
10994 hppa*64*)
10995 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10997 ia64*)
10998 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11001 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11003 esac
11004 else
11005 case $host_cpu in
11006 hppa*64*)
11007 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11009 ia64*)
11010 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
11014 # Older versions of the 11.00 compiler do not understand -b yet
11015 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
11017 $as_echo_n "checking if $CC understands -b... " >&6; }
11018 if ${lt_cv_prog_compiler__b+:} false; then :
11019 $as_echo_n "(cached) " >&6
11020 else
11021 lt_cv_prog_compiler__b=no
11022 save_LDFLAGS="$LDFLAGS"
11023 LDFLAGS="$LDFLAGS -b"
11024 echo "$lt_simple_link_test_code" > conftest.$ac_ext
11025 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11026 # The linker can only warn and ignore the option if not recognized
11027 # So say no if there are warnings
11028 if test -s conftest.err; then
11029 # Append any errors to the config.log.
11030 cat conftest.err 1>&5
11031 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
11032 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11033 if diff conftest.exp conftest.er2 >/dev/null; then
11034 lt_cv_prog_compiler__b=yes
11036 else
11037 lt_cv_prog_compiler__b=yes
11040 $RM -r conftest*
11041 LDFLAGS="$save_LDFLAGS"
11044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11045 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11047 if test x"$lt_cv_prog_compiler__b" = xyes; then
11048 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11049 else
11050 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11054 esac
11056 if test "$with_gnu_ld" = no; then
11057 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11058 hardcode_libdir_separator=:
11060 case $host_cpu in
11061 hppa*64*|ia64*)
11062 hardcode_direct=no
11063 hardcode_shlibpath_var=no
11066 hardcode_direct=yes
11067 hardcode_direct_absolute=yes
11068 export_dynamic_flag_spec='${wl}-E'
11070 # hardcode_minus_L: Not really in the search PATH,
11071 # but as the default location of the library.
11072 hardcode_minus_L=yes
11074 esac
11078 irix5* | irix6* | nonstopux*)
11079 if test "$GCC" = yes; then
11080 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'
11081 # Try to use the -exported_symbol ld option, if it does not
11082 # work, assume that -exports_file does not work either and
11083 # implicitly export all symbols.
11084 save_LDFLAGS="$LDFLAGS"
11085 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11086 if test x$gcc_no_link = xyes; then
11087 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11090 /* end confdefs.h. */
11091 int foo(void) {}
11092 _ACEOF
11093 if ac_fn_c_try_link "$LINENO"; then :
11094 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'
11097 rm -f core conftest.err conftest.$ac_objext \
11098 conftest$ac_exeext conftest.$ac_ext
11099 LDFLAGS="$save_LDFLAGS"
11100 else
11101 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'
11102 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'
11104 archive_cmds_need_lc='no'
11105 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11106 hardcode_libdir_separator=:
11107 inherit_rpath=yes
11108 link_all_deplibs=yes
11111 netbsd*)
11112 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11113 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11114 else
11115 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11117 hardcode_libdir_flag_spec='-R$libdir'
11118 hardcode_direct=yes
11119 hardcode_shlibpath_var=no
11122 newsos6)
11123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11124 hardcode_direct=yes
11125 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11126 hardcode_libdir_separator=:
11127 hardcode_shlibpath_var=no
11130 *nto* | *qnx*)
11133 openbsd*)
11134 if test -f /usr/libexec/ld.so; then
11135 hardcode_direct=yes
11136 hardcode_shlibpath_var=no
11137 hardcode_direct_absolute=yes
11138 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11139 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11140 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11141 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11142 export_dynamic_flag_spec='${wl}-E'
11143 else
11144 case $host_os in
11145 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11146 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11147 hardcode_libdir_flag_spec='-R$libdir'
11150 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11151 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11153 esac
11155 else
11156 ld_shlibs=no
11160 os2*)
11161 hardcode_libdir_flag_spec='-L$libdir'
11162 hardcode_minus_L=yes
11163 allow_undefined_flag=unsupported
11164 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'
11165 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11168 osf3*)
11169 if test "$GCC" = yes; then
11170 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11171 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'
11172 else
11173 allow_undefined_flag=' -expect_unresolved \*'
11174 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'
11176 archive_cmds_need_lc='no'
11177 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11178 hardcode_libdir_separator=:
11181 osf4* | osf5*) # as osf3* with the addition of -msym flag
11182 if test "$GCC" = yes; then
11183 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11184 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'
11185 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11186 else
11187 allow_undefined_flag=' -expect_unresolved \*'
11188 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'
11189 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~
11190 $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'
11192 # Both c and cxx compiler support -rpath directly
11193 hardcode_libdir_flag_spec='-rpath $libdir'
11195 archive_cmds_need_lc='no'
11196 hardcode_libdir_separator=:
11199 solaris*)
11200 no_undefined_flag=' -z defs'
11201 if test "$GCC" = yes; then
11202 wlarc='${wl}'
11203 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11204 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11205 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11206 else
11207 case `$CC -V 2>&1` in
11208 *"Compilers 5.0"*)
11209 wlarc=''
11210 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11211 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11212 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11215 wlarc='${wl}'
11216 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11217 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11218 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11220 esac
11222 hardcode_libdir_flag_spec='-R$libdir'
11223 hardcode_shlibpath_var=no
11224 case $host_os in
11225 solaris2.[0-5] | solaris2.[0-5].*) ;;
11227 # The compiler driver will combine and reorder linker options,
11228 # but understands `-z linker_flag'. GCC discards it without `$wl',
11229 # but is careful enough not to reorder.
11230 # Supported since Solaris 2.6 (maybe 2.5.1?)
11231 if test "$GCC" = yes; then
11232 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11233 else
11234 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11237 esac
11238 link_all_deplibs=yes
11241 sunos4*)
11242 if test "x$host_vendor" = xsequent; then
11243 # Use $CC to link under sequent, because it throws in some extra .o
11244 # files that make .init and .fini sections work.
11245 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11246 else
11247 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11249 hardcode_libdir_flag_spec='-L$libdir'
11250 hardcode_direct=yes
11251 hardcode_minus_L=yes
11252 hardcode_shlibpath_var=no
11255 sysv4)
11256 case $host_vendor in
11257 sni)
11258 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11259 hardcode_direct=yes # is this really true???
11261 siemens)
11262 ## LD is ld it makes a PLAMLIB
11263 ## CC just makes a GrossModule.
11264 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11265 reload_cmds='$CC -r -o $output$reload_objs'
11266 hardcode_direct=no
11268 motorola)
11269 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11270 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11272 esac
11273 runpath_var='LD_RUN_PATH'
11274 hardcode_shlibpath_var=no
11277 sysv4.3*)
11278 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11279 hardcode_shlibpath_var=no
11280 export_dynamic_flag_spec='-Bexport'
11283 sysv4*MP*)
11284 if test -d /usr/nec; then
11285 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11286 hardcode_shlibpath_var=no
11287 runpath_var=LD_RUN_PATH
11288 hardcode_runpath_var=yes
11289 ld_shlibs=yes
11293 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11294 no_undefined_flag='${wl}-z,text'
11295 archive_cmds_need_lc=no
11296 hardcode_shlibpath_var=no
11297 runpath_var='LD_RUN_PATH'
11299 if test "$GCC" = yes; then
11300 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11301 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11302 else
11303 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11304 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11308 sysv5* | sco3.2v5* | sco5v6*)
11309 # Note: We can NOT use -z defs as we might desire, because we do not
11310 # link with -lc, and that would cause any symbols used from libc to
11311 # always be unresolved, which means just about no library would
11312 # ever link correctly. If we're not using GNU ld we use -z text
11313 # though, which does catch some bad symbols but isn't as heavy-handed
11314 # as -z defs.
11315 no_undefined_flag='${wl}-z,text'
11316 allow_undefined_flag='${wl}-z,nodefs'
11317 archive_cmds_need_lc=no
11318 hardcode_shlibpath_var=no
11319 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11320 hardcode_libdir_separator=':'
11321 link_all_deplibs=yes
11322 export_dynamic_flag_spec='${wl}-Bexport'
11323 runpath_var='LD_RUN_PATH'
11325 if test "$GCC" = yes; then
11326 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11327 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11328 else
11329 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11330 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11334 uts4*)
11335 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11336 hardcode_libdir_flag_spec='-L$libdir'
11337 hardcode_shlibpath_var=no
11341 ld_shlibs=no
11343 esac
11345 if test x$host_vendor = xsni; then
11346 case $host in
11347 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11348 export_dynamic_flag_spec='${wl}-Blargedynsym'
11350 esac
11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11355 $as_echo "$ld_shlibs" >&6; }
11356 test "$ld_shlibs" = no && can_build_shared=no
11358 with_gnu_ld=$with_gnu_ld
11375 # Do we need to explicitly link libc?
11377 case "x$archive_cmds_need_lc" in
11378 x|xyes)
11379 # Assume -lc should be added
11380 archive_cmds_need_lc=yes
11382 if test "$enable_shared" = yes && test "$GCC" = yes; then
11383 case $archive_cmds in
11384 *'~'*)
11385 # FIXME: we may have to deal with multi-command sequences.
11387 '$CC '*)
11388 # Test whether the compiler implicitly links with -lc since on some
11389 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11390 # to ld, don't add -lc before -lgcc.
11391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11392 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11393 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11394 $as_echo_n "(cached) " >&6
11395 else
11396 $RM conftest*
11397 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11399 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11400 (eval $ac_compile) 2>&5
11401 ac_status=$?
11402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11403 test $ac_status = 0; } 2>conftest.err; then
11404 soname=conftest
11405 lib=conftest
11406 libobjs=conftest.$ac_objext
11407 deplibs=
11408 wl=$lt_prog_compiler_wl
11409 pic_flag=$lt_prog_compiler_pic
11410 compiler_flags=-v
11411 linker_flags=-v
11412 verstring=
11413 output_objdir=.
11414 libname=conftest
11415 lt_save_allow_undefined_flag=$allow_undefined_flag
11416 allow_undefined_flag=
11417 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11418 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11419 ac_status=$?
11420 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11421 test $ac_status = 0; }
11422 then
11423 lt_cv_archive_cmds_need_lc=no
11424 else
11425 lt_cv_archive_cmds_need_lc=yes
11427 allow_undefined_flag=$lt_save_allow_undefined_flag
11428 else
11429 cat conftest.err 1>&5
11431 $RM conftest*
11434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11435 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11436 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11438 esac
11441 esac
11599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11600 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11602 if test "$GCC" = yes; then
11603 case $host_os in
11604 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11605 *) lt_awk_arg="/^libraries:/" ;;
11606 esac
11607 case $host_os in
11608 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11609 *) lt_sed_strip_eq="s,=/,/,g" ;;
11610 esac
11611 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11612 case $lt_search_path_spec in
11613 *\;*)
11614 # if the path contains ";" then we assume it to be the separator
11615 # otherwise default to the standard path separator (i.e. ":") - it is
11616 # assumed that no part of a normal pathname contains ";" but that should
11617 # okay in the real world where ";" in dirpaths is itself problematic.
11618 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11621 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11623 esac
11624 # Ok, now we have the path, separated by spaces, we can step through it
11625 # and add multilib dir if necessary.
11626 lt_tmp_lt_search_path_spec=
11627 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11628 for lt_sys_path in $lt_search_path_spec; do
11629 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11630 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11631 else
11632 test -d "$lt_sys_path" && \
11633 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11635 done
11636 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11637 BEGIN {RS=" "; FS="/|\n";} {
11638 lt_foo="";
11639 lt_count=0;
11640 for (lt_i = NF; lt_i > 0; lt_i--) {
11641 if ($lt_i != "" && $lt_i != ".") {
11642 if ($lt_i == "..") {
11643 lt_count++;
11644 } else {
11645 if (lt_count == 0) {
11646 lt_foo="/" $lt_i lt_foo;
11647 } else {
11648 lt_count--;
11653 if (lt_foo != "") { lt_freq[lt_foo]++; }
11654 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11656 # AWK program above erroneously prepends '/' to C:/dos/paths
11657 # for these hosts.
11658 case $host_os in
11659 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11660 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11661 esac
11662 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11663 else
11664 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11666 library_names_spec=
11667 libname_spec='lib$name'
11668 soname_spec=
11669 shrext_cmds=".so"
11670 postinstall_cmds=
11671 postuninstall_cmds=
11672 finish_cmds=
11673 finish_eval=
11674 shlibpath_var=
11675 shlibpath_overrides_runpath=unknown
11676 version_type=none
11677 dynamic_linker="$host_os ld.so"
11678 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11679 need_lib_prefix=unknown
11680 hardcode_into_libs=no
11682 # when you set need_version to no, make sure it does not cause -set_version
11683 # flags to be left without arguments
11684 need_version=unknown
11686 case $host_os in
11687 aix3*)
11688 version_type=linux
11689 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11690 shlibpath_var=LIBPATH
11692 # AIX 3 has no versioning support, so we append a major version to the name.
11693 soname_spec='${libname}${release}${shared_ext}$major'
11696 aix[4-9]*)
11697 version_type=linux
11698 need_lib_prefix=no
11699 need_version=no
11700 hardcode_into_libs=yes
11701 if test "$host_cpu" = ia64; then
11702 # AIX 5 supports IA64
11703 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11704 shlibpath_var=LD_LIBRARY_PATH
11705 else
11706 # With GCC up to 2.95.x, collect2 would create an import file
11707 # for dependence libraries. The import file would start with
11708 # the line `#! .'. This would cause the generated library to
11709 # depend on `.', always an invalid library. This was fixed in
11710 # development snapshots of GCC prior to 3.0.
11711 case $host_os in
11712 aix4 | aix4.[01] | aix4.[01].*)
11713 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11714 echo ' yes '
11715 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11717 else
11718 can_build_shared=no
11721 esac
11722 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11723 # soname into executable. Probably we can add versioning support to
11724 # collect2, so additional links can be useful in future.
11725 if test "$aix_use_runtimelinking" = yes; then
11726 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11727 # instead of lib<name>.a to let people know that these are not
11728 # typical AIX shared libraries.
11729 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11730 else
11731 # We preserve .a as extension for shared libraries through AIX4.2
11732 # and later when we are not doing run time linking.
11733 library_names_spec='${libname}${release}.a $libname.a'
11734 soname_spec='${libname}${release}${shared_ext}$major'
11736 shlibpath_var=LIBPATH
11740 amigaos*)
11741 case $host_cpu in
11742 powerpc)
11743 # Since July 2007 AmigaOS4 officially supports .so libraries.
11744 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11747 m68k)
11748 library_names_spec='$libname.ixlibrary $libname.a'
11749 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11750 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'
11752 esac
11755 beos*)
11756 library_names_spec='${libname}${shared_ext}'
11757 dynamic_linker="$host_os ld.so"
11758 shlibpath_var=LIBRARY_PATH
11761 bsdi[45]*)
11762 version_type=linux
11763 need_version=no
11764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11765 soname_spec='${libname}${release}${shared_ext}$major'
11766 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11767 shlibpath_var=LD_LIBRARY_PATH
11768 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11769 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11770 # the default ld.so.conf also contains /usr/contrib/lib and
11771 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11772 # libtool to hard-code these into programs
11775 cygwin* | mingw* | pw32* | cegcc*)
11776 version_type=windows
11777 shrext_cmds=".dll"
11778 need_version=no
11779 need_lib_prefix=no
11781 case $GCC,$host_os in
11782 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11783 library_names_spec='$libname.dll.a'
11784 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11785 postinstall_cmds='base_file=`basename \${file}`~
11786 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11787 dldir=$destdir/`dirname \$dlpath`~
11788 test -d \$dldir || mkdir -p \$dldir~
11789 $install_prog $dir/$dlname \$dldir/$dlname~
11790 chmod a+x \$dldir/$dlname~
11791 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11792 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11794 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11795 dlpath=$dir/\$dldll~
11796 $RM \$dlpath'
11797 shlibpath_overrides_runpath=yes
11799 case $host_os in
11800 cygwin*)
11801 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11802 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11804 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11806 mingw* | cegcc*)
11807 # MinGW DLLs use traditional 'lib' prefix
11808 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11810 pw32*)
11811 # pw32 DLLs use 'pw' prefix rather than 'lib'
11812 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11814 esac
11818 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11820 esac
11821 dynamic_linker='Win32 ld.exe'
11822 # FIXME: first we should search . and the directory the executable is in
11823 shlibpath_var=PATH
11826 darwin* | rhapsody*)
11827 dynamic_linker="$host_os dyld"
11828 version_type=darwin
11829 need_lib_prefix=no
11830 need_version=no
11831 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11832 soname_spec='${libname}${release}${major}$shared_ext'
11833 shlibpath_overrides_runpath=yes
11834 shlibpath_var=DYLD_LIBRARY_PATH
11835 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11837 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11838 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11841 dgux*)
11842 version_type=linux
11843 need_lib_prefix=no
11844 need_version=no
11845 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11846 soname_spec='${libname}${release}${shared_ext}$major'
11847 shlibpath_var=LD_LIBRARY_PATH
11850 freebsd* | dragonfly*)
11851 # DragonFly does not have aout. When/if they implement a new
11852 # versioning mechanism, adjust this.
11853 if test -x /usr/bin/objformat; then
11854 objformat=`/usr/bin/objformat`
11855 else
11856 case $host_os in
11857 freebsd[23].*) objformat=aout ;;
11858 *) objformat=elf ;;
11859 esac
11861 version_type=freebsd-$objformat
11862 case $version_type in
11863 freebsd-elf*)
11864 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11865 need_version=no
11866 need_lib_prefix=no
11868 freebsd-*)
11869 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11870 need_version=yes
11872 esac
11873 shlibpath_var=LD_LIBRARY_PATH
11874 case $host_os in
11875 freebsd2.*)
11876 shlibpath_overrides_runpath=yes
11878 freebsd3.[01]* | freebsdelf3.[01]*)
11879 shlibpath_overrides_runpath=yes
11880 hardcode_into_libs=yes
11882 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11883 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11884 shlibpath_overrides_runpath=no
11885 hardcode_into_libs=yes
11887 *) # from 4.6 on, and DragonFly
11888 shlibpath_overrides_runpath=yes
11889 hardcode_into_libs=yes
11891 esac
11894 haiku*)
11895 version_type=linux
11896 need_lib_prefix=no
11897 need_version=no
11898 dynamic_linker="$host_os runtime_loader"
11899 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11900 soname_spec='${libname}${release}${shared_ext}$major'
11901 shlibpath_var=LIBRARY_PATH
11902 shlibpath_overrides_runpath=yes
11903 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11904 hardcode_into_libs=yes
11907 hpux9* | hpux10* | hpux11*)
11908 # Give a soname corresponding to the major version so that dld.sl refuses to
11909 # link against other versions.
11910 version_type=sunos
11911 need_lib_prefix=no
11912 need_version=no
11913 case $host_cpu in
11914 ia64*)
11915 shrext_cmds='.so'
11916 hardcode_into_libs=yes
11917 dynamic_linker="$host_os dld.so"
11918 shlibpath_var=LD_LIBRARY_PATH
11919 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11921 soname_spec='${libname}${release}${shared_ext}$major'
11922 if test "X$HPUX_IA64_MODE" = X32; then
11923 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11924 else
11925 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11927 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11929 hppa*64*)
11930 shrext_cmds='.sl'
11931 hardcode_into_libs=yes
11932 dynamic_linker="$host_os dld.sl"
11933 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11934 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11935 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11936 soname_spec='${libname}${release}${shared_ext}$major'
11937 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11938 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11941 shrext_cmds='.sl'
11942 dynamic_linker="$host_os dld.sl"
11943 shlibpath_var=SHLIB_PATH
11944 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11945 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11946 soname_spec='${libname}${release}${shared_ext}$major'
11948 esac
11949 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11950 postinstall_cmds='chmod 555 $lib'
11951 # or fails outright, so override atomically:
11952 install_override_mode=555
11955 interix[3-9]*)
11956 version_type=linux
11957 need_lib_prefix=no
11958 need_version=no
11959 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11960 soname_spec='${libname}${release}${shared_ext}$major'
11961 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11962 shlibpath_var=LD_LIBRARY_PATH
11963 shlibpath_overrides_runpath=no
11964 hardcode_into_libs=yes
11967 irix5* | irix6* | nonstopux*)
11968 case $host_os in
11969 nonstopux*) version_type=nonstopux ;;
11971 if test "$lt_cv_prog_gnu_ld" = yes; then
11972 version_type=linux
11973 else
11974 version_type=irix
11975 fi ;;
11976 esac
11977 need_lib_prefix=no
11978 need_version=no
11979 soname_spec='${libname}${release}${shared_ext}$major'
11980 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11981 case $host_os in
11982 irix5* | nonstopux*)
11983 libsuff= shlibsuff=
11986 case $LD in # libtool.m4 will add one of these switches to LD
11987 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11988 libsuff= shlibsuff= libmagic=32-bit;;
11989 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11990 libsuff=32 shlibsuff=N32 libmagic=N32;;
11991 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11992 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11993 *) libsuff= shlibsuff= libmagic=never-match;;
11994 esac
11996 esac
11997 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11998 shlibpath_overrides_runpath=no
11999 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
12000 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
12001 hardcode_into_libs=yes
12004 # No shared lib support for Linux oldld, aout, or coff.
12005 linux*oldld* | linux*aout* | linux*coff*)
12006 dynamic_linker=no
12009 # This must be Linux ELF.
12011 # uclinux* changes (here and below) have been submitted to the libtool
12012 # project, but have not yet been accepted: they are GCC-local changes
12013 # for the time being. (See
12014 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
12015 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
12016 version_type=linux
12017 need_lib_prefix=no
12018 need_version=no
12019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12020 soname_spec='${libname}${release}${shared_ext}$major'
12021 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
12022 shlibpath_var=LD_LIBRARY_PATH
12023 shlibpath_overrides_runpath=no
12025 # Some binutils ld are patched to set DT_RUNPATH
12026 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
12027 $as_echo_n "(cached) " >&6
12028 else
12029 lt_cv_shlibpath_overrides_runpath=no
12030 save_LDFLAGS=$LDFLAGS
12031 save_libdir=$libdir
12032 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
12033 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
12034 if test x$gcc_no_link = xyes; then
12035 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038 /* end confdefs.h. */
12041 main ()
12045 return 0;
12047 _ACEOF
12048 if ac_fn_c_try_link "$LINENO"; then :
12049 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12050 lt_cv_shlibpath_overrides_runpath=yes
12053 rm -f core conftest.err conftest.$ac_objext \
12054 conftest$ac_exeext conftest.$ac_ext
12055 LDFLAGS=$save_LDFLAGS
12056 libdir=$save_libdir
12060 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12062 # This implies no fast_install, which is unacceptable.
12063 # Some rework will be needed to allow for fast_install
12064 # before this can be enabled.
12065 hardcode_into_libs=yes
12067 # Append ld.so.conf contents to the search path
12068 if test -f /etc/ld.so.conf; then
12069 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' ' '`
12070 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12073 # We used to test for /lib/ld.so.1 and disable shared libraries on
12074 # powerpc, because MkLinux only supported shared libraries with the
12075 # GNU dynamic linker. Since this was broken with cross compilers,
12076 # most powerpc-linux boxes support dynamic linking these days and
12077 # people can always --disable-shared, the test was removed, and we
12078 # assume the GNU/Linux dynamic linker is in use.
12079 dynamic_linker='GNU/Linux ld.so'
12082 netbsd*)
12083 version_type=sunos
12084 need_lib_prefix=no
12085 need_version=no
12086 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12087 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12088 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12089 dynamic_linker='NetBSD (a.out) ld.so'
12090 else
12091 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12092 soname_spec='${libname}${release}${shared_ext}$major'
12093 dynamic_linker='NetBSD ld.elf_so'
12095 shlibpath_var=LD_LIBRARY_PATH
12096 shlibpath_overrides_runpath=yes
12097 hardcode_into_libs=yes
12100 newsos6)
12101 version_type=linux
12102 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12103 shlibpath_var=LD_LIBRARY_PATH
12104 shlibpath_overrides_runpath=yes
12107 *nto* | *qnx*)
12108 version_type=qnx
12109 need_lib_prefix=no
12110 need_version=no
12111 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12112 soname_spec='${libname}${release}${shared_ext}$major'
12113 shlibpath_var=LD_LIBRARY_PATH
12114 shlibpath_overrides_runpath=no
12115 hardcode_into_libs=yes
12116 dynamic_linker='ldqnx.so'
12119 openbsd*)
12120 version_type=sunos
12121 sys_lib_dlsearch_path_spec="/usr/lib"
12122 need_lib_prefix=no
12123 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12124 case $host_os in
12125 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12126 *) need_version=no ;;
12127 esac
12128 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12129 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12130 shlibpath_var=LD_LIBRARY_PATH
12131 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12132 case $host_os in
12133 openbsd2.[89] | openbsd2.[89].*)
12134 shlibpath_overrides_runpath=no
12137 shlibpath_overrides_runpath=yes
12139 esac
12140 else
12141 shlibpath_overrides_runpath=yes
12145 os2*)
12146 libname_spec='$name'
12147 shrext_cmds=".dll"
12148 need_lib_prefix=no
12149 library_names_spec='$libname${shared_ext} $libname.a'
12150 dynamic_linker='OS/2 ld.exe'
12151 shlibpath_var=LIBPATH
12154 osf3* | osf4* | osf5*)
12155 version_type=osf
12156 need_lib_prefix=no
12157 need_version=no
12158 soname_spec='${libname}${release}${shared_ext}$major'
12159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12160 shlibpath_var=LD_LIBRARY_PATH
12161 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12162 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12165 rdos*)
12166 dynamic_linker=no
12169 solaris*)
12170 version_type=linux
12171 need_lib_prefix=no
12172 need_version=no
12173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12174 soname_spec='${libname}${release}${shared_ext}$major'
12175 shlibpath_var=LD_LIBRARY_PATH
12176 shlibpath_overrides_runpath=yes
12177 hardcode_into_libs=yes
12178 # ldd complains unless libraries are executable
12179 postinstall_cmds='chmod +x $lib'
12182 sunos4*)
12183 version_type=sunos
12184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12185 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12186 shlibpath_var=LD_LIBRARY_PATH
12187 shlibpath_overrides_runpath=yes
12188 if test "$with_gnu_ld" = yes; then
12189 need_lib_prefix=no
12191 need_version=yes
12194 sysv4 | sysv4.3*)
12195 version_type=linux
12196 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12197 soname_spec='${libname}${release}${shared_ext}$major'
12198 shlibpath_var=LD_LIBRARY_PATH
12199 case $host_vendor in
12200 sni)
12201 shlibpath_overrides_runpath=no
12202 need_lib_prefix=no
12203 runpath_var=LD_RUN_PATH
12205 siemens)
12206 need_lib_prefix=no
12208 motorola)
12209 need_lib_prefix=no
12210 need_version=no
12211 shlibpath_overrides_runpath=no
12212 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12214 esac
12217 sysv4*MP*)
12218 if test -d /usr/nec ;then
12219 version_type=linux
12220 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12221 soname_spec='$libname${shared_ext}.$major'
12222 shlibpath_var=LD_LIBRARY_PATH
12226 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12227 version_type=freebsd-elf
12228 need_lib_prefix=no
12229 need_version=no
12230 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12231 soname_spec='${libname}${release}${shared_ext}$major'
12232 shlibpath_var=LD_LIBRARY_PATH
12233 shlibpath_overrides_runpath=yes
12234 hardcode_into_libs=yes
12235 if test "$with_gnu_ld" = yes; then
12236 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12237 else
12238 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12239 case $host_os in
12240 sco3.2v5*)
12241 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12243 esac
12245 sys_lib_dlsearch_path_spec='/usr/lib'
12248 tpf*)
12249 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12250 version_type=linux
12251 need_lib_prefix=no
12252 need_version=no
12253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12254 shlibpath_var=LD_LIBRARY_PATH
12255 shlibpath_overrides_runpath=no
12256 hardcode_into_libs=yes
12259 uts4*)
12260 version_type=linux
12261 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12262 soname_spec='${libname}${release}${shared_ext}$major'
12263 shlibpath_var=LD_LIBRARY_PATH
12266 # Shared libraries for VwWorks, >= 7 only at this stage
12267 # and (fpic) still incompatible with "large" code models
12268 # in a few configurations. Only for RTP mode in any case,
12269 # and upon explicit request at configure time.
12270 vxworks7*)
12271 dynamic_linker=no
12272 case ${with_multisubdir}-${enable_shared} in
12273 *large*)
12275 *mrtp*-yes)
12276 version_type=linux
12277 need_lib_prefix=no
12278 need_version=no
12279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12280 soname_spec='${libname}${release}${shared_ext}$major'
12281 dynamic_linker="$host_os module_loader"
12283 esac
12286 dynamic_linker=no
12288 esac
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12290 $as_echo "$dynamic_linker" >&6; }
12291 test "$dynamic_linker" = no && can_build_shared=no
12293 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12294 if test "$GCC" = yes; then
12295 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12298 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12299 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12301 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12302 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12397 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12398 hardcode_action=
12399 if test -n "$hardcode_libdir_flag_spec" ||
12400 test -n "$runpath_var" ||
12401 test "X$hardcode_automatic" = "Xyes" ; then
12403 # We can hardcode non-existent directories.
12404 if test "$hardcode_direct" != no &&
12405 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12406 # have to relink, otherwise we might link with an installed library
12407 # when we should be linking with a yet-to-be-installed one
12408 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12409 test "$hardcode_minus_L" != no; then
12410 # Linking always hardcodes the temporary library directory.
12411 hardcode_action=relink
12412 else
12413 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12414 hardcode_action=immediate
12416 else
12417 # We cannot hardcode anything, or else we can only hardcode existing
12418 # directories.
12419 hardcode_action=unsupported
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12422 $as_echo "$hardcode_action" >&6; }
12424 if test "$hardcode_action" = relink ||
12425 test "$inherit_rpath" = yes; then
12426 # Fast installation is not supported
12427 enable_fast_install=no
12428 elif test "$shlibpath_overrides_runpath" = yes ||
12429 test "$enable_shared" = no; then
12430 # Fast installation is not necessary
12431 enable_fast_install=needless
12439 if test "x$enable_dlopen" != xyes; then
12440 enable_dlopen=unknown
12441 enable_dlopen_self=unknown
12442 enable_dlopen_self_static=unknown
12443 else
12444 lt_cv_dlopen=no
12445 lt_cv_dlopen_libs=
12447 case $host_os in
12448 beos*)
12449 lt_cv_dlopen="load_add_on"
12450 lt_cv_dlopen_libs=
12451 lt_cv_dlopen_self=yes
12454 mingw* | pw32* | cegcc*)
12455 lt_cv_dlopen="LoadLibrary"
12456 lt_cv_dlopen_libs=
12459 cygwin*)
12460 lt_cv_dlopen="dlopen"
12461 lt_cv_dlopen_libs=
12464 darwin*)
12465 # if libdl is installed we need to link against it
12466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12467 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12468 if ${ac_cv_lib_dl_dlopen+:} false; then :
12469 $as_echo_n "(cached) " >&6
12470 else
12471 ac_check_lib_save_LIBS=$LIBS
12472 LIBS="-ldl $LIBS"
12473 if test x$gcc_no_link = xyes; then
12474 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12477 /* end confdefs.h. */
12479 /* Override any GCC internal prototype to avoid an error.
12480 Use char because int might match the return type of a GCC
12481 builtin and then its argument prototype would still apply. */
12482 #ifdef __cplusplus
12483 extern "C"
12484 #endif
12485 char dlopen ();
12487 main ()
12489 return dlopen ();
12491 return 0;
12493 _ACEOF
12494 if ac_fn_c_try_link "$LINENO"; then :
12495 ac_cv_lib_dl_dlopen=yes
12496 else
12497 ac_cv_lib_dl_dlopen=no
12499 rm -f core conftest.err conftest.$ac_objext \
12500 conftest$ac_exeext conftest.$ac_ext
12501 LIBS=$ac_check_lib_save_LIBS
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12504 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12505 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12506 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12507 else
12509 lt_cv_dlopen="dyld"
12510 lt_cv_dlopen_libs=
12511 lt_cv_dlopen_self=yes
12518 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12519 if test "x$ac_cv_func_shl_load" = xyes; then :
12520 lt_cv_dlopen="shl_load"
12521 else
12522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12523 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12524 if ${ac_cv_lib_dld_shl_load+:} false; then :
12525 $as_echo_n "(cached) " >&6
12526 else
12527 ac_check_lib_save_LIBS=$LIBS
12528 LIBS="-ldld $LIBS"
12529 if test x$gcc_no_link = xyes; then
12530 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12533 /* end confdefs.h. */
12535 /* Override any GCC internal prototype to avoid an error.
12536 Use char because int might match the return type of a GCC
12537 builtin and then its argument prototype would still apply. */
12538 #ifdef __cplusplus
12539 extern "C"
12540 #endif
12541 char shl_load ();
12543 main ()
12545 return shl_load ();
12547 return 0;
12549 _ACEOF
12550 if ac_fn_c_try_link "$LINENO"; then :
12551 ac_cv_lib_dld_shl_load=yes
12552 else
12553 ac_cv_lib_dld_shl_load=no
12555 rm -f core conftest.err conftest.$ac_objext \
12556 conftest$ac_exeext conftest.$ac_ext
12557 LIBS=$ac_check_lib_save_LIBS
12559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12560 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12561 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12562 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12563 else
12564 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12565 if test "x$ac_cv_func_dlopen" = xyes; then :
12566 lt_cv_dlopen="dlopen"
12567 else
12568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12569 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12570 if ${ac_cv_lib_dl_dlopen+:} false; then :
12571 $as_echo_n "(cached) " >&6
12572 else
12573 ac_check_lib_save_LIBS=$LIBS
12574 LIBS="-ldl $LIBS"
12575 if test x$gcc_no_link = xyes; then
12576 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12579 /* end confdefs.h. */
12581 /* Override any GCC internal prototype to avoid an error.
12582 Use char because int might match the return type of a GCC
12583 builtin and then its argument prototype would still apply. */
12584 #ifdef __cplusplus
12585 extern "C"
12586 #endif
12587 char dlopen ();
12589 main ()
12591 return dlopen ();
12593 return 0;
12595 _ACEOF
12596 if ac_fn_c_try_link "$LINENO"; then :
12597 ac_cv_lib_dl_dlopen=yes
12598 else
12599 ac_cv_lib_dl_dlopen=no
12601 rm -f core conftest.err conftest.$ac_objext \
12602 conftest$ac_exeext conftest.$ac_ext
12603 LIBS=$ac_check_lib_save_LIBS
12605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12606 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12607 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12608 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12609 else
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12611 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12612 if ${ac_cv_lib_svld_dlopen+:} false; then :
12613 $as_echo_n "(cached) " >&6
12614 else
12615 ac_check_lib_save_LIBS=$LIBS
12616 LIBS="-lsvld $LIBS"
12617 if test x$gcc_no_link = xyes; then
12618 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12621 /* end confdefs.h. */
12623 /* Override any GCC internal prototype to avoid an error.
12624 Use char because int might match the return type of a GCC
12625 builtin and then its argument prototype would still apply. */
12626 #ifdef __cplusplus
12627 extern "C"
12628 #endif
12629 char dlopen ();
12631 main ()
12633 return dlopen ();
12635 return 0;
12637 _ACEOF
12638 if ac_fn_c_try_link "$LINENO"; then :
12639 ac_cv_lib_svld_dlopen=yes
12640 else
12641 ac_cv_lib_svld_dlopen=no
12643 rm -f core conftest.err conftest.$ac_objext \
12644 conftest$ac_exeext conftest.$ac_ext
12645 LIBS=$ac_check_lib_save_LIBS
12647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12648 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12649 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12650 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12651 else
12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12653 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12654 if ${ac_cv_lib_dld_dld_link+:} false; then :
12655 $as_echo_n "(cached) " >&6
12656 else
12657 ac_check_lib_save_LIBS=$LIBS
12658 LIBS="-ldld $LIBS"
12659 if test x$gcc_no_link = xyes; then
12660 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12663 /* end confdefs.h. */
12665 /* Override any GCC internal prototype to avoid an error.
12666 Use char because int might match the return type of a GCC
12667 builtin and then its argument prototype would still apply. */
12668 #ifdef __cplusplus
12669 extern "C"
12670 #endif
12671 char dld_link ();
12673 main ()
12675 return dld_link ();
12677 return 0;
12679 _ACEOF
12680 if ac_fn_c_try_link "$LINENO"; then :
12681 ac_cv_lib_dld_dld_link=yes
12682 else
12683 ac_cv_lib_dld_dld_link=no
12685 rm -f core conftest.err conftest.$ac_objext \
12686 conftest$ac_exeext conftest.$ac_ext
12687 LIBS=$ac_check_lib_save_LIBS
12689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12690 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12691 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12692 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12711 esac
12713 if test "x$lt_cv_dlopen" != xno; then
12714 enable_dlopen=yes
12715 else
12716 enable_dlopen=no
12719 case $lt_cv_dlopen in
12720 dlopen)
12721 save_CPPFLAGS="$CPPFLAGS"
12722 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12724 save_LDFLAGS="$LDFLAGS"
12725 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12727 save_LIBS="$LIBS"
12728 LIBS="$lt_cv_dlopen_libs $LIBS"
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12731 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12732 if ${lt_cv_dlopen_self+:} false; then :
12733 $as_echo_n "(cached) " >&6
12734 else
12735 if test "$cross_compiling" = yes; then :
12736 lt_cv_dlopen_self=cross
12737 else
12738 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12739 lt_status=$lt_dlunknown
12740 cat > conftest.$ac_ext <<_LT_EOF
12741 #line 12741 "configure"
12742 #include "confdefs.h"
12744 #if HAVE_DLFCN_H
12745 #include <dlfcn.h>
12746 #endif
12748 #include <stdio.h>
12750 #ifdef RTLD_GLOBAL
12751 # define LT_DLGLOBAL RTLD_GLOBAL
12752 #else
12753 # ifdef DL_GLOBAL
12754 # define LT_DLGLOBAL DL_GLOBAL
12755 # else
12756 # define LT_DLGLOBAL 0
12757 # endif
12758 #endif
12760 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12761 find out it does not work in some platform. */
12762 #ifndef LT_DLLAZY_OR_NOW
12763 # ifdef RTLD_LAZY
12764 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12765 # else
12766 # ifdef DL_LAZY
12767 # define LT_DLLAZY_OR_NOW DL_LAZY
12768 # else
12769 # ifdef RTLD_NOW
12770 # define LT_DLLAZY_OR_NOW RTLD_NOW
12771 # else
12772 # ifdef DL_NOW
12773 # define LT_DLLAZY_OR_NOW DL_NOW
12774 # else
12775 # define LT_DLLAZY_OR_NOW 0
12776 # endif
12777 # endif
12778 # endif
12779 # endif
12780 #endif
12782 /* When -fvisbility=hidden is used, assume the code has been annotated
12783 correspondingly for the symbols needed. */
12784 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12785 void fnord () __attribute__((visibility("default")));
12786 #endif
12788 void fnord () { int i=42; }
12789 int main ()
12791 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12792 int status = $lt_dlunknown;
12794 if (self)
12796 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12797 else
12799 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12800 else puts (dlerror ());
12802 /* dlclose (self); */
12804 else
12805 puts (dlerror ());
12807 return status;
12809 _LT_EOF
12810 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12811 (eval $ac_link) 2>&5
12812 ac_status=$?
12813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12814 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12815 (./conftest; exit; ) >&5 2>/dev/null
12816 lt_status=$?
12817 case x$lt_status in
12818 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12819 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12820 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12821 esac
12822 else :
12823 # compilation failed
12824 lt_cv_dlopen_self=no
12827 rm -fr conftest*
12831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12832 $as_echo "$lt_cv_dlopen_self" >&6; }
12834 if test "x$lt_cv_dlopen_self" = xyes; then
12835 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12837 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12838 if ${lt_cv_dlopen_self_static+:} false; then :
12839 $as_echo_n "(cached) " >&6
12840 else
12841 if test "$cross_compiling" = yes; then :
12842 lt_cv_dlopen_self_static=cross
12843 else
12844 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12845 lt_status=$lt_dlunknown
12846 cat > conftest.$ac_ext <<_LT_EOF
12847 #line 12847 "configure"
12848 #include "confdefs.h"
12850 #if HAVE_DLFCN_H
12851 #include <dlfcn.h>
12852 #endif
12854 #include <stdio.h>
12856 #ifdef RTLD_GLOBAL
12857 # define LT_DLGLOBAL RTLD_GLOBAL
12858 #else
12859 # ifdef DL_GLOBAL
12860 # define LT_DLGLOBAL DL_GLOBAL
12861 # else
12862 # define LT_DLGLOBAL 0
12863 # endif
12864 #endif
12866 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12867 find out it does not work in some platform. */
12868 #ifndef LT_DLLAZY_OR_NOW
12869 # ifdef RTLD_LAZY
12870 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12871 # else
12872 # ifdef DL_LAZY
12873 # define LT_DLLAZY_OR_NOW DL_LAZY
12874 # else
12875 # ifdef RTLD_NOW
12876 # define LT_DLLAZY_OR_NOW RTLD_NOW
12877 # else
12878 # ifdef DL_NOW
12879 # define LT_DLLAZY_OR_NOW DL_NOW
12880 # else
12881 # define LT_DLLAZY_OR_NOW 0
12882 # endif
12883 # endif
12884 # endif
12885 # endif
12886 #endif
12888 /* When -fvisbility=hidden is used, assume the code has been annotated
12889 correspondingly for the symbols needed. */
12890 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12891 void fnord () __attribute__((visibility("default")));
12892 #endif
12894 void fnord () { int i=42; }
12895 int main ()
12897 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12898 int status = $lt_dlunknown;
12900 if (self)
12902 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12903 else
12905 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12906 else puts (dlerror ());
12908 /* dlclose (self); */
12910 else
12911 puts (dlerror ());
12913 return status;
12915 _LT_EOF
12916 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12917 (eval $ac_link) 2>&5
12918 ac_status=$?
12919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12920 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12921 (./conftest; exit; ) >&5 2>/dev/null
12922 lt_status=$?
12923 case x$lt_status in
12924 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12925 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12926 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12927 esac
12928 else :
12929 # compilation failed
12930 lt_cv_dlopen_self_static=no
12933 rm -fr conftest*
12937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12938 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12941 CPPFLAGS="$save_CPPFLAGS"
12942 LDFLAGS="$save_LDFLAGS"
12943 LIBS="$save_LIBS"
12945 esac
12947 case $lt_cv_dlopen_self in
12948 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12949 *) enable_dlopen_self=unknown ;;
12950 esac
12952 case $lt_cv_dlopen_self_static in
12953 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12954 *) enable_dlopen_self_static=unknown ;;
12955 esac
12974 striplib=
12975 old_striplib=
12976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12977 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12978 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12979 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12980 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12982 $as_echo "yes" >&6; }
12983 else
12984 # FIXME - insert some real tests, host_os isn't really good enough
12985 case $host_os in
12986 darwin*)
12987 if test -n "$STRIP" ; then
12988 striplib="$STRIP -x"
12989 old_striplib="$STRIP -S"
12990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12991 $as_echo "yes" >&6; }
12992 else
12993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12994 $as_echo "no" >&6; }
12998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12999 $as_echo "no" >&6; }
13001 esac
13015 # Report which library types will actually be built
13016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13017 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13019 $as_echo "$can_build_shared" >&6; }
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13022 $as_echo_n "checking whether to build shared libraries... " >&6; }
13023 test "$can_build_shared" = "no" && enable_shared=no
13025 # On AIX, shared libraries and static libraries use the same namespace, and
13026 # are all built from PIC.
13027 case $host_os in
13028 aix3*)
13029 test "$enable_shared" = yes && enable_static=no
13030 if test -n "$RANLIB"; then
13031 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13032 postinstall_cmds='$RANLIB $lib'
13036 aix[4-9]*)
13037 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13038 test "$enable_shared" = yes && enable_static=no
13041 esac
13042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13043 $as_echo "$enable_shared" >&6; }
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13046 $as_echo_n "checking whether to build static libraries... " >&6; }
13047 # Make sure either enable_shared or enable_static is yes.
13048 test "$enable_shared" = yes || enable_static=yes
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13050 $as_echo "$enable_static" >&6; }
13056 ac_ext=c
13057 ac_cpp='$CPP $CPPFLAGS'
13058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13062 CC="$lt_save_CC"
13064 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13065 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13066 (test "X$CXX" != "Xg++"))) ; then
13067 ac_ext=cpp
13068 ac_cpp='$CXXCPP $CPPFLAGS'
13069 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13070 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13071 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13073 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13074 if test -z "$CXXCPP"; then
13075 if ${ac_cv_prog_CXXCPP+:} false; then :
13076 $as_echo_n "(cached) " >&6
13077 else
13078 # Double quotes because CXXCPP needs to be expanded
13079 for CXXCPP in "$CXX -E" "/lib/cpp"
13081 ac_preproc_ok=false
13082 for ac_cxx_preproc_warn_flag in '' yes
13084 # Use a header file that comes with gcc, so configuring glibc
13085 # with a fresh cross-compiler works.
13086 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13087 # <limits.h> exists even on freestanding compilers.
13088 # On the NeXT, cc -E runs the code through the compiler's parser,
13089 # not just through cpp. "Syntax error" is here to catch this case.
13090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13091 /* end confdefs.h. */
13092 #ifdef __STDC__
13093 # include <limits.h>
13094 #else
13095 # include <assert.h>
13096 #endif
13097 Syntax error
13098 _ACEOF
13099 if ac_fn_cxx_try_cpp "$LINENO"; then :
13101 else
13102 # Broken: fails on valid input.
13103 continue
13105 rm -f conftest.err conftest.i conftest.$ac_ext
13107 # OK, works on sane cases. Now check whether nonexistent headers
13108 # can be detected and how.
13109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13110 /* end confdefs.h. */
13111 #include <ac_nonexistent.h>
13112 _ACEOF
13113 if ac_fn_cxx_try_cpp "$LINENO"; then :
13114 # Broken: success on invalid input.
13115 continue
13116 else
13117 # Passes both tests.
13118 ac_preproc_ok=:
13119 break
13121 rm -f conftest.err conftest.i conftest.$ac_ext
13123 done
13124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13125 rm -f conftest.i conftest.err conftest.$ac_ext
13126 if $ac_preproc_ok; then :
13127 break
13130 done
13131 ac_cv_prog_CXXCPP=$CXXCPP
13134 CXXCPP=$ac_cv_prog_CXXCPP
13135 else
13136 ac_cv_prog_CXXCPP=$CXXCPP
13138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13139 $as_echo "$CXXCPP" >&6; }
13140 ac_preproc_ok=false
13141 for ac_cxx_preproc_warn_flag in '' yes
13143 # Use a header file that comes with gcc, so configuring glibc
13144 # with a fresh cross-compiler works.
13145 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13146 # <limits.h> exists even on freestanding compilers.
13147 # On the NeXT, cc -E runs the code through the compiler's parser,
13148 # not just through cpp. "Syntax error" is here to catch this case.
13149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13150 /* end confdefs.h. */
13151 #ifdef __STDC__
13152 # include <limits.h>
13153 #else
13154 # include <assert.h>
13155 #endif
13156 Syntax error
13157 _ACEOF
13158 if ac_fn_cxx_try_cpp "$LINENO"; then :
13160 else
13161 # Broken: fails on valid input.
13162 continue
13164 rm -f conftest.err conftest.i conftest.$ac_ext
13166 # OK, works on sane cases. Now check whether nonexistent headers
13167 # can be detected and how.
13168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13169 /* end confdefs.h. */
13170 #include <ac_nonexistent.h>
13171 _ACEOF
13172 if ac_fn_cxx_try_cpp "$LINENO"; then :
13173 # Broken: success on invalid input.
13174 continue
13175 else
13176 # Passes both tests.
13177 ac_preproc_ok=:
13178 break
13180 rm -f conftest.err conftest.i conftest.$ac_ext
13182 done
13183 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13184 rm -f conftest.i conftest.err conftest.$ac_ext
13185 if $ac_preproc_ok; then :
13187 else
13188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13190 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13191 See \`config.log' for more details" "$LINENO" 5; }
13194 ac_ext=c
13195 ac_cpp='$CPP $CPPFLAGS'
13196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13200 else
13201 _lt_caught_CXX_error=yes
13204 ac_ext=cpp
13205 ac_cpp='$CXXCPP $CPPFLAGS'
13206 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13207 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13208 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13210 archive_cmds_need_lc_CXX=no
13211 allow_undefined_flag_CXX=
13212 always_export_symbols_CXX=no
13213 archive_expsym_cmds_CXX=
13214 compiler_needs_object_CXX=no
13215 export_dynamic_flag_spec_CXX=
13216 hardcode_direct_CXX=no
13217 hardcode_direct_absolute_CXX=no
13218 hardcode_libdir_flag_spec_CXX=
13219 hardcode_libdir_flag_spec_ld_CXX=
13220 hardcode_libdir_separator_CXX=
13221 hardcode_minus_L_CXX=no
13222 hardcode_shlibpath_var_CXX=unsupported
13223 hardcode_automatic_CXX=no
13224 inherit_rpath_CXX=no
13225 module_cmds_CXX=
13226 module_expsym_cmds_CXX=
13227 link_all_deplibs_CXX=unknown
13228 old_archive_cmds_CXX=$old_archive_cmds
13229 reload_flag_CXX=$reload_flag
13230 reload_cmds_CXX=$reload_cmds
13231 no_undefined_flag_CXX=
13232 whole_archive_flag_spec_CXX=
13233 enable_shared_with_static_runtimes_CXX=no
13235 # Source file extension for C++ test sources.
13236 ac_ext=cpp
13238 # Object file extension for compiled C++ test sources.
13239 objext=o
13240 objext_CXX=$objext
13242 # No sense in running all these tests if we already determined that
13243 # the CXX compiler isn't working. Some variables (like enable_shared)
13244 # are currently assumed to apply to all compilers on this platform,
13245 # and will be corrupted by setting them based on a non-working compiler.
13246 if test "$_lt_caught_CXX_error" != yes; then
13247 # Code to be used in simple compile tests
13248 lt_simple_compile_test_code="int some_variable = 0;"
13250 # Code to be used in simple link tests
13251 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13253 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13260 # If no C compiler was specified, use CC.
13261 LTCC=${LTCC-"$CC"}
13263 # If no C compiler flags were specified, use CFLAGS.
13264 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13266 # Allow CC to be a program name with arguments.
13267 compiler=$CC
13270 # save warnings/boilerplate of simple test code
13271 ac_outfile=conftest.$ac_objext
13272 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13273 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13274 _lt_compiler_boilerplate=`cat conftest.err`
13275 $RM conftest*
13277 ac_outfile=conftest.$ac_objext
13278 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13279 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13280 _lt_linker_boilerplate=`cat conftest.err`
13281 $RM -r conftest*
13284 # Allow CC to be a program name with arguments.
13285 lt_save_CC=$CC
13286 lt_save_LD=$LD
13287 lt_save_GCC=$GCC
13288 GCC=$GXX
13289 lt_save_with_gnu_ld=$with_gnu_ld
13290 lt_save_path_LD=$lt_cv_path_LD
13291 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13292 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13293 else
13294 $as_unset lt_cv_prog_gnu_ld
13296 if test -n "${lt_cv_path_LDCXX+set}"; then
13297 lt_cv_path_LD=$lt_cv_path_LDCXX
13298 else
13299 $as_unset lt_cv_path_LD
13301 test -z "${LDCXX+set}" || LD=$LDCXX
13302 CC=${CXX-"c++"}
13303 compiler=$CC
13304 compiler_CXX=$CC
13305 for cc_temp in $compiler""; do
13306 case $cc_temp in
13307 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13308 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13309 \-*) ;;
13310 *) break;;
13311 esac
13312 done
13313 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13316 if test -n "$compiler"; then
13317 # We don't want -fno-exception when compiling C++ code, so set the
13318 # no_builtin_flag separately
13319 if test "$GXX" = yes; then
13320 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13321 else
13322 lt_prog_compiler_no_builtin_flag_CXX=
13325 if test "$GXX" = yes; then
13326 # Set up default GNU C++ configuration
13330 # Check whether --with-gnu-ld was given.
13331 if test "${with_gnu_ld+set}" = set; then :
13332 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13333 else
13334 with_gnu_ld=no
13337 ac_prog=ld
13338 if test "$GCC" = yes; then
13339 # Check if gcc -print-prog-name=ld gives a path.
13340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13341 $as_echo_n "checking for ld used by $CC... " >&6; }
13342 case $host in
13343 *-*-mingw*)
13344 # gcc leaves a trailing carriage return which upsets mingw
13345 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13347 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13348 esac
13349 case $ac_prog in
13350 # Accept absolute paths.
13351 [\\/]* | ?:[\\/]*)
13352 re_direlt='/[^/][^/]*/\.\./'
13353 # Canonicalize the pathname of ld
13354 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13355 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13356 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13357 done
13358 test -z "$LD" && LD="$ac_prog"
13361 # If it fails, then pretend we aren't using GCC.
13362 ac_prog=ld
13365 # If it is relative, then search for the first ld in PATH.
13366 with_gnu_ld=unknown
13368 esac
13369 elif test "$with_gnu_ld" = yes; then
13370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13371 $as_echo_n "checking for GNU ld... " >&6; }
13372 else
13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13374 $as_echo_n "checking for non-GNU ld... " >&6; }
13376 if ${lt_cv_path_LD+:} false; then :
13377 $as_echo_n "(cached) " >&6
13378 else
13379 if test -z "$LD"; then
13380 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13381 for ac_dir in $PATH; do
13382 IFS="$lt_save_ifs"
13383 test -z "$ac_dir" && ac_dir=.
13384 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13385 lt_cv_path_LD="$ac_dir/$ac_prog"
13386 # Check to see if the program is GNU ld. I'd rather use --version,
13387 # but apparently some variants of GNU ld only accept -v.
13388 # Break only if it was the GNU/non-GNU ld that we prefer.
13389 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13390 *GNU* | *'with BFD'*)
13391 test "$with_gnu_ld" != no && break
13394 test "$with_gnu_ld" != yes && break
13396 esac
13398 done
13399 IFS="$lt_save_ifs"
13400 else
13401 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13405 LD="$lt_cv_path_LD"
13406 if test -n "$LD"; then
13407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13408 $as_echo "$LD" >&6; }
13409 else
13410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13411 $as_echo "no" >&6; }
13413 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13415 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13416 if ${lt_cv_prog_gnu_ld+:} false; then :
13417 $as_echo_n "(cached) " >&6
13418 else
13419 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13420 case `$LD -v 2>&1 </dev/null` in
13421 *GNU* | *'with BFD'*)
13422 lt_cv_prog_gnu_ld=yes
13425 lt_cv_prog_gnu_ld=no
13427 esac
13429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13430 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13431 with_gnu_ld=$lt_cv_prog_gnu_ld
13439 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13440 # archiving commands below assume that GNU ld is being used.
13441 if test "$with_gnu_ld" = yes; then
13442 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13443 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'
13445 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13446 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13448 # If archive_cmds runs LD, not CC, wlarc should be empty
13449 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13450 # investigate it a little bit more. (MM)
13451 wlarc='${wl}'
13453 # ancient GNU ld didn't support --whole-archive et. al.
13454 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13455 $GREP 'no-whole-archive' > /dev/null; then
13456 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13457 else
13458 whole_archive_flag_spec_CXX=
13460 else
13461 with_gnu_ld=no
13462 wlarc=
13464 # A generic and very simple default shared library creation
13465 # command for GNU C++ for the case where it uses the native
13466 # linker, instead of GNU ld. If possible, this setting should
13467 # overridden to take advantage of the native linker features on
13468 # the platform it is being used on.
13469 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13472 # Commands to make compiler produce verbose output that lists
13473 # what "hidden" libraries, object files and flags are used when
13474 # linking a shared library.
13475 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13477 else
13478 GXX=no
13479 with_gnu_ld=no
13480 wlarc=
13483 # PORTME: fill in a description of your system's C++ link characteristics
13484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13485 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13486 ld_shlibs_CXX=yes
13487 case $host_os in
13488 aix3*)
13489 # FIXME: insert proper C++ library support
13490 ld_shlibs_CXX=no
13492 aix[4-9]*)
13493 if test "$host_cpu" = ia64; then
13494 # On IA64, the linker does run time linking by default, so we don't
13495 # have to do anything special.
13496 aix_use_runtimelinking=no
13497 exp_sym_flag='-Bexport'
13498 no_entry_flag=""
13499 else
13500 aix_use_runtimelinking=no
13502 # Test if we are trying to use run time linking or normal
13503 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13504 # need to do runtime linking.
13505 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13506 for ld_flag in $LDFLAGS; do
13507 case $ld_flag in
13508 *-brtl*)
13509 aix_use_runtimelinking=yes
13510 break
13512 esac
13513 done
13515 esac
13517 exp_sym_flag='-bexport'
13518 no_entry_flag='-bnoentry'
13521 # When large executables or shared objects are built, AIX ld can
13522 # have problems creating the table of contents. If linking a library
13523 # or program results in "error TOC overflow" add -mminimal-toc to
13524 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13525 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13527 archive_cmds_CXX=''
13528 hardcode_direct_CXX=yes
13529 hardcode_direct_absolute_CXX=yes
13530 hardcode_libdir_separator_CXX=':'
13531 link_all_deplibs_CXX=yes
13532 file_list_spec_CXX='${wl}-f,'
13534 if test "$GXX" = yes; then
13535 case $host_os in aix4.[012]|aix4.[012].*)
13536 # We only want to do this on AIX 4.2 and lower, the check
13537 # below for broken collect2 doesn't work under 4.3+
13538 collect2name=`${CC} -print-prog-name=collect2`
13539 if test -f "$collect2name" &&
13540 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13541 then
13542 # We have reworked collect2
13544 else
13545 # We have old collect2
13546 hardcode_direct_CXX=unsupported
13547 # It fails to find uninstalled libraries when the uninstalled
13548 # path is not listed in the libpath. Setting hardcode_minus_L
13549 # to unsupported forces relinking
13550 hardcode_minus_L_CXX=yes
13551 hardcode_libdir_flag_spec_CXX='-L$libdir'
13552 hardcode_libdir_separator_CXX=
13554 esac
13555 shared_flag='-shared'
13556 if test "$aix_use_runtimelinking" = yes; then
13557 shared_flag="$shared_flag "'${wl}-G'
13559 else
13560 # not using gcc
13561 if test "$host_cpu" = ia64; then
13562 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13563 # chokes on -Wl,-G. The following line is correct:
13564 shared_flag='-G'
13565 else
13566 if test "$aix_use_runtimelinking" = yes; then
13567 shared_flag='${wl}-G'
13568 else
13569 shared_flag='${wl}-bM:SRE'
13574 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13575 # It seems that -bexpall does not export symbols beginning with
13576 # underscore (_), so it is better to generate a list of symbols to
13577 # export.
13578 always_export_symbols_CXX=yes
13579 if test "$aix_use_runtimelinking" = yes; then
13580 # Warning - without using the other runtime loading flags (-brtl),
13581 # -berok will link without error, but may produce a broken library.
13582 allow_undefined_flag_CXX='-berok'
13583 # Determine the default libpath from the value encoded in an empty
13584 # executable.
13585 if test x$gcc_no_link = xyes; then
13586 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13589 /* end confdefs.h. */
13592 main ()
13596 return 0;
13598 _ACEOF
13599 if ac_fn_cxx_try_link "$LINENO"; then :
13601 lt_aix_libpath_sed='
13602 /Import File Strings/,/^$/ {
13603 /^0/ {
13604 s/^0 *\(.*\)$/\1/
13608 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13609 # Check for a 64-bit object if we didn't find anything.
13610 if test -z "$aix_libpath"; then
13611 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13614 rm -f core conftest.err conftest.$ac_objext \
13615 conftest$ac_exeext conftest.$ac_ext
13616 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13618 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13620 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"
13621 else
13622 if test "$host_cpu" = ia64; then
13623 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13624 allow_undefined_flag_CXX="-z nodefs"
13625 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"
13626 else
13627 # Determine the default libpath from the value encoded in an
13628 # empty executable.
13629 if test x$gcc_no_link = xyes; then
13630 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13633 /* end confdefs.h. */
13636 main ()
13640 return 0;
13642 _ACEOF
13643 if ac_fn_cxx_try_link "$LINENO"; then :
13645 lt_aix_libpath_sed='
13646 /Import File Strings/,/^$/ {
13647 /^0/ {
13648 s/^0 *\(.*\)$/\1/
13652 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13653 # Check for a 64-bit object if we didn't find anything.
13654 if test -z "$aix_libpath"; then
13655 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13658 rm -f core conftest.err conftest.$ac_objext \
13659 conftest$ac_exeext conftest.$ac_ext
13660 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13662 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13663 # Warning - without using the other run time loading flags,
13664 # -berok will link without error, but may produce a broken library.
13665 no_undefined_flag_CXX=' ${wl}-bernotok'
13666 allow_undefined_flag_CXX=' ${wl}-berok'
13667 if test "$with_gnu_ld" = yes; then
13668 # We only use this code for GNU lds that support --whole-archive.
13669 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13670 else
13671 # Exported symbols can be pulled into shared objects from archives
13672 whole_archive_flag_spec_CXX='$convenience'
13674 archive_cmds_need_lc_CXX=yes
13675 # This is similar to how AIX traditionally builds its shared
13676 # libraries.
13677 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'
13682 beos*)
13683 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13684 allow_undefined_flag_CXX=unsupported
13685 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13686 # support --undefined. This deserves some investigation. FIXME
13687 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13688 else
13689 ld_shlibs_CXX=no
13693 chorus*)
13694 case $cc_basename in
13696 # FIXME: insert proper C++ library support
13697 ld_shlibs_CXX=no
13699 esac
13702 cygwin* | mingw* | pw32* | cegcc*)
13703 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13704 # as there is no search path for DLLs.
13705 hardcode_libdir_flag_spec_CXX='-L$libdir'
13706 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13707 allow_undefined_flag_CXX=unsupported
13708 always_export_symbols_CXX=no
13709 enable_shared_with_static_runtimes_CXX=yes
13711 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13712 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'
13713 # If the export-symbols file already is a .def file (1st line
13714 # is EXPORTS), use it as is; otherwise, prepend...
13715 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13716 cp $export_symbols $output_objdir/$soname.def;
13717 else
13718 echo EXPORTS > $output_objdir/$soname.def;
13719 cat $export_symbols >> $output_objdir/$soname.def;
13721 $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'
13722 else
13723 ld_shlibs_CXX=no
13726 darwin* | rhapsody*)
13729 archive_cmds_need_lc_CXX=no
13730 hardcode_direct_CXX=no
13731 hardcode_automatic_CXX=yes
13732 hardcode_shlibpath_var_CXX=unsupported
13733 if test "$lt_cv_ld_force_load" = "yes"; then
13734 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\"`'
13735 else
13736 whole_archive_flag_spec_CXX=''
13738 link_all_deplibs_CXX=yes
13739 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13740 case $cc_basename in
13741 ifort*) _lt_dar_can_shared=yes ;;
13742 *) _lt_dar_can_shared=$GCC ;;
13743 esac
13744 if test "$_lt_dar_can_shared" = "yes"; then
13745 output_verbose_link_cmd=func_echo_all
13746 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
13747 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13748 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
13749 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}"
13750 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13751 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
13752 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}"
13755 else
13756 ld_shlibs_CXX=no
13761 dgux*)
13762 case $cc_basename in
13763 ec++*)
13764 # FIXME: insert proper C++ library support
13765 ld_shlibs_CXX=no
13767 ghcx*)
13768 # Green Hills C++ Compiler
13769 # FIXME: insert proper C++ library support
13770 ld_shlibs_CXX=no
13773 # FIXME: insert proper C++ library support
13774 ld_shlibs_CXX=no
13776 esac
13779 freebsd2.*)
13780 # C++ shared libraries reported to be fairly broken before
13781 # switch to ELF
13782 ld_shlibs_CXX=no
13785 freebsd-elf*)
13786 archive_cmds_need_lc_CXX=no
13789 freebsd* | dragonfly*)
13790 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13791 # conventions
13792 ld_shlibs_CXX=yes
13795 gnu*)
13798 haiku*)
13799 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13800 link_all_deplibs_CXX=yes
13803 hpux9*)
13804 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13805 hardcode_libdir_separator_CXX=:
13806 export_dynamic_flag_spec_CXX='${wl}-E'
13807 hardcode_direct_CXX=yes
13808 hardcode_minus_L_CXX=yes # Not in the search PATH,
13809 # but as the default
13810 # location of the library.
13812 case $cc_basename in
13813 CC*)
13814 # FIXME: insert proper C++ library support
13815 ld_shlibs_CXX=no
13817 aCC*)
13818 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'
13819 # Commands to make compiler produce verbose output that lists
13820 # what "hidden" libraries, object files and flags are used when
13821 # linking a shared library.
13823 # There doesn't appear to be a way to prevent this compiler from
13824 # explicitly linking system object files so we need to strip them
13825 # from the output so that they don't get included in the library
13826 # dependencies.
13827 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"'
13830 if test "$GXX" = yes; then
13831 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'
13832 else
13833 # FIXME: insert proper C++ library support
13834 ld_shlibs_CXX=no
13837 esac
13840 hpux10*|hpux11*)
13841 if test $with_gnu_ld = no; then
13842 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13843 hardcode_libdir_separator_CXX=:
13845 case $host_cpu in
13846 hppa*64*|ia64*)
13849 export_dynamic_flag_spec_CXX='${wl}-E'
13851 esac
13853 case $host_cpu in
13854 hppa*64*|ia64*)
13855 hardcode_direct_CXX=no
13856 hardcode_shlibpath_var_CXX=no
13859 hardcode_direct_CXX=yes
13860 hardcode_direct_absolute_CXX=yes
13861 hardcode_minus_L_CXX=yes # Not in the search PATH,
13862 # but as the default
13863 # location of the library.
13865 esac
13867 case $cc_basename in
13868 CC*)
13869 # FIXME: insert proper C++ library support
13870 ld_shlibs_CXX=no
13872 aCC*)
13873 case $host_cpu in
13874 hppa*64*)
13875 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13877 ia64*)
13878 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13881 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13883 esac
13884 # Commands to make compiler produce verbose output that lists
13885 # what "hidden" libraries, object files and flags are used when
13886 # linking a shared library.
13888 # There doesn't appear to be a way to prevent this compiler from
13889 # explicitly linking system object files so we need to strip them
13890 # from the output so that they don't get included in the library
13891 # dependencies.
13892 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"'
13895 if test "$GXX" = yes; then
13896 if test $with_gnu_ld = no; then
13897 case $host_cpu in
13898 hppa*64*)
13899 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13901 ia64*)
13902 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13905 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'
13907 esac
13909 else
13910 # FIXME: insert proper C++ library support
13911 ld_shlibs_CXX=no
13914 esac
13917 interix[3-9]*)
13918 hardcode_direct_CXX=no
13919 hardcode_shlibpath_var_CXX=no
13920 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13921 export_dynamic_flag_spec_CXX='${wl}-E'
13922 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13923 # Instead, shared libraries are loaded at an image base (0x10000000 by
13924 # default) and relocated if they conflict, which is a slow very memory
13925 # consuming and fragmenting process. To avoid this, we pick a random,
13926 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13927 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13928 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'
13929 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'
13931 irix5* | irix6*)
13932 case $cc_basename in
13933 CC*)
13934 # SGI C++
13935 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'
13937 # Archives containing C++ object files must be created using
13938 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13939 # necessary to make sure instantiated templates are included
13940 # in the archive.
13941 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13944 if test "$GXX" = yes; then
13945 if test "$with_gnu_ld" = no; then
13946 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'
13947 else
13948 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'
13951 link_all_deplibs_CXX=yes
13953 esac
13954 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13955 hardcode_libdir_separator_CXX=:
13956 inherit_rpath_CXX=yes
13959 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13960 case $cc_basename in
13961 KCC*)
13962 # Kuck and Associates, Inc. (KAI) C++ Compiler
13964 # KCC will only create a shared library if the output file
13965 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13966 # to its proper name (with version) after linking.
13967 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'
13968 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'
13969 # Commands to make compiler produce verbose output that lists
13970 # what "hidden" libraries, object files and flags are used when
13971 # linking a shared library.
13973 # There doesn't appear to be a way to prevent this compiler from
13974 # explicitly linking system object files so we need to strip them
13975 # from the output so that they don't get included in the library
13976 # dependencies.
13977 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"'
13979 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13980 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13982 # Archives containing C++ object files must be created using
13983 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13984 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13986 icpc* | ecpc* )
13987 # Intel C++
13988 with_gnu_ld=yes
13989 # version 8.0 and above of icpc choke on multiply defined symbols
13990 # if we add $predep_objects and $postdep_objects, however 7.1 and
13991 # earlier do not add the objects themselves.
13992 case `$CC -V 2>&1` in
13993 *"Version 7."*)
13994 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13995 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'
13997 *) # Version 8.0 or newer
13998 tmp_idyn=
13999 case $host_cpu in
14000 ia64*) tmp_idyn=' -i_dynamic';;
14001 esac
14002 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14003 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'
14005 esac
14006 archive_cmds_need_lc_CXX=no
14007 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14008 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14009 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14011 pgCC* | pgcpp*)
14012 # Portland Group C++ compiler
14013 case `$CC -V` in
14014 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
14015 prelink_cmds_CXX='tpldir=Template.dir~
14016 rm -rf $tpldir~
14017 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
14018 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
14019 old_archive_cmds_CXX='tpldir=Template.dir~
14020 rm -rf $tpldir~
14021 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
14022 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
14023 $RANLIB $oldlib'
14024 archive_cmds_CXX='tpldir=Template.dir~
14025 rm -rf $tpldir~
14026 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14027 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14028 archive_expsym_cmds_CXX='tpldir=Template.dir~
14029 rm -rf $tpldir~
14030 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
14031 $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'
14033 *) # Version 6 and above use weak symbols
14034 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
14035 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'
14037 esac
14039 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14040 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14041 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'
14043 cxx*)
14044 # Compaq C++
14045 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14046 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'
14048 runpath_var=LD_RUN_PATH
14049 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14050 hardcode_libdir_separator_CXX=:
14052 # Commands to make compiler produce verbose output that lists
14053 # what "hidden" libraries, object files and flags are used when
14054 # linking a shared library.
14056 # There doesn't appear to be a way to prevent this compiler from
14057 # explicitly linking system object files so we need to strip them
14058 # from the output so that they don't get included in the library
14059 # dependencies.
14060 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'
14062 xl* | mpixl* | bgxl*)
14063 # IBM XL 8.0 on PPC, with GNU ld
14064 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14065 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14066 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14067 if test "x$supports_anon_versioning" = xyes; then
14068 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14069 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14070 echo "local: *; };" >> $output_objdir/$libname.ver~
14071 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14075 case `$CC -V 2>&1 | sed 5q` in
14076 *Sun\ C*)
14077 # Sun C++ 5.9
14078 no_undefined_flag_CXX=' -zdefs'
14079 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14080 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'
14081 hardcode_libdir_flag_spec_CXX='-R$libdir'
14082 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'
14083 compiler_needs_object_CXX=yes
14085 # Not sure whether something based on
14086 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14087 # would be better.
14088 output_verbose_link_cmd='func_echo_all'
14090 # Archives containing C++ object files must be created using
14091 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14092 # necessary to make sure instantiated templates are included
14093 # in the archive.
14094 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14096 esac
14098 esac
14101 lynxos*)
14102 # FIXME: insert proper C++ library support
14103 ld_shlibs_CXX=no
14106 m88k*)
14107 # FIXME: insert proper C++ library support
14108 ld_shlibs_CXX=no
14111 mvs*)
14112 case $cc_basename in
14113 cxx*)
14114 # FIXME: insert proper C++ library support
14115 ld_shlibs_CXX=no
14118 # FIXME: insert proper C++ library support
14119 ld_shlibs_CXX=no
14121 esac
14124 netbsd*)
14125 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14126 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14127 wlarc=
14128 hardcode_libdir_flag_spec_CXX='-R$libdir'
14129 hardcode_direct_CXX=yes
14130 hardcode_shlibpath_var_CXX=no
14132 # Workaround some broken pre-1.5 toolchains
14133 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14136 *nto* | *qnx*)
14137 ld_shlibs_CXX=yes
14140 openbsd2*)
14141 # C++ shared libraries are fairly broken
14142 ld_shlibs_CXX=no
14145 openbsd*)
14146 if test -f /usr/libexec/ld.so; then
14147 hardcode_direct_CXX=yes
14148 hardcode_shlibpath_var_CXX=no
14149 hardcode_direct_absolute_CXX=yes
14150 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14151 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14152 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14153 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14154 export_dynamic_flag_spec_CXX='${wl}-E'
14155 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14157 output_verbose_link_cmd=func_echo_all
14158 else
14159 ld_shlibs_CXX=no
14163 osf3* | osf4* | osf5*)
14164 case $cc_basename in
14165 KCC*)
14166 # Kuck and Associates, Inc. (KAI) C++ Compiler
14168 # KCC will only create a shared library if the output file
14169 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14170 # to its proper name (with version) after linking.
14171 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'
14173 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14174 hardcode_libdir_separator_CXX=:
14176 # Archives containing C++ object files must be created using
14177 # the KAI C++ compiler.
14178 case $host in
14179 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14180 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14181 esac
14183 RCC*)
14184 # Rational C++ 2.4.1
14185 # FIXME: insert proper C++ library support
14186 ld_shlibs_CXX=no
14188 cxx*)
14189 case $host in
14190 osf3*)
14191 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14192 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'
14193 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14196 allow_undefined_flag_CXX=' -expect_unresolved \*'
14197 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'
14198 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14199 echo "-hidden">> $lib.exp~
14200 $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~
14201 $RM $lib.exp'
14202 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14204 esac
14206 hardcode_libdir_separator_CXX=:
14208 # Commands to make compiler produce verbose output that lists
14209 # what "hidden" libraries, object files and flags are used when
14210 # linking a shared library.
14212 # There doesn't appear to be a way to prevent this compiler from
14213 # explicitly linking system object files so we need to strip them
14214 # from the output so that they don't get included in the library
14215 # dependencies.
14216 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"'
14219 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14220 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14221 case $host in
14222 osf3*)
14223 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'
14226 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'
14228 esac
14230 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14231 hardcode_libdir_separator_CXX=:
14233 # Commands to make compiler produce verbose output that lists
14234 # what "hidden" libraries, object files and flags are used when
14235 # linking a shared library.
14236 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14238 else
14239 # FIXME: insert proper C++ library support
14240 ld_shlibs_CXX=no
14243 esac
14246 psos*)
14247 # FIXME: insert proper C++ library support
14248 ld_shlibs_CXX=no
14251 sunos4*)
14252 case $cc_basename in
14253 CC*)
14254 # Sun C++ 4.x
14255 # FIXME: insert proper C++ library support
14256 ld_shlibs_CXX=no
14258 lcc*)
14259 # Lucid
14260 # FIXME: insert proper C++ library support
14261 ld_shlibs_CXX=no
14264 # FIXME: insert proper C++ library support
14265 ld_shlibs_CXX=no
14267 esac
14270 solaris*)
14271 case $cc_basename in
14272 CC*)
14273 # Sun C++ 4.2, 5.x and Centerline C++
14274 archive_cmds_need_lc_CXX=yes
14275 no_undefined_flag_CXX=' -zdefs'
14276 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14277 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14278 $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'
14280 hardcode_libdir_flag_spec_CXX='-R$libdir'
14281 hardcode_shlibpath_var_CXX=no
14282 case $host_os in
14283 solaris2.[0-5] | solaris2.[0-5].*) ;;
14285 # The compiler driver will combine and reorder linker options,
14286 # but understands `-z linker_flag'.
14287 # Supported since Solaris 2.6 (maybe 2.5.1?)
14288 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14290 esac
14291 link_all_deplibs_CXX=yes
14293 output_verbose_link_cmd='func_echo_all'
14295 # Archives containing C++ object files must be created using
14296 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14297 # necessary to make sure instantiated templates are included
14298 # in the archive.
14299 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14301 gcx*)
14302 # Green Hills C++ Compiler
14303 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14305 # The C++ compiler must be used to create the archive.
14306 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14309 # GNU C++ compiler with Solaris linker
14310 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14311 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14312 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14313 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14314 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14315 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14317 # Commands to make compiler produce verbose output that lists
14318 # what "hidden" libraries, object files and flags are used when
14319 # linking a shared library.
14320 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14321 else
14322 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14323 # platform.
14324 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14325 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14326 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14328 # Commands to make compiler produce verbose output that lists
14329 # what "hidden" libraries, object files and flags are used when
14330 # linking a shared library.
14331 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14334 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14335 case $host_os in
14336 solaris2.[0-5] | solaris2.[0-5].*) ;;
14338 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14340 esac
14343 esac
14346 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14347 no_undefined_flag_CXX='${wl}-z,text'
14348 archive_cmds_need_lc_CXX=no
14349 hardcode_shlibpath_var_CXX=no
14350 runpath_var='LD_RUN_PATH'
14352 case $cc_basename in
14353 CC*)
14354 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14355 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14358 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14359 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14361 esac
14364 sysv5* | sco3.2v5* | sco5v6*)
14365 # Note: We can NOT use -z defs as we might desire, because we do not
14366 # link with -lc, and that would cause any symbols used from libc to
14367 # always be unresolved, which means just about no library would
14368 # ever link correctly. If we're not using GNU ld we use -z text
14369 # though, which does catch some bad symbols but isn't as heavy-handed
14370 # as -z defs.
14371 no_undefined_flag_CXX='${wl}-z,text'
14372 allow_undefined_flag_CXX='${wl}-z,nodefs'
14373 archive_cmds_need_lc_CXX=no
14374 hardcode_shlibpath_var_CXX=no
14375 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14376 hardcode_libdir_separator_CXX=':'
14377 link_all_deplibs_CXX=yes
14378 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14379 runpath_var='LD_RUN_PATH'
14381 case $cc_basename in
14382 CC*)
14383 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14384 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14385 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14386 '"$old_archive_cmds_CXX"
14387 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14388 '"$reload_cmds_CXX"
14391 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14392 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14394 esac
14397 tandem*)
14398 case $cc_basename in
14399 NCC*)
14400 # NonStop-UX NCC 3.20
14401 # FIXME: insert proper C++ library support
14402 ld_shlibs_CXX=no
14405 # FIXME: insert proper C++ library support
14406 ld_shlibs_CXX=no
14408 esac
14411 vxworks*)
14412 # For VxWorks ports, we assume the use of a GNU linker with
14413 # standard elf conventions.
14414 ld_shlibs_CXX=yes
14418 # FIXME: insert proper C++ library support
14419 ld_shlibs_CXX=no
14421 esac
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14424 $as_echo "$ld_shlibs_CXX" >&6; }
14425 test "$ld_shlibs_CXX" = no && can_build_shared=no
14427 GCC_CXX="$GXX"
14428 LD_CXX="$LD"
14430 ## CAVEAT EMPTOR:
14431 ## There is no encapsulation within the following macros, do not change
14432 ## the running order or otherwise move them around unless you know exactly
14433 ## what you are doing...
14434 # Dependencies to place before and after the object being linked:
14435 predep_objects_CXX=
14436 postdep_objects_CXX=
14437 predeps_CXX=
14438 postdeps_CXX=
14439 compiler_lib_search_path_CXX=
14441 cat > conftest.$ac_ext <<_LT_EOF
14442 class Foo
14444 public:
14445 Foo (void) { a = 0; }
14446 private:
14447 int a;
14449 _LT_EOF
14451 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14452 (eval $ac_compile) 2>&5
14453 ac_status=$?
14454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14455 test $ac_status = 0; }; then
14456 # Parse the compiler output and extract the necessary
14457 # objects, libraries and library flags.
14459 # Sentinel used to keep track of whether or not we are before
14460 # the conftest object file.
14461 pre_test_object_deps_done=no
14463 for p in `eval "$output_verbose_link_cmd"`; do
14464 case $p in
14466 -L* | -R* | -l*)
14467 # Some compilers place space between "-{L,R}" and the path.
14468 # Remove the space.
14469 if test $p = "-L" ||
14470 test $p = "-R"; then
14471 prev=$p
14472 continue
14473 else
14474 prev=
14477 if test "$pre_test_object_deps_done" = no; then
14478 case $p in
14479 -L* | -R*)
14480 # Internal compiler library paths should come after those
14481 # provided the user. The postdeps already come after the
14482 # user supplied libs so there is no need to process them.
14483 if test -z "$compiler_lib_search_path_CXX"; then
14484 compiler_lib_search_path_CXX="${prev}${p}"
14485 else
14486 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14489 # The "-l" case would never come before the object being
14490 # linked, so don't bother handling this case.
14491 esac
14492 else
14493 if test -z "$postdeps_CXX"; then
14494 postdeps_CXX="${prev}${p}"
14495 else
14496 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14501 *.$objext)
14502 # This assumes that the test object file only shows up
14503 # once in the compiler output.
14504 if test "$p" = "conftest.$objext"; then
14505 pre_test_object_deps_done=yes
14506 continue
14509 if test "$pre_test_object_deps_done" = no; then
14510 if test -z "$predep_objects_CXX"; then
14511 predep_objects_CXX="$p"
14512 else
14513 predep_objects_CXX="$predep_objects_CXX $p"
14515 else
14516 if test -z "$postdep_objects_CXX"; then
14517 postdep_objects_CXX="$p"
14518 else
14519 postdep_objects_CXX="$postdep_objects_CXX $p"
14524 *) ;; # Ignore the rest.
14526 esac
14527 done
14529 # Clean up.
14530 rm -f a.out a.exe
14531 else
14532 echo "libtool.m4: error: problem compiling CXX test program"
14535 $RM -f confest.$objext
14537 # PORTME: override above test on systems where it is broken
14538 case $host_os in
14539 interix[3-9]*)
14540 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14541 # hack all around it, let's just trust "g++" to DTRT.
14542 predep_objects_CXX=
14543 postdep_objects_CXX=
14544 postdeps_CXX=
14547 linux*)
14548 case `$CC -V 2>&1 | sed 5q` in
14549 *Sun\ C*)
14550 # Sun C++ 5.9
14552 # The more standards-conforming stlport4 library is
14553 # incompatible with the Cstd library. Avoid specifying
14554 # it if it's in CXXFLAGS. Ignore libCrun as
14555 # -library=stlport4 depends on it.
14556 case " $CXX $CXXFLAGS " in
14557 *" -library=stlport4 "*)
14558 solaris_use_stlport4=yes
14560 esac
14562 if test "$solaris_use_stlport4" != yes; then
14563 postdeps_CXX='-library=Cstd -library=Crun'
14566 esac
14569 solaris*)
14570 case $cc_basename in
14571 CC*)
14572 # The more standards-conforming stlport4 library is
14573 # incompatible with the Cstd library. Avoid specifying
14574 # it if it's in CXXFLAGS. Ignore libCrun as
14575 # -library=stlport4 depends on it.
14576 case " $CXX $CXXFLAGS " in
14577 *" -library=stlport4 "*)
14578 solaris_use_stlport4=yes
14580 esac
14582 # Adding this requires a known-good setup of shared libraries for
14583 # Sun compiler versions before 5.6, else PIC objects from an old
14584 # archive will be linked into the output, leading to subtle bugs.
14585 if test "$solaris_use_stlport4" != yes; then
14586 postdeps_CXX='-library=Cstd -library=Crun'
14589 esac
14591 esac
14594 case " $postdeps_CXX " in
14595 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14596 esac
14597 compiler_lib_search_dirs_CXX=
14598 if test -n "${compiler_lib_search_path_CXX}"; then
14599 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14632 lt_prog_compiler_wl_CXX=
14633 lt_prog_compiler_pic_CXX=
14634 lt_prog_compiler_static_CXX=
14636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14637 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14639 # C++ specific cases for pic, static, wl, etc.
14640 if test "$GXX" = yes; then
14641 lt_prog_compiler_wl_CXX='-Wl,'
14642 lt_prog_compiler_static_CXX='-static'
14644 case $host_os in
14645 aix*)
14646 # All AIX code is PIC.
14647 if test "$host_cpu" = ia64; then
14648 # AIX 5 now supports IA64 processor
14649 lt_prog_compiler_static_CXX='-Bstatic'
14651 lt_prog_compiler_pic_CXX='-fPIC'
14654 amigaos*)
14655 case $host_cpu in
14656 powerpc)
14657 # see comment about AmigaOS4 .so support
14658 lt_prog_compiler_pic_CXX='-fPIC'
14660 m68k)
14661 # FIXME: we need at least 68020 code to build shared libraries, but
14662 # adding the `-m68020' flag to GCC prevents building anything better,
14663 # like `-m68040'.
14664 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14666 esac
14669 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14670 # PIC is the default for these OSes.
14672 mingw* | cygwin* | os2* | pw32* | cegcc*)
14673 # This hack is so that the source file can tell whether it is being
14674 # built for inclusion in a dll (and should export symbols for example).
14675 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14676 # (--disable-auto-import) libraries
14677 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14679 darwin* | rhapsody*)
14680 # PIC is the default on this platform
14681 # Common symbols not allowed in MH_DYLIB files
14682 lt_prog_compiler_pic_CXX='-fno-common'
14684 *djgpp*)
14685 # DJGPP does not support shared libraries at all
14686 lt_prog_compiler_pic_CXX=
14688 haiku*)
14689 # PIC is the default for Haiku.
14690 # The "-static" flag exists, but is broken.
14691 lt_prog_compiler_static_CXX=
14693 interix[3-9]*)
14694 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14695 # Instead, we relocate shared libraries at runtime.
14697 sysv4*MP*)
14698 if test -d /usr/nec; then
14699 lt_prog_compiler_pic_CXX=-Kconform_pic
14702 hpux*)
14703 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14704 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14705 # sets the default TLS model and affects inlining.
14706 case $host_cpu in
14707 hppa*64*)
14710 lt_prog_compiler_pic_CXX='-fPIC'
14712 esac
14714 *qnx* | *nto*)
14715 # QNX uses GNU C++, but need to define -shared option too, otherwise
14716 # it will coredump.
14717 lt_prog_compiler_pic_CXX='-fPIC -shared'
14720 lt_prog_compiler_pic_CXX='-fPIC'
14722 esac
14723 else
14724 case $host_os in
14725 aix[4-9]*)
14726 # All AIX code is PIC.
14727 if test "$host_cpu" = ia64; then
14728 # AIX 5 now supports IA64 processor
14729 lt_prog_compiler_static_CXX='-Bstatic'
14730 else
14731 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14734 chorus*)
14735 case $cc_basename in
14736 cxch68*)
14737 # Green Hills C++ Compiler
14738 # _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"
14740 esac
14742 dgux*)
14743 case $cc_basename in
14744 ec++*)
14745 lt_prog_compiler_pic_CXX='-KPIC'
14747 ghcx*)
14748 # Green Hills C++ Compiler
14749 lt_prog_compiler_pic_CXX='-pic'
14753 esac
14755 freebsd* | dragonfly*)
14756 # FreeBSD uses GNU C++
14758 hpux9* | hpux10* | hpux11*)
14759 case $cc_basename in
14760 CC*)
14761 lt_prog_compiler_wl_CXX='-Wl,'
14762 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14763 if test "$host_cpu" != ia64; then
14764 lt_prog_compiler_pic_CXX='+Z'
14767 aCC*)
14768 lt_prog_compiler_wl_CXX='-Wl,'
14769 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14770 case $host_cpu in
14771 hppa*64*|ia64*)
14772 # +Z the default
14775 lt_prog_compiler_pic_CXX='+Z'
14777 esac
14781 esac
14783 interix*)
14784 # This is c89, which is MS Visual C++ (no shared libs)
14785 # Anyone wants to do a port?
14787 irix5* | irix6* | nonstopux*)
14788 case $cc_basename in
14789 CC*)
14790 lt_prog_compiler_wl_CXX='-Wl,'
14791 lt_prog_compiler_static_CXX='-non_shared'
14792 # CC pic flag -KPIC is the default.
14796 esac
14798 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14799 case $cc_basename in
14800 KCC*)
14801 # KAI C++ Compiler
14802 lt_prog_compiler_wl_CXX='--backend -Wl,'
14803 lt_prog_compiler_pic_CXX='-fPIC'
14805 ecpc* )
14806 # old Intel C++ for x86_64 which still supported -KPIC.
14807 lt_prog_compiler_wl_CXX='-Wl,'
14808 lt_prog_compiler_pic_CXX='-KPIC'
14809 lt_prog_compiler_static_CXX='-static'
14811 icpc* )
14812 # Intel C++, used to be incompatible with GCC.
14813 # ICC 10 doesn't accept -KPIC any more.
14814 lt_prog_compiler_wl_CXX='-Wl,'
14815 lt_prog_compiler_pic_CXX='-fPIC'
14816 lt_prog_compiler_static_CXX='-static'
14818 pgCC* | pgcpp*)
14819 # Portland Group C++ compiler
14820 lt_prog_compiler_wl_CXX='-Wl,'
14821 lt_prog_compiler_pic_CXX='-fpic'
14822 lt_prog_compiler_static_CXX='-Bstatic'
14824 cxx*)
14825 # Compaq C++
14826 # Make sure the PIC flag is empty. It appears that all Alpha
14827 # Linux and Compaq Tru64 Unix objects are PIC.
14828 lt_prog_compiler_pic_CXX=
14829 lt_prog_compiler_static_CXX='-non_shared'
14831 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14832 # IBM XL 8.0, 9.0 on PPC and BlueGene
14833 lt_prog_compiler_wl_CXX='-Wl,'
14834 lt_prog_compiler_pic_CXX='-qpic'
14835 lt_prog_compiler_static_CXX='-qstaticlink'
14838 case `$CC -V 2>&1 | sed 5q` in
14839 *Sun\ C*)
14840 # Sun C++ 5.9
14841 lt_prog_compiler_pic_CXX='-KPIC'
14842 lt_prog_compiler_static_CXX='-Bstatic'
14843 lt_prog_compiler_wl_CXX='-Qoption ld '
14845 esac
14847 esac
14849 lynxos*)
14851 m88k*)
14853 mvs*)
14854 case $cc_basename in
14855 cxx*)
14856 lt_prog_compiler_pic_CXX='-W c,exportall'
14860 esac
14862 netbsd*)
14864 *qnx* | *nto*)
14865 # QNX uses GNU C++, but need to define -shared option too, otherwise
14866 # it will coredump.
14867 lt_prog_compiler_pic_CXX='-fPIC -shared'
14869 osf3* | osf4* | osf5*)
14870 case $cc_basename in
14871 KCC*)
14872 lt_prog_compiler_wl_CXX='--backend -Wl,'
14874 RCC*)
14875 # Rational C++ 2.4.1
14876 lt_prog_compiler_pic_CXX='-pic'
14878 cxx*)
14879 # Digital/Compaq C++
14880 lt_prog_compiler_wl_CXX='-Wl,'
14881 # Make sure the PIC flag is empty. It appears that all Alpha
14882 # Linux and Compaq Tru64 Unix objects are PIC.
14883 lt_prog_compiler_pic_CXX=
14884 lt_prog_compiler_static_CXX='-non_shared'
14888 esac
14890 psos*)
14892 solaris*)
14893 case $cc_basename in
14894 CC*)
14895 # Sun C++ 4.2, 5.x and Centerline C++
14896 lt_prog_compiler_pic_CXX='-KPIC'
14897 lt_prog_compiler_static_CXX='-Bstatic'
14898 lt_prog_compiler_wl_CXX='-Qoption ld '
14900 gcx*)
14901 # Green Hills C++ Compiler
14902 lt_prog_compiler_pic_CXX='-PIC'
14906 esac
14908 sunos4*)
14909 case $cc_basename in
14910 CC*)
14911 # Sun C++ 4.x
14912 lt_prog_compiler_pic_CXX='-pic'
14913 lt_prog_compiler_static_CXX='-Bstatic'
14915 lcc*)
14916 # Lucid
14917 lt_prog_compiler_pic_CXX='-pic'
14921 esac
14923 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14924 case $cc_basename in
14925 CC*)
14926 lt_prog_compiler_wl_CXX='-Wl,'
14927 lt_prog_compiler_pic_CXX='-KPIC'
14928 lt_prog_compiler_static_CXX='-Bstatic'
14930 esac
14932 tandem*)
14933 case $cc_basename in
14934 NCC*)
14935 # NonStop-UX NCC 3.20
14936 lt_prog_compiler_pic_CXX='-KPIC'
14940 esac
14942 vxworks*)
14945 lt_prog_compiler_can_build_shared_CXX=no
14947 esac
14950 case $host_os in
14951 # For platforms which do not support PIC, -DPIC is meaningless:
14952 *djgpp*)
14953 lt_prog_compiler_pic_CXX=
14956 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14958 esac
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14960 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14965 # Check to make sure the PIC flag actually works.
14967 if test -n "$lt_prog_compiler_pic_CXX"; then
14968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14969 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14970 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14971 $as_echo_n "(cached) " >&6
14972 else
14973 lt_cv_prog_compiler_pic_works_CXX=no
14974 ac_outfile=conftest.$ac_objext
14975 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14976 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14977 # Insert the option either (1) after the last *FLAGS variable, or
14978 # (2) before a word containing "conftest.", or (3) at the end.
14979 # Note that $ac_compile itself does not contain backslashes and begins
14980 # with a dollar sign (not a hyphen), so the echo should work correctly.
14981 # The option is referenced via a variable to avoid confusing sed.
14982 lt_compile=`echo "$ac_compile" | $SED \
14983 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14984 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14985 -e 's:$: $lt_compiler_flag:'`
14986 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14987 (eval "$lt_compile" 2>conftest.err)
14988 ac_status=$?
14989 cat conftest.err >&5
14990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14991 if (exit $ac_status) && test -s "$ac_outfile"; then
14992 # The compiler can only warn and ignore the option if not recognized
14993 # So say no if there are warnings other than the usual output.
14994 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14995 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14996 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14997 lt_cv_prog_compiler_pic_works_CXX=yes
15000 $RM conftest*
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
15004 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
15006 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
15007 case $lt_prog_compiler_pic_CXX in
15008 "" | " "*) ;;
15009 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
15010 esac
15011 else
15012 lt_prog_compiler_pic_CXX=
15013 lt_prog_compiler_can_build_shared_CXX=no
15021 # Check to make sure the static flag actually works.
15023 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15025 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15026 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
15027 $as_echo_n "(cached) " >&6
15028 else
15029 lt_cv_prog_compiler_static_works_CXX=no
15030 save_LDFLAGS="$LDFLAGS"
15031 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15032 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15033 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15034 # The linker can only warn and ignore the option if not recognized
15035 # So say no if there are warnings
15036 if test -s conftest.err; then
15037 # Append any errors to the config.log.
15038 cat conftest.err 1>&5
15039 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15040 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15041 if diff conftest.exp conftest.er2 >/dev/null; then
15042 lt_cv_prog_compiler_static_works_CXX=yes
15044 else
15045 lt_cv_prog_compiler_static_works_CXX=yes
15048 $RM -r conftest*
15049 LDFLAGS="$save_LDFLAGS"
15052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15053 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15055 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15057 else
15058 lt_prog_compiler_static_CXX=
15064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15065 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15066 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15067 $as_echo_n "(cached) " >&6
15068 else
15069 lt_cv_prog_compiler_c_o_CXX=no
15070 $RM -r conftest 2>/dev/null
15071 mkdir conftest
15072 cd conftest
15073 mkdir out
15074 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15076 lt_compiler_flag="-o out/conftest2.$ac_objext"
15077 # Insert the option either (1) after the last *FLAGS variable, or
15078 # (2) before a word containing "conftest.", or (3) at the end.
15079 # Note that $ac_compile itself does not contain backslashes and begins
15080 # with a dollar sign (not a hyphen), so the echo should work correctly.
15081 lt_compile=`echo "$ac_compile" | $SED \
15082 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15083 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15084 -e 's:$: $lt_compiler_flag:'`
15085 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15086 (eval "$lt_compile" 2>out/conftest.err)
15087 ac_status=$?
15088 cat out/conftest.err >&5
15089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15090 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15091 then
15092 # The compiler can only warn and ignore the option if not recognized
15093 # So say no if there are warnings
15094 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15095 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15096 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15097 lt_cv_prog_compiler_c_o_CXX=yes
15100 chmod u+w . 2>&5
15101 $RM conftest*
15102 # SGI C++ compiler will create directory out/ii_files/ for
15103 # template instantiation
15104 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15105 $RM out/* && rmdir out
15106 cd ..
15107 $RM -r conftest
15108 $RM conftest*
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15112 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15117 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15118 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15119 $as_echo_n "(cached) " >&6
15120 else
15121 lt_cv_prog_compiler_c_o_CXX=no
15122 $RM -r conftest 2>/dev/null
15123 mkdir conftest
15124 cd conftest
15125 mkdir out
15126 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15128 lt_compiler_flag="-o out/conftest2.$ac_objext"
15129 # Insert the option either (1) after the last *FLAGS variable, or
15130 # (2) before a word containing "conftest.", or (3) at the end.
15131 # Note that $ac_compile itself does not contain backslashes and begins
15132 # with a dollar sign (not a hyphen), so the echo should work correctly.
15133 lt_compile=`echo "$ac_compile" | $SED \
15134 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15135 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15136 -e 's:$: $lt_compiler_flag:'`
15137 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15138 (eval "$lt_compile" 2>out/conftest.err)
15139 ac_status=$?
15140 cat out/conftest.err >&5
15141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15142 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15143 then
15144 # The compiler can only warn and ignore the option if not recognized
15145 # So say no if there are warnings
15146 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15147 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15148 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15149 lt_cv_prog_compiler_c_o_CXX=yes
15152 chmod u+w . 2>&5
15153 $RM conftest*
15154 # SGI C++ compiler will create directory out/ii_files/ for
15155 # template instantiation
15156 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15157 $RM out/* && rmdir out
15158 cd ..
15159 $RM -r conftest
15160 $RM conftest*
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15164 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15169 hard_links="nottested"
15170 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15171 # do not overwrite the value of need_locks provided by the user
15172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15173 $as_echo_n "checking if we can lock with hard links... " >&6; }
15174 hard_links=yes
15175 $RM conftest*
15176 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15177 touch conftest.a
15178 ln conftest.a conftest.b 2>&5 || hard_links=no
15179 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15181 $as_echo "$hard_links" >&6; }
15182 if test "$hard_links" = no; then
15183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15184 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15185 need_locks=warn
15187 else
15188 need_locks=no
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15194 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15196 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15197 case $host_os in
15198 aix[4-9]*)
15199 # If we're using GNU nm, then we don't want the "-C" option.
15200 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15201 # Also, AIX nm treats weak defined symbols like other global defined
15202 # symbols, whereas GNU nm marks them as "W".
15203 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15204 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'
15205 else
15206 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'
15209 pw32*)
15210 export_symbols_cmds_CXX="$ltdll_cmds"
15212 cygwin* | mingw* | cegcc*)
15213 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'
15216 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15218 esac
15219 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15222 $as_echo "$ld_shlibs_CXX" >&6; }
15223 test "$ld_shlibs_CXX" = no && can_build_shared=no
15225 with_gnu_ld_CXX=$with_gnu_ld
15233 # Do we need to explicitly link libc?
15235 case "x$archive_cmds_need_lc_CXX" in
15236 x|xyes)
15237 # Assume -lc should be added
15238 archive_cmds_need_lc_CXX=yes
15240 if test "$enable_shared" = yes && test "$GCC" = yes; then
15241 case $archive_cmds_CXX in
15242 *'~'*)
15243 # FIXME: we may have to deal with multi-command sequences.
15245 '$CC '*)
15246 # Test whether the compiler implicitly links with -lc since on some
15247 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15248 # to ld, don't add -lc before -lgcc.
15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15250 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15251 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15252 $as_echo_n "(cached) " >&6
15253 else
15254 $RM conftest*
15255 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15258 (eval $ac_compile) 2>&5
15259 ac_status=$?
15260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15261 test $ac_status = 0; } 2>conftest.err; then
15262 soname=conftest
15263 lib=conftest
15264 libobjs=conftest.$ac_objext
15265 deplibs=
15266 wl=$lt_prog_compiler_wl_CXX
15267 pic_flag=$lt_prog_compiler_pic_CXX
15268 compiler_flags=-v
15269 linker_flags=-v
15270 verstring=
15271 output_objdir=.
15272 libname=conftest
15273 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15274 allow_undefined_flag_CXX=
15275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15276 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15277 ac_status=$?
15278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15279 test $ac_status = 0; }
15280 then
15281 lt_cv_archive_cmds_need_lc_CXX=no
15282 else
15283 lt_cv_archive_cmds_need_lc_CXX=yes
15285 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15286 else
15287 cat conftest.err 1>&5
15289 $RM conftest*
15292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15293 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15294 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15296 esac
15299 esac
15364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15365 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15367 library_names_spec=
15368 libname_spec='lib$name'
15369 soname_spec=
15370 shrext_cmds=".so"
15371 postinstall_cmds=
15372 postuninstall_cmds=
15373 finish_cmds=
15374 finish_eval=
15375 shlibpath_var=
15376 shlibpath_overrides_runpath=unknown
15377 version_type=none
15378 dynamic_linker="$host_os ld.so"
15379 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15380 need_lib_prefix=unknown
15381 hardcode_into_libs=no
15383 # when you set need_version to no, make sure it does not cause -set_version
15384 # flags to be left without arguments
15385 need_version=unknown
15387 case $host_os in
15388 aix3*)
15389 version_type=linux
15390 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15391 shlibpath_var=LIBPATH
15393 # AIX 3 has no versioning support, so we append a major version to the name.
15394 soname_spec='${libname}${release}${shared_ext}$major'
15397 aix[4-9]*)
15398 version_type=linux
15399 need_lib_prefix=no
15400 need_version=no
15401 hardcode_into_libs=yes
15402 if test "$host_cpu" = ia64; then
15403 # AIX 5 supports IA64
15404 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15405 shlibpath_var=LD_LIBRARY_PATH
15406 else
15407 # With GCC up to 2.95.x, collect2 would create an import file
15408 # for dependence libraries. The import file would start with
15409 # the line `#! .'. This would cause the generated library to
15410 # depend on `.', always an invalid library. This was fixed in
15411 # development snapshots of GCC prior to 3.0.
15412 case $host_os in
15413 aix4 | aix4.[01] | aix4.[01].*)
15414 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15415 echo ' yes '
15416 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15418 else
15419 can_build_shared=no
15422 esac
15423 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15424 # soname into executable. Probably we can add versioning support to
15425 # collect2, so additional links can be useful in future.
15426 if test "$aix_use_runtimelinking" = yes; then
15427 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15428 # instead of lib<name>.a to let people know that these are not
15429 # typical AIX shared libraries.
15430 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15431 else
15432 # We preserve .a as extension for shared libraries through AIX4.2
15433 # and later when we are not doing run time linking.
15434 library_names_spec='${libname}${release}.a $libname.a'
15435 soname_spec='${libname}${release}${shared_ext}$major'
15437 shlibpath_var=LIBPATH
15441 amigaos*)
15442 case $host_cpu in
15443 powerpc)
15444 # Since July 2007 AmigaOS4 officially supports .so libraries.
15445 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15448 m68k)
15449 library_names_spec='$libname.ixlibrary $libname.a'
15450 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15451 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'
15453 esac
15456 beos*)
15457 library_names_spec='${libname}${shared_ext}'
15458 dynamic_linker="$host_os ld.so"
15459 shlibpath_var=LIBRARY_PATH
15462 bsdi[45]*)
15463 version_type=linux
15464 need_version=no
15465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15466 soname_spec='${libname}${release}${shared_ext}$major'
15467 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15468 shlibpath_var=LD_LIBRARY_PATH
15469 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15470 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15471 # the default ld.so.conf also contains /usr/contrib/lib and
15472 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15473 # libtool to hard-code these into programs
15476 cygwin* | mingw* | pw32* | cegcc*)
15477 version_type=windows
15478 shrext_cmds=".dll"
15479 need_version=no
15480 need_lib_prefix=no
15482 case $GCC,$host_os in
15483 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15484 library_names_spec='$libname.dll.a'
15485 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15486 postinstall_cmds='base_file=`basename \${file}`~
15487 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15488 dldir=$destdir/`dirname \$dlpath`~
15489 test -d \$dldir || mkdir -p \$dldir~
15490 $install_prog $dir/$dlname \$dldir/$dlname~
15491 chmod a+x \$dldir/$dlname~
15492 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15493 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15495 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15496 dlpath=$dir/\$dldll~
15497 $RM \$dlpath'
15498 shlibpath_overrides_runpath=yes
15500 case $host_os in
15501 cygwin*)
15502 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15503 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15506 mingw* | cegcc*)
15507 # MinGW DLLs use traditional 'lib' prefix
15508 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15510 pw32*)
15511 # pw32 DLLs use 'pw' prefix rather than 'lib'
15512 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15514 esac
15518 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15520 esac
15521 dynamic_linker='Win32 ld.exe'
15522 # FIXME: first we should search . and the directory the executable is in
15523 shlibpath_var=PATH
15526 darwin* | rhapsody*)
15527 dynamic_linker="$host_os dyld"
15528 version_type=darwin
15529 need_lib_prefix=no
15530 need_version=no
15531 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15532 soname_spec='${libname}${release}${major}$shared_ext'
15533 shlibpath_overrides_runpath=yes
15534 shlibpath_var=DYLD_LIBRARY_PATH
15535 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15537 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15540 dgux*)
15541 version_type=linux
15542 need_lib_prefix=no
15543 need_version=no
15544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15545 soname_spec='${libname}${release}${shared_ext}$major'
15546 shlibpath_var=LD_LIBRARY_PATH
15549 freebsd* | dragonfly*)
15550 # DragonFly does not have aout. When/if they implement a new
15551 # versioning mechanism, adjust this.
15552 if test -x /usr/bin/objformat; then
15553 objformat=`/usr/bin/objformat`
15554 else
15555 case $host_os in
15556 freebsd[23].*) objformat=aout ;;
15557 *) objformat=elf ;;
15558 esac
15560 version_type=freebsd-$objformat
15561 case $version_type in
15562 freebsd-elf*)
15563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15564 need_version=no
15565 need_lib_prefix=no
15567 freebsd-*)
15568 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15569 need_version=yes
15571 esac
15572 shlibpath_var=LD_LIBRARY_PATH
15573 case $host_os in
15574 freebsd2.*)
15575 shlibpath_overrides_runpath=yes
15577 freebsd3.[01]* | freebsdelf3.[01]*)
15578 shlibpath_overrides_runpath=yes
15579 hardcode_into_libs=yes
15581 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15582 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15583 shlibpath_overrides_runpath=no
15584 hardcode_into_libs=yes
15586 *) # from 4.6 on, and DragonFly
15587 shlibpath_overrides_runpath=yes
15588 hardcode_into_libs=yes
15590 esac
15593 haiku*)
15594 version_type=linux
15595 need_lib_prefix=no
15596 need_version=no
15597 dynamic_linker="$host_os runtime_loader"
15598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15599 soname_spec='${libname}${release}${shared_ext}$major'
15600 shlibpath_var=LIBRARY_PATH
15601 shlibpath_overrides_runpath=yes
15602 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15603 hardcode_into_libs=yes
15606 hpux9* | hpux10* | hpux11*)
15607 # Give a soname corresponding to the major version so that dld.sl refuses to
15608 # link against other versions.
15609 version_type=sunos
15610 need_lib_prefix=no
15611 need_version=no
15612 case $host_cpu in
15613 ia64*)
15614 shrext_cmds='.so'
15615 hardcode_into_libs=yes
15616 dynamic_linker="$host_os dld.so"
15617 shlibpath_var=LD_LIBRARY_PATH
15618 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15619 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15620 soname_spec='${libname}${release}${shared_ext}$major'
15621 if test "X$HPUX_IA64_MODE" = X32; then
15622 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15623 else
15624 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15626 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15628 hppa*64*)
15629 shrext_cmds='.sl'
15630 hardcode_into_libs=yes
15631 dynamic_linker="$host_os dld.sl"
15632 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15633 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15634 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15635 soname_spec='${libname}${release}${shared_ext}$major'
15636 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15637 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15640 shrext_cmds='.sl'
15641 dynamic_linker="$host_os dld.sl"
15642 shlibpath_var=SHLIB_PATH
15643 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15645 soname_spec='${libname}${release}${shared_ext}$major'
15647 esac
15648 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15649 postinstall_cmds='chmod 555 $lib'
15650 # or fails outright, so override atomically:
15651 install_override_mode=555
15654 interix[3-9]*)
15655 version_type=linux
15656 need_lib_prefix=no
15657 need_version=no
15658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15659 soname_spec='${libname}${release}${shared_ext}$major'
15660 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15661 shlibpath_var=LD_LIBRARY_PATH
15662 shlibpath_overrides_runpath=no
15663 hardcode_into_libs=yes
15666 irix5* | irix6* | nonstopux*)
15667 case $host_os in
15668 nonstopux*) version_type=nonstopux ;;
15670 if test "$lt_cv_prog_gnu_ld" = yes; then
15671 version_type=linux
15672 else
15673 version_type=irix
15674 fi ;;
15675 esac
15676 need_lib_prefix=no
15677 need_version=no
15678 soname_spec='${libname}${release}${shared_ext}$major'
15679 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15680 case $host_os in
15681 irix5* | nonstopux*)
15682 libsuff= shlibsuff=
15685 case $LD in # libtool.m4 will add one of these switches to LD
15686 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15687 libsuff= shlibsuff= libmagic=32-bit;;
15688 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15689 libsuff=32 shlibsuff=N32 libmagic=N32;;
15690 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15691 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15692 *) libsuff= shlibsuff= libmagic=never-match;;
15693 esac
15695 esac
15696 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15697 shlibpath_overrides_runpath=no
15698 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15699 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15700 hardcode_into_libs=yes
15703 # No shared lib support for Linux oldld, aout, or coff.
15704 linux*oldld* | linux*aout* | linux*coff*)
15705 dynamic_linker=no
15708 # This must be Linux ELF.
15710 # uclinux* changes (here and below) have been submitted to the libtool
15711 # project, but have not yet been accepted: they are GCC-local changes
15712 # for the time being. (See
15713 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15714 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
15715 version_type=linux
15716 need_lib_prefix=no
15717 need_version=no
15718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15719 soname_spec='${libname}${release}${shared_ext}$major'
15720 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15721 shlibpath_var=LD_LIBRARY_PATH
15722 shlibpath_overrides_runpath=no
15724 # Some binutils ld are patched to set DT_RUNPATH
15725 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15726 $as_echo_n "(cached) " >&6
15727 else
15728 lt_cv_shlibpath_overrides_runpath=no
15729 save_LDFLAGS=$LDFLAGS
15730 save_libdir=$libdir
15731 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15732 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15733 if test x$gcc_no_link = xyes; then
15734 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15737 /* end confdefs.h. */
15740 main ()
15744 return 0;
15746 _ACEOF
15747 if ac_fn_cxx_try_link "$LINENO"; then :
15748 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15749 lt_cv_shlibpath_overrides_runpath=yes
15752 rm -f core conftest.err conftest.$ac_objext \
15753 conftest$ac_exeext conftest.$ac_ext
15754 LDFLAGS=$save_LDFLAGS
15755 libdir=$save_libdir
15759 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15761 # This implies no fast_install, which is unacceptable.
15762 # Some rework will be needed to allow for fast_install
15763 # before this can be enabled.
15764 hardcode_into_libs=yes
15766 # Append ld.so.conf contents to the search path
15767 if test -f /etc/ld.so.conf; then
15768 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' ' '`
15769 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15772 # We used to test for /lib/ld.so.1 and disable shared libraries on
15773 # powerpc, because MkLinux only supported shared libraries with the
15774 # GNU dynamic linker. Since this was broken with cross compilers,
15775 # most powerpc-linux boxes support dynamic linking these days and
15776 # people can always --disable-shared, the test was removed, and we
15777 # assume the GNU/Linux dynamic linker is in use.
15778 dynamic_linker='GNU/Linux ld.so'
15781 netbsd*)
15782 version_type=sunos
15783 need_lib_prefix=no
15784 need_version=no
15785 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15786 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15787 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15788 dynamic_linker='NetBSD (a.out) ld.so'
15789 else
15790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15791 soname_spec='${libname}${release}${shared_ext}$major'
15792 dynamic_linker='NetBSD ld.elf_so'
15794 shlibpath_var=LD_LIBRARY_PATH
15795 shlibpath_overrides_runpath=yes
15796 hardcode_into_libs=yes
15799 newsos6)
15800 version_type=linux
15801 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15802 shlibpath_var=LD_LIBRARY_PATH
15803 shlibpath_overrides_runpath=yes
15806 *nto* | *qnx*)
15807 version_type=qnx
15808 need_lib_prefix=no
15809 need_version=no
15810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15811 soname_spec='${libname}${release}${shared_ext}$major'
15812 shlibpath_var=LD_LIBRARY_PATH
15813 shlibpath_overrides_runpath=no
15814 hardcode_into_libs=yes
15815 dynamic_linker='ldqnx.so'
15818 openbsd*)
15819 version_type=sunos
15820 sys_lib_dlsearch_path_spec="/usr/lib"
15821 need_lib_prefix=no
15822 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15823 case $host_os in
15824 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15825 *) need_version=no ;;
15826 esac
15827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15828 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15829 shlibpath_var=LD_LIBRARY_PATH
15830 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15831 case $host_os in
15832 openbsd2.[89] | openbsd2.[89].*)
15833 shlibpath_overrides_runpath=no
15836 shlibpath_overrides_runpath=yes
15838 esac
15839 else
15840 shlibpath_overrides_runpath=yes
15844 os2*)
15845 libname_spec='$name'
15846 shrext_cmds=".dll"
15847 need_lib_prefix=no
15848 library_names_spec='$libname${shared_ext} $libname.a'
15849 dynamic_linker='OS/2 ld.exe'
15850 shlibpath_var=LIBPATH
15853 osf3* | osf4* | osf5*)
15854 version_type=osf
15855 need_lib_prefix=no
15856 need_version=no
15857 soname_spec='${libname}${release}${shared_ext}$major'
15858 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15859 shlibpath_var=LD_LIBRARY_PATH
15860 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15861 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15864 rdos*)
15865 dynamic_linker=no
15868 solaris*)
15869 version_type=linux
15870 need_lib_prefix=no
15871 need_version=no
15872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15873 soname_spec='${libname}${release}${shared_ext}$major'
15874 shlibpath_var=LD_LIBRARY_PATH
15875 shlibpath_overrides_runpath=yes
15876 hardcode_into_libs=yes
15877 # ldd complains unless libraries are executable
15878 postinstall_cmds='chmod +x $lib'
15881 sunos4*)
15882 version_type=sunos
15883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15884 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15885 shlibpath_var=LD_LIBRARY_PATH
15886 shlibpath_overrides_runpath=yes
15887 if test "$with_gnu_ld" = yes; then
15888 need_lib_prefix=no
15890 need_version=yes
15893 sysv4 | sysv4.3*)
15894 version_type=linux
15895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15896 soname_spec='${libname}${release}${shared_ext}$major'
15897 shlibpath_var=LD_LIBRARY_PATH
15898 case $host_vendor in
15899 sni)
15900 shlibpath_overrides_runpath=no
15901 need_lib_prefix=no
15902 runpath_var=LD_RUN_PATH
15904 siemens)
15905 need_lib_prefix=no
15907 motorola)
15908 need_lib_prefix=no
15909 need_version=no
15910 shlibpath_overrides_runpath=no
15911 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15913 esac
15916 sysv4*MP*)
15917 if test -d /usr/nec ;then
15918 version_type=linux
15919 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15920 soname_spec='$libname${shared_ext}.$major'
15921 shlibpath_var=LD_LIBRARY_PATH
15925 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15926 version_type=freebsd-elf
15927 need_lib_prefix=no
15928 need_version=no
15929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15930 soname_spec='${libname}${release}${shared_ext}$major'
15931 shlibpath_var=LD_LIBRARY_PATH
15932 shlibpath_overrides_runpath=yes
15933 hardcode_into_libs=yes
15934 if test "$with_gnu_ld" = yes; then
15935 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15936 else
15937 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15938 case $host_os in
15939 sco3.2v5*)
15940 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15942 esac
15944 sys_lib_dlsearch_path_spec='/usr/lib'
15947 tpf*)
15948 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15949 version_type=linux
15950 need_lib_prefix=no
15951 need_version=no
15952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15953 shlibpath_var=LD_LIBRARY_PATH
15954 shlibpath_overrides_runpath=no
15955 hardcode_into_libs=yes
15958 uts4*)
15959 version_type=linux
15960 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15961 soname_spec='${libname}${release}${shared_ext}$major'
15962 shlibpath_var=LD_LIBRARY_PATH
15965 # Shared libraries for VwWorks, >= 7 only at this stage
15966 # and (fpic) still incompatible with "large" code models
15967 # in a few configurations. Only for RTP mode in any case,
15968 # and upon explicit request at configure time.
15969 vxworks7*)
15970 dynamic_linker=no
15971 case ${with_multisubdir}-${enable_shared} in
15972 *large*)
15974 *mrtp*-yes)
15975 version_type=linux
15976 need_lib_prefix=no
15977 need_version=no
15978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15979 soname_spec='${libname}${release}${shared_ext}$major'
15980 dynamic_linker="$host_os module_loader"
15982 esac
15985 dynamic_linker=no
15987 esac
15988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15989 $as_echo "$dynamic_linker" >&6; }
15990 test "$dynamic_linker" = no && can_build_shared=no
15992 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15993 if test "$GCC" = yes; then
15994 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15997 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15998 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
16000 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
16001 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16042 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16043 hardcode_action_CXX=
16044 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16045 test -n "$runpath_var_CXX" ||
16046 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16048 # We can hardcode non-existent directories.
16049 if test "$hardcode_direct_CXX" != no &&
16050 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16051 # have to relink, otherwise we might link with an installed library
16052 # when we should be linking with a yet-to-be-installed one
16053 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16054 test "$hardcode_minus_L_CXX" != no; then
16055 # Linking always hardcodes the temporary library directory.
16056 hardcode_action_CXX=relink
16057 else
16058 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16059 hardcode_action_CXX=immediate
16061 else
16062 # We cannot hardcode anything, or else we can only hardcode existing
16063 # directories.
16064 hardcode_action_CXX=unsupported
16066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16067 $as_echo "$hardcode_action_CXX" >&6; }
16069 if test "$hardcode_action_CXX" = relink ||
16070 test "$inherit_rpath_CXX" = yes; then
16071 # Fast installation is not supported
16072 enable_fast_install=no
16073 elif test "$shlibpath_overrides_runpath" = yes ||
16074 test "$enable_shared" = no; then
16075 # Fast installation is not necessary
16076 enable_fast_install=needless
16085 fi # test -n "$compiler"
16087 CC=$lt_save_CC
16088 LDCXX=$LD
16089 LD=$lt_save_LD
16090 GCC=$lt_save_GCC
16091 with_gnu_ld=$lt_save_with_gnu_ld
16092 lt_cv_path_LDCXX=$lt_cv_path_LD
16093 lt_cv_path_LD=$lt_save_path_LD
16094 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16095 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16096 fi # test "$_lt_caught_CXX_error" != yes
16098 ac_ext=c
16099 ac_cpp='$CPP $CPPFLAGS'
16100 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16101 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16102 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16116 ac_config_commands="$ac_config_commands libtool"
16121 # Only expand once:
16127 if test "${multilib}" = "yes"; then
16128 multilib_arg="--enable-multilib"
16129 else
16130 multilib_arg=
16133 ac_fn_c_check_type "$LINENO" "struct timezone" "ac_cv_type_struct_timezone" "$ac_includes_default"
16134 if test "x$ac_cv_type_struct_timezone" = xyes; then :
16136 cat >>confdefs.h <<_ACEOF
16137 #define HAVE_STRUCT_TIMEZONE 1
16138 _ACEOF
16142 ac_fn_c_check_type "$LINENO" "struct stat" "ac_cv_type_struct_stat" "$ac_includes_default"
16143 if test "x$ac_cv_type_struct_stat" = xyes; then :
16145 cat >>confdefs.h <<_ACEOF
16146 #define HAVE_STRUCT_STAT 1
16147 _ACEOF
16151 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
16152 if test "x$ac_cv_type_struct_timespec" = xyes; then :
16154 cat >>confdefs.h <<_ACEOF
16155 #define HAVE_STRUCT_TIMESPEC 1
16156 _ACEOF
16160 ac_fn_c_check_type "$LINENO" "struct timeval" "ac_cv_type_struct_timeval" "$ac_includes_default"
16161 if test "x$ac_cv_type_struct_timeval" = xyes; then :
16163 cat >>confdefs.h <<_ACEOF
16164 #define HAVE_STRUCT_TIMEVAL 1
16165 _ACEOF
16169 ac_fn_c_check_type "$LINENO" "struct tm" "ac_cv_type_struct_tm" "$ac_includes_default"
16170 if test "x$ac_cv_type_struct_tm" = xyes; then :
16172 cat >>confdefs.h <<_ACEOF
16173 #define HAVE_STRUCT_TM 1
16174 _ACEOF
16180 # Check if struct tm contains the tm_gmtoff field.
16181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
16182 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
16183 if ${ac_cv_struct_tm_gmtoff+:} false; then :
16184 $as_echo_n "(cached) " >&6
16185 else
16186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16187 /* end confdefs.h. */
16189 #include <time.h>
16192 main ()
16195 struct tm tm;
16196 tm.tm_gmtoff = 1;
16199 return 0;
16201 _ACEOF
16202 if ac_fn_c_try_compile "$LINENO"; then :
16203 ac_cv_struct_tm_gmtoff=yes
16204 else
16205 ac_cv_struct_tm_gmtoff=no
16208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_gmtoff" >&5
16212 $as_echo "$ac_cv_struct_tm_gmtoff" >&6; }
16214 if (test "$ac_cv_struct_tm_gmtoff" = "yes"); then
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end detects struct tm with the tm_gmtoff field." >&5
16216 $as_echo_n "checking m2 front end detects struct tm with the tm_gmtoff field.... " >&6; }
16218 $as_echo "#define HAVE_TM_TM_GMTOFF 1" >>confdefs.h
16222 ac_ext=c
16223 ac_cpp='$CPP $CPPFLAGS'
16224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16228 # Check the compiler.
16229 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
16230 # We must force CC to /not/ be precious variables; otherwise
16231 # the wrong, non-multilib-adjusted value will be used in multilibs.
16232 # As a side effect, we have to subst CFLAGS ourselves.
16236 ac_ext=c
16237 ac_cpp='$CPP $CPPFLAGS'
16238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16241 if test -n "$ac_tool_prefix"; then
16242 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16243 set dummy ${ac_tool_prefix}gcc; ac_word=$2
16244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16245 $as_echo_n "checking for $ac_word... " >&6; }
16246 if ${ac_cv_prog_CC+:} false; then :
16247 $as_echo_n "(cached) " >&6
16248 else
16249 if test -n "$CC"; then
16250 ac_cv_prog_CC="$CC" # Let the user override the test.
16251 else
16252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16253 for as_dir in $PATH
16255 IFS=$as_save_IFS
16256 test -z "$as_dir" && as_dir=.
16257 for ac_exec_ext in '' $ac_executable_extensions; do
16258 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16259 ac_cv_prog_CC="${ac_tool_prefix}gcc"
16260 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16261 break 2
16263 done
16264 done
16265 IFS=$as_save_IFS
16269 CC=$ac_cv_prog_CC
16270 if test -n "$CC"; then
16271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16272 $as_echo "$CC" >&6; }
16273 else
16274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16275 $as_echo "no" >&6; }
16280 if test -z "$ac_cv_prog_CC"; then
16281 ac_ct_CC=$CC
16282 # Extract the first word of "gcc", so it can be a program name with args.
16283 set dummy gcc; ac_word=$2
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16285 $as_echo_n "checking for $ac_word... " >&6; }
16286 if ${ac_cv_prog_ac_ct_CC+:} false; then :
16287 $as_echo_n "(cached) " >&6
16288 else
16289 if test -n "$ac_ct_CC"; then
16290 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16291 else
16292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16293 for as_dir in $PATH
16295 IFS=$as_save_IFS
16296 test -z "$as_dir" && as_dir=.
16297 for ac_exec_ext in '' $ac_executable_extensions; do
16298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16299 ac_cv_prog_ac_ct_CC="gcc"
16300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16301 break 2
16303 done
16304 done
16305 IFS=$as_save_IFS
16309 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16310 if test -n "$ac_ct_CC"; then
16311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16312 $as_echo "$ac_ct_CC" >&6; }
16313 else
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16315 $as_echo "no" >&6; }
16318 if test "x$ac_ct_CC" = x; then
16319 CC=""
16320 else
16321 case $cross_compiling:$ac_tool_warned in
16322 yes:)
16323 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16324 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16325 ac_tool_warned=yes ;;
16326 esac
16327 CC=$ac_ct_CC
16329 else
16330 CC="$ac_cv_prog_CC"
16333 if test -z "$CC"; then
16334 if test -n "$ac_tool_prefix"; then
16335 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16336 set dummy ${ac_tool_prefix}cc; ac_word=$2
16337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16338 $as_echo_n "checking for $ac_word... " >&6; }
16339 if ${ac_cv_prog_CC+:} false; then :
16340 $as_echo_n "(cached) " >&6
16341 else
16342 if test -n "$CC"; then
16343 ac_cv_prog_CC="$CC" # Let the user override the test.
16344 else
16345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16346 for as_dir in $PATH
16348 IFS=$as_save_IFS
16349 test -z "$as_dir" && as_dir=.
16350 for ac_exec_ext in '' $ac_executable_extensions; do
16351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16352 ac_cv_prog_CC="${ac_tool_prefix}cc"
16353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16354 break 2
16356 done
16357 done
16358 IFS=$as_save_IFS
16362 CC=$ac_cv_prog_CC
16363 if test -n "$CC"; then
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16365 $as_echo "$CC" >&6; }
16366 else
16367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16368 $as_echo "no" >&6; }
16374 if test -z "$CC"; then
16375 # Extract the first word of "cc", so it can be a program name with args.
16376 set dummy cc; ac_word=$2
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16378 $as_echo_n "checking for $ac_word... " >&6; }
16379 if ${ac_cv_prog_CC+:} false; then :
16380 $as_echo_n "(cached) " >&6
16381 else
16382 if test -n "$CC"; then
16383 ac_cv_prog_CC="$CC" # Let the user override the test.
16384 else
16385 ac_prog_rejected=no
16386 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16387 for as_dir in $PATH
16389 IFS=$as_save_IFS
16390 test -z "$as_dir" && as_dir=.
16391 for ac_exec_ext in '' $ac_executable_extensions; do
16392 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16393 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16394 ac_prog_rejected=yes
16395 continue
16397 ac_cv_prog_CC="cc"
16398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16399 break 2
16401 done
16402 done
16403 IFS=$as_save_IFS
16405 if test $ac_prog_rejected = yes; then
16406 # We found a bogon in the path, so make sure we never use it.
16407 set dummy $ac_cv_prog_CC
16408 shift
16409 if test $# != 0; then
16410 # We chose a different compiler from the bogus one.
16411 # However, it has the same basename, so the bogon will be chosen
16412 # first if we set CC to just the basename; use the full file name.
16413 shift
16414 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16419 CC=$ac_cv_prog_CC
16420 if test -n "$CC"; then
16421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16422 $as_echo "$CC" >&6; }
16423 else
16424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16425 $as_echo "no" >&6; }
16430 if test -z "$CC"; then
16431 if test -n "$ac_tool_prefix"; then
16432 for ac_prog in cl.exe
16434 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16435 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16437 $as_echo_n "checking for $ac_word... " >&6; }
16438 if ${ac_cv_prog_CC+:} false; then :
16439 $as_echo_n "(cached) " >&6
16440 else
16441 if test -n "$CC"; then
16442 ac_cv_prog_CC="$CC" # Let the user override the test.
16443 else
16444 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16445 for as_dir in $PATH
16447 IFS=$as_save_IFS
16448 test -z "$as_dir" && as_dir=.
16449 for ac_exec_ext in '' $ac_executable_extensions; do
16450 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16451 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16452 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16453 break 2
16455 done
16456 done
16457 IFS=$as_save_IFS
16461 CC=$ac_cv_prog_CC
16462 if test -n "$CC"; then
16463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16464 $as_echo "$CC" >&6; }
16465 else
16466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16467 $as_echo "no" >&6; }
16471 test -n "$CC" && break
16472 done
16474 if test -z "$CC"; then
16475 ac_ct_CC=$CC
16476 for ac_prog in cl.exe
16478 # Extract the first word of "$ac_prog", so it can be a program name with args.
16479 set dummy $ac_prog; ac_word=$2
16480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16481 $as_echo_n "checking for $ac_word... " >&6; }
16482 if ${ac_cv_prog_ac_ct_CC+:} false; then :
16483 $as_echo_n "(cached) " >&6
16484 else
16485 if test -n "$ac_ct_CC"; then
16486 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16487 else
16488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16489 for as_dir in $PATH
16491 IFS=$as_save_IFS
16492 test -z "$as_dir" && as_dir=.
16493 for ac_exec_ext in '' $ac_executable_extensions; do
16494 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16495 ac_cv_prog_ac_ct_CC="$ac_prog"
16496 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16497 break 2
16499 done
16500 done
16501 IFS=$as_save_IFS
16505 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16506 if test -n "$ac_ct_CC"; then
16507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16508 $as_echo "$ac_ct_CC" >&6; }
16509 else
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16511 $as_echo "no" >&6; }
16515 test -n "$ac_ct_CC" && break
16516 done
16518 if test "x$ac_ct_CC" = x; then
16519 CC=""
16520 else
16521 case $cross_compiling:$ac_tool_warned in
16522 yes:)
16523 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16524 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16525 ac_tool_warned=yes ;;
16526 esac
16527 CC=$ac_ct_CC
16534 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16535 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16536 as_fn_error $? "no acceptable C compiler found in \$PATH
16537 See \`config.log' for more details" "$LINENO" 5; }
16539 # Provide some information about the compiler.
16540 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
16541 set X $ac_compile
16542 ac_compiler=$2
16543 for ac_option in --version -v -V -qversion; do
16544 { { ac_try="$ac_compiler $ac_option >&5"
16545 case "(($ac_try" in
16546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16547 *) ac_try_echo=$ac_try;;
16548 esac
16549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16550 $as_echo "$ac_try_echo"; } >&5
16551 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16552 ac_status=$?
16553 if test -s conftest.err; then
16554 sed '10a\
16555 ... rest of stderr output deleted ...
16556 10q' conftest.err >conftest.er1
16557 cat conftest.er1 >&5
16559 rm -f conftest.er1 conftest.err
16560 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16561 test $ac_status = 0; }
16562 done
16564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
16565 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
16566 if ${ac_cv_c_compiler_gnu+:} false; then :
16567 $as_echo_n "(cached) " >&6
16568 else
16569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16570 /* end confdefs.h. */
16573 main ()
16575 #ifndef __GNUC__
16576 choke me
16577 #endif
16580 return 0;
16582 _ACEOF
16583 if ac_fn_c_try_compile "$LINENO"; then :
16584 ac_compiler_gnu=yes
16585 else
16586 ac_compiler_gnu=no
16588 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16589 ac_cv_c_compiler_gnu=$ac_compiler_gnu
16592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
16593 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
16594 if test $ac_compiler_gnu = yes; then
16595 GCC=yes
16596 else
16597 GCC=
16599 ac_test_CFLAGS=${CFLAGS+set}
16600 ac_save_CFLAGS=$CFLAGS
16601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
16602 $as_echo_n "checking whether $CC accepts -g... " >&6; }
16603 if ${ac_cv_prog_cc_g+:} false; then :
16604 $as_echo_n "(cached) " >&6
16605 else
16606 ac_save_c_werror_flag=$ac_c_werror_flag
16607 ac_c_werror_flag=yes
16608 ac_cv_prog_cc_g=no
16609 CFLAGS="-g"
16610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16611 /* end confdefs.h. */
16614 main ()
16618 return 0;
16620 _ACEOF
16621 if ac_fn_c_try_compile "$LINENO"; then :
16622 ac_cv_prog_cc_g=yes
16623 else
16624 CFLAGS=""
16625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16626 /* end confdefs.h. */
16629 main ()
16633 return 0;
16635 _ACEOF
16636 if ac_fn_c_try_compile "$LINENO"; then :
16638 else
16639 ac_c_werror_flag=$ac_save_c_werror_flag
16640 CFLAGS="-g"
16641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16642 /* end confdefs.h. */
16645 main ()
16649 return 0;
16651 _ACEOF
16652 if ac_fn_c_try_compile "$LINENO"; then :
16653 ac_cv_prog_cc_g=yes
16655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16659 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16660 ac_c_werror_flag=$ac_save_c_werror_flag
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
16663 $as_echo "$ac_cv_prog_cc_g" >&6; }
16664 if test "$ac_test_CFLAGS" = set; then
16665 CFLAGS=$ac_save_CFLAGS
16666 elif test $ac_cv_prog_cc_g = yes; then
16667 if test "$GCC" = yes; then
16668 CFLAGS="-g -O2"
16669 else
16670 CFLAGS="-g"
16672 else
16673 if test "$GCC" = yes; then
16674 CFLAGS="-O2"
16675 else
16676 CFLAGS=
16679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
16680 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
16681 if ${ac_cv_prog_cc_c89+:} false; then :
16682 $as_echo_n "(cached) " >&6
16683 else
16684 ac_cv_prog_cc_c89=no
16685 ac_save_CC=$CC
16686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16687 /* end confdefs.h. */
16688 #include <stdarg.h>
16689 #include <stdio.h>
16690 struct stat;
16691 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
16692 struct buf { int x; };
16693 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16694 static char *e (p, i)
16695 char **p;
16696 int i;
16698 return p[i];
16700 static char *f (char * (*g) (char **, int), char **p, ...)
16702 char *s;
16703 va_list v;
16704 va_start (v,p);
16705 s = g (p, va_arg (v,int));
16706 va_end (v);
16707 return s;
16710 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
16711 function prototypes and stuff, but not '\xHH' hex character constants.
16712 These don't provoke an error unfortunately, instead are silently treated
16713 as 'x'. The following induces an error, until -std is added to get
16714 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
16715 array size at least. It's necessary to write '\x00'==0 to get something
16716 that's true only with -std. */
16717 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16719 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16720 inside strings and character constants. */
16721 #define FOO(x) 'x'
16722 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16724 int test (int i, double x);
16725 struct s1 {int (*f) (int a);};
16726 struct s2 {int (*f) (double a);};
16727 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16728 int argc;
16729 char **argv;
16731 main ()
16733 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
16735 return 0;
16737 _ACEOF
16738 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16739 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16741 CC="$ac_save_CC $ac_arg"
16742 if ac_fn_c_try_compile "$LINENO"; then :
16743 ac_cv_prog_cc_c89=$ac_arg
16745 rm -f core conftest.err conftest.$ac_objext
16746 test "x$ac_cv_prog_cc_c89" != "xno" && break
16747 done
16748 rm -f conftest.$ac_ext
16749 CC=$ac_save_CC
16752 # AC_CACHE_VAL
16753 case "x$ac_cv_prog_cc_c89" in
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16756 $as_echo "none needed" >&6; } ;;
16757 xno)
16758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16759 $as_echo "unsupported" >&6; } ;;
16761 CC="$CC $ac_cv_prog_cc_c89"
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
16763 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
16764 esac
16765 if test "x$ac_cv_prog_cc_c89" != xno; then :
16769 ac_ext=c
16770 ac_cpp='$CPP $CPPFLAGS'
16771 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16772 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16773 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16775 ac_ext=c
16776 ac_cpp='$CPP $CPPFLAGS'
16777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
16781 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
16782 if ${am_cv_prog_cc_c_o+:} false; then :
16783 $as_echo_n "(cached) " >&6
16784 else
16785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16786 /* end confdefs.h. */
16789 main ()
16793 return 0;
16795 _ACEOF
16796 # Make sure it works both with $CC and with simple cc.
16797 # Following AC_PROG_CC_C_O, we do the test twice because some
16798 # compilers refuse to overwrite an existing .o file with -o,
16799 # though they will create one.
16800 am_cv_prog_cc_c_o=yes
16801 for am_i in 1 2; do
16802 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
16803 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
16804 ac_status=$?
16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16806 (exit $ac_status); } \
16807 && test -f conftest2.$ac_objext; then
16808 : OK
16809 else
16810 am_cv_prog_cc_c_o=no
16811 break
16813 done
16814 rm -f core conftest*
16815 unset am_i
16817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
16818 $as_echo "$am_cv_prog_cc_c_o" >&6; }
16819 if test "$am_cv_prog_cc_c_o" != yes; then
16820 # Losing compiler, so override with the script.
16821 # FIXME: It is wrong to rewrite CC.
16822 # But if we don't then we get into trouble of one sort or another.
16823 # A longer-term fix would be to have automake use am__CC in this case,
16824 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16825 CC="$am_aux_dir/compile $CC"
16827 ac_ext=c
16828 ac_cpp='$CPP $CPPFLAGS'
16829 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16830 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16831 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for access" >&5
16844 $as_echo_n "checking m2 front end checking c library for access... " >&6; }
16845 if test x$gcc_no_link != xyes; then
16846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for access in -lc" >&5
16847 $as_echo_n "checking for access in -lc... " >&6; }
16848 if ${ac_cv_lib_c_access+:} false; then :
16849 $as_echo_n "(cached) " >&6
16850 else
16851 ac_check_lib_save_LIBS=$LIBS
16852 LIBS="-lc $LIBS"
16853 if test x$gcc_no_link = xyes; then
16854 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16857 /* end confdefs.h. */
16859 /* Override any GCC internal prototype to avoid an error.
16860 Use char because int might match the return type of a GCC
16861 builtin and then its argument prototype would still apply. */
16862 #ifdef __cplusplus
16863 extern "C"
16864 #endif
16865 char access ();
16867 main ()
16869 return access ();
16871 return 0;
16873 _ACEOF
16874 if ac_fn_c_try_link "$LINENO"; then :
16875 ac_cv_lib_c_access=yes
16876 else
16877 ac_cv_lib_c_access=no
16879 rm -f core conftest.err conftest.$ac_objext \
16880 conftest$ac_exeext conftest.$ac_ext
16881 LIBS=$ac_check_lib_save_LIBS
16883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_access" >&5
16884 $as_echo "$ac_cv_lib_c_access" >&6; }
16885 if test "x$ac_cv_lib_c_access" = xyes; then :
16887 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
16889 else
16891 $as_echo "#undef HAVE_ACCESS" >>confdefs.h
16895 else
16896 if test "x$ac_cv_lib_c_access" = xyes; then
16898 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
16900 elif test "x$ac_cv_func_access" = xyes; then
16902 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
16904 else
16906 $as_echo "#undef HAVE_ACCESS" >>confdefs.h
16912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for brk" >&5
16913 $as_echo_n "checking m2 front end checking c library for brk... " >&6; }
16914 if test x$gcc_no_link != xyes; then
16915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for brk in -lc" >&5
16916 $as_echo_n "checking for brk in -lc... " >&6; }
16917 if ${ac_cv_lib_c_brk+:} false; then :
16918 $as_echo_n "(cached) " >&6
16919 else
16920 ac_check_lib_save_LIBS=$LIBS
16921 LIBS="-lc $LIBS"
16922 if test x$gcc_no_link = xyes; then
16923 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16926 /* end confdefs.h. */
16928 /* Override any GCC internal prototype to avoid an error.
16929 Use char because int might match the return type of a GCC
16930 builtin and then its argument prototype would still apply. */
16931 #ifdef __cplusplus
16932 extern "C"
16933 #endif
16934 char brk ();
16936 main ()
16938 return brk ();
16940 return 0;
16942 _ACEOF
16943 if ac_fn_c_try_link "$LINENO"; then :
16944 ac_cv_lib_c_brk=yes
16945 else
16946 ac_cv_lib_c_brk=no
16948 rm -f core conftest.err conftest.$ac_objext \
16949 conftest$ac_exeext conftest.$ac_ext
16950 LIBS=$ac_check_lib_save_LIBS
16952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_brk" >&5
16953 $as_echo "$ac_cv_lib_c_brk" >&6; }
16954 if test "x$ac_cv_lib_c_brk" = xyes; then :
16956 $as_echo "#define HAVE_BRK 1" >>confdefs.h
16958 else
16960 $as_echo "#undef HAVE_BRK" >>confdefs.h
16964 else
16965 if test "x$ac_cv_lib_c_brk" = xyes; then
16967 $as_echo "#define HAVE_BRK 1" >>confdefs.h
16969 elif test "x$ac_cv_func_brk" = xyes; then
16971 $as_echo "#define HAVE_BRK 1" >>confdefs.h
16973 else
16975 $as_echo "#undef HAVE_BRK" >>confdefs.h
16981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for cfmakeraw" >&5
16982 $as_echo_n "checking m2 front end checking c library for cfmakeraw... " >&6; }
16983 if test x$gcc_no_link != xyes; then
16984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cfmakeraw in -lc" >&5
16985 $as_echo_n "checking for cfmakeraw in -lc... " >&6; }
16986 if ${ac_cv_lib_c_cfmakeraw+:} false; then :
16987 $as_echo_n "(cached) " >&6
16988 else
16989 ac_check_lib_save_LIBS=$LIBS
16990 LIBS="-lc $LIBS"
16991 if test x$gcc_no_link = xyes; then
16992 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16995 /* end confdefs.h. */
16997 /* Override any GCC internal prototype to avoid an error.
16998 Use char because int might match the return type of a GCC
16999 builtin and then its argument prototype would still apply. */
17000 #ifdef __cplusplus
17001 extern "C"
17002 #endif
17003 char cfmakeraw ();
17005 main ()
17007 return cfmakeraw ();
17009 return 0;
17011 _ACEOF
17012 if ac_fn_c_try_link "$LINENO"; then :
17013 ac_cv_lib_c_cfmakeraw=yes
17014 else
17015 ac_cv_lib_c_cfmakeraw=no
17017 rm -f core conftest.err conftest.$ac_objext \
17018 conftest$ac_exeext conftest.$ac_ext
17019 LIBS=$ac_check_lib_save_LIBS
17021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_cfmakeraw" >&5
17022 $as_echo "$ac_cv_lib_c_cfmakeraw" >&6; }
17023 if test "x$ac_cv_lib_c_cfmakeraw" = xyes; then :
17025 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
17027 else
17029 $as_echo "#undef HAVE_CFMAKERAW" >>confdefs.h
17033 else
17034 if test "x$ac_cv_lib_c_cfmakeraw" = xyes; then
17036 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
17038 elif test "x$ac_cv_func_cfmakeraw" = xyes; then
17040 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
17042 else
17044 $as_echo "#undef HAVE_CFMAKERAW" >>confdefs.h
17050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for clock_gettime" >&5
17051 $as_echo_n "checking m2 front end checking c library for clock_gettime... " >&6; }
17052 if test x$gcc_no_link != xyes; then
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
17054 $as_echo_n "checking for clock_gettime in -lc... " >&6; }
17055 if ${ac_cv_lib_c_clock_gettime+:} false; then :
17056 $as_echo_n "(cached) " >&6
17057 else
17058 ac_check_lib_save_LIBS=$LIBS
17059 LIBS="-lc $LIBS"
17060 if test x$gcc_no_link = xyes; then
17061 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17064 /* end confdefs.h. */
17066 /* Override any GCC internal prototype to avoid an error.
17067 Use char because int might match the return type of a GCC
17068 builtin and then its argument prototype would still apply. */
17069 #ifdef __cplusplus
17070 extern "C"
17071 #endif
17072 char clock_gettime ();
17074 main ()
17076 return clock_gettime ();
17078 return 0;
17080 _ACEOF
17081 if ac_fn_c_try_link "$LINENO"; then :
17082 ac_cv_lib_c_clock_gettime=yes
17083 else
17084 ac_cv_lib_c_clock_gettime=no
17086 rm -f core conftest.err conftest.$ac_objext \
17087 conftest$ac_exeext conftest.$ac_ext
17088 LIBS=$ac_check_lib_save_LIBS
17090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
17091 $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
17092 if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
17094 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
17096 else
17098 $as_echo "#undef HAVE_CLOCK_GETTIME" >>confdefs.h
17102 else
17103 if test "x$ac_cv_lib_c_clock_gettime" = xyes; then
17105 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
17107 elif test "x$ac_cv_func_clock_gettime" = xyes; then
17109 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
17111 else
17113 $as_echo "#undef HAVE_CLOCK_GETTIME" >>confdefs.h
17119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for clock_settime" >&5
17120 $as_echo_n "checking m2 front end checking c library for clock_settime... " >&6; }
17121 if test x$gcc_no_link != xyes; then
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lc" >&5
17123 $as_echo_n "checking for clock_settime in -lc... " >&6; }
17124 if ${ac_cv_lib_c_clock_settime+:} false; then :
17125 $as_echo_n "(cached) " >&6
17126 else
17127 ac_check_lib_save_LIBS=$LIBS
17128 LIBS="-lc $LIBS"
17129 if test x$gcc_no_link = xyes; then
17130 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17133 /* end confdefs.h. */
17135 /* Override any GCC internal prototype to avoid an error.
17136 Use char because int might match the return type of a GCC
17137 builtin and then its argument prototype would still apply. */
17138 #ifdef __cplusplus
17139 extern "C"
17140 #endif
17141 char clock_settime ();
17143 main ()
17145 return clock_settime ();
17147 return 0;
17149 _ACEOF
17150 if ac_fn_c_try_link "$LINENO"; then :
17151 ac_cv_lib_c_clock_settime=yes
17152 else
17153 ac_cv_lib_c_clock_settime=no
17155 rm -f core conftest.err conftest.$ac_objext \
17156 conftest$ac_exeext conftest.$ac_ext
17157 LIBS=$ac_check_lib_save_LIBS
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_settime" >&5
17160 $as_echo "$ac_cv_lib_c_clock_settime" >&6; }
17161 if test "x$ac_cv_lib_c_clock_settime" = xyes; then :
17163 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
17165 else
17167 $as_echo "#undef HAVE_CLOCK_SETTIME" >>confdefs.h
17171 else
17172 if test "x$ac_cv_lib_c_clock_settime" = xyes; then
17174 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
17176 elif test "x$ac_cv_func_clock_settime" = xyes; then
17178 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
17180 else
17182 $as_echo "#undef HAVE_CLOCK_SETTIME" >>confdefs.h
17188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for close" >&5
17189 $as_echo_n "checking m2 front end checking c library for close... " >&6; }
17190 if test x$gcc_no_link != xyes; then
17191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for close in -lc" >&5
17192 $as_echo_n "checking for close in -lc... " >&6; }
17193 if ${ac_cv_lib_c_close+:} false; then :
17194 $as_echo_n "(cached) " >&6
17195 else
17196 ac_check_lib_save_LIBS=$LIBS
17197 LIBS="-lc $LIBS"
17198 if test x$gcc_no_link = xyes; then
17199 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17202 /* end confdefs.h. */
17204 /* Override any GCC internal prototype to avoid an error.
17205 Use char because int might match the return type of a GCC
17206 builtin and then its argument prototype would still apply. */
17207 #ifdef __cplusplus
17208 extern "C"
17209 #endif
17210 char close ();
17212 main ()
17214 return close ();
17216 return 0;
17218 _ACEOF
17219 if ac_fn_c_try_link "$LINENO"; then :
17220 ac_cv_lib_c_close=yes
17221 else
17222 ac_cv_lib_c_close=no
17224 rm -f core conftest.err conftest.$ac_objext \
17225 conftest$ac_exeext conftest.$ac_ext
17226 LIBS=$ac_check_lib_save_LIBS
17228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_close" >&5
17229 $as_echo "$ac_cv_lib_c_close" >&6; }
17230 if test "x$ac_cv_lib_c_close" = xyes; then :
17232 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
17234 else
17236 $as_echo "#undef HAVE_CLOSE" >>confdefs.h
17240 else
17241 if test "x$ac_cv_lib_c_close" = xyes; then
17243 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
17245 elif test "x$ac_cv_func_close" = xyes; then
17247 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
17249 else
17251 $as_echo "#undef HAVE_CLOSE" >>confdefs.h
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for ctime" >&5
17258 $as_echo_n "checking m2 front end checking c library for ctime... " >&6; }
17259 if test x$gcc_no_link != xyes; then
17260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctime in -lc" >&5
17261 $as_echo_n "checking for ctime in -lc... " >&6; }
17262 if ${ac_cv_lib_c_ctime+:} false; then :
17263 $as_echo_n "(cached) " >&6
17264 else
17265 ac_check_lib_save_LIBS=$LIBS
17266 LIBS="-lc $LIBS"
17267 if test x$gcc_no_link = xyes; then
17268 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17271 /* end confdefs.h. */
17273 /* Override any GCC internal prototype to avoid an error.
17274 Use char because int might match the return type of a GCC
17275 builtin and then its argument prototype would still apply. */
17276 #ifdef __cplusplus
17277 extern "C"
17278 #endif
17279 char ctime ();
17281 main ()
17283 return ctime ();
17285 return 0;
17287 _ACEOF
17288 if ac_fn_c_try_link "$LINENO"; then :
17289 ac_cv_lib_c_ctime=yes
17290 else
17291 ac_cv_lib_c_ctime=no
17293 rm -f core conftest.err conftest.$ac_objext \
17294 conftest$ac_exeext conftest.$ac_ext
17295 LIBS=$ac_check_lib_save_LIBS
17297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_ctime" >&5
17298 $as_echo "$ac_cv_lib_c_ctime" >&6; }
17299 if test "x$ac_cv_lib_c_ctime" = xyes; then :
17301 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
17303 else
17305 $as_echo "#undef HAVE_CTIME" >>confdefs.h
17309 else
17310 if test "x$ac_cv_lib_c_ctime" = xyes; then
17312 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
17314 elif test "x$ac_cv_func_ctime" = xyes; then
17316 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
17318 else
17320 $as_echo "#undef HAVE_CTIME" >>confdefs.h
17326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for creat" >&5
17327 $as_echo_n "checking m2 front end checking c library for creat... " >&6; }
17328 if test x$gcc_no_link != xyes; then
17329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for creat in -lc" >&5
17330 $as_echo_n "checking for creat in -lc... " >&6; }
17331 if ${ac_cv_lib_c_creat+:} false; then :
17332 $as_echo_n "(cached) " >&6
17333 else
17334 ac_check_lib_save_LIBS=$LIBS
17335 LIBS="-lc $LIBS"
17336 if test x$gcc_no_link = xyes; then
17337 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17340 /* end confdefs.h. */
17342 /* Override any GCC internal prototype to avoid an error.
17343 Use char because int might match the return type of a GCC
17344 builtin and then its argument prototype would still apply. */
17345 #ifdef __cplusplus
17346 extern "C"
17347 #endif
17348 char creat ();
17350 main ()
17352 return creat ();
17354 return 0;
17356 _ACEOF
17357 if ac_fn_c_try_link "$LINENO"; then :
17358 ac_cv_lib_c_creat=yes
17359 else
17360 ac_cv_lib_c_creat=no
17362 rm -f core conftest.err conftest.$ac_objext \
17363 conftest$ac_exeext conftest.$ac_ext
17364 LIBS=$ac_check_lib_save_LIBS
17366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_creat" >&5
17367 $as_echo "$ac_cv_lib_c_creat" >&6; }
17368 if test "x$ac_cv_lib_c_creat" = xyes; then :
17370 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
17372 else
17374 $as_echo "#undef HAVE_CREAT" >>confdefs.h
17378 else
17379 if test "x$ac_cv_lib_c_creat" = xyes; then
17381 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
17383 elif test "x$ac_cv_func_creat" = xyes; then
17385 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
17387 else
17389 $as_echo "#undef HAVE_CREAT" >>confdefs.h
17395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for daylight" >&5
17396 $as_echo_n "checking m2 front end checking c library for daylight... " >&6; }
17397 if test x$gcc_no_link != xyes; then
17398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight in -lc" >&5
17399 $as_echo_n "checking for daylight in -lc... " >&6; }
17400 if ${ac_cv_lib_c_daylight+:} false; then :
17401 $as_echo_n "(cached) " >&6
17402 else
17403 ac_check_lib_save_LIBS=$LIBS
17404 LIBS="-lc $LIBS"
17405 if test x$gcc_no_link = xyes; then
17406 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17409 /* end confdefs.h. */
17411 /* Override any GCC internal prototype to avoid an error.
17412 Use char because int might match the return type of a GCC
17413 builtin and then its argument prototype would still apply. */
17414 #ifdef __cplusplus
17415 extern "C"
17416 #endif
17417 char daylight ();
17419 main ()
17421 return daylight ();
17423 return 0;
17425 _ACEOF
17426 if ac_fn_c_try_link "$LINENO"; then :
17427 ac_cv_lib_c_daylight=yes
17428 else
17429 ac_cv_lib_c_daylight=no
17431 rm -f core conftest.err conftest.$ac_objext \
17432 conftest$ac_exeext conftest.$ac_ext
17433 LIBS=$ac_check_lib_save_LIBS
17435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_daylight" >&5
17436 $as_echo "$ac_cv_lib_c_daylight" >&6; }
17437 if test "x$ac_cv_lib_c_daylight" = xyes; then :
17439 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
17441 else
17443 $as_echo "#undef HAVE_DAYLIGHT" >>confdefs.h
17447 else
17448 if test "x$ac_cv_lib_c_daylight" = xyes; then
17450 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
17452 elif test "x$ac_cv_func_daylight" = xyes; then
17454 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
17456 else
17458 $as_echo "#undef HAVE_DAYLIGHT" >>confdefs.h
17464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for dup" >&5
17465 $as_echo_n "checking m2 front end checking c library for dup... " >&6; }
17466 if test x$gcc_no_link != xyes; then
17467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup in -lc" >&5
17468 $as_echo_n "checking for dup in -lc... " >&6; }
17469 if ${ac_cv_lib_c_dup+:} false; then :
17470 $as_echo_n "(cached) " >&6
17471 else
17472 ac_check_lib_save_LIBS=$LIBS
17473 LIBS="-lc $LIBS"
17474 if test x$gcc_no_link = xyes; then
17475 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17478 /* end confdefs.h. */
17480 /* Override any GCC internal prototype to avoid an error.
17481 Use char because int might match the return type of a GCC
17482 builtin and then its argument prototype would still apply. */
17483 #ifdef __cplusplus
17484 extern "C"
17485 #endif
17486 char dup ();
17488 main ()
17490 return dup ();
17492 return 0;
17494 _ACEOF
17495 if ac_fn_c_try_link "$LINENO"; then :
17496 ac_cv_lib_c_dup=yes
17497 else
17498 ac_cv_lib_c_dup=no
17500 rm -f core conftest.err conftest.$ac_objext \
17501 conftest$ac_exeext conftest.$ac_ext
17502 LIBS=$ac_check_lib_save_LIBS
17504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dup" >&5
17505 $as_echo "$ac_cv_lib_c_dup" >&6; }
17506 if test "x$ac_cv_lib_c_dup" = xyes; then :
17508 $as_echo "#define HAVE_DUP 1" >>confdefs.h
17510 else
17512 $as_echo "#undef HAVE_DUP" >>confdefs.h
17516 else
17517 if test "x$ac_cv_lib_c_dup" = xyes; then
17519 $as_echo "#define HAVE_DUP 1" >>confdefs.h
17521 elif test "x$ac_cv_func_dup" = xyes; then
17523 $as_echo "#define HAVE_DUP 1" >>confdefs.h
17525 else
17527 $as_echo "#undef HAVE_DUP" >>confdefs.h
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for execve" >&5
17534 $as_echo_n "checking m2 front end checking c library for execve... " >&6; }
17535 if test x$gcc_no_link != xyes; then
17536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execve in -lc" >&5
17537 $as_echo_n "checking for execve in -lc... " >&6; }
17538 if ${ac_cv_lib_c_execve+:} false; then :
17539 $as_echo_n "(cached) " >&6
17540 else
17541 ac_check_lib_save_LIBS=$LIBS
17542 LIBS="-lc $LIBS"
17543 if test x$gcc_no_link = xyes; then
17544 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17547 /* end confdefs.h. */
17549 /* Override any GCC internal prototype to avoid an error.
17550 Use char because int might match the return type of a GCC
17551 builtin and then its argument prototype would still apply. */
17552 #ifdef __cplusplus
17553 extern "C"
17554 #endif
17555 char execve ();
17557 main ()
17559 return execve ();
17561 return 0;
17563 _ACEOF
17564 if ac_fn_c_try_link "$LINENO"; then :
17565 ac_cv_lib_c_execve=yes
17566 else
17567 ac_cv_lib_c_execve=no
17569 rm -f core conftest.err conftest.$ac_objext \
17570 conftest$ac_exeext conftest.$ac_ext
17571 LIBS=$ac_check_lib_save_LIBS
17573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_execve" >&5
17574 $as_echo "$ac_cv_lib_c_execve" >&6; }
17575 if test "x$ac_cv_lib_c_execve" = xyes; then :
17577 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
17579 else
17581 $as_echo "#undef HAVE_EXECVE" >>confdefs.h
17585 else
17586 if test "x$ac_cv_lib_c_execve" = xyes; then
17588 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
17590 elif test "x$ac_cv_func_execve" = xyes; then
17592 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
17594 else
17596 $as_echo "#undef HAVE_EXECVE" >>confdefs.h
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for exit" >&5
17603 $as_echo_n "checking m2 front end checking c library for exit... " >&6; }
17604 if test x$gcc_no_link != xyes; then
17605 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lc" >&5
17606 $as_echo_n "checking for exit in -lc... " >&6; }
17607 if ${ac_cv_lib_c_exit+:} false; then :
17608 $as_echo_n "(cached) " >&6
17609 else
17610 ac_check_lib_save_LIBS=$LIBS
17611 LIBS="-lc $LIBS"
17612 if test x$gcc_no_link = xyes; then
17613 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17616 /* end confdefs.h. */
17618 /* Override any GCC internal prototype to avoid an error.
17619 Use char because int might match the return type of a GCC
17620 builtin and then its argument prototype would still apply. */
17621 #ifdef __cplusplus
17622 extern "C"
17623 #endif
17624 char exit ();
17626 main ()
17628 return exit ();
17630 return 0;
17632 _ACEOF
17633 if ac_fn_c_try_link "$LINENO"; then :
17634 ac_cv_lib_c_exit=yes
17635 else
17636 ac_cv_lib_c_exit=no
17638 rm -f core conftest.err conftest.$ac_objext \
17639 conftest$ac_exeext conftest.$ac_ext
17640 LIBS=$ac_check_lib_save_LIBS
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_exit" >&5
17643 $as_echo "$ac_cv_lib_c_exit" >&6; }
17644 if test "x$ac_cv_lib_c_exit" = xyes; then :
17646 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
17648 else
17650 $as_echo "#undef HAVE_EXIT" >>confdefs.h
17654 else
17655 if test "x$ac_cv_lib_c_exit" = xyes; then
17657 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
17659 elif test "x$ac_cv_func_exit" = xyes; then
17661 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
17663 else
17665 $as_echo "#undef HAVE_EXIT" >>confdefs.h
17671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for fcntl" >&5
17672 $as_echo_n "checking m2 front end checking c library for fcntl... " >&6; }
17673 if test x$gcc_no_link != xyes; then
17674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcntl in -lc" >&5
17675 $as_echo_n "checking for fcntl in -lc... " >&6; }
17676 if ${ac_cv_lib_c_fcntl+:} false; then :
17677 $as_echo_n "(cached) " >&6
17678 else
17679 ac_check_lib_save_LIBS=$LIBS
17680 LIBS="-lc $LIBS"
17681 if test x$gcc_no_link = xyes; then
17682 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17685 /* end confdefs.h. */
17687 /* Override any GCC internal prototype to avoid an error.
17688 Use char because int might match the return type of a GCC
17689 builtin and then its argument prototype would still apply. */
17690 #ifdef __cplusplus
17691 extern "C"
17692 #endif
17693 char fcntl ();
17695 main ()
17697 return fcntl ();
17699 return 0;
17701 _ACEOF
17702 if ac_fn_c_try_link "$LINENO"; then :
17703 ac_cv_lib_c_fcntl=yes
17704 else
17705 ac_cv_lib_c_fcntl=no
17707 rm -f core conftest.err conftest.$ac_objext \
17708 conftest$ac_exeext conftest.$ac_ext
17709 LIBS=$ac_check_lib_save_LIBS
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_fcntl" >&5
17712 $as_echo "$ac_cv_lib_c_fcntl" >&6; }
17713 if test "x$ac_cv_lib_c_fcntl" = xyes; then :
17715 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
17717 else
17719 $as_echo "#undef HAVE_FCNTL" >>confdefs.h
17723 else
17724 if test "x$ac_cv_lib_c_fcntl" = xyes; then
17726 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
17728 elif test "x$ac_cv_func_fcntl" = xyes; then
17730 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
17732 else
17734 $as_echo "#undef HAVE_FCNTL" >>confdefs.h
17740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for fstat" >&5
17741 $as_echo_n "checking m2 front end checking c library for fstat... " >&6; }
17742 if test x$gcc_no_link != xyes; then
17743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fstat in -lc" >&5
17744 $as_echo_n "checking for fstat in -lc... " >&6; }
17745 if ${ac_cv_lib_c_fstat+:} false; then :
17746 $as_echo_n "(cached) " >&6
17747 else
17748 ac_check_lib_save_LIBS=$LIBS
17749 LIBS="-lc $LIBS"
17750 if test x$gcc_no_link = xyes; then
17751 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17754 /* end confdefs.h. */
17756 /* Override any GCC internal prototype to avoid an error.
17757 Use char because int might match the return type of a GCC
17758 builtin and then its argument prototype would still apply. */
17759 #ifdef __cplusplus
17760 extern "C"
17761 #endif
17762 char fstat ();
17764 main ()
17766 return fstat ();
17768 return 0;
17770 _ACEOF
17771 if ac_fn_c_try_link "$LINENO"; then :
17772 ac_cv_lib_c_fstat=yes
17773 else
17774 ac_cv_lib_c_fstat=no
17776 rm -f core conftest.err conftest.$ac_objext \
17777 conftest$ac_exeext conftest.$ac_ext
17778 LIBS=$ac_check_lib_save_LIBS
17780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_fstat" >&5
17781 $as_echo "$ac_cv_lib_c_fstat" >&6; }
17782 if test "x$ac_cv_lib_c_fstat" = xyes; then :
17784 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
17786 else
17788 $as_echo "#undef HAVE_FSTAT" >>confdefs.h
17792 else
17793 if test "x$ac_cv_lib_c_fstat" = xyes; then
17795 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
17797 elif test "x$ac_cv_func_fstat" = xyes; then
17799 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
17801 else
17803 $as_echo "#undef HAVE_FSTAT" >>confdefs.h
17809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getdents" >&5
17810 $as_echo_n "checking m2 front end checking c library for getdents... " >&6; }
17811 if test x$gcc_no_link != xyes; then
17812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getdents in -lc" >&5
17813 $as_echo_n "checking for getdents in -lc... " >&6; }
17814 if ${ac_cv_lib_c_getdents+:} false; then :
17815 $as_echo_n "(cached) " >&6
17816 else
17817 ac_check_lib_save_LIBS=$LIBS
17818 LIBS="-lc $LIBS"
17819 if test x$gcc_no_link = xyes; then
17820 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17823 /* end confdefs.h. */
17825 /* Override any GCC internal prototype to avoid an error.
17826 Use char because int might match the return type of a GCC
17827 builtin and then its argument prototype would still apply. */
17828 #ifdef __cplusplus
17829 extern "C"
17830 #endif
17831 char getdents ();
17833 main ()
17835 return getdents ();
17837 return 0;
17839 _ACEOF
17840 if ac_fn_c_try_link "$LINENO"; then :
17841 ac_cv_lib_c_getdents=yes
17842 else
17843 ac_cv_lib_c_getdents=no
17845 rm -f core conftest.err conftest.$ac_objext \
17846 conftest$ac_exeext conftest.$ac_ext
17847 LIBS=$ac_check_lib_save_LIBS
17849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getdents" >&5
17850 $as_echo "$ac_cv_lib_c_getdents" >&6; }
17851 if test "x$ac_cv_lib_c_getdents" = xyes; then :
17853 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
17855 else
17857 $as_echo "#undef HAVE_GETDENTS" >>confdefs.h
17861 else
17862 if test "x$ac_cv_lib_c_getdents" = xyes; then
17864 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
17866 elif test "x$ac_cv_func_getdents" = xyes; then
17868 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
17870 else
17872 $as_echo "#undef HAVE_GETDENTS" >>confdefs.h
17878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getgid" >&5
17879 $as_echo_n "checking m2 front end checking c library for getgid... " >&6; }
17880 if test x$gcc_no_link != xyes; then
17881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgid in -lc" >&5
17882 $as_echo_n "checking for getgid in -lc... " >&6; }
17883 if ${ac_cv_lib_c_getgid+:} false; then :
17884 $as_echo_n "(cached) " >&6
17885 else
17886 ac_check_lib_save_LIBS=$LIBS
17887 LIBS="-lc $LIBS"
17888 if test x$gcc_no_link = xyes; then
17889 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17892 /* end confdefs.h. */
17894 /* Override any GCC internal prototype to avoid an error.
17895 Use char because int might match the return type of a GCC
17896 builtin and then its argument prototype would still apply. */
17897 #ifdef __cplusplus
17898 extern "C"
17899 #endif
17900 char getgid ();
17902 main ()
17904 return getgid ();
17906 return 0;
17908 _ACEOF
17909 if ac_fn_c_try_link "$LINENO"; then :
17910 ac_cv_lib_c_getgid=yes
17911 else
17912 ac_cv_lib_c_getgid=no
17914 rm -f core conftest.err conftest.$ac_objext \
17915 conftest$ac_exeext conftest.$ac_ext
17916 LIBS=$ac_check_lib_save_LIBS
17918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getgid" >&5
17919 $as_echo "$ac_cv_lib_c_getgid" >&6; }
17920 if test "x$ac_cv_lib_c_getgid" = xyes; then :
17922 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
17924 else
17926 $as_echo "#undef HAVE_GETGID" >>confdefs.h
17930 else
17931 if test "x$ac_cv_lib_c_getgid" = xyes; then
17933 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
17935 elif test "x$ac_cv_func_getgid" = xyes; then
17937 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
17939 else
17941 $as_echo "#undef HAVE_GETGID" >>confdefs.h
17947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getpid" >&5
17948 $as_echo_n "checking m2 front end checking c library for getpid... " >&6; }
17949 if test x$gcc_no_link != xyes; then
17950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpid in -lc" >&5
17951 $as_echo_n "checking for getpid in -lc... " >&6; }
17952 if ${ac_cv_lib_c_getpid+:} false; then :
17953 $as_echo_n "(cached) " >&6
17954 else
17955 ac_check_lib_save_LIBS=$LIBS
17956 LIBS="-lc $LIBS"
17957 if test x$gcc_no_link = xyes; then
17958 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17960 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17961 /* end confdefs.h. */
17963 /* Override any GCC internal prototype to avoid an error.
17964 Use char because int might match the return type of a GCC
17965 builtin and then its argument prototype would still apply. */
17966 #ifdef __cplusplus
17967 extern "C"
17968 #endif
17969 char getpid ();
17971 main ()
17973 return getpid ();
17975 return 0;
17977 _ACEOF
17978 if ac_fn_c_try_link "$LINENO"; then :
17979 ac_cv_lib_c_getpid=yes
17980 else
17981 ac_cv_lib_c_getpid=no
17983 rm -f core conftest.err conftest.$ac_objext \
17984 conftest$ac_exeext conftest.$ac_ext
17985 LIBS=$ac_check_lib_save_LIBS
17987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpid" >&5
17988 $as_echo "$ac_cv_lib_c_getpid" >&6; }
17989 if test "x$ac_cv_lib_c_getpid" = xyes; then :
17991 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
17993 else
17995 $as_echo "#undef HAVE_GETPID" >>confdefs.h
17999 else
18000 if test "x$ac_cv_lib_c_getpid" = xyes; then
18002 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
18004 elif test "x$ac_cv_func_getpid" = xyes; then
18006 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
18008 else
18010 $as_echo "#undef HAVE_GETPID" >>confdefs.h
18016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for gettimeofday" >&5
18017 $as_echo_n "checking m2 front end checking c library for gettimeofday... " >&6; }
18018 if test x$gcc_no_link != xyes; then
18019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lc" >&5
18020 $as_echo_n "checking for gettimeofday in -lc... " >&6; }
18021 if ${ac_cv_lib_c_gettimeofday+:} false; then :
18022 $as_echo_n "(cached) " >&6
18023 else
18024 ac_check_lib_save_LIBS=$LIBS
18025 LIBS="-lc $LIBS"
18026 if test x$gcc_no_link = xyes; then
18027 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18030 /* end confdefs.h. */
18032 /* Override any GCC internal prototype to avoid an error.
18033 Use char because int might match the return type of a GCC
18034 builtin and then its argument prototype would still apply. */
18035 #ifdef __cplusplus
18036 extern "C"
18037 #endif
18038 char gettimeofday ();
18040 main ()
18042 return gettimeofday ();
18044 return 0;
18046 _ACEOF
18047 if ac_fn_c_try_link "$LINENO"; then :
18048 ac_cv_lib_c_gettimeofday=yes
18049 else
18050 ac_cv_lib_c_gettimeofday=no
18052 rm -f core conftest.err conftest.$ac_objext \
18053 conftest$ac_exeext conftest.$ac_ext
18054 LIBS=$ac_check_lib_save_LIBS
18056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gettimeofday" >&5
18057 $as_echo "$ac_cv_lib_c_gettimeofday" >&6; }
18058 if test "x$ac_cv_lib_c_gettimeofday" = xyes; then :
18060 $as_echo "#define HAVE_GETTIMEOFD 1" >>confdefs.h
18062 else
18064 $as_echo "#undef HAVE_GETTIMEOFD" >>confdefs.h
18068 else
18069 if test "x$ac_cv_lib_c_gettimeofday" = xyes; then
18071 $as_echo "#define HAVE_GETTIMEOFD 1" >>confdefs.h
18073 elif test "x$ac_cv_func_gettimeofday" = xyes; then
18075 $as_echo "#define HAVE_GETTIMEOFD 1" >>confdefs.h
18077 else
18079 $as_echo "#undef HAVE_GETTIMEOFD" >>confdefs.h
18085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getuid" >&5
18086 $as_echo_n "checking m2 front end checking c library for getuid... " >&6; }
18087 if test x$gcc_no_link != xyes; then
18088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getuid in -lc" >&5
18089 $as_echo_n "checking for getuid in -lc... " >&6; }
18090 if ${ac_cv_lib_c_getuid+:} false; then :
18091 $as_echo_n "(cached) " >&6
18092 else
18093 ac_check_lib_save_LIBS=$LIBS
18094 LIBS="-lc $LIBS"
18095 if test x$gcc_no_link = xyes; then
18096 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18099 /* end confdefs.h. */
18101 /* Override any GCC internal prototype to avoid an error.
18102 Use char because int might match the return type of a GCC
18103 builtin and then its argument prototype would still apply. */
18104 #ifdef __cplusplus
18105 extern "C"
18106 #endif
18107 char getuid ();
18109 main ()
18111 return getuid ();
18113 return 0;
18115 _ACEOF
18116 if ac_fn_c_try_link "$LINENO"; then :
18117 ac_cv_lib_c_getuid=yes
18118 else
18119 ac_cv_lib_c_getuid=no
18121 rm -f core conftest.err conftest.$ac_objext \
18122 conftest$ac_exeext conftest.$ac_ext
18123 LIBS=$ac_check_lib_save_LIBS
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getuid" >&5
18126 $as_echo "$ac_cv_lib_c_getuid" >&6; }
18127 if test "x$ac_cv_lib_c_getuid" = xyes; then :
18129 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
18131 else
18133 $as_echo "#undef HAVE_GETUID" >>confdefs.h
18137 else
18138 if test "x$ac_cv_lib_c_getuid" = xyes; then
18140 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
18142 elif test "x$ac_cv_func_getuid" = xyes; then
18144 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
18146 else
18148 $as_echo "#undef HAVE_GETUID" >>confdefs.h
18154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for ioctl" >&5
18155 $as_echo_n "checking m2 front end checking c library for ioctl... " >&6; }
18156 if test x$gcc_no_link != xyes; then
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl in -lc" >&5
18158 $as_echo_n "checking for ioctl in -lc... " >&6; }
18159 if ${ac_cv_lib_c_ioctl+:} false; then :
18160 $as_echo_n "(cached) " >&6
18161 else
18162 ac_check_lib_save_LIBS=$LIBS
18163 LIBS="-lc $LIBS"
18164 if test x$gcc_no_link = xyes; then
18165 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18168 /* end confdefs.h. */
18170 /* Override any GCC internal prototype to avoid an error.
18171 Use char because int might match the return type of a GCC
18172 builtin and then its argument prototype would still apply. */
18173 #ifdef __cplusplus
18174 extern "C"
18175 #endif
18176 char ioctl ();
18178 main ()
18180 return ioctl ();
18182 return 0;
18184 _ACEOF
18185 if ac_fn_c_try_link "$LINENO"; then :
18186 ac_cv_lib_c_ioctl=yes
18187 else
18188 ac_cv_lib_c_ioctl=no
18190 rm -f core conftest.err conftest.$ac_objext \
18191 conftest$ac_exeext conftest.$ac_ext
18192 LIBS=$ac_check_lib_save_LIBS
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_ioctl" >&5
18195 $as_echo "$ac_cv_lib_c_ioctl" >&6; }
18196 if test "x$ac_cv_lib_c_ioctl" = xyes; then :
18198 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
18200 else
18202 $as_echo "#undef HAVE_IOCTL" >>confdefs.h
18206 else
18207 if test "x$ac_cv_lib_c_ioctl" = xyes; then
18209 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
18211 elif test "x$ac_cv_func_ioctl" = xyes; then
18213 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
18215 else
18217 $as_echo "#undef HAVE_IOCTL" >>confdefs.h
18223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for kill" >&5
18224 $as_echo_n "checking m2 front end checking c library for kill... " >&6; }
18225 if test x$gcc_no_link != xyes; then
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kill in -lc" >&5
18227 $as_echo_n "checking for kill in -lc... " >&6; }
18228 if ${ac_cv_lib_c_kill+:} false; then :
18229 $as_echo_n "(cached) " >&6
18230 else
18231 ac_check_lib_save_LIBS=$LIBS
18232 LIBS="-lc $LIBS"
18233 if test x$gcc_no_link = xyes; then
18234 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18237 /* end confdefs.h. */
18239 /* Override any GCC internal prototype to avoid an error.
18240 Use char because int might match the return type of a GCC
18241 builtin and then its argument prototype would still apply. */
18242 #ifdef __cplusplus
18243 extern "C"
18244 #endif
18245 char kill ();
18247 main ()
18249 return kill ();
18251 return 0;
18253 _ACEOF
18254 if ac_fn_c_try_link "$LINENO"; then :
18255 ac_cv_lib_c_kill=yes
18256 else
18257 ac_cv_lib_c_kill=no
18259 rm -f core conftest.err conftest.$ac_objext \
18260 conftest$ac_exeext conftest.$ac_ext
18261 LIBS=$ac_check_lib_save_LIBS
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_kill" >&5
18264 $as_echo "$ac_cv_lib_c_kill" >&6; }
18265 if test "x$ac_cv_lib_c_kill" = xyes; then :
18267 $as_echo "#define HAVE_KILL 1" >>confdefs.h
18269 else
18271 $as_echo "#undef HAVE_KILL" >>confdefs.h
18275 else
18276 if test "x$ac_cv_lib_c_kill" = xyes; then
18278 $as_echo "#define HAVE_KILL 1" >>confdefs.h
18280 elif test "x$ac_cv_func_kill" = xyes; then
18282 $as_echo "#define HAVE_KILL 1" >>confdefs.h
18284 else
18286 $as_echo "#undef HAVE_KILL" >>confdefs.h
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for link" >&5
18293 $as_echo_n "checking m2 front end checking c library for link... " >&6; }
18294 if test x$gcc_no_link != xyes; then
18295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link in -lc" >&5
18296 $as_echo_n "checking for link in -lc... " >&6; }
18297 if ${ac_cv_lib_c_link+:} false; then :
18298 $as_echo_n "(cached) " >&6
18299 else
18300 ac_check_lib_save_LIBS=$LIBS
18301 LIBS="-lc $LIBS"
18302 if test x$gcc_no_link = xyes; then
18303 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18306 /* end confdefs.h. */
18308 /* Override any GCC internal prototype to avoid an error.
18309 Use char because int might match the return type of a GCC
18310 builtin and then its argument prototype would still apply. */
18311 #ifdef __cplusplus
18312 extern "C"
18313 #endif
18314 char link ();
18316 main ()
18318 return link ();
18320 return 0;
18322 _ACEOF
18323 if ac_fn_c_try_link "$LINENO"; then :
18324 ac_cv_lib_c_link=yes
18325 else
18326 ac_cv_lib_c_link=no
18328 rm -f core conftest.err conftest.$ac_objext \
18329 conftest$ac_exeext conftest.$ac_ext
18330 LIBS=$ac_check_lib_save_LIBS
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_link" >&5
18333 $as_echo "$ac_cv_lib_c_link" >&6; }
18334 if test "x$ac_cv_lib_c_link" = xyes; then :
18336 $as_echo "#define HAVE_LINK 1" >>confdefs.h
18338 else
18340 $as_echo "#undef HAVE_LINK" >>confdefs.h
18344 else
18345 if test "x$ac_cv_lib_c_link" = xyes; then
18347 $as_echo "#define HAVE_LINK 1" >>confdefs.h
18349 elif test "x$ac_cv_func_link" = xyes; then
18351 $as_echo "#define HAVE_LINK 1" >>confdefs.h
18353 else
18355 $as_echo "#undef HAVE_LINK" >>confdefs.h
18361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for lseek" >&5
18362 $as_echo_n "checking m2 front end checking c library for lseek... " >&6; }
18363 if test x$gcc_no_link != xyes; then
18364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lseek in -lc" >&5
18365 $as_echo_n "checking for lseek in -lc... " >&6; }
18366 if ${ac_cv_lib_c_lseek+:} false; then :
18367 $as_echo_n "(cached) " >&6
18368 else
18369 ac_check_lib_save_LIBS=$LIBS
18370 LIBS="-lc $LIBS"
18371 if test x$gcc_no_link = xyes; then
18372 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18375 /* end confdefs.h. */
18377 /* Override any GCC internal prototype to avoid an error.
18378 Use char because int might match the return type of a GCC
18379 builtin and then its argument prototype would still apply. */
18380 #ifdef __cplusplus
18381 extern "C"
18382 #endif
18383 char lseek ();
18385 main ()
18387 return lseek ();
18389 return 0;
18391 _ACEOF
18392 if ac_fn_c_try_link "$LINENO"; then :
18393 ac_cv_lib_c_lseek=yes
18394 else
18395 ac_cv_lib_c_lseek=no
18397 rm -f core conftest.err conftest.$ac_objext \
18398 conftest$ac_exeext conftest.$ac_ext
18399 LIBS=$ac_check_lib_save_LIBS
18401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_lseek" >&5
18402 $as_echo "$ac_cv_lib_c_lseek" >&6; }
18403 if test "x$ac_cv_lib_c_lseek" = xyes; then :
18405 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
18407 else
18409 $as_echo "#undef HAVE_LSEEK" >>confdefs.h
18413 else
18414 if test "x$ac_cv_lib_c_lseek" = xyes; then
18416 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
18418 elif test "x$ac_cv_func_lseek" = xyes; then
18420 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
18422 else
18424 $as_echo "#undef HAVE_LSEEK" >>confdefs.h
18430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for open" >&5
18431 $as_echo_n "checking m2 front end checking c library for open... " >&6; }
18432 if test x$gcc_no_link != xyes; then
18433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for open in -lc" >&5
18434 $as_echo_n "checking for open in -lc... " >&6; }
18435 if ${ac_cv_lib_c_open+:} false; then :
18436 $as_echo_n "(cached) " >&6
18437 else
18438 ac_check_lib_save_LIBS=$LIBS
18439 LIBS="-lc $LIBS"
18440 if test x$gcc_no_link = xyes; then
18441 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18444 /* end confdefs.h. */
18446 /* Override any GCC internal prototype to avoid an error.
18447 Use char because int might match the return type of a GCC
18448 builtin and then its argument prototype would still apply. */
18449 #ifdef __cplusplus
18450 extern "C"
18451 #endif
18452 char open ();
18454 main ()
18456 return open ();
18458 return 0;
18460 _ACEOF
18461 if ac_fn_c_try_link "$LINENO"; then :
18462 ac_cv_lib_c_open=yes
18463 else
18464 ac_cv_lib_c_open=no
18466 rm -f core conftest.err conftest.$ac_objext \
18467 conftest$ac_exeext conftest.$ac_ext
18468 LIBS=$ac_check_lib_save_LIBS
18470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_open" >&5
18471 $as_echo "$ac_cv_lib_c_open" >&6; }
18472 if test "x$ac_cv_lib_c_open" = xyes; then :
18474 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
18476 else
18478 $as_echo "#undef HAVE_OPEN" >>confdefs.h
18482 else
18483 if test "x$ac_cv_lib_c_open" = xyes; then
18485 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
18487 elif test "x$ac_cv_func_open" = xyes; then
18489 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
18491 else
18493 $as_echo "#undef HAVE_OPEN" >>confdefs.h
18499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for pause" >&5
18500 $as_echo_n "checking m2 front end checking c library for pause... " >&6; }
18501 if test x$gcc_no_link != xyes; then
18502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pause in -lc" >&5
18503 $as_echo_n "checking for pause in -lc... " >&6; }
18504 if ${ac_cv_lib_c_pause+:} false; then :
18505 $as_echo_n "(cached) " >&6
18506 else
18507 ac_check_lib_save_LIBS=$LIBS
18508 LIBS="-lc $LIBS"
18509 if test x$gcc_no_link = xyes; then
18510 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18513 /* end confdefs.h. */
18515 /* Override any GCC internal prototype to avoid an error.
18516 Use char because int might match the return type of a GCC
18517 builtin and then its argument prototype would still apply. */
18518 #ifdef __cplusplus
18519 extern "C"
18520 #endif
18521 char pause ();
18523 main ()
18525 return pause ();
18527 return 0;
18529 _ACEOF
18530 if ac_fn_c_try_link "$LINENO"; then :
18531 ac_cv_lib_c_pause=yes
18532 else
18533 ac_cv_lib_c_pause=no
18535 rm -f core conftest.err conftest.$ac_objext \
18536 conftest$ac_exeext conftest.$ac_ext
18537 LIBS=$ac_check_lib_save_LIBS
18539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pause" >&5
18540 $as_echo "$ac_cv_lib_c_pause" >&6; }
18541 if test "x$ac_cv_lib_c_pause" = xyes; then :
18543 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
18545 else
18547 $as_echo "#undef HAVE_PAUSE" >>confdefs.h
18551 else
18552 if test "x$ac_cv_lib_c_pause" = xyes; then
18554 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
18556 elif test "x$ac_cv_func_pause" = xyes; then
18558 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
18560 else
18562 $as_echo "#undef HAVE_PAUSE" >>confdefs.h
18568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for pipe" >&5
18569 $as_echo_n "checking m2 front end checking c library for pipe... " >&6; }
18570 if test x$gcc_no_link != xyes; then
18571 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pipe in -lc" >&5
18572 $as_echo_n "checking for pipe in -lc... " >&6; }
18573 if ${ac_cv_lib_c_pipe+:} false; then :
18574 $as_echo_n "(cached) " >&6
18575 else
18576 ac_check_lib_save_LIBS=$LIBS
18577 LIBS="-lc $LIBS"
18578 if test x$gcc_no_link = xyes; then
18579 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18582 /* end confdefs.h. */
18584 /* Override any GCC internal prototype to avoid an error.
18585 Use char because int might match the return type of a GCC
18586 builtin and then its argument prototype would still apply. */
18587 #ifdef __cplusplus
18588 extern "C"
18589 #endif
18590 char pipe ();
18592 main ()
18594 return pipe ();
18596 return 0;
18598 _ACEOF
18599 if ac_fn_c_try_link "$LINENO"; then :
18600 ac_cv_lib_c_pipe=yes
18601 else
18602 ac_cv_lib_c_pipe=no
18604 rm -f core conftest.err conftest.$ac_objext \
18605 conftest$ac_exeext conftest.$ac_ext
18606 LIBS=$ac_check_lib_save_LIBS
18608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pipe" >&5
18609 $as_echo "$ac_cv_lib_c_pipe" >&6; }
18610 if test "x$ac_cv_lib_c_pipe" = xyes; then :
18612 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
18614 else
18616 $as_echo "#undef HAVE_PIPE" >>confdefs.h
18620 else
18621 if test "x$ac_cv_lib_c_pipe" = xyes; then
18623 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
18625 elif test "x$ac_cv_func_pipe" = xyes; then
18627 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
18629 else
18631 $as_echo "#undef HAVE_PIPE" >>confdefs.h
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for rand" >&5
18638 $as_echo_n "checking m2 front end checking c library for rand... " >&6; }
18639 if test x$gcc_no_link != xyes; then
18640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rand in -lc" >&5
18641 $as_echo_n "checking for rand in -lc... " >&6; }
18642 if ${ac_cv_lib_c_rand+:} false; then :
18643 $as_echo_n "(cached) " >&6
18644 else
18645 ac_check_lib_save_LIBS=$LIBS
18646 LIBS="-lc $LIBS"
18647 if test x$gcc_no_link = xyes; then
18648 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18651 /* end confdefs.h. */
18653 /* Override any GCC internal prototype to avoid an error.
18654 Use char because int might match the return type of a GCC
18655 builtin and then its argument prototype would still apply. */
18656 #ifdef __cplusplus
18657 extern "C"
18658 #endif
18659 char rand ();
18661 main ()
18663 return rand ();
18665 return 0;
18667 _ACEOF
18668 if ac_fn_c_try_link "$LINENO"; then :
18669 ac_cv_lib_c_rand=yes
18670 else
18671 ac_cv_lib_c_rand=no
18673 rm -f core conftest.err conftest.$ac_objext \
18674 conftest$ac_exeext conftest.$ac_ext
18675 LIBS=$ac_check_lib_save_LIBS
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_rand" >&5
18678 $as_echo "$ac_cv_lib_c_rand" >&6; }
18679 if test "x$ac_cv_lib_c_rand" = xyes; then :
18681 $as_echo "#define HAVE_RAND 1" >>confdefs.h
18683 else
18685 $as_echo "#undef HAVE_RAND" >>confdefs.h
18689 else
18690 if test "x$ac_cv_lib_c_rand" = xyes; then
18692 $as_echo "#define HAVE_RAND 1" >>confdefs.h
18694 elif test "x$ac_cv_func_rand" = xyes; then
18696 $as_echo "#define HAVE_RAND 1" >>confdefs.h
18698 else
18700 $as_echo "#undef HAVE_RAND" >>confdefs.h
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for read" >&5
18707 $as_echo_n "checking m2 front end checking c library for read... " >&6; }
18708 if test x$gcc_no_link != xyes; then
18709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for read in -lc" >&5
18710 $as_echo_n "checking for read in -lc... " >&6; }
18711 if ${ac_cv_lib_c_read+:} false; then :
18712 $as_echo_n "(cached) " >&6
18713 else
18714 ac_check_lib_save_LIBS=$LIBS
18715 LIBS="-lc $LIBS"
18716 if test x$gcc_no_link = xyes; then
18717 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18720 /* end confdefs.h. */
18722 /* Override any GCC internal prototype to avoid an error.
18723 Use char because int might match the return type of a GCC
18724 builtin and then its argument prototype would still apply. */
18725 #ifdef __cplusplus
18726 extern "C"
18727 #endif
18728 char read ();
18730 main ()
18732 return read ();
18734 return 0;
18736 _ACEOF
18737 if ac_fn_c_try_link "$LINENO"; then :
18738 ac_cv_lib_c_read=yes
18739 else
18740 ac_cv_lib_c_read=no
18742 rm -f core conftest.err conftest.$ac_objext \
18743 conftest$ac_exeext conftest.$ac_ext
18744 LIBS=$ac_check_lib_save_LIBS
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_read" >&5
18747 $as_echo "$ac_cv_lib_c_read" >&6; }
18748 if test "x$ac_cv_lib_c_read" = xyes; then :
18750 $as_echo "#define HAVE_READ 1" >>confdefs.h
18752 else
18754 $as_echo "#undef HAVE_READ" >>confdefs.h
18758 else
18759 if test "x$ac_cv_lib_c_read" = xyes; then
18761 $as_echo "#define HAVE_READ 1" >>confdefs.h
18763 elif test "x$ac_cv_func_read" = xyes; then
18765 $as_echo "#define HAVE_READ 1" >>confdefs.h
18767 else
18769 $as_echo "#undef HAVE_READ" >>confdefs.h
18775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for select" >&5
18776 $as_echo_n "checking m2 front end checking c library for select... " >&6; }
18777 if test x$gcc_no_link != xyes; then
18778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select in -lc" >&5
18779 $as_echo_n "checking for select in -lc... " >&6; }
18780 if ${ac_cv_lib_c_select+:} false; then :
18781 $as_echo_n "(cached) " >&6
18782 else
18783 ac_check_lib_save_LIBS=$LIBS
18784 LIBS="-lc $LIBS"
18785 if test x$gcc_no_link = xyes; then
18786 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18789 /* end confdefs.h. */
18791 /* Override any GCC internal prototype to avoid an error.
18792 Use char because int might match the return type of a GCC
18793 builtin and then its argument prototype would still apply. */
18794 #ifdef __cplusplus
18795 extern "C"
18796 #endif
18797 char select ();
18799 main ()
18801 return select ();
18803 return 0;
18805 _ACEOF
18806 if ac_fn_c_try_link "$LINENO"; then :
18807 ac_cv_lib_c_select=yes
18808 else
18809 ac_cv_lib_c_select=no
18811 rm -f core conftest.err conftest.$ac_objext \
18812 conftest$ac_exeext conftest.$ac_ext
18813 LIBS=$ac_check_lib_save_LIBS
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_select" >&5
18816 $as_echo "$ac_cv_lib_c_select" >&6; }
18817 if test "x$ac_cv_lib_c_select" = xyes; then :
18819 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
18821 else
18823 $as_echo "#undef HAVE_SELECT" >>confdefs.h
18827 else
18828 if test "x$ac_cv_lib_c_select" = xyes; then
18830 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
18832 elif test "x$ac_cv_func_select" = xyes; then
18834 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
18836 else
18838 $as_echo "#undef HAVE_SELECT" >>confdefs.h
18844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setitimer" >&5
18845 $as_echo_n "checking m2 front end checking c library for setitimer... " >&6; }
18846 if test x$gcc_no_link != xyes; then
18847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setitimer in -lc" >&5
18848 $as_echo_n "checking for setitimer in -lc... " >&6; }
18849 if ${ac_cv_lib_c_setitimer+:} false; then :
18850 $as_echo_n "(cached) " >&6
18851 else
18852 ac_check_lib_save_LIBS=$LIBS
18853 LIBS="-lc $LIBS"
18854 if test x$gcc_no_link = xyes; then
18855 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18858 /* end confdefs.h. */
18860 /* Override any GCC internal prototype to avoid an error.
18861 Use char because int might match the return type of a GCC
18862 builtin and then its argument prototype would still apply. */
18863 #ifdef __cplusplus
18864 extern "C"
18865 #endif
18866 char setitimer ();
18868 main ()
18870 return setitimer ();
18872 return 0;
18874 _ACEOF
18875 if ac_fn_c_try_link "$LINENO"; then :
18876 ac_cv_lib_c_setitimer=yes
18877 else
18878 ac_cv_lib_c_setitimer=no
18880 rm -f core conftest.err conftest.$ac_objext \
18881 conftest$ac_exeext conftest.$ac_ext
18882 LIBS=$ac_check_lib_save_LIBS
18884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setitimer" >&5
18885 $as_echo "$ac_cv_lib_c_setitimer" >&6; }
18886 if test "x$ac_cv_lib_c_setitimer" = xyes; then :
18888 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
18890 else
18892 $as_echo "#undef HAVE_SETITIMER" >>confdefs.h
18896 else
18897 if test "x$ac_cv_lib_c_setitimer" = xyes; then
18899 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
18901 elif test "x$ac_cv_func_setitimer" = xyes; then
18903 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
18905 else
18907 $as_echo "#undef HAVE_SETITIMER" >>confdefs.h
18913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setgid" >&5
18914 $as_echo_n "checking m2 front end checking c library for setgid... " >&6; }
18915 if test x$gcc_no_link != xyes; then
18916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgid in -lc" >&5
18917 $as_echo_n "checking for setgid in -lc... " >&6; }
18918 if ${ac_cv_lib_c_setgid+:} false; then :
18919 $as_echo_n "(cached) " >&6
18920 else
18921 ac_check_lib_save_LIBS=$LIBS
18922 LIBS="-lc $LIBS"
18923 if test x$gcc_no_link = xyes; then
18924 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18927 /* end confdefs.h. */
18929 /* Override any GCC internal prototype to avoid an error.
18930 Use char because int might match the return type of a GCC
18931 builtin and then its argument prototype would still apply. */
18932 #ifdef __cplusplus
18933 extern "C"
18934 #endif
18935 char setgid ();
18937 main ()
18939 return setgid ();
18941 return 0;
18943 _ACEOF
18944 if ac_fn_c_try_link "$LINENO"; then :
18945 ac_cv_lib_c_setgid=yes
18946 else
18947 ac_cv_lib_c_setgid=no
18949 rm -f core conftest.err conftest.$ac_objext \
18950 conftest$ac_exeext conftest.$ac_ext
18951 LIBS=$ac_check_lib_save_LIBS
18953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setgid" >&5
18954 $as_echo "$ac_cv_lib_c_setgid" >&6; }
18955 if test "x$ac_cv_lib_c_setgid" = xyes; then :
18957 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
18959 else
18961 $as_echo "#undef HAVE_SETGID" >>confdefs.h
18965 else
18966 if test "x$ac_cv_lib_c_setgid" = xyes; then
18968 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
18970 elif test "x$ac_cv_func_setgid" = xyes; then
18972 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
18974 else
18976 $as_echo "#undef HAVE_SETGID" >>confdefs.h
18982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setuid" >&5
18983 $as_echo_n "checking m2 front end checking c library for setuid... " >&6; }
18984 if test x$gcc_no_link != xyes; then
18985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setuid in -lc" >&5
18986 $as_echo_n "checking for setuid in -lc... " >&6; }
18987 if ${ac_cv_lib_c_setuid+:} false; then :
18988 $as_echo_n "(cached) " >&6
18989 else
18990 ac_check_lib_save_LIBS=$LIBS
18991 LIBS="-lc $LIBS"
18992 if test x$gcc_no_link = xyes; then
18993 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18995 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18996 /* end confdefs.h. */
18998 /* Override any GCC internal prototype to avoid an error.
18999 Use char because int might match the return type of a GCC
19000 builtin and then its argument prototype would still apply. */
19001 #ifdef __cplusplus
19002 extern "C"
19003 #endif
19004 char setuid ();
19006 main ()
19008 return setuid ();
19010 return 0;
19012 _ACEOF
19013 if ac_fn_c_try_link "$LINENO"; then :
19014 ac_cv_lib_c_setuid=yes
19015 else
19016 ac_cv_lib_c_setuid=no
19018 rm -f core conftest.err conftest.$ac_objext \
19019 conftest$ac_exeext conftest.$ac_ext
19020 LIBS=$ac_check_lib_save_LIBS
19022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setuid" >&5
19023 $as_echo "$ac_cv_lib_c_setuid" >&6; }
19024 if test "x$ac_cv_lib_c_setuid" = xyes; then :
19026 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
19028 else
19030 $as_echo "#undef HAVE_SETUID" >>confdefs.h
19034 else
19035 if test "x$ac_cv_lib_c_setuid" = xyes; then
19037 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
19039 elif test "x$ac_cv_func_setuid" = xyes; then
19041 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
19043 else
19045 $as_echo "#undef HAVE_SETUID" >>confdefs.h
19051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for stat" >&5
19052 $as_echo_n "checking m2 front end checking c library for stat... " >&6; }
19053 if test x$gcc_no_link != xyes; then
19054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stat in -lc" >&5
19055 $as_echo_n "checking for stat in -lc... " >&6; }
19056 if ${ac_cv_lib_c_stat+:} false; then :
19057 $as_echo_n "(cached) " >&6
19058 else
19059 ac_check_lib_save_LIBS=$LIBS
19060 LIBS="-lc $LIBS"
19061 if test x$gcc_no_link = xyes; then
19062 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19064 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19065 /* end confdefs.h. */
19067 /* Override any GCC internal prototype to avoid an error.
19068 Use char because int might match the return type of a GCC
19069 builtin and then its argument prototype would still apply. */
19070 #ifdef __cplusplus
19071 extern "C"
19072 #endif
19073 char stat ();
19075 main ()
19077 return stat ();
19079 return 0;
19081 _ACEOF
19082 if ac_fn_c_try_link "$LINENO"; then :
19083 ac_cv_lib_c_stat=yes
19084 else
19085 ac_cv_lib_c_stat=no
19087 rm -f core conftest.err conftest.$ac_objext \
19088 conftest$ac_exeext conftest.$ac_ext
19089 LIBS=$ac_check_lib_save_LIBS
19091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_stat" >&5
19092 $as_echo "$ac_cv_lib_c_stat" >&6; }
19093 if test "x$ac_cv_lib_c_stat" = xyes; then :
19095 $as_echo "#define HAVE_STAT 1" >>confdefs.h
19097 else
19099 $as_echo "#undef HAVE_STAT" >>confdefs.h
19103 else
19104 if test "x$ac_cv_lib_c_stat" = xyes; then
19106 $as_echo "#define HAVE_STAT 1" >>confdefs.h
19108 elif test "x$ac_cv_func_stat" = xyes; then
19110 $as_echo "#define HAVE_STAT 1" >>confdefs.h
19112 else
19114 $as_echo "#undef HAVE_STAT" >>confdefs.h
19120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strsignal" >&5
19121 $as_echo_n "checking m2 front end checking c library for strsignal... " >&6; }
19122 if test x$gcc_no_link != xyes; then
19123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strsignal in -lc" >&5
19124 $as_echo_n "checking for strsignal in -lc... " >&6; }
19125 if ${ac_cv_lib_c_strsignal+:} false; then :
19126 $as_echo_n "(cached) " >&6
19127 else
19128 ac_check_lib_save_LIBS=$LIBS
19129 LIBS="-lc $LIBS"
19130 if test x$gcc_no_link = xyes; then
19131 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19134 /* end confdefs.h. */
19136 /* Override any GCC internal prototype to avoid an error.
19137 Use char because int might match the return type of a GCC
19138 builtin and then its argument prototype would still apply. */
19139 #ifdef __cplusplus
19140 extern "C"
19141 #endif
19142 char strsignal ();
19144 main ()
19146 return strsignal ();
19148 return 0;
19150 _ACEOF
19151 if ac_fn_c_try_link "$LINENO"; then :
19152 ac_cv_lib_c_strsignal=yes
19153 else
19154 ac_cv_lib_c_strsignal=no
19156 rm -f core conftest.err conftest.$ac_objext \
19157 conftest$ac_exeext conftest.$ac_ext
19158 LIBS=$ac_check_lib_save_LIBS
19160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strsignal" >&5
19161 $as_echo "$ac_cv_lib_c_strsignal" >&6; }
19162 if test "x$ac_cv_lib_c_strsignal" = xyes; then :
19164 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
19166 else
19168 $as_echo "#undef HAVE_STRSIGNAL" >>confdefs.h
19172 else
19173 if test "x$ac_cv_lib_c_strsignal" = xyes; then
19175 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
19177 elif test "x$ac_cv_func_strsignal" = xyes; then
19179 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
19181 else
19183 $as_echo "#undef HAVE_STRSIGNAL" >>confdefs.h
19189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strtod" >&5
19190 $as_echo_n "checking m2 front end checking c library for strtod... " >&6; }
19191 if test x$gcc_no_link != xyes; then
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lc" >&5
19193 $as_echo_n "checking for strtod in -lc... " >&6; }
19194 if ${ac_cv_lib_c_strtod+:} false; then :
19195 $as_echo_n "(cached) " >&6
19196 else
19197 ac_check_lib_save_LIBS=$LIBS
19198 LIBS="-lc $LIBS"
19199 if test x$gcc_no_link = xyes; then
19200 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19203 /* end confdefs.h. */
19205 /* Override any GCC internal prototype to avoid an error.
19206 Use char because int might match the return type of a GCC
19207 builtin and then its argument prototype would still apply. */
19208 #ifdef __cplusplus
19209 extern "C"
19210 #endif
19211 char strtod ();
19213 main ()
19215 return strtod ();
19217 return 0;
19219 _ACEOF
19220 if ac_fn_c_try_link "$LINENO"; then :
19221 ac_cv_lib_c_strtod=yes
19222 else
19223 ac_cv_lib_c_strtod=no
19225 rm -f core conftest.err conftest.$ac_objext \
19226 conftest$ac_exeext conftest.$ac_ext
19227 LIBS=$ac_check_lib_save_LIBS
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strtod" >&5
19230 $as_echo "$ac_cv_lib_c_strtod" >&6; }
19231 if test "x$ac_cv_lib_c_strtod" = xyes; then :
19233 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
19235 else
19237 $as_echo "#undef HAVE_STRTOD" >>confdefs.h
19241 else
19242 if test "x$ac_cv_lib_c_strtod" = xyes; then
19244 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
19246 elif test "x$ac_cv_func_strtod" = xyes; then
19248 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
19250 else
19252 $as_echo "#undef HAVE_STRTOD" >>confdefs.h
19258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strtold" >&5
19259 $as_echo_n "checking m2 front end checking c library for strtold... " >&6; }
19260 if test x$gcc_no_link != xyes; then
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold in -lc" >&5
19262 $as_echo_n "checking for strtold in -lc... " >&6; }
19263 if ${ac_cv_lib_c_strtold+:} false; then :
19264 $as_echo_n "(cached) " >&6
19265 else
19266 ac_check_lib_save_LIBS=$LIBS
19267 LIBS="-lc $LIBS"
19268 if test x$gcc_no_link = xyes; then
19269 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19272 /* end confdefs.h. */
19274 /* Override any GCC internal prototype to avoid an error.
19275 Use char because int might match the return type of a GCC
19276 builtin and then its argument prototype would still apply. */
19277 #ifdef __cplusplus
19278 extern "C"
19279 #endif
19280 char strtold ();
19282 main ()
19284 return strtold ();
19286 return 0;
19288 _ACEOF
19289 if ac_fn_c_try_link "$LINENO"; then :
19290 ac_cv_lib_c_strtold=yes
19291 else
19292 ac_cv_lib_c_strtold=no
19294 rm -f core conftest.err conftest.$ac_objext \
19295 conftest$ac_exeext conftest.$ac_ext
19296 LIBS=$ac_check_lib_save_LIBS
19298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strtold" >&5
19299 $as_echo "$ac_cv_lib_c_strtold" >&6; }
19300 if test "x$ac_cv_lib_c_strtold" = xyes; then :
19302 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
19304 else
19306 $as_echo "#undef HAVE_STRTOLD" >>confdefs.h
19310 else
19311 if test "x$ac_cv_lib_c_strtold" = xyes; then
19313 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
19315 elif test "x$ac_cv_func_strtold" = xyes; then
19317 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
19319 else
19321 $as_echo "#undef HAVE_STRTOLD" >>confdefs.h
19327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for times" >&5
19328 $as_echo_n "checking m2 front end checking c library for times... " >&6; }
19329 if test x$gcc_no_link != xyes; then
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for times in -lc" >&5
19331 $as_echo_n "checking for times in -lc... " >&6; }
19332 if ${ac_cv_lib_c_times+:} false; then :
19333 $as_echo_n "(cached) " >&6
19334 else
19335 ac_check_lib_save_LIBS=$LIBS
19336 LIBS="-lc $LIBS"
19337 if test x$gcc_no_link = xyes; then
19338 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19341 /* end confdefs.h. */
19343 /* Override any GCC internal prototype to avoid an error.
19344 Use char because int might match the return type of a GCC
19345 builtin and then its argument prototype would still apply. */
19346 #ifdef __cplusplus
19347 extern "C"
19348 #endif
19349 char times ();
19351 main ()
19353 return times ();
19355 return 0;
19357 _ACEOF
19358 if ac_fn_c_try_link "$LINENO"; then :
19359 ac_cv_lib_c_times=yes
19360 else
19361 ac_cv_lib_c_times=no
19363 rm -f core conftest.err conftest.$ac_objext \
19364 conftest$ac_exeext conftest.$ac_ext
19365 LIBS=$ac_check_lib_save_LIBS
19367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_times" >&5
19368 $as_echo "$ac_cv_lib_c_times" >&6; }
19369 if test "x$ac_cv_lib_c_times" = xyes; then :
19371 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
19373 else
19375 $as_echo "#undef HAVE_TIMES" >>confdefs.h
19379 else
19380 if test "x$ac_cv_lib_c_times" = xyes; then
19382 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
19384 elif test "x$ac_cv_func_times" = xyes; then
19386 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
19388 else
19390 $as_echo "#undef HAVE_TIMES" >>confdefs.h
19396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for timezone" >&5
19397 $as_echo_n "checking m2 front end checking c library for timezone... " >&6; }
19398 if test x$gcc_no_link != xyes; then
19399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone in -lc" >&5
19400 $as_echo_n "checking for timezone in -lc... " >&6; }
19401 if ${ac_cv_lib_c_timezone+:} false; then :
19402 $as_echo_n "(cached) " >&6
19403 else
19404 ac_check_lib_save_LIBS=$LIBS
19405 LIBS="-lc $LIBS"
19406 if test x$gcc_no_link = xyes; then
19407 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19410 /* end confdefs.h. */
19412 /* Override any GCC internal prototype to avoid an error.
19413 Use char because int might match the return type of a GCC
19414 builtin and then its argument prototype would still apply. */
19415 #ifdef __cplusplus
19416 extern "C"
19417 #endif
19418 char timezone ();
19420 main ()
19422 return timezone ();
19424 return 0;
19426 _ACEOF
19427 if ac_fn_c_try_link "$LINENO"; then :
19428 ac_cv_lib_c_timezone=yes
19429 else
19430 ac_cv_lib_c_timezone=no
19432 rm -f core conftest.err conftest.$ac_objext \
19433 conftest$ac_exeext conftest.$ac_ext
19434 LIBS=$ac_check_lib_save_LIBS
19436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_timezone" >&5
19437 $as_echo "$ac_cv_lib_c_timezone" >&6; }
19438 if test "x$ac_cv_lib_c_timezone" = xyes; then :
19440 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
19442 else
19444 $as_echo "#undef HAVE_TIMEZONE" >>confdefs.h
19448 else
19449 if test "x$ac_cv_lib_c_timezone" = xyes; then
19451 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
19453 elif test "x$ac_cv_func_timezone" = xyes; then
19455 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
19457 else
19459 $as_echo "#undef HAVE_TIMEZONE" >>confdefs.h
19465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for tzname" >&5
19466 $as_echo_n "checking m2 front end checking c library for tzname... " >&6; }
19467 if test x$gcc_no_link != xyes; then
19468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname in -lc" >&5
19469 $as_echo_n "checking for tzname in -lc... " >&6; }
19470 if ${ac_cv_lib_c_tzname+:} false; then :
19471 $as_echo_n "(cached) " >&6
19472 else
19473 ac_check_lib_save_LIBS=$LIBS
19474 LIBS="-lc $LIBS"
19475 if test x$gcc_no_link = xyes; then
19476 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19479 /* end confdefs.h. */
19481 /* Override any GCC internal prototype to avoid an error.
19482 Use char because int might match the return type of a GCC
19483 builtin and then its argument prototype would still apply. */
19484 #ifdef __cplusplus
19485 extern "C"
19486 #endif
19487 char tzname ();
19489 main ()
19491 return tzname ();
19493 return 0;
19495 _ACEOF
19496 if ac_fn_c_try_link "$LINENO"; then :
19497 ac_cv_lib_c_tzname=yes
19498 else
19499 ac_cv_lib_c_tzname=no
19501 rm -f core conftest.err conftest.$ac_objext \
19502 conftest$ac_exeext conftest.$ac_ext
19503 LIBS=$ac_check_lib_save_LIBS
19505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_tzname" >&5
19506 $as_echo "$ac_cv_lib_c_tzname" >&6; }
19507 if test "x$ac_cv_lib_c_tzname" = xyes; then :
19509 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19511 else
19513 $as_echo "#undef HAVE_TZNAME" >>confdefs.h
19517 else
19518 if test "x$ac_cv_lib_c_tzname" = xyes; then
19520 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19522 elif test "x$ac_cv_func_tzname" = xyes; then
19524 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19526 else
19528 $as_echo "#undef HAVE_TZNAME" >>confdefs.h
19534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for unlink" >&5
19535 $as_echo_n "checking m2 front end checking c library for unlink... " >&6; }
19536 if test x$gcc_no_link != xyes; then
19537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unlink in -lc" >&5
19538 $as_echo_n "checking for unlink in -lc... " >&6; }
19539 if ${ac_cv_lib_c_unlink+:} false; then :
19540 $as_echo_n "(cached) " >&6
19541 else
19542 ac_check_lib_save_LIBS=$LIBS
19543 LIBS="-lc $LIBS"
19544 if test x$gcc_no_link = xyes; then
19545 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19548 /* end confdefs.h. */
19550 /* Override any GCC internal prototype to avoid an error.
19551 Use char because int might match the return type of a GCC
19552 builtin and then its argument prototype would still apply. */
19553 #ifdef __cplusplus
19554 extern "C"
19555 #endif
19556 char unlink ();
19558 main ()
19560 return unlink ();
19562 return 0;
19564 _ACEOF
19565 if ac_fn_c_try_link "$LINENO"; then :
19566 ac_cv_lib_c_unlink=yes
19567 else
19568 ac_cv_lib_c_unlink=no
19570 rm -f core conftest.err conftest.$ac_objext \
19571 conftest$ac_exeext conftest.$ac_ext
19572 LIBS=$ac_check_lib_save_LIBS
19574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_unlink" >&5
19575 $as_echo "$ac_cv_lib_c_unlink" >&6; }
19576 if test "x$ac_cv_lib_c_unlink" = xyes; then :
19578 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
19580 else
19582 $as_echo "#undef HAVE_UNLINK" >>confdefs.h
19586 else
19587 if test "x$ac_cv_lib_c_unlink" = xyes; then
19589 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
19591 elif test "x$ac_cv_func_unlink" = xyes; then
19593 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
19595 else
19597 $as_echo "#undef HAVE_UNLINK" >>confdefs.h
19603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for wait" >&5
19604 $as_echo_n "checking m2 front end checking c library for wait... " >&6; }
19605 if test x$gcc_no_link != xyes; then
19606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait in -lc" >&5
19607 $as_echo_n "checking for wait in -lc... " >&6; }
19608 if ${ac_cv_lib_c_wait+:} false; then :
19609 $as_echo_n "(cached) " >&6
19610 else
19611 ac_check_lib_save_LIBS=$LIBS
19612 LIBS="-lc $LIBS"
19613 if test x$gcc_no_link = xyes; then
19614 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19617 /* end confdefs.h. */
19619 /* Override any GCC internal prototype to avoid an error.
19620 Use char because int might match the return type of a GCC
19621 builtin and then its argument prototype would still apply. */
19622 #ifdef __cplusplus
19623 extern "C"
19624 #endif
19625 char wait ();
19627 main ()
19629 return wait ();
19631 return 0;
19633 _ACEOF
19634 if ac_fn_c_try_link "$LINENO"; then :
19635 ac_cv_lib_c_wait=yes
19636 else
19637 ac_cv_lib_c_wait=no
19639 rm -f core conftest.err conftest.$ac_objext \
19640 conftest$ac_exeext conftest.$ac_ext
19641 LIBS=$ac_check_lib_save_LIBS
19643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_wait" >&5
19644 $as_echo "$ac_cv_lib_c_wait" >&6; }
19645 if test "x$ac_cv_lib_c_wait" = xyes; then :
19647 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
19649 else
19651 $as_echo "#undef HAVE_WAIT" >>confdefs.h
19655 else
19656 if test "x$ac_cv_lib_c_wait" = xyes; then
19658 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
19660 elif test "x$ac_cv_func_wait" = xyes; then
19662 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
19664 else
19666 $as_echo "#undef HAVE_WAIT" >>confdefs.h
19672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for write" >&5
19673 $as_echo_n "checking m2 front end checking c library for write... " >&6; }
19674 if test x$gcc_no_link != xyes; then
19675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for write in -lc" >&5
19676 $as_echo_n "checking for write in -lc... " >&6; }
19677 if ${ac_cv_lib_c_write+:} false; then :
19678 $as_echo_n "(cached) " >&6
19679 else
19680 ac_check_lib_save_LIBS=$LIBS
19681 LIBS="-lc $LIBS"
19682 if test x$gcc_no_link = xyes; then
19683 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19686 /* end confdefs.h. */
19688 /* Override any GCC internal prototype to avoid an error.
19689 Use char because int might match the return type of a GCC
19690 builtin and then its argument prototype would still apply. */
19691 #ifdef __cplusplus
19692 extern "C"
19693 #endif
19694 char write ();
19696 main ()
19698 return write ();
19700 return 0;
19702 _ACEOF
19703 if ac_fn_c_try_link "$LINENO"; then :
19704 ac_cv_lib_c_write=yes
19705 else
19706 ac_cv_lib_c_write=no
19708 rm -f core conftest.err conftest.$ac_objext \
19709 conftest$ac_exeext conftest.$ac_ext
19710 LIBS=$ac_check_lib_save_LIBS
19712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_write" >&5
19713 $as_echo "$ac_cv_lib_c_write" >&6; }
19714 if test "x$ac_cv_lib_c_write" = xyes; then :
19716 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
19718 else
19720 $as_echo "#undef HAVE_WRITE" >>confdefs.h
19724 else
19725 if test "x$ac_cv_lib_c_write" = xyes; then
19727 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
19729 elif test "x$ac_cv_func_write" = xyes; then
19731 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
19733 else
19735 $as_echo "#undef HAVE_WRITE" >>confdefs.h
19742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbit" >&5
19743 $as_echo_n "checking m2 front end checking m library for signbit... " >&6; }
19744 if test x$gcc_no_link != xyes; then
19745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit in -lm" >&5
19746 $as_echo_n "checking for signbit in -lm... " >&6; }
19747 if ${ac_cv_lib_m_signbit+:} false; then :
19748 $as_echo_n "(cached) " >&6
19749 else
19750 ac_check_lib_save_LIBS=$LIBS
19751 LIBS="-lm $LIBS"
19752 if test x$gcc_no_link = xyes; then
19753 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19756 /* end confdefs.h. */
19758 /* Override any GCC internal prototype to avoid an error.
19759 Use char because int might match the return type of a GCC
19760 builtin and then its argument prototype would still apply. */
19761 #ifdef __cplusplus
19762 extern "C"
19763 #endif
19764 char signbit ();
19766 main ()
19768 return signbit ();
19770 return 0;
19772 _ACEOF
19773 if ac_fn_c_try_link "$LINENO"; then :
19774 ac_cv_lib_m_signbit=yes
19775 else
19776 ac_cv_lib_m_signbit=no
19778 rm -f core conftest.err conftest.$ac_objext \
19779 conftest$ac_exeext conftest.$ac_ext
19780 LIBS=$ac_check_lib_save_LIBS
19782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbit" >&5
19783 $as_echo "$ac_cv_lib_m_signbit" >&6; }
19784 if test "x$ac_cv_lib_m_signbit" = xyes; then :
19786 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
19788 else
19790 $as_echo "#undef HAVE_SIGNBIT" >>confdefs.h
19794 else
19795 if test "x$ac_cv_lib_m_signbit" = xyes; then
19797 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
19799 elif test "x$ac_cv_func_signbit" = xyes; then
19801 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
19803 else
19805 $as_echo "#undef HAVE_SIGNBIT" >>confdefs.h
19811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbitf" >&5
19812 $as_echo_n "checking m2 front end checking m library for signbitf... " >&6; }
19813 if test x$gcc_no_link != xyes; then
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbitf in -lm" >&5
19815 $as_echo_n "checking for signbitf in -lm... " >&6; }
19816 if ${ac_cv_lib_m_signbitf+:} false; then :
19817 $as_echo_n "(cached) " >&6
19818 else
19819 ac_check_lib_save_LIBS=$LIBS
19820 LIBS="-lm $LIBS"
19821 if test x$gcc_no_link = xyes; then
19822 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19825 /* end confdefs.h. */
19827 /* Override any GCC internal prototype to avoid an error.
19828 Use char because int might match the return type of a GCC
19829 builtin and then its argument prototype would still apply. */
19830 #ifdef __cplusplus
19831 extern "C"
19832 #endif
19833 char signbitf ();
19835 main ()
19837 return signbitf ();
19839 return 0;
19841 _ACEOF
19842 if ac_fn_c_try_link "$LINENO"; then :
19843 ac_cv_lib_m_signbitf=yes
19844 else
19845 ac_cv_lib_m_signbitf=no
19847 rm -f core conftest.err conftest.$ac_objext \
19848 conftest$ac_exeext conftest.$ac_ext
19849 LIBS=$ac_check_lib_save_LIBS
19851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbitf" >&5
19852 $as_echo "$ac_cv_lib_m_signbitf" >&6; }
19853 if test "x$ac_cv_lib_m_signbitf" = xyes; then :
19855 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
19857 else
19859 $as_echo "#undef HAVE_SIGNBITF" >>confdefs.h
19863 else
19864 if test "x$ac_cv_lib_m_signbitf" = xyes; then
19866 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
19868 elif test "x$ac_cv_func_signbitf" = xyes; then
19870 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
19872 else
19874 $as_echo "#undef HAVE_SIGNBITF" >>confdefs.h
19880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbitl" >&5
19881 $as_echo_n "checking m2 front end checking m library for signbitl... " >&6; }
19882 if test x$gcc_no_link != xyes; then
19883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbitl in -lm" >&5
19884 $as_echo_n "checking for signbitl in -lm... " >&6; }
19885 if ${ac_cv_lib_m_signbitl+:} false; then :
19886 $as_echo_n "(cached) " >&6
19887 else
19888 ac_check_lib_save_LIBS=$LIBS
19889 LIBS="-lm $LIBS"
19890 if test x$gcc_no_link = xyes; then
19891 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19894 /* end confdefs.h. */
19896 /* Override any GCC internal prototype to avoid an error.
19897 Use char because int might match the return type of a GCC
19898 builtin and then its argument prototype would still apply. */
19899 #ifdef __cplusplus
19900 extern "C"
19901 #endif
19902 char signbitl ();
19904 main ()
19906 return signbitl ();
19908 return 0;
19910 _ACEOF
19911 if ac_fn_c_try_link "$LINENO"; then :
19912 ac_cv_lib_m_signbitl=yes
19913 else
19914 ac_cv_lib_m_signbitl=no
19916 rm -f core conftest.err conftest.$ac_objext \
19917 conftest$ac_exeext conftest.$ac_ext
19918 LIBS=$ac_check_lib_save_LIBS
19920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbitl" >&5
19921 $as_echo "$ac_cv_lib_m_signbitl" >&6; }
19922 if test "x$ac_cv_lib_m_signbitl" = xyes; then :
19924 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
19926 else
19928 $as_echo "#undef HAVE_SIGNBITL" >>confdefs.h
19932 else
19933 if test "x$ac_cv_lib_m_signbitl" = xyes; then
19935 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
19937 elif test "x$ac_cv_func_signbitl" = xyes; then
19939 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
19941 else
19943 $as_echo "#undef HAVE_SIGNBITL" >>confdefs.h
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: libgm2 has finished checking target libc and libm contents." >&5
19950 $as_echo "$as_me: libgm2 has finished checking target libc and libm contents." >&6;}
19952 # We test the host here and later on check the target.
19954 # All known M2_HOST_OS values. This is the union of all host operating systems
19955 # supported by gm2.
19957 M2_SUPPORTED_HOST_OS="aix freebsd hurd linux netbsd openbsd solaris windows darwin"
19959 M2_HOST_OS=unknown
19961 case ${host} in
19962 *-*-darwin*) M2_HOST_OS=darwin ;;
19963 *-*-freebsd*) M2_HOST_OS=freebsd ;;
19964 *-*-linux*) M2_HOST_OS=linux ;;
19965 *-*-netbsd*) M2_HOST_OS=netbsd ;;
19966 *-*-openbsd*) M2_HOST_OS=openbsd ;;
19967 *-*-solaris2*) M2_HOST_OS=solaris ;;
19968 *-*-aix*) M2_HOST_OS=aix ;;
19969 *-*-gnu*) M2_HOST_OS=hurd ;;
19970 esac
19972 M2_TARGET_OS=unknown
19974 case ${target} in
19975 *-*-darwin*) M2_TARGET_OS=darwin ;;
19976 *-*-freebsd*) M2_TARGET_OS=freebsd ;;
19977 *-*-linux*) M2_TARGET_OS=linux ;;
19978 *-*-netbsd*) M2_TARGET_OS=netbsd ;;
19979 *-*-openbsd*) M2_TARGET_OS=openbsd ;;
19980 *-*-solaris2*) M2_TARGET_OS=solaris ;;
19981 *-*-aix*) M2_TARGET_OS=aix ;;
19982 *-*-gnu*) M2_TARGET_OS=hurd ;;
19983 esac
19985 # M2_HOST_OS=unknown
19986 if test x${M2_HOST_OS} = xunknown; then
19987 { $as_echo "$as_me:${as_lineno-$LINENO}: unsupported host, will build a minimal m2 library" >&5
19988 $as_echo "$as_me: unsupported host, will build a minimal m2 library" >&6;}
19989 BUILD_PIMLIB=false
19990 BUILD_ISOLIB=false
19991 BUILD_CORLIB=false
19992 BUILD_LOGLIB=false
19993 else
19994 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 library will be built on ${M2_HOST_OS}" >&5
19995 $as_echo "$as_me: m2 library will be built on ${M2_HOST_OS}" >&6;}
19996 BUILD_PIMLIB=true
19997 BUILD_ISOLIB=true
19998 BUILD_CORLIB=true
19999 BUILD_LOGLIB=true
20002 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
20005 # Propagate GM2_FOR_TARGET into Makefiles
20006 GM2_FOR_TARGET=${GM2_FOR_TARGET:-gcc}
20009 # Now we check the target as long as it is a supported host.
20010 # For some embedded targets we choose minimal runtime system which is
20011 # just enough to satisfy the linker targetting raw metal.
20012 if test x${M2_HOST_OS} != xunknown; then
20013 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 library building for target ${target}" >&5
20014 $as_echo "$as_me: m2 library building for target ${target}" >&6;}
20015 case "$target" in
20017 avr25*-*-* | avr31*-*-* | avr35*-*-* | avr4*-*-* | avr5*-*-* | avr51*-*-* | avr6*-*-*)
20018 BUILD_PIMLIB=false
20019 BUILD_ISOLIB=false
20020 BUILD_CORLIB=false
20021 BUILD_LOGLIB=false
20024 avrxmega2*-*-* | avrxmega4*-*-* | avrxmega5*-*-* | avrxmega6*-*-* | avrxmega7*-*-*)
20025 BUILD_PIMLIB=false
20026 BUILD_ISOLIB=false
20027 BUILD_CORLIB=false
20028 BUILD_LOGLIB=false
20031 avr3-*-*)
20032 BUILD_PIMLIB=true
20033 BUILD_ISOLIB=true
20034 BUILD_CORLIB=true
20035 BUILD_LOGLIB=true
20037 esp32-*-*)
20038 BUILD_PIMLIB=false
20039 BUILD_ISOLIB=false
20040 BUILD_CORLIB=false
20041 BUILD_LOGLIB=false
20044 esac
20047 # GM2_MSG_RESULT issue a query message from the first parameter and a boolean result
20048 # in the second parameter is printed as a "yes" or "no".
20052 if test x${M2_HOST_OS} = xunknown; then
20053 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 front end will only build minimal Modula-2 runtime library on this host" >&5
20054 $as_echo "$as_me: m2 front end will only build minimal Modula-2 runtime library on this host" >&6;}
20055 else
20057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build PIM libraries:" >&5
20058 $as_echo_n "checking m2 front end will build PIM libraries:... " >&6; }
20059 if test x${BUILD_PIMLIB} = xtrue; then
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20061 $as_echo "yes" >&6; }
20062 else
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20064 $as_echo "no" >&6; }
20068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build ISO libraries:" >&5
20069 $as_echo_n "checking m2 front end will build ISO libraries:... " >&6; }
20070 if test x${BUILD_ISOLIB} = xtrue; then
20071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20072 $as_echo "yes" >&6; }
20073 else
20074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20075 $as_echo "no" >&6; }
20079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build coroutine libraries:" >&5
20080 $as_echo_n "checking m2 front end will build coroutine libraries:... " >&6; }
20081 if test x${BUILD_CORLIB} = xtrue; then
20082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20083 $as_echo "yes" >&6; }
20084 else
20085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20086 $as_echo "no" >&6; }
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build Logitech compatability libraries:" >&5
20091 $as_echo_n "checking m2 front end will build Logitech compatability libraries:... " >&6; }
20092 if test x${BUILD_LOGLIB} = xtrue; then
20093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20094 $as_echo "yes" >&6; }
20095 else
20096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20097 $as_echo "no" >&6; }
20102 if test x$BUILD_PIMLIB = xtrue; then
20103 BUILD_PIMLIB_TRUE=
20104 BUILD_PIMLIB_FALSE='#'
20105 else
20106 BUILD_PIMLIB_TRUE='#'
20107 BUILD_PIMLIB_FALSE=
20110 if test x$BUILD_ISOLIB = xtrue; then
20111 BUILD_ISOLIB_TRUE=
20112 BUILD_ISOLIB_FALSE='#'
20113 else
20114 BUILD_ISOLIB_TRUE='#'
20115 BUILD_ISOLIB_FALSE=
20118 if test x$BUILD_CORLIB = xtrue; then
20119 BUILD_CORLIB_TRUE=
20120 BUILD_CORLIB_FALSE='#'
20121 else
20122 BUILD_CORLIB_TRUE='#'
20123 BUILD_CORLIB_FALSE=
20126 if test x$BUILD_LOGLIB = xtrue; then
20127 BUILD_LOGLIB_TRUE=
20128 BUILD_LOGLIB_FALSE='#'
20129 else
20130 BUILD_LOGLIB_TRUE='#'
20131 BUILD_LOGLIB_FALSE=
20134 if test x$M2_TARGET_OS = xdarwin; then
20135 TARGET_DARWIN_TRUE=
20136 TARGET_DARWIN_FALSE='#'
20137 else
20138 TARGET_DARWIN_TRUE='#'
20139 TARGET_DARWIN_FALSE=
20143 # Determine what GCC version number to use in filesystem paths.
20145 get_gcc_base_ver="cat"
20147 # Check whether --with-gcc-major-version-only was given.
20148 if test "${with_gcc_major_version_only+set}" = set; then :
20149 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
20150 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
20159 ac_config_files="$ac_config_files Makefile"
20162 ac_config_files="$ac_config_files libm2min/Makefile libm2pim/Makefile libm2iso/Makefile libm2cor/Makefile libm2log/Makefile"
20165 { $as_echo "$as_me:${as_lineno-$LINENO}: libgm2 has been configured." >&5
20166 $as_echo "$as_me: libgm2 has been configured." >&6;}
20168 cat >confcache <<\_ACEOF
20169 # This file is a shell script that caches the results of configure
20170 # tests run on this system so they can be shared between configure
20171 # scripts and configure runs, see configure's option --config-cache.
20172 # It is not useful on other systems. If it contains results you don't
20173 # want to keep, you may remove or edit it.
20175 # config.status only pays attention to the cache file if you give it
20176 # the --recheck option to rerun configure.
20178 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20179 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20180 # following values.
20182 _ACEOF
20184 # The following way of writing the cache mishandles newlines in values,
20185 # but we know of no workaround that is simple, portable, and efficient.
20186 # So, we kill variables containing newlines.
20187 # Ultrix sh set writes to stderr and can't be redirected directly,
20188 # and sets the high bit in the cache file unless we assign to the vars.
20190 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20191 eval ac_val=\$$ac_var
20192 case $ac_val in #(
20193 *${as_nl}*)
20194 case $ac_var in #(
20195 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20196 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20197 esac
20198 case $ac_var in #(
20199 _ | IFS | as_nl) ;; #(
20200 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20201 *) { eval $ac_var=; unset $ac_var;} ;;
20202 esac ;;
20203 esac
20204 done
20206 (set) 2>&1 |
20207 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20208 *${as_nl}ac_space=\ *)
20209 # `set' does not quote correctly, so add quotes: double-quote
20210 # substitution turns \\\\ into \\, and sed turns \\ into \.
20211 sed -n \
20212 "s/'/'\\\\''/g;
20213 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20214 ;; #(
20216 # `set' quotes correctly as required by POSIX, so do not add quotes.
20217 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20219 esac |
20220 sort
20222 sed '
20223 /^ac_cv_env_/b end
20224 t clear
20225 :clear
20226 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20227 t end
20228 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20229 :end' >>confcache
20230 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20231 if test -w "$cache_file"; then
20232 if test "x$cache_file" != "x/dev/null"; then
20233 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20234 $as_echo "$as_me: updating cache $cache_file" >&6;}
20235 if test ! -f "$cache_file" || test -h "$cache_file"; then
20236 cat confcache >"$cache_file"
20237 else
20238 case $cache_file in #(
20239 */* | ?:*)
20240 mv -f confcache "$cache_file"$$ &&
20241 mv -f "$cache_file"$$ "$cache_file" ;; #(
20243 mv -f confcache "$cache_file" ;;
20244 esac
20247 else
20248 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20249 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20252 rm -f confcache
20254 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20255 # Let make expand exec_prefix.
20256 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20258 DEFS=-DHAVE_CONFIG_H
20260 ac_libobjs=
20261 ac_ltlibobjs=
20263 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20264 # 1. Remove the extension, and $U if already installed.
20265 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20266 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20267 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20268 # will be set to the directory where LIBOBJS objects are built.
20269 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20270 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20271 done
20272 LIBOBJS=$ac_libobjs
20274 LTLIBOBJS=$ac_ltlibobjs
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20278 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20279 if test -n "$am_sleep_pid"; then
20280 # Hide warnings about reused PIDs.
20281 wait $am_sleep_pid 2>/dev/null
20283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20284 $as_echo "done" >&6; }
20285 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20286 as_fn_error $? "conditional \"AMDEP\" was never defined.
20287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20289 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20290 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20293 if test -n "$EXEEXT"; then
20294 am__EXEEXT_TRUE=
20295 am__EXEEXT_FALSE='#'
20296 else
20297 am__EXEEXT_TRUE='#'
20298 am__EXEEXT_FALSE=
20301 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20302 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20303 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20305 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20306 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20307 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20309 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
20310 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
20311 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20313 if test -z "${BUILD_PIMLIB_TRUE}" && test -z "${BUILD_PIMLIB_FALSE}"; then
20314 as_fn_error $? "conditional \"BUILD_PIMLIB\" was never defined.
20315 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20317 if test -z "${BUILD_ISOLIB_TRUE}" && test -z "${BUILD_ISOLIB_FALSE}"; then
20318 as_fn_error $? "conditional \"BUILD_ISOLIB\" was never defined.
20319 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20321 if test -z "${BUILD_CORLIB_TRUE}" && test -z "${BUILD_CORLIB_FALSE}"; then
20322 as_fn_error $? "conditional \"BUILD_CORLIB\" was never defined.
20323 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20325 if test -z "${BUILD_LOGLIB_TRUE}" && test -z "${BUILD_LOGLIB_FALSE}"; then
20326 as_fn_error $? "conditional \"BUILD_LOGLIB\" was never defined.
20327 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20329 if test -z "${TARGET_DARWIN_TRUE}" && test -z "${TARGET_DARWIN_FALSE}"; then
20330 as_fn_error $? "conditional \"TARGET_DARWIN\" was never defined.
20331 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20334 : "${CONFIG_STATUS=./config.status}"
20335 ac_write_fail=0
20336 ac_clean_files_save=$ac_clean_files
20337 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20339 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20340 as_write_fail=0
20341 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20342 #! $SHELL
20343 # Generated by $as_me.
20344 # Run this file to recreate the current configuration.
20345 # Compiler output produced by configure, useful for debugging
20346 # configure, is in config.log if it exists.
20348 debug=false
20349 ac_cs_recheck=false
20350 ac_cs_silent=false
20352 SHELL=\${CONFIG_SHELL-$SHELL}
20353 export SHELL
20354 _ASEOF
20355 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20356 ## -------------------- ##
20357 ## M4sh Initialization. ##
20358 ## -------------------- ##
20360 # Be more Bourne compatible
20361 DUALCASE=1; export DUALCASE # for MKS sh
20362 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20363 emulate sh
20364 NULLCMD=:
20365 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20366 # is contrary to our usage. Disable this feature.
20367 alias -g '${1+"$@"}'='"$@"'
20368 setopt NO_GLOB_SUBST
20369 else
20370 case `(set -o) 2>/dev/null` in #(
20371 *posix*) :
20372 set -o posix ;; #(
20373 *) :
20375 esac
20379 as_nl='
20381 export as_nl
20382 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20383 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20384 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20385 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20386 # Prefer a ksh shell builtin over an external printf program on Solaris,
20387 # but without wasting forks for bash or zsh.
20388 if test -z "$BASH_VERSION$ZSH_VERSION" \
20389 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20390 as_echo='print -r --'
20391 as_echo_n='print -rn --'
20392 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20393 as_echo='printf %s\n'
20394 as_echo_n='printf %s'
20395 else
20396 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20397 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20398 as_echo_n='/usr/ucb/echo -n'
20399 else
20400 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20401 as_echo_n_body='eval
20402 arg=$1;
20403 case $arg in #(
20404 *"$as_nl"*)
20405 expr "X$arg" : "X\\(.*\\)$as_nl";
20406 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20407 esac;
20408 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20410 export as_echo_n_body
20411 as_echo_n='sh -c $as_echo_n_body as_echo'
20413 export as_echo_body
20414 as_echo='sh -c $as_echo_body as_echo'
20417 # The user is always right.
20418 if test "${PATH_SEPARATOR+set}" != set; then
20419 PATH_SEPARATOR=:
20420 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20421 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20422 PATH_SEPARATOR=';'
20427 # IFS
20428 # We need space, tab and new line, in precisely that order. Quoting is
20429 # there to prevent editors from complaining about space-tab.
20430 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20431 # splitting by setting IFS to empty value.)
20432 IFS=" "" $as_nl"
20434 # Find who we are. Look in the path if we contain no directory separator.
20435 as_myself=
20436 case $0 in #((
20437 *[\\/]* ) as_myself=$0 ;;
20438 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20439 for as_dir in $PATH
20441 IFS=$as_save_IFS
20442 test -z "$as_dir" && as_dir=.
20443 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20444 done
20445 IFS=$as_save_IFS
20448 esac
20449 # We did not find ourselves, most probably we were run as `sh COMMAND'
20450 # in which case we are not to be found in the path.
20451 if test "x$as_myself" = x; then
20452 as_myself=$0
20454 if test ! -f "$as_myself"; then
20455 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20456 exit 1
20459 # Unset variables that we do not need and which cause bugs (e.g. in
20460 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20461 # suppresses any "Segmentation fault" message there. '((' could
20462 # trigger a bug in pdksh 5.2.14.
20463 for as_var in BASH_ENV ENV MAIL MAILPATH
20464 do eval test x\${$as_var+set} = xset \
20465 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20466 done
20467 PS1='$ '
20468 PS2='> '
20469 PS4='+ '
20471 # NLS nuisances.
20472 LC_ALL=C
20473 export LC_ALL
20474 LANGUAGE=C
20475 export LANGUAGE
20477 # CDPATH.
20478 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20481 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20482 # ----------------------------------------
20483 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20484 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20485 # script with STATUS, using 1 if that was 0.
20486 as_fn_error ()
20488 as_status=$1; test $as_status -eq 0 && as_status=1
20489 if test "$4"; then
20490 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20491 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20493 $as_echo "$as_me: error: $2" >&2
20494 as_fn_exit $as_status
20495 } # as_fn_error
20498 # as_fn_set_status STATUS
20499 # -----------------------
20500 # Set $? to STATUS, without forking.
20501 as_fn_set_status ()
20503 return $1
20504 } # as_fn_set_status
20506 # as_fn_exit STATUS
20507 # -----------------
20508 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20509 as_fn_exit ()
20511 set +e
20512 as_fn_set_status $1
20513 exit $1
20514 } # as_fn_exit
20516 # as_fn_unset VAR
20517 # ---------------
20518 # Portably unset VAR.
20519 as_fn_unset ()
20521 { eval $1=; unset $1;}
20523 as_unset=as_fn_unset
20524 # as_fn_append VAR VALUE
20525 # ----------------------
20526 # Append the text in VALUE to the end of the definition contained in VAR. Take
20527 # advantage of any shell optimizations that allow amortized linear growth over
20528 # repeated appends, instead of the typical quadratic growth present in naive
20529 # implementations.
20530 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20531 eval 'as_fn_append ()
20533 eval $1+=\$2
20535 else
20536 as_fn_append ()
20538 eval $1=\$$1\$2
20540 fi # as_fn_append
20542 # as_fn_arith ARG...
20543 # ------------------
20544 # Perform arithmetic evaluation on the ARGs, and store the result in the
20545 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20546 # must be portable across $(()) and expr.
20547 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20548 eval 'as_fn_arith ()
20550 as_val=$(( $* ))
20552 else
20553 as_fn_arith ()
20555 as_val=`expr "$@" || test $? -eq 1`
20557 fi # as_fn_arith
20560 if expr a : '\(a\)' >/dev/null 2>&1 &&
20561 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20562 as_expr=expr
20563 else
20564 as_expr=false
20567 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20568 as_basename=basename
20569 else
20570 as_basename=false
20573 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20574 as_dirname=dirname
20575 else
20576 as_dirname=false
20579 as_me=`$as_basename -- "$0" ||
20580 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20581 X"$0" : 'X\(//\)$' \| \
20582 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20583 $as_echo X/"$0" |
20584 sed '/^.*\/\([^/][^/]*\)\/*$/{
20585 s//\1/
20588 /^X\/\(\/\/\)$/{
20589 s//\1/
20592 /^X\/\(\/\).*/{
20593 s//\1/
20596 s/.*/./; q'`
20598 # Avoid depending upon Character Ranges.
20599 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20600 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20601 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20602 as_cr_digits='0123456789'
20603 as_cr_alnum=$as_cr_Letters$as_cr_digits
20605 ECHO_C= ECHO_N= ECHO_T=
20606 case `echo -n x` in #(((((
20607 -n*)
20608 case `echo 'xy\c'` in
20609 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20610 xy) ECHO_C='\c';;
20611 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20612 ECHO_T=' ';;
20613 esac;;
20615 ECHO_N='-n';;
20616 esac
20618 rm -f conf$$ conf$$.exe conf$$.file
20619 if test -d conf$$.dir; then
20620 rm -f conf$$.dir/conf$$.file
20621 else
20622 rm -f conf$$.dir
20623 mkdir conf$$.dir 2>/dev/null
20625 if (echo >conf$$.file) 2>/dev/null; then
20626 if ln -s conf$$.file conf$$ 2>/dev/null; then
20627 as_ln_s='ln -s'
20628 # ... but there are two gotchas:
20629 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20630 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20631 # In both cases, we have to default to `cp -pR'.
20632 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20633 as_ln_s='cp -pR'
20634 elif ln conf$$.file conf$$ 2>/dev/null; then
20635 as_ln_s=ln
20636 else
20637 as_ln_s='cp -pR'
20639 else
20640 as_ln_s='cp -pR'
20642 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20643 rmdir conf$$.dir 2>/dev/null
20646 # as_fn_mkdir_p
20647 # -------------
20648 # Create "$as_dir" as a directory, including parents if necessary.
20649 as_fn_mkdir_p ()
20652 case $as_dir in #(
20653 -*) as_dir=./$as_dir;;
20654 esac
20655 test -d "$as_dir" || eval $as_mkdir_p || {
20656 as_dirs=
20657 while :; do
20658 case $as_dir in #(
20659 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20660 *) as_qdir=$as_dir;;
20661 esac
20662 as_dirs="'$as_qdir' $as_dirs"
20663 as_dir=`$as_dirname -- "$as_dir" ||
20664 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20665 X"$as_dir" : 'X\(//\)[^/]' \| \
20666 X"$as_dir" : 'X\(//\)$' \| \
20667 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20668 $as_echo X"$as_dir" |
20669 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20670 s//\1/
20673 /^X\(\/\/\)[^/].*/{
20674 s//\1/
20677 /^X\(\/\/\)$/{
20678 s//\1/
20681 /^X\(\/\).*/{
20682 s//\1/
20685 s/.*/./; q'`
20686 test -d "$as_dir" && break
20687 done
20688 test -z "$as_dirs" || eval "mkdir $as_dirs"
20689 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20692 } # as_fn_mkdir_p
20693 if mkdir -p . 2>/dev/null; then
20694 as_mkdir_p='mkdir -p "$as_dir"'
20695 else
20696 test -d ./-p && rmdir ./-p
20697 as_mkdir_p=false
20701 # as_fn_executable_p FILE
20702 # -----------------------
20703 # Test if FILE is an executable regular file.
20704 as_fn_executable_p ()
20706 test -f "$1" && test -x "$1"
20707 } # as_fn_executable_p
20708 as_test_x='test -x'
20709 as_executable_p=as_fn_executable_p
20711 # Sed expression to map a string onto a valid CPP name.
20712 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20714 # Sed expression to map a string onto a valid variable name.
20715 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20718 exec 6>&1
20719 ## ----------------------------------- ##
20720 ## Main body of $CONFIG_STATUS script. ##
20721 ## ----------------------------------- ##
20722 _ASEOF
20723 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20726 # Save the log message, to keep $0 and so on meaningful, and to
20727 # report actual input values of CONFIG_FILES etc. instead of their
20728 # values after options handling.
20729 ac_log="
20730 This file was extended by package-unused $as_me version-unused, which was
20731 generated by GNU Autoconf 2.69. Invocation command line was
20733 CONFIG_FILES = $CONFIG_FILES
20734 CONFIG_HEADERS = $CONFIG_HEADERS
20735 CONFIG_LINKS = $CONFIG_LINKS
20736 CONFIG_COMMANDS = $CONFIG_COMMANDS
20737 $ $0 $@
20739 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20742 _ACEOF
20744 case $ac_config_files in *"
20745 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20746 esac
20748 case $ac_config_headers in *"
20749 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20750 esac
20753 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20754 # Files that config.status was made for.
20755 config_files="$ac_config_files"
20756 config_headers="$ac_config_headers"
20757 config_commands="$ac_config_commands"
20759 _ACEOF
20761 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20762 ac_cs_usage="\
20763 \`$as_me' instantiates files and other configuration actions
20764 from templates according to the current configuration. Unless the files
20765 and actions are specified as TAGs, all are instantiated by default.
20767 Usage: $0 [OPTION]... [TAG]...
20769 -h, --help print this help, then exit
20770 -V, --version print version number and configuration settings, then exit
20771 --config print configuration, then exit
20772 -q, --quiet, --silent
20773 do not print progress messages
20774 -d, --debug don't remove temporary files
20775 --recheck update $as_me by reconfiguring in the same conditions
20776 --file=FILE[:TEMPLATE]
20777 instantiate the configuration file FILE
20778 --header=FILE[:TEMPLATE]
20779 instantiate the configuration header FILE
20781 Configuration files:
20782 $config_files
20784 Configuration headers:
20785 $config_headers
20787 Configuration commands:
20788 $config_commands
20790 Report bugs to the package provider."
20792 _ACEOF
20793 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20794 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20795 ac_cs_version="\\
20796 package-unused config.status version-unused
20797 configured by $0, generated by GNU Autoconf 2.69,
20798 with options \\"\$ac_cs_config\\"
20800 Copyright (C) 2012 Free Software Foundation, Inc.
20801 This config.status script is free software; the Free Software Foundation
20802 gives unlimited permission to copy, distribute and modify it."
20804 ac_pwd='$ac_pwd'
20805 srcdir='$srcdir'
20806 INSTALL='$INSTALL'
20807 MKDIR_P='$MKDIR_P'
20808 AWK='$AWK'
20809 test -n "\$AWK" || AWK=awk
20810 _ACEOF
20812 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20813 # The default lists apply if the user does not specify any file.
20814 ac_need_defaults=:
20815 while test $# != 0
20817 case $1 in
20818 --*=?*)
20819 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20820 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20821 ac_shift=:
20823 --*=)
20824 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20825 ac_optarg=
20826 ac_shift=:
20829 ac_option=$1
20830 ac_optarg=$2
20831 ac_shift=shift
20833 esac
20835 case $ac_option in
20836 # Handling of the options.
20837 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20838 ac_cs_recheck=: ;;
20839 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20840 $as_echo "$ac_cs_version"; exit ;;
20841 --config | --confi | --conf | --con | --co | --c )
20842 $as_echo "$ac_cs_config"; exit ;;
20843 --debug | --debu | --deb | --de | --d | -d )
20844 debug=: ;;
20845 --file | --fil | --fi | --f )
20846 $ac_shift
20847 case $ac_optarg in
20848 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20849 '') as_fn_error $? "missing file argument" ;;
20850 esac
20851 as_fn_append CONFIG_FILES " '$ac_optarg'"
20852 ac_need_defaults=false;;
20853 --header | --heade | --head | --hea )
20854 $ac_shift
20855 case $ac_optarg in
20856 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20857 esac
20858 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20859 ac_need_defaults=false;;
20860 --he | --h)
20861 # Conflict between --help and --header
20862 as_fn_error $? "ambiguous option: \`$1'
20863 Try \`$0 --help' for more information.";;
20864 --help | --hel | -h )
20865 $as_echo "$ac_cs_usage"; exit ;;
20866 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20867 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20868 ac_cs_silent=: ;;
20870 # This is an error.
20871 -*) as_fn_error $? "unrecognized option: \`$1'
20872 Try \`$0 --help' for more information." ;;
20874 *) as_fn_append ac_config_targets " $1"
20875 ac_need_defaults=false ;;
20877 esac
20878 shift
20879 done
20881 ac_configure_extra_args=
20883 if $ac_cs_silent; then
20884 exec 6>/dev/null
20885 ac_configure_extra_args="$ac_configure_extra_args --silent"
20888 _ACEOF
20889 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20890 if \$ac_cs_recheck; then
20891 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20892 shift
20893 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20894 CONFIG_SHELL='$SHELL'
20895 export CONFIG_SHELL
20896 exec "\$@"
20899 _ACEOF
20900 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20901 exec 5>>config.log
20903 echo
20904 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20905 ## Running $as_me. ##
20906 _ASBOX
20907 $as_echo "$ac_log"
20908 } >&5
20910 _ACEOF
20911 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20913 # INIT-COMMANDS
20916 srcdir="$srcdir"
20917 host="$host"
20918 target="$target"
20919 with_multisubdir="$with_multisubdir"
20920 with_multisrctop="$with_multisrctop"
20921 with_target_subdir="$with_target_subdir"
20922 ac_configure_args="${multilib_arg} ${ac_configure_args}"
20923 multi_basedir="$multi_basedir"
20924 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
20925 CC="$CC"
20926 CXX="$CXX"
20927 GFORTRAN="$GFORTRAN"
20928 GDC="$GDC"
20929 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20932 # The HP-UX ksh and POSIX shell print the target directory to stdout
20933 # if CDPATH is set.
20934 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20936 sed_quote_subst='$sed_quote_subst'
20937 double_quote_subst='$double_quote_subst'
20938 delay_variable_subst='$delay_variable_subst'
20939 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20940 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20941 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20942 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20943 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20944 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20945 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20946 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20947 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20948 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20949 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20950 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20951 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20952 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20953 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20954 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20955 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20956 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20957 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20958 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20959 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20960 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20961 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20962 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20963 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20964 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20965 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20966 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20967 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20968 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20969 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20970 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20971 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20972 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20973 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20974 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20975 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20976 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20977 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20978 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20979 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20980 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20981 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20982 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20983 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20984 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20985 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20986 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20987 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"`'
20988 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20989 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20990 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20991 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20992 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20993 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20994 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20995 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20996 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20997 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20998 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20999 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
21000 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
21001 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
21002 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
21003 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21004 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
21005 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
21006 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
21007 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
21008 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
21009 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
21010 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
21011 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
21012 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21013 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
21014 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
21015 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
21016 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
21017 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
21018 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
21019 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
21020 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
21021 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
21022 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
21023 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
21024 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
21025 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
21026 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
21027 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
21028 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
21029 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
21030 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
21031 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
21032 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
21033 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
21034 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
21035 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21036 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21037 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21038 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21039 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21040 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21041 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21042 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21043 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21044 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21045 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21046 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21047 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21048 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21049 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21050 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21051 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21052 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21053 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21054 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21055 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21056 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21057 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21058 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21059 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21060 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21061 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21062 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21063 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21064 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21065 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21066 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21067 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21068 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21069 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21070 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21071 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21072 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21073 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21074 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21075 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21076 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21077 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21078 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21079 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21080 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21081 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21082 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21083 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21084 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21085 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21086 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21087 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21088 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21089 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21090 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21091 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
21092 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21093 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21094 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21095 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21096 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21097 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21098 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21099 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21100 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
21101 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21102 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21103 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21104 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21105 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21106 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21107 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21108 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21109 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21110 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21111 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21112 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21113 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21115 LTCC='$LTCC'
21116 LTCFLAGS='$LTCFLAGS'
21117 compiler='$compiler_DEFAULT'
21119 # A function that is used when there is no print builtin or printf.
21120 func_fallback_echo ()
21122 eval 'cat <<_LTECHO_EOF
21124 _LTECHO_EOF'
21127 # Quote evaled strings.
21128 for var in SHELL \
21129 ECHO \
21130 SED \
21131 GREP \
21132 EGREP \
21133 FGREP \
21134 LD \
21135 NM \
21136 LN_S \
21137 lt_SP2NL \
21138 lt_NL2SP \
21139 reload_flag \
21140 OBJDUMP \
21141 deplibs_check_method \
21142 file_magic_cmd \
21143 AR \
21144 AR_FLAGS \
21145 STRIP \
21146 RANLIB \
21147 CC \
21148 CFLAGS \
21149 compiler \
21150 lt_cv_sys_global_symbol_pipe \
21151 lt_cv_sys_global_symbol_to_cdecl \
21152 lt_cv_sys_global_symbol_to_c_name_address \
21153 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21154 lt_prog_compiler_no_builtin_flag \
21155 lt_prog_compiler_wl \
21156 lt_prog_compiler_pic \
21157 lt_prog_compiler_static \
21158 lt_cv_prog_compiler_c_o \
21159 need_locks \
21160 DSYMUTIL \
21161 NMEDIT \
21162 LIPO \
21163 OTOOL \
21164 OTOOL64 \
21165 shrext_cmds \
21166 export_dynamic_flag_spec \
21167 whole_archive_flag_spec \
21168 compiler_needs_object \
21169 with_gnu_ld \
21170 allow_undefined_flag \
21171 no_undefined_flag \
21172 hardcode_libdir_flag_spec \
21173 hardcode_libdir_flag_spec_ld \
21174 hardcode_libdir_separator \
21175 fix_srcfile_path \
21176 exclude_expsyms \
21177 include_expsyms \
21178 file_list_spec \
21179 variables_saved_for_relink \
21180 libname_spec \
21181 library_names_spec \
21182 soname_spec \
21183 install_override_mode \
21184 finish_eval \
21185 old_striplib \
21186 striplib \
21187 compiler_lib_search_dirs \
21188 predep_objects \
21189 postdep_objects \
21190 predeps \
21191 postdeps \
21192 compiler_lib_search_path \
21193 LD_CXX \
21194 reload_flag_CXX \
21195 compiler_CXX \
21196 lt_prog_compiler_no_builtin_flag_CXX \
21197 lt_prog_compiler_wl_CXX \
21198 lt_prog_compiler_pic_CXX \
21199 lt_prog_compiler_static_CXX \
21200 lt_cv_prog_compiler_c_o_CXX \
21201 export_dynamic_flag_spec_CXX \
21202 whole_archive_flag_spec_CXX \
21203 compiler_needs_object_CXX \
21204 with_gnu_ld_CXX \
21205 allow_undefined_flag_CXX \
21206 no_undefined_flag_CXX \
21207 hardcode_libdir_flag_spec_CXX \
21208 hardcode_libdir_flag_spec_ld_CXX \
21209 hardcode_libdir_separator_CXX \
21210 fix_srcfile_path_CXX \
21211 exclude_expsyms_CXX \
21212 include_expsyms_CXX \
21213 file_list_spec_CXX \
21214 compiler_lib_search_dirs_CXX \
21215 predep_objects_CXX \
21216 postdep_objects_CXX \
21217 predeps_CXX \
21218 postdeps_CXX \
21219 compiler_lib_search_path_CXX; do
21220 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21221 *[\\\\\\\`\\"\\\$]*)
21222 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21225 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21227 esac
21228 done
21230 # Double-quote double-evaled strings.
21231 for var in reload_cmds \
21232 old_postinstall_cmds \
21233 old_postuninstall_cmds \
21234 old_archive_cmds \
21235 extract_expsyms_cmds \
21236 old_archive_from_new_cmds \
21237 old_archive_from_expsyms_cmds \
21238 archive_cmds \
21239 archive_expsym_cmds \
21240 module_cmds \
21241 module_expsym_cmds \
21242 export_symbols_cmds \
21243 prelink_cmds \
21244 postinstall_cmds \
21245 postuninstall_cmds \
21246 finish_cmds \
21247 sys_lib_search_path_spec \
21248 sys_lib_dlsearch_path_spec \
21249 reload_cmds_CXX \
21250 old_archive_cmds_CXX \
21251 old_archive_from_new_cmds_CXX \
21252 old_archive_from_expsyms_cmds_CXX \
21253 archive_cmds_CXX \
21254 archive_expsym_cmds_CXX \
21255 module_cmds_CXX \
21256 module_expsym_cmds_CXX \
21257 export_symbols_cmds_CXX \
21258 prelink_cmds_CXX; do
21259 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21260 *[\\\\\\\`\\"\\\$]*)
21261 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21264 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21266 esac
21267 done
21269 ac_aux_dir='$ac_aux_dir'
21270 xsi_shell='$xsi_shell'
21271 lt_shell_append='$lt_shell_append'
21273 # See if we are running on zsh, and set the options which allow our
21274 # commands through without removal of \ escapes INIT.
21275 if test -n "\${ZSH_VERSION+set}" ; then
21276 setopt NO_GLOB_SUBST
21280 PACKAGE='$PACKAGE'
21281 VERSION='$VERSION'
21282 TIMESTAMP='$TIMESTAMP'
21283 RM='$RM'
21284 ofile='$ofile'
21291 _ACEOF
21293 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21295 # Handling of arguments.
21296 for ac_config_target in $ac_config_targets
21298 case $ac_config_target in
21299 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21300 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21301 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21302 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21303 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21304 "libm2min/Makefile") CONFIG_FILES="$CONFIG_FILES libm2min/Makefile" ;;
21305 "libm2pim/Makefile") CONFIG_FILES="$CONFIG_FILES libm2pim/Makefile" ;;
21306 "libm2iso/Makefile") CONFIG_FILES="$CONFIG_FILES libm2iso/Makefile" ;;
21307 "libm2cor/Makefile") CONFIG_FILES="$CONFIG_FILES libm2cor/Makefile" ;;
21308 "libm2log/Makefile") CONFIG_FILES="$CONFIG_FILES libm2log/Makefile" ;;
21310 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21311 esac
21312 done
21315 # If the user did not use the arguments to specify the items to instantiate,
21316 # then the envvar interface is used. Set only those that are not.
21317 # We use the long form for the default assignment because of an extremely
21318 # bizarre bug on SunOS 4.1.3.
21319 if $ac_need_defaults; then
21320 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21321 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21322 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21325 # Have a temporary directory for convenience. Make it in the build tree
21326 # simply because there is no reason against having it here, and in addition,
21327 # creating and moving files from /tmp can sometimes cause problems.
21328 # Hook for its removal unless debugging.
21329 # Note that there is a small window in which the directory will not be cleaned:
21330 # after its creation but before its name has been assigned to `$tmp'.
21331 $debug ||
21333 tmp= ac_tmp=
21334 trap 'exit_status=$?
21335 : "${ac_tmp:=$tmp}"
21336 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21338 trap 'as_fn_exit 1' 1 2 13 15
21340 # Create a (secure) tmp directory for tmp files.
21343 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21344 test -d "$tmp"
21345 } ||
21347 tmp=./conf$$-$RANDOM
21348 (umask 077 && mkdir "$tmp")
21349 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21350 ac_tmp=$tmp
21352 # Set up the scripts for CONFIG_FILES section.
21353 # No need to generate them if there are no CONFIG_FILES.
21354 # This happens for instance with `./config.status config.h'.
21355 if test -n "$CONFIG_FILES"; then
21358 ac_cr=`echo X | tr X '\015'`
21359 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21360 # But we know of no other shell where ac_cr would be empty at this
21361 # point, so we can use a bashism as a fallback.
21362 if test "x$ac_cr" = x; then
21363 eval ac_cr=\$\'\\r\'
21365 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21366 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21367 ac_cs_awk_cr='\\r'
21368 else
21369 ac_cs_awk_cr=$ac_cr
21372 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21373 _ACEOF
21377 echo "cat >conf$$subs.awk <<_ACEOF" &&
21378 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21379 echo "_ACEOF"
21380 } >conf$$subs.sh ||
21381 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21382 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21383 ac_delim='%!_!# '
21384 for ac_last_try in false false false false false :; do
21385 . ./conf$$subs.sh ||
21386 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21388 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21389 if test $ac_delim_n = $ac_delim_num; then
21390 break
21391 elif $ac_last_try; then
21392 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21393 else
21394 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21396 done
21397 rm -f conf$$subs.sh
21399 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21400 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21401 _ACEOF
21402 sed -n '
21404 s/^/S["/; s/!.*/"]=/
21407 s/^[^!]*!//
21408 :repl
21409 t repl
21410 s/'"$ac_delim"'$//
21411 t delim
21414 s/\(.\{148\}\)..*/\1/
21415 t more1
21416 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21419 b repl
21420 :more1
21421 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21424 s/.\{148\}//
21425 t nl
21426 :delim
21428 s/\(.\{148\}\)..*/\1/
21429 t more2
21430 s/["\\]/\\&/g; s/^/"/; s/$/"/
21433 :more2
21434 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21437 s/.\{148\}//
21438 t delim
21439 ' <conf$$subs.awk | sed '
21440 /^[^""]/{
21442 s/\n//
21444 ' >>$CONFIG_STATUS || ac_write_fail=1
21445 rm -f conf$$subs.awk
21446 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21447 _ACAWK
21448 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21449 for (key in S) S_is_set[key] = 1
21450 FS = "\a"
21454 line = $ 0
21455 nfields = split(line, field, "@")
21456 substed = 0
21457 len = length(field[1])
21458 for (i = 2; i < nfields; i++) {
21459 key = field[i]
21460 keylen = length(key)
21461 if (S_is_set[key]) {
21462 value = S[key]
21463 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21464 len += length(value) + length(field[++i])
21465 substed = 1
21466 } else
21467 len += 1 + keylen
21470 print line
21473 _ACAWK
21474 _ACEOF
21475 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21476 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21477 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21478 else
21480 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21481 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21482 _ACEOF
21484 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21485 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21486 # trailing colons and then remove the whole line if VPATH becomes empty
21487 # (actually we leave an empty line to preserve line numbers).
21488 if test "x$srcdir" = x.; then
21489 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21491 s///
21492 s/^/:/
21493 s/[ ]*$/:/
21494 s/:\$(srcdir):/:/g
21495 s/:\${srcdir}:/:/g
21496 s/:@srcdir@:/:/g
21497 s/^:*//
21498 s/:*$//
21500 s/\(=[ ]*\).*/\1/
21502 s/\n//
21503 s/^[^=]*=[ ]*$//
21507 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21508 fi # test -n "$CONFIG_FILES"
21510 # Set up the scripts for CONFIG_HEADERS section.
21511 # No need to generate them if there are no CONFIG_HEADERS.
21512 # This happens for instance with `./config.status Makefile'.
21513 if test -n "$CONFIG_HEADERS"; then
21514 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21515 BEGIN {
21516 _ACEOF
21518 # Transform confdefs.h into an awk script `defines.awk', embedded as
21519 # here-document in config.status, that substitutes the proper values into
21520 # config.h.in to produce config.h.
21522 # Create a delimiter string that does not exist in confdefs.h, to ease
21523 # handling of long lines.
21524 ac_delim='%!_!# '
21525 for ac_last_try in false false :; do
21526 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21527 if test -z "$ac_tt"; then
21528 break
21529 elif $ac_last_try; then
21530 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21531 else
21532 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21534 done
21536 # For the awk script, D is an array of macro values keyed by name,
21537 # likewise P contains macro parameters if any. Preserve backslash
21538 # newline sequences.
21540 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21541 sed -n '
21542 s/.\{148\}/&'"$ac_delim"'/g
21543 t rset
21544 :rset
21545 s/^[ ]*#[ ]*define[ ][ ]*/ /
21546 t def
21548 :def
21549 s/\\$//
21550 t bsnl
21551 s/["\\]/\\&/g
21552 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21553 D["\1"]=" \3"/p
21554 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21556 :bsnl
21557 s/["\\]/\\&/g
21558 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21559 D["\1"]=" \3\\\\\\n"\\/p
21560 t cont
21561 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21562 t cont
21564 :cont
21566 s/.\{148\}/&'"$ac_delim"'/g
21567 t clear
21568 :clear
21569 s/\\$//
21570 t bsnlc
21571 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21573 :bsnlc
21574 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21575 b cont
21576 ' <confdefs.h | sed '
21577 s/'"$ac_delim"'/"\\\
21578 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21580 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21581 for (key in D) D_is_set[key] = 1
21582 FS = "\a"
21584 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21585 line = \$ 0
21586 split(line, arg, " ")
21587 if (arg[1] == "#") {
21588 defundef = arg[2]
21589 mac1 = arg[3]
21590 } else {
21591 defundef = substr(arg[1], 2)
21592 mac1 = arg[2]
21594 split(mac1, mac2, "(") #)
21595 macro = mac2[1]
21596 prefix = substr(line, 1, index(line, defundef) - 1)
21597 if (D_is_set[macro]) {
21598 # Preserve the white space surrounding the "#".
21599 print prefix "define", macro P[macro] D[macro]
21600 next
21601 } else {
21602 # Replace #undef with comments. This is necessary, for example,
21603 # in the case of _POSIX_SOURCE, which is predefined and required
21604 # on some systems where configure will not decide to define it.
21605 if (defundef == "undef") {
21606 print "/*", prefix defundef, macro, "*/"
21607 next
21611 { print }
21612 _ACAWK
21613 _ACEOF
21614 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21615 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21616 fi # test -n "$CONFIG_HEADERS"
21619 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21620 shift
21621 for ac_tag
21623 case $ac_tag in
21624 :[FHLC]) ac_mode=$ac_tag; continue;;
21625 esac
21626 case $ac_mode$ac_tag in
21627 :[FHL]*:*);;
21628 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21629 :[FH]-) ac_tag=-:-;;
21630 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21631 esac
21632 ac_save_IFS=$IFS
21633 IFS=:
21634 set x $ac_tag
21635 IFS=$ac_save_IFS
21636 shift
21637 ac_file=$1
21638 shift
21640 case $ac_mode in
21641 :L) ac_source=$1;;
21642 :[FH])
21643 ac_file_inputs=
21644 for ac_f
21646 case $ac_f in
21647 -) ac_f="$ac_tmp/stdin";;
21648 *) # Look for the file first in the build tree, then in the source tree
21649 # (if the path is not absolute). The absolute path cannot be DOS-style,
21650 # because $ac_f cannot contain `:'.
21651 test -f "$ac_f" ||
21652 case $ac_f in
21653 [\\/$]*) false;;
21654 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21655 esac ||
21656 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21657 esac
21658 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21659 as_fn_append ac_file_inputs " '$ac_f'"
21660 done
21662 # Let's still pretend it is `configure' which instantiates (i.e., don't
21663 # use $as_me), people would be surprised to read:
21664 # /* config.h. Generated by config.status. */
21665 configure_input='Generated from '`
21666 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21667 `' by configure.'
21668 if test x"$ac_file" != x-; then
21669 configure_input="$ac_file. $configure_input"
21670 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21671 $as_echo "$as_me: creating $ac_file" >&6;}
21673 # Neutralize special characters interpreted by sed in replacement strings.
21674 case $configure_input in #(
21675 *\&* | *\|* | *\\* )
21676 ac_sed_conf_input=`$as_echo "$configure_input" |
21677 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21678 *) ac_sed_conf_input=$configure_input;;
21679 esac
21681 case $ac_tag in
21682 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21683 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21684 esac
21686 esac
21688 ac_dir=`$as_dirname -- "$ac_file" ||
21689 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21690 X"$ac_file" : 'X\(//\)[^/]' \| \
21691 X"$ac_file" : 'X\(//\)$' \| \
21692 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21693 $as_echo X"$ac_file" |
21694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21695 s//\1/
21698 /^X\(\/\/\)[^/].*/{
21699 s//\1/
21702 /^X\(\/\/\)$/{
21703 s//\1/
21706 /^X\(\/\).*/{
21707 s//\1/
21710 s/.*/./; q'`
21711 as_dir="$ac_dir"; as_fn_mkdir_p
21712 ac_builddir=.
21714 case "$ac_dir" in
21715 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21717 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21718 # A ".." for each directory in $ac_dir_suffix.
21719 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21720 case $ac_top_builddir_sub in
21721 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21722 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21723 esac ;;
21724 esac
21725 ac_abs_top_builddir=$ac_pwd
21726 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21727 # for backward compatibility:
21728 ac_top_builddir=$ac_top_build_prefix
21730 case $srcdir in
21731 .) # We are building in place.
21732 ac_srcdir=.
21733 ac_top_srcdir=$ac_top_builddir_sub
21734 ac_abs_top_srcdir=$ac_pwd ;;
21735 [\\/]* | ?:[\\/]* ) # Absolute name.
21736 ac_srcdir=$srcdir$ac_dir_suffix;
21737 ac_top_srcdir=$srcdir
21738 ac_abs_top_srcdir=$srcdir ;;
21739 *) # Relative name.
21740 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21741 ac_top_srcdir=$ac_top_build_prefix$srcdir
21742 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21743 esac
21744 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21747 case $ac_mode in
21750 # CONFIG_FILE
21753 case $INSTALL in
21754 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21755 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21756 esac
21757 ac_MKDIR_P=$MKDIR_P
21758 case $MKDIR_P in
21759 [\\/$]* | ?:[\\/]* ) ;;
21760 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21761 esac
21762 _ACEOF
21764 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21765 # If the template does not know about datarootdir, expand it.
21766 # FIXME: This hack should be removed a few years after 2.60.
21767 ac_datarootdir_hack=; ac_datarootdir_seen=
21768 ac_sed_dataroot='
21769 /datarootdir/ {
21773 /@datadir@/p
21774 /@docdir@/p
21775 /@infodir@/p
21776 /@localedir@/p
21777 /@mandir@/p'
21778 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21779 *datarootdir*) ac_datarootdir_seen=yes;;
21780 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21781 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21782 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21783 _ACEOF
21784 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21785 ac_datarootdir_hack='
21786 s&@datadir@&$datadir&g
21787 s&@docdir@&$docdir&g
21788 s&@infodir@&$infodir&g
21789 s&@localedir@&$localedir&g
21790 s&@mandir@&$mandir&g
21791 s&\\\${datarootdir}&$datarootdir&g' ;;
21792 esac
21793 _ACEOF
21795 # Neutralize VPATH when `$srcdir' = `.'.
21796 # Shell code in configure.ac might set extrasub.
21797 # FIXME: do we really want to maintain this feature?
21798 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21799 ac_sed_extra="$ac_vpsub
21800 $extrasub
21801 _ACEOF
21802 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21804 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21805 s|@configure_input@|$ac_sed_conf_input|;t t
21806 s&@top_builddir@&$ac_top_builddir_sub&;t t
21807 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21808 s&@srcdir@&$ac_srcdir&;t t
21809 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21810 s&@top_srcdir@&$ac_top_srcdir&;t t
21811 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21812 s&@builddir@&$ac_builddir&;t t
21813 s&@abs_builddir@&$ac_abs_builddir&;t t
21814 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21815 s&@INSTALL@&$ac_INSTALL&;t t
21816 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21817 $ac_datarootdir_hack
21819 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21820 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21822 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21823 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21824 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21825 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21827 which seems to be undefined. Please make sure it is defined" >&5
21828 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21829 which seems to be undefined. Please make sure it is defined" >&2;}
21831 rm -f "$ac_tmp/stdin"
21832 case $ac_file in
21833 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21834 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21835 esac \
21836 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21840 # CONFIG_HEADER
21842 if test x"$ac_file" != x-; then
21844 $as_echo "/* $configure_input */" \
21845 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21846 } >"$ac_tmp/config.h" \
21847 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21848 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21849 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21850 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21851 else
21852 rm -f "$ac_file"
21853 mv "$ac_tmp/config.h" "$ac_file" \
21854 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21856 else
21857 $as_echo "/* $configure_input */" \
21858 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21859 || as_fn_error $? "could not create -" "$LINENO" 5
21861 # Compute "$ac_file"'s index in $config_headers.
21862 _am_arg="$ac_file"
21863 _am_stamp_count=1
21864 for _am_header in $config_headers :; do
21865 case $_am_header in
21866 $_am_arg | $_am_arg:* )
21867 break ;;
21869 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21870 esac
21871 done
21872 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21873 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21874 X"$_am_arg" : 'X\(//\)[^/]' \| \
21875 X"$_am_arg" : 'X\(//\)$' \| \
21876 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21877 $as_echo X"$_am_arg" |
21878 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21879 s//\1/
21882 /^X\(\/\/\)[^/].*/{
21883 s//\1/
21886 /^X\(\/\/\)$/{
21887 s//\1/
21890 /^X\(\/\).*/{
21891 s//\1/
21894 s/.*/./; q'`/stamp-h$_am_stamp_count
21897 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21898 $as_echo "$as_me: executing $ac_file commands" >&6;}
21900 esac
21903 case $ac_file$ac_mode in
21904 "default-1":C)
21905 # Only add multilib support code if we just rebuilt the top-level
21906 # Makefile.
21907 case " $CONFIG_FILES " in
21908 *" Makefile "*)
21909 ac_file=Makefile . ${multi_basedir}/config-ml.in
21911 esac ;;
21912 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21913 # Older Autoconf quotes --file arguments for eval, but not when files
21914 # are listed without --file. Let's play safe and only enable the eval
21915 # if we detect the quoting.
21916 case $CONFIG_FILES in
21917 *\'*) eval set x "$CONFIG_FILES" ;;
21918 *) set x $CONFIG_FILES ;;
21919 esac
21920 shift
21921 for mf
21923 # Strip MF so we end up with the name of the file.
21924 mf=`echo "$mf" | sed -e 's/:.*$//'`
21925 # Check whether this is an Automake generated Makefile or not.
21926 # We used to match only the files named 'Makefile.in', but
21927 # some people rename them; so instead we look at the file content.
21928 # Grep'ing the first line is not enough: some people post-process
21929 # each Makefile.in and add a new line on top of each file to say so.
21930 # Grep'ing the whole file is not good either: AIX grep has a line
21931 # limit of 2048, but all sed's we know have understand at least 4000.
21932 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21933 dirpart=`$as_dirname -- "$mf" ||
21934 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21935 X"$mf" : 'X\(//\)[^/]' \| \
21936 X"$mf" : 'X\(//\)$' \| \
21937 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21938 $as_echo X"$mf" |
21939 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21940 s//\1/
21943 /^X\(\/\/\)[^/].*/{
21944 s//\1/
21947 /^X\(\/\/\)$/{
21948 s//\1/
21951 /^X\(\/\).*/{
21952 s//\1/
21955 s/.*/./; q'`
21956 else
21957 continue
21959 # Extract the definition of DEPDIR, am__include, and am__quote
21960 # from the Makefile without running 'make'.
21961 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21962 test -z "$DEPDIR" && continue
21963 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21964 test -z "$am__include" && continue
21965 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21966 # Find all dependency output files, they are included files with
21967 # $(DEPDIR) in their names. We invoke sed twice because it is the
21968 # simplest approach to changing $(DEPDIR) to its actual value in the
21969 # expansion.
21970 for file in `sed -n "
21971 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21972 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21973 # Make sure the directory exists.
21974 test -f "$dirpart/$file" && continue
21975 fdir=`$as_dirname -- "$file" ||
21976 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21977 X"$file" : 'X\(//\)[^/]' \| \
21978 X"$file" : 'X\(//\)$' \| \
21979 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21980 $as_echo X"$file" |
21981 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21982 s//\1/
21985 /^X\(\/\/\)[^/].*/{
21986 s//\1/
21989 /^X\(\/\/\)$/{
21990 s//\1/
21993 /^X\(\/\).*/{
21994 s//\1/
21997 s/.*/./; q'`
21998 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21999 # echo "creating $dirpart/$file"
22000 echo '# dummy' > "$dirpart/$file"
22001 done
22002 done
22005 "libtool":C)
22007 # See if we are running on zsh, and set the options which allow our
22008 # commands through without removal of \ escapes.
22009 if test -n "${ZSH_VERSION+set}" ; then
22010 setopt NO_GLOB_SUBST
22013 cfgfile="${ofile}T"
22014 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22015 $RM "$cfgfile"
22017 cat <<_LT_EOF >> "$cfgfile"
22018 #! $SHELL
22020 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22021 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22022 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22023 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22025 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22026 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
22027 # Written by Gordon Matzigkeit, 1996
22029 # This file is part of GNU Libtool.
22031 # GNU Libtool is free software; you can redistribute it and/or
22032 # modify it under the terms of the GNU General Public License as
22033 # published by the Free Software Foundation; either version 2 of
22034 # the License, or (at your option) any later version.
22036 # As a special exception to the GNU General Public License,
22037 # if you distribute this file as part of a program or library that
22038 # is built using GNU Libtool, you may include this file under the
22039 # same distribution terms that you use for the rest of that program.
22041 # GNU Libtool is distributed in the hope that it will be useful,
22042 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22043 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22044 # GNU General Public License for more details.
22046 # You should have received a copy of the GNU General Public License
22047 # along with GNU Libtool; see the file COPYING. If not, a copy
22048 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22049 # obtained by writing to the Free Software Foundation, Inc.,
22050 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22053 # The names of the tagged configurations supported by this script.
22054 available_tags="CXX "
22056 # ### BEGIN LIBTOOL CONFIG
22058 # Which release of libtool.m4 was used?
22059 macro_version=$macro_version
22060 macro_revision=$macro_revision
22062 # Whether or not to build shared libraries.
22063 build_libtool_libs=$enable_shared
22065 # Whether or not to build static libraries.
22066 build_old_libs=$enable_static
22068 # What type of objects to build.
22069 pic_mode=$pic_mode
22071 # Whether or not to optimize for fast installation.
22072 fast_install=$enable_fast_install
22074 # Shell to use when invoking shell scripts.
22075 SHELL=$lt_SHELL
22077 # An echo program that protects backslashes.
22078 ECHO=$lt_ECHO
22080 # The host system.
22081 host_alias=$host_alias
22082 host=$host
22083 host_os=$host_os
22085 # The build system.
22086 build_alias=$build_alias
22087 build=$build
22088 build_os=$build_os
22090 # A sed program that does not truncate output.
22091 SED=$lt_SED
22093 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22094 Xsed="\$SED -e 1s/^X//"
22096 # A grep program that handles long lines.
22097 GREP=$lt_GREP
22099 # An ERE matcher.
22100 EGREP=$lt_EGREP
22102 # A literal string matcher.
22103 FGREP=$lt_FGREP
22105 # A BSD- or MS-compatible name lister.
22106 NM=$lt_NM
22108 # Whether we need soft or hard links.
22109 LN_S=$lt_LN_S
22111 # What is the maximum length of a command?
22112 max_cmd_len=$max_cmd_len
22114 # Object file suffix (normally "o").
22115 objext=$ac_objext
22117 # Executable file suffix (normally "").
22118 exeext=$exeext
22120 # whether the shell understands "unset".
22121 lt_unset=$lt_unset
22123 # turn spaces into newlines.
22124 SP2NL=$lt_lt_SP2NL
22126 # turn newlines into spaces.
22127 NL2SP=$lt_lt_NL2SP
22129 # An object symbol dumper.
22130 OBJDUMP=$lt_OBJDUMP
22132 # Method to check whether dependent libraries are shared objects.
22133 deplibs_check_method=$lt_deplibs_check_method
22135 # Command to use when deplibs_check_method == "file_magic".
22136 file_magic_cmd=$lt_file_magic_cmd
22138 # The archiver.
22139 AR=$lt_AR
22140 AR_FLAGS=$lt_AR_FLAGS
22142 # A symbol stripping program.
22143 STRIP=$lt_STRIP
22145 # Commands used to install an old-style archive.
22146 RANLIB=$lt_RANLIB
22147 old_postinstall_cmds=$lt_old_postinstall_cmds
22148 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22150 # Whether to use a lock for old archive extraction.
22151 lock_old_archive_extraction=$lock_old_archive_extraction
22153 # A C compiler.
22154 LTCC=$lt_CC
22156 # LTCC compiler flags.
22157 LTCFLAGS=$lt_CFLAGS
22159 # Take the output of nm and produce a listing of raw symbols and C names.
22160 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22162 # Transform the output of nm in a proper C declaration.
22163 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22165 # Transform the output of nm in a C name address pair.
22166 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22168 # Transform the output of nm in a C name address pair when lib prefix is needed.
22169 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22171 # The name of the directory that contains temporary libtool files.
22172 objdir=$objdir
22174 # Used to examine libraries when file_magic_cmd begins with "file".
22175 MAGIC_CMD=$MAGIC_CMD
22177 # Must we lock files when doing compilation?
22178 need_locks=$lt_need_locks
22180 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22181 DSYMUTIL=$lt_DSYMUTIL
22183 # Tool to change global to local symbols on Mac OS X.
22184 NMEDIT=$lt_NMEDIT
22186 # Tool to manipulate fat objects and archives on Mac OS X.
22187 LIPO=$lt_LIPO
22189 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22190 OTOOL=$lt_OTOOL
22192 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22193 OTOOL64=$lt_OTOOL64
22195 # Old archive suffix (normally "a").
22196 libext=$libext
22198 # Shared library suffix (normally ".so").
22199 shrext_cmds=$lt_shrext_cmds
22201 # The commands to extract the exported symbol list from a shared archive.
22202 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22204 # Variables whose values should be saved in libtool wrapper scripts and
22205 # restored at link time.
22206 variables_saved_for_relink=$lt_variables_saved_for_relink
22208 # Do we need the "lib" prefix for modules?
22209 need_lib_prefix=$need_lib_prefix
22211 # Do we need a version for libraries?
22212 need_version=$need_version
22214 # Library versioning type.
22215 version_type=$version_type
22217 # Shared library runtime path variable.
22218 runpath_var=$runpath_var
22220 # Shared library path variable.
22221 shlibpath_var=$shlibpath_var
22223 # Is shlibpath searched before the hard-coded library search path?
22224 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22226 # Format of library name prefix.
22227 libname_spec=$lt_libname_spec
22229 # List of archive names. First name is the real one, the rest are links.
22230 # The last name is the one that the linker finds with -lNAME
22231 library_names_spec=$lt_library_names_spec
22233 # The coded name of the library, if different from the real name.
22234 soname_spec=$lt_soname_spec
22236 # Permission mode override for installation of shared libraries.
22237 install_override_mode=$lt_install_override_mode
22239 # Command to use after installation of a shared archive.
22240 postinstall_cmds=$lt_postinstall_cmds
22242 # Command to use after uninstallation of a shared archive.
22243 postuninstall_cmds=$lt_postuninstall_cmds
22245 # Commands used to finish a libtool library installation in a directory.
22246 finish_cmds=$lt_finish_cmds
22248 # As "finish_cmds", except a single script fragment to be evaled but
22249 # not shown.
22250 finish_eval=$lt_finish_eval
22252 # Whether we should hardcode library paths into libraries.
22253 hardcode_into_libs=$hardcode_into_libs
22255 # Compile-time system search path for libraries.
22256 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22258 # Run-time system search path for libraries.
22259 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22261 # Whether dlopen is supported.
22262 dlopen_support=$enable_dlopen
22264 # Whether dlopen of programs is supported.
22265 dlopen_self=$enable_dlopen_self
22267 # Whether dlopen of statically linked programs is supported.
22268 dlopen_self_static=$enable_dlopen_self_static
22270 # Commands to strip libraries.
22271 old_striplib=$lt_old_striplib
22272 striplib=$lt_striplib
22275 # The linker used to build libraries.
22276 LD=$lt_LD
22278 # How to create reloadable object files.
22279 reload_flag=$lt_reload_flag
22280 reload_cmds=$lt_reload_cmds
22282 # Commands used to build an old-style archive.
22283 old_archive_cmds=$lt_old_archive_cmds
22285 # A language specific compiler.
22286 CC=$lt_compiler
22288 # Is the compiler the GNU compiler?
22289 with_gcc=$GCC
22291 # Compiler flag to turn off builtin functions.
22292 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22294 # How to pass a linker flag through the compiler.
22295 wl=$lt_lt_prog_compiler_wl
22297 # Additional compiler flags for building library objects.
22298 pic_flag=$lt_lt_prog_compiler_pic
22300 # Compiler flag to prevent dynamic linking.
22301 link_static_flag=$lt_lt_prog_compiler_static
22303 # Does compiler simultaneously support -c and -o options?
22304 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22306 # Whether or not to add -lc for building shared libraries.
22307 build_libtool_need_lc=$archive_cmds_need_lc
22309 # Whether or not to disallow shared libs when runtime libs are static.
22310 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22312 # Compiler flag to allow reflexive dlopens.
22313 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22315 # Compiler flag to generate shared objects directly from archives.
22316 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22318 # Whether the compiler copes with passing no objects directly.
22319 compiler_needs_object=$lt_compiler_needs_object
22321 # Create an old-style archive from a shared archive.
22322 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22324 # Create a temporary old-style archive to link instead of a shared archive.
22325 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22327 # Commands used to build a shared archive.
22328 archive_cmds=$lt_archive_cmds
22329 archive_expsym_cmds=$lt_archive_expsym_cmds
22331 # Commands used to build a loadable module if different from building
22332 # a shared archive.
22333 module_cmds=$lt_module_cmds
22334 module_expsym_cmds=$lt_module_expsym_cmds
22336 # Whether we are building with GNU ld or not.
22337 with_gnu_ld=$lt_with_gnu_ld
22339 # Flag that allows shared libraries with undefined symbols to be built.
22340 allow_undefined_flag=$lt_allow_undefined_flag
22342 # Flag that enforces no undefined symbols.
22343 no_undefined_flag=$lt_no_undefined_flag
22345 # Flag to hardcode \$libdir into a binary during linking.
22346 # This must work even if \$libdir does not exist
22347 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22349 # If ld is used when linking, flag to hardcode \$libdir into a binary
22350 # during linking. This must work even if \$libdir does not exist.
22351 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22353 # Whether we need a single "-rpath" flag with a separated argument.
22354 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22356 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22357 # DIR into the resulting binary.
22358 hardcode_direct=$hardcode_direct
22360 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22361 # DIR into the resulting binary and the resulting library dependency is
22362 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22363 # library is relocated.
22364 hardcode_direct_absolute=$hardcode_direct_absolute
22366 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22367 # into the resulting binary.
22368 hardcode_minus_L=$hardcode_minus_L
22370 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22371 # into the resulting binary.
22372 hardcode_shlibpath_var=$hardcode_shlibpath_var
22374 # Set to "yes" if building a shared library automatically hardcodes DIR
22375 # into the library and all subsequent libraries and executables linked
22376 # against it.
22377 hardcode_automatic=$hardcode_automatic
22379 # Set to yes if linker adds runtime paths of dependent libraries
22380 # to runtime path list.
22381 inherit_rpath=$inherit_rpath
22383 # Whether libtool must link a program against all its dependency libraries.
22384 link_all_deplibs=$link_all_deplibs
22386 # Fix the shell variable \$srcfile for the compiler.
22387 fix_srcfile_path=$lt_fix_srcfile_path
22389 # Set to "yes" if exported symbols are required.
22390 always_export_symbols=$always_export_symbols
22392 # The commands to list exported symbols.
22393 export_symbols_cmds=$lt_export_symbols_cmds
22395 # Symbols that should not be listed in the preloaded symbols.
22396 exclude_expsyms=$lt_exclude_expsyms
22398 # Symbols that must always be exported.
22399 include_expsyms=$lt_include_expsyms
22401 # Commands necessary for linking programs (against libraries) with templates.
22402 prelink_cmds=$lt_prelink_cmds
22404 # Specify filename containing input files.
22405 file_list_spec=$lt_file_list_spec
22407 # How to hardcode a shared library path into an executable.
22408 hardcode_action=$hardcode_action
22410 # The directories searched by this compiler when creating a shared library.
22411 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22413 # Dependencies to place before and after the objects being linked to
22414 # create a shared library.
22415 predep_objects=$lt_predep_objects
22416 postdep_objects=$lt_postdep_objects
22417 predeps=$lt_predeps
22418 postdeps=$lt_postdeps
22420 # The library search path used internally by the compiler when linking
22421 # a shared library.
22422 compiler_lib_search_path=$lt_compiler_lib_search_path
22424 # ### END LIBTOOL CONFIG
22426 _LT_EOF
22428 case $host_os in
22429 aix3*)
22430 cat <<\_LT_EOF >> "$cfgfile"
22431 # AIX sometimes has problems with the GCC collect2 program. For some
22432 # reason, if we set the COLLECT_NAMES environment variable, the problems
22433 # vanish in a puff of smoke.
22434 if test "X${COLLECT_NAMES+set}" != Xset; then
22435 COLLECT_NAMES=
22436 export COLLECT_NAMES
22438 _LT_EOF
22440 esac
22443 ltmain="$ac_aux_dir/ltmain.sh"
22446 # We use sed instead of cat because bash on DJGPP gets confused if
22447 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22448 # text mode, it properly converts lines to CR/LF. This bash problem
22449 # is reportedly fixed, but why not run on old versions too?
22450 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22451 || (rm -f "$cfgfile"; exit 1)
22453 case $xsi_shell in
22454 yes)
22455 cat << \_LT_EOF >> "$cfgfile"
22457 # func_dirname file append nondir_replacement
22458 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22459 # otherwise set result to NONDIR_REPLACEMENT.
22460 func_dirname ()
22462 case ${1} in
22463 */*) func_dirname_result="${1%/*}${2}" ;;
22464 * ) func_dirname_result="${3}" ;;
22465 esac
22468 # func_basename file
22469 func_basename ()
22471 func_basename_result="${1##*/}"
22474 # func_dirname_and_basename file append nondir_replacement
22475 # perform func_basename and func_dirname in a single function
22476 # call:
22477 # dirname: Compute the dirname of FILE. If nonempty,
22478 # add APPEND to the result, otherwise set result
22479 # to NONDIR_REPLACEMENT.
22480 # value returned in "$func_dirname_result"
22481 # basename: Compute filename of FILE.
22482 # value retuned in "$func_basename_result"
22483 # Implementation must be kept synchronized with func_dirname
22484 # and func_basename. For efficiency, we do not delegate to
22485 # those functions but instead duplicate the functionality here.
22486 func_dirname_and_basename ()
22488 case ${1} in
22489 */*) func_dirname_result="${1%/*}${2}" ;;
22490 * ) func_dirname_result="${3}" ;;
22491 esac
22492 func_basename_result="${1##*/}"
22495 # func_stripname prefix suffix name
22496 # strip PREFIX and SUFFIX off of NAME.
22497 # PREFIX and SUFFIX must not contain globbing or regex special
22498 # characters, hashes, percent signs, but SUFFIX may contain a leading
22499 # dot (in which case that matches only a dot).
22500 func_stripname ()
22502 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22503 # positional parameters, so assign one to ordinary parameter first.
22504 func_stripname_result=${3}
22505 func_stripname_result=${func_stripname_result#"${1}"}
22506 func_stripname_result=${func_stripname_result%"${2}"}
22509 # func_opt_split
22510 func_opt_split ()
22512 func_opt_split_opt=${1%%=*}
22513 func_opt_split_arg=${1#*=}
22516 # func_lo2o object
22517 func_lo2o ()
22519 case ${1} in
22520 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22521 *) func_lo2o_result=${1} ;;
22522 esac
22525 # func_xform libobj-or-source
22526 func_xform ()
22528 func_xform_result=${1%.*}.lo
22531 # func_arith arithmetic-term...
22532 func_arith ()
22534 func_arith_result=$(( $* ))
22537 # func_len string
22538 # STRING may not start with a hyphen.
22539 func_len ()
22541 func_len_result=${#1}
22544 _LT_EOF
22546 *) # Bourne compatible functions.
22547 cat << \_LT_EOF >> "$cfgfile"
22549 # func_dirname file append nondir_replacement
22550 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22551 # otherwise set result to NONDIR_REPLACEMENT.
22552 func_dirname ()
22554 # Extract subdirectory from the argument.
22555 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
22556 if test "X$func_dirname_result" = "X${1}"; then
22557 func_dirname_result="${3}"
22558 else
22559 func_dirname_result="$func_dirname_result${2}"
22563 # func_basename file
22564 func_basename ()
22566 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
22570 # func_stripname prefix suffix name
22571 # strip PREFIX and SUFFIX off of NAME.
22572 # PREFIX and SUFFIX must not contain globbing or regex special
22573 # characters, hashes, percent signs, but SUFFIX may contain a leading
22574 # dot (in which case that matches only a dot).
22575 # func_strip_suffix prefix name
22576 func_stripname ()
22578 case ${2} in
22579 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
22580 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
22581 esac
22584 # sed scripts:
22585 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22586 my_sed_long_arg='1s/^-[^=]*=//'
22588 # func_opt_split
22589 func_opt_split ()
22591 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
22592 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
22595 # func_lo2o object
22596 func_lo2o ()
22598 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
22601 # func_xform libobj-or-source
22602 func_xform ()
22604 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
22607 # func_arith arithmetic-term...
22608 func_arith ()
22610 func_arith_result=`expr "$@"`
22613 # func_len string
22614 # STRING may not start with a hyphen.
22615 func_len ()
22617 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22620 _LT_EOF
22621 esac
22623 case $lt_shell_append in
22624 yes)
22625 cat << \_LT_EOF >> "$cfgfile"
22627 # func_append var value
22628 # Append VALUE to the end of shell variable VAR.
22629 func_append ()
22631 eval "$1+=\$2"
22633 _LT_EOF
22636 cat << \_LT_EOF >> "$cfgfile"
22638 # func_append var value
22639 # Append VALUE to the end of shell variable VAR.
22640 func_append ()
22642 eval "$1=\$$1\$2"
22645 _LT_EOF
22647 esac
22650 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22651 || (rm -f "$cfgfile"; exit 1)
22653 mv -f "$cfgfile" "$ofile" ||
22654 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22655 chmod +x "$ofile"
22658 cat <<_LT_EOF >> "$ofile"
22660 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22662 # The linker used to build libraries.
22663 LD=$lt_LD_CXX
22665 # How to create reloadable object files.
22666 reload_flag=$lt_reload_flag_CXX
22667 reload_cmds=$lt_reload_cmds_CXX
22669 # Commands used to build an old-style archive.
22670 old_archive_cmds=$lt_old_archive_cmds_CXX
22672 # A language specific compiler.
22673 CC=$lt_compiler_CXX
22675 # Is the compiler the GNU compiler?
22676 with_gcc=$GCC_CXX
22678 # Compiler flag to turn off builtin functions.
22679 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22681 # How to pass a linker flag through the compiler.
22682 wl=$lt_lt_prog_compiler_wl_CXX
22684 # Additional compiler flags for building library objects.
22685 pic_flag=$lt_lt_prog_compiler_pic_CXX
22687 # Compiler flag to prevent dynamic linking.
22688 link_static_flag=$lt_lt_prog_compiler_static_CXX
22690 # Does compiler simultaneously support -c and -o options?
22691 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22693 # Whether or not to add -lc for building shared libraries.
22694 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22696 # Whether or not to disallow shared libs when runtime libs are static.
22697 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22699 # Compiler flag to allow reflexive dlopens.
22700 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22702 # Compiler flag to generate shared objects directly from archives.
22703 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22705 # Whether the compiler copes with passing no objects directly.
22706 compiler_needs_object=$lt_compiler_needs_object_CXX
22708 # Create an old-style archive from a shared archive.
22709 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22711 # Create a temporary old-style archive to link instead of a shared archive.
22712 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22714 # Commands used to build a shared archive.
22715 archive_cmds=$lt_archive_cmds_CXX
22716 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22718 # Commands used to build a loadable module if different from building
22719 # a shared archive.
22720 module_cmds=$lt_module_cmds_CXX
22721 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22723 # Whether we are building with GNU ld or not.
22724 with_gnu_ld=$lt_with_gnu_ld_CXX
22726 # Flag that allows shared libraries with undefined symbols to be built.
22727 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22729 # Flag that enforces no undefined symbols.
22730 no_undefined_flag=$lt_no_undefined_flag_CXX
22732 # Flag to hardcode \$libdir into a binary during linking.
22733 # This must work even if \$libdir does not exist
22734 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22736 # If ld is used when linking, flag to hardcode \$libdir into a binary
22737 # during linking. This must work even if \$libdir does not exist.
22738 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22740 # Whether we need a single "-rpath" flag with a separated argument.
22741 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22743 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22744 # DIR into the resulting binary.
22745 hardcode_direct=$hardcode_direct_CXX
22747 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22748 # DIR into the resulting binary and the resulting library dependency is
22749 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22750 # library is relocated.
22751 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22753 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22754 # into the resulting binary.
22755 hardcode_minus_L=$hardcode_minus_L_CXX
22757 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22758 # into the resulting binary.
22759 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22761 # Set to "yes" if building a shared library automatically hardcodes DIR
22762 # into the library and all subsequent libraries and executables linked
22763 # against it.
22764 hardcode_automatic=$hardcode_automatic_CXX
22766 # Set to yes if linker adds runtime paths of dependent libraries
22767 # to runtime path list.
22768 inherit_rpath=$inherit_rpath_CXX
22770 # Whether libtool must link a program against all its dependency libraries.
22771 link_all_deplibs=$link_all_deplibs_CXX
22773 # Fix the shell variable \$srcfile for the compiler.
22774 fix_srcfile_path=$lt_fix_srcfile_path_CXX
22776 # Set to "yes" if exported symbols are required.
22777 always_export_symbols=$always_export_symbols_CXX
22779 # The commands to list exported symbols.
22780 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22782 # Symbols that should not be listed in the preloaded symbols.
22783 exclude_expsyms=$lt_exclude_expsyms_CXX
22785 # Symbols that must always be exported.
22786 include_expsyms=$lt_include_expsyms_CXX
22788 # Commands necessary for linking programs (against libraries) with templates.
22789 prelink_cmds=$lt_prelink_cmds_CXX
22791 # Specify filename containing input files.
22792 file_list_spec=$lt_file_list_spec_CXX
22794 # How to hardcode a shared library path into an executable.
22795 hardcode_action=$hardcode_action_CXX
22797 # The directories searched by this compiler when creating a shared library.
22798 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22800 # Dependencies to place before and after the objects being linked to
22801 # create a shared library.
22802 predep_objects=$lt_predep_objects_CXX
22803 postdep_objects=$lt_postdep_objects_CXX
22804 predeps=$lt_predeps_CXX
22805 postdeps=$lt_postdeps_CXX
22807 # The library search path used internally by the compiler when linking
22808 # a shared library.
22809 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22811 # ### END LIBTOOL TAG CONFIG: CXX
22812 _LT_EOF
22815 "libm2min/Makefile":F) cat > vpsed$$ << \_EOF
22816 s!`test -f '$<' || echo '$(srcdir)/'`!!
22817 _EOF
22818 sed -f vpsed$$ $ac_file > tmp$$
22819 mv tmp$$ $ac_file
22820 rm vpsed$$
22821 echo 'MULTISUBDIR =' >> $ac_file
22822 ml_norecursion=yes
22823 . ${multi_basedir}/config-ml.in
22824 { ml_norecursion=; unset ml_norecursion;}
22826 "libm2pim/Makefile":F) cat > vpsed$$ << \_EOF
22827 s!`test -f '$<' || echo '$(srcdir)/'`!!
22828 _EOF
22829 sed -f vpsed$$ $ac_file > tmp$$
22830 mv tmp$$ $ac_file
22831 rm vpsed$$
22832 echo 'MULTISUBDIR =' >> $ac_file
22833 ml_norecursion=yes
22834 . ${multi_basedir}/config-ml.in
22835 { ml_norecursion=; unset ml_norecursion;}
22837 "libm2iso/Makefile":F) cat > vpsed$$ << \_EOF
22838 s!`test -f '$<' || echo '$(srcdir)/'`!!
22839 _EOF
22840 sed -f vpsed$$ $ac_file > tmp$$
22841 mv tmp$$ $ac_file
22842 rm vpsed$$
22843 echo 'MULTISUBDIR =' >> $ac_file
22844 ml_norecursion=yes
22845 . ${multi_basedir}/config-ml.in
22846 { ml_norecursion=; unset ml_norecursion;}
22848 "libm2cor/Makefile":F) cat > vpsed$$ << \_EOF
22849 s!`test -f '$<' || echo '$(srcdir)/'`!!
22850 _EOF
22851 sed -f vpsed$$ $ac_file > tmp$$
22852 mv tmp$$ $ac_file
22853 rm vpsed$$
22854 echo 'MULTISUBDIR =' >> $ac_file
22855 ml_norecursion=yes
22856 . ${multi_basedir}/config-ml.in
22857 { ml_norecursion=; unset ml_norecursion;}
22859 "libm2log/Makefile":F) cat > vpsed$$ << \_EOF
22860 s!`test -f '$<' || echo '$(srcdir)/'`!!
22861 _EOF
22862 sed -f vpsed$$ $ac_file > tmp$$
22863 mv tmp$$ $ac_file
22864 rm vpsed$$
22865 echo 'MULTISUBDIR =' >> $ac_file
22866 ml_norecursion=yes
22867 . ${multi_basedir}/config-ml.in
22868 { ml_norecursion=; unset ml_norecursion;}
22871 esac
22872 done # for ac_tag
22875 as_fn_exit 0
22876 _ACEOF
22877 ac_clean_files=$ac_clean_files_save
22879 test $ac_write_fail = 0 ||
22880 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22883 # configure is writing to config.log, and then calls config.status.
22884 # config.status does its own redirection, appending to config.log.
22885 # Unfortunately, on DOS this fails, as config.log is still kept open
22886 # by configure, so config.status won't be able to write to it; its
22887 # output is simply discarded. So we exec the FD to /dev/null,
22888 # effectively closing config.log, so it can be properly (re)opened and
22889 # appended to by config.status. When coming back to configure, we
22890 # need to make the FD available again.
22891 if test "$no_create" != yes; then
22892 ac_cs_success=:
22893 ac_config_status_args=
22894 test "$silent" = yes &&
22895 ac_config_status_args="$ac_config_status_args --quiet"
22896 exec 5>/dev/null
22897 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22898 exec 5>>config.log
22899 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22900 # would make configure fail if this is the last instruction.
22901 $ac_cs_success || as_fn_exit 1
22903 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22904 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22905 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}