Use strtol instead of std::stoi [PR110646]
[official-gcc.git] / libgm2 / configure
blob74f93ac5eec38e7e80fa6ad434194e61e57fc274
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 am__api_version='1.15'
3981 # Find a good install program. We prefer a C program (faster),
3982 # so one script is as good as another. But avoid the broken or
3983 # incompatible versions:
3984 # SysV /etc/install, /usr/sbin/install
3985 # SunOS /usr/etc/install
3986 # IRIX /sbin/install
3987 # AIX /bin/install
3988 # AmigaOS /C/install, which installs bootblocks on floppy discs
3989 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3990 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3991 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3992 # OS/2's system install, which has a completely different semantic
3993 # ./install, which can be erroneously created by make from ./install.sh.
3994 # Reject install programs that cannot install multiple files.
3995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3996 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3997 if test -z "$INSTALL"; then
3998 if ${ac_cv_path_install+:} false; then :
3999 $as_echo_n "(cached) " >&6
4000 else
4001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4002 for as_dir in $PATH
4004 IFS=$as_save_IFS
4005 test -z "$as_dir" && as_dir=.
4006 # Account for people who put trailing slashes in PATH elements.
4007 case $as_dir/ in #((
4008 ./ | .// | /[cC]/* | \
4009 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4010 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
4011 /usr/ucb/* ) ;;
4013 # OSF1 and SCO ODT 3.0 have their own names for install.
4014 # Don't use installbsd from OSF since it installs stuff as root
4015 # by default.
4016 for ac_prog in ginstall scoinst install; do
4017 for ac_exec_ext in '' $ac_executable_extensions; do
4018 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
4019 if test $ac_prog = install &&
4020 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4021 # AIX install. It has an incompatible calling convention.
4023 elif test $ac_prog = install &&
4024 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4025 # program-specific install script used by HP pwplus--don't use.
4027 else
4028 rm -rf conftest.one conftest.two conftest.dir
4029 echo one > conftest.one
4030 echo two > conftest.two
4031 mkdir conftest.dir
4032 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
4033 test -s conftest.one && test -s conftest.two &&
4034 test -s conftest.dir/conftest.one &&
4035 test -s conftest.dir/conftest.two
4036 then
4037 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4038 break 3
4042 done
4043 done
4045 esac
4047 done
4048 IFS=$as_save_IFS
4050 rm -rf conftest.one conftest.two conftest.dir
4053 if test "${ac_cv_path_install+set}" = set; then
4054 INSTALL=$ac_cv_path_install
4055 else
4056 # As a last resort, use the slow shell script. Don't cache a
4057 # value for INSTALL within a source directory, because that will
4058 # break other packages using the cache if that directory is
4059 # removed, or if the value is a relative name.
4060 INSTALL=$ac_install_sh
4063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
4064 $as_echo "$INSTALL" >&6; }
4066 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4067 # It thinks the first close brace ends the variable substitution.
4068 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4070 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4072 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
4075 $as_echo_n "checking whether build environment is sane... " >&6; }
4076 # Reject unsafe characters in $srcdir or the absolute working directory
4077 # name. Accept space and tab only in the latter.
4078 am_lf='
4080 case `pwd` in
4081 *[\\\"\#\$\&\'\`$am_lf]*)
4082 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
4083 esac
4084 case $srcdir in
4085 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
4086 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
4087 esac
4089 # Do 'set' in a subshell so we don't clobber the current shell's
4090 # arguments. Must try -L first in case configure is actually a
4091 # symlink; some systems play weird games with the mod time of symlinks
4092 # (eg FreeBSD returns the mod time of the symlink's containing
4093 # directory).
4094 if (
4095 am_has_slept=no
4096 for am_try in 1 2; do
4097 echo "timestamp, slept: $am_has_slept" > conftest.file
4098 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
4099 if test "$*" = "X"; then
4100 # -L didn't work.
4101 set X `ls -t "$srcdir/configure" conftest.file`
4103 if test "$*" != "X $srcdir/configure conftest.file" \
4104 && test "$*" != "X conftest.file $srcdir/configure"; then
4106 # If neither matched, then we have a broken ls. This can happen
4107 # if, for instance, CONFIG_SHELL is bash and it inherits a
4108 # broken ls alias from the environment. This has actually
4109 # happened. Such a system could not be considered "sane".
4110 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
4111 alias in your environment" "$LINENO" 5
4113 if test "$2" = conftest.file || test $am_try -eq 2; then
4114 break
4116 # Just in case.
4117 sleep 1
4118 am_has_slept=yes
4119 done
4120 test "$2" = conftest.file
4122 then
4123 # Ok.
4125 else
4126 as_fn_error $? "newly created file is older than distributed files!
4127 Check your system clock" "$LINENO" 5
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4130 $as_echo "yes" >&6; }
4131 # If we didn't sleep, we still need to ensure time stamps of config.status and
4132 # generated files are strictly newer.
4133 am_sleep_pid=
4134 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
4135 ( sleep 1 ) &
4136 am_sleep_pid=$!
4139 rm -f conftest.file
4141 test "$program_prefix" != NONE &&
4142 program_transform_name="s&^&$program_prefix&;$program_transform_name"
4143 # Use a double $ so make ignores it.
4144 test "$program_suffix" != NONE &&
4145 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
4146 # Double any \ or $.
4147 # By default was `s,x,x', remove it if useless.
4148 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
4149 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
4151 if test x"${MISSING+set}" != xset; then
4152 case $am_aux_dir in
4153 *\ * | *\ *)
4154 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
4156 MISSING="\${SHELL} $am_aux_dir/missing" ;;
4157 esac
4159 # Use eval to expand $SHELL
4160 if eval "$MISSING --is-lightweight"; then
4161 am_missing_run="$MISSING "
4162 else
4163 am_missing_run=
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
4165 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
4168 if test x"${install_sh+set}" != xset; then
4169 case $am_aux_dir in
4170 *\ * | *\ *)
4171 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
4173 install_sh="\${SHELL} $am_aux_dir/install-sh"
4174 esac
4177 # Installed binaries are usually stripped using 'strip' when the user
4178 # run "make install-strip". However 'strip' might not be the right
4179 # tool to use in cross-compilation environments, therefore Automake
4180 # will honor the 'STRIP' environment variable to overrule this program.
4181 if test "$cross_compiling" != no; then
4182 if test -n "$ac_tool_prefix"; then
4183 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
4184 set dummy ${ac_tool_prefix}strip; ac_word=$2
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4186 $as_echo_n "checking for $ac_word... " >&6; }
4187 if ${ac_cv_prog_STRIP+:} false; then :
4188 $as_echo_n "(cached) " >&6
4189 else
4190 if test -n "$STRIP"; then
4191 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
4192 else
4193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4194 for as_dir in $PATH
4196 IFS=$as_save_IFS
4197 test -z "$as_dir" && as_dir=.
4198 for ac_exec_ext in '' $ac_executable_extensions; do
4199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4200 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
4201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4202 break 2
4204 done
4205 done
4206 IFS=$as_save_IFS
4210 STRIP=$ac_cv_prog_STRIP
4211 if test -n "$STRIP"; then
4212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
4213 $as_echo "$STRIP" >&6; }
4214 else
4215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4216 $as_echo "no" >&6; }
4221 if test -z "$ac_cv_prog_STRIP"; then
4222 ac_ct_STRIP=$STRIP
4223 # Extract the first word of "strip", so it can be a program name with args.
4224 set dummy strip; ac_word=$2
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4226 $as_echo_n "checking for $ac_word... " >&6; }
4227 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
4228 $as_echo_n "(cached) " >&6
4229 else
4230 if test -n "$ac_ct_STRIP"; then
4231 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
4232 else
4233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4234 for as_dir in $PATH
4236 IFS=$as_save_IFS
4237 test -z "$as_dir" && as_dir=.
4238 for ac_exec_ext in '' $ac_executable_extensions; do
4239 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4240 ac_cv_prog_ac_ct_STRIP="strip"
4241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4242 break 2
4244 done
4245 done
4246 IFS=$as_save_IFS
4250 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
4251 if test -n "$ac_ct_STRIP"; then
4252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
4253 $as_echo "$ac_ct_STRIP" >&6; }
4254 else
4255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4256 $as_echo "no" >&6; }
4259 if test "x$ac_ct_STRIP" = x; then
4260 STRIP=":"
4261 else
4262 case $cross_compiling:$ac_tool_warned in
4263 yes:)
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4265 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4266 ac_tool_warned=yes ;;
4267 esac
4268 STRIP=$ac_ct_STRIP
4270 else
4271 STRIP="$ac_cv_prog_STRIP"
4275 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
4277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
4278 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
4279 if test -z "$MKDIR_P"; then
4280 if ${ac_cv_path_mkdir+:} false; then :
4281 $as_echo_n "(cached) " >&6
4282 else
4283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4284 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
4286 IFS=$as_save_IFS
4287 test -z "$as_dir" && as_dir=.
4288 for ac_prog in mkdir gmkdir; do
4289 for ac_exec_ext in '' $ac_executable_extensions; do
4290 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
4291 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
4292 'mkdir (GNU coreutils) '* | \
4293 'mkdir (coreutils) '* | \
4294 'mkdir (fileutils) '4.1*)
4295 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
4296 break 3;;
4297 esac
4298 done
4299 done
4300 done
4301 IFS=$as_save_IFS
4305 test -d ./--version && rmdir ./--version
4306 if test "${ac_cv_path_mkdir+set}" = set; then
4307 MKDIR_P="$ac_cv_path_mkdir -p"
4308 else
4309 # As a last resort, use the slow shell script. Don't cache a
4310 # value for MKDIR_P within a source directory, because that will
4311 # break other packages using the cache if that directory is
4312 # removed, or if the value is a relative name.
4313 MKDIR_P="$ac_install_sh -d"
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
4317 $as_echo "$MKDIR_P" >&6; }
4319 for ac_prog in gawk mawk nawk awk
4321 # Extract the first word of "$ac_prog", so it can be a program name with args.
4322 set dummy $ac_prog; ac_word=$2
4323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4324 $as_echo_n "checking for $ac_word... " >&6; }
4325 if ${ac_cv_prog_AWK+:} false; then :
4326 $as_echo_n "(cached) " >&6
4327 else
4328 if test -n "$AWK"; then
4329 ac_cv_prog_AWK="$AWK" # Let the user override the test.
4330 else
4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4332 for as_dir in $PATH
4334 IFS=$as_save_IFS
4335 test -z "$as_dir" && as_dir=.
4336 for ac_exec_ext in '' $ac_executable_extensions; do
4337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4338 ac_cv_prog_AWK="$ac_prog"
4339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4340 break 2
4342 done
4343 done
4344 IFS=$as_save_IFS
4348 AWK=$ac_cv_prog_AWK
4349 if test -n "$AWK"; then
4350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4351 $as_echo "$AWK" >&6; }
4352 else
4353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4354 $as_echo "no" >&6; }
4358 test -n "$AWK" && break
4359 done
4361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
4362 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
4363 set x ${MAKE-make}
4364 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
4365 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
4366 $as_echo_n "(cached) " >&6
4367 else
4368 cat >conftest.make <<\_ACEOF
4369 SHELL = /bin/sh
4370 all:
4371 @echo '@@@%%%=$(MAKE)=@@@%%%'
4372 _ACEOF
4373 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
4374 case `${MAKE-make} -f conftest.make 2>/dev/null` in
4375 *@@@%%%=?*=@@@%%%*)
4376 eval ac_cv_prog_make_${ac_make}_set=yes;;
4378 eval ac_cv_prog_make_${ac_make}_set=no;;
4379 esac
4380 rm -f conftest.make
4382 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4384 $as_echo "yes" >&6; }
4385 SET_MAKE=
4386 else
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4388 $as_echo "no" >&6; }
4389 SET_MAKE="MAKE=${MAKE-make}"
4392 rm -rf .tst 2>/dev/null
4393 mkdir .tst 2>/dev/null
4394 if test -d .tst; then
4395 am__leading_dot=.
4396 else
4397 am__leading_dot=_
4399 rmdir .tst 2>/dev/null
4401 DEPDIR="${am__leading_dot}deps"
4403 ac_config_commands="$ac_config_commands depfiles"
4406 am_make=${MAKE-make}
4407 cat > confinc << 'END'
4408 am__doit:
4409 @echo this is the am__doit target
4410 .PHONY: am__doit
4412 # If we don't find an include directive, just comment out the code.
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4414 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4415 am__include="#"
4416 am__quote=
4417 _am_result=none
4418 # First try GNU make style include.
4419 echo "include confinc" > confmf
4420 # Ignore all kinds of additional output from 'make'.
4421 case `$am_make -s -f confmf 2> /dev/null` in #(
4422 *the\ am__doit\ target*)
4423 am__include=include
4424 am__quote=
4425 _am_result=GNU
4427 esac
4428 # Now try BSD make style include.
4429 if test "$am__include" = "#"; then
4430 echo '.include "confinc"' > confmf
4431 case `$am_make -s -f confmf 2> /dev/null` in #(
4432 *the\ am__doit\ target*)
4433 am__include=.include
4434 am__quote="\""
4435 _am_result=BSD
4437 esac
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4442 $as_echo "$_am_result" >&6; }
4443 rm -f confinc confmf
4445 # Check whether --enable-dependency-tracking was given.
4446 if test "${enable_dependency_tracking+set}" = set; then :
4447 enableval=$enable_dependency_tracking;
4450 if test "x$enable_dependency_tracking" != xno; then
4451 am_depcomp="$ac_aux_dir/depcomp"
4452 AMDEPBACKSLASH='\'
4453 am__nodep='_no'
4455 if test "x$enable_dependency_tracking" != xno; then
4456 AMDEP_TRUE=
4457 AMDEP_FALSE='#'
4458 else
4459 AMDEP_TRUE='#'
4460 AMDEP_FALSE=
4464 # Check whether --enable-silent-rules was given.
4465 if test "${enable_silent_rules+set}" = set; then :
4466 enableval=$enable_silent_rules;
4469 case $enable_silent_rules in # (((
4470 yes) AM_DEFAULT_VERBOSITY=0;;
4471 no) AM_DEFAULT_VERBOSITY=1;;
4472 *) AM_DEFAULT_VERBOSITY=1;;
4473 esac
4474 am_make=${MAKE-make}
4475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
4476 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
4477 if ${am_cv_make_support_nested_variables+:} false; then :
4478 $as_echo_n "(cached) " >&6
4479 else
4480 if $as_echo 'TRUE=$(BAR$(V))
4481 BAR0=false
4482 BAR1=true
4484 am__doit:
4485 @$(TRUE)
4486 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
4487 am_cv_make_support_nested_variables=yes
4488 else
4489 am_cv_make_support_nested_variables=no
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
4493 $as_echo "$am_cv_make_support_nested_variables" >&6; }
4494 if test $am_cv_make_support_nested_variables = yes; then
4495 AM_V='$(V)'
4496 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
4497 else
4498 AM_V=$AM_DEFAULT_VERBOSITY
4499 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
4501 AM_BACKSLASH='\'
4503 if test "`cd $srcdir && pwd`" != "`pwd`"; then
4504 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
4505 # is not polluted with repeated "-I."
4506 am__isrc=' -I$(srcdir)'
4507 # test to see if srcdir already configured
4508 if test -f $srcdir/config.status; then
4509 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
4513 # test whether we have cygpath
4514 if test -z "$CYGPATH_W"; then
4515 if (cygpath --version) >/dev/null 2>/dev/null; then
4516 CYGPATH_W='cygpath -w'
4517 else
4518 CYGPATH_W=echo
4523 # Define the identity of the package.
4524 PACKAGE='libgm2'
4525 VERSION='version-unused'
4528 # Some tools Automake needs.
4530 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
4533 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
4536 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
4539 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
4542 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
4544 # For better backward compatibility. To be removed once Automake 1.9.x
4545 # dies out for good. For more background, see:
4546 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
4547 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
4548 mkdir_p='$(MKDIR_P)'
4550 # We need awk for the "check" target (and possibly the TAP driver). The
4551 # system "awk" is bad on some platforms.
4552 # Always define AMTAR for backward compatibility. Yes, it's still used
4553 # in the wild :-( We should find a proper way to deprecate it ...
4554 AMTAR='$${TAR-tar}'
4557 # We'll loop over all known methods to create a tar archive until one works.
4558 _am_tools='gnutar pax cpio none'
4560 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
4566 depcc="$CC" am_compiler_list=
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4569 $as_echo_n "checking dependency style of $depcc... " >&6; }
4570 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4571 $as_echo_n "(cached) " >&6
4572 else
4573 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4574 # We make a subdir and do the tests there. Otherwise we can end up
4575 # making bogus files that we don't know about and never remove. For
4576 # instance it was reported that on HP-UX the gcc test will end up
4577 # making a dummy file named 'D' -- because '-MD' means "put the output
4578 # in D".
4579 rm -rf conftest.dir
4580 mkdir conftest.dir
4581 # Copy depcomp to subdir because otherwise we won't find it if we're
4582 # using a relative directory.
4583 cp "$am_depcomp" conftest.dir
4584 cd conftest.dir
4585 # We will build objects and dependencies in a subdirectory because
4586 # it helps to detect inapplicable dependency modes. For instance
4587 # both Tru64's cc and ICC support -MD to output dependencies as a
4588 # side effect of compilation, but ICC will put the dependencies in
4589 # the current directory while Tru64 will put them in the object
4590 # directory.
4591 mkdir sub
4593 am_cv_CC_dependencies_compiler_type=none
4594 if test "$am_compiler_list" = ""; then
4595 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4597 am__universal=false
4598 case " $depcc " in #(
4599 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4600 esac
4602 for depmode in $am_compiler_list; do
4603 # Setup a source with many dependencies, because some compilers
4604 # like to wrap large dependency lists on column 80 (with \), and
4605 # we should not choose a depcomp mode which is confused by this.
4607 # We need to recreate these files for each test, as the compiler may
4608 # overwrite some of them when testing with obscure command lines.
4609 # This happens at least with the AIX C compiler.
4610 : > sub/conftest.c
4611 for i in 1 2 3 4 5 6; do
4612 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4613 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4614 # Solaris 10 /bin/sh.
4615 echo '/* dummy */' > sub/conftst$i.h
4616 done
4617 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4619 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4620 # mode. It turns out that the SunPro C++ compiler does not properly
4621 # handle '-M -o', and we need to detect this. Also, some Intel
4622 # versions had trouble with output in subdirs.
4623 am__obj=sub/conftest.${OBJEXT-o}
4624 am__minus_obj="-o $am__obj"
4625 case $depmode in
4626 gcc)
4627 # This depmode causes a compiler race in universal mode.
4628 test "$am__universal" = false || continue
4630 nosideeffect)
4631 # After this tag, mechanisms are not by side-effect, so they'll
4632 # only be used when explicitly requested.
4633 if test "x$enable_dependency_tracking" = xyes; then
4634 continue
4635 else
4636 break
4639 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4640 # This compiler won't grok '-c -o', but also, the minuso test has
4641 # not run yet. These depmodes are late enough in the game, and
4642 # so weak that their functioning should not be impacted.
4643 am__obj=conftest.${OBJEXT-o}
4644 am__minus_obj=
4646 none) break ;;
4647 esac
4648 if depmode=$depmode \
4649 source=sub/conftest.c object=$am__obj \
4650 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4651 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4652 >/dev/null 2>conftest.err &&
4653 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4654 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4655 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4656 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4657 # icc doesn't choke on unknown options, it will just issue warnings
4658 # or remarks (even with -Werror). So we grep stderr for any message
4659 # that says an option was ignored or not supported.
4660 # When given -MP, icc 7.0 and 7.1 complain thusly:
4661 # icc: Command line warning: ignoring option '-M'; no argument required
4662 # The diagnosis changed in icc 8.0:
4663 # icc: Command line remark: option '-MP' not supported
4664 if (grep 'ignoring option' conftest.err ||
4665 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4666 am_cv_CC_dependencies_compiler_type=$depmode
4667 break
4670 done
4672 cd ..
4673 rm -rf conftest.dir
4674 else
4675 am_cv_CC_dependencies_compiler_type=none
4679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4680 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4681 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4684 test "x$enable_dependency_tracking" != xno \
4685 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4686 am__fastdepCC_TRUE=
4687 am__fastdepCC_FALSE='#'
4688 else
4689 am__fastdepCC_TRUE='#'
4690 am__fastdepCC_FALSE=
4695 # POSIX will say in a future version that running "rm -f" with no argument
4696 # is OK; and we want to be able to make that assumption in our Makefile
4697 # recipes. So use an aggressive probe to check that the usage we want is
4698 # actually supported "in the wild" to an acceptable degree.
4699 # See automake bug#10828.
4700 # To make any issue more visible, cause the running configure to be aborted
4701 # by default if the 'rm' program in use doesn't match our expectations; the
4702 # user can still override this though.
4703 if rm -f && rm -fr && rm -rf; then : OK; else
4704 cat >&2 <<'END'
4705 Oops!
4707 Your 'rm' program seems unable to run without file operands specified
4708 on the command line, even when the '-f' option is present. This is contrary
4709 to the behaviour of most rm programs out there, and not conforming with
4710 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
4712 Please tell bug-automake@gnu.org about your system, including the value
4713 of your $PATH and any error possibly output before this message. This
4714 can help us improve future automake versions.
4717 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
4718 echo 'Configuration will proceed anyway, since you have set the' >&2
4719 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
4720 echo >&2
4721 else
4722 cat >&2 <<'END'
4723 Aborting the configuration process, to ensure you take notice of the issue.
4725 You can download and install GNU coreutils to get an 'rm' implementation
4726 that behaves properly: <http://www.gnu.org/software/coreutils/>.
4728 If you want to complete the configuration process using your problematic
4729 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
4730 to "yes", and re-run configure.
4733 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
4742 # Check whether --with-cross-host was given.
4743 if test "${with_cross_host+set}" = set; then :
4744 withval=$with_cross_host;
4748 # Checks for header files.
4749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4750 $as_echo_n "checking for ANSI C header files... " >&6; }
4751 if ${ac_cv_header_stdc+:} false; then :
4752 $as_echo_n "(cached) " >&6
4753 else
4754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4755 /* end confdefs.h. */
4756 #include <stdlib.h>
4757 #include <stdarg.h>
4758 #include <string.h>
4759 #include <float.h>
4762 main ()
4766 return 0;
4768 _ACEOF
4769 if ac_fn_c_try_compile "$LINENO"; then :
4770 ac_cv_header_stdc=yes
4771 else
4772 ac_cv_header_stdc=no
4774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4776 if test $ac_cv_header_stdc = yes; then
4777 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4780 #include <string.h>
4782 _ACEOF
4783 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4784 $EGREP "memchr" >/dev/null 2>&1; then :
4786 else
4787 ac_cv_header_stdc=no
4789 rm -f conftest*
4793 if test $ac_cv_header_stdc = yes; then
4794 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4796 /* end confdefs.h. */
4797 #include <stdlib.h>
4799 _ACEOF
4800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4801 $EGREP "free" >/dev/null 2>&1; then :
4803 else
4804 ac_cv_header_stdc=no
4806 rm -f conftest*
4810 if test $ac_cv_header_stdc = yes; then
4811 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4812 if test "$cross_compiling" = yes; then :
4814 else
4815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4816 /* end confdefs.h. */
4817 #include <ctype.h>
4818 #include <stdlib.h>
4819 #if ((' ' & 0x0FF) == 0x020)
4820 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4821 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4822 #else
4823 # define ISLOWER(c) \
4824 (('a' <= (c) && (c) <= 'i') \
4825 || ('j' <= (c) && (c) <= 'r') \
4826 || ('s' <= (c) && (c) <= 'z'))
4827 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4828 #endif
4830 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4832 main ()
4834 int i;
4835 for (i = 0; i < 256; i++)
4836 if (XOR (islower (i), ISLOWER (i))
4837 || toupper (i) != TOUPPER (i))
4838 return 2;
4839 return 0;
4841 _ACEOF
4842 if ac_fn_c_try_run "$LINENO"; then :
4844 else
4845 ac_cv_header_stdc=no
4847 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4848 conftest.$ac_objext conftest.beam conftest.$ac_ext
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4854 $as_echo "$ac_cv_header_stdc" >&6; }
4855 if test $ac_cv_header_stdc = yes; then
4857 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
4862 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
4863 if ${ac_cv_header_sys_wait_h+:} false; then :
4864 $as_echo_n "(cached) " >&6
4865 else
4866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4867 /* end confdefs.h. */
4868 #include <sys/types.h>
4869 #include <sys/wait.h>
4870 #ifndef WEXITSTATUS
4871 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
4872 #endif
4873 #ifndef WIFEXITED
4874 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
4875 #endif
4878 main ()
4880 int s;
4881 wait (&s);
4882 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
4884 return 0;
4886 _ACEOF
4887 if ac_fn_c_try_compile "$LINENO"; then :
4888 ac_cv_header_sys_wait_h=yes
4889 else
4890 ac_cv_header_sys_wait_h=no
4892 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
4895 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
4896 if test $ac_cv_header_sys_wait_h = yes; then
4898 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4902 ac_fn_c_check_header_mongrel "$LINENO" "math.h" "ac_cv_header_math_h" "$ac_includes_default"
4903 if test "x$ac_cv_header_math_h" = xyes; then :
4905 $as_echo "#define HAVE_MATH_H 1" >>confdefs.h
4911 for ac_header in limits.h stddef.h string.h strings.h stdlib.h \
4912 time.h \
4913 fcntl.h unistd.h sys/file.h sys/time.h sys/mman.h \
4914 sys/resource.h sys/param.h sys/times.h sys/stat.h \
4915 sys/socket.h \
4916 sys/wait.h sys/ioctl.h errno.h sys/errno.h \
4917 pwd.h direct.h dirent.h signal.h malloc.h langinfo.h \
4918 pthread.h stdarg.h stdio.h sys/types.h termios.h \
4919 netinet/in.h netdb.h sys/uio.h sys/stat.h wchar.h
4920 do :
4921 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4922 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
4923 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4924 cat >>confdefs.h <<_ACEOF
4925 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4926 _ACEOF
4930 done
4935 case ${build_alias} in
4936 "") build_noncanonical=${build} ;;
4937 *) build_noncanonical=${build_alias} ;;
4938 esac
4940 case ${host_alias} in
4941 "") host_noncanonical=${build_noncanonical} ;;
4942 *) host_noncanonical=${host_alias} ;;
4943 esac
4947 case ${target_alias} in
4948 "") target_noncanonical=${host_noncanonical} ;;
4949 *) target_noncanonical=${target_alias} ;;
4950 esac
4955 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
4956 # have matching libraries, they should use host libraries: Makefile.tpl
4957 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
4958 # However, they still use the build modules, because the corresponding
4959 # host modules (e.g. bison) are only built for the host when bootstrap
4960 # finishes. So:
4961 # - build_subdir is where we find build modules, and never changes.
4962 # - build_libsubdir is where we find build libraries, and can be overridden.
4964 # Prefix 'build-' so this never conflicts with target_subdir.
4965 build_subdir="build-${build_noncanonical}"
4967 # Check whether --with-build-libsubdir was given.
4968 if test "${with_build_libsubdir+set}" = set; then :
4969 withval=$with_build_libsubdir; build_libsubdir="$withval"
4970 else
4971 build_libsubdir="$build_subdir"
4974 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
4975 if ( test $srcdir = . && test -d gcc ) \
4976 || test -d $srcdir/../host-${host_noncanonical}; then
4977 host_subdir="host-${host_noncanonical}"
4978 else
4979 host_subdir=.
4981 # No prefix.
4982 target_subdir=${target_noncanonical}
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
4986 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
4987 # Check whether --enable-version-specific-runtime-libs was given.
4988 if test "${enable_version_specific_runtime_libs+set}" = set; then :
4989 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
4990 yes) version_specific_libs=yes ;;
4991 no) version_specific_libs=no ;;
4992 *) as_fn_error $? "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
4993 esac
4994 else
4995 version_specific_libs=no
4998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
4999 $as_echo "$version_specific_libs" >&6; }
5002 # Check whether --with-slibdir was given.
5003 if test "${with_slibdir+set}" = set; then :
5004 withval=$with_slibdir; slibdir="$with_slibdir"
5005 else
5006 if test "${version_specific_libs}" = yes; then
5007 slibdir='$(libsubdir)'
5008 elif test -n "$with_cross_host" && test x"$with_cross_host" != x"no"; then
5009 slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
5010 else
5011 slibdir='$(libdir)'
5017 # Command-line options.
5018 # Very limited version of AC_MAINTAINER_MODE.
5019 # Check whether --enable-maintainer-mode was given.
5020 if test "${enable_maintainer_mode+set}" = set; then :
5021 enableval=$enable_maintainer_mode; case ${enable_maintainer_mode} in
5022 yes) MAINT='' ;;
5023 no) MAINT='#' ;;
5024 *) as_fn_error $? "--enable-maintainer-mode must be yes or no" "$LINENO" 5 ;;
5025 esac
5026 maintainer_mode=${enableval}
5027 else
5028 MAINT='#'
5032 toolexecdir=no
5033 toolexeclibdir=no
5035 # Calculate toolexeclibdir
5036 # Also toolexecdir, though it's only used in toolexeclibdir
5037 case ${version_specific_libs} in
5038 yes)
5039 # Need the gcc compiler version to know where to install libraries
5040 # and header files if --enable-version-specific-runtime-libs option
5041 # is selected.
5042 toolexecdir='$(libdir)/gcc/$(target_noncanonical)'
5043 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
5046 if test -n "$with_cross_host" &&
5047 test x"$with_cross_host" != x"no"; then
5048 # Install a library built with a cross compiler in tooldir, not libdir.
5049 toolexecdir='$(exec_prefix)/$(target_noncanonical)'
5050 toolexeclibdir='$(toolexecdir)/lib'
5051 else
5052 toolexecdir='$(libdir)/gcc-lib/$(target_noncanonical)'
5053 toolexeclibdir='$(libdir)'
5055 multi_os_directory=`$CC -print-multi-os-directory`
5056 case $multi_os_directory in
5057 .) ;; # Avoid trailing /.
5058 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
5059 esac
5061 esac
5070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
5071 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
5072 # Check whether --enable-maintainer-mode was given.
5073 if test "${enable_maintainer_mode+set}" = set; then :
5074 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
5075 else
5076 USE_MAINTAINER_MODE=no
5079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
5080 $as_echo "$USE_MAINTAINER_MODE" >&6; }
5081 if test $USE_MAINTAINER_MODE = yes; then
5082 MAINTAINER_MODE_TRUE=
5083 MAINTAINER_MODE_FALSE='#'
5084 else
5085 MAINTAINER_MODE_TRUE='#'
5086 MAINTAINER_MODE_FALSE=
5089 MAINT=$MAINTAINER_MODE_TRUE
5093 # Check the compiler.
5094 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
5095 # We must force CC to /not/ be precious variables; otherwise
5096 # the wrong, non-multilib-adjusted value will be used in multilibs.
5097 # As a side effect, we have to subst CFLAGS ourselves.
5101 ac_ext=c
5102 ac_cpp='$CPP $CPPFLAGS'
5103 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5104 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5105 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5106 if test -n "$ac_tool_prefix"; then
5107 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
5108 set dummy ${ac_tool_prefix}gcc; ac_word=$2
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5110 $as_echo_n "checking for $ac_word... " >&6; }
5111 if ${ac_cv_prog_CC+:} false; then :
5112 $as_echo_n "(cached) " >&6
5113 else
5114 if test -n "$CC"; then
5115 ac_cv_prog_CC="$CC" # Let the user override the test.
5116 else
5117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5118 for as_dir in $PATH
5120 IFS=$as_save_IFS
5121 test -z "$as_dir" && as_dir=.
5122 for ac_exec_ext in '' $ac_executable_extensions; do
5123 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5124 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5125 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5126 break 2
5128 done
5129 done
5130 IFS=$as_save_IFS
5134 CC=$ac_cv_prog_CC
5135 if test -n "$CC"; then
5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5137 $as_echo "$CC" >&6; }
5138 else
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5140 $as_echo "no" >&6; }
5145 if test -z "$ac_cv_prog_CC"; then
5146 ac_ct_CC=$CC
5147 # Extract the first word of "gcc", so it can be a program name with args.
5148 set dummy gcc; ac_word=$2
5149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5150 $as_echo_n "checking for $ac_word... " >&6; }
5151 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5152 $as_echo_n "(cached) " >&6
5153 else
5154 if test -n "$ac_ct_CC"; then
5155 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5156 else
5157 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5158 for as_dir in $PATH
5160 IFS=$as_save_IFS
5161 test -z "$as_dir" && as_dir=.
5162 for ac_exec_ext in '' $ac_executable_extensions; do
5163 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5164 ac_cv_prog_ac_ct_CC="gcc"
5165 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5166 break 2
5168 done
5169 done
5170 IFS=$as_save_IFS
5174 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5175 if test -n "$ac_ct_CC"; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5177 $as_echo "$ac_ct_CC" >&6; }
5178 else
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5180 $as_echo "no" >&6; }
5183 if test "x$ac_ct_CC" = x; then
5184 CC=""
5185 else
5186 case $cross_compiling:$ac_tool_warned in
5187 yes:)
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5189 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5190 ac_tool_warned=yes ;;
5191 esac
5192 CC=$ac_ct_CC
5194 else
5195 CC="$ac_cv_prog_CC"
5198 if test -z "$CC"; then
5199 if test -n "$ac_tool_prefix"; then
5200 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5201 set dummy ${ac_tool_prefix}cc; ac_word=$2
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5203 $as_echo_n "checking for $ac_word... " >&6; }
5204 if ${ac_cv_prog_CC+:} false; then :
5205 $as_echo_n "(cached) " >&6
5206 else
5207 if test -n "$CC"; then
5208 ac_cv_prog_CC="$CC" # Let the user override the test.
5209 else
5210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5211 for as_dir in $PATH
5213 IFS=$as_save_IFS
5214 test -z "$as_dir" && as_dir=.
5215 for ac_exec_ext in '' $ac_executable_extensions; do
5216 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5217 ac_cv_prog_CC="${ac_tool_prefix}cc"
5218 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5219 break 2
5221 done
5222 done
5223 IFS=$as_save_IFS
5227 CC=$ac_cv_prog_CC
5228 if test -n "$CC"; then
5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5230 $as_echo "$CC" >&6; }
5231 else
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5233 $as_echo "no" >&6; }
5239 if test -z "$CC"; then
5240 # Extract the first word of "cc", so it can be a program name with args.
5241 set dummy cc; ac_word=$2
5242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5243 $as_echo_n "checking for $ac_word... " >&6; }
5244 if ${ac_cv_prog_CC+:} false; then :
5245 $as_echo_n "(cached) " >&6
5246 else
5247 if test -n "$CC"; then
5248 ac_cv_prog_CC="$CC" # Let the user override the test.
5249 else
5250 ac_prog_rejected=no
5251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5252 for as_dir in $PATH
5254 IFS=$as_save_IFS
5255 test -z "$as_dir" && as_dir=.
5256 for ac_exec_ext in '' $ac_executable_extensions; do
5257 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5258 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5259 ac_prog_rejected=yes
5260 continue
5262 ac_cv_prog_CC="cc"
5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5264 break 2
5266 done
5267 done
5268 IFS=$as_save_IFS
5270 if test $ac_prog_rejected = yes; then
5271 # We found a bogon in the path, so make sure we never use it.
5272 set dummy $ac_cv_prog_CC
5273 shift
5274 if test $# != 0; then
5275 # We chose a different compiler from the bogus one.
5276 # However, it has the same basename, so the bogon will be chosen
5277 # first if we set CC to just the basename; use the full file name.
5278 shift
5279 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5284 CC=$ac_cv_prog_CC
5285 if test -n "$CC"; then
5286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5287 $as_echo "$CC" >&6; }
5288 else
5289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5290 $as_echo "no" >&6; }
5295 if test -z "$CC"; then
5296 if test -n "$ac_tool_prefix"; then
5297 for ac_prog in cl.exe
5299 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5300 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5302 $as_echo_n "checking for $ac_word... " >&6; }
5303 if ${ac_cv_prog_CC+:} false; then :
5304 $as_echo_n "(cached) " >&6
5305 else
5306 if test -n "$CC"; then
5307 ac_cv_prog_CC="$CC" # Let the user override the test.
5308 else
5309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5310 for as_dir in $PATH
5312 IFS=$as_save_IFS
5313 test -z "$as_dir" && as_dir=.
5314 for ac_exec_ext in '' $ac_executable_extensions; do
5315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5316 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5318 break 2
5320 done
5321 done
5322 IFS=$as_save_IFS
5326 CC=$ac_cv_prog_CC
5327 if test -n "$CC"; then
5328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5329 $as_echo "$CC" >&6; }
5330 else
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5332 $as_echo "no" >&6; }
5336 test -n "$CC" && break
5337 done
5339 if test -z "$CC"; then
5340 ac_ct_CC=$CC
5341 for ac_prog in cl.exe
5343 # Extract the first word of "$ac_prog", so it can be a program name with args.
5344 set dummy $ac_prog; ac_word=$2
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5346 $as_echo_n "checking for $ac_word... " >&6; }
5347 if ${ac_cv_prog_ac_ct_CC+:} false; then :
5348 $as_echo_n "(cached) " >&6
5349 else
5350 if test -n "$ac_ct_CC"; then
5351 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5352 else
5353 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5354 for as_dir in $PATH
5356 IFS=$as_save_IFS
5357 test -z "$as_dir" && as_dir=.
5358 for ac_exec_ext in '' $ac_executable_extensions; do
5359 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5360 ac_cv_prog_ac_ct_CC="$ac_prog"
5361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5362 break 2
5364 done
5365 done
5366 IFS=$as_save_IFS
5370 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5371 if test -n "$ac_ct_CC"; then
5372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5373 $as_echo "$ac_ct_CC" >&6; }
5374 else
5375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5376 $as_echo "no" >&6; }
5380 test -n "$ac_ct_CC" && break
5381 done
5383 if test "x$ac_ct_CC" = x; then
5384 CC=""
5385 else
5386 case $cross_compiling:$ac_tool_warned in
5387 yes:)
5388 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5389 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5390 ac_tool_warned=yes ;;
5391 esac
5392 CC=$ac_ct_CC
5399 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5400 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5401 as_fn_error $? "no acceptable C compiler found in \$PATH
5402 See \`config.log' for more details" "$LINENO" 5; }
5404 # Provide some information about the compiler.
5405 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5406 set X $ac_compile
5407 ac_compiler=$2
5408 for ac_option in --version -v -V -qversion; do
5409 { { ac_try="$ac_compiler $ac_option >&5"
5410 case "(($ac_try" in
5411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5412 *) ac_try_echo=$ac_try;;
5413 esac
5414 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5415 $as_echo "$ac_try_echo"; } >&5
5416 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5417 ac_status=$?
5418 if test -s conftest.err; then
5419 sed '10a\
5420 ... rest of stderr output deleted ...
5421 10q' conftest.err >conftest.er1
5422 cat conftest.er1 >&5
5424 rm -f conftest.er1 conftest.err
5425 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5426 test $ac_status = 0; }
5427 done
5429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5430 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5431 if ${ac_cv_c_compiler_gnu+:} false; then :
5432 $as_echo_n "(cached) " >&6
5433 else
5434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5435 /* end confdefs.h. */
5438 main ()
5440 #ifndef __GNUC__
5441 choke me
5442 #endif
5445 return 0;
5447 _ACEOF
5448 if ac_fn_c_try_compile "$LINENO"; then :
5449 ac_compiler_gnu=yes
5450 else
5451 ac_compiler_gnu=no
5453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5454 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5458 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5459 if test $ac_compiler_gnu = yes; then
5460 GCC=yes
5461 else
5462 GCC=
5464 ac_test_CFLAGS=${CFLAGS+set}
5465 ac_save_CFLAGS=$CFLAGS
5466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5467 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5468 if ${ac_cv_prog_cc_g+:} false; then :
5469 $as_echo_n "(cached) " >&6
5470 else
5471 ac_save_c_werror_flag=$ac_c_werror_flag
5472 ac_c_werror_flag=yes
5473 ac_cv_prog_cc_g=no
5474 CFLAGS="-g"
5475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5476 /* end confdefs.h. */
5479 main ()
5483 return 0;
5485 _ACEOF
5486 if ac_fn_c_try_compile "$LINENO"; then :
5487 ac_cv_prog_cc_g=yes
5488 else
5489 CFLAGS=""
5490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5491 /* end confdefs.h. */
5494 main ()
5498 return 0;
5500 _ACEOF
5501 if ac_fn_c_try_compile "$LINENO"; then :
5503 else
5504 ac_c_werror_flag=$ac_save_c_werror_flag
5505 CFLAGS="-g"
5506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5507 /* end confdefs.h. */
5510 main ()
5514 return 0;
5516 _ACEOF
5517 if ac_fn_c_try_compile "$LINENO"; then :
5518 ac_cv_prog_cc_g=yes
5520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5525 ac_c_werror_flag=$ac_save_c_werror_flag
5527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5528 $as_echo "$ac_cv_prog_cc_g" >&6; }
5529 if test "$ac_test_CFLAGS" = set; then
5530 CFLAGS=$ac_save_CFLAGS
5531 elif test $ac_cv_prog_cc_g = yes; then
5532 if test "$GCC" = yes; then
5533 CFLAGS="-g -O2"
5534 else
5535 CFLAGS="-g"
5537 else
5538 if test "$GCC" = yes; then
5539 CFLAGS="-O2"
5540 else
5541 CFLAGS=
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5545 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5546 if ${ac_cv_prog_cc_c89+:} false; then :
5547 $as_echo_n "(cached) " >&6
5548 else
5549 ac_cv_prog_cc_c89=no
5550 ac_save_CC=$CC
5551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5552 /* end confdefs.h. */
5553 #include <stdarg.h>
5554 #include <stdio.h>
5555 struct stat;
5556 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5557 struct buf { int x; };
5558 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5559 static char *e (p, i)
5560 char **p;
5561 int i;
5563 return p[i];
5565 static char *f (char * (*g) (char **, int), char **p, ...)
5567 char *s;
5568 va_list v;
5569 va_start (v,p);
5570 s = g (p, va_arg (v,int));
5571 va_end (v);
5572 return s;
5575 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5576 function prototypes and stuff, but not '\xHH' hex character constants.
5577 These don't provoke an error unfortunately, instead are silently treated
5578 as 'x'. The following induces an error, until -std is added to get
5579 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5580 array size at least. It's necessary to write '\x00'==0 to get something
5581 that's true only with -std. */
5582 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5584 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5585 inside strings and character constants. */
5586 #define FOO(x) 'x'
5587 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5589 int test (int i, double x);
5590 struct s1 {int (*f) (int a);};
5591 struct s2 {int (*f) (double a);};
5592 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5593 int argc;
5594 char **argv;
5596 main ()
5598 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5600 return 0;
5602 _ACEOF
5603 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5604 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5606 CC="$ac_save_CC $ac_arg"
5607 if ac_fn_c_try_compile "$LINENO"; then :
5608 ac_cv_prog_cc_c89=$ac_arg
5610 rm -f core conftest.err conftest.$ac_objext
5611 test "x$ac_cv_prog_cc_c89" != "xno" && break
5612 done
5613 rm -f conftest.$ac_ext
5614 CC=$ac_save_CC
5617 # AC_CACHE_VAL
5618 case "x$ac_cv_prog_cc_c89" in
5620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5621 $as_echo "none needed" >&6; } ;;
5622 xno)
5623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5624 $as_echo "unsupported" >&6; } ;;
5626 CC="$CC $ac_cv_prog_cc_c89"
5627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5628 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5629 esac
5630 if test "x$ac_cv_prog_cc_c89" != xno; then :
5634 ac_ext=c
5635 ac_cpp='$CPP $CPPFLAGS'
5636 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5637 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5638 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5640 ac_ext=c
5641 ac_cpp='$CPP $CPPFLAGS'
5642 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5643 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5644 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
5646 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
5647 if ${am_cv_prog_cc_c_o+:} false; then :
5648 $as_echo_n "(cached) " >&6
5649 else
5650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5651 /* end confdefs.h. */
5654 main ()
5658 return 0;
5660 _ACEOF
5661 # Make sure it works both with $CC and with simple cc.
5662 # Following AC_PROG_CC_C_O, we do the test twice because some
5663 # compilers refuse to overwrite an existing .o file with -o,
5664 # though they will create one.
5665 am_cv_prog_cc_c_o=yes
5666 for am_i in 1 2; do
5667 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
5668 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
5669 ac_status=$?
5670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5671 (exit $ac_status); } \
5672 && test -f conftest2.$ac_objext; then
5673 : OK
5674 else
5675 am_cv_prog_cc_c_o=no
5676 break
5678 done
5679 rm -f core conftest*
5680 unset am_i
5682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
5683 $as_echo "$am_cv_prog_cc_c_o" >&6; }
5684 if test "$am_cv_prog_cc_c_o" != yes; then
5685 # Losing compiler, so override with the script.
5686 # FIXME: It is wrong to rewrite CC.
5687 # But if we don't then we get into trouble of one sort or another.
5688 # A longer-term fix would be to have automake use am__CC in this case,
5689 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5690 CC="$am_aux_dir/compile $CC"
5692 ac_ext=c
5693 ac_cpp='$CPP $CPPFLAGS'
5694 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5695 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5696 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5699 ac_ext=cpp
5700 ac_cpp='$CXXCPP $CPPFLAGS'
5701 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5702 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5703 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5704 if test -z "$CXX"; then
5705 if test -n "$CCC"; then
5706 CXX=$CCC
5707 else
5708 if test -n "$ac_tool_prefix"; then
5709 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5711 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5712 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5714 $as_echo_n "checking for $ac_word... " >&6; }
5715 if ${ac_cv_prog_CXX+:} false; then :
5716 $as_echo_n "(cached) " >&6
5717 else
5718 if test -n "$CXX"; then
5719 ac_cv_prog_CXX="$CXX" # Let the user override the test.
5720 else
5721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5722 for as_dir in $PATH
5724 IFS=$as_save_IFS
5725 test -z "$as_dir" && as_dir=.
5726 for ac_exec_ext in '' $ac_executable_extensions; do
5727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5728 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
5729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5730 break 2
5732 done
5733 done
5734 IFS=$as_save_IFS
5738 CXX=$ac_cv_prog_CXX
5739 if test -n "$CXX"; then
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
5741 $as_echo "$CXX" >&6; }
5742 else
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5744 $as_echo "no" >&6; }
5748 test -n "$CXX" && break
5749 done
5751 if test -z "$CXX"; then
5752 ac_ct_CXX=$CXX
5753 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
5755 # Extract the first word of "$ac_prog", so it can be a program name with args.
5756 set dummy $ac_prog; ac_word=$2
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5758 $as_echo_n "checking for $ac_word... " >&6; }
5759 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
5760 $as_echo_n "(cached) " >&6
5761 else
5762 if test -n "$ac_ct_CXX"; then
5763 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
5764 else
5765 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5766 for as_dir in $PATH
5768 IFS=$as_save_IFS
5769 test -z "$as_dir" && as_dir=.
5770 for ac_exec_ext in '' $ac_executable_extensions; do
5771 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5772 ac_cv_prog_ac_ct_CXX="$ac_prog"
5773 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5774 break 2
5776 done
5777 done
5778 IFS=$as_save_IFS
5782 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
5783 if test -n "$ac_ct_CXX"; then
5784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
5785 $as_echo "$ac_ct_CXX" >&6; }
5786 else
5787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5788 $as_echo "no" >&6; }
5792 test -n "$ac_ct_CXX" && break
5793 done
5795 if test "x$ac_ct_CXX" = x; then
5796 CXX="g++"
5797 else
5798 case $cross_compiling:$ac_tool_warned in
5799 yes:)
5800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5801 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5802 ac_tool_warned=yes ;;
5803 esac
5804 CXX=$ac_ct_CXX
5810 # Provide some information about the compiler.
5811 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
5812 set X $ac_compile
5813 ac_compiler=$2
5814 for ac_option in --version -v -V -qversion; do
5815 { { ac_try="$ac_compiler $ac_option >&5"
5816 case "(($ac_try" in
5817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5818 *) ac_try_echo=$ac_try;;
5819 esac
5820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5821 $as_echo "$ac_try_echo"; } >&5
5822 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5823 ac_status=$?
5824 if test -s conftest.err; then
5825 sed '10a\
5826 ... rest of stderr output deleted ...
5827 10q' conftest.err >conftest.er1
5828 cat conftest.er1 >&5
5830 rm -f conftest.er1 conftest.err
5831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5832 test $ac_status = 0; }
5833 done
5835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
5836 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
5837 if ${ac_cv_cxx_compiler_gnu+:} false; then :
5838 $as_echo_n "(cached) " >&6
5839 else
5840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5841 /* end confdefs.h. */
5844 main ()
5846 #ifndef __GNUC__
5847 choke me
5848 #endif
5851 return 0;
5853 _ACEOF
5854 if ac_fn_cxx_try_compile "$LINENO"; then :
5855 ac_compiler_gnu=yes
5856 else
5857 ac_compiler_gnu=no
5859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5860 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
5864 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
5865 if test $ac_compiler_gnu = yes; then
5866 GXX=yes
5867 else
5868 GXX=
5870 ac_test_CXXFLAGS=${CXXFLAGS+set}
5871 ac_save_CXXFLAGS=$CXXFLAGS
5872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
5873 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
5874 if ${ac_cv_prog_cxx_g+:} false; then :
5875 $as_echo_n "(cached) " >&6
5876 else
5877 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
5878 ac_cxx_werror_flag=yes
5879 ac_cv_prog_cxx_g=no
5880 CXXFLAGS="-g"
5881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5882 /* end confdefs.h. */
5885 main ()
5889 return 0;
5891 _ACEOF
5892 if ac_fn_cxx_try_compile "$LINENO"; then :
5893 ac_cv_prog_cxx_g=yes
5894 else
5895 CXXFLAGS=""
5896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5897 /* end confdefs.h. */
5900 main ()
5904 return 0;
5906 _ACEOF
5907 if ac_fn_cxx_try_compile "$LINENO"; then :
5909 else
5910 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5911 CXXFLAGS="-g"
5912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5913 /* end confdefs.h. */
5916 main ()
5920 return 0;
5922 _ACEOF
5923 if ac_fn_cxx_try_compile "$LINENO"; then :
5924 ac_cv_prog_cxx_g=yes
5926 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5928 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5931 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
5934 $as_echo "$ac_cv_prog_cxx_g" >&6; }
5935 if test "$ac_test_CXXFLAGS" = set; then
5936 CXXFLAGS=$ac_save_CXXFLAGS
5937 elif test $ac_cv_prog_cxx_g = yes; then
5938 if test "$GXX" = yes; then
5939 CXXFLAGS="-g -O2"
5940 else
5941 CXXFLAGS="-g"
5943 else
5944 if test "$GXX" = yes; then
5945 CXXFLAGS="-O2"
5946 else
5947 CXXFLAGS=
5950 ac_ext=c
5951 ac_cpp='$CPP $CPPFLAGS'
5952 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5953 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5954 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5956 depcc="$CXX" am_compiler_list=
5958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5959 $as_echo_n "checking dependency style of $depcc... " >&6; }
5960 if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
5961 $as_echo_n "(cached) " >&6
5962 else
5963 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5964 # We make a subdir and do the tests there. Otherwise we can end up
5965 # making bogus files that we don't know about and never remove. For
5966 # instance it was reported that on HP-UX the gcc test will end up
5967 # making a dummy file named 'D' -- because '-MD' means "put the output
5968 # in D".
5969 rm -rf conftest.dir
5970 mkdir conftest.dir
5971 # Copy depcomp to subdir because otherwise we won't find it if we're
5972 # using a relative directory.
5973 cp "$am_depcomp" conftest.dir
5974 cd conftest.dir
5975 # We will build objects and dependencies in a subdirectory because
5976 # it helps to detect inapplicable dependency modes. For instance
5977 # both Tru64's cc and ICC support -MD to output dependencies as a
5978 # side effect of compilation, but ICC will put the dependencies in
5979 # the current directory while Tru64 will put them in the object
5980 # directory.
5981 mkdir sub
5983 am_cv_CXX_dependencies_compiler_type=none
5984 if test "$am_compiler_list" = ""; then
5985 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5987 am__universal=false
5988 case " $depcc " in #(
5989 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5990 esac
5992 for depmode in $am_compiler_list; do
5993 # Setup a source with many dependencies, because some compilers
5994 # like to wrap large dependency lists on column 80 (with \), and
5995 # we should not choose a depcomp mode which is confused by this.
5997 # We need to recreate these files for each test, as the compiler may
5998 # overwrite some of them when testing with obscure command lines.
5999 # This happens at least with the AIX C compiler.
6000 : > sub/conftest.c
6001 for i in 1 2 3 4 5 6; do
6002 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6003 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6004 # Solaris 10 /bin/sh.
6005 echo '/* dummy */' > sub/conftst$i.h
6006 done
6007 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6009 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6010 # mode. It turns out that the SunPro C++ compiler does not properly
6011 # handle '-M -o', and we need to detect this. Also, some Intel
6012 # versions had trouble with output in subdirs.
6013 am__obj=sub/conftest.${OBJEXT-o}
6014 am__minus_obj="-o $am__obj"
6015 case $depmode in
6016 gcc)
6017 # This depmode causes a compiler race in universal mode.
6018 test "$am__universal" = false || continue
6020 nosideeffect)
6021 # After this tag, mechanisms are not by side-effect, so they'll
6022 # only be used when explicitly requested.
6023 if test "x$enable_dependency_tracking" = xyes; then
6024 continue
6025 else
6026 break
6029 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6030 # This compiler won't grok '-c -o', but also, the minuso test has
6031 # not run yet. These depmodes are late enough in the game, and
6032 # so weak that their functioning should not be impacted.
6033 am__obj=conftest.${OBJEXT-o}
6034 am__minus_obj=
6036 none) break ;;
6037 esac
6038 if depmode=$depmode \
6039 source=sub/conftest.c object=$am__obj \
6040 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6041 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6042 >/dev/null 2>conftest.err &&
6043 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6044 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6045 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6046 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6047 # icc doesn't choke on unknown options, it will just issue warnings
6048 # or remarks (even with -Werror). So we grep stderr for any message
6049 # that says an option was ignored or not supported.
6050 # When given -MP, icc 7.0 and 7.1 complain thusly:
6051 # icc: Command line warning: ignoring option '-M'; no argument required
6052 # The diagnosis changed in icc 8.0:
6053 # icc: Command line remark: option '-MP' not supported
6054 if (grep 'ignoring option' conftest.err ||
6055 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6056 am_cv_CXX_dependencies_compiler_type=$depmode
6057 break
6060 done
6062 cd ..
6063 rm -rf conftest.dir
6064 else
6065 am_cv_CXX_dependencies_compiler_type=none
6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
6070 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
6071 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
6074 test "x$enable_dependency_tracking" != xno \
6075 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
6076 am__fastdepCXX_TRUE=
6077 am__fastdepCXX_FALSE='#'
6078 else
6079 am__fastdepCXX_TRUE='#'
6080 am__fastdepCXX_FALSE=
6084 # By default we simply use the C compiler to build assembly code.
6086 test "${CCAS+set}" = set || CCAS=$CC
6087 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
6091 depcc="$CCAS" am_compiler_list=
6093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
6094 $as_echo_n "checking dependency style of $depcc... " >&6; }
6095 if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
6096 $as_echo_n "(cached) " >&6
6097 else
6098 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
6099 # We make a subdir and do the tests there. Otherwise we can end up
6100 # making bogus files that we don't know about and never remove. For
6101 # instance it was reported that on HP-UX the gcc test will end up
6102 # making a dummy file named 'D' -- because '-MD' means "put the output
6103 # in D".
6104 rm -rf conftest.dir
6105 mkdir conftest.dir
6106 # Copy depcomp to subdir because otherwise we won't find it if we're
6107 # using a relative directory.
6108 cp "$am_depcomp" conftest.dir
6109 cd conftest.dir
6110 # We will build objects and dependencies in a subdirectory because
6111 # it helps to detect inapplicable dependency modes. For instance
6112 # both Tru64's cc and ICC support -MD to output dependencies as a
6113 # side effect of compilation, but ICC will put the dependencies in
6114 # the current directory while Tru64 will put them in the object
6115 # directory.
6116 mkdir sub
6118 am_cv_CCAS_dependencies_compiler_type=none
6119 if test "$am_compiler_list" = ""; then
6120 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
6122 am__universal=false
6125 for depmode in $am_compiler_list; do
6126 # Setup a source with many dependencies, because some compilers
6127 # like to wrap large dependency lists on column 80 (with \), and
6128 # we should not choose a depcomp mode which is confused by this.
6130 # We need to recreate these files for each test, as the compiler may
6131 # overwrite some of them when testing with obscure command lines.
6132 # This happens at least with the AIX C compiler.
6133 : > sub/conftest.c
6134 for i in 1 2 3 4 5 6; do
6135 echo '#include "conftst'$i'.h"' >> sub/conftest.c
6136 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
6137 # Solaris 10 /bin/sh.
6138 echo '/* dummy */' > sub/conftst$i.h
6139 done
6140 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
6142 # We check with '-c' and '-o' for the sake of the "dashmstdout"
6143 # mode. It turns out that the SunPro C++ compiler does not properly
6144 # handle '-M -o', and we need to detect this. Also, some Intel
6145 # versions had trouble with output in subdirs.
6146 am__obj=sub/conftest.${OBJEXT-o}
6147 am__minus_obj="-o $am__obj"
6148 case $depmode in
6149 gcc)
6150 # This depmode causes a compiler race in universal mode.
6151 test "$am__universal" = false || continue
6153 nosideeffect)
6154 # After this tag, mechanisms are not by side-effect, so they'll
6155 # only be used when explicitly requested.
6156 if test "x$enable_dependency_tracking" = xyes; then
6157 continue
6158 else
6159 break
6162 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
6163 # This compiler won't grok '-c -o', but also, the minuso test has
6164 # not run yet. These depmodes are late enough in the game, and
6165 # so weak that their functioning should not be impacted.
6166 am__obj=conftest.${OBJEXT-o}
6167 am__minus_obj=
6169 none) break ;;
6170 esac
6171 if depmode=$depmode \
6172 source=sub/conftest.c object=$am__obj \
6173 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
6174 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
6175 >/dev/null 2>conftest.err &&
6176 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
6177 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
6178 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
6179 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
6180 # icc doesn't choke on unknown options, it will just issue warnings
6181 # or remarks (even with -Werror). So we grep stderr for any message
6182 # that says an option was ignored or not supported.
6183 # When given -MP, icc 7.0 and 7.1 complain thusly:
6184 # icc: Command line warning: ignoring option '-M'; no argument required
6185 # The diagnosis changed in icc 8.0:
6186 # icc: Command line remark: option '-MP' not supported
6187 if (grep 'ignoring option' conftest.err ||
6188 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
6189 am_cv_CCAS_dependencies_compiler_type=$depmode
6190 break
6193 done
6195 cd ..
6196 rm -rf conftest.dir
6197 else
6198 am_cv_CCAS_dependencies_compiler_type=none
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
6203 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
6204 CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
6207 test "x$enable_dependency_tracking" != xno \
6208 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
6209 am__fastdepCCAS_TRUE=
6210 am__fastdepCCAS_FALSE='#'
6211 else
6212 am__fastdepCCAS_TRUE='#'
6213 am__fastdepCCAS_FALSE=
6221 # In order to override CFLAGS_FOR_TARGET, all of our special flags go
6222 # in XCFLAGS. But we need them in CFLAGS during configury. So put them
6223 # in both places for now and restore CFLAGS at the end of config.
6224 save_CFLAGS="$CFLAGS"
6226 # Find other programs we need.
6227 if test -n "$ac_tool_prefix"; then
6228 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6229 set dummy ${ac_tool_prefix}ar; ac_word=$2
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6231 $as_echo_n "checking for $ac_word... " >&6; }
6232 if ${ac_cv_prog_AR+:} false; then :
6233 $as_echo_n "(cached) " >&6
6234 else
6235 if test -n "$AR"; then
6236 ac_cv_prog_AR="$AR" # Let the user override the test.
6237 else
6238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6239 for as_dir in $PATH
6241 IFS=$as_save_IFS
6242 test -z "$as_dir" && as_dir=.
6243 for ac_exec_ext in '' $ac_executable_extensions; do
6244 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6245 ac_cv_prog_AR="${ac_tool_prefix}ar"
6246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6247 break 2
6249 done
6250 done
6251 IFS=$as_save_IFS
6255 AR=$ac_cv_prog_AR
6256 if test -n "$AR"; then
6257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6258 $as_echo "$AR" >&6; }
6259 else
6260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6261 $as_echo "no" >&6; }
6266 if test -z "$ac_cv_prog_AR"; then
6267 ac_ct_AR=$AR
6268 # Extract the first word of "ar", so it can be a program name with args.
6269 set dummy ar; ac_word=$2
6270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6271 $as_echo_n "checking for $ac_word... " >&6; }
6272 if ${ac_cv_prog_ac_ct_AR+:} false; then :
6273 $as_echo_n "(cached) " >&6
6274 else
6275 if test -n "$ac_ct_AR"; then
6276 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6277 else
6278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6279 for as_dir in $PATH
6281 IFS=$as_save_IFS
6282 test -z "$as_dir" && as_dir=.
6283 for ac_exec_ext in '' $ac_executable_extensions; do
6284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6285 ac_cv_prog_ac_ct_AR="ar"
6286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6287 break 2
6289 done
6290 done
6291 IFS=$as_save_IFS
6295 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6296 if test -n "$ac_ct_AR"; then
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6298 $as_echo "$ac_ct_AR" >&6; }
6299 else
6300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6301 $as_echo "no" >&6; }
6304 if test "x$ac_ct_AR" = x; then
6305 AR=""
6306 else
6307 case $cross_compiling:$ac_tool_warned in
6308 yes:)
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6311 ac_tool_warned=yes ;;
6312 esac
6313 AR=$ac_ct_AR
6315 else
6316 AR="$ac_cv_prog_AR"
6319 if test -n "$ac_tool_prefix"; then
6320 # Extract the first word of "${ac_tool_prefix}nm", so it can be a program name with args.
6321 set dummy ${ac_tool_prefix}nm; ac_word=$2
6322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6323 $as_echo_n "checking for $ac_word... " >&6; }
6324 if ${ac_cv_prog_NM+:} false; then :
6325 $as_echo_n "(cached) " >&6
6326 else
6327 if test -n "$NM"; then
6328 ac_cv_prog_NM="$NM" # Let the user override the test.
6329 else
6330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6331 for as_dir in $PATH
6333 IFS=$as_save_IFS
6334 test -z "$as_dir" && as_dir=.
6335 for ac_exec_ext in '' $ac_executable_extensions; do
6336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6337 ac_cv_prog_NM="${ac_tool_prefix}nm"
6338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6339 break 2
6341 done
6342 done
6343 IFS=$as_save_IFS
6347 NM=$ac_cv_prog_NM
6348 if test -n "$NM"; then
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NM" >&5
6350 $as_echo "$NM" >&6; }
6351 else
6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6353 $as_echo "no" >&6; }
6358 if test -z "$ac_cv_prog_NM"; then
6359 ac_ct_NM=$NM
6360 # Extract the first word of "nm", so it can be a program name with args.
6361 set dummy nm; ac_word=$2
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6363 $as_echo_n "checking for $ac_word... " >&6; }
6364 if ${ac_cv_prog_ac_ct_NM+:} false; then :
6365 $as_echo_n "(cached) " >&6
6366 else
6367 if test -n "$ac_ct_NM"; then
6368 ac_cv_prog_ac_ct_NM="$ac_ct_NM" # Let the user override the test.
6369 else
6370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6371 for as_dir in $PATH
6373 IFS=$as_save_IFS
6374 test -z "$as_dir" && as_dir=.
6375 for ac_exec_ext in '' $ac_executable_extensions; do
6376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6377 ac_cv_prog_ac_ct_NM="nm"
6378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6379 break 2
6381 done
6382 done
6383 IFS=$as_save_IFS
6387 ac_ct_NM=$ac_cv_prog_ac_ct_NM
6388 if test -n "$ac_ct_NM"; then
6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NM" >&5
6390 $as_echo "$ac_ct_NM" >&6; }
6391 else
6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6393 $as_echo "no" >&6; }
6396 if test "x$ac_ct_NM" = x; then
6397 NM=""
6398 else
6399 case $cross_compiling:$ac_tool_warned in
6400 yes:)
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6403 ac_tool_warned=yes ;;
6404 esac
6405 NM=$ac_ct_NM
6407 else
6408 NM="$ac_cv_prog_NM"
6411 if test -n "$ac_tool_prefix"; then
6412 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6413 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6415 $as_echo_n "checking for $ac_word... " >&6; }
6416 if ${ac_cv_prog_RANLIB+:} false; then :
6417 $as_echo_n "(cached) " >&6
6418 else
6419 if test -n "$RANLIB"; then
6420 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6421 else
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH
6425 IFS=$as_save_IFS
6426 test -z "$as_dir" && as_dir=.
6427 for ac_exec_ext in '' $ac_executable_extensions; do
6428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6429 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6431 break 2
6433 done
6434 done
6435 IFS=$as_save_IFS
6439 RANLIB=$ac_cv_prog_RANLIB
6440 if test -n "$RANLIB"; then
6441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6442 $as_echo "$RANLIB" >&6; }
6443 else
6444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6445 $as_echo "no" >&6; }
6450 if test -z "$ac_cv_prog_RANLIB"; then
6451 ac_ct_RANLIB=$RANLIB
6452 # Extract the first word of "ranlib", so it can be a program name with args.
6453 set dummy ranlib; ac_word=$2
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6455 $as_echo_n "checking for $ac_word... " >&6; }
6456 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6457 $as_echo_n "(cached) " >&6
6458 else
6459 if test -n "$ac_ct_RANLIB"; then
6460 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6461 else
6462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6463 for as_dir in $PATH
6465 IFS=$as_save_IFS
6466 test -z "$as_dir" && as_dir=.
6467 for ac_exec_ext in '' $ac_executable_extensions; do
6468 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6469 ac_cv_prog_ac_ct_RANLIB="ranlib"
6470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6471 break 2
6473 done
6474 done
6475 IFS=$as_save_IFS
6479 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6480 if test -n "$ac_ct_RANLIB"; then
6481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6482 $as_echo "$ac_ct_RANLIB" >&6; }
6483 else
6484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6485 $as_echo "no" >&6; }
6488 if test "x$ac_ct_RANLIB" = x; then
6489 RANLIB="ranlib-not-found-in-path-error"
6490 else
6491 case $cross_compiling:$ac_tool_warned in
6492 yes:)
6493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6495 ac_tool_warned=yes ;;
6496 esac
6497 RANLIB=$ac_ct_RANLIB
6499 else
6500 RANLIB="$ac_cv_prog_RANLIB"
6503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6504 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6505 set x ${MAKE-make}
6506 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6507 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
6508 $as_echo_n "(cached) " >&6
6509 else
6510 cat >conftest.make <<\_ACEOF
6511 SHELL = /bin/sh
6512 all:
6513 @echo '@@@%%%=$(MAKE)=@@@%%%'
6514 _ACEOF
6515 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
6516 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6517 *@@@%%%=?*=@@@%%%*)
6518 eval ac_cv_prog_make_${ac_make}_set=yes;;
6520 eval ac_cv_prog_make_${ac_make}_set=no;;
6521 esac
6522 rm -f conftest.make
6524 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6526 $as_echo "yes" >&6; }
6527 SET_MAKE=
6528 else
6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6530 $as_echo "no" >&6; }
6531 SET_MAKE="MAKE=${MAKE-make}"
6536 enable_dlopen=yes
6540 case `pwd` in
6541 *\ * | *\ *)
6542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6543 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6544 esac
6548 macro_version='2.2.7a'
6549 macro_revision='1.3134'
6563 ltmain="$ac_aux_dir/ltmain.sh"
6565 # Backslashify metacharacters that are still active within
6566 # double-quoted strings.
6567 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6569 # Same as above, but do not quote variable references.
6570 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6572 # Sed substitution to delay expansion of an escaped shell variable in a
6573 # double_quote_subst'ed string.
6574 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6576 # Sed substitution to delay expansion of an escaped single quote.
6577 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6579 # Sed substitution to avoid accidental globbing in evaled expressions
6580 no_glob_subst='s/\*/\\\*/g'
6582 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6583 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6584 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6587 $as_echo_n "checking how to print strings... " >&6; }
6588 # Test print first, because it will be a builtin if present.
6589 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6590 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6591 ECHO='print -r --'
6592 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6593 ECHO='printf %s\n'
6594 else
6595 # Use this function as a fallback that always works.
6596 func_fallback_echo ()
6598 eval 'cat <<_LTECHO_EOF
6600 _LTECHO_EOF'
6602 ECHO='func_fallback_echo'
6605 # func_echo_all arg...
6606 # Invoke $ECHO with all args, space-separated.
6607 func_echo_all ()
6609 $ECHO ""
6612 case "$ECHO" in
6613 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6614 $as_echo "printf" >&6; } ;;
6615 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6616 $as_echo "print -r" >&6; } ;;
6617 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6618 $as_echo "cat" >&6; } ;;
6619 esac
6634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6635 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6636 if ${ac_cv_path_SED+:} false; then :
6637 $as_echo_n "(cached) " >&6
6638 else
6639 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6640 for ac_i in 1 2 3 4 5 6 7; do
6641 ac_script="$ac_script$as_nl$ac_script"
6642 done
6643 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6644 { ac_script=; unset ac_script;}
6645 if test -z "$SED"; then
6646 ac_path_SED_found=false
6647 # Loop through the user's path and test for each of PROGNAME-LIST
6648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6649 for as_dir in $PATH
6651 IFS=$as_save_IFS
6652 test -z "$as_dir" && as_dir=.
6653 for ac_prog in sed gsed; do
6654 for ac_exec_ext in '' $ac_executable_extensions; do
6655 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6656 as_fn_executable_p "$ac_path_SED" || continue
6657 # Check for GNU ac_path_SED and select it if it is found.
6658 # Check for GNU $ac_path_SED
6659 case `"$ac_path_SED" --version 2>&1` in
6660 *GNU*)
6661 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6663 ac_count=0
6664 $as_echo_n 0123456789 >"conftest.in"
6665 while :
6667 cat "conftest.in" "conftest.in" >"conftest.tmp"
6668 mv "conftest.tmp" "conftest.in"
6669 cp "conftest.in" "conftest.nl"
6670 $as_echo '' >> "conftest.nl"
6671 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6672 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6673 as_fn_arith $ac_count + 1 && ac_count=$as_val
6674 if test $ac_count -gt ${ac_path_SED_max-0}; then
6675 # Best one so far, save it but keep looking for a better one
6676 ac_cv_path_SED="$ac_path_SED"
6677 ac_path_SED_max=$ac_count
6679 # 10*(2^10) chars as input seems more than enough
6680 test $ac_count -gt 10 && break
6681 done
6682 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6683 esac
6685 $ac_path_SED_found && break 3
6686 done
6687 done
6688 done
6689 IFS=$as_save_IFS
6690 if test -z "$ac_cv_path_SED"; then
6691 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
6693 else
6694 ac_cv_path_SED=$SED
6698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6699 $as_echo "$ac_cv_path_SED" >&6; }
6700 SED="$ac_cv_path_SED"
6701 rm -f conftest.sed
6703 test -z "$SED" && SED=sed
6704 Xsed="$SED -e 1s/^X//"
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6717 $as_echo_n "checking for fgrep... " >&6; }
6718 if ${ac_cv_path_FGREP+:} false; then :
6719 $as_echo_n "(cached) " >&6
6720 else
6721 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6722 then ac_cv_path_FGREP="$GREP -F"
6723 else
6724 if test -z "$FGREP"; then
6725 ac_path_FGREP_found=false
6726 # Loop through the user's path and test for each of PROGNAME-LIST
6727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6728 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6730 IFS=$as_save_IFS
6731 test -z "$as_dir" && as_dir=.
6732 for ac_prog in fgrep; do
6733 for ac_exec_ext in '' $ac_executable_extensions; do
6734 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6735 as_fn_executable_p "$ac_path_FGREP" || continue
6736 # Check for GNU ac_path_FGREP and select it if it is found.
6737 # Check for GNU $ac_path_FGREP
6738 case `"$ac_path_FGREP" --version 2>&1` in
6739 *GNU*)
6740 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6742 ac_count=0
6743 $as_echo_n 0123456789 >"conftest.in"
6744 while :
6746 cat "conftest.in" "conftest.in" >"conftest.tmp"
6747 mv "conftest.tmp" "conftest.in"
6748 cp "conftest.in" "conftest.nl"
6749 $as_echo 'FGREP' >> "conftest.nl"
6750 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6751 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6752 as_fn_arith $ac_count + 1 && ac_count=$as_val
6753 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6754 # Best one so far, save it but keep looking for a better one
6755 ac_cv_path_FGREP="$ac_path_FGREP"
6756 ac_path_FGREP_max=$ac_count
6758 # 10*(2^10) chars as input seems more than enough
6759 test $ac_count -gt 10 && break
6760 done
6761 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6762 esac
6764 $ac_path_FGREP_found && break 3
6765 done
6766 done
6767 done
6768 IFS=$as_save_IFS
6769 if test -z "$ac_cv_path_FGREP"; then
6770 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6772 else
6773 ac_cv_path_FGREP=$FGREP
6778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6779 $as_echo "$ac_cv_path_FGREP" >&6; }
6780 FGREP="$ac_cv_path_FGREP"
6783 test -z "$GREP" && GREP=grep
6803 # Check whether --with-gnu-ld was given.
6804 if test "${with_gnu_ld+set}" = set; then :
6805 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6806 else
6807 with_gnu_ld=no
6810 ac_prog=ld
6811 if test "$GCC" = yes; then
6812 # Check if gcc -print-prog-name=ld gives a path.
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6814 $as_echo_n "checking for ld used by $CC... " >&6; }
6815 case $host in
6816 *-*-mingw*)
6817 # gcc leaves a trailing carriage return which upsets mingw
6818 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6820 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6821 esac
6822 case $ac_prog in
6823 # Accept absolute paths.
6824 [\\/]* | ?:[\\/]*)
6825 re_direlt='/[^/][^/]*/\.\./'
6826 # Canonicalize the pathname of ld
6827 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6828 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6829 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6830 done
6831 test -z "$LD" && LD="$ac_prog"
6834 # If it fails, then pretend we aren't using GCC.
6835 ac_prog=ld
6838 # If it is relative, then search for the first ld in PATH.
6839 with_gnu_ld=unknown
6841 esac
6842 elif test "$with_gnu_ld" = yes; then
6843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6844 $as_echo_n "checking for GNU ld... " >&6; }
6845 else
6846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6847 $as_echo_n "checking for non-GNU ld... " >&6; }
6849 if ${lt_cv_path_LD+:} false; then :
6850 $as_echo_n "(cached) " >&6
6851 else
6852 if test -z "$LD"; then
6853 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6854 for ac_dir in $PATH; do
6855 IFS="$lt_save_ifs"
6856 test -z "$ac_dir" && ac_dir=.
6857 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6858 lt_cv_path_LD="$ac_dir/$ac_prog"
6859 # Check to see if the program is GNU ld. I'd rather use --version,
6860 # but apparently some variants of GNU ld only accept -v.
6861 # Break only if it was the GNU/non-GNU ld that we prefer.
6862 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6863 *GNU* | *'with BFD'*)
6864 test "$with_gnu_ld" != no && break
6867 test "$with_gnu_ld" != yes && break
6869 esac
6871 done
6872 IFS="$lt_save_ifs"
6873 else
6874 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6878 LD="$lt_cv_path_LD"
6879 if test -n "$LD"; then
6880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6881 $as_echo "$LD" >&6; }
6882 else
6883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6884 $as_echo "no" >&6; }
6886 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
6887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6888 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6889 if ${lt_cv_prog_gnu_ld+:} false; then :
6890 $as_echo_n "(cached) " >&6
6891 else
6892 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6893 case `$LD -v 2>&1 </dev/null` in
6894 *GNU* | *'with BFD'*)
6895 lt_cv_prog_gnu_ld=yes
6898 lt_cv_prog_gnu_ld=no
6900 esac
6902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6903 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6904 with_gnu_ld=$lt_cv_prog_gnu_ld
6914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6915 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6916 if ${lt_cv_path_NM+:} false; then :
6917 $as_echo_n "(cached) " >&6
6918 else
6919 if test -n "$NM"; then
6920 # Let the user override the nm to test.
6921 lt_nm_to_check="$NM"
6922 else
6923 lt_nm_to_check="${ac_tool_prefix}nm"
6924 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6925 lt_nm_to_check="$lt_nm_to_check nm"
6928 for lt_tmp_nm in "$lt_nm_to_check"; do
6929 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6930 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6931 IFS="$lt_save_ifs"
6932 test -z "$ac_dir" && ac_dir=.
6933 # Strip out any user-provided options from the nm to test twice,
6934 # the first time to test to see if nm (rather than its options) has
6935 # an explicit path, the second time to yield a file which can be
6936 # nm'ed itself.
6937 tmp_nm_path="`$ECHO "$lt_tmp_nm" | sed 's, -.*$,,'`"
6938 case "$tmp_nm_path" in
6939 */*|*\\*) tmp_nm="$lt_tmp_nm";;
6940 *) tmp_nm="$ac_dir/$lt_tmp_nm";;
6941 esac
6942 tmp_nm_to_nm="`$ECHO "$tmp_nm" | sed 's, -.*$,,'`"
6943 if test -f "$tmp_nm_to_nm" || test -f "$tmp_nm_to_nm$ac_exeext" ; then
6944 # Check to see if the nm accepts a BSD-compat flag.
6945 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6946 # nm: unknown option "B" ignored
6947 case `"$tmp_nm" -B "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6948 *$tmp_nm*) lt_cv_path_NM="$tmp_nm -B"
6949 break
6952 case `"$tmp_nm" -p "$tmp_nm_to_nm" 2>&1 | grep -v '^ *$' | sed '1q'` in
6953 *$tmp_nm*)
6954 lt_cv_path_NM="$tmp_nm -p"
6955 break
6958 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6959 continue # so that we can try to find one that supports BSD flags
6961 esac
6963 esac
6965 done
6966 IFS="$lt_save_ifs"
6967 done
6968 : ${lt_cv_path_NM=no}
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6971 $as_echo "$lt_cv_path_NM" >&6; }
6972 if test "$lt_cv_path_NM" != "no"; then
6973 NM="$lt_cv_path_NM"
6974 else
6975 # Didn't find any BSD compatible name lister, look for dumpbin.
6976 if test -n "$DUMPBIN"; then :
6977 # Let the user override the test.
6978 else
6979 if test -n "$ac_tool_prefix"; then
6980 for ac_prog in dumpbin "link -dump"
6982 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6983 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6985 $as_echo_n "checking for $ac_word... " >&6; }
6986 if ${ac_cv_prog_DUMPBIN+:} false; then :
6987 $as_echo_n "(cached) " >&6
6988 else
6989 if test -n "$DUMPBIN"; then
6990 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6991 else
6992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6993 for as_dir in $PATH
6995 IFS=$as_save_IFS
6996 test -z "$as_dir" && as_dir=.
6997 for ac_exec_ext in '' $ac_executable_extensions; do
6998 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6999 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
7000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7001 break 2
7003 done
7004 done
7005 IFS=$as_save_IFS
7009 DUMPBIN=$ac_cv_prog_DUMPBIN
7010 if test -n "$DUMPBIN"; then
7011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
7012 $as_echo "$DUMPBIN" >&6; }
7013 else
7014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7015 $as_echo "no" >&6; }
7019 test -n "$DUMPBIN" && break
7020 done
7022 if test -z "$DUMPBIN"; then
7023 ac_ct_DUMPBIN=$DUMPBIN
7024 for ac_prog in dumpbin "link -dump"
7026 # Extract the first word of "$ac_prog", so it can be a program name with args.
7027 set dummy $ac_prog; ac_word=$2
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7029 $as_echo_n "checking for $ac_word... " >&6; }
7030 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
7031 $as_echo_n "(cached) " >&6
7032 else
7033 if test -n "$ac_ct_DUMPBIN"; then
7034 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
7035 else
7036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7037 for as_dir in $PATH
7039 IFS=$as_save_IFS
7040 test -z "$as_dir" && as_dir=.
7041 for ac_exec_ext in '' $ac_executable_extensions; do
7042 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7043 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
7044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7045 break 2
7047 done
7048 done
7049 IFS=$as_save_IFS
7053 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
7054 if test -n "$ac_ct_DUMPBIN"; then
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
7056 $as_echo "$ac_ct_DUMPBIN" >&6; }
7057 else
7058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7059 $as_echo "no" >&6; }
7063 test -n "$ac_ct_DUMPBIN" && break
7064 done
7066 if test "x$ac_ct_DUMPBIN" = x; then
7067 DUMPBIN=":"
7068 else
7069 case $cross_compiling:$ac_tool_warned in
7070 yes:)
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7072 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7073 ac_tool_warned=yes ;;
7074 esac
7075 DUMPBIN=$ac_ct_DUMPBIN
7079 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
7080 *COFF*)
7081 DUMPBIN="$DUMPBIN -symbols"
7084 DUMPBIN=:
7086 esac
7089 if test "$DUMPBIN" != ":"; then
7090 NM="$DUMPBIN"
7093 test -z "$NM" && NM=nm
7100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
7101 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
7102 if ${lt_cv_nm_interface+:} false; then :
7103 $as_echo_n "(cached) " >&6
7104 else
7105 lt_cv_nm_interface="BSD nm"
7106 echo "int some_variable = 0;" > conftest.$ac_ext
7107 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
7108 (eval "$ac_compile" 2>conftest.err)
7109 cat conftest.err >&5
7110 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
7111 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
7112 cat conftest.err >&5
7113 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
7114 cat conftest.out >&5
7115 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
7116 lt_cv_nm_interface="MS dumpbin"
7118 rm -f conftest*
7120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
7121 $as_echo "$lt_cv_nm_interface" >&6; }
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
7124 $as_echo_n "checking whether ln -s works... " >&6; }
7125 LN_S=$as_ln_s
7126 if test "$LN_S" = "ln -s"; then
7127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7128 $as_echo "yes" >&6; }
7129 else
7130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
7131 $as_echo "no, using $LN_S" >&6; }
7134 # find the maximum length of command line arguments
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
7136 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
7137 if ${lt_cv_sys_max_cmd_len+:} false; then :
7138 $as_echo_n "(cached) " >&6
7139 else
7141 teststring="ABCD"
7143 case $build_os in
7144 msdosdjgpp*)
7145 # On DJGPP, this test can blow up pretty badly due to problems in libc
7146 # (any single argument exceeding 2000 bytes causes a buffer overrun
7147 # during glob expansion). Even if it were fixed, the result of this
7148 # check would be larger than it should be.
7149 lt_cv_sys_max_cmd_len=12288; # 12K is about right
7152 gnu*)
7153 # Under GNU Hurd, this test is not required because there is
7154 # no limit to the length of command line arguments.
7155 # Libtool will interpret -1 as no limit whatsoever
7156 lt_cv_sys_max_cmd_len=-1;
7159 cygwin* | mingw* | cegcc*)
7160 # On Win9x/ME, this test blows up -- it succeeds, but takes
7161 # about 5 minutes as the teststring grows exponentially.
7162 # Worse, since 9x/ME are not pre-emptively multitasking,
7163 # you end up with a "frozen" computer, even though with patience
7164 # the test eventually succeeds (with a max line length of 256k).
7165 # Instead, let's just punt: use the minimum linelength reported by
7166 # all of the supported platforms: 8192 (on NT/2K/XP).
7167 lt_cv_sys_max_cmd_len=8192;
7170 mint*)
7171 # On MiNT this can take a long time and run out of memory.
7172 lt_cv_sys_max_cmd_len=8192;
7175 amigaos*)
7176 # On AmigaOS with pdksh, this test takes hours, literally.
7177 # So we just punt and use a minimum line length of 8192.
7178 lt_cv_sys_max_cmd_len=8192;
7181 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
7182 # This has been around since 386BSD, at least. Likely further.
7183 if test -x /sbin/sysctl; then
7184 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
7185 elif test -x /usr/sbin/sysctl; then
7186 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
7187 else
7188 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
7190 # And add a safety zone
7191 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
7192 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
7195 interix*)
7196 # We know the value 262144 and hardcode it with a safety zone (like BSD)
7197 lt_cv_sys_max_cmd_len=196608
7200 osf*)
7201 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
7202 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
7203 # nice to cause kernel panics so lets avoid the loop below.
7204 # First set a reasonable default.
7205 lt_cv_sys_max_cmd_len=16384
7207 if test -x /sbin/sysconfig; then
7208 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
7209 *1*) lt_cv_sys_max_cmd_len=-1 ;;
7210 esac
7213 sco3.2v5*)
7214 lt_cv_sys_max_cmd_len=102400
7216 sysv5* | sco5v6* | sysv4.2uw2*)
7217 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
7218 if test -n "$kargmax"; then
7219 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
7220 else
7221 lt_cv_sys_max_cmd_len=32768
7225 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
7226 if test -n "$lt_cv_sys_max_cmd_len"; then
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`
7229 else
7230 # Make teststring a little bigger before we do anything with it.
7231 # a 1K string should be a reasonable start.
7232 for i in 1 2 3 4 5 6 7 8 ; do
7233 teststring=$teststring$teststring
7234 done
7235 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
7236 # If test is not a shell built-in, we'll probably end up computing a
7237 # maximum length that is only half of the actual maximum length, but
7238 # we can't tell.
7239 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
7240 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
7241 test $i != 17 # 1/2 MB should be enough
7243 i=`expr $i + 1`
7244 teststring=$teststring$teststring
7245 done
7246 # Only check the string length outside the loop.
7247 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
7248 teststring=
7249 # Add a significant safety factor because C++ compilers can tack on
7250 # massive amounts of additional arguments before passing them to the
7251 # linker. It appears as though 1/2 is a usable value.
7252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
7255 esac
7259 if test -n $lt_cv_sys_max_cmd_len ; then
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
7261 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
7262 else
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
7264 $as_echo "none" >&6; }
7266 max_cmd_len=$lt_cv_sys_max_cmd_len
7273 : ${CP="cp -f"}
7274 : ${MV="mv -f"}
7275 : ${RM="rm -f"}
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
7278 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
7279 # Try some XSI features
7280 xsi_shell=no
7281 ( _lt_dummy="a/b/c"
7282 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
7283 = c,a/b,, \
7284 && eval 'test $(( 1 + 1 )) -eq 2 \
7285 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
7286 && xsi_shell=yes
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
7288 $as_echo "$xsi_shell" >&6; }
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
7292 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
7293 lt_shell_append=no
7294 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7295 >/dev/null 2>&1 \
7296 && lt_shell_append=yes
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7298 $as_echo "$lt_shell_append" >&6; }
7301 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7302 lt_unset=unset
7303 else
7304 lt_unset=false
7311 # test EBCDIC or ASCII
7312 case `echo X|tr X '\101'` in
7313 A) # ASCII based system
7314 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7315 lt_SP2NL='tr \040 \012'
7316 lt_NL2SP='tr \015\012 \040\040'
7318 *) # EBCDIC based system
7319 lt_SP2NL='tr \100 \n'
7320 lt_NL2SP='tr \r\n \100\100'
7322 esac
7332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7333 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7334 if ${lt_cv_ld_reload_flag+:} false; then :
7335 $as_echo_n "(cached) " >&6
7336 else
7337 lt_cv_ld_reload_flag='-r'
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7340 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7341 reload_flag=$lt_cv_ld_reload_flag
7342 case $reload_flag in
7343 "" | " "*) ;;
7344 *) reload_flag=" $reload_flag" ;;
7345 esac
7346 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7347 case $host_os in
7348 darwin*)
7349 if test "$GCC" = yes; then
7350 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7351 else
7352 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7355 esac
7365 if test -n "$ac_tool_prefix"; then
7366 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7367 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7369 $as_echo_n "checking for $ac_word... " >&6; }
7370 if ${ac_cv_prog_OBJDUMP+:} false; then :
7371 $as_echo_n "(cached) " >&6
7372 else
7373 if test -n "$OBJDUMP"; then
7374 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7375 else
7376 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7377 for as_dir in $PATH
7379 IFS=$as_save_IFS
7380 test -z "$as_dir" && as_dir=.
7381 for ac_exec_ext in '' $ac_executable_extensions; do
7382 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7383 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7385 break 2
7387 done
7388 done
7389 IFS=$as_save_IFS
7393 OBJDUMP=$ac_cv_prog_OBJDUMP
7394 if test -n "$OBJDUMP"; then
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7396 $as_echo "$OBJDUMP" >&6; }
7397 else
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7399 $as_echo "no" >&6; }
7404 if test -z "$ac_cv_prog_OBJDUMP"; then
7405 ac_ct_OBJDUMP=$OBJDUMP
7406 # Extract the first word of "objdump", so it can be a program name with args.
7407 set dummy objdump; ac_word=$2
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7409 $as_echo_n "checking for $ac_word... " >&6; }
7410 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
7411 $as_echo_n "(cached) " >&6
7412 else
7413 if test -n "$ac_ct_OBJDUMP"; then
7414 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7415 else
7416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7417 for as_dir in $PATH
7419 IFS=$as_save_IFS
7420 test -z "$as_dir" && as_dir=.
7421 for ac_exec_ext in '' $ac_executable_extensions; do
7422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7423 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7425 break 2
7427 done
7428 done
7429 IFS=$as_save_IFS
7433 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7434 if test -n "$ac_ct_OBJDUMP"; then
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7436 $as_echo "$ac_ct_OBJDUMP" >&6; }
7437 else
7438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7439 $as_echo "no" >&6; }
7442 if test "x$ac_ct_OBJDUMP" = x; then
7443 OBJDUMP="false"
7444 else
7445 case $cross_compiling:$ac_tool_warned in
7446 yes:)
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7448 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7449 ac_tool_warned=yes ;;
7450 esac
7451 OBJDUMP=$ac_ct_OBJDUMP
7453 else
7454 OBJDUMP="$ac_cv_prog_OBJDUMP"
7457 test -z "$OBJDUMP" && OBJDUMP=objdump
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7468 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7469 if ${lt_cv_deplibs_check_method+:} false; then :
7470 $as_echo_n "(cached) " >&6
7471 else
7472 lt_cv_file_magic_cmd='$MAGIC_CMD'
7473 lt_cv_file_magic_test_file=
7474 lt_cv_deplibs_check_method='unknown'
7475 # Need to set the preceding variable on all platforms that support
7476 # interlibrary dependencies.
7477 # 'none' -- dependencies not supported.
7478 # `unknown' -- same as none, but documents that we really don't know.
7479 # 'pass_all' -- all dependencies passed with no checks.
7480 # 'test_compile' -- check by making test program.
7481 # 'file_magic [[regex]]' -- check by looking for files in library path
7482 # which responds to the $file_magic_cmd with a given extended regex.
7483 # If you have `file' or equivalent on your system and you're not sure
7484 # whether `pass_all' will *always* work, you probably want this one.
7486 case $host_os in
7487 aix[4-9]*)
7488 lt_cv_deplibs_check_method=pass_all
7491 beos*)
7492 lt_cv_deplibs_check_method=pass_all
7495 bsdi[45]*)
7496 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7497 lt_cv_file_magic_cmd='/usr/bin/file -L'
7498 lt_cv_file_magic_test_file=/shlib/libc.so
7501 cygwin*)
7502 # func_win32_libid is a shell function defined in ltmain.sh
7503 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7504 lt_cv_file_magic_cmd='func_win32_libid'
7507 mingw* | pw32*)
7508 # Base MSYS/MinGW do not provide the 'file' command needed by
7509 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7510 # unless we find 'file', for example because we are cross-compiling.
7511 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7512 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7513 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7514 lt_cv_file_magic_cmd='func_win32_libid'
7515 else
7516 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7517 lt_cv_file_magic_cmd='$OBJDUMP -f'
7521 cegcc*)
7522 # use the weaker test based on 'objdump'. See mingw*.
7523 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7524 lt_cv_file_magic_cmd='$OBJDUMP -f'
7527 darwin* | rhapsody*)
7528 lt_cv_deplibs_check_method=pass_all
7531 freebsd* | dragonfly*)
7532 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7533 case $host_cpu in
7534 i*86 )
7535 # Not sure whether the presence of OpenBSD here was a mistake.
7536 # Let's accept both of them until this is cleared up.
7537 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7538 lt_cv_file_magic_cmd=/usr/bin/file
7539 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7541 esac
7542 else
7543 lt_cv_deplibs_check_method=pass_all
7547 gnu*)
7548 lt_cv_deplibs_check_method=pass_all
7551 haiku*)
7552 lt_cv_deplibs_check_method=pass_all
7555 hpux10.20* | hpux11*)
7556 lt_cv_file_magic_cmd=/usr/bin/file
7557 case $host_cpu in
7558 ia64*)
7559 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7560 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7562 hppa*64*)
7563 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]'
7564 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7567 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7568 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7570 esac
7573 interix[3-9]*)
7574 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7575 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7578 irix5* | irix6* | nonstopux*)
7579 case $LD in
7580 *-32|*"-32 ") libmagic=32-bit;;
7581 *-n32|*"-n32 ") libmagic=N32;;
7582 *-64|*"-64 ") libmagic=64-bit;;
7583 *) libmagic=never-match;;
7584 esac
7585 lt_cv_deplibs_check_method=pass_all
7588 # This must be Linux ELF.
7589 linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
7590 lt_cv_deplibs_check_method=pass_all
7593 netbsd*)
7594 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7596 else
7597 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7601 newos6*)
7602 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7603 lt_cv_file_magic_cmd=/usr/bin/file
7604 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7607 *nto* | *qnx*)
7608 lt_cv_deplibs_check_method=pass_all
7611 openbsd*)
7612 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7614 else
7615 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7619 osf3* | osf4* | osf5*)
7620 lt_cv_deplibs_check_method=pass_all
7623 rdos*)
7624 lt_cv_deplibs_check_method=pass_all
7627 solaris*)
7628 lt_cv_deplibs_check_method=pass_all
7631 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7632 lt_cv_deplibs_check_method=pass_all
7635 sysv4 | sysv4.3*)
7636 case $host_vendor in
7637 motorola)
7638 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]'
7639 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7641 ncr)
7642 lt_cv_deplibs_check_method=pass_all
7644 sequent)
7645 lt_cv_file_magic_cmd='/bin/file'
7646 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7648 sni)
7649 lt_cv_file_magic_cmd='/bin/file'
7650 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7651 lt_cv_file_magic_test_file=/lib/libc.so
7653 siemens)
7654 lt_cv_deplibs_check_method=pass_all
7657 lt_cv_deplibs_check_method=pass_all
7659 esac
7662 tpf*)
7663 lt_cv_deplibs_check_method=pass_all
7665 vxworks*)
7666 # Assume VxWorks cross toolchains are built on Linux, possibly
7667 # as canadian for Windows hosts.
7668 lt_cv_deplibs_check_method=pass_all
7670 esac
7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7674 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7675 file_magic_cmd=$lt_cv_file_magic_cmd
7676 deplibs_check_method=$lt_cv_deplibs_check_method
7677 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7690 plugin_option=
7691 plugin_names="liblto_plugin.so liblto_plugin-0.dll cyglto_plugin-0.dll"
7692 for plugin in $plugin_names; do
7693 plugin_so=`${CC} ${CFLAGS} --print-prog-name $plugin`
7694 if test x$plugin_so = x$plugin; then
7695 plugin_so=`${CC} ${CFLAGS} --print-file-name $plugin`
7697 if test x$plugin_so != x$plugin; then
7698 plugin_option="--plugin $plugin_so"
7699 break
7701 done
7703 if test -n "$ac_tool_prefix"; then
7704 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7705 set dummy ${ac_tool_prefix}ar; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if ${ac_cv_prog_AR+:} false; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 if test -n "$AR"; then
7712 ac_cv_prog_AR="$AR" # Let the user override the test.
7713 else
7714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7715 for as_dir in $PATH
7717 IFS=$as_save_IFS
7718 test -z "$as_dir" && as_dir=.
7719 for ac_exec_ext in '' $ac_executable_extensions; do
7720 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7721 ac_cv_prog_AR="${ac_tool_prefix}ar"
7722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7723 break 2
7725 done
7726 done
7727 IFS=$as_save_IFS
7731 AR=$ac_cv_prog_AR
7732 if test -n "$AR"; then
7733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7734 $as_echo "$AR" >&6; }
7735 else
7736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7737 $as_echo "no" >&6; }
7742 if test -z "$ac_cv_prog_AR"; then
7743 ac_ct_AR=$AR
7744 # Extract the first word of "ar", so it can be a program name with args.
7745 set dummy ar; ac_word=$2
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7747 $as_echo_n "checking for $ac_word... " >&6; }
7748 if ${ac_cv_prog_ac_ct_AR+:} false; then :
7749 $as_echo_n "(cached) " >&6
7750 else
7751 if test -n "$ac_ct_AR"; then
7752 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7753 else
7754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7755 for as_dir in $PATH
7757 IFS=$as_save_IFS
7758 test -z "$as_dir" && as_dir=.
7759 for ac_exec_ext in '' $ac_executable_extensions; do
7760 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7761 ac_cv_prog_ac_ct_AR="ar"
7762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7763 break 2
7765 done
7766 done
7767 IFS=$as_save_IFS
7771 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7772 if test -n "$ac_ct_AR"; then
7773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7774 $as_echo "$ac_ct_AR" >&6; }
7775 else
7776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7777 $as_echo "no" >&6; }
7780 if test "x$ac_ct_AR" = x; then
7781 AR="false"
7782 else
7783 case $cross_compiling:$ac_tool_warned in
7784 yes:)
7785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7787 ac_tool_warned=yes ;;
7788 esac
7789 AR=$ac_ct_AR
7791 else
7792 AR="$ac_cv_prog_AR"
7795 test -z "$AR" && AR=ar
7796 if test -n "$plugin_option"; then
7797 if $AR --help 2>&1 | grep -q "\--plugin"; then
7798 touch conftest.c
7799 $AR $plugin_option rc conftest.a conftest.c
7800 if test "$?" != 0; then
7801 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Failed: $AR $plugin_option rc" >&5
7802 $as_echo "$as_me: WARNING: Failed: $AR $plugin_option rc" >&2;}
7803 else
7804 AR="$AR $plugin_option"
7806 rm -f conftest.*
7809 test -z "$AR_FLAGS" && AR_FLAGS=cru
7821 if test -n "$ac_tool_prefix"; then
7822 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7823 set dummy ${ac_tool_prefix}strip; ac_word=$2
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7825 $as_echo_n "checking for $ac_word... " >&6; }
7826 if ${ac_cv_prog_STRIP+:} false; then :
7827 $as_echo_n "(cached) " >&6
7828 else
7829 if test -n "$STRIP"; then
7830 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7831 else
7832 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7833 for as_dir in $PATH
7835 IFS=$as_save_IFS
7836 test -z "$as_dir" && as_dir=.
7837 for ac_exec_ext in '' $ac_executable_extensions; do
7838 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7839 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7840 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7841 break 2
7843 done
7844 done
7845 IFS=$as_save_IFS
7849 STRIP=$ac_cv_prog_STRIP
7850 if test -n "$STRIP"; then
7851 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7852 $as_echo "$STRIP" >&6; }
7853 else
7854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7855 $as_echo "no" >&6; }
7860 if test -z "$ac_cv_prog_STRIP"; then
7861 ac_ct_STRIP=$STRIP
7862 # Extract the first word of "strip", so it can be a program name with args.
7863 set dummy strip; ac_word=$2
7864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7865 $as_echo_n "checking for $ac_word... " >&6; }
7866 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
7867 $as_echo_n "(cached) " >&6
7868 else
7869 if test -n "$ac_ct_STRIP"; then
7870 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7871 else
7872 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7873 for as_dir in $PATH
7875 IFS=$as_save_IFS
7876 test -z "$as_dir" && as_dir=.
7877 for ac_exec_ext in '' $ac_executable_extensions; do
7878 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7879 ac_cv_prog_ac_ct_STRIP="strip"
7880 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7881 break 2
7883 done
7884 done
7885 IFS=$as_save_IFS
7889 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7890 if test -n "$ac_ct_STRIP"; then
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7892 $as_echo "$ac_ct_STRIP" >&6; }
7893 else
7894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7895 $as_echo "no" >&6; }
7898 if test "x$ac_ct_STRIP" = x; then
7899 STRIP=":"
7900 else
7901 case $cross_compiling:$ac_tool_warned in
7902 yes:)
7903 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7904 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7905 ac_tool_warned=yes ;;
7906 esac
7907 STRIP=$ac_ct_STRIP
7909 else
7910 STRIP="$ac_cv_prog_STRIP"
7913 test -z "$STRIP" && STRIP=:
7920 if test -n "$ac_tool_prefix"; then
7921 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7922 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7924 $as_echo_n "checking for $ac_word... " >&6; }
7925 if ${ac_cv_prog_RANLIB+:} false; then :
7926 $as_echo_n "(cached) " >&6
7927 else
7928 if test -n "$RANLIB"; then
7929 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7930 else
7931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7932 for as_dir in $PATH
7934 IFS=$as_save_IFS
7935 test -z "$as_dir" && as_dir=.
7936 for ac_exec_ext in '' $ac_executable_extensions; do
7937 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7938 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7940 break 2
7942 done
7943 done
7944 IFS=$as_save_IFS
7948 RANLIB=$ac_cv_prog_RANLIB
7949 if test -n "$RANLIB"; then
7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7951 $as_echo "$RANLIB" >&6; }
7952 else
7953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7954 $as_echo "no" >&6; }
7959 if test -z "$ac_cv_prog_RANLIB"; then
7960 ac_ct_RANLIB=$RANLIB
7961 # Extract the first word of "ranlib", so it can be a program name with args.
7962 set dummy ranlib; ac_word=$2
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7964 $as_echo_n "checking for $ac_word... " >&6; }
7965 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
7966 $as_echo_n "(cached) " >&6
7967 else
7968 if test -n "$ac_ct_RANLIB"; then
7969 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7970 else
7971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7972 for as_dir in $PATH
7974 IFS=$as_save_IFS
7975 test -z "$as_dir" && as_dir=.
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7978 ac_cv_prog_ac_ct_RANLIB="ranlib"
7979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7980 break 2
7982 done
7983 done
7984 IFS=$as_save_IFS
7988 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7989 if test -n "$ac_ct_RANLIB"; then
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7991 $as_echo "$ac_ct_RANLIB" >&6; }
7992 else
7993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7994 $as_echo "no" >&6; }
7997 if test "x$ac_ct_RANLIB" = x; then
7998 RANLIB=":"
7999 else
8000 case $cross_compiling:$ac_tool_warned in
8001 yes:)
8002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8004 ac_tool_warned=yes ;;
8005 esac
8006 RANLIB=$ac_ct_RANLIB
8008 else
8009 RANLIB="$ac_cv_prog_RANLIB"
8012 test -z "$RANLIB" && RANLIB=:
8013 if test -n "$plugin_option" && test "$RANLIB" != ":"; then
8014 if $RANLIB --help 2>&1 | grep -q "\--plugin"; then
8015 RANLIB="$RANLIB $plugin_option"
8024 # Determine commands to create old-style static archives.
8025 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
8026 old_postinstall_cmds='chmod 644 $oldlib'
8027 old_postuninstall_cmds=
8029 if test -n "$RANLIB"; then
8030 case $host_os in
8031 openbsd*)
8032 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
8035 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
8037 esac
8038 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
8041 case $host_os in
8042 darwin*)
8043 lock_old_archive_extraction=yes ;;
8045 lock_old_archive_extraction=no ;;
8046 esac
8086 # If no C compiler was specified, use CC.
8087 LTCC=${LTCC-"$CC"}
8089 # If no C compiler flags were specified, use CFLAGS.
8090 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8092 # Allow CC to be a program name with arguments.
8093 compiler=$CC
8096 # Check for command to grab the raw symbol name followed by C symbol from nm.
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
8098 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
8099 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
8100 $as_echo_n "(cached) " >&6
8101 else
8103 # These are sane defaults that work on at least a few old systems.
8104 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
8106 # Character class describing NM global symbol codes.
8107 symcode='[BCDEGRST]'
8109 # Regexp to match symbols that can be accessed directly from C.
8110 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
8112 # Define system-specific variables.
8113 case $host_os in
8114 aix*)
8115 symcode='[BCDT]'
8117 cygwin* | mingw* | pw32* | cegcc*)
8118 symcode='[ABCDGISTW]'
8120 hpux*)
8121 if test "$host_cpu" = ia64; then
8122 symcode='[ABCDEGRST]'
8125 irix* | nonstopux*)
8126 symcode='[BCDEGRST]'
8128 osf*)
8129 symcode='[BCDEGQRST]'
8131 solaris*)
8132 symcode='[BCDRT]'
8134 sco3.2v5*)
8135 symcode='[DT]'
8137 sysv4.2uw2*)
8138 symcode='[DT]'
8140 sysv5* | sco5v6* | unixware* | OpenUNIX*)
8141 symcode='[ABDT]'
8143 sysv4)
8144 symcode='[DFNSTU]'
8146 esac
8148 # If we're using GNU nm, then use its standard symbol codes.
8149 case `$NM -V 2>&1` in
8150 *GNU* | *'with BFD'*)
8151 symcode='[ABCDGIRSTW]' ;;
8152 esac
8154 # Transform an extracted symbol line into a proper C declaration.
8155 # Some systems (esp. on ia64) link data and code symbols differently,
8156 # so use this general approach.
8157 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
8159 # Transform an extracted symbol line into symbol name and symbol address
8160 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
8161 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'"
8163 # Handle CRLF in mingw tool chain
8164 opt_cr=
8165 case $build_os in
8166 mingw*)
8167 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
8169 esac
8171 # Try without a prefix underscore, then with it.
8172 for ac_symprfx in "" "_"; do
8174 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
8175 symxfrm="\\1 $ac_symprfx\\2 \\2"
8177 # Write the raw and C identifiers.
8178 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
8179 # Fake it for dumpbin and say T for any non-static function
8180 # and D for any global variable.
8181 # Also find C++ and __fastcall symbols from MSVC++,
8182 # which start with @ or ?.
8183 lt_cv_sys_global_symbol_pipe="$AWK '"\
8184 " {last_section=section; section=\$ 3};"\
8185 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
8186 " \$ 0!~/External *\|/{next};"\
8187 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
8188 " {if(hide[section]) next};"\
8189 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
8190 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
8191 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
8192 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
8193 " ' prfx=^$ac_symprfx"
8194 else
8195 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
8198 # Check to see that the pipe works correctly.
8199 pipe_works=no
8201 rm -f conftest*
8202 cat > conftest.$ac_ext <<_LT_EOF
8203 #ifdef __cplusplus
8204 extern "C" {
8205 #endif
8206 char nm_test_var;
8207 void nm_test_func(void);
8208 void nm_test_func(void){}
8209 #ifdef __cplusplus
8211 #endif
8212 int main(){nm_test_var='a';nm_test_func();return(0);}
8213 _LT_EOF
8215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8216 (eval $ac_compile) 2>&5
8217 ac_status=$?
8218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8219 test $ac_status = 0; }; then
8220 # Now try to grab the symbols.
8221 nlist=conftest.nm
8222 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
8223 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
8224 ac_status=$?
8225 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8226 test $ac_status = 0; } && test -s "$nlist"; then
8227 # Try sorting and uniquifying the output.
8228 if sort "$nlist" | uniq > "$nlist"T; then
8229 mv -f "$nlist"T "$nlist"
8230 else
8231 rm -f "$nlist"T
8234 # Make sure that we snagged all the symbols we need.
8235 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
8236 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
8237 cat <<_LT_EOF > conftest.$ac_ext
8238 #ifdef __cplusplus
8239 extern "C" {
8240 #endif
8242 _LT_EOF
8243 # Now generate the symbol file.
8244 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
8246 cat <<_LT_EOF >> conftest.$ac_ext
8248 /* The mapping between symbol names and symbols. */
8249 const struct {
8250 const char *name;
8251 void *address;
8253 lt__PROGRAM__LTX_preloaded_symbols[] =
8255 { "@PROGRAM@", (void *) 0 },
8256 _LT_EOF
8257 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
8258 cat <<\_LT_EOF >> conftest.$ac_ext
8259 {0, (void *) 0}
8262 /* This works around a problem in FreeBSD linker */
8263 #ifdef FREEBSD_WORKAROUND
8264 static const void *lt_preloaded_setup() {
8265 return lt__PROGRAM__LTX_preloaded_symbols;
8267 #endif
8269 #ifdef __cplusplus
8271 #endif
8272 _LT_EOF
8273 # Now try linking the two files.
8274 mv conftest.$ac_objext conftstm.$ac_objext
8275 lt_save_LIBS="$LIBS"
8276 lt_save_CFLAGS="$CFLAGS"
8277 LIBS="conftstm.$ac_objext"
8278 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
8279 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
8280 (eval $ac_link) 2>&5
8281 ac_status=$?
8282 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8283 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
8284 pipe_works=yes
8286 LIBS="$lt_save_LIBS"
8287 CFLAGS="$lt_save_CFLAGS"
8288 else
8289 echo "cannot find nm_test_func in $nlist" >&5
8291 else
8292 echo "cannot find nm_test_var in $nlist" >&5
8294 else
8295 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
8297 else
8298 echo "$progname: failed program was:" >&5
8299 cat conftest.$ac_ext >&5
8301 rm -rf conftest* conftst*
8303 # Do not use the global_symbol_pipe unless it works.
8304 if test "$pipe_works" = yes; then
8305 break
8306 else
8307 lt_cv_sys_global_symbol_pipe=
8309 done
8313 if test -z "$lt_cv_sys_global_symbol_pipe"; then
8314 lt_cv_sys_global_symbol_to_cdecl=
8316 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
8317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
8318 $as_echo "failed" >&6; }
8319 else
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
8321 $as_echo "ok" >&6; }
8345 # Check whether --enable-libtool-lock was given.
8346 if test "${enable_libtool_lock+set}" = set; then :
8347 enableval=$enable_libtool_lock;
8350 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8352 # Some flags need to be propagated to the compiler or linker for good
8353 # libtool support.
8354 case $host in
8355 ia64-*-hpux*)
8356 # Find out which ABI we are using.
8357 echo 'int i;' > conftest.$ac_ext
8358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8359 (eval $ac_compile) 2>&5
8360 ac_status=$?
8361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8362 test $ac_status = 0; }; then
8363 case `/usr/bin/file conftest.$ac_objext` in
8364 *ELF-32*)
8365 HPUX_IA64_MODE="32"
8367 *ELF-64*)
8368 HPUX_IA64_MODE="64"
8370 esac
8372 rm -rf conftest*
8374 *-*-irix6*)
8375 # Find out which ABI we are using.
8376 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8378 (eval $ac_compile) 2>&5
8379 ac_status=$?
8380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8381 test $ac_status = 0; }; then
8382 if test "$lt_cv_prog_gnu_ld" = yes; then
8383 case `/usr/bin/file conftest.$ac_objext` in
8384 *32-bit*)
8385 LD="${LD-ld} -melf32bsmip"
8387 *N32*)
8388 LD="${LD-ld} -melf32bmipn32"
8390 *64-bit*)
8391 LD="${LD-ld} -melf64bmip"
8393 esac
8394 else
8395 case `/usr/bin/file conftest.$ac_objext` in
8396 *32-bit*)
8397 LD="${LD-ld} -32"
8399 *N32*)
8400 LD="${LD-ld} -n32"
8402 *64-bit*)
8403 LD="${LD-ld} -64"
8405 esac
8408 rm -rf conftest*
8411 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8412 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8413 # Find out which ABI we are using.
8414 echo 'int i;' > conftest.$ac_ext
8415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8416 (eval $ac_compile) 2>&5
8417 ac_status=$?
8418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8419 test $ac_status = 0; }; then
8420 case `/usr/bin/file conftest.o` in
8421 *32-bit*)
8422 case $host in
8423 x86_64-*kfreebsd*-gnu)
8424 LD="${LD-ld} -m elf_i386_fbsd"
8426 x86_64-*linux*)
8427 case `/usr/bin/file conftest.o` in
8428 *x86-64*)
8429 LD="${LD-ld} -m elf32_x86_64"
8432 LD="${LD-ld} -m elf_i386"
8434 esac
8436 powerpc64le-*linux*)
8437 LD="${LD-ld} -m elf32lppclinux"
8439 powerpc64-*linux*)
8440 LD="${LD-ld} -m elf32ppclinux"
8442 s390x-*linux*)
8443 LD="${LD-ld} -m elf_s390"
8445 sparc64-*linux*)
8446 LD="${LD-ld} -m elf32_sparc"
8448 esac
8450 *64-bit*)
8451 case $host in
8452 x86_64-*kfreebsd*-gnu)
8453 LD="${LD-ld} -m elf_x86_64_fbsd"
8455 x86_64-*linux*)
8456 LD="${LD-ld} -m elf_x86_64"
8458 powerpcle-*linux*)
8459 LD="${LD-ld} -m elf64lppc"
8461 powerpc-*linux*)
8462 LD="${LD-ld} -m elf64ppc"
8464 s390*-*linux*|s390*-*tpf*)
8465 LD="${LD-ld} -m elf64_s390"
8467 sparc*-*linux*)
8468 LD="${LD-ld} -m elf64_sparc"
8470 esac
8472 esac
8474 rm -rf conftest*
8477 *-*-sco3.2v5*)
8478 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8479 SAVE_CFLAGS="$CFLAGS"
8480 CFLAGS="$CFLAGS -belf"
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8482 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8483 if ${lt_cv_cc_needs_belf+:} false; then :
8484 $as_echo_n "(cached) " >&6
8485 else
8486 ac_ext=c
8487 ac_cpp='$CPP $CPPFLAGS'
8488 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8489 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8490 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8492 if test x$gcc_no_link = xyes; then
8493 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8496 /* end confdefs.h. */
8499 main ()
8503 return 0;
8505 _ACEOF
8506 if ac_fn_c_try_link "$LINENO"; then :
8507 lt_cv_cc_needs_belf=yes
8508 else
8509 lt_cv_cc_needs_belf=no
8511 rm -f core conftest.err conftest.$ac_objext \
8512 conftest$ac_exeext conftest.$ac_ext
8513 ac_ext=c
8514 ac_cpp='$CPP $CPPFLAGS'
8515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8521 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8522 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8523 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8524 CFLAGS="$SAVE_CFLAGS"
8527 sparc*-*solaris*)
8528 # Find out which ABI we are using.
8529 echo 'int i;' > conftest.$ac_ext
8530 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8531 (eval $ac_compile) 2>&5
8532 ac_status=$?
8533 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8534 test $ac_status = 0; }; then
8535 case `/usr/bin/file conftest.o` in
8536 *64-bit*)
8537 case $lt_cv_prog_gnu_ld in
8538 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8540 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8541 LD="${LD-ld} -64"
8544 esac
8546 esac
8548 rm -rf conftest*
8550 esac
8552 need_locks="$enable_libtool_lock"
8555 case $host_os in
8556 rhapsody* | darwin*)
8557 if test -n "$ac_tool_prefix"; then
8558 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8559 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8561 $as_echo_n "checking for $ac_word... " >&6; }
8562 if ${ac_cv_prog_DSYMUTIL+:} false; then :
8563 $as_echo_n "(cached) " >&6
8564 else
8565 if test -n "$DSYMUTIL"; then
8566 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8567 else
8568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8569 for as_dir in $PATH
8571 IFS=$as_save_IFS
8572 test -z "$as_dir" && as_dir=.
8573 for ac_exec_ext in '' $ac_executable_extensions; do
8574 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8575 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8576 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8577 break 2
8579 done
8580 done
8581 IFS=$as_save_IFS
8585 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8586 if test -n "$DSYMUTIL"; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8588 $as_echo "$DSYMUTIL" >&6; }
8589 else
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8596 if test -z "$ac_cv_prog_DSYMUTIL"; then
8597 ac_ct_DSYMUTIL=$DSYMUTIL
8598 # Extract the first word of "dsymutil", so it can be a program name with args.
8599 set dummy dsymutil; ac_word=$2
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8601 $as_echo_n "checking for $ac_word... " >&6; }
8602 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
8603 $as_echo_n "(cached) " >&6
8604 else
8605 if test -n "$ac_ct_DSYMUTIL"; then
8606 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8607 else
8608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609 for as_dir in $PATH
8611 IFS=$as_save_IFS
8612 test -z "$as_dir" && as_dir=.
8613 for ac_exec_ext in '' $ac_executable_extensions; do
8614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8615 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8617 break 2
8619 done
8620 done
8621 IFS=$as_save_IFS
8625 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8626 if test -n "$ac_ct_DSYMUTIL"; then
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8628 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8629 else
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8631 $as_echo "no" >&6; }
8634 if test "x$ac_ct_DSYMUTIL" = x; then
8635 DSYMUTIL=":"
8636 else
8637 case $cross_compiling:$ac_tool_warned in
8638 yes:)
8639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8640 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8641 ac_tool_warned=yes ;;
8642 esac
8643 DSYMUTIL=$ac_ct_DSYMUTIL
8645 else
8646 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8649 if test -n "$ac_tool_prefix"; then
8650 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8651 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8653 $as_echo_n "checking for $ac_word... " >&6; }
8654 if ${ac_cv_prog_NMEDIT+:} false; then :
8655 $as_echo_n "(cached) " >&6
8656 else
8657 if test -n "$NMEDIT"; then
8658 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8659 else
8660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8661 for as_dir in $PATH
8663 IFS=$as_save_IFS
8664 test -z "$as_dir" && as_dir=.
8665 for ac_exec_ext in '' $ac_executable_extensions; do
8666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8667 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8669 break 2
8671 done
8672 done
8673 IFS=$as_save_IFS
8677 NMEDIT=$ac_cv_prog_NMEDIT
8678 if test -n "$NMEDIT"; then
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8680 $as_echo "$NMEDIT" >&6; }
8681 else
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683 $as_echo "no" >&6; }
8688 if test -z "$ac_cv_prog_NMEDIT"; then
8689 ac_ct_NMEDIT=$NMEDIT
8690 # Extract the first word of "nmedit", so it can be a program name with args.
8691 set dummy nmedit; ac_word=$2
8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8693 $as_echo_n "checking for $ac_word... " >&6; }
8694 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
8695 $as_echo_n "(cached) " >&6
8696 else
8697 if test -n "$ac_ct_NMEDIT"; then
8698 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8699 else
8700 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8701 for as_dir in $PATH
8703 IFS=$as_save_IFS
8704 test -z "$as_dir" && as_dir=.
8705 for ac_exec_ext in '' $ac_executable_extensions; do
8706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8707 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8709 break 2
8711 done
8712 done
8713 IFS=$as_save_IFS
8717 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8718 if test -n "$ac_ct_NMEDIT"; then
8719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8720 $as_echo "$ac_ct_NMEDIT" >&6; }
8721 else
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8723 $as_echo "no" >&6; }
8726 if test "x$ac_ct_NMEDIT" = x; then
8727 NMEDIT=":"
8728 else
8729 case $cross_compiling:$ac_tool_warned in
8730 yes:)
8731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8732 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8733 ac_tool_warned=yes ;;
8734 esac
8735 NMEDIT=$ac_ct_NMEDIT
8737 else
8738 NMEDIT="$ac_cv_prog_NMEDIT"
8741 if test -n "$ac_tool_prefix"; then
8742 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8743 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8745 $as_echo_n "checking for $ac_word... " >&6; }
8746 if ${ac_cv_prog_LIPO+:} false; then :
8747 $as_echo_n "(cached) " >&6
8748 else
8749 if test -n "$LIPO"; then
8750 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8751 else
8752 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8753 for as_dir in $PATH
8755 IFS=$as_save_IFS
8756 test -z "$as_dir" && as_dir=.
8757 for ac_exec_ext in '' $ac_executable_extensions; do
8758 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8759 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8760 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8761 break 2
8763 done
8764 done
8765 IFS=$as_save_IFS
8769 LIPO=$ac_cv_prog_LIPO
8770 if test -n "$LIPO"; then
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8772 $as_echo "$LIPO" >&6; }
8773 else
8774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8775 $as_echo "no" >&6; }
8780 if test -z "$ac_cv_prog_LIPO"; then
8781 ac_ct_LIPO=$LIPO
8782 # Extract the first word of "lipo", so it can be a program name with args.
8783 set dummy lipo; ac_word=$2
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8785 $as_echo_n "checking for $ac_word... " >&6; }
8786 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
8787 $as_echo_n "(cached) " >&6
8788 else
8789 if test -n "$ac_ct_LIPO"; then
8790 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8791 else
8792 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8793 for as_dir in $PATH
8795 IFS=$as_save_IFS
8796 test -z "$as_dir" && as_dir=.
8797 for ac_exec_ext in '' $ac_executable_extensions; do
8798 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8799 ac_cv_prog_ac_ct_LIPO="lipo"
8800 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8801 break 2
8803 done
8804 done
8805 IFS=$as_save_IFS
8809 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8810 if test -n "$ac_ct_LIPO"; then
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8812 $as_echo "$ac_ct_LIPO" >&6; }
8813 else
8814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8815 $as_echo "no" >&6; }
8818 if test "x$ac_ct_LIPO" = x; then
8819 LIPO=":"
8820 else
8821 case $cross_compiling:$ac_tool_warned in
8822 yes:)
8823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8825 ac_tool_warned=yes ;;
8826 esac
8827 LIPO=$ac_ct_LIPO
8829 else
8830 LIPO="$ac_cv_prog_LIPO"
8833 if test -n "$ac_tool_prefix"; then
8834 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8835 set dummy ${ac_tool_prefix}otool; ac_word=$2
8836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8837 $as_echo_n "checking for $ac_word... " >&6; }
8838 if ${ac_cv_prog_OTOOL+:} false; then :
8839 $as_echo_n "(cached) " >&6
8840 else
8841 if test -n "$OTOOL"; then
8842 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8843 else
8844 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8845 for as_dir in $PATH
8847 IFS=$as_save_IFS
8848 test -z "$as_dir" && as_dir=.
8849 for ac_exec_ext in '' $ac_executable_extensions; do
8850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8851 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8853 break 2
8855 done
8856 done
8857 IFS=$as_save_IFS
8861 OTOOL=$ac_cv_prog_OTOOL
8862 if test -n "$OTOOL"; then
8863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8864 $as_echo "$OTOOL" >&6; }
8865 else
8866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8867 $as_echo "no" >&6; }
8872 if test -z "$ac_cv_prog_OTOOL"; then
8873 ac_ct_OTOOL=$OTOOL
8874 # Extract the first word of "otool", so it can be a program name with args.
8875 set dummy otool; ac_word=$2
8876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8877 $as_echo_n "checking for $ac_word... " >&6; }
8878 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
8879 $as_echo_n "(cached) " >&6
8880 else
8881 if test -n "$ac_ct_OTOOL"; then
8882 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8883 else
8884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8885 for as_dir in $PATH
8887 IFS=$as_save_IFS
8888 test -z "$as_dir" && as_dir=.
8889 for ac_exec_ext in '' $ac_executable_extensions; do
8890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8891 ac_cv_prog_ac_ct_OTOOL="otool"
8892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8893 break 2
8895 done
8896 done
8897 IFS=$as_save_IFS
8901 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8902 if test -n "$ac_ct_OTOOL"; then
8903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8904 $as_echo "$ac_ct_OTOOL" >&6; }
8905 else
8906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8907 $as_echo "no" >&6; }
8910 if test "x$ac_ct_OTOOL" = x; then
8911 OTOOL=":"
8912 else
8913 case $cross_compiling:$ac_tool_warned in
8914 yes:)
8915 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8916 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8917 ac_tool_warned=yes ;;
8918 esac
8919 OTOOL=$ac_ct_OTOOL
8921 else
8922 OTOOL="$ac_cv_prog_OTOOL"
8925 if test -n "$ac_tool_prefix"; then
8926 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8927 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8929 $as_echo_n "checking for $ac_word... " >&6; }
8930 if ${ac_cv_prog_OTOOL64+:} false; then :
8931 $as_echo_n "(cached) " >&6
8932 else
8933 if test -n "$OTOOL64"; then
8934 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8935 else
8936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8937 for as_dir in $PATH
8939 IFS=$as_save_IFS
8940 test -z "$as_dir" && as_dir=.
8941 for ac_exec_ext in '' $ac_executable_extensions; do
8942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8943 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8945 break 2
8947 done
8948 done
8949 IFS=$as_save_IFS
8953 OTOOL64=$ac_cv_prog_OTOOL64
8954 if test -n "$OTOOL64"; then
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8956 $as_echo "$OTOOL64" >&6; }
8957 else
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8959 $as_echo "no" >&6; }
8964 if test -z "$ac_cv_prog_OTOOL64"; then
8965 ac_ct_OTOOL64=$OTOOL64
8966 # Extract the first word of "otool64", so it can be a program name with args.
8967 set dummy otool64; ac_word=$2
8968 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8969 $as_echo_n "checking for $ac_word... " >&6; }
8970 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
8971 $as_echo_n "(cached) " >&6
8972 else
8973 if test -n "$ac_ct_OTOOL64"; then
8974 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8975 else
8976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8977 for as_dir in $PATH
8979 IFS=$as_save_IFS
8980 test -z "$as_dir" && as_dir=.
8981 for ac_exec_ext in '' $ac_executable_extensions; do
8982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8983 ac_cv_prog_ac_ct_OTOOL64="otool64"
8984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8985 break 2
8987 done
8988 done
8989 IFS=$as_save_IFS
8993 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8994 if test -n "$ac_ct_OTOOL64"; then
8995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8996 $as_echo "$ac_ct_OTOOL64" >&6; }
8997 else
8998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8999 $as_echo "no" >&6; }
9002 if test "x$ac_ct_OTOOL64" = x; then
9003 OTOOL64=":"
9004 else
9005 case $cross_compiling:$ac_tool_warned in
9006 yes:)
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9008 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9009 ac_tool_warned=yes ;;
9010 esac
9011 OTOOL64=$ac_ct_OTOOL64
9013 else
9014 OTOOL64="$ac_cv_prog_OTOOL64"
9043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
9044 $as_echo_n "checking for -single_module linker flag... " >&6; }
9045 if ${lt_cv_apple_cc_single_mod+:} false; then :
9046 $as_echo_n "(cached) " >&6
9047 else
9048 lt_cv_apple_cc_single_mod=no
9049 if test -z "${LT_MULTI_MODULE}"; then
9050 # By default we will add the -single_module flag. You can override
9051 # by either setting the environment variable LT_MULTI_MODULE
9052 # non-empty at configure time, or by adding -multi_module to the
9053 # link flags.
9054 rm -rf libconftest.dylib*
9055 echo "int foo(void){return 1;}" > conftest.c
9056 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9057 -dynamiclib -Wl,-single_module conftest.c" >&5
9058 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
9059 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
9060 _lt_result=$?
9061 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
9062 lt_cv_apple_cc_single_mod=yes
9063 else
9064 cat conftest.err >&5
9066 rm -rf libconftest.dylib*
9067 rm -f conftest.*
9070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
9071 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
9072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
9073 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
9074 if ${lt_cv_ld_exported_symbols_list+:} false; then :
9075 $as_echo_n "(cached) " >&6
9076 else
9077 lt_cv_ld_exported_symbols_list=no
9078 save_LDFLAGS=$LDFLAGS
9079 echo "_main" > conftest.sym
9080 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
9081 if test x$gcc_no_link = xyes; then
9082 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
9084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9085 /* end confdefs.h. */
9088 main ()
9092 return 0;
9094 _ACEOF
9095 if ac_fn_c_try_link "$LINENO"; then :
9096 lt_cv_ld_exported_symbols_list=yes
9097 else
9098 lt_cv_ld_exported_symbols_list=no
9100 rm -f core conftest.err conftest.$ac_objext \
9101 conftest$ac_exeext conftest.$ac_ext
9102 LDFLAGS="$save_LDFLAGS"
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
9106 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
9108 $as_echo_n "checking for -force_load linker flag... " >&6; }
9109 if ${lt_cv_ld_force_load+:} false; then :
9110 $as_echo_n "(cached) " >&6
9111 else
9112 lt_cv_ld_force_load=no
9113 cat > conftest.c << _LT_EOF
9114 int forced_loaded() { return 2;}
9115 _LT_EOF
9116 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
9117 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
9118 echo "$AR cru libconftest.a conftest.o" >&5
9119 $AR cru libconftest.a conftest.o 2>&5
9120 cat > conftest.c << _LT_EOF
9121 int main() { return 0;}
9122 _LT_EOF
9123 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
9124 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
9125 _lt_result=$?
9126 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
9127 lt_cv_ld_force_load=yes
9128 else
9129 cat conftest.err >&5
9131 rm -f conftest.err libconftest.a conftest conftest.c
9132 rm -rf conftest.dSYM
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
9136 $as_echo "$lt_cv_ld_force_load" >&6; }
9137 # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
9138 # build without first building modern cctools / linker.
9139 case $host_cpu-$host_os in
9140 *-rhapsody* | *-darwin1.[012])
9141 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
9142 *-darwin1.*)
9143 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
9144 *-darwin*)
9145 # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
9146 # deployment target is forced to an earlier version.
9147 case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
9148 UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
9150 10.[012][,.]*)
9151 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
9155 esac
9157 esac
9158 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
9159 _lt_dar_single_mod='$single_module'
9161 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
9162 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
9163 else
9164 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
9166 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
9167 _lt_dsymutil='~$DSYMUTIL $lib || :'
9168 else
9169 _lt_dsymutil=
9172 esac
9174 for ac_header in dlfcn.h
9175 do :
9176 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
9178 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
9179 cat >>confdefs.h <<_ACEOF
9180 #define HAVE_DLFCN_H 1
9181 _ACEOF
9185 done
9192 # Set options
9197 enable_win32_dll=no
9200 # Check whether --enable-shared was given.
9201 if test "${enable_shared+set}" = set; then :
9202 enableval=$enable_shared; p=${PACKAGE-default}
9203 case $enableval in
9204 yes) enable_shared=yes ;;
9205 no) enable_shared=no ;;
9207 enable_shared=no
9208 # Look at the argument we got. We use all the common list separators.
9209 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9210 for pkg in $enableval; do
9211 IFS="$lt_save_ifs"
9212 if test "X$pkg" = "X$p"; then
9213 enable_shared=yes
9215 done
9216 IFS="$lt_save_ifs"
9218 esac
9219 else
9220 enable_shared=yes
9231 # Check whether --enable-static was given.
9232 if test "${enable_static+set}" = set; then :
9233 enableval=$enable_static; p=${PACKAGE-default}
9234 case $enableval in
9235 yes) enable_static=yes ;;
9236 no) enable_static=no ;;
9238 enable_static=no
9239 # Look at the argument we got. We use all the common list separators.
9240 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9241 for pkg in $enableval; do
9242 IFS="$lt_save_ifs"
9243 if test "X$pkg" = "X$p"; then
9244 enable_static=yes
9246 done
9247 IFS="$lt_save_ifs"
9249 esac
9250 else
9251 enable_static=yes
9263 # Check whether --with-pic was given.
9264 if test "${with_pic+set}" = set; then :
9265 withval=$with_pic; pic_mode="$withval"
9266 else
9267 pic_mode=default
9271 test -z "$pic_mode" && pic_mode=default
9279 # Check whether --enable-fast-install was given.
9280 if test "${enable_fast_install+set}" = set; then :
9281 enableval=$enable_fast_install; p=${PACKAGE-default}
9282 case $enableval in
9283 yes) enable_fast_install=yes ;;
9284 no) enable_fast_install=no ;;
9286 enable_fast_install=no
9287 # Look at the argument we got. We use all the common list separators.
9288 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9289 for pkg in $enableval; do
9290 IFS="$lt_save_ifs"
9291 if test "X$pkg" = "X$p"; then
9292 enable_fast_install=yes
9294 done
9295 IFS="$lt_save_ifs"
9297 esac
9298 else
9299 enable_fast_install=yes
9312 # This can be used to rebuild libtool when needed
9313 LIBTOOL_DEPS="$ltmain"
9315 # Always use our own libtool.
9316 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9343 test -z "$LN_S" && LN_S="ln -s"
9358 if test -n "${ZSH_VERSION+set}" ; then
9359 setopt NO_GLOB_SUBST
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9363 $as_echo_n "checking for objdir... " >&6; }
9364 if ${lt_cv_objdir+:} false; then :
9365 $as_echo_n "(cached) " >&6
9366 else
9367 rm -f .libs 2>/dev/null
9368 mkdir .libs 2>/dev/null
9369 if test -d .libs; then
9370 lt_cv_objdir=.libs
9371 else
9372 # MS-DOS does not allow filenames that begin with a dot.
9373 lt_cv_objdir=_libs
9375 rmdir .libs 2>/dev/null
9377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9378 $as_echo "$lt_cv_objdir" >&6; }
9379 objdir=$lt_cv_objdir
9385 cat >>confdefs.h <<_ACEOF
9386 #define LT_OBJDIR "$lt_cv_objdir/"
9387 _ACEOF
9392 case $host_os in
9393 aix3*)
9394 # AIX sometimes has problems with the GCC collect2 program. For some
9395 # reason, if we set the COLLECT_NAMES environment variable, the problems
9396 # vanish in a puff of smoke.
9397 if test "X${COLLECT_NAMES+set}" != Xset; then
9398 COLLECT_NAMES=
9399 export COLLECT_NAMES
9402 esac
9404 # Global variables:
9405 ofile=libtool
9406 can_build_shared=yes
9408 # All known linkers require a `.a' archive for static linking (except MSVC,
9409 # which needs '.lib').
9410 libext=a
9412 with_gnu_ld="$lt_cv_prog_gnu_ld"
9414 old_CC="$CC"
9415 old_CFLAGS="$CFLAGS"
9417 # Set sane defaults for various variables
9418 test -z "$CC" && CC=cc
9419 test -z "$LTCC" && LTCC=$CC
9420 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9421 test -z "$LD" && LD=ld
9422 test -z "$ac_objext" && ac_objext=o
9424 for cc_temp in $compiler""; do
9425 case $cc_temp in
9426 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9427 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9428 \-*) ;;
9429 *) break;;
9430 esac
9431 done
9432 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9435 # Only perform the check for file, if the check method requires it
9436 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9437 case $deplibs_check_method in
9438 file_magic*)
9439 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9441 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9442 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9443 $as_echo_n "(cached) " >&6
9444 else
9445 case $MAGIC_CMD in
9446 [\\/*] | ?:[\\/]*)
9447 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9450 lt_save_MAGIC_CMD="$MAGIC_CMD"
9451 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9452 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9453 for ac_dir in $ac_dummy; do
9454 IFS="$lt_save_ifs"
9455 test -z "$ac_dir" && ac_dir=.
9456 if test -f $ac_dir/${ac_tool_prefix}file; then
9457 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9458 if test -n "$file_magic_test_file"; then
9459 case $deplibs_check_method in
9460 "file_magic "*)
9461 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9462 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9463 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9464 $EGREP "$file_magic_regex" > /dev/null; then
9466 else
9467 cat <<_LT_EOF 1>&2
9469 *** Warning: the command libtool uses to detect shared libraries,
9470 *** $file_magic_cmd, produces output that libtool cannot recognize.
9471 *** The result is that libtool may fail to recognize shared libraries
9472 *** as such. This will affect the creation of libtool libraries that
9473 *** depend on shared libraries, but programs linked with such libtool
9474 *** libraries will work regardless of this problem. Nevertheless, you
9475 *** may want to report the problem to your system manager and/or to
9476 *** bug-libtool@gnu.org
9478 _LT_EOF
9479 fi ;;
9480 esac
9482 break
9484 done
9485 IFS="$lt_save_ifs"
9486 MAGIC_CMD="$lt_save_MAGIC_CMD"
9488 esac
9491 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9492 if test -n "$MAGIC_CMD"; then
9493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9494 $as_echo "$MAGIC_CMD" >&6; }
9495 else
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9497 $as_echo "no" >&6; }
9504 if test -z "$lt_cv_path_MAGIC_CMD"; then
9505 if test -n "$ac_tool_prefix"; then
9506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9507 $as_echo_n "checking for file... " >&6; }
9508 if ${lt_cv_path_MAGIC_CMD+:} false; then :
9509 $as_echo_n "(cached) " >&6
9510 else
9511 case $MAGIC_CMD in
9512 [\\/*] | ?:[\\/]*)
9513 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9516 lt_save_MAGIC_CMD="$MAGIC_CMD"
9517 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9518 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9519 for ac_dir in $ac_dummy; do
9520 IFS="$lt_save_ifs"
9521 test -z "$ac_dir" && ac_dir=.
9522 if test -f $ac_dir/file; then
9523 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9524 if test -n "$file_magic_test_file"; then
9525 case $deplibs_check_method in
9526 "file_magic "*)
9527 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9528 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9529 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9530 $EGREP "$file_magic_regex" > /dev/null; then
9532 else
9533 cat <<_LT_EOF 1>&2
9535 *** Warning: the command libtool uses to detect shared libraries,
9536 *** $file_magic_cmd, produces output that libtool cannot recognize.
9537 *** The result is that libtool may fail to recognize shared libraries
9538 *** as such. This will affect the creation of libtool libraries that
9539 *** depend on shared libraries, but programs linked with such libtool
9540 *** libraries will work regardless of this problem. Nevertheless, you
9541 *** may want to report the problem to your system manager and/or to
9542 *** bug-libtool@gnu.org
9544 _LT_EOF
9545 fi ;;
9546 esac
9548 break
9550 done
9551 IFS="$lt_save_ifs"
9552 MAGIC_CMD="$lt_save_MAGIC_CMD"
9554 esac
9557 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9558 if test -n "$MAGIC_CMD"; then
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9560 $as_echo "$MAGIC_CMD" >&6; }
9561 else
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9563 $as_echo "no" >&6; }
9567 else
9568 MAGIC_CMD=:
9574 esac
9576 # Use C for the default configuration in the libtool script
9578 lt_save_CC="$CC"
9579 ac_ext=c
9580 ac_cpp='$CPP $CPPFLAGS'
9581 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9582 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9583 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9586 # Source file extension for C test sources.
9587 ac_ext=c
9589 # Object file extension for compiled C test sources.
9590 objext=o
9591 objext=$objext
9593 # Code to be used in simple compile tests
9594 lt_simple_compile_test_code="int some_variable = 0;"
9596 # Code to be used in simple link tests
9597 lt_simple_link_test_code='int main(){return(0);}'
9605 # If no C compiler was specified, use CC.
9606 LTCC=${LTCC-"$CC"}
9608 # If no C compiler flags were specified, use CFLAGS.
9609 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9611 # Allow CC to be a program name with arguments.
9612 compiler=$CC
9614 # Save the default compiler, since it gets overwritten when the other
9615 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9616 compiler_DEFAULT=$CC
9618 # save warnings/boilerplate of simple test code
9619 ac_outfile=conftest.$ac_objext
9620 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9621 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9622 _lt_compiler_boilerplate=`cat conftest.err`
9623 $RM conftest*
9625 ac_outfile=conftest.$ac_objext
9626 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9627 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9628 _lt_linker_boilerplate=`cat conftest.err`
9629 $RM -r conftest*
9632 ## CAVEAT EMPTOR:
9633 ## There is no encapsulation within the following macros, do not change
9634 ## the running order or otherwise move them around unless you know exactly
9635 ## what you are doing...
9636 if test -n "$compiler"; then
9638 lt_prog_compiler_no_builtin_flag=
9640 if test "$GCC" = yes; then
9641 case $cc_basename in
9642 nvcc*)
9643 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9645 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9646 esac
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9649 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9650 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
9651 $as_echo_n "(cached) " >&6
9652 else
9653 lt_cv_prog_compiler_rtti_exceptions=no
9654 ac_outfile=conftest.$ac_objext
9655 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9656 lt_compiler_flag="-fno-rtti -fno-exceptions"
9657 # Insert the option either (1) after the last *FLAGS variable, or
9658 # (2) before a word containing "conftest.", or (3) at the end.
9659 # Note that $ac_compile itself does not contain backslashes and begins
9660 # with a dollar sign (not a hyphen), so the echo should work correctly.
9661 # The option is referenced via a variable to avoid confusing sed.
9662 lt_compile=`echo "$ac_compile" | $SED \
9663 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9664 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9665 -e 's:$: $lt_compiler_flag:'`
9666 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9667 (eval "$lt_compile" 2>conftest.err)
9668 ac_status=$?
9669 cat conftest.err >&5
9670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9671 if (exit $ac_status) && test -s "$ac_outfile"; then
9672 # The compiler can only warn and ignore the option if not recognized
9673 # So say no if there are warnings other than the usual output.
9674 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9675 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9676 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9677 lt_cv_prog_compiler_rtti_exceptions=yes
9680 $RM conftest*
9683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9684 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9686 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9687 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9688 else
9699 lt_prog_compiler_wl=
9700 lt_prog_compiler_pic=
9701 lt_prog_compiler_static=
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9704 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9706 if test "$GCC" = yes; then
9707 lt_prog_compiler_wl='-Wl,'
9708 lt_prog_compiler_static='-static'
9710 case $host_os in
9711 aix*)
9712 # All AIX code is PIC.
9713 if test "$host_cpu" = ia64; then
9714 # AIX 5 now supports IA64 processor
9715 lt_prog_compiler_static='-Bstatic'
9717 lt_prog_compiler_pic='-fPIC'
9720 amigaos*)
9721 case $host_cpu in
9722 powerpc)
9723 # see comment about AmigaOS4 .so support
9724 lt_prog_compiler_pic='-fPIC'
9726 m68k)
9727 # FIXME: we need at least 68020 code to build shared libraries, but
9728 # adding the `-m68020' flag to GCC prevents building anything better,
9729 # like `-m68040'.
9730 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9732 esac
9735 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9736 # PIC is the default for these OSes.
9739 mingw* | cygwin* | pw32* | os2* | cegcc*)
9740 # This hack is so that the source file can tell whether it is being
9741 # built for inclusion in a dll (and should export symbols for example).
9742 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9743 # (--disable-auto-import) libraries
9744 lt_prog_compiler_pic='-DDLL_EXPORT'
9747 darwin* | rhapsody*)
9748 # PIC is the default on this platform
9749 # Common symbols not allowed in MH_DYLIB files
9750 lt_prog_compiler_pic='-fno-common'
9753 haiku*)
9754 # PIC is the default for Haiku.
9755 # The "-static" flag exists, but is broken.
9756 lt_prog_compiler_static=
9759 hpux*)
9760 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9761 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9762 # sets the default TLS model and affects inlining.
9763 case $host_cpu in
9764 hppa*64*)
9765 # +Z the default
9768 lt_prog_compiler_pic='-fPIC'
9770 esac
9773 interix[3-9]*)
9774 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9775 # Instead, we relocate shared libraries at runtime.
9778 msdosdjgpp*)
9779 # Just because we use GCC doesn't mean we suddenly get shared libraries
9780 # on systems that don't support them.
9781 lt_prog_compiler_can_build_shared=no
9782 enable_shared=no
9785 *nto* | *qnx*)
9786 # QNX uses GNU C++, but need to define -shared option too, otherwise
9787 # it will coredump.
9788 lt_prog_compiler_pic='-fPIC -shared'
9791 sysv4*MP*)
9792 if test -d /usr/nec; then
9793 lt_prog_compiler_pic=-Kconform_pic
9798 lt_prog_compiler_pic='-fPIC'
9800 esac
9802 case $cc_basename in
9803 nvcc*) # Cuda Compiler Driver 2.2
9804 lt_prog_compiler_wl='-Xlinker '
9805 lt_prog_compiler_pic='-Xcompiler -fPIC'
9807 esac
9808 else
9809 # PORTME Check for flag to pass linker flags through the system compiler.
9810 case $host_os in
9811 aix*)
9812 lt_prog_compiler_wl='-Wl,'
9813 if test "$host_cpu" = ia64; then
9814 # AIX 5 now supports IA64 processor
9815 lt_prog_compiler_static='-Bstatic'
9816 else
9817 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9821 mingw* | cygwin* | pw32* | os2* | cegcc*)
9822 # This hack is so that the source file can tell whether it is being
9823 # built for inclusion in a dll (and should export symbols for example).
9824 lt_prog_compiler_pic='-DDLL_EXPORT'
9827 hpux9* | hpux10* | hpux11*)
9828 lt_prog_compiler_wl='-Wl,'
9829 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9830 # not for PA HP-UX.
9831 case $host_cpu in
9832 hppa*64*|ia64*)
9833 # +Z the default
9836 lt_prog_compiler_pic='+Z'
9838 esac
9839 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9840 lt_prog_compiler_static='${wl}-a ${wl}archive'
9843 irix5* | irix6* | nonstopux*)
9844 lt_prog_compiler_wl='-Wl,'
9845 # PIC (with -KPIC) is the default.
9846 lt_prog_compiler_static='-non_shared'
9849 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9850 case $cc_basename in
9851 # old Intel for x86_64 which still supported -KPIC.
9852 ecc*)
9853 lt_prog_compiler_wl='-Wl,'
9854 lt_prog_compiler_pic='-KPIC'
9855 lt_prog_compiler_static='-static'
9857 # icc used to be incompatible with GCC.
9858 # ICC 10 doesn't accept -KPIC any more.
9859 icc* | ifort*)
9860 lt_prog_compiler_wl='-Wl,'
9861 lt_prog_compiler_pic='-fPIC'
9862 lt_prog_compiler_static='-static'
9864 # Lahey Fortran 8.1.
9865 lf95*)
9866 lt_prog_compiler_wl='-Wl,'
9867 lt_prog_compiler_pic='--shared'
9868 lt_prog_compiler_static='--static'
9870 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9871 # Portland Group compilers (*not* the Pentium gcc compiler,
9872 # which looks to be a dead project)
9873 lt_prog_compiler_wl='-Wl,'
9874 lt_prog_compiler_pic='-fpic'
9875 lt_prog_compiler_static='-Bstatic'
9877 ccc*)
9878 lt_prog_compiler_wl='-Wl,'
9879 # All Alpha code is PIC.
9880 lt_prog_compiler_static='-non_shared'
9882 xl* | bgxl* | bgf* | mpixl*)
9883 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9884 lt_prog_compiler_wl='-Wl,'
9885 lt_prog_compiler_pic='-qpic'
9886 lt_prog_compiler_static='-qstaticlink'
9889 case `$CC -V 2>&1 | sed 5q` in
9890 *Sun\ F* | *Sun*Fortran*)
9891 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9892 lt_prog_compiler_pic='-KPIC'
9893 lt_prog_compiler_static='-Bstatic'
9894 lt_prog_compiler_wl=''
9896 *Sun\ C*)
9897 # Sun C 5.9
9898 lt_prog_compiler_pic='-KPIC'
9899 lt_prog_compiler_static='-Bstatic'
9900 lt_prog_compiler_wl='-Wl,'
9902 esac
9904 esac
9907 newsos6)
9908 lt_prog_compiler_pic='-KPIC'
9909 lt_prog_compiler_static='-Bstatic'
9912 *nto* | *qnx*)
9913 # QNX uses GNU C++, but need to define -shared option too, otherwise
9914 # it will coredump.
9915 lt_prog_compiler_pic='-fPIC -shared'
9918 osf3* | osf4* | osf5*)
9919 lt_prog_compiler_wl='-Wl,'
9920 # All OSF/1 code is PIC.
9921 lt_prog_compiler_static='-non_shared'
9924 rdos*)
9925 lt_prog_compiler_static='-non_shared'
9928 solaris*)
9929 lt_prog_compiler_pic='-KPIC'
9930 lt_prog_compiler_static='-Bstatic'
9931 case $cc_basename in
9932 f77* | f90* | f95*)
9933 lt_prog_compiler_wl='-Qoption ld ';;
9935 lt_prog_compiler_wl='-Wl,';;
9936 esac
9939 sunos4*)
9940 lt_prog_compiler_wl='-Qoption ld '
9941 lt_prog_compiler_pic='-PIC'
9942 lt_prog_compiler_static='-Bstatic'
9945 sysv4 | sysv4.2uw2* | sysv4.3*)
9946 lt_prog_compiler_wl='-Wl,'
9947 lt_prog_compiler_pic='-KPIC'
9948 lt_prog_compiler_static='-Bstatic'
9951 sysv4*MP*)
9952 if test -d /usr/nec ;then
9953 lt_prog_compiler_pic='-Kconform_pic'
9954 lt_prog_compiler_static='-Bstatic'
9958 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9959 lt_prog_compiler_wl='-Wl,'
9960 lt_prog_compiler_pic='-KPIC'
9961 lt_prog_compiler_static='-Bstatic'
9964 unicos*)
9965 lt_prog_compiler_wl='-Wl,'
9966 lt_prog_compiler_can_build_shared=no
9969 uts4*)
9970 lt_prog_compiler_pic='-pic'
9971 lt_prog_compiler_static='-Bstatic'
9975 lt_prog_compiler_can_build_shared=no
9977 esac
9980 case $host_os in
9981 # For platforms which do not support PIC, -DPIC is meaningless:
9982 *djgpp*)
9983 lt_prog_compiler_pic=
9986 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9988 esac
9989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9990 $as_echo "$lt_prog_compiler_pic" >&6; }
9998 # Check to make sure the PIC flag actually works.
10000 if test -n "$lt_prog_compiler_pic"; then
10001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
10002 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
10003 if ${lt_cv_prog_compiler_pic_works+:} false; then :
10004 $as_echo_n "(cached) " >&6
10005 else
10006 lt_cv_prog_compiler_pic_works=no
10007 ac_outfile=conftest.$ac_objext
10008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10009 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
10010 # Insert the option either (1) after the last *FLAGS variable, or
10011 # (2) before a word containing "conftest.", or (3) at the end.
10012 # Note that $ac_compile itself does not contain backslashes and begins
10013 # with a dollar sign (not a hyphen), so the echo should work correctly.
10014 # The option is referenced via a variable to avoid confusing sed.
10015 lt_compile=`echo "$ac_compile" | $SED \
10016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10018 -e 's:$: $lt_compiler_flag:'`
10019 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10020 (eval "$lt_compile" 2>conftest.err)
10021 ac_status=$?
10022 cat conftest.err >&5
10023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10024 if (exit $ac_status) && test -s "$ac_outfile"; then
10025 # The compiler can only warn and ignore the option if not recognized
10026 # So say no if there are warnings other than the usual output.
10027 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
10028 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10029 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
10030 lt_cv_prog_compiler_pic_works=yes
10033 $RM conftest*
10036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
10037 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
10039 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
10040 case $lt_prog_compiler_pic in
10041 "" | " "*) ;;
10042 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
10043 esac
10044 else
10045 lt_prog_compiler_pic=
10046 lt_prog_compiler_can_build_shared=no
10057 # Check to make sure the static flag actually works.
10059 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
10061 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
10062 if ${lt_cv_prog_compiler_static_works+:} false; then :
10063 $as_echo_n "(cached) " >&6
10064 else
10065 lt_cv_prog_compiler_static_works=no
10066 save_LDFLAGS="$LDFLAGS"
10067 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
10068 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10069 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10070 # The linker can only warn and ignore the option if not recognized
10071 # So say no if there are warnings
10072 if test -s conftest.err; then
10073 # Append any errors to the config.log.
10074 cat conftest.err 1>&5
10075 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10076 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10077 if diff conftest.exp conftest.er2 >/dev/null; then
10078 lt_cv_prog_compiler_static_works=yes
10080 else
10081 lt_cv_prog_compiler_static_works=yes
10084 $RM -r conftest*
10085 LDFLAGS="$save_LDFLAGS"
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
10089 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
10091 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
10093 else
10094 lt_prog_compiler_static=
10103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10104 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10105 if ${lt_cv_prog_compiler_c_o+:} false; then :
10106 $as_echo_n "(cached) " >&6
10107 else
10108 lt_cv_prog_compiler_c_o=no
10109 $RM -r conftest 2>/dev/null
10110 mkdir conftest
10111 cd conftest
10112 mkdir out
10113 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10115 lt_compiler_flag="-o out/conftest2.$ac_objext"
10116 # Insert the option either (1) after the last *FLAGS variable, or
10117 # (2) before a word containing "conftest.", or (3) at the end.
10118 # Note that $ac_compile itself does not contain backslashes and begins
10119 # with a dollar sign (not a hyphen), so the echo should work correctly.
10120 lt_compile=`echo "$ac_compile" | $SED \
10121 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10122 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10123 -e 's:$: $lt_compiler_flag:'`
10124 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10125 (eval "$lt_compile" 2>out/conftest.err)
10126 ac_status=$?
10127 cat out/conftest.err >&5
10128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10129 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10130 then
10131 # The compiler can only warn and ignore the option if not recognized
10132 # So say no if there are warnings
10133 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10134 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10135 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10136 lt_cv_prog_compiler_c_o=yes
10139 chmod u+w . 2>&5
10140 $RM conftest*
10141 # SGI C++ compiler will create directory out/ii_files/ for
10142 # template instantiation
10143 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10144 $RM out/* && rmdir out
10145 cd ..
10146 $RM -r conftest
10147 $RM conftest*
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10151 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
10159 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
10160 if ${lt_cv_prog_compiler_c_o+:} false; then :
10161 $as_echo_n "(cached) " >&6
10162 else
10163 lt_cv_prog_compiler_c_o=no
10164 $RM -r conftest 2>/dev/null
10165 mkdir conftest
10166 cd conftest
10167 mkdir out
10168 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10170 lt_compiler_flag="-o out/conftest2.$ac_objext"
10171 # Insert the option either (1) after the last *FLAGS variable, or
10172 # (2) before a word containing "conftest.", or (3) at the end.
10173 # Note that $ac_compile itself does not contain backslashes and begins
10174 # with a dollar sign (not a hyphen), so the echo should work correctly.
10175 lt_compile=`echo "$ac_compile" | $SED \
10176 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
10177 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
10178 -e 's:$: $lt_compiler_flag:'`
10179 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
10180 (eval "$lt_compile" 2>out/conftest.err)
10181 ac_status=$?
10182 cat out/conftest.err >&5
10183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10184 if (exit $ac_status) && test -s out/conftest2.$ac_objext
10185 then
10186 # The compiler can only warn and ignore the option if not recognized
10187 # So say no if there are warnings
10188 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
10189 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
10190 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
10191 lt_cv_prog_compiler_c_o=yes
10194 chmod u+w . 2>&5
10195 $RM conftest*
10196 # SGI C++ compiler will create directory out/ii_files/ for
10197 # template instantiation
10198 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
10199 $RM out/* && rmdir out
10200 cd ..
10201 $RM -r conftest
10202 $RM conftest*
10205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
10206 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
10211 hard_links="nottested"
10212 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
10213 # do not overwrite the value of need_locks provided by the user
10214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
10215 $as_echo_n "checking if we can lock with hard links... " >&6; }
10216 hard_links=yes
10217 $RM conftest*
10218 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10219 touch conftest.a
10220 ln conftest.a conftest.b 2>&5 || hard_links=no
10221 ln conftest.a conftest.b 2>/dev/null && hard_links=no
10222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
10223 $as_echo "$hard_links" >&6; }
10224 if test "$hard_links" = no; then
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
10226 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
10227 need_locks=warn
10229 else
10230 need_locks=no
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
10239 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
10241 runpath_var=
10242 allow_undefined_flag=
10243 always_export_symbols=no
10244 archive_cmds=
10245 archive_expsym_cmds=
10246 compiler_needs_object=no
10247 enable_shared_with_static_runtimes=no
10248 export_dynamic_flag_spec=
10249 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
10250 hardcode_automatic=no
10251 hardcode_direct=no
10252 hardcode_direct_absolute=no
10253 hardcode_libdir_flag_spec=
10254 hardcode_libdir_flag_spec_ld=
10255 hardcode_libdir_separator=
10256 hardcode_minus_L=no
10257 hardcode_shlibpath_var=unsupported
10258 inherit_rpath=no
10259 link_all_deplibs=unknown
10260 module_cmds=
10261 module_expsym_cmds=
10262 old_archive_from_new_cmds=
10263 old_archive_from_expsyms_cmds=
10264 thread_safe_flag_spec=
10265 whole_archive_flag_spec=
10266 # include_expsyms should be a list of space-separated symbols to be *always*
10267 # included in the symbol list
10268 include_expsyms=
10269 # exclude_expsyms can be an extended regexp of symbols to exclude
10270 # it will be wrapped by ` (' and `)$', so one must not match beginning or
10271 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
10272 # as well as any symbol that contains `d'.
10273 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
10274 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
10275 # platforms (ab)use it in PIC code, but their linkers get confused if
10276 # the symbol is explicitly referenced. Since portable code cannot
10277 # rely on this symbol name, it's probably fine to never include it in
10278 # preloaded symbol tables.
10279 # Exclude shared library initialization/finalization symbols.
10280 extract_expsyms_cmds=
10282 case $host_os in
10283 cygwin* | mingw* | pw32* | cegcc*)
10284 # FIXME: the MSVC++ port hasn't been tested in a loooong time
10285 # When not using gcc, we currently assume that we are using
10286 # Microsoft Visual C++.
10287 if test "$GCC" != yes; then
10288 with_gnu_ld=no
10291 interix*)
10292 # we just hope/assume this is gcc and not c89 (= MSVC++)
10293 with_gnu_ld=yes
10295 openbsd*)
10296 with_gnu_ld=no
10298 esac
10300 ld_shlibs=yes
10302 # On some targets, GNU ld is compatible enough with the native linker
10303 # that we're better off using the native interface for both.
10304 lt_use_gnu_ld_interface=no
10305 if test "$with_gnu_ld" = yes; then
10306 case $host_os in
10307 aix*)
10308 # The AIX port of GNU ld has always aspired to compatibility
10309 # with the native linker. However, as the warning in the GNU ld
10310 # block says, versions before 2.19.5* couldn't really create working
10311 # shared libraries, regardless of the interface used.
10312 case `$LD -v 2>&1` in
10313 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
10314 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
10315 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
10317 lt_use_gnu_ld_interface=yes
10319 esac
10322 lt_use_gnu_ld_interface=yes
10324 esac
10327 if test "$lt_use_gnu_ld_interface" = yes; then
10328 # If archive_cmds runs LD, not CC, wlarc should be empty
10329 wlarc='${wl}'
10331 # Set some defaults for GNU ld with shared library support. These
10332 # are reset later if shared libraries are not supported. Putting them
10333 # here allows them to be overridden if necessary.
10334 runpath_var=LD_RUN_PATH
10335 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10336 export_dynamic_flag_spec='${wl}--export-dynamic'
10337 # ancient GNU ld didn't support --whole-archive et. al.
10338 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10339 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10340 else
10341 whole_archive_flag_spec=
10343 supports_anon_versioning=no
10344 case `$LD -v 2>&1` in
10345 *GNU\ gold*) supports_anon_versioning=yes ;;
10346 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10347 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10348 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10349 *\ 2.11.*) ;; # other 2.11 versions
10350 *) supports_anon_versioning=yes ;;
10351 esac
10353 # See if GNU ld supports shared libraries.
10354 case $host_os in
10355 aix[3-9]*)
10356 # On AIX/PPC, the GNU linker is very broken
10357 if test "$host_cpu" != ia64; then
10358 ld_shlibs=no
10359 cat <<_LT_EOF 1>&2
10361 *** Warning: the GNU linker, at least up to release 2.19, is reported
10362 *** to be unable to reliably create shared libraries on AIX.
10363 *** Therefore, libtool is disabling shared libraries support. If you
10364 *** really care for shared libraries, you may want to install binutils
10365 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10366 *** You will then need to restart the configuration process.
10368 _LT_EOF
10372 amigaos*)
10373 case $host_cpu in
10374 powerpc)
10375 # see comment about AmigaOS4 .so support
10376 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10377 archive_expsym_cmds=''
10379 m68k)
10380 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)'
10381 hardcode_libdir_flag_spec='-L$libdir'
10382 hardcode_minus_L=yes
10384 esac
10387 beos*)
10388 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10389 allow_undefined_flag=unsupported
10390 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10391 # support --undefined. This deserves some investigation. FIXME
10392 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10393 else
10394 ld_shlibs=no
10398 cygwin* | mingw* | pw32* | cegcc*)
10399 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10400 # as there is no search path for DLLs.
10401 hardcode_libdir_flag_spec='-L$libdir'
10402 export_dynamic_flag_spec='${wl}--export-all-symbols'
10403 allow_undefined_flag=unsupported
10404 always_export_symbols=no
10405 enable_shared_with_static_runtimes=yes
10406 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10408 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10409 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10410 # If the export-symbols file already is a .def file (1st line
10411 # is EXPORTS), use it as is; otherwise, prepend...
10412 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10413 cp $export_symbols $output_objdir/$soname.def;
10414 else
10415 echo EXPORTS > $output_objdir/$soname.def;
10416 cat $export_symbols >> $output_objdir/$soname.def;
10418 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10419 else
10420 ld_shlibs=no
10424 haiku*)
10425 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10426 link_all_deplibs=yes
10429 interix[3-9]*)
10430 hardcode_direct=no
10431 hardcode_shlibpath_var=no
10432 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10433 export_dynamic_flag_spec='${wl}-E'
10434 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10435 # Instead, shared libraries are loaded at an image base (0x10000000 by
10436 # default) and relocated if they conflict, which is a slow very memory
10437 # consuming and fragmenting process. To avoid this, we pick a random,
10438 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10439 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10440 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10441 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'
10444 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
10445 tmp_diet=no
10446 if test "$host_os" = linux-dietlibc; then
10447 case $cc_basename in
10448 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10449 esac
10451 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10452 && test "$tmp_diet" = no
10453 then
10454 tmp_addflag=' $pic_flag'
10455 tmp_sharedflag='-shared'
10456 case $cc_basename,$host_cpu in
10457 pgcc*) # Portland Group C compiler
10458 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'
10459 tmp_addflag=' $pic_flag'
10461 pgf77* | pgf90* | pgf95* | pgfortran*)
10462 # Portland Group f77 and f90 compilers
10463 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'
10464 tmp_addflag=' $pic_flag -Mnomain' ;;
10465 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10466 tmp_addflag=' -i_dynamic' ;;
10467 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10468 tmp_addflag=' -i_dynamic -nofor_main' ;;
10469 ifc* | ifort*) # Intel Fortran compiler
10470 tmp_addflag=' -nofor_main' ;;
10471 lf95*) # Lahey Fortran 8.1
10472 whole_archive_flag_spec=
10473 tmp_sharedflag='--shared' ;;
10474 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10475 tmp_sharedflag='-qmkshrobj'
10476 tmp_addflag= ;;
10477 nvcc*) # Cuda Compiler Driver 2.2
10478 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'
10479 compiler_needs_object=yes
10481 esac
10482 case `$CC -V 2>&1 | sed 5q` in
10483 *Sun\ C*) # Sun C 5.9
10484 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'
10485 compiler_needs_object=yes
10486 tmp_sharedflag='-G' ;;
10487 *Sun\ F*) # Sun Fortran 8.3
10488 tmp_sharedflag='-G' ;;
10489 esac
10490 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10492 if test "x$supports_anon_versioning" = xyes; then
10493 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10494 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10495 echo "local: *; };" >> $output_objdir/$libname.ver~
10496 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10499 case $cc_basename in
10500 xlf* | bgf* | bgxlf* | mpixlf*)
10501 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10502 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10503 hardcode_libdir_flag_spec=
10504 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10505 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10506 if test "x$supports_anon_versioning" = xyes; then
10507 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10508 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10509 echo "local: *; };" >> $output_objdir/$libname.ver~
10510 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10513 esac
10514 else
10515 ld_shlibs=no
10519 netbsd*)
10520 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10521 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10522 wlarc=
10523 else
10524 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10525 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10529 solaris*)
10530 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10531 ld_shlibs=no
10532 cat <<_LT_EOF 1>&2
10534 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10535 *** create shared libraries on Solaris systems. Therefore, libtool
10536 *** is disabling shared libraries support. We urge you to upgrade GNU
10537 *** binutils to release 2.9.1 or newer. Another option is to modify
10538 *** your PATH or compiler configuration so that the native linker is
10539 *** used, and then restart.
10541 _LT_EOF
10542 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10543 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10544 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10545 else
10546 ld_shlibs=no
10550 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10551 case `$LD -v 2>&1` in
10552 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10553 ld_shlibs=no
10554 cat <<_LT_EOF 1>&2
10556 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10557 *** reliably create shared libraries on SCO systems. Therefore, libtool
10558 *** is disabling shared libraries support. We urge you to upgrade GNU
10559 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10560 *** your PATH or compiler configuration so that the native linker is
10561 *** used, and then restart.
10563 _LT_EOF
10566 # For security reasons, it is highly recommended that you always
10567 # use absolute paths for naming shared libraries, and exclude the
10568 # DT_RUNPATH tag from executables and libraries. But doing so
10569 # requires that you compile everything twice, which is a pain.
10570 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10571 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10572 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10573 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10574 else
10575 ld_shlibs=no
10578 esac
10581 sunos4*)
10582 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10583 wlarc=
10584 hardcode_direct=yes
10585 hardcode_shlibpath_var=no
10589 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10590 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10591 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10592 else
10593 ld_shlibs=no
10596 esac
10598 if test "$ld_shlibs" = no; then
10599 runpath_var=
10600 hardcode_libdir_flag_spec=
10601 export_dynamic_flag_spec=
10602 whole_archive_flag_spec=
10604 else
10605 # PORTME fill in a description of your system's linker (not GNU ld)
10606 case $host_os in
10607 aix3*)
10608 allow_undefined_flag=unsupported
10609 always_export_symbols=yes
10610 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'
10611 # Note: this linker hardcodes the directories in LIBPATH if there
10612 # are no directories specified by -L.
10613 hardcode_minus_L=yes
10614 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10615 # Neither direct hardcoding nor static linking is supported with a
10616 # broken collect2.
10617 hardcode_direct=unsupported
10621 aix[4-9]*)
10622 if test "$host_cpu" = ia64; then
10623 # On IA64, the linker does run time linking by default, so we don't
10624 # have to do anything special.
10625 aix_use_runtimelinking=no
10626 exp_sym_flag='-Bexport'
10627 no_entry_flag=""
10628 else
10629 # If we're using GNU nm, then we don't want the "-C" option.
10630 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10631 # Also, AIX nm treats weak defined symbols like other global
10632 # defined symbols, whereas GNU nm marks them as "W".
10633 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10634 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'
10635 else
10636 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'
10638 aix_use_runtimelinking=no
10640 # Test if we are trying to use run time linking or normal
10641 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10642 # need to do runtime linking.
10643 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10644 for ld_flag in $LDFLAGS; do
10645 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10646 aix_use_runtimelinking=yes
10647 break
10649 done
10651 esac
10653 exp_sym_flag='-bexport'
10654 no_entry_flag='-bnoentry'
10657 # When large executables or shared objects are built, AIX ld can
10658 # have problems creating the table of contents. If linking a library
10659 # or program results in "error TOC overflow" add -mminimal-toc to
10660 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10661 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10663 archive_cmds=''
10664 hardcode_direct=yes
10665 hardcode_direct_absolute=yes
10666 hardcode_libdir_separator=':'
10667 link_all_deplibs=yes
10668 file_list_spec='${wl}-f,'
10670 if test "$GCC" = yes; then
10671 case $host_os in aix4.[012]|aix4.[012].*)
10672 # We only want to do this on AIX 4.2 and lower, the check
10673 # below for broken collect2 doesn't work under 4.3+
10674 collect2name=`${CC} -print-prog-name=collect2`
10675 if test -f "$collect2name" &&
10676 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10677 then
10678 # We have reworked collect2
10680 else
10681 # We have old collect2
10682 hardcode_direct=unsupported
10683 # It fails to find uninstalled libraries when the uninstalled
10684 # path is not listed in the libpath. Setting hardcode_minus_L
10685 # to unsupported forces relinking
10686 hardcode_minus_L=yes
10687 hardcode_libdir_flag_spec='-L$libdir'
10688 hardcode_libdir_separator=
10691 esac
10692 shared_flag='-shared'
10693 if test "$aix_use_runtimelinking" = yes; then
10694 shared_flag="$shared_flag "'${wl}-G'
10696 else
10697 # not using gcc
10698 if test "$host_cpu" = ia64; then
10699 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10700 # chokes on -Wl,-G. The following line is correct:
10701 shared_flag='-G'
10702 else
10703 if test "$aix_use_runtimelinking" = yes; then
10704 shared_flag='${wl}-G'
10705 else
10706 shared_flag='${wl}-bM:SRE'
10711 export_dynamic_flag_spec='${wl}-bexpall'
10712 # It seems that -bexpall does not export symbols beginning with
10713 # underscore (_), so it is better to generate a list of symbols to export.
10714 always_export_symbols=yes
10715 if test "$aix_use_runtimelinking" = yes; then
10716 # Warning - without using the other runtime loading flags (-brtl),
10717 # -berok will link without error, but may produce a broken library.
10718 allow_undefined_flag='-berok'
10719 # Determine the default libpath from the value encoded in an
10720 # empty executable.
10721 if test x$gcc_no_link = xyes; then
10722 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10725 /* end confdefs.h. */
10728 main ()
10732 return 0;
10734 _ACEOF
10735 if ac_fn_c_try_link "$LINENO"; then :
10737 lt_aix_libpath_sed='
10738 /Import File Strings/,/^$/ {
10739 /^0/ {
10740 s/^0 *\(.*\)$/\1/
10744 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10745 # Check for a 64-bit object if we didn't find anything.
10746 if test -z "$aix_libpath"; then
10747 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10750 rm -f core conftest.err conftest.$ac_objext \
10751 conftest$ac_exeext conftest.$ac_ext
10752 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10754 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10755 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"
10756 else
10757 if test "$host_cpu" = ia64; then
10758 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10759 allow_undefined_flag="-z nodefs"
10760 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"
10761 else
10762 # Determine the default libpath from the value encoded in an
10763 # empty executable.
10764 if test x$gcc_no_link = xyes; then
10765 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10768 /* end confdefs.h. */
10771 main ()
10775 return 0;
10777 _ACEOF
10778 if ac_fn_c_try_link "$LINENO"; then :
10780 lt_aix_libpath_sed='
10781 /Import File Strings/,/^$/ {
10782 /^0/ {
10783 s/^0 *\(.*\)$/\1/
10787 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10788 # Check for a 64-bit object if we didn't find anything.
10789 if test -z "$aix_libpath"; then
10790 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10793 rm -f core conftest.err conftest.$ac_objext \
10794 conftest$ac_exeext conftest.$ac_ext
10795 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10797 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10798 # Warning - without using the other run time loading flags,
10799 # -berok will link without error, but may produce a broken library.
10800 no_undefined_flag=' ${wl}-bernotok'
10801 allow_undefined_flag=' ${wl}-berok'
10802 if test "$with_gnu_ld" = yes; then
10803 # We only use this code for GNU lds that support --whole-archive.
10804 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10805 else
10806 # Exported symbols can be pulled into shared objects from archives
10807 whole_archive_flag_spec='$convenience'
10809 archive_cmds_need_lc=yes
10810 # This is similar to how AIX traditionally builds its shared libraries.
10811 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'
10816 amigaos*)
10817 case $host_cpu in
10818 powerpc)
10819 # see comment about AmigaOS4 .so support
10820 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10821 archive_expsym_cmds=''
10823 m68k)
10824 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)'
10825 hardcode_libdir_flag_spec='-L$libdir'
10826 hardcode_minus_L=yes
10828 esac
10831 bsdi[45]*)
10832 export_dynamic_flag_spec=-rdynamic
10835 cygwin* | mingw* | pw32* | cegcc*)
10836 # When not using gcc, we currently assume that we are using
10837 # Microsoft Visual C++.
10838 # hardcode_libdir_flag_spec is actually meaningless, as there is
10839 # no search path for DLLs.
10840 hardcode_libdir_flag_spec=' '
10841 allow_undefined_flag=unsupported
10842 # Tell ltmain to make .lib files, not .a files.
10843 libext=lib
10844 # Tell ltmain to make .dll files, not .so files.
10845 shrext_cmds=".dll"
10846 # FIXME: Setting linknames here is a bad hack.
10847 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10848 # The linker will automatically build a .lib file if we build a DLL.
10849 old_archive_from_new_cmds='true'
10850 # FIXME: Should let the user specify the lib program.
10851 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10852 fix_srcfile_path='`cygpath -w "$srcfile"`'
10853 enable_shared_with_static_runtimes=yes
10856 darwin* | rhapsody*)
10859 archive_cmds_need_lc=no
10860 hardcode_direct=no
10861 hardcode_automatic=yes
10862 hardcode_shlibpath_var=unsupported
10863 if test "$lt_cv_ld_force_load" = "yes"; then
10864 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\"`'
10865 else
10866 whole_archive_flag_spec=''
10868 link_all_deplibs=yes
10869 allow_undefined_flag="$_lt_dar_allow_undefined"
10870 case $cc_basename in
10871 ifort*) _lt_dar_can_shared=yes ;;
10872 *) _lt_dar_can_shared=$GCC ;;
10873 esac
10874 if test "$_lt_dar_can_shared" = "yes"; then
10875 output_verbose_link_cmd=func_echo_all
10876 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10877 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10878 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}"
10879 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}"
10881 else
10882 ld_shlibs=no
10887 dgux*)
10888 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10889 hardcode_libdir_flag_spec='-L$libdir'
10890 hardcode_shlibpath_var=no
10893 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10894 # support. Future versions do this automatically, but an explicit c++rt0.o
10895 # does not break anything, and helps significantly (at the cost of a little
10896 # extra space).
10897 freebsd2.2*)
10898 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10899 hardcode_libdir_flag_spec='-R$libdir'
10900 hardcode_direct=yes
10901 hardcode_shlibpath_var=no
10904 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10905 freebsd2.*)
10906 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10907 hardcode_direct=yes
10908 hardcode_minus_L=yes
10909 hardcode_shlibpath_var=no
10912 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10913 freebsd* | dragonfly*)
10914 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10915 hardcode_libdir_flag_spec='-R$libdir'
10916 hardcode_direct=yes
10917 hardcode_shlibpath_var=no
10920 hpux9*)
10921 if test "$GCC" = yes; then
10922 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'
10923 else
10924 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'
10926 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10927 hardcode_libdir_separator=:
10928 hardcode_direct=yes
10930 # hardcode_minus_L: Not really in the search PATH,
10931 # but as the default location of the library.
10932 hardcode_minus_L=yes
10933 export_dynamic_flag_spec='${wl}-E'
10936 hpux10*)
10937 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10938 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10939 else
10940 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10942 if test "$with_gnu_ld" = no; then
10943 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10944 hardcode_libdir_flag_spec_ld='+b $libdir'
10945 hardcode_libdir_separator=:
10946 hardcode_direct=yes
10947 hardcode_direct_absolute=yes
10948 export_dynamic_flag_spec='${wl}-E'
10949 # hardcode_minus_L: Not really in the search PATH,
10950 # but as the default location of the library.
10951 hardcode_minus_L=yes
10955 hpux11*)
10956 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10957 case $host_cpu in
10958 hppa*64*)
10959 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10961 ia64*)
10962 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10965 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10967 esac
10968 else
10969 case $host_cpu in
10970 hppa*64*)
10971 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10973 ia64*)
10974 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10978 # Older versions of the 11.00 compiler do not understand -b yet
10979 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10981 $as_echo_n "checking if $CC understands -b... " >&6; }
10982 if ${lt_cv_prog_compiler__b+:} false; then :
10983 $as_echo_n "(cached) " >&6
10984 else
10985 lt_cv_prog_compiler__b=no
10986 save_LDFLAGS="$LDFLAGS"
10987 LDFLAGS="$LDFLAGS -b"
10988 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10989 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10990 # The linker can only warn and ignore the option if not recognized
10991 # So say no if there are warnings
10992 if test -s conftest.err; then
10993 # Append any errors to the config.log.
10994 cat conftest.err 1>&5
10995 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10996 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10997 if diff conftest.exp conftest.er2 >/dev/null; then
10998 lt_cv_prog_compiler__b=yes
11000 else
11001 lt_cv_prog_compiler__b=yes
11004 $RM -r conftest*
11005 LDFLAGS="$save_LDFLAGS"
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
11009 $as_echo "$lt_cv_prog_compiler__b" >&6; }
11011 if test x"$lt_cv_prog_compiler__b" = xyes; then
11012 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
11013 else
11014 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
11018 esac
11020 if test "$with_gnu_ld" = no; then
11021 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
11022 hardcode_libdir_separator=:
11024 case $host_cpu in
11025 hppa*64*|ia64*)
11026 hardcode_direct=no
11027 hardcode_shlibpath_var=no
11030 hardcode_direct=yes
11031 hardcode_direct_absolute=yes
11032 export_dynamic_flag_spec='${wl}-E'
11034 # hardcode_minus_L: Not really in the search PATH,
11035 # but as the default location of the library.
11036 hardcode_minus_L=yes
11038 esac
11042 irix5* | irix6* | nonstopux*)
11043 if test "$GCC" = yes; then
11044 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'
11045 # Try to use the -exported_symbol ld option, if it does not
11046 # work, assume that -exports_file does not work either and
11047 # implicitly export all symbols.
11048 save_LDFLAGS="$LDFLAGS"
11049 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
11050 if test x$gcc_no_link = xyes; then
11051 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11054 /* end confdefs.h. */
11055 int foo(void) {}
11056 _ACEOF
11057 if ac_fn_c_try_link "$LINENO"; then :
11058 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'
11061 rm -f core conftest.err conftest.$ac_objext \
11062 conftest$ac_exeext conftest.$ac_ext
11063 LDFLAGS="$save_LDFLAGS"
11064 else
11065 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'
11066 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'
11068 archive_cmds_need_lc='no'
11069 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11070 hardcode_libdir_separator=:
11071 inherit_rpath=yes
11072 link_all_deplibs=yes
11075 netbsd*)
11076 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11077 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
11078 else
11079 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
11081 hardcode_libdir_flag_spec='-R$libdir'
11082 hardcode_direct=yes
11083 hardcode_shlibpath_var=no
11086 newsos6)
11087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11088 hardcode_direct=yes
11089 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11090 hardcode_libdir_separator=:
11091 hardcode_shlibpath_var=no
11094 *nto* | *qnx*)
11097 openbsd*)
11098 if test -f /usr/libexec/ld.so; then
11099 hardcode_direct=yes
11100 hardcode_shlibpath_var=no
11101 hardcode_direct_absolute=yes
11102 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11103 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11104 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
11105 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11106 export_dynamic_flag_spec='${wl}-E'
11107 else
11108 case $host_os in
11109 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
11110 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
11111 hardcode_libdir_flag_spec='-R$libdir'
11114 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
11115 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
11117 esac
11119 else
11120 ld_shlibs=no
11124 os2*)
11125 hardcode_libdir_flag_spec='-L$libdir'
11126 hardcode_minus_L=yes
11127 allow_undefined_flag=unsupported
11128 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'
11129 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
11132 osf3*)
11133 if test "$GCC" = yes; then
11134 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11135 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'
11136 else
11137 allow_undefined_flag=' -expect_unresolved \*'
11138 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'
11140 archive_cmds_need_lc='no'
11141 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11142 hardcode_libdir_separator=:
11145 osf4* | osf5*) # as osf3* with the addition of -msym flag
11146 if test "$GCC" = yes; then
11147 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
11148 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'
11149 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
11150 else
11151 allow_undefined_flag=' -expect_unresolved \*'
11152 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'
11153 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~
11154 $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'
11156 # Both c and cxx compiler support -rpath directly
11157 hardcode_libdir_flag_spec='-rpath $libdir'
11159 archive_cmds_need_lc='no'
11160 hardcode_libdir_separator=:
11163 solaris*)
11164 no_undefined_flag=' -z defs'
11165 if test "$GCC" = yes; then
11166 wlarc='${wl}'
11167 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
11168 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11169 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11170 else
11171 case `$CC -V 2>&1` in
11172 *"Compilers 5.0"*)
11173 wlarc=''
11174 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
11175 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11176 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
11179 wlarc='${wl}'
11180 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
11181 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
11182 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
11184 esac
11186 hardcode_libdir_flag_spec='-R$libdir'
11187 hardcode_shlibpath_var=no
11188 case $host_os in
11189 solaris2.[0-5] | solaris2.[0-5].*) ;;
11191 # The compiler driver will combine and reorder linker options,
11192 # but understands `-z linker_flag'. GCC discards it without `$wl',
11193 # but is careful enough not to reorder.
11194 # Supported since Solaris 2.6 (maybe 2.5.1?)
11195 if test "$GCC" = yes; then
11196 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
11197 else
11198 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
11201 esac
11202 link_all_deplibs=yes
11205 sunos4*)
11206 if test "x$host_vendor" = xsequent; then
11207 # Use $CC to link under sequent, because it throws in some extra .o
11208 # files that make .init and .fini sections work.
11209 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
11210 else
11211 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
11213 hardcode_libdir_flag_spec='-L$libdir'
11214 hardcode_direct=yes
11215 hardcode_minus_L=yes
11216 hardcode_shlibpath_var=no
11219 sysv4)
11220 case $host_vendor in
11221 sni)
11222 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11223 hardcode_direct=yes # is this really true???
11225 siemens)
11226 ## LD is ld it makes a PLAMLIB
11227 ## CC just makes a GrossModule.
11228 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
11229 reload_cmds='$CC -r -o $output$reload_objs'
11230 hardcode_direct=no
11232 motorola)
11233 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11234 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
11236 esac
11237 runpath_var='LD_RUN_PATH'
11238 hardcode_shlibpath_var=no
11241 sysv4.3*)
11242 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11243 hardcode_shlibpath_var=no
11244 export_dynamic_flag_spec='-Bexport'
11247 sysv4*MP*)
11248 if test -d /usr/nec; then
11249 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11250 hardcode_shlibpath_var=no
11251 runpath_var=LD_RUN_PATH
11252 hardcode_runpath_var=yes
11253 ld_shlibs=yes
11257 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
11258 no_undefined_flag='${wl}-z,text'
11259 archive_cmds_need_lc=no
11260 hardcode_shlibpath_var=no
11261 runpath_var='LD_RUN_PATH'
11263 if test "$GCC" = yes; then
11264 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11265 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11266 else
11267 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11268 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11272 sysv5* | sco3.2v5* | sco5v6*)
11273 # Note: We can NOT use -z defs as we might desire, because we do not
11274 # link with -lc, and that would cause any symbols used from libc to
11275 # always be unresolved, which means just about no library would
11276 # ever link correctly. If we're not using GNU ld we use -z text
11277 # though, which does catch some bad symbols but isn't as heavy-handed
11278 # as -z defs.
11279 no_undefined_flag='${wl}-z,text'
11280 allow_undefined_flag='${wl}-z,nodefs'
11281 archive_cmds_need_lc=no
11282 hardcode_shlibpath_var=no
11283 hardcode_libdir_flag_spec='${wl}-R,$libdir'
11284 hardcode_libdir_separator=':'
11285 link_all_deplibs=yes
11286 export_dynamic_flag_spec='${wl}-Bexport'
11287 runpath_var='LD_RUN_PATH'
11289 if test "$GCC" = yes; then
11290 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11291 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11292 else
11293 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11294 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
11298 uts4*)
11299 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
11300 hardcode_libdir_flag_spec='-L$libdir'
11301 hardcode_shlibpath_var=no
11305 ld_shlibs=no
11307 esac
11309 if test x$host_vendor = xsni; then
11310 case $host in
11311 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11312 export_dynamic_flag_spec='${wl}-Blargedynsym'
11314 esac
11318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
11319 $as_echo "$ld_shlibs" >&6; }
11320 test "$ld_shlibs" = no && can_build_shared=no
11322 with_gnu_ld=$with_gnu_ld
11339 # Do we need to explicitly link libc?
11341 case "x$archive_cmds_need_lc" in
11342 x|xyes)
11343 # Assume -lc should be added
11344 archive_cmds_need_lc=yes
11346 if test "$enable_shared" = yes && test "$GCC" = yes; then
11347 case $archive_cmds in
11348 *'~'*)
11349 # FIXME: we may have to deal with multi-command sequences.
11351 '$CC '*)
11352 # Test whether the compiler implicitly links with -lc since on some
11353 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11354 # to ld, don't add -lc before -lgcc.
11355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11356 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11357 if ${lt_cv_archive_cmds_need_lc+:} false; then :
11358 $as_echo_n "(cached) " >&6
11359 else
11360 $RM conftest*
11361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11363 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11364 (eval $ac_compile) 2>&5
11365 ac_status=$?
11366 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11367 test $ac_status = 0; } 2>conftest.err; then
11368 soname=conftest
11369 lib=conftest
11370 libobjs=conftest.$ac_objext
11371 deplibs=
11372 wl=$lt_prog_compiler_wl
11373 pic_flag=$lt_prog_compiler_pic
11374 compiler_flags=-v
11375 linker_flags=-v
11376 verstring=
11377 output_objdir=.
11378 libname=conftest
11379 lt_save_allow_undefined_flag=$allow_undefined_flag
11380 allow_undefined_flag=
11381 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11382 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11383 ac_status=$?
11384 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11385 test $ac_status = 0; }
11386 then
11387 lt_cv_archive_cmds_need_lc=no
11388 else
11389 lt_cv_archive_cmds_need_lc=yes
11391 allow_undefined_flag=$lt_save_allow_undefined_flag
11392 else
11393 cat conftest.err 1>&5
11395 $RM conftest*
11398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11399 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11400 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11402 esac
11405 esac
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11564 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11566 if test "$GCC" = yes; then
11567 case $host_os in
11568 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11569 *) lt_awk_arg="/^libraries:/" ;;
11570 esac
11571 case $host_os in
11572 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11573 *) lt_sed_strip_eq="s,=/,/,g" ;;
11574 esac
11575 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11576 case $lt_search_path_spec in
11577 *\;*)
11578 # if the path contains ";" then we assume it to be the separator
11579 # otherwise default to the standard path separator (i.e. ":") - it is
11580 # assumed that no part of a normal pathname contains ";" but that should
11581 # okay in the real world where ";" in dirpaths is itself problematic.
11582 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11585 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11587 esac
11588 # Ok, now we have the path, separated by spaces, we can step through it
11589 # and add multilib dir if necessary.
11590 lt_tmp_lt_search_path_spec=
11591 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11592 for lt_sys_path in $lt_search_path_spec; do
11593 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11594 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11595 else
11596 test -d "$lt_sys_path" && \
11597 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11599 done
11600 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11601 BEGIN {RS=" "; FS="/|\n";} {
11602 lt_foo="";
11603 lt_count=0;
11604 for (lt_i = NF; lt_i > 0; lt_i--) {
11605 if ($lt_i != "" && $lt_i != ".") {
11606 if ($lt_i == "..") {
11607 lt_count++;
11608 } else {
11609 if (lt_count == 0) {
11610 lt_foo="/" $lt_i lt_foo;
11611 } else {
11612 lt_count--;
11617 if (lt_foo != "") { lt_freq[lt_foo]++; }
11618 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11620 # AWK program above erroneously prepends '/' to C:/dos/paths
11621 # for these hosts.
11622 case $host_os in
11623 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11624 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11625 esac
11626 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11627 else
11628 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11630 library_names_spec=
11631 libname_spec='lib$name'
11632 soname_spec=
11633 shrext_cmds=".so"
11634 postinstall_cmds=
11635 postuninstall_cmds=
11636 finish_cmds=
11637 finish_eval=
11638 shlibpath_var=
11639 shlibpath_overrides_runpath=unknown
11640 version_type=none
11641 dynamic_linker="$host_os ld.so"
11642 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11643 need_lib_prefix=unknown
11644 hardcode_into_libs=no
11646 # when you set need_version to no, make sure it does not cause -set_version
11647 # flags to be left without arguments
11648 need_version=unknown
11650 case $host_os in
11651 aix3*)
11652 version_type=linux
11653 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11654 shlibpath_var=LIBPATH
11656 # AIX 3 has no versioning support, so we append a major version to the name.
11657 soname_spec='${libname}${release}${shared_ext}$major'
11660 aix[4-9]*)
11661 version_type=linux
11662 need_lib_prefix=no
11663 need_version=no
11664 hardcode_into_libs=yes
11665 if test "$host_cpu" = ia64; then
11666 # AIX 5 supports IA64
11667 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11668 shlibpath_var=LD_LIBRARY_PATH
11669 else
11670 # With GCC up to 2.95.x, collect2 would create an import file
11671 # for dependence libraries. The import file would start with
11672 # the line `#! .'. This would cause the generated library to
11673 # depend on `.', always an invalid library. This was fixed in
11674 # development snapshots of GCC prior to 3.0.
11675 case $host_os in
11676 aix4 | aix4.[01] | aix4.[01].*)
11677 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11678 echo ' yes '
11679 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11681 else
11682 can_build_shared=no
11685 esac
11686 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11687 # soname into executable. Probably we can add versioning support to
11688 # collect2, so additional links can be useful in future.
11689 if test "$aix_use_runtimelinking" = yes; then
11690 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11691 # instead of lib<name>.a to let people know that these are not
11692 # typical AIX shared libraries.
11693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11694 else
11695 # We preserve .a as extension for shared libraries through AIX4.2
11696 # and later when we are not doing run time linking.
11697 library_names_spec='${libname}${release}.a $libname.a'
11698 soname_spec='${libname}${release}${shared_ext}$major'
11700 shlibpath_var=LIBPATH
11704 amigaos*)
11705 case $host_cpu in
11706 powerpc)
11707 # Since July 2007 AmigaOS4 officially supports .so libraries.
11708 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11711 m68k)
11712 library_names_spec='$libname.ixlibrary $libname.a'
11713 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11714 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'
11716 esac
11719 beos*)
11720 library_names_spec='${libname}${shared_ext}'
11721 dynamic_linker="$host_os ld.so"
11722 shlibpath_var=LIBRARY_PATH
11725 bsdi[45]*)
11726 version_type=linux
11727 need_version=no
11728 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11729 soname_spec='${libname}${release}${shared_ext}$major'
11730 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11731 shlibpath_var=LD_LIBRARY_PATH
11732 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11733 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11734 # the default ld.so.conf also contains /usr/contrib/lib and
11735 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11736 # libtool to hard-code these into programs
11739 cygwin* | mingw* | pw32* | cegcc*)
11740 version_type=windows
11741 shrext_cmds=".dll"
11742 need_version=no
11743 need_lib_prefix=no
11745 case $GCC,$host_os in
11746 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11747 library_names_spec='$libname.dll.a'
11748 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11749 postinstall_cmds='base_file=`basename \${file}`~
11750 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11751 dldir=$destdir/`dirname \$dlpath`~
11752 test -d \$dldir || mkdir -p \$dldir~
11753 $install_prog $dir/$dlname \$dldir/$dlname~
11754 chmod a+x \$dldir/$dlname~
11755 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11756 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11758 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11759 dlpath=$dir/\$dldll~
11760 $RM \$dlpath'
11761 shlibpath_overrides_runpath=yes
11763 case $host_os in
11764 cygwin*)
11765 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11766 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11768 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11770 mingw* | cegcc*)
11771 # MinGW DLLs use traditional 'lib' prefix
11772 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11774 pw32*)
11775 # pw32 DLLs use 'pw' prefix rather than 'lib'
11776 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11778 esac
11782 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11784 esac
11785 dynamic_linker='Win32 ld.exe'
11786 # FIXME: first we should search . and the directory the executable is in
11787 shlibpath_var=PATH
11790 darwin* | rhapsody*)
11791 dynamic_linker="$host_os dyld"
11792 version_type=darwin
11793 need_lib_prefix=no
11794 need_version=no
11795 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11796 soname_spec='${libname}${release}${major}$shared_ext'
11797 shlibpath_overrides_runpath=yes
11798 shlibpath_var=DYLD_LIBRARY_PATH
11799 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11801 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11802 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11805 dgux*)
11806 version_type=linux
11807 need_lib_prefix=no
11808 need_version=no
11809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11810 soname_spec='${libname}${release}${shared_ext}$major'
11811 shlibpath_var=LD_LIBRARY_PATH
11814 freebsd* | dragonfly*)
11815 # DragonFly does not have aout. When/if they implement a new
11816 # versioning mechanism, adjust this.
11817 if test -x /usr/bin/objformat; then
11818 objformat=`/usr/bin/objformat`
11819 else
11820 case $host_os in
11821 freebsd[23].*) objformat=aout ;;
11822 *) objformat=elf ;;
11823 esac
11825 version_type=freebsd-$objformat
11826 case $version_type in
11827 freebsd-elf*)
11828 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11829 need_version=no
11830 need_lib_prefix=no
11832 freebsd-*)
11833 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11834 need_version=yes
11836 esac
11837 shlibpath_var=LD_LIBRARY_PATH
11838 case $host_os in
11839 freebsd2.*)
11840 shlibpath_overrides_runpath=yes
11842 freebsd3.[01]* | freebsdelf3.[01]*)
11843 shlibpath_overrides_runpath=yes
11844 hardcode_into_libs=yes
11846 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11847 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11848 shlibpath_overrides_runpath=no
11849 hardcode_into_libs=yes
11851 *) # from 4.6 on, and DragonFly
11852 shlibpath_overrides_runpath=yes
11853 hardcode_into_libs=yes
11855 esac
11858 haiku*)
11859 version_type=linux
11860 need_lib_prefix=no
11861 need_version=no
11862 dynamic_linker="$host_os runtime_loader"
11863 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11864 soname_spec='${libname}${release}${shared_ext}$major'
11865 shlibpath_var=LIBRARY_PATH
11866 shlibpath_overrides_runpath=yes
11867 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
11868 hardcode_into_libs=yes
11871 hpux9* | hpux10* | hpux11*)
11872 # Give a soname corresponding to the major version so that dld.sl refuses to
11873 # link against other versions.
11874 version_type=sunos
11875 need_lib_prefix=no
11876 need_version=no
11877 case $host_cpu in
11878 ia64*)
11879 shrext_cmds='.so'
11880 hardcode_into_libs=yes
11881 dynamic_linker="$host_os dld.so"
11882 shlibpath_var=LD_LIBRARY_PATH
11883 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11885 soname_spec='${libname}${release}${shared_ext}$major'
11886 if test "X$HPUX_IA64_MODE" = X32; then
11887 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11888 else
11889 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11891 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11893 hppa*64*)
11894 shrext_cmds='.sl'
11895 hardcode_into_libs=yes
11896 dynamic_linker="$host_os dld.sl"
11897 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11898 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11902 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11905 shrext_cmds='.sl'
11906 dynamic_linker="$host_os dld.sl"
11907 shlibpath_var=SHLIB_PATH
11908 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11909 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11910 soname_spec='${libname}${release}${shared_ext}$major'
11912 esac
11913 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11914 postinstall_cmds='chmod 555 $lib'
11915 # or fails outright, so override atomically:
11916 install_override_mode=555
11919 interix[3-9]*)
11920 version_type=linux
11921 need_lib_prefix=no
11922 need_version=no
11923 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11924 soname_spec='${libname}${release}${shared_ext}$major'
11925 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11926 shlibpath_var=LD_LIBRARY_PATH
11927 shlibpath_overrides_runpath=no
11928 hardcode_into_libs=yes
11931 irix5* | irix6* | nonstopux*)
11932 case $host_os in
11933 nonstopux*) version_type=nonstopux ;;
11935 if test "$lt_cv_prog_gnu_ld" = yes; then
11936 version_type=linux
11937 else
11938 version_type=irix
11939 fi ;;
11940 esac
11941 need_lib_prefix=no
11942 need_version=no
11943 soname_spec='${libname}${release}${shared_ext}$major'
11944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11945 case $host_os in
11946 irix5* | nonstopux*)
11947 libsuff= shlibsuff=
11950 case $LD in # libtool.m4 will add one of these switches to LD
11951 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11952 libsuff= shlibsuff= libmagic=32-bit;;
11953 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11954 libsuff=32 shlibsuff=N32 libmagic=N32;;
11955 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11956 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11957 *) libsuff= shlibsuff= libmagic=never-match;;
11958 esac
11960 esac
11961 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11962 shlibpath_overrides_runpath=no
11963 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11964 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11965 hardcode_into_libs=yes
11968 # No shared lib support for Linux oldld, aout, or coff.
11969 linux*oldld* | linux*aout* | linux*coff*)
11970 dynamic_linker=no
11973 # This must be Linux ELF.
11975 # uclinux* changes (here and below) have been submitted to the libtool
11976 # project, but have not yet been accepted: they are GCC-local changes
11977 # for the time being. (See
11978 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
11979 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
11980 version_type=linux
11981 need_lib_prefix=no
11982 need_version=no
11983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11984 soname_spec='${libname}${release}${shared_ext}$major'
11985 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11986 shlibpath_var=LD_LIBRARY_PATH
11987 shlibpath_overrides_runpath=no
11989 # Some binutils ld are patched to set DT_RUNPATH
11990 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
11991 $as_echo_n "(cached) " >&6
11992 else
11993 lt_cv_shlibpath_overrides_runpath=no
11994 save_LDFLAGS=$LDFLAGS
11995 save_libdir=$libdir
11996 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11997 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11998 if test x$gcc_no_link = xyes; then
11999 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12002 /* end confdefs.h. */
12005 main ()
12009 return 0;
12011 _ACEOF
12012 if ac_fn_c_try_link "$LINENO"; then :
12013 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
12014 lt_cv_shlibpath_overrides_runpath=yes
12017 rm -f core conftest.err conftest.$ac_objext \
12018 conftest$ac_exeext conftest.$ac_ext
12019 LDFLAGS=$save_LDFLAGS
12020 libdir=$save_libdir
12024 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
12026 # This implies no fast_install, which is unacceptable.
12027 # Some rework will be needed to allow for fast_install
12028 # before this can be enabled.
12029 hardcode_into_libs=yes
12031 # Append ld.so.conf contents to the search path
12032 if test -f /etc/ld.so.conf; then
12033 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' ' '`
12034 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
12037 # We used to test for /lib/ld.so.1 and disable shared libraries on
12038 # powerpc, because MkLinux only supported shared libraries with the
12039 # GNU dynamic linker. Since this was broken with cross compilers,
12040 # most powerpc-linux boxes support dynamic linking these days and
12041 # people can always --disable-shared, the test was removed, and we
12042 # assume the GNU/Linux dynamic linker is in use.
12043 dynamic_linker='GNU/Linux ld.so'
12046 netbsd*)
12047 version_type=sunos
12048 need_lib_prefix=no
12049 need_version=no
12050 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12051 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12052 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12053 dynamic_linker='NetBSD (a.out) ld.so'
12054 else
12055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
12056 soname_spec='${libname}${release}${shared_ext}$major'
12057 dynamic_linker='NetBSD ld.elf_so'
12059 shlibpath_var=LD_LIBRARY_PATH
12060 shlibpath_overrides_runpath=yes
12061 hardcode_into_libs=yes
12064 newsos6)
12065 version_type=linux
12066 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12067 shlibpath_var=LD_LIBRARY_PATH
12068 shlibpath_overrides_runpath=yes
12071 *nto* | *qnx*)
12072 version_type=qnx
12073 need_lib_prefix=no
12074 need_version=no
12075 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12076 soname_spec='${libname}${release}${shared_ext}$major'
12077 shlibpath_var=LD_LIBRARY_PATH
12078 shlibpath_overrides_runpath=no
12079 hardcode_into_libs=yes
12080 dynamic_linker='ldqnx.so'
12083 openbsd*)
12084 version_type=sunos
12085 sys_lib_dlsearch_path_spec="/usr/lib"
12086 need_lib_prefix=no
12087 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
12088 case $host_os in
12089 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
12090 *) need_version=no ;;
12091 esac
12092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12093 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
12094 shlibpath_var=LD_LIBRARY_PATH
12095 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12096 case $host_os in
12097 openbsd2.[89] | openbsd2.[89].*)
12098 shlibpath_overrides_runpath=no
12101 shlibpath_overrides_runpath=yes
12103 esac
12104 else
12105 shlibpath_overrides_runpath=yes
12109 os2*)
12110 libname_spec='$name'
12111 shrext_cmds=".dll"
12112 need_lib_prefix=no
12113 library_names_spec='$libname${shared_ext} $libname.a'
12114 dynamic_linker='OS/2 ld.exe'
12115 shlibpath_var=LIBPATH
12118 osf3* | osf4* | osf5*)
12119 version_type=osf
12120 need_lib_prefix=no
12121 need_version=no
12122 soname_spec='${libname}${release}${shared_ext}$major'
12123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12124 shlibpath_var=LD_LIBRARY_PATH
12125 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
12126 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
12129 rdos*)
12130 dynamic_linker=no
12133 solaris*)
12134 version_type=linux
12135 need_lib_prefix=no
12136 need_version=no
12137 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12138 soname_spec='${libname}${release}${shared_ext}$major'
12139 shlibpath_var=LD_LIBRARY_PATH
12140 shlibpath_overrides_runpath=yes
12141 hardcode_into_libs=yes
12142 # ldd complains unless libraries are executable
12143 postinstall_cmds='chmod +x $lib'
12146 sunos4*)
12147 version_type=sunos
12148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
12149 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
12150 shlibpath_var=LD_LIBRARY_PATH
12151 shlibpath_overrides_runpath=yes
12152 if test "$with_gnu_ld" = yes; then
12153 need_lib_prefix=no
12155 need_version=yes
12158 sysv4 | sysv4.3*)
12159 version_type=linux
12160 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12161 soname_spec='${libname}${release}${shared_ext}$major'
12162 shlibpath_var=LD_LIBRARY_PATH
12163 case $host_vendor in
12164 sni)
12165 shlibpath_overrides_runpath=no
12166 need_lib_prefix=no
12167 runpath_var=LD_RUN_PATH
12169 siemens)
12170 need_lib_prefix=no
12172 motorola)
12173 need_lib_prefix=no
12174 need_version=no
12175 shlibpath_overrides_runpath=no
12176 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
12178 esac
12181 sysv4*MP*)
12182 if test -d /usr/nec ;then
12183 version_type=linux
12184 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
12185 soname_spec='$libname${shared_ext}.$major'
12186 shlibpath_var=LD_LIBRARY_PATH
12190 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12191 version_type=freebsd-elf
12192 need_lib_prefix=no
12193 need_version=no
12194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
12195 soname_spec='${libname}${release}${shared_ext}$major'
12196 shlibpath_var=LD_LIBRARY_PATH
12197 shlibpath_overrides_runpath=yes
12198 hardcode_into_libs=yes
12199 if test "$with_gnu_ld" = yes; then
12200 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
12201 else
12202 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
12203 case $host_os in
12204 sco3.2v5*)
12205 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
12207 esac
12209 sys_lib_dlsearch_path_spec='/usr/lib'
12212 tpf*)
12213 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
12214 version_type=linux
12215 need_lib_prefix=no
12216 need_version=no
12217 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12218 shlibpath_var=LD_LIBRARY_PATH
12219 shlibpath_overrides_runpath=no
12220 hardcode_into_libs=yes
12223 uts4*)
12224 version_type=linux
12225 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12226 soname_spec='${libname}${release}${shared_ext}$major'
12227 shlibpath_var=LD_LIBRARY_PATH
12230 # Shared libraries for VwWorks, >= 7 only at this stage
12231 # and (fpic) still incompatible with "large" code models
12232 # in a few configurations. Only for RTP mode in any case,
12233 # and upon explicit request at configure time.
12234 vxworks7*)
12235 dynamic_linker=no
12236 case ${with_multisubdir}-${enable_shared} in
12237 *large*)
12239 *mrtp*-yes)
12240 version_type=linux
12241 need_lib_prefix=no
12242 need_version=no
12243 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
12244 soname_spec='${libname}${release}${shared_ext}$major'
12245 dynamic_linker="$host_os module_loader"
12247 esac
12250 dynamic_linker=no
12252 esac
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
12254 $as_echo "$dynamic_linker" >&6; }
12255 test "$dynamic_linker" = no && can_build_shared=no
12257 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12258 if test "$GCC" = yes; then
12259 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12262 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
12263 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
12265 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
12266 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12361 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12362 hardcode_action=
12363 if test -n "$hardcode_libdir_flag_spec" ||
12364 test -n "$runpath_var" ||
12365 test "X$hardcode_automatic" = "Xyes" ; then
12367 # We can hardcode non-existent directories.
12368 if test "$hardcode_direct" != no &&
12369 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12370 # have to relink, otherwise we might link with an installed library
12371 # when we should be linking with a yet-to-be-installed one
12372 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12373 test "$hardcode_minus_L" != no; then
12374 # Linking always hardcodes the temporary library directory.
12375 hardcode_action=relink
12376 else
12377 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12378 hardcode_action=immediate
12380 else
12381 # We cannot hardcode anything, or else we can only hardcode existing
12382 # directories.
12383 hardcode_action=unsupported
12385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12386 $as_echo "$hardcode_action" >&6; }
12388 if test "$hardcode_action" = relink ||
12389 test "$inherit_rpath" = yes; then
12390 # Fast installation is not supported
12391 enable_fast_install=no
12392 elif test "$shlibpath_overrides_runpath" = yes ||
12393 test "$enable_shared" = no; then
12394 # Fast installation is not necessary
12395 enable_fast_install=needless
12403 if test "x$enable_dlopen" != xyes; then
12404 enable_dlopen=unknown
12405 enable_dlopen_self=unknown
12406 enable_dlopen_self_static=unknown
12407 else
12408 lt_cv_dlopen=no
12409 lt_cv_dlopen_libs=
12411 case $host_os in
12412 beos*)
12413 lt_cv_dlopen="load_add_on"
12414 lt_cv_dlopen_libs=
12415 lt_cv_dlopen_self=yes
12418 mingw* | pw32* | cegcc*)
12419 lt_cv_dlopen="LoadLibrary"
12420 lt_cv_dlopen_libs=
12423 cygwin*)
12424 lt_cv_dlopen="dlopen"
12425 lt_cv_dlopen_libs=
12428 darwin*)
12429 # if libdl is installed we need to link against it
12430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12431 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12432 if ${ac_cv_lib_dl_dlopen+:} false; then :
12433 $as_echo_n "(cached) " >&6
12434 else
12435 ac_check_lib_save_LIBS=$LIBS
12436 LIBS="-ldl $LIBS"
12437 if test x$gcc_no_link = xyes; then
12438 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12441 /* end confdefs.h. */
12443 /* Override any GCC internal prototype to avoid an error.
12444 Use char because int might match the return type of a GCC
12445 builtin and then its argument prototype would still apply. */
12446 #ifdef __cplusplus
12447 extern "C"
12448 #endif
12449 char dlopen ();
12451 main ()
12453 return dlopen ();
12455 return 0;
12457 _ACEOF
12458 if ac_fn_c_try_link "$LINENO"; then :
12459 ac_cv_lib_dl_dlopen=yes
12460 else
12461 ac_cv_lib_dl_dlopen=no
12463 rm -f core conftest.err conftest.$ac_objext \
12464 conftest$ac_exeext conftest.$ac_ext
12465 LIBS=$ac_check_lib_save_LIBS
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12468 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12469 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12470 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12471 else
12473 lt_cv_dlopen="dyld"
12474 lt_cv_dlopen_libs=
12475 lt_cv_dlopen_self=yes
12482 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12483 if test "x$ac_cv_func_shl_load" = xyes; then :
12484 lt_cv_dlopen="shl_load"
12485 else
12486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12487 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12488 if ${ac_cv_lib_dld_shl_load+:} false; then :
12489 $as_echo_n "(cached) " >&6
12490 else
12491 ac_check_lib_save_LIBS=$LIBS
12492 LIBS="-ldld $LIBS"
12493 if test x$gcc_no_link = xyes; then
12494 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12497 /* end confdefs.h. */
12499 /* Override any GCC internal prototype to avoid an error.
12500 Use char because int might match the return type of a GCC
12501 builtin and then its argument prototype would still apply. */
12502 #ifdef __cplusplus
12503 extern "C"
12504 #endif
12505 char shl_load ();
12507 main ()
12509 return shl_load ();
12511 return 0;
12513 _ACEOF
12514 if ac_fn_c_try_link "$LINENO"; then :
12515 ac_cv_lib_dld_shl_load=yes
12516 else
12517 ac_cv_lib_dld_shl_load=no
12519 rm -f core conftest.err conftest.$ac_objext \
12520 conftest$ac_exeext conftest.$ac_ext
12521 LIBS=$ac_check_lib_save_LIBS
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12524 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12525 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12526 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12527 else
12528 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12529 if test "x$ac_cv_func_dlopen" = xyes; then :
12530 lt_cv_dlopen="dlopen"
12531 else
12532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12533 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12534 if ${ac_cv_lib_dl_dlopen+:} false; then :
12535 $as_echo_n "(cached) " >&6
12536 else
12537 ac_check_lib_save_LIBS=$LIBS
12538 LIBS="-ldl $LIBS"
12539 if test x$gcc_no_link = xyes; then
12540 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12543 /* end confdefs.h. */
12545 /* Override any GCC internal prototype to avoid an error.
12546 Use char because int might match the return type of a GCC
12547 builtin and then its argument prototype would still apply. */
12548 #ifdef __cplusplus
12549 extern "C"
12550 #endif
12551 char dlopen ();
12553 main ()
12555 return dlopen ();
12557 return 0;
12559 _ACEOF
12560 if ac_fn_c_try_link "$LINENO"; then :
12561 ac_cv_lib_dl_dlopen=yes
12562 else
12563 ac_cv_lib_dl_dlopen=no
12565 rm -f core conftest.err conftest.$ac_objext \
12566 conftest$ac_exeext conftest.$ac_ext
12567 LIBS=$ac_check_lib_save_LIBS
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12570 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12571 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12572 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12573 else
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12575 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12576 if ${ac_cv_lib_svld_dlopen+:} false; then :
12577 $as_echo_n "(cached) " >&6
12578 else
12579 ac_check_lib_save_LIBS=$LIBS
12580 LIBS="-lsvld $LIBS"
12581 if test x$gcc_no_link = xyes; then
12582 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12585 /* end confdefs.h. */
12587 /* Override any GCC internal prototype to avoid an error.
12588 Use char because int might match the return type of a GCC
12589 builtin and then its argument prototype would still apply. */
12590 #ifdef __cplusplus
12591 extern "C"
12592 #endif
12593 char dlopen ();
12595 main ()
12597 return dlopen ();
12599 return 0;
12601 _ACEOF
12602 if ac_fn_c_try_link "$LINENO"; then :
12603 ac_cv_lib_svld_dlopen=yes
12604 else
12605 ac_cv_lib_svld_dlopen=no
12607 rm -f core conftest.err conftest.$ac_objext \
12608 conftest$ac_exeext conftest.$ac_ext
12609 LIBS=$ac_check_lib_save_LIBS
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12612 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12613 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12614 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12615 else
12616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12617 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12618 if ${ac_cv_lib_dld_dld_link+:} false; then :
12619 $as_echo_n "(cached) " >&6
12620 else
12621 ac_check_lib_save_LIBS=$LIBS
12622 LIBS="-ldld $LIBS"
12623 if test x$gcc_no_link = xyes; then
12624 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12627 /* end confdefs.h. */
12629 /* Override any GCC internal prototype to avoid an error.
12630 Use char because int might match the return type of a GCC
12631 builtin and then its argument prototype would still apply. */
12632 #ifdef __cplusplus
12633 extern "C"
12634 #endif
12635 char dld_link ();
12637 main ()
12639 return dld_link ();
12641 return 0;
12643 _ACEOF
12644 if ac_fn_c_try_link "$LINENO"; then :
12645 ac_cv_lib_dld_dld_link=yes
12646 else
12647 ac_cv_lib_dld_dld_link=no
12649 rm -f core conftest.err conftest.$ac_objext \
12650 conftest$ac_exeext conftest.$ac_ext
12651 LIBS=$ac_check_lib_save_LIBS
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12654 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12655 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12656 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12675 esac
12677 if test "x$lt_cv_dlopen" != xno; then
12678 enable_dlopen=yes
12679 else
12680 enable_dlopen=no
12683 case $lt_cv_dlopen in
12684 dlopen)
12685 save_CPPFLAGS="$CPPFLAGS"
12686 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12688 save_LDFLAGS="$LDFLAGS"
12689 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12691 save_LIBS="$LIBS"
12692 LIBS="$lt_cv_dlopen_libs $LIBS"
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12695 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12696 if ${lt_cv_dlopen_self+:} false; then :
12697 $as_echo_n "(cached) " >&6
12698 else
12699 if test "$cross_compiling" = yes; then :
12700 lt_cv_dlopen_self=cross
12701 else
12702 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12703 lt_status=$lt_dlunknown
12704 cat > conftest.$ac_ext <<_LT_EOF
12705 #line 12705 "configure"
12706 #include "confdefs.h"
12708 #if HAVE_DLFCN_H
12709 #include <dlfcn.h>
12710 #endif
12712 #include <stdio.h>
12714 #ifdef RTLD_GLOBAL
12715 # define LT_DLGLOBAL RTLD_GLOBAL
12716 #else
12717 # ifdef DL_GLOBAL
12718 # define LT_DLGLOBAL DL_GLOBAL
12719 # else
12720 # define LT_DLGLOBAL 0
12721 # endif
12722 #endif
12724 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12725 find out it does not work in some platform. */
12726 #ifndef LT_DLLAZY_OR_NOW
12727 # ifdef RTLD_LAZY
12728 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12729 # else
12730 # ifdef DL_LAZY
12731 # define LT_DLLAZY_OR_NOW DL_LAZY
12732 # else
12733 # ifdef RTLD_NOW
12734 # define LT_DLLAZY_OR_NOW RTLD_NOW
12735 # else
12736 # ifdef DL_NOW
12737 # define LT_DLLAZY_OR_NOW DL_NOW
12738 # else
12739 # define LT_DLLAZY_OR_NOW 0
12740 # endif
12741 # endif
12742 # endif
12743 # endif
12744 #endif
12746 /* When -fvisbility=hidden is used, assume the code has been annotated
12747 correspondingly for the symbols needed. */
12748 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12749 void fnord () __attribute__((visibility("default")));
12750 #endif
12752 void fnord () { int i=42; }
12753 int main ()
12755 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12756 int status = $lt_dlunknown;
12758 if (self)
12760 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12761 else
12763 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12764 else puts (dlerror ());
12766 /* dlclose (self); */
12768 else
12769 puts (dlerror ());
12771 return status;
12773 _LT_EOF
12774 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12775 (eval $ac_link) 2>&5
12776 ac_status=$?
12777 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12778 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12779 (./conftest; exit; ) >&5 2>/dev/null
12780 lt_status=$?
12781 case x$lt_status in
12782 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12783 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12784 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12785 esac
12786 else :
12787 # compilation failed
12788 lt_cv_dlopen_self=no
12791 rm -fr conftest*
12795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12796 $as_echo "$lt_cv_dlopen_self" >&6; }
12798 if test "x$lt_cv_dlopen_self" = xyes; then
12799 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12801 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12802 if ${lt_cv_dlopen_self_static+:} false; then :
12803 $as_echo_n "(cached) " >&6
12804 else
12805 if test "$cross_compiling" = yes; then :
12806 lt_cv_dlopen_self_static=cross
12807 else
12808 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12809 lt_status=$lt_dlunknown
12810 cat > conftest.$ac_ext <<_LT_EOF
12811 #line 12811 "configure"
12812 #include "confdefs.h"
12814 #if HAVE_DLFCN_H
12815 #include <dlfcn.h>
12816 #endif
12818 #include <stdio.h>
12820 #ifdef RTLD_GLOBAL
12821 # define LT_DLGLOBAL RTLD_GLOBAL
12822 #else
12823 # ifdef DL_GLOBAL
12824 # define LT_DLGLOBAL DL_GLOBAL
12825 # else
12826 # define LT_DLGLOBAL 0
12827 # endif
12828 #endif
12830 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12831 find out it does not work in some platform. */
12832 #ifndef LT_DLLAZY_OR_NOW
12833 # ifdef RTLD_LAZY
12834 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12835 # else
12836 # ifdef DL_LAZY
12837 # define LT_DLLAZY_OR_NOW DL_LAZY
12838 # else
12839 # ifdef RTLD_NOW
12840 # define LT_DLLAZY_OR_NOW RTLD_NOW
12841 # else
12842 # ifdef DL_NOW
12843 # define LT_DLLAZY_OR_NOW DL_NOW
12844 # else
12845 # define LT_DLLAZY_OR_NOW 0
12846 # endif
12847 # endif
12848 # endif
12849 # endif
12850 #endif
12852 /* When -fvisbility=hidden is used, assume the code has been annotated
12853 correspondingly for the symbols needed. */
12854 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12855 void fnord () __attribute__((visibility("default")));
12856 #endif
12858 void fnord () { int i=42; }
12859 int main ()
12861 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12862 int status = $lt_dlunknown;
12864 if (self)
12866 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12867 else
12869 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12870 else puts (dlerror ());
12872 /* dlclose (self); */
12874 else
12875 puts (dlerror ());
12877 return status;
12879 _LT_EOF
12880 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12881 (eval $ac_link) 2>&5
12882 ac_status=$?
12883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12884 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12885 (./conftest; exit; ) >&5 2>/dev/null
12886 lt_status=$?
12887 case x$lt_status in
12888 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12889 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12890 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12891 esac
12892 else :
12893 # compilation failed
12894 lt_cv_dlopen_self_static=no
12897 rm -fr conftest*
12901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12902 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12905 CPPFLAGS="$save_CPPFLAGS"
12906 LDFLAGS="$save_LDFLAGS"
12907 LIBS="$save_LIBS"
12909 esac
12911 case $lt_cv_dlopen_self in
12912 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12913 *) enable_dlopen_self=unknown ;;
12914 esac
12916 case $lt_cv_dlopen_self_static in
12917 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12918 *) enable_dlopen_self_static=unknown ;;
12919 esac
12938 striplib=
12939 old_striplib=
12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12941 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12942 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12943 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12944 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12946 $as_echo "yes" >&6; }
12947 else
12948 # FIXME - insert some real tests, host_os isn't really good enough
12949 case $host_os in
12950 darwin*)
12951 if test -n "$STRIP" ; then
12952 striplib="$STRIP -x"
12953 old_striplib="$STRIP -S"
12954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12955 $as_echo "yes" >&6; }
12956 else
12957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12958 $as_echo "no" >&6; }
12962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12963 $as_echo "no" >&6; }
12965 esac
12979 # Report which library types will actually be built
12980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12981 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12983 $as_echo "$can_build_shared" >&6; }
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12986 $as_echo_n "checking whether to build shared libraries... " >&6; }
12987 test "$can_build_shared" = "no" && enable_shared=no
12989 # On AIX, shared libraries and static libraries use the same namespace, and
12990 # are all built from PIC.
12991 case $host_os in
12992 aix3*)
12993 test "$enable_shared" = yes && enable_static=no
12994 if test -n "$RANLIB"; then
12995 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12996 postinstall_cmds='$RANLIB $lib'
13000 aix[4-9]*)
13001 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13002 test "$enable_shared" = yes && enable_static=no
13005 esac
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13007 $as_echo "$enable_shared" >&6; }
13009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13010 $as_echo_n "checking whether to build static libraries... " >&6; }
13011 # Make sure either enable_shared or enable_static is yes.
13012 test "$enable_shared" = yes || enable_static=yes
13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13014 $as_echo "$enable_static" >&6; }
13020 ac_ext=c
13021 ac_cpp='$CPP $CPPFLAGS'
13022 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13023 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13024 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13026 CC="$lt_save_CC"
13028 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
13029 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
13030 (test "X$CXX" != "Xg++"))) ; then
13031 ac_ext=cpp
13032 ac_cpp='$CXXCPP $CPPFLAGS'
13033 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13034 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13035 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
13037 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
13038 if test -z "$CXXCPP"; then
13039 if ${ac_cv_prog_CXXCPP+:} false; then :
13040 $as_echo_n "(cached) " >&6
13041 else
13042 # Double quotes because CXXCPP needs to be expanded
13043 for CXXCPP in "$CXX -E" "/lib/cpp"
13045 ac_preproc_ok=false
13046 for ac_cxx_preproc_warn_flag in '' yes
13048 # Use a header file that comes with gcc, so configuring glibc
13049 # with a fresh cross-compiler works.
13050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13051 # <limits.h> exists even on freestanding compilers.
13052 # On the NeXT, cc -E runs the code through the compiler's parser,
13053 # not just through cpp. "Syntax error" is here to catch this case.
13054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13055 /* end confdefs.h. */
13056 #ifdef __STDC__
13057 # include <limits.h>
13058 #else
13059 # include <assert.h>
13060 #endif
13061 Syntax error
13062 _ACEOF
13063 if ac_fn_cxx_try_cpp "$LINENO"; then :
13065 else
13066 # Broken: fails on valid input.
13067 continue
13069 rm -f conftest.err conftest.i conftest.$ac_ext
13071 # OK, works on sane cases. Now check whether nonexistent headers
13072 # can be detected and how.
13073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13074 /* end confdefs.h. */
13075 #include <ac_nonexistent.h>
13076 _ACEOF
13077 if ac_fn_cxx_try_cpp "$LINENO"; then :
13078 # Broken: success on invalid input.
13079 continue
13080 else
13081 # Passes both tests.
13082 ac_preproc_ok=:
13083 break
13085 rm -f conftest.err conftest.i conftest.$ac_ext
13087 done
13088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13089 rm -f conftest.i conftest.err conftest.$ac_ext
13090 if $ac_preproc_ok; then :
13091 break
13094 done
13095 ac_cv_prog_CXXCPP=$CXXCPP
13098 CXXCPP=$ac_cv_prog_CXXCPP
13099 else
13100 ac_cv_prog_CXXCPP=$CXXCPP
13102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
13103 $as_echo "$CXXCPP" >&6; }
13104 ac_preproc_ok=false
13105 for ac_cxx_preproc_warn_flag in '' yes
13107 # Use a header file that comes with gcc, so configuring glibc
13108 # with a fresh cross-compiler works.
13109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13110 # <limits.h> exists even on freestanding compilers.
13111 # On the NeXT, cc -E runs the code through the compiler's parser,
13112 # not just through cpp. "Syntax error" is here to catch this case.
13113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13114 /* end confdefs.h. */
13115 #ifdef __STDC__
13116 # include <limits.h>
13117 #else
13118 # include <assert.h>
13119 #endif
13120 Syntax error
13121 _ACEOF
13122 if ac_fn_cxx_try_cpp "$LINENO"; then :
13124 else
13125 # Broken: fails on valid input.
13126 continue
13128 rm -f conftest.err conftest.i conftest.$ac_ext
13130 # OK, works on sane cases. Now check whether nonexistent headers
13131 # can be detected and how.
13132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13133 /* end confdefs.h. */
13134 #include <ac_nonexistent.h>
13135 _ACEOF
13136 if ac_fn_cxx_try_cpp "$LINENO"; then :
13137 # Broken: success on invalid input.
13138 continue
13139 else
13140 # Passes both tests.
13141 ac_preproc_ok=:
13142 break
13144 rm -f conftest.err conftest.i conftest.$ac_ext
13146 done
13147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
13148 rm -f conftest.i conftest.err conftest.$ac_ext
13149 if $ac_preproc_ok; then :
13151 else
13152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
13153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
13154 as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
13155 See \`config.log' for more details" "$LINENO" 5; }
13158 ac_ext=c
13159 ac_cpp='$CPP $CPPFLAGS'
13160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13164 else
13165 _lt_caught_CXX_error=yes
13168 ac_ext=cpp
13169 ac_cpp='$CXXCPP $CPPFLAGS'
13170 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13171 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13172 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
13174 archive_cmds_need_lc_CXX=no
13175 allow_undefined_flag_CXX=
13176 always_export_symbols_CXX=no
13177 archive_expsym_cmds_CXX=
13178 compiler_needs_object_CXX=no
13179 export_dynamic_flag_spec_CXX=
13180 hardcode_direct_CXX=no
13181 hardcode_direct_absolute_CXX=no
13182 hardcode_libdir_flag_spec_CXX=
13183 hardcode_libdir_flag_spec_ld_CXX=
13184 hardcode_libdir_separator_CXX=
13185 hardcode_minus_L_CXX=no
13186 hardcode_shlibpath_var_CXX=unsupported
13187 hardcode_automatic_CXX=no
13188 inherit_rpath_CXX=no
13189 module_cmds_CXX=
13190 module_expsym_cmds_CXX=
13191 link_all_deplibs_CXX=unknown
13192 old_archive_cmds_CXX=$old_archive_cmds
13193 reload_flag_CXX=$reload_flag
13194 reload_cmds_CXX=$reload_cmds
13195 no_undefined_flag_CXX=
13196 whole_archive_flag_spec_CXX=
13197 enable_shared_with_static_runtimes_CXX=no
13199 # Source file extension for C++ test sources.
13200 ac_ext=cpp
13202 # Object file extension for compiled C++ test sources.
13203 objext=o
13204 objext_CXX=$objext
13206 # No sense in running all these tests if we already determined that
13207 # the CXX compiler isn't working. Some variables (like enable_shared)
13208 # are currently assumed to apply to all compilers on this platform,
13209 # and will be corrupted by setting them based on a non-working compiler.
13210 if test "$_lt_caught_CXX_error" != yes; then
13211 # Code to be used in simple compile tests
13212 lt_simple_compile_test_code="int some_variable = 0;"
13214 # Code to be used in simple link tests
13215 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
13217 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13224 # If no C compiler was specified, use CC.
13225 LTCC=${LTCC-"$CC"}
13227 # If no C compiler flags were specified, use CFLAGS.
13228 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13230 # Allow CC to be a program name with arguments.
13231 compiler=$CC
13234 # save warnings/boilerplate of simple test code
13235 ac_outfile=conftest.$ac_objext
13236 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13237 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13238 _lt_compiler_boilerplate=`cat conftest.err`
13239 $RM conftest*
13241 ac_outfile=conftest.$ac_objext
13242 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13243 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13244 _lt_linker_boilerplate=`cat conftest.err`
13245 $RM -r conftest*
13248 # Allow CC to be a program name with arguments.
13249 lt_save_CC=$CC
13250 lt_save_LD=$LD
13251 lt_save_GCC=$GCC
13252 GCC=$GXX
13253 lt_save_with_gnu_ld=$with_gnu_ld
13254 lt_save_path_LD=$lt_cv_path_LD
13255 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
13256 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
13257 else
13258 $as_unset lt_cv_prog_gnu_ld
13260 if test -n "${lt_cv_path_LDCXX+set}"; then
13261 lt_cv_path_LD=$lt_cv_path_LDCXX
13262 else
13263 $as_unset lt_cv_path_LD
13265 test -z "${LDCXX+set}" || LD=$LDCXX
13266 CC=${CXX-"c++"}
13267 compiler=$CC
13268 compiler_CXX=$CC
13269 for cc_temp in $compiler""; do
13270 case $cc_temp in
13271 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13272 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13273 \-*) ;;
13274 *) break;;
13275 esac
13276 done
13277 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13280 if test -n "$compiler"; then
13281 # We don't want -fno-exception when compiling C++ code, so set the
13282 # no_builtin_flag separately
13283 if test "$GXX" = yes; then
13284 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
13285 else
13286 lt_prog_compiler_no_builtin_flag_CXX=
13289 if test "$GXX" = yes; then
13290 # Set up default GNU C++ configuration
13294 # Check whether --with-gnu-ld was given.
13295 if test "${with_gnu_ld+set}" = set; then :
13296 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
13297 else
13298 with_gnu_ld=no
13301 ac_prog=ld
13302 if test "$GCC" = yes; then
13303 # Check if gcc -print-prog-name=ld gives a path.
13304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
13305 $as_echo_n "checking for ld used by $CC... " >&6; }
13306 case $host in
13307 *-*-mingw*)
13308 # gcc leaves a trailing carriage return which upsets mingw
13309 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
13311 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
13312 esac
13313 case $ac_prog in
13314 # Accept absolute paths.
13315 [\\/]* | ?:[\\/]*)
13316 re_direlt='/[^/][^/]*/\.\./'
13317 # Canonicalize the pathname of ld
13318 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
13319 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
13320 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
13321 done
13322 test -z "$LD" && LD="$ac_prog"
13325 # If it fails, then pretend we aren't using GCC.
13326 ac_prog=ld
13329 # If it is relative, then search for the first ld in PATH.
13330 with_gnu_ld=unknown
13332 esac
13333 elif test "$with_gnu_ld" = yes; then
13334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
13335 $as_echo_n "checking for GNU ld... " >&6; }
13336 else
13337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
13338 $as_echo_n "checking for non-GNU ld... " >&6; }
13340 if ${lt_cv_path_LD+:} false; then :
13341 $as_echo_n "(cached) " >&6
13342 else
13343 if test -z "$LD"; then
13344 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
13345 for ac_dir in $PATH; do
13346 IFS="$lt_save_ifs"
13347 test -z "$ac_dir" && ac_dir=.
13348 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
13349 lt_cv_path_LD="$ac_dir/$ac_prog"
13350 # Check to see if the program is GNU ld. I'd rather use --version,
13351 # but apparently some variants of GNU ld only accept -v.
13352 # Break only if it was the GNU/non-GNU ld that we prefer.
13353 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
13354 *GNU* | *'with BFD'*)
13355 test "$with_gnu_ld" != no && break
13358 test "$with_gnu_ld" != yes && break
13360 esac
13362 done
13363 IFS="$lt_save_ifs"
13364 else
13365 lt_cv_path_LD="$LD" # Let the user override the test with a path.
13369 LD="$lt_cv_path_LD"
13370 if test -n "$LD"; then
13371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
13372 $as_echo "$LD" >&6; }
13373 else
13374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13375 $as_echo "no" >&6; }
13377 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
13378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
13379 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
13380 if ${lt_cv_prog_gnu_ld+:} false; then :
13381 $as_echo_n "(cached) " >&6
13382 else
13383 # I'd rather use --version here, but apparently some GNU lds only accept -v.
13384 case `$LD -v 2>&1 </dev/null` in
13385 *GNU* | *'with BFD'*)
13386 lt_cv_prog_gnu_ld=yes
13389 lt_cv_prog_gnu_ld=no
13391 esac
13393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
13394 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
13395 with_gnu_ld=$lt_cv_prog_gnu_ld
13403 # Check if GNU C++ uses GNU ld as the underlying linker, since the
13404 # archiving commands below assume that GNU ld is being used.
13405 if test "$with_gnu_ld" = yes; then
13406 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13407 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'
13409 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13410 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13412 # If archive_cmds runs LD, not CC, wlarc should be empty
13413 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
13414 # investigate it a little bit more. (MM)
13415 wlarc='${wl}'
13417 # ancient GNU ld didn't support --whole-archive et. al.
13418 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
13419 $GREP 'no-whole-archive' > /dev/null; then
13420 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13421 else
13422 whole_archive_flag_spec_CXX=
13424 else
13425 with_gnu_ld=no
13426 wlarc=
13428 # A generic and very simple default shared library creation
13429 # command for GNU C++ for the case where it uses the native
13430 # linker, instead of GNU ld. If possible, this setting should
13431 # overridden to take advantage of the native linker features on
13432 # the platform it is being used on.
13433 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
13436 # Commands to make compiler produce verbose output that lists
13437 # what "hidden" libraries, object files and flags are used when
13438 # linking a shared library.
13439 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
13441 else
13442 GXX=no
13443 with_gnu_ld=no
13444 wlarc=
13447 # PORTME: fill in a description of your system's C++ link characteristics
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13449 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13450 ld_shlibs_CXX=yes
13451 case $host_os in
13452 aix3*)
13453 # FIXME: insert proper C++ library support
13454 ld_shlibs_CXX=no
13456 aix[4-9]*)
13457 if test "$host_cpu" = ia64; then
13458 # On IA64, the linker does run time linking by default, so we don't
13459 # have to do anything special.
13460 aix_use_runtimelinking=no
13461 exp_sym_flag='-Bexport'
13462 no_entry_flag=""
13463 else
13464 aix_use_runtimelinking=no
13466 # Test if we are trying to use run time linking or normal
13467 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13468 # need to do runtime linking.
13469 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13470 for ld_flag in $LDFLAGS; do
13471 case $ld_flag in
13472 *-brtl*)
13473 aix_use_runtimelinking=yes
13474 break
13476 esac
13477 done
13479 esac
13481 exp_sym_flag='-bexport'
13482 no_entry_flag='-bnoentry'
13485 # When large executables or shared objects are built, AIX ld can
13486 # have problems creating the table of contents. If linking a library
13487 # or program results in "error TOC overflow" add -mminimal-toc to
13488 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13489 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13491 archive_cmds_CXX=''
13492 hardcode_direct_CXX=yes
13493 hardcode_direct_absolute_CXX=yes
13494 hardcode_libdir_separator_CXX=':'
13495 link_all_deplibs_CXX=yes
13496 file_list_spec_CXX='${wl}-f,'
13498 if test "$GXX" = yes; then
13499 case $host_os in aix4.[012]|aix4.[012].*)
13500 # We only want to do this on AIX 4.2 and lower, the check
13501 # below for broken collect2 doesn't work under 4.3+
13502 collect2name=`${CC} -print-prog-name=collect2`
13503 if test -f "$collect2name" &&
13504 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13505 then
13506 # We have reworked collect2
13508 else
13509 # We have old collect2
13510 hardcode_direct_CXX=unsupported
13511 # It fails to find uninstalled libraries when the uninstalled
13512 # path is not listed in the libpath. Setting hardcode_minus_L
13513 # to unsupported forces relinking
13514 hardcode_minus_L_CXX=yes
13515 hardcode_libdir_flag_spec_CXX='-L$libdir'
13516 hardcode_libdir_separator_CXX=
13518 esac
13519 shared_flag='-shared'
13520 if test "$aix_use_runtimelinking" = yes; then
13521 shared_flag="$shared_flag "'${wl}-G'
13523 else
13524 # not using gcc
13525 if test "$host_cpu" = ia64; then
13526 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13527 # chokes on -Wl,-G. The following line is correct:
13528 shared_flag='-G'
13529 else
13530 if test "$aix_use_runtimelinking" = yes; then
13531 shared_flag='${wl}-G'
13532 else
13533 shared_flag='${wl}-bM:SRE'
13538 export_dynamic_flag_spec_CXX='${wl}-bexpall'
13539 # It seems that -bexpall does not export symbols beginning with
13540 # underscore (_), so it is better to generate a list of symbols to
13541 # export.
13542 always_export_symbols_CXX=yes
13543 if test "$aix_use_runtimelinking" = yes; then
13544 # Warning - without using the other runtime loading flags (-brtl),
13545 # -berok will link without error, but may produce a broken library.
13546 allow_undefined_flag_CXX='-berok'
13547 # Determine the default libpath from the value encoded in an empty
13548 # executable.
13549 if test x$gcc_no_link = xyes; then
13550 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13553 /* end confdefs.h. */
13556 main ()
13560 return 0;
13562 _ACEOF
13563 if ac_fn_cxx_try_link "$LINENO"; then :
13565 lt_aix_libpath_sed='
13566 /Import File Strings/,/^$/ {
13567 /^0/ {
13568 s/^0 *\(.*\)$/\1/
13572 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13573 # Check for a 64-bit object if we didn't find anything.
13574 if test -z "$aix_libpath"; then
13575 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13578 rm -f core conftest.err conftest.$ac_objext \
13579 conftest$ac_exeext conftest.$ac_ext
13580 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13582 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13584 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"
13585 else
13586 if test "$host_cpu" = ia64; then
13587 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
13588 allow_undefined_flag_CXX="-z nodefs"
13589 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"
13590 else
13591 # Determine the default libpath from the value encoded in an
13592 # empty executable.
13593 if test x$gcc_no_link = xyes; then
13594 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
13596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13597 /* end confdefs.h. */
13600 main ()
13604 return 0;
13606 _ACEOF
13607 if ac_fn_cxx_try_link "$LINENO"; then :
13609 lt_aix_libpath_sed='
13610 /Import File Strings/,/^$/ {
13611 /^0/ {
13612 s/^0 *\(.*\)$/\1/
13616 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13617 # Check for a 64-bit object if we didn't find anything.
13618 if test -z "$aix_libpath"; then
13619 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13622 rm -f core conftest.err conftest.$ac_objext \
13623 conftest$ac_exeext conftest.$ac_ext
13624 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
13626 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
13627 # Warning - without using the other run time loading flags,
13628 # -berok will link without error, but may produce a broken library.
13629 no_undefined_flag_CXX=' ${wl}-bernotok'
13630 allow_undefined_flag_CXX=' ${wl}-berok'
13631 if test "$with_gnu_ld" = yes; then
13632 # We only use this code for GNU lds that support --whole-archive.
13633 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13634 else
13635 # Exported symbols can be pulled into shared objects from archives
13636 whole_archive_flag_spec_CXX='$convenience'
13638 archive_cmds_need_lc_CXX=yes
13639 # This is similar to how AIX traditionally builds its shared
13640 # libraries.
13641 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'
13646 beos*)
13647 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13648 allow_undefined_flag_CXX=unsupported
13649 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13650 # support --undefined. This deserves some investigation. FIXME
13651 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13652 else
13653 ld_shlibs_CXX=no
13657 chorus*)
13658 case $cc_basename in
13660 # FIXME: insert proper C++ library support
13661 ld_shlibs_CXX=no
13663 esac
13666 cygwin* | mingw* | pw32* | cegcc*)
13667 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
13668 # as there is no search path for DLLs.
13669 hardcode_libdir_flag_spec_CXX='-L$libdir'
13670 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
13671 allow_undefined_flag_CXX=unsupported
13672 always_export_symbols_CXX=no
13673 enable_shared_with_static_runtimes_CXX=yes
13675 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13676 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'
13677 # If the export-symbols file already is a .def file (1st line
13678 # is EXPORTS), use it as is; otherwise, prepend...
13679 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13680 cp $export_symbols $output_objdir/$soname.def;
13681 else
13682 echo EXPORTS > $output_objdir/$soname.def;
13683 cat $export_symbols >> $output_objdir/$soname.def;
13685 $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'
13686 else
13687 ld_shlibs_CXX=no
13690 darwin* | rhapsody*)
13693 archive_cmds_need_lc_CXX=no
13694 hardcode_direct_CXX=no
13695 hardcode_automatic_CXX=yes
13696 hardcode_shlibpath_var_CXX=unsupported
13697 if test "$lt_cv_ld_force_load" = "yes"; then
13698 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\"`'
13699 else
13700 whole_archive_flag_spec_CXX=''
13702 link_all_deplibs_CXX=yes
13703 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
13704 case $cc_basename in
13705 ifort*) _lt_dar_can_shared=yes ;;
13706 *) _lt_dar_can_shared=$GCC ;;
13707 esac
13708 if test "$_lt_dar_can_shared" = "yes"; then
13709 output_verbose_link_cmd=func_echo_all
13710 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}"
13711 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
13712 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}"
13713 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}"
13714 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
13715 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}"
13716 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}"
13719 else
13720 ld_shlibs_CXX=no
13725 dgux*)
13726 case $cc_basename in
13727 ec++*)
13728 # FIXME: insert proper C++ library support
13729 ld_shlibs_CXX=no
13731 ghcx*)
13732 # Green Hills C++ Compiler
13733 # FIXME: insert proper C++ library support
13734 ld_shlibs_CXX=no
13737 # FIXME: insert proper C++ library support
13738 ld_shlibs_CXX=no
13740 esac
13743 freebsd2.*)
13744 # C++ shared libraries reported to be fairly broken before
13745 # switch to ELF
13746 ld_shlibs_CXX=no
13749 freebsd-elf*)
13750 archive_cmds_need_lc_CXX=no
13753 freebsd* | dragonfly*)
13754 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
13755 # conventions
13756 ld_shlibs_CXX=yes
13759 gnu*)
13762 haiku*)
13763 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13764 link_all_deplibs_CXX=yes
13767 hpux9*)
13768 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13769 hardcode_libdir_separator_CXX=:
13770 export_dynamic_flag_spec_CXX='${wl}-E'
13771 hardcode_direct_CXX=yes
13772 hardcode_minus_L_CXX=yes # Not in the search PATH,
13773 # but as the default
13774 # location of the library.
13776 case $cc_basename in
13777 CC*)
13778 # FIXME: insert proper C++ library support
13779 ld_shlibs_CXX=no
13781 aCC*)
13782 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'
13783 # Commands to make compiler produce verbose output that lists
13784 # what "hidden" libraries, object files and flags are used when
13785 # linking a shared library.
13787 # There doesn't appear to be a way to prevent this compiler from
13788 # explicitly linking system object files so we need to strip them
13789 # from the output so that they don't get included in the library
13790 # dependencies.
13791 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"'
13794 if test "$GXX" = yes; then
13795 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'
13796 else
13797 # FIXME: insert proper C++ library support
13798 ld_shlibs_CXX=no
13801 esac
13804 hpux10*|hpux11*)
13805 if test $with_gnu_ld = no; then
13806 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
13807 hardcode_libdir_separator_CXX=:
13809 case $host_cpu in
13810 hppa*64*|ia64*)
13813 export_dynamic_flag_spec_CXX='${wl}-E'
13815 esac
13817 case $host_cpu in
13818 hppa*64*|ia64*)
13819 hardcode_direct_CXX=no
13820 hardcode_shlibpath_var_CXX=no
13823 hardcode_direct_CXX=yes
13824 hardcode_direct_absolute_CXX=yes
13825 hardcode_minus_L_CXX=yes # Not in the search PATH,
13826 # but as the default
13827 # location of the library.
13829 esac
13831 case $cc_basename in
13832 CC*)
13833 # FIXME: insert proper C++ library support
13834 ld_shlibs_CXX=no
13836 aCC*)
13837 case $host_cpu in
13838 hppa*64*)
13839 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13841 ia64*)
13842 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13845 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13847 esac
13848 # Commands to make compiler produce verbose output that lists
13849 # what "hidden" libraries, object files and flags are used when
13850 # linking a shared library.
13852 # There doesn't appear to be a way to prevent this compiler from
13853 # explicitly linking system object files so we need to strip them
13854 # from the output so that they don't get included in the library
13855 # dependencies.
13856 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"'
13859 if test "$GXX" = yes; then
13860 if test $with_gnu_ld = no; then
13861 case $host_cpu in
13862 hppa*64*)
13863 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13865 ia64*)
13866 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
13869 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'
13871 esac
13873 else
13874 # FIXME: insert proper C++ library support
13875 ld_shlibs_CXX=no
13878 esac
13881 interix[3-9]*)
13882 hardcode_direct_CXX=no
13883 hardcode_shlibpath_var_CXX=no
13884 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13885 export_dynamic_flag_spec_CXX='${wl}-E'
13886 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13887 # Instead, shared libraries are loaded at an image base (0x10000000 by
13888 # default) and relocated if they conflict, which is a slow very memory
13889 # consuming and fragmenting process. To avoid this, we pick a random,
13890 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13891 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13892 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'
13893 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'
13895 irix5* | irix6*)
13896 case $cc_basename in
13897 CC*)
13898 # SGI C++
13899 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'
13901 # Archives containing C++ object files must be created using
13902 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
13903 # necessary to make sure instantiated templates are included
13904 # in the archive.
13905 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
13908 if test "$GXX" = yes; then
13909 if test "$with_gnu_ld" = no; then
13910 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'
13911 else
13912 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'
13915 link_all_deplibs_CXX=yes
13917 esac
13918 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
13919 hardcode_libdir_separator_CXX=:
13920 inherit_rpath_CXX=yes
13923 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13924 case $cc_basename in
13925 KCC*)
13926 # Kuck and Associates, Inc. (KAI) C++ Compiler
13928 # KCC will only create a shared library if the output file
13929 # ends with ".so" (or ".sl" for HP-UX), so rename the library
13930 # to its proper name (with version) after linking.
13931 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'
13932 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'
13933 # Commands to make compiler produce verbose output that lists
13934 # what "hidden" libraries, object files and flags are used when
13935 # linking a shared library.
13937 # There doesn't appear to be a way to prevent this compiler from
13938 # explicitly linking system object files so we need to strip them
13939 # from the output so that they don't get included in the library
13940 # dependencies.
13941 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"'
13943 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13944 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13946 # Archives containing C++ object files must be created using
13947 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
13948 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
13950 icpc* | ecpc* )
13951 # Intel C++
13952 with_gnu_ld=yes
13953 # version 8.0 and above of icpc choke on multiply defined symbols
13954 # if we add $predep_objects and $postdep_objects, however 7.1 and
13955 # earlier do not add the objects themselves.
13956 case `$CC -V 2>&1` in
13957 *"Version 7."*)
13958 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
13959 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'
13961 *) # Version 8.0 or newer
13962 tmp_idyn=
13963 case $host_cpu in
13964 ia64*) tmp_idyn=' -i_dynamic';;
13965 esac
13966 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13967 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'
13969 esac
13970 archive_cmds_need_lc_CXX=no
13971 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
13972 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
13973 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
13975 pgCC* | pgcpp*)
13976 # Portland Group C++ compiler
13977 case `$CC -V` in
13978 *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
13979 prelink_cmds_CXX='tpldir=Template.dir~
13980 rm -rf $tpldir~
13981 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
13982 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
13983 old_archive_cmds_CXX='tpldir=Template.dir~
13984 rm -rf $tpldir~
13985 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
13986 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
13987 $RANLIB $oldlib'
13988 archive_cmds_CXX='tpldir=Template.dir~
13989 rm -rf $tpldir~
13990 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13991 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13992 archive_expsym_cmds_CXX='tpldir=Template.dir~
13993 rm -rf $tpldir~
13994 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
13995 $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'
13997 *) # Version 6 and above use weak symbols
13998 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
13999 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'
14001 esac
14003 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
14004 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14005 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'
14007 cxx*)
14008 # Compaq C++
14009 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
14010 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'
14012 runpath_var=LD_RUN_PATH
14013 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14014 hardcode_libdir_separator_CXX=:
14016 # Commands to make compiler produce verbose output that lists
14017 # what "hidden" libraries, object files and flags are used when
14018 # linking a shared library.
14020 # There doesn't appear to be a way to prevent this compiler from
14021 # explicitly linking system object files so we need to strip them
14022 # from the output so that they don't get included in the library
14023 # dependencies.
14024 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'
14026 xl* | mpixl* | bgxl*)
14027 # IBM XL 8.0 on PPC, with GNU ld
14028 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14029 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
14030 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14031 if test "x$supports_anon_versioning" = xyes; then
14032 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
14033 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14034 echo "local: *; };" >> $output_objdir/$libname.ver~
14035 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14039 case `$CC -V 2>&1 | sed 5q` in
14040 *Sun\ C*)
14041 # Sun C++ 5.9
14042 no_undefined_flag_CXX=' -zdefs'
14043 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14044 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'
14045 hardcode_libdir_flag_spec_CXX='-R$libdir'
14046 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'
14047 compiler_needs_object_CXX=yes
14049 # Not sure whether something based on
14050 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
14051 # would be better.
14052 output_verbose_link_cmd='func_echo_all'
14054 # Archives containing C++ object files must be created using
14055 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14056 # necessary to make sure instantiated templates are included
14057 # in the archive.
14058 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14060 esac
14062 esac
14065 lynxos*)
14066 # FIXME: insert proper C++ library support
14067 ld_shlibs_CXX=no
14070 m88k*)
14071 # FIXME: insert proper C++ library support
14072 ld_shlibs_CXX=no
14075 mvs*)
14076 case $cc_basename in
14077 cxx*)
14078 # FIXME: insert proper C++ library support
14079 ld_shlibs_CXX=no
14082 # FIXME: insert proper C++ library support
14083 ld_shlibs_CXX=no
14085 esac
14088 netbsd*)
14089 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14090 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
14091 wlarc=
14092 hardcode_libdir_flag_spec_CXX='-R$libdir'
14093 hardcode_direct_CXX=yes
14094 hardcode_shlibpath_var_CXX=no
14096 # Workaround some broken pre-1.5 toolchains
14097 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
14100 *nto* | *qnx*)
14101 ld_shlibs_CXX=yes
14104 openbsd2*)
14105 # C++ shared libraries are fairly broken
14106 ld_shlibs_CXX=no
14109 openbsd*)
14110 if test -f /usr/libexec/ld.so; then
14111 hardcode_direct_CXX=yes
14112 hardcode_shlibpath_var_CXX=no
14113 hardcode_direct_absolute_CXX=yes
14114 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
14115 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14116 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14117 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
14118 export_dynamic_flag_spec_CXX='${wl}-E'
14119 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
14121 output_verbose_link_cmd=func_echo_all
14122 else
14123 ld_shlibs_CXX=no
14127 osf3* | osf4* | osf5*)
14128 case $cc_basename in
14129 KCC*)
14130 # Kuck and Associates, Inc. (KAI) C++ Compiler
14132 # KCC will only create a shared library if the output file
14133 # ends with ".so" (or ".sl" for HP-UX), so rename the library
14134 # to its proper name (with version) after linking.
14135 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'
14137 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
14138 hardcode_libdir_separator_CXX=:
14140 # Archives containing C++ object files must be created using
14141 # the KAI C++ compiler.
14142 case $host in
14143 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
14144 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
14145 esac
14147 RCC*)
14148 # Rational C++ 2.4.1
14149 # FIXME: insert proper C++ library support
14150 ld_shlibs_CXX=no
14152 cxx*)
14153 case $host in
14154 osf3*)
14155 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14156 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'
14157 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14160 allow_undefined_flag_CXX=' -expect_unresolved \*'
14161 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'
14162 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
14163 echo "-hidden">> $lib.exp~
14164 $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~
14165 $RM $lib.exp'
14166 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
14168 esac
14170 hardcode_libdir_separator_CXX=:
14172 # Commands to make compiler produce verbose output that lists
14173 # what "hidden" libraries, object files and flags are used when
14174 # linking a shared library.
14176 # There doesn't appear to be a way to prevent this compiler from
14177 # explicitly linking system object files so we need to strip them
14178 # from the output so that they don't get included in the library
14179 # dependencies.
14180 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"'
14183 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14184 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
14185 case $host in
14186 osf3*)
14187 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'
14190 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'
14192 esac
14194 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
14195 hardcode_libdir_separator_CXX=:
14197 # Commands to make compiler produce verbose output that lists
14198 # what "hidden" libraries, object files and flags are used when
14199 # linking a shared library.
14200 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14202 else
14203 # FIXME: insert proper C++ library support
14204 ld_shlibs_CXX=no
14207 esac
14210 psos*)
14211 # FIXME: insert proper C++ library support
14212 ld_shlibs_CXX=no
14215 sunos4*)
14216 case $cc_basename in
14217 CC*)
14218 # Sun C++ 4.x
14219 # FIXME: insert proper C++ library support
14220 ld_shlibs_CXX=no
14222 lcc*)
14223 # Lucid
14224 # FIXME: insert proper C++ library support
14225 ld_shlibs_CXX=no
14228 # FIXME: insert proper C++ library support
14229 ld_shlibs_CXX=no
14231 esac
14234 solaris*)
14235 case $cc_basename in
14236 CC*)
14237 # Sun C++ 4.2, 5.x and Centerline C++
14238 archive_cmds_need_lc_CXX=yes
14239 no_undefined_flag_CXX=' -zdefs'
14240 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
14241 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14242 $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'
14244 hardcode_libdir_flag_spec_CXX='-R$libdir'
14245 hardcode_shlibpath_var_CXX=no
14246 case $host_os in
14247 solaris2.[0-5] | solaris2.[0-5].*) ;;
14249 # The compiler driver will combine and reorder linker options,
14250 # but understands `-z linker_flag'.
14251 # Supported since Solaris 2.6 (maybe 2.5.1?)
14252 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
14254 esac
14255 link_all_deplibs_CXX=yes
14257 output_verbose_link_cmd='func_echo_all'
14259 # Archives containing C++ object files must be created using
14260 # "CC -xar", where "CC" is the Sun C++ compiler. This is
14261 # necessary to make sure instantiated templates are included
14262 # in the archive.
14263 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
14265 gcx*)
14266 # Green Hills C++ Compiler
14267 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14269 # The C++ compiler must be used to create the archive.
14270 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
14273 # GNU C++ compiler with Solaris linker
14274 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
14275 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
14276 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
14277 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14278 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14279 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14281 # Commands to make compiler produce verbose output that lists
14282 # what "hidden" libraries, object files and flags are used when
14283 # linking a shared library.
14284 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14285 else
14286 # g++ 2.7 appears to require `-G' NOT `-shared' on this
14287 # platform.
14288 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
14289 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14290 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
14292 # Commands to make compiler produce verbose output that lists
14293 # what "hidden" libraries, object files and flags are used when
14294 # linking a shared library.
14295 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
14298 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
14299 case $host_os in
14300 solaris2.[0-5] | solaris2.[0-5].*) ;;
14302 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14304 esac
14307 esac
14310 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14311 no_undefined_flag_CXX='${wl}-z,text'
14312 archive_cmds_need_lc_CXX=no
14313 hardcode_shlibpath_var_CXX=no
14314 runpath_var='LD_RUN_PATH'
14316 case $cc_basename in
14317 CC*)
14318 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14319 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14322 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14323 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14325 esac
14328 sysv5* | sco3.2v5* | sco5v6*)
14329 # Note: We can NOT use -z defs as we might desire, because we do not
14330 # link with -lc, and that would cause any symbols used from libc to
14331 # always be unresolved, which means just about no library would
14332 # ever link correctly. If we're not using GNU ld we use -z text
14333 # though, which does catch some bad symbols but isn't as heavy-handed
14334 # as -z defs.
14335 no_undefined_flag_CXX='${wl}-z,text'
14336 allow_undefined_flag_CXX='${wl}-z,nodefs'
14337 archive_cmds_need_lc_CXX=no
14338 hardcode_shlibpath_var_CXX=no
14339 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
14340 hardcode_libdir_separator_CXX=':'
14341 link_all_deplibs_CXX=yes
14342 export_dynamic_flag_spec_CXX='${wl}-Bexport'
14343 runpath_var='LD_RUN_PATH'
14345 case $cc_basename in
14346 CC*)
14347 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14348 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14349 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
14350 '"$old_archive_cmds_CXX"
14351 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
14352 '"$reload_cmds_CXX"
14355 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14356 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14358 esac
14361 tandem*)
14362 case $cc_basename in
14363 NCC*)
14364 # NonStop-UX NCC 3.20
14365 # FIXME: insert proper C++ library support
14366 ld_shlibs_CXX=no
14369 # FIXME: insert proper C++ library support
14370 ld_shlibs_CXX=no
14372 esac
14375 vxworks*)
14376 # For VxWorks ports, we assume the use of a GNU linker with
14377 # standard elf conventions.
14378 ld_shlibs_CXX=yes
14382 # FIXME: insert proper C++ library support
14383 ld_shlibs_CXX=no
14385 esac
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
14388 $as_echo "$ld_shlibs_CXX" >&6; }
14389 test "$ld_shlibs_CXX" = no && can_build_shared=no
14391 GCC_CXX="$GXX"
14392 LD_CXX="$LD"
14394 ## CAVEAT EMPTOR:
14395 ## There is no encapsulation within the following macros, do not change
14396 ## the running order or otherwise move them around unless you know exactly
14397 ## what you are doing...
14398 # Dependencies to place before and after the object being linked:
14399 predep_objects_CXX=
14400 postdep_objects_CXX=
14401 predeps_CXX=
14402 postdeps_CXX=
14403 compiler_lib_search_path_CXX=
14405 cat > conftest.$ac_ext <<_LT_EOF
14406 class Foo
14408 public:
14409 Foo (void) { a = 0; }
14410 private:
14411 int a;
14413 _LT_EOF
14415 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14416 (eval $ac_compile) 2>&5
14417 ac_status=$?
14418 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14419 test $ac_status = 0; }; then
14420 # Parse the compiler output and extract the necessary
14421 # objects, libraries and library flags.
14423 # Sentinel used to keep track of whether or not we are before
14424 # the conftest object file.
14425 pre_test_object_deps_done=no
14427 for p in `eval "$output_verbose_link_cmd"`; do
14428 case $p in
14430 -L* | -R* | -l*)
14431 # Some compilers place space between "-{L,R}" and the path.
14432 # Remove the space.
14433 if test $p = "-L" ||
14434 test $p = "-R"; then
14435 prev=$p
14436 continue
14437 else
14438 prev=
14441 if test "$pre_test_object_deps_done" = no; then
14442 case $p in
14443 -L* | -R*)
14444 # Internal compiler library paths should come after those
14445 # provided the user. The postdeps already come after the
14446 # user supplied libs so there is no need to process them.
14447 if test -z "$compiler_lib_search_path_CXX"; then
14448 compiler_lib_search_path_CXX="${prev}${p}"
14449 else
14450 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
14453 # The "-l" case would never come before the object being
14454 # linked, so don't bother handling this case.
14455 esac
14456 else
14457 if test -z "$postdeps_CXX"; then
14458 postdeps_CXX="${prev}${p}"
14459 else
14460 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
14465 *.$objext)
14466 # This assumes that the test object file only shows up
14467 # once in the compiler output.
14468 if test "$p" = "conftest.$objext"; then
14469 pre_test_object_deps_done=yes
14470 continue
14473 if test "$pre_test_object_deps_done" = no; then
14474 if test -z "$predep_objects_CXX"; then
14475 predep_objects_CXX="$p"
14476 else
14477 predep_objects_CXX="$predep_objects_CXX $p"
14479 else
14480 if test -z "$postdep_objects_CXX"; then
14481 postdep_objects_CXX="$p"
14482 else
14483 postdep_objects_CXX="$postdep_objects_CXX $p"
14488 *) ;; # Ignore the rest.
14490 esac
14491 done
14493 # Clean up.
14494 rm -f a.out a.exe
14495 else
14496 echo "libtool.m4: error: problem compiling CXX test program"
14499 $RM -f confest.$objext
14501 # PORTME: override above test on systems where it is broken
14502 case $host_os in
14503 interix[3-9]*)
14504 # Interix 3.5 installs completely hosed .la files for C++, so rather than
14505 # hack all around it, let's just trust "g++" to DTRT.
14506 predep_objects_CXX=
14507 postdep_objects_CXX=
14508 postdeps_CXX=
14511 linux*)
14512 case `$CC -V 2>&1 | sed 5q` in
14513 *Sun\ C*)
14514 # Sun C++ 5.9
14516 # The more standards-conforming stlport4 library is
14517 # incompatible with the Cstd library. Avoid specifying
14518 # it if it's in CXXFLAGS. Ignore libCrun as
14519 # -library=stlport4 depends on it.
14520 case " $CXX $CXXFLAGS " in
14521 *" -library=stlport4 "*)
14522 solaris_use_stlport4=yes
14524 esac
14526 if test "$solaris_use_stlport4" != yes; then
14527 postdeps_CXX='-library=Cstd -library=Crun'
14530 esac
14533 solaris*)
14534 case $cc_basename in
14535 CC*)
14536 # The more standards-conforming stlport4 library is
14537 # incompatible with the Cstd library. Avoid specifying
14538 # it if it's in CXXFLAGS. Ignore libCrun as
14539 # -library=stlport4 depends on it.
14540 case " $CXX $CXXFLAGS " in
14541 *" -library=stlport4 "*)
14542 solaris_use_stlport4=yes
14544 esac
14546 # Adding this requires a known-good setup of shared libraries for
14547 # Sun compiler versions before 5.6, else PIC objects from an old
14548 # archive will be linked into the output, leading to subtle bugs.
14549 if test "$solaris_use_stlport4" != yes; then
14550 postdeps_CXX='-library=Cstd -library=Crun'
14553 esac
14555 esac
14558 case " $postdeps_CXX " in
14559 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
14560 esac
14561 compiler_lib_search_dirs_CXX=
14562 if test -n "${compiler_lib_search_path_CXX}"; then
14563 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
14596 lt_prog_compiler_wl_CXX=
14597 lt_prog_compiler_pic_CXX=
14598 lt_prog_compiler_static_CXX=
14600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
14601 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
14603 # C++ specific cases for pic, static, wl, etc.
14604 if test "$GXX" = yes; then
14605 lt_prog_compiler_wl_CXX='-Wl,'
14606 lt_prog_compiler_static_CXX='-static'
14608 case $host_os in
14609 aix*)
14610 # All AIX code is PIC.
14611 if test "$host_cpu" = ia64; then
14612 # AIX 5 now supports IA64 processor
14613 lt_prog_compiler_static_CXX='-Bstatic'
14615 lt_prog_compiler_pic_CXX='-fPIC'
14618 amigaos*)
14619 case $host_cpu in
14620 powerpc)
14621 # see comment about AmigaOS4 .so support
14622 lt_prog_compiler_pic_CXX='-fPIC'
14624 m68k)
14625 # FIXME: we need at least 68020 code to build shared libraries, but
14626 # adding the `-m68020' flag to GCC prevents building anything better,
14627 # like `-m68040'.
14628 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
14630 esac
14633 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
14634 # PIC is the default for these OSes.
14636 mingw* | cygwin* | os2* | pw32* | cegcc*)
14637 # This hack is so that the source file can tell whether it is being
14638 # built for inclusion in a dll (and should export symbols for example).
14639 # Although the cygwin gcc ignores -fPIC, still need this for old-style
14640 # (--disable-auto-import) libraries
14641 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
14643 darwin* | rhapsody*)
14644 # PIC is the default on this platform
14645 # Common symbols not allowed in MH_DYLIB files
14646 lt_prog_compiler_pic_CXX='-fno-common'
14648 *djgpp*)
14649 # DJGPP does not support shared libraries at all
14650 lt_prog_compiler_pic_CXX=
14652 haiku*)
14653 # PIC is the default for Haiku.
14654 # The "-static" flag exists, but is broken.
14655 lt_prog_compiler_static_CXX=
14657 interix[3-9]*)
14658 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
14659 # Instead, we relocate shared libraries at runtime.
14661 sysv4*MP*)
14662 if test -d /usr/nec; then
14663 lt_prog_compiler_pic_CXX=-Kconform_pic
14666 hpux*)
14667 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
14668 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
14669 # sets the default TLS model and affects inlining.
14670 case $host_cpu in
14671 hppa*64*)
14674 lt_prog_compiler_pic_CXX='-fPIC'
14676 esac
14678 *qnx* | *nto*)
14679 # QNX uses GNU C++, but need to define -shared option too, otherwise
14680 # it will coredump.
14681 lt_prog_compiler_pic_CXX='-fPIC -shared'
14684 lt_prog_compiler_pic_CXX='-fPIC'
14686 esac
14687 else
14688 case $host_os in
14689 aix[4-9]*)
14690 # All AIX code is PIC.
14691 if test "$host_cpu" = ia64; then
14692 # AIX 5 now supports IA64 processor
14693 lt_prog_compiler_static_CXX='-Bstatic'
14694 else
14695 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
14698 chorus*)
14699 case $cc_basename in
14700 cxch68*)
14701 # Green Hills C++ Compiler
14702 # _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"
14704 esac
14706 dgux*)
14707 case $cc_basename in
14708 ec++*)
14709 lt_prog_compiler_pic_CXX='-KPIC'
14711 ghcx*)
14712 # Green Hills C++ Compiler
14713 lt_prog_compiler_pic_CXX='-pic'
14717 esac
14719 freebsd* | dragonfly*)
14720 # FreeBSD uses GNU C++
14722 hpux9* | hpux10* | hpux11*)
14723 case $cc_basename in
14724 CC*)
14725 lt_prog_compiler_wl_CXX='-Wl,'
14726 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14727 if test "$host_cpu" != ia64; then
14728 lt_prog_compiler_pic_CXX='+Z'
14731 aCC*)
14732 lt_prog_compiler_wl_CXX='-Wl,'
14733 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
14734 case $host_cpu in
14735 hppa*64*|ia64*)
14736 # +Z the default
14739 lt_prog_compiler_pic_CXX='+Z'
14741 esac
14745 esac
14747 interix*)
14748 # This is c89, which is MS Visual C++ (no shared libs)
14749 # Anyone wants to do a port?
14751 irix5* | irix6* | nonstopux*)
14752 case $cc_basename in
14753 CC*)
14754 lt_prog_compiler_wl_CXX='-Wl,'
14755 lt_prog_compiler_static_CXX='-non_shared'
14756 # CC pic flag -KPIC is the default.
14760 esac
14762 linux* | k*bsd*-gnu | kopensolaris*-gnu)
14763 case $cc_basename in
14764 KCC*)
14765 # KAI C++ Compiler
14766 lt_prog_compiler_wl_CXX='--backend -Wl,'
14767 lt_prog_compiler_pic_CXX='-fPIC'
14769 ecpc* )
14770 # old Intel C++ for x86_64 which still supported -KPIC.
14771 lt_prog_compiler_wl_CXX='-Wl,'
14772 lt_prog_compiler_pic_CXX='-KPIC'
14773 lt_prog_compiler_static_CXX='-static'
14775 icpc* )
14776 # Intel C++, used to be incompatible with GCC.
14777 # ICC 10 doesn't accept -KPIC any more.
14778 lt_prog_compiler_wl_CXX='-Wl,'
14779 lt_prog_compiler_pic_CXX='-fPIC'
14780 lt_prog_compiler_static_CXX='-static'
14782 pgCC* | pgcpp*)
14783 # Portland Group C++ compiler
14784 lt_prog_compiler_wl_CXX='-Wl,'
14785 lt_prog_compiler_pic_CXX='-fpic'
14786 lt_prog_compiler_static_CXX='-Bstatic'
14788 cxx*)
14789 # Compaq C++
14790 # Make sure the PIC flag is empty. It appears that all Alpha
14791 # Linux and Compaq Tru64 Unix objects are PIC.
14792 lt_prog_compiler_pic_CXX=
14793 lt_prog_compiler_static_CXX='-non_shared'
14795 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
14796 # IBM XL 8.0, 9.0 on PPC and BlueGene
14797 lt_prog_compiler_wl_CXX='-Wl,'
14798 lt_prog_compiler_pic_CXX='-qpic'
14799 lt_prog_compiler_static_CXX='-qstaticlink'
14802 case `$CC -V 2>&1 | sed 5q` in
14803 *Sun\ C*)
14804 # Sun C++ 5.9
14805 lt_prog_compiler_pic_CXX='-KPIC'
14806 lt_prog_compiler_static_CXX='-Bstatic'
14807 lt_prog_compiler_wl_CXX='-Qoption ld '
14809 esac
14811 esac
14813 lynxos*)
14815 m88k*)
14817 mvs*)
14818 case $cc_basename in
14819 cxx*)
14820 lt_prog_compiler_pic_CXX='-W c,exportall'
14824 esac
14826 netbsd*)
14828 *qnx* | *nto*)
14829 # QNX uses GNU C++, but need to define -shared option too, otherwise
14830 # it will coredump.
14831 lt_prog_compiler_pic_CXX='-fPIC -shared'
14833 osf3* | osf4* | osf5*)
14834 case $cc_basename in
14835 KCC*)
14836 lt_prog_compiler_wl_CXX='--backend -Wl,'
14838 RCC*)
14839 # Rational C++ 2.4.1
14840 lt_prog_compiler_pic_CXX='-pic'
14842 cxx*)
14843 # Digital/Compaq C++
14844 lt_prog_compiler_wl_CXX='-Wl,'
14845 # Make sure the PIC flag is empty. It appears that all Alpha
14846 # Linux and Compaq Tru64 Unix objects are PIC.
14847 lt_prog_compiler_pic_CXX=
14848 lt_prog_compiler_static_CXX='-non_shared'
14852 esac
14854 psos*)
14856 solaris*)
14857 case $cc_basename in
14858 CC*)
14859 # Sun C++ 4.2, 5.x and Centerline C++
14860 lt_prog_compiler_pic_CXX='-KPIC'
14861 lt_prog_compiler_static_CXX='-Bstatic'
14862 lt_prog_compiler_wl_CXX='-Qoption ld '
14864 gcx*)
14865 # Green Hills C++ Compiler
14866 lt_prog_compiler_pic_CXX='-PIC'
14870 esac
14872 sunos4*)
14873 case $cc_basename in
14874 CC*)
14875 # Sun C++ 4.x
14876 lt_prog_compiler_pic_CXX='-pic'
14877 lt_prog_compiler_static_CXX='-Bstatic'
14879 lcc*)
14880 # Lucid
14881 lt_prog_compiler_pic_CXX='-pic'
14885 esac
14887 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
14888 case $cc_basename in
14889 CC*)
14890 lt_prog_compiler_wl_CXX='-Wl,'
14891 lt_prog_compiler_pic_CXX='-KPIC'
14892 lt_prog_compiler_static_CXX='-Bstatic'
14894 esac
14896 tandem*)
14897 case $cc_basename in
14898 NCC*)
14899 # NonStop-UX NCC 3.20
14900 lt_prog_compiler_pic_CXX='-KPIC'
14904 esac
14906 vxworks*)
14909 lt_prog_compiler_can_build_shared_CXX=no
14911 esac
14914 case $host_os in
14915 # For platforms which do not support PIC, -DPIC is meaningless:
14916 *djgpp*)
14917 lt_prog_compiler_pic_CXX=
14920 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
14922 esac
14923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
14924 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
14929 # Check to make sure the PIC flag actually works.
14931 if test -n "$lt_prog_compiler_pic_CXX"; then
14932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
14933 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
14934 if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
14935 $as_echo_n "(cached) " >&6
14936 else
14937 lt_cv_prog_compiler_pic_works_CXX=no
14938 ac_outfile=conftest.$ac_objext
14939 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14940 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
14941 # Insert the option either (1) after the last *FLAGS variable, or
14942 # (2) before a word containing "conftest.", or (3) at the end.
14943 # Note that $ac_compile itself does not contain backslashes and begins
14944 # with a dollar sign (not a hyphen), so the echo should work correctly.
14945 # The option is referenced via a variable to avoid confusing sed.
14946 lt_compile=`echo "$ac_compile" | $SED \
14947 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
14948 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
14949 -e 's:$: $lt_compiler_flag:'`
14950 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
14951 (eval "$lt_compile" 2>conftest.err)
14952 ac_status=$?
14953 cat conftest.err >&5
14954 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14955 if (exit $ac_status) && test -s "$ac_outfile"; then
14956 # The compiler can only warn and ignore the option if not recognized
14957 # So say no if there are warnings other than the usual output.
14958 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
14959 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
14960 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
14961 lt_cv_prog_compiler_pic_works_CXX=yes
14964 $RM conftest*
14967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
14968 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
14970 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
14971 case $lt_prog_compiler_pic_CXX in
14972 "" | " "*) ;;
14973 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
14974 esac
14975 else
14976 lt_prog_compiler_pic_CXX=
14977 lt_prog_compiler_can_build_shared_CXX=no
14985 # Check to make sure the static flag actually works.
14987 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
14989 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
14990 if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
14991 $as_echo_n "(cached) " >&6
14992 else
14993 lt_cv_prog_compiler_static_works_CXX=no
14994 save_LDFLAGS="$LDFLAGS"
14995 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
14996 echo "$lt_simple_link_test_code" > conftest.$ac_ext
14997 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
14998 # The linker can only warn and ignore the option if not recognized
14999 # So say no if there are warnings
15000 if test -s conftest.err; then
15001 # Append any errors to the config.log.
15002 cat conftest.err 1>&5
15003 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
15004 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15005 if diff conftest.exp conftest.er2 >/dev/null; then
15006 lt_cv_prog_compiler_static_works_CXX=yes
15008 else
15009 lt_cv_prog_compiler_static_works_CXX=yes
15012 $RM -r conftest*
15013 LDFLAGS="$save_LDFLAGS"
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
15017 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
15019 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
15021 else
15022 lt_prog_compiler_static_CXX=
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15029 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15030 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15031 $as_echo_n "(cached) " >&6
15032 else
15033 lt_cv_prog_compiler_c_o_CXX=no
15034 $RM -r conftest 2>/dev/null
15035 mkdir conftest
15036 cd conftest
15037 mkdir out
15038 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15040 lt_compiler_flag="-o out/conftest2.$ac_objext"
15041 # Insert the option either (1) after the last *FLAGS variable, or
15042 # (2) before a word containing "conftest.", or (3) at the end.
15043 # Note that $ac_compile itself does not contain backslashes and begins
15044 # with a dollar sign (not a hyphen), so the echo should work correctly.
15045 lt_compile=`echo "$ac_compile" | $SED \
15046 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15047 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15048 -e 's:$: $lt_compiler_flag:'`
15049 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15050 (eval "$lt_compile" 2>out/conftest.err)
15051 ac_status=$?
15052 cat out/conftest.err >&5
15053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15054 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15055 then
15056 # The compiler can only warn and ignore the option if not recognized
15057 # So say no if there are warnings
15058 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15059 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15060 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15061 lt_cv_prog_compiler_c_o_CXX=yes
15064 chmod u+w . 2>&5
15065 $RM conftest*
15066 # SGI C++ compiler will create directory out/ii_files/ for
15067 # template instantiation
15068 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15069 $RM out/* && rmdir out
15070 cd ..
15071 $RM -r conftest
15072 $RM conftest*
15075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15076 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15081 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15082 if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
15083 $as_echo_n "(cached) " >&6
15084 else
15085 lt_cv_prog_compiler_c_o_CXX=no
15086 $RM -r conftest 2>/dev/null
15087 mkdir conftest
15088 cd conftest
15089 mkdir out
15090 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15092 lt_compiler_flag="-o out/conftest2.$ac_objext"
15093 # Insert the option either (1) after the last *FLAGS variable, or
15094 # (2) before a word containing "conftest.", or (3) at the end.
15095 # Note that $ac_compile itself does not contain backslashes and begins
15096 # with a dollar sign (not a hyphen), so the echo should work correctly.
15097 lt_compile=`echo "$ac_compile" | $SED \
15098 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15099 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15100 -e 's:$: $lt_compiler_flag:'`
15101 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
15102 (eval "$lt_compile" 2>out/conftest.err)
15103 ac_status=$?
15104 cat out/conftest.err >&5
15105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15106 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15107 then
15108 # The compiler can only warn and ignore the option if not recognized
15109 # So say no if there are warnings
15110 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
15111 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15112 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15113 lt_cv_prog_compiler_c_o_CXX=yes
15116 chmod u+w . 2>&5
15117 $RM conftest*
15118 # SGI C++ compiler will create directory out/ii_files/ for
15119 # template instantiation
15120 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15121 $RM out/* && rmdir out
15122 cd ..
15123 $RM -r conftest
15124 $RM conftest*
15127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
15128 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
15133 hard_links="nottested"
15134 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
15135 # do not overwrite the value of need_locks provided by the user
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15137 $as_echo_n "checking if we can lock with hard links... " >&6; }
15138 hard_links=yes
15139 $RM conftest*
15140 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15141 touch conftest.a
15142 ln conftest.a conftest.b 2>&5 || hard_links=no
15143 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15145 $as_echo "$hard_links" >&6; }
15146 if test "$hard_links" = no; then
15147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15148 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15149 need_locks=warn
15151 else
15152 need_locks=no
15157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15158 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15160 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15161 case $host_os in
15162 aix[4-9]*)
15163 # If we're using GNU nm, then we don't want the "-C" option.
15164 # -C means demangle to AIX nm, but means don't demangle with GNU nm
15165 # Also, AIX nm treats weak defined symbols like other global defined
15166 # symbols, whereas GNU nm marks them as "W".
15167 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
15168 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'
15169 else
15170 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'
15173 pw32*)
15174 export_symbols_cmds_CXX="$ltdll_cmds"
15176 cygwin* | mingw* | cegcc*)
15177 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'
15180 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15182 esac
15183 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
15186 $as_echo "$ld_shlibs_CXX" >&6; }
15187 test "$ld_shlibs_CXX" = no && can_build_shared=no
15189 with_gnu_ld_CXX=$with_gnu_ld
15197 # Do we need to explicitly link libc?
15199 case "x$archive_cmds_need_lc_CXX" in
15200 x|xyes)
15201 # Assume -lc should be added
15202 archive_cmds_need_lc_CXX=yes
15204 if test "$enable_shared" = yes && test "$GCC" = yes; then
15205 case $archive_cmds_CXX in
15206 *'~'*)
15207 # FIXME: we may have to deal with multi-command sequences.
15209 '$CC '*)
15210 # Test whether the compiler implicitly links with -lc since on some
15211 # systems, -lgcc has to come before -lc. If gcc already passes -lc
15212 # to ld, don't add -lc before -lgcc.
15213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
15214 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
15215 if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
15216 $as_echo_n "(cached) " >&6
15217 else
15218 $RM conftest*
15219 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15221 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
15222 (eval $ac_compile) 2>&5
15223 ac_status=$?
15224 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15225 test $ac_status = 0; } 2>conftest.err; then
15226 soname=conftest
15227 lib=conftest
15228 libobjs=conftest.$ac_objext
15229 deplibs=
15230 wl=$lt_prog_compiler_wl_CXX
15231 pic_flag=$lt_prog_compiler_pic_CXX
15232 compiler_flags=-v
15233 linker_flags=-v
15234 verstring=
15235 output_objdir=.
15236 libname=conftest
15237 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
15238 allow_undefined_flag_CXX=
15239 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
15240 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
15241 ac_status=$?
15242 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15243 test $ac_status = 0; }
15244 then
15245 lt_cv_archive_cmds_need_lc_CXX=no
15246 else
15247 lt_cv_archive_cmds_need_lc_CXX=yes
15249 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
15250 else
15251 cat conftest.err 1>&5
15253 $RM conftest*
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
15257 $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
15258 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
15260 esac
15263 esac
15328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
15329 $as_echo_n "checking dynamic linker characteristics... " >&6; }
15331 library_names_spec=
15332 libname_spec='lib$name'
15333 soname_spec=
15334 shrext_cmds=".so"
15335 postinstall_cmds=
15336 postuninstall_cmds=
15337 finish_cmds=
15338 finish_eval=
15339 shlibpath_var=
15340 shlibpath_overrides_runpath=unknown
15341 version_type=none
15342 dynamic_linker="$host_os ld.so"
15343 sys_lib_dlsearch_path_spec="/lib /usr/lib"
15344 need_lib_prefix=unknown
15345 hardcode_into_libs=no
15347 # when you set need_version to no, make sure it does not cause -set_version
15348 # flags to be left without arguments
15349 need_version=unknown
15351 case $host_os in
15352 aix3*)
15353 version_type=linux
15354 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
15355 shlibpath_var=LIBPATH
15357 # AIX 3 has no versioning support, so we append a major version to the name.
15358 soname_spec='${libname}${release}${shared_ext}$major'
15361 aix[4-9]*)
15362 version_type=linux
15363 need_lib_prefix=no
15364 need_version=no
15365 hardcode_into_libs=yes
15366 if test "$host_cpu" = ia64; then
15367 # AIX 5 supports IA64
15368 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
15369 shlibpath_var=LD_LIBRARY_PATH
15370 else
15371 # With GCC up to 2.95.x, collect2 would create an import file
15372 # for dependence libraries. The import file would start with
15373 # the line `#! .'. This would cause the generated library to
15374 # depend on `.', always an invalid library. This was fixed in
15375 # development snapshots of GCC prior to 3.0.
15376 case $host_os in
15377 aix4 | aix4.[01] | aix4.[01].*)
15378 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
15379 echo ' yes '
15380 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
15382 else
15383 can_build_shared=no
15386 esac
15387 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
15388 # soname into executable. Probably we can add versioning support to
15389 # collect2, so additional links can be useful in future.
15390 if test "$aix_use_runtimelinking" = yes; then
15391 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
15392 # instead of lib<name>.a to let people know that these are not
15393 # typical AIX shared libraries.
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395 else
15396 # We preserve .a as extension for shared libraries through AIX4.2
15397 # and later when we are not doing run time linking.
15398 library_names_spec='${libname}${release}.a $libname.a'
15399 soname_spec='${libname}${release}${shared_ext}$major'
15401 shlibpath_var=LIBPATH
15405 amigaos*)
15406 case $host_cpu in
15407 powerpc)
15408 # Since July 2007 AmigaOS4 officially supports .so libraries.
15409 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15412 m68k)
15413 library_names_spec='$libname.ixlibrary $libname.a'
15414 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15415 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'
15417 esac
15420 beos*)
15421 library_names_spec='${libname}${shared_ext}'
15422 dynamic_linker="$host_os ld.so"
15423 shlibpath_var=LIBRARY_PATH
15426 bsdi[45]*)
15427 version_type=linux
15428 need_version=no
15429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15430 soname_spec='${libname}${release}${shared_ext}$major'
15431 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15432 shlibpath_var=LD_LIBRARY_PATH
15433 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15434 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15435 # the default ld.so.conf also contains /usr/contrib/lib and
15436 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15437 # libtool to hard-code these into programs
15440 cygwin* | mingw* | pw32* | cegcc*)
15441 version_type=windows
15442 shrext_cmds=".dll"
15443 need_version=no
15444 need_lib_prefix=no
15446 case $GCC,$host_os in
15447 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15448 library_names_spec='$libname.dll.a'
15449 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15450 postinstall_cmds='base_file=`basename \${file}`~
15451 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15452 dldir=$destdir/`dirname \$dlpath`~
15453 test -d \$dldir || mkdir -p \$dldir~
15454 $install_prog $dir/$dlname \$dldir/$dlname~
15455 chmod a+x \$dldir/$dlname~
15456 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15457 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15459 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15460 dlpath=$dir/\$dldll~
15461 $RM \$dlpath'
15462 shlibpath_overrides_runpath=yes
15464 case $host_os in
15465 cygwin*)
15466 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15467 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15470 mingw* | cegcc*)
15471 # MinGW DLLs use traditional 'lib' prefix
15472 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15474 pw32*)
15475 # pw32 DLLs use 'pw' prefix rather than 'lib'
15476 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15478 esac
15482 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15484 esac
15485 dynamic_linker='Win32 ld.exe'
15486 # FIXME: first we should search . and the directory the executable is in
15487 shlibpath_var=PATH
15490 darwin* | rhapsody*)
15491 dynamic_linker="$host_os dyld"
15492 version_type=darwin
15493 need_lib_prefix=no
15494 need_version=no
15495 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15496 soname_spec='${libname}${release}${major}$shared_ext'
15497 shlibpath_overrides_runpath=yes
15498 shlibpath_var=DYLD_LIBRARY_PATH
15499 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15501 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15504 dgux*)
15505 version_type=linux
15506 need_lib_prefix=no
15507 need_version=no
15508 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15509 soname_spec='${libname}${release}${shared_ext}$major'
15510 shlibpath_var=LD_LIBRARY_PATH
15513 freebsd* | dragonfly*)
15514 # DragonFly does not have aout. When/if they implement a new
15515 # versioning mechanism, adjust this.
15516 if test -x /usr/bin/objformat; then
15517 objformat=`/usr/bin/objformat`
15518 else
15519 case $host_os in
15520 freebsd[23].*) objformat=aout ;;
15521 *) objformat=elf ;;
15522 esac
15524 version_type=freebsd-$objformat
15525 case $version_type in
15526 freebsd-elf*)
15527 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15528 need_version=no
15529 need_lib_prefix=no
15531 freebsd-*)
15532 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15533 need_version=yes
15535 esac
15536 shlibpath_var=LD_LIBRARY_PATH
15537 case $host_os in
15538 freebsd2.*)
15539 shlibpath_overrides_runpath=yes
15541 freebsd3.[01]* | freebsdelf3.[01]*)
15542 shlibpath_overrides_runpath=yes
15543 hardcode_into_libs=yes
15545 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15546 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15547 shlibpath_overrides_runpath=no
15548 hardcode_into_libs=yes
15550 *) # from 4.6 on, and DragonFly
15551 shlibpath_overrides_runpath=yes
15552 hardcode_into_libs=yes
15554 esac
15557 haiku*)
15558 version_type=linux
15559 need_lib_prefix=no
15560 need_version=no
15561 dynamic_linker="$host_os runtime_loader"
15562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15563 soname_spec='${libname}${release}${shared_ext}$major'
15564 shlibpath_var=LIBRARY_PATH
15565 shlibpath_overrides_runpath=yes
15566 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
15567 hardcode_into_libs=yes
15570 hpux9* | hpux10* | hpux11*)
15571 # Give a soname corresponding to the major version so that dld.sl refuses to
15572 # link against other versions.
15573 version_type=sunos
15574 need_lib_prefix=no
15575 need_version=no
15576 case $host_cpu in
15577 ia64*)
15578 shrext_cmds='.so'
15579 hardcode_into_libs=yes
15580 dynamic_linker="$host_os dld.so"
15581 shlibpath_var=LD_LIBRARY_PATH
15582 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15584 soname_spec='${libname}${release}${shared_ext}$major'
15585 if test "X$HPUX_IA64_MODE" = X32; then
15586 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15587 else
15588 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15590 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15592 hppa*64*)
15593 shrext_cmds='.sl'
15594 hardcode_into_libs=yes
15595 dynamic_linker="$host_os dld.sl"
15596 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15597 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15601 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15604 shrext_cmds='.sl'
15605 dynamic_linker="$host_os dld.sl"
15606 shlibpath_var=SHLIB_PATH
15607 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15608 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15609 soname_spec='${libname}${release}${shared_ext}$major'
15611 esac
15612 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15613 postinstall_cmds='chmod 555 $lib'
15614 # or fails outright, so override atomically:
15615 install_override_mode=555
15618 interix[3-9]*)
15619 version_type=linux
15620 need_lib_prefix=no
15621 need_version=no
15622 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15623 soname_spec='${libname}${release}${shared_ext}$major'
15624 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15625 shlibpath_var=LD_LIBRARY_PATH
15626 shlibpath_overrides_runpath=no
15627 hardcode_into_libs=yes
15630 irix5* | irix6* | nonstopux*)
15631 case $host_os in
15632 nonstopux*) version_type=nonstopux ;;
15634 if test "$lt_cv_prog_gnu_ld" = yes; then
15635 version_type=linux
15636 else
15637 version_type=irix
15638 fi ;;
15639 esac
15640 need_lib_prefix=no
15641 need_version=no
15642 soname_spec='${libname}${release}${shared_ext}$major'
15643 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15644 case $host_os in
15645 irix5* | nonstopux*)
15646 libsuff= shlibsuff=
15649 case $LD in # libtool.m4 will add one of these switches to LD
15650 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15651 libsuff= shlibsuff= libmagic=32-bit;;
15652 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15653 libsuff=32 shlibsuff=N32 libmagic=N32;;
15654 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15655 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15656 *) libsuff= shlibsuff= libmagic=never-match;;
15657 esac
15659 esac
15660 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15661 shlibpath_overrides_runpath=no
15662 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15663 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15664 hardcode_into_libs=yes
15667 # No shared lib support for Linux oldld, aout, or coff.
15668 linux*oldld* | linux*aout* | linux*coff*)
15669 dynamic_linker=no
15672 # This must be Linux ELF.
15674 # uclinux* changes (here and below) have been submitted to the libtool
15675 # project, but have not yet been accepted: they are GCC-local changes
15676 # for the time being. (See
15677 # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
15678 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
15679 version_type=linux
15680 need_lib_prefix=no
15681 need_version=no
15682 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15683 soname_spec='${libname}${release}${shared_ext}$major'
15684 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15685 shlibpath_var=LD_LIBRARY_PATH
15686 shlibpath_overrides_runpath=no
15688 # Some binutils ld are patched to set DT_RUNPATH
15689 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
15690 $as_echo_n "(cached) " >&6
15691 else
15692 lt_cv_shlibpath_overrides_runpath=no
15693 save_LDFLAGS=$LDFLAGS
15694 save_libdir=$libdir
15695 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
15696 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
15697 if test x$gcc_no_link = xyes; then
15698 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15701 /* end confdefs.h. */
15704 main ()
15708 return 0;
15710 _ACEOF
15711 if ac_fn_cxx_try_link "$LINENO"; then :
15712 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15713 lt_cv_shlibpath_overrides_runpath=yes
15716 rm -f core conftest.err conftest.$ac_objext \
15717 conftest$ac_exeext conftest.$ac_ext
15718 LDFLAGS=$save_LDFLAGS
15719 libdir=$save_libdir
15723 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15725 # This implies no fast_install, which is unacceptable.
15726 # Some rework will be needed to allow for fast_install
15727 # before this can be enabled.
15728 hardcode_into_libs=yes
15730 # Append ld.so.conf contents to the search path
15731 if test -f /etc/ld.so.conf; then
15732 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' ' '`
15733 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15736 # We used to test for /lib/ld.so.1 and disable shared libraries on
15737 # powerpc, because MkLinux only supported shared libraries with the
15738 # GNU dynamic linker. Since this was broken with cross compilers,
15739 # most powerpc-linux boxes support dynamic linking these days and
15740 # people can always --disable-shared, the test was removed, and we
15741 # assume the GNU/Linux dynamic linker is in use.
15742 dynamic_linker='GNU/Linux ld.so'
15745 netbsd*)
15746 version_type=sunos
15747 need_lib_prefix=no
15748 need_version=no
15749 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15751 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15752 dynamic_linker='NetBSD (a.out) ld.so'
15753 else
15754 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15755 soname_spec='${libname}${release}${shared_ext}$major'
15756 dynamic_linker='NetBSD ld.elf_so'
15758 shlibpath_var=LD_LIBRARY_PATH
15759 shlibpath_overrides_runpath=yes
15760 hardcode_into_libs=yes
15763 newsos6)
15764 version_type=linux
15765 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15766 shlibpath_var=LD_LIBRARY_PATH
15767 shlibpath_overrides_runpath=yes
15770 *nto* | *qnx*)
15771 version_type=qnx
15772 need_lib_prefix=no
15773 need_version=no
15774 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15775 soname_spec='${libname}${release}${shared_ext}$major'
15776 shlibpath_var=LD_LIBRARY_PATH
15777 shlibpath_overrides_runpath=no
15778 hardcode_into_libs=yes
15779 dynamic_linker='ldqnx.so'
15782 openbsd*)
15783 version_type=sunos
15784 sys_lib_dlsearch_path_spec="/usr/lib"
15785 need_lib_prefix=no
15786 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15787 case $host_os in
15788 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15789 *) need_version=no ;;
15790 esac
15791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15793 shlibpath_var=LD_LIBRARY_PATH
15794 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15795 case $host_os in
15796 openbsd2.[89] | openbsd2.[89].*)
15797 shlibpath_overrides_runpath=no
15800 shlibpath_overrides_runpath=yes
15802 esac
15803 else
15804 shlibpath_overrides_runpath=yes
15808 os2*)
15809 libname_spec='$name'
15810 shrext_cmds=".dll"
15811 need_lib_prefix=no
15812 library_names_spec='$libname${shared_ext} $libname.a'
15813 dynamic_linker='OS/2 ld.exe'
15814 shlibpath_var=LIBPATH
15817 osf3* | osf4* | osf5*)
15818 version_type=osf
15819 need_lib_prefix=no
15820 need_version=no
15821 soname_spec='${libname}${release}${shared_ext}$major'
15822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15823 shlibpath_var=LD_LIBRARY_PATH
15824 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15825 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15828 rdos*)
15829 dynamic_linker=no
15832 solaris*)
15833 version_type=linux
15834 need_lib_prefix=no
15835 need_version=no
15836 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15837 soname_spec='${libname}${release}${shared_ext}$major'
15838 shlibpath_var=LD_LIBRARY_PATH
15839 shlibpath_overrides_runpath=yes
15840 hardcode_into_libs=yes
15841 # ldd complains unless libraries are executable
15842 postinstall_cmds='chmod +x $lib'
15845 sunos4*)
15846 version_type=sunos
15847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15848 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15849 shlibpath_var=LD_LIBRARY_PATH
15850 shlibpath_overrides_runpath=yes
15851 if test "$with_gnu_ld" = yes; then
15852 need_lib_prefix=no
15854 need_version=yes
15857 sysv4 | sysv4.3*)
15858 version_type=linux
15859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15860 soname_spec='${libname}${release}${shared_ext}$major'
15861 shlibpath_var=LD_LIBRARY_PATH
15862 case $host_vendor in
15863 sni)
15864 shlibpath_overrides_runpath=no
15865 need_lib_prefix=no
15866 runpath_var=LD_RUN_PATH
15868 siemens)
15869 need_lib_prefix=no
15871 motorola)
15872 need_lib_prefix=no
15873 need_version=no
15874 shlibpath_overrides_runpath=no
15875 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15877 esac
15880 sysv4*MP*)
15881 if test -d /usr/nec ;then
15882 version_type=linux
15883 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15884 soname_spec='$libname${shared_ext}.$major'
15885 shlibpath_var=LD_LIBRARY_PATH
15889 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15890 version_type=freebsd-elf
15891 need_lib_prefix=no
15892 need_version=no
15893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15894 soname_spec='${libname}${release}${shared_ext}$major'
15895 shlibpath_var=LD_LIBRARY_PATH
15896 shlibpath_overrides_runpath=yes
15897 hardcode_into_libs=yes
15898 if test "$with_gnu_ld" = yes; then
15899 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15900 else
15901 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15902 case $host_os in
15903 sco3.2v5*)
15904 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15906 esac
15908 sys_lib_dlsearch_path_spec='/usr/lib'
15911 tpf*)
15912 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15913 version_type=linux
15914 need_lib_prefix=no
15915 need_version=no
15916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15917 shlibpath_var=LD_LIBRARY_PATH
15918 shlibpath_overrides_runpath=no
15919 hardcode_into_libs=yes
15922 uts4*)
15923 version_type=linux
15924 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15925 soname_spec='${libname}${release}${shared_ext}$major'
15926 shlibpath_var=LD_LIBRARY_PATH
15929 # Shared libraries for VwWorks, >= 7 only at this stage
15930 # and (fpic) still incompatible with "large" code models
15931 # in a few configurations. Only for RTP mode in any case,
15932 # and upon explicit request at configure time.
15933 vxworks7*)
15934 dynamic_linker=no
15935 case ${with_multisubdir}-${enable_shared} in
15936 *large*)
15938 *mrtp*-yes)
15939 version_type=linux
15940 need_lib_prefix=no
15941 need_version=no
15942 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15943 soname_spec='${libname}${release}${shared_ext}$major'
15944 dynamic_linker="$host_os module_loader"
15946 esac
15949 dynamic_linker=no
15951 esac
15952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15953 $as_echo "$dynamic_linker" >&6; }
15954 test "$dynamic_linker" = no && can_build_shared=no
15956 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15957 if test "$GCC" = yes; then
15958 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15961 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15962 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15964 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15965 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
16005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
16006 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
16007 hardcode_action_CXX=
16008 if test -n "$hardcode_libdir_flag_spec_CXX" ||
16009 test -n "$runpath_var_CXX" ||
16010 test "X$hardcode_automatic_CXX" = "Xyes" ; then
16012 # We can hardcode non-existent directories.
16013 if test "$hardcode_direct_CXX" != no &&
16014 # If the only mechanism to avoid hardcoding is shlibpath_var, we
16015 # have to relink, otherwise we might link with an installed library
16016 # when we should be linking with a yet-to-be-installed one
16017 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
16018 test "$hardcode_minus_L_CXX" != no; then
16019 # Linking always hardcodes the temporary library directory.
16020 hardcode_action_CXX=relink
16021 else
16022 # We can link without hardcoding, and we can hardcode nonexisting dirs.
16023 hardcode_action_CXX=immediate
16025 else
16026 # We cannot hardcode anything, or else we can only hardcode existing
16027 # directories.
16028 hardcode_action_CXX=unsupported
16030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
16031 $as_echo "$hardcode_action_CXX" >&6; }
16033 if test "$hardcode_action_CXX" = relink ||
16034 test "$inherit_rpath_CXX" = yes; then
16035 # Fast installation is not supported
16036 enable_fast_install=no
16037 elif test "$shlibpath_overrides_runpath" = yes ||
16038 test "$enable_shared" = no; then
16039 # Fast installation is not necessary
16040 enable_fast_install=needless
16049 fi # test -n "$compiler"
16051 CC=$lt_save_CC
16052 LDCXX=$LD
16053 LD=$lt_save_LD
16054 GCC=$lt_save_GCC
16055 with_gnu_ld=$lt_save_with_gnu_ld
16056 lt_cv_path_LDCXX=$lt_cv_path_LD
16057 lt_cv_path_LD=$lt_save_path_LD
16058 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
16059 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
16060 fi # test "$_lt_caught_CXX_error" != yes
16062 ac_ext=c
16063 ac_cpp='$CPP $CPPFLAGS'
16064 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16065 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16066 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16080 ac_config_commands="$ac_config_commands libtool"
16085 # Only expand once:
16091 if test "${multilib}" = "yes"; then
16092 multilib_arg="--enable-multilib"
16093 else
16094 multilib_arg=
16097 ac_fn_c_check_type "$LINENO" "struct timezone" "ac_cv_type_struct_timezone" "$ac_includes_default"
16098 if test "x$ac_cv_type_struct_timezone" = xyes; then :
16100 cat >>confdefs.h <<_ACEOF
16101 #define HAVE_STRUCT_TIMEZONE 1
16102 _ACEOF
16106 ac_fn_c_check_type "$LINENO" "struct stat" "ac_cv_type_struct_stat" "$ac_includes_default"
16107 if test "x$ac_cv_type_struct_stat" = xyes; then :
16109 cat >>confdefs.h <<_ACEOF
16110 #define HAVE_STRUCT_STAT 1
16111 _ACEOF
16115 ac_fn_c_check_type "$LINENO" "struct timespec" "ac_cv_type_struct_timespec" "$ac_includes_default"
16116 if test "x$ac_cv_type_struct_timespec" = xyes; then :
16118 cat >>confdefs.h <<_ACEOF
16119 #define HAVE_STRUCT_TIMESPEC 1
16120 _ACEOF
16124 ac_fn_c_check_type "$LINENO" "struct timeval" "ac_cv_type_struct_timeval" "$ac_includes_default"
16125 if test "x$ac_cv_type_struct_timeval" = xyes; then :
16127 cat >>confdefs.h <<_ACEOF
16128 #define HAVE_STRUCT_TIMEVAL 1
16129 _ACEOF
16133 ac_fn_c_check_type "$LINENO" "struct tm" "ac_cv_type_struct_tm" "$ac_includes_default"
16134 if test "x$ac_cv_type_struct_tm" = xyes; then :
16136 cat >>confdefs.h <<_ACEOF
16137 #define HAVE_STRUCT_TM 1
16138 _ACEOF
16144 # Check if struct tm contains the tm_gmtoff field.
16145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tm_gmtoff in struct tm" >&5
16146 $as_echo_n "checking for tm_gmtoff in struct tm... " >&6; }
16147 if ${ac_cv_struct_tm_gmtoff+:} false; then :
16148 $as_echo_n "(cached) " >&6
16149 else
16150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16151 /* end confdefs.h. */
16153 #include <time.h>
16156 main ()
16159 struct tm tm;
16160 tm.tm_gmtoff = 1;
16163 return 0;
16165 _ACEOF
16166 if ac_fn_c_try_compile "$LINENO"; then :
16167 ac_cv_struct_tm_gmtoff=yes
16168 else
16169 ac_cv_struct_tm_gmtoff=no
16172 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm_gmtoff" >&5
16176 $as_echo "$ac_cv_struct_tm_gmtoff" >&6; }
16178 if (test "$ac_cv_struct_tm_gmtoff" = "yes"); then
16179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end detects struct tm with the tm_gmtoff field." >&5
16180 $as_echo_n "checking m2 front end detects struct tm with the tm_gmtoff field.... " >&6; }
16182 $as_echo "#define HAVE_TM_TM_GMTOFF 1" >>confdefs.h
16186 ac_ext=c
16187 ac_cpp='$CPP $CPPFLAGS'
16188 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16189 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16190 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16192 # Check the compiler.
16193 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
16194 # We must force CC to /not/ be precious variables; otherwise
16195 # the wrong, non-multilib-adjusted value will be used in multilibs.
16196 # As a side effect, we have to subst CFLAGS ourselves.
16200 ac_ext=c
16201 ac_cpp='$CPP $CPPFLAGS'
16202 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16203 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16204 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16205 if test -n "$ac_tool_prefix"; then
16206 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
16207 set dummy ${ac_tool_prefix}gcc; ac_word=$2
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16209 $as_echo_n "checking for $ac_word... " >&6; }
16210 if ${ac_cv_prog_CC+:} false; then :
16211 $as_echo_n "(cached) " >&6
16212 else
16213 if test -n "$CC"; then
16214 ac_cv_prog_CC="$CC" # Let the user override the test.
16215 else
16216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16217 for as_dir in $PATH
16219 IFS=$as_save_IFS
16220 test -z "$as_dir" && as_dir=.
16221 for ac_exec_ext in '' $ac_executable_extensions; do
16222 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16223 ac_cv_prog_CC="${ac_tool_prefix}gcc"
16224 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16225 break 2
16227 done
16228 done
16229 IFS=$as_save_IFS
16233 CC=$ac_cv_prog_CC
16234 if test -n "$CC"; then
16235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16236 $as_echo "$CC" >&6; }
16237 else
16238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16239 $as_echo "no" >&6; }
16244 if test -z "$ac_cv_prog_CC"; then
16245 ac_ct_CC=$CC
16246 # Extract the first word of "gcc", so it can be a program name with args.
16247 set dummy gcc; ac_word=$2
16248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16249 $as_echo_n "checking for $ac_word... " >&6; }
16250 if ${ac_cv_prog_ac_ct_CC+:} false; then :
16251 $as_echo_n "(cached) " >&6
16252 else
16253 if test -n "$ac_ct_CC"; then
16254 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16255 else
16256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16257 for as_dir in $PATH
16259 IFS=$as_save_IFS
16260 test -z "$as_dir" && as_dir=.
16261 for ac_exec_ext in '' $ac_executable_extensions; do
16262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16263 ac_cv_prog_ac_ct_CC="gcc"
16264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16265 break 2
16267 done
16268 done
16269 IFS=$as_save_IFS
16273 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16274 if test -n "$ac_ct_CC"; then
16275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16276 $as_echo "$ac_ct_CC" >&6; }
16277 else
16278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16279 $as_echo "no" >&6; }
16282 if test "x$ac_ct_CC" = x; then
16283 CC=""
16284 else
16285 case $cross_compiling:$ac_tool_warned in
16286 yes:)
16287 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16288 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16289 ac_tool_warned=yes ;;
16290 esac
16291 CC=$ac_ct_CC
16293 else
16294 CC="$ac_cv_prog_CC"
16297 if test -z "$CC"; then
16298 if test -n "$ac_tool_prefix"; then
16299 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
16300 set dummy ${ac_tool_prefix}cc; ac_word=$2
16301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16302 $as_echo_n "checking for $ac_word... " >&6; }
16303 if ${ac_cv_prog_CC+:} false; then :
16304 $as_echo_n "(cached) " >&6
16305 else
16306 if test -n "$CC"; then
16307 ac_cv_prog_CC="$CC" # Let the user override the test.
16308 else
16309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16310 for as_dir in $PATH
16312 IFS=$as_save_IFS
16313 test -z "$as_dir" && as_dir=.
16314 for ac_exec_ext in '' $ac_executable_extensions; do
16315 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16316 ac_cv_prog_CC="${ac_tool_prefix}cc"
16317 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16318 break 2
16320 done
16321 done
16322 IFS=$as_save_IFS
16326 CC=$ac_cv_prog_CC
16327 if test -n "$CC"; then
16328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16329 $as_echo "$CC" >&6; }
16330 else
16331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16332 $as_echo "no" >&6; }
16338 if test -z "$CC"; then
16339 # Extract the first word of "cc", so it can be a program name with args.
16340 set dummy cc; ac_word=$2
16341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16342 $as_echo_n "checking for $ac_word... " >&6; }
16343 if ${ac_cv_prog_CC+:} false; then :
16344 $as_echo_n "(cached) " >&6
16345 else
16346 if test -n "$CC"; then
16347 ac_cv_prog_CC="$CC" # Let the user override the test.
16348 else
16349 ac_prog_rejected=no
16350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16351 for as_dir in $PATH
16353 IFS=$as_save_IFS
16354 test -z "$as_dir" && as_dir=.
16355 for ac_exec_ext in '' $ac_executable_extensions; do
16356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16357 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
16358 ac_prog_rejected=yes
16359 continue
16361 ac_cv_prog_CC="cc"
16362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16363 break 2
16365 done
16366 done
16367 IFS=$as_save_IFS
16369 if test $ac_prog_rejected = yes; then
16370 # We found a bogon in the path, so make sure we never use it.
16371 set dummy $ac_cv_prog_CC
16372 shift
16373 if test $# != 0; then
16374 # We chose a different compiler from the bogus one.
16375 # However, it has the same basename, so the bogon will be chosen
16376 # first if we set CC to just the basename; use the full file name.
16377 shift
16378 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
16383 CC=$ac_cv_prog_CC
16384 if test -n "$CC"; then
16385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16386 $as_echo "$CC" >&6; }
16387 else
16388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16389 $as_echo "no" >&6; }
16394 if test -z "$CC"; then
16395 if test -n "$ac_tool_prefix"; then
16396 for ac_prog in cl.exe
16398 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
16399 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
16400 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16401 $as_echo_n "checking for $ac_word... " >&6; }
16402 if ${ac_cv_prog_CC+:} false; then :
16403 $as_echo_n "(cached) " >&6
16404 else
16405 if test -n "$CC"; then
16406 ac_cv_prog_CC="$CC" # Let the user override the test.
16407 else
16408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16409 for as_dir in $PATH
16411 IFS=$as_save_IFS
16412 test -z "$as_dir" && as_dir=.
16413 for ac_exec_ext in '' $ac_executable_extensions; do
16414 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16415 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
16416 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16417 break 2
16419 done
16420 done
16421 IFS=$as_save_IFS
16425 CC=$ac_cv_prog_CC
16426 if test -n "$CC"; then
16427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
16428 $as_echo "$CC" >&6; }
16429 else
16430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16431 $as_echo "no" >&6; }
16435 test -n "$CC" && break
16436 done
16438 if test -z "$CC"; then
16439 ac_ct_CC=$CC
16440 for ac_prog in cl.exe
16442 # Extract the first word of "$ac_prog", so it can be a program name with args.
16443 set dummy $ac_prog; ac_word=$2
16444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
16445 $as_echo_n "checking for $ac_word... " >&6; }
16446 if ${ac_cv_prog_ac_ct_CC+:} false; then :
16447 $as_echo_n "(cached) " >&6
16448 else
16449 if test -n "$ac_ct_CC"; then
16450 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
16451 else
16452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16453 for as_dir in $PATH
16455 IFS=$as_save_IFS
16456 test -z "$as_dir" && as_dir=.
16457 for ac_exec_ext in '' $ac_executable_extensions; do
16458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
16459 ac_cv_prog_ac_ct_CC="$ac_prog"
16460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
16461 break 2
16463 done
16464 done
16465 IFS=$as_save_IFS
16469 ac_ct_CC=$ac_cv_prog_ac_ct_CC
16470 if test -n "$ac_ct_CC"; then
16471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
16472 $as_echo "$ac_ct_CC" >&6; }
16473 else
16474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16475 $as_echo "no" >&6; }
16479 test -n "$ac_ct_CC" && break
16480 done
16482 if test "x$ac_ct_CC" = x; then
16483 CC=""
16484 else
16485 case $cross_compiling:$ac_tool_warned in
16486 yes:)
16487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
16488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
16489 ac_tool_warned=yes ;;
16490 esac
16491 CC=$ac_ct_CC
16498 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16499 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16500 as_fn_error $? "no acceptable C compiler found in \$PATH
16501 See \`config.log' for more details" "$LINENO" 5; }
16503 # Provide some information about the compiler.
16504 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
16505 set X $ac_compile
16506 ac_compiler=$2
16507 for ac_option in --version -v -V -qversion; do
16508 { { ac_try="$ac_compiler $ac_option >&5"
16509 case "(($ac_try" in
16510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16511 *) ac_try_echo=$ac_try;;
16512 esac
16513 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
16514 $as_echo "$ac_try_echo"; } >&5
16515 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
16516 ac_status=$?
16517 if test -s conftest.err; then
16518 sed '10a\
16519 ... rest of stderr output deleted ...
16520 10q' conftest.err >conftest.er1
16521 cat conftest.er1 >&5
16523 rm -f conftest.er1 conftest.err
16524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16525 test $ac_status = 0; }
16526 done
16528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
16529 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
16530 if ${ac_cv_c_compiler_gnu+:} false; then :
16531 $as_echo_n "(cached) " >&6
16532 else
16533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16534 /* end confdefs.h. */
16537 main ()
16539 #ifndef __GNUC__
16540 choke me
16541 #endif
16544 return 0;
16546 _ACEOF
16547 if ac_fn_c_try_compile "$LINENO"; then :
16548 ac_compiler_gnu=yes
16549 else
16550 ac_compiler_gnu=no
16552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16553 ac_cv_c_compiler_gnu=$ac_compiler_gnu
16556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
16557 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
16558 if test $ac_compiler_gnu = yes; then
16559 GCC=yes
16560 else
16561 GCC=
16563 ac_test_CFLAGS=${CFLAGS+set}
16564 ac_save_CFLAGS=$CFLAGS
16565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
16566 $as_echo_n "checking whether $CC accepts -g... " >&6; }
16567 if ${ac_cv_prog_cc_g+:} false; then :
16568 $as_echo_n "(cached) " >&6
16569 else
16570 ac_save_c_werror_flag=$ac_c_werror_flag
16571 ac_c_werror_flag=yes
16572 ac_cv_prog_cc_g=no
16573 CFLAGS="-g"
16574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16575 /* end confdefs.h. */
16578 main ()
16582 return 0;
16584 _ACEOF
16585 if ac_fn_c_try_compile "$LINENO"; then :
16586 ac_cv_prog_cc_g=yes
16587 else
16588 CFLAGS=""
16589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16590 /* end confdefs.h. */
16593 main ()
16597 return 0;
16599 _ACEOF
16600 if ac_fn_c_try_compile "$LINENO"; then :
16602 else
16603 ac_c_werror_flag=$ac_save_c_werror_flag
16604 CFLAGS="-g"
16605 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16606 /* end confdefs.h. */
16609 main ()
16613 return 0;
16615 _ACEOF
16616 if ac_fn_c_try_compile "$LINENO"; then :
16617 ac_cv_prog_cc_g=yes
16619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16624 ac_c_werror_flag=$ac_save_c_werror_flag
16626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
16627 $as_echo "$ac_cv_prog_cc_g" >&6; }
16628 if test "$ac_test_CFLAGS" = set; then
16629 CFLAGS=$ac_save_CFLAGS
16630 elif test $ac_cv_prog_cc_g = yes; then
16631 if test "$GCC" = yes; then
16632 CFLAGS="-g -O2"
16633 else
16634 CFLAGS="-g"
16636 else
16637 if test "$GCC" = yes; then
16638 CFLAGS="-O2"
16639 else
16640 CFLAGS=
16643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
16644 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
16645 if ${ac_cv_prog_cc_c89+:} false; then :
16646 $as_echo_n "(cached) " >&6
16647 else
16648 ac_cv_prog_cc_c89=no
16649 ac_save_CC=$CC
16650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16651 /* end confdefs.h. */
16652 #include <stdarg.h>
16653 #include <stdio.h>
16654 struct stat;
16655 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
16656 struct buf { int x; };
16657 FILE * (*rcsopen) (struct buf *, struct stat *, int);
16658 static char *e (p, i)
16659 char **p;
16660 int i;
16662 return p[i];
16664 static char *f (char * (*g) (char **, int), char **p, ...)
16666 char *s;
16667 va_list v;
16668 va_start (v,p);
16669 s = g (p, va_arg (v,int));
16670 va_end (v);
16671 return s;
16674 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
16675 function prototypes and stuff, but not '\xHH' hex character constants.
16676 These don't provoke an error unfortunately, instead are silently treated
16677 as 'x'. The following induces an error, until -std is added to get
16678 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
16679 array size at least. It's necessary to write '\x00'==0 to get something
16680 that's true only with -std. */
16681 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
16683 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
16684 inside strings and character constants. */
16685 #define FOO(x) 'x'
16686 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
16688 int test (int i, double x);
16689 struct s1 {int (*f) (int a);};
16690 struct s2 {int (*f) (double a);};
16691 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
16692 int argc;
16693 char **argv;
16695 main ()
16697 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
16699 return 0;
16701 _ACEOF
16702 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
16703 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
16705 CC="$ac_save_CC $ac_arg"
16706 if ac_fn_c_try_compile "$LINENO"; then :
16707 ac_cv_prog_cc_c89=$ac_arg
16709 rm -f core conftest.err conftest.$ac_objext
16710 test "x$ac_cv_prog_cc_c89" != "xno" && break
16711 done
16712 rm -f conftest.$ac_ext
16713 CC=$ac_save_CC
16716 # AC_CACHE_VAL
16717 case "x$ac_cv_prog_cc_c89" in
16719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
16720 $as_echo "none needed" >&6; } ;;
16721 xno)
16722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
16723 $as_echo "unsupported" >&6; } ;;
16725 CC="$CC $ac_cv_prog_cc_c89"
16726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
16727 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
16728 esac
16729 if test "x$ac_cv_prog_cc_c89" != xno; then :
16733 ac_ext=c
16734 ac_cpp='$CPP $CPPFLAGS'
16735 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16736 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16737 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16739 ac_ext=c
16740 ac_cpp='$CPP $CPPFLAGS'
16741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
16745 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
16746 if ${am_cv_prog_cc_c_o+:} false; then :
16747 $as_echo_n "(cached) " >&6
16748 else
16749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16750 /* end confdefs.h. */
16753 main ()
16757 return 0;
16759 _ACEOF
16760 # Make sure it works both with $CC and with simple cc.
16761 # Following AC_PROG_CC_C_O, we do the test twice because some
16762 # compilers refuse to overwrite an existing .o file with -o,
16763 # though they will create one.
16764 am_cv_prog_cc_c_o=yes
16765 for am_i in 1 2; do
16766 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
16767 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
16768 ac_status=$?
16769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16770 (exit $ac_status); } \
16771 && test -f conftest2.$ac_objext; then
16772 : OK
16773 else
16774 am_cv_prog_cc_c_o=no
16775 break
16777 done
16778 rm -f core conftest*
16779 unset am_i
16781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
16782 $as_echo "$am_cv_prog_cc_c_o" >&6; }
16783 if test "$am_cv_prog_cc_c_o" != yes; then
16784 # Losing compiler, so override with the script.
16785 # FIXME: It is wrong to rewrite CC.
16786 # But if we don't then we get into trouble of one sort or another.
16787 # A longer-term fix would be to have automake use am__CC in this case,
16788 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
16789 CC="$am_aux_dir/compile $CC"
16791 ac_ext=c
16792 ac_cpp='$CPP $CPPFLAGS'
16793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
16794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
16795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for access" >&5
16808 $as_echo_n "checking m2 front end checking c library for access... " >&6; }
16809 if test x$gcc_no_link != xyes; then
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for access in -lc" >&5
16811 $as_echo_n "checking for access in -lc... " >&6; }
16812 if ${ac_cv_lib_c_access+:} false; then :
16813 $as_echo_n "(cached) " >&6
16814 else
16815 ac_check_lib_save_LIBS=$LIBS
16816 LIBS="-lc $LIBS"
16817 if test x$gcc_no_link = xyes; then
16818 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16821 /* end confdefs.h. */
16823 /* Override any GCC internal prototype to avoid an error.
16824 Use char because int might match the return type of a GCC
16825 builtin and then its argument prototype would still apply. */
16826 #ifdef __cplusplus
16827 extern "C"
16828 #endif
16829 char access ();
16831 main ()
16833 return access ();
16835 return 0;
16837 _ACEOF
16838 if ac_fn_c_try_link "$LINENO"; then :
16839 ac_cv_lib_c_access=yes
16840 else
16841 ac_cv_lib_c_access=no
16843 rm -f core conftest.err conftest.$ac_objext \
16844 conftest$ac_exeext conftest.$ac_ext
16845 LIBS=$ac_check_lib_save_LIBS
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_access" >&5
16848 $as_echo "$ac_cv_lib_c_access" >&6; }
16849 if test "x$ac_cv_lib_c_access" = xyes; then :
16851 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
16853 else
16855 $as_echo "#undef HAVE_ACCESS" >>confdefs.h
16859 else
16860 if test "x$ac_cv_lib_c_access" = xyes; then
16862 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
16864 elif test "x$ac_cv_func_access" = xyes; then
16866 $as_echo "#define HAVE_ACCESS 1" >>confdefs.h
16868 else
16870 $as_echo "#undef HAVE_ACCESS" >>confdefs.h
16876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for brk" >&5
16877 $as_echo_n "checking m2 front end checking c library for brk... " >&6; }
16878 if test x$gcc_no_link != xyes; then
16879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for brk in -lc" >&5
16880 $as_echo_n "checking for brk in -lc... " >&6; }
16881 if ${ac_cv_lib_c_brk+:} false; then :
16882 $as_echo_n "(cached) " >&6
16883 else
16884 ac_check_lib_save_LIBS=$LIBS
16885 LIBS="-lc $LIBS"
16886 if test x$gcc_no_link = xyes; then
16887 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16890 /* end confdefs.h. */
16892 /* Override any GCC internal prototype to avoid an error.
16893 Use char because int might match the return type of a GCC
16894 builtin and then its argument prototype would still apply. */
16895 #ifdef __cplusplus
16896 extern "C"
16897 #endif
16898 char brk ();
16900 main ()
16902 return brk ();
16904 return 0;
16906 _ACEOF
16907 if ac_fn_c_try_link "$LINENO"; then :
16908 ac_cv_lib_c_brk=yes
16909 else
16910 ac_cv_lib_c_brk=no
16912 rm -f core conftest.err conftest.$ac_objext \
16913 conftest$ac_exeext conftest.$ac_ext
16914 LIBS=$ac_check_lib_save_LIBS
16916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_brk" >&5
16917 $as_echo "$ac_cv_lib_c_brk" >&6; }
16918 if test "x$ac_cv_lib_c_brk" = xyes; then :
16920 $as_echo "#define HAVE_BRK 1" >>confdefs.h
16922 else
16924 $as_echo "#undef HAVE_BRK" >>confdefs.h
16928 else
16929 if test "x$ac_cv_lib_c_brk" = xyes; then
16931 $as_echo "#define HAVE_BRK 1" >>confdefs.h
16933 elif test "x$ac_cv_func_brk" = xyes; then
16935 $as_echo "#define HAVE_BRK 1" >>confdefs.h
16937 else
16939 $as_echo "#undef HAVE_BRK" >>confdefs.h
16945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for cfmakeraw" >&5
16946 $as_echo_n "checking m2 front end checking c library for cfmakeraw... " >&6; }
16947 if test x$gcc_no_link != xyes; then
16948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cfmakeraw in -lc" >&5
16949 $as_echo_n "checking for cfmakeraw in -lc... " >&6; }
16950 if ${ac_cv_lib_c_cfmakeraw+:} false; then :
16951 $as_echo_n "(cached) " >&6
16952 else
16953 ac_check_lib_save_LIBS=$LIBS
16954 LIBS="-lc $LIBS"
16955 if test x$gcc_no_link = xyes; then
16956 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16959 /* end confdefs.h. */
16961 /* Override any GCC internal prototype to avoid an error.
16962 Use char because int might match the return type of a GCC
16963 builtin and then its argument prototype would still apply. */
16964 #ifdef __cplusplus
16965 extern "C"
16966 #endif
16967 char cfmakeraw ();
16969 main ()
16971 return cfmakeraw ();
16973 return 0;
16975 _ACEOF
16976 if ac_fn_c_try_link "$LINENO"; then :
16977 ac_cv_lib_c_cfmakeraw=yes
16978 else
16979 ac_cv_lib_c_cfmakeraw=no
16981 rm -f core conftest.err conftest.$ac_objext \
16982 conftest$ac_exeext conftest.$ac_ext
16983 LIBS=$ac_check_lib_save_LIBS
16985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_cfmakeraw" >&5
16986 $as_echo "$ac_cv_lib_c_cfmakeraw" >&6; }
16987 if test "x$ac_cv_lib_c_cfmakeraw" = xyes; then :
16989 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
16991 else
16993 $as_echo "#undef HAVE_CFMAKERAW" >>confdefs.h
16997 else
16998 if test "x$ac_cv_lib_c_cfmakeraw" = xyes; then
17000 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
17002 elif test "x$ac_cv_func_cfmakeraw" = xyes; then
17004 $as_echo "#define HAVE_CFMAKERAW 1" >>confdefs.h
17006 else
17008 $as_echo "#undef HAVE_CFMAKERAW" >>confdefs.h
17014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for clock_gettime" >&5
17015 $as_echo_n "checking m2 front end checking c library for clock_gettime... " >&6; }
17016 if test x$gcc_no_link != xyes; then
17017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lc" >&5
17018 $as_echo_n "checking for clock_gettime in -lc... " >&6; }
17019 if ${ac_cv_lib_c_clock_gettime+:} false; then :
17020 $as_echo_n "(cached) " >&6
17021 else
17022 ac_check_lib_save_LIBS=$LIBS
17023 LIBS="-lc $LIBS"
17024 if test x$gcc_no_link = xyes; then
17025 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17028 /* end confdefs.h. */
17030 /* Override any GCC internal prototype to avoid an error.
17031 Use char because int might match the return type of a GCC
17032 builtin and then its argument prototype would still apply. */
17033 #ifdef __cplusplus
17034 extern "C"
17035 #endif
17036 char clock_gettime ();
17038 main ()
17040 return clock_gettime ();
17042 return 0;
17044 _ACEOF
17045 if ac_fn_c_try_link "$LINENO"; then :
17046 ac_cv_lib_c_clock_gettime=yes
17047 else
17048 ac_cv_lib_c_clock_gettime=no
17050 rm -f core conftest.err conftest.$ac_objext \
17051 conftest$ac_exeext conftest.$ac_ext
17052 LIBS=$ac_check_lib_save_LIBS
17054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_gettime" >&5
17055 $as_echo "$ac_cv_lib_c_clock_gettime" >&6; }
17056 if test "x$ac_cv_lib_c_clock_gettime" = xyes; then :
17058 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
17060 else
17062 $as_echo "#undef HAVE_CLOCK_GETTIME" >>confdefs.h
17066 else
17067 if test "x$ac_cv_lib_c_clock_gettime" = xyes; then
17069 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
17071 elif test "x$ac_cv_func_clock_gettime" = xyes; then
17073 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
17075 else
17077 $as_echo "#undef HAVE_CLOCK_GETTIME" >>confdefs.h
17083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for clock_settime" >&5
17084 $as_echo_n "checking m2 front end checking c library for clock_settime... " >&6; }
17085 if test x$gcc_no_link != xyes; then
17086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_settime in -lc" >&5
17087 $as_echo_n "checking for clock_settime in -lc... " >&6; }
17088 if ${ac_cv_lib_c_clock_settime+:} false; then :
17089 $as_echo_n "(cached) " >&6
17090 else
17091 ac_check_lib_save_LIBS=$LIBS
17092 LIBS="-lc $LIBS"
17093 if test x$gcc_no_link = xyes; then
17094 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17097 /* end confdefs.h. */
17099 /* Override any GCC internal prototype to avoid an error.
17100 Use char because int might match the return type of a GCC
17101 builtin and then its argument prototype would still apply. */
17102 #ifdef __cplusplus
17103 extern "C"
17104 #endif
17105 char clock_settime ();
17107 main ()
17109 return clock_settime ();
17111 return 0;
17113 _ACEOF
17114 if ac_fn_c_try_link "$LINENO"; then :
17115 ac_cv_lib_c_clock_settime=yes
17116 else
17117 ac_cv_lib_c_clock_settime=no
17119 rm -f core conftest.err conftest.$ac_objext \
17120 conftest$ac_exeext conftest.$ac_ext
17121 LIBS=$ac_check_lib_save_LIBS
17123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_clock_settime" >&5
17124 $as_echo "$ac_cv_lib_c_clock_settime" >&6; }
17125 if test "x$ac_cv_lib_c_clock_settime" = xyes; then :
17127 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
17129 else
17131 $as_echo "#undef HAVE_CLOCK_SETTIME" >>confdefs.h
17135 else
17136 if test "x$ac_cv_lib_c_clock_settime" = xyes; then
17138 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
17140 elif test "x$ac_cv_func_clock_settime" = xyes; then
17142 $as_echo "#define HAVE_CLOCK_SETTIME 1" >>confdefs.h
17144 else
17146 $as_echo "#undef HAVE_CLOCK_SETTIME" >>confdefs.h
17152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for close" >&5
17153 $as_echo_n "checking m2 front end checking c library for close... " >&6; }
17154 if test x$gcc_no_link != xyes; then
17155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for close in -lc" >&5
17156 $as_echo_n "checking for close in -lc... " >&6; }
17157 if ${ac_cv_lib_c_close+:} false; then :
17158 $as_echo_n "(cached) " >&6
17159 else
17160 ac_check_lib_save_LIBS=$LIBS
17161 LIBS="-lc $LIBS"
17162 if test x$gcc_no_link = xyes; then
17163 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17166 /* end confdefs.h. */
17168 /* Override any GCC internal prototype to avoid an error.
17169 Use char because int might match the return type of a GCC
17170 builtin and then its argument prototype would still apply. */
17171 #ifdef __cplusplus
17172 extern "C"
17173 #endif
17174 char close ();
17176 main ()
17178 return close ();
17180 return 0;
17182 _ACEOF
17183 if ac_fn_c_try_link "$LINENO"; then :
17184 ac_cv_lib_c_close=yes
17185 else
17186 ac_cv_lib_c_close=no
17188 rm -f core conftest.err conftest.$ac_objext \
17189 conftest$ac_exeext conftest.$ac_ext
17190 LIBS=$ac_check_lib_save_LIBS
17192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_close" >&5
17193 $as_echo "$ac_cv_lib_c_close" >&6; }
17194 if test "x$ac_cv_lib_c_close" = xyes; then :
17196 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
17198 else
17200 $as_echo "#undef HAVE_CLOSE" >>confdefs.h
17204 else
17205 if test "x$ac_cv_lib_c_close" = xyes; then
17207 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
17209 elif test "x$ac_cv_func_close" = xyes; then
17211 $as_echo "#define HAVE_CLOSE 1" >>confdefs.h
17213 else
17215 $as_echo "#undef HAVE_CLOSE" >>confdefs.h
17221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for ctime" >&5
17222 $as_echo_n "checking m2 front end checking c library for ctime... " >&6; }
17223 if test x$gcc_no_link != xyes; then
17224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctime in -lc" >&5
17225 $as_echo_n "checking for ctime in -lc... " >&6; }
17226 if ${ac_cv_lib_c_ctime+:} false; then :
17227 $as_echo_n "(cached) " >&6
17228 else
17229 ac_check_lib_save_LIBS=$LIBS
17230 LIBS="-lc $LIBS"
17231 if test x$gcc_no_link = xyes; then
17232 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17235 /* end confdefs.h. */
17237 /* Override any GCC internal prototype to avoid an error.
17238 Use char because int might match the return type of a GCC
17239 builtin and then its argument prototype would still apply. */
17240 #ifdef __cplusplus
17241 extern "C"
17242 #endif
17243 char ctime ();
17245 main ()
17247 return ctime ();
17249 return 0;
17251 _ACEOF
17252 if ac_fn_c_try_link "$LINENO"; then :
17253 ac_cv_lib_c_ctime=yes
17254 else
17255 ac_cv_lib_c_ctime=no
17257 rm -f core conftest.err conftest.$ac_objext \
17258 conftest$ac_exeext conftest.$ac_ext
17259 LIBS=$ac_check_lib_save_LIBS
17261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_ctime" >&5
17262 $as_echo "$ac_cv_lib_c_ctime" >&6; }
17263 if test "x$ac_cv_lib_c_ctime" = xyes; then :
17265 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
17267 else
17269 $as_echo "#undef HAVE_CTIME" >>confdefs.h
17273 else
17274 if test "x$ac_cv_lib_c_ctime" = xyes; then
17276 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
17278 elif test "x$ac_cv_func_ctime" = xyes; then
17280 $as_echo "#define HAVE_CTIME 1" >>confdefs.h
17282 else
17284 $as_echo "#undef HAVE_CTIME" >>confdefs.h
17290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for creat" >&5
17291 $as_echo_n "checking m2 front end checking c library for creat... " >&6; }
17292 if test x$gcc_no_link != xyes; then
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for creat in -lc" >&5
17294 $as_echo_n "checking for creat in -lc... " >&6; }
17295 if ${ac_cv_lib_c_creat+:} false; then :
17296 $as_echo_n "(cached) " >&6
17297 else
17298 ac_check_lib_save_LIBS=$LIBS
17299 LIBS="-lc $LIBS"
17300 if test x$gcc_no_link = xyes; then
17301 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17304 /* end confdefs.h. */
17306 /* Override any GCC internal prototype to avoid an error.
17307 Use char because int might match the return type of a GCC
17308 builtin and then its argument prototype would still apply. */
17309 #ifdef __cplusplus
17310 extern "C"
17311 #endif
17312 char creat ();
17314 main ()
17316 return creat ();
17318 return 0;
17320 _ACEOF
17321 if ac_fn_c_try_link "$LINENO"; then :
17322 ac_cv_lib_c_creat=yes
17323 else
17324 ac_cv_lib_c_creat=no
17326 rm -f core conftest.err conftest.$ac_objext \
17327 conftest$ac_exeext conftest.$ac_ext
17328 LIBS=$ac_check_lib_save_LIBS
17330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_creat" >&5
17331 $as_echo "$ac_cv_lib_c_creat" >&6; }
17332 if test "x$ac_cv_lib_c_creat" = xyes; then :
17334 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
17336 else
17338 $as_echo "#undef HAVE_CREAT" >>confdefs.h
17342 else
17343 if test "x$ac_cv_lib_c_creat" = xyes; then
17345 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
17347 elif test "x$ac_cv_func_creat" = xyes; then
17349 $as_echo "#define HAVE_CREAT 1" >>confdefs.h
17351 else
17353 $as_echo "#undef HAVE_CREAT" >>confdefs.h
17359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for daylight" >&5
17360 $as_echo_n "checking m2 front end checking c library for daylight... " >&6; }
17361 if test x$gcc_no_link != xyes; then
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for daylight in -lc" >&5
17363 $as_echo_n "checking for daylight in -lc... " >&6; }
17364 if ${ac_cv_lib_c_daylight+:} false; then :
17365 $as_echo_n "(cached) " >&6
17366 else
17367 ac_check_lib_save_LIBS=$LIBS
17368 LIBS="-lc $LIBS"
17369 if test x$gcc_no_link = xyes; then
17370 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17373 /* end confdefs.h. */
17375 /* Override any GCC internal prototype to avoid an error.
17376 Use char because int might match the return type of a GCC
17377 builtin and then its argument prototype would still apply. */
17378 #ifdef __cplusplus
17379 extern "C"
17380 #endif
17381 char daylight ();
17383 main ()
17385 return daylight ();
17387 return 0;
17389 _ACEOF
17390 if ac_fn_c_try_link "$LINENO"; then :
17391 ac_cv_lib_c_daylight=yes
17392 else
17393 ac_cv_lib_c_daylight=no
17395 rm -f core conftest.err conftest.$ac_objext \
17396 conftest$ac_exeext conftest.$ac_ext
17397 LIBS=$ac_check_lib_save_LIBS
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_daylight" >&5
17400 $as_echo "$ac_cv_lib_c_daylight" >&6; }
17401 if test "x$ac_cv_lib_c_daylight" = xyes; then :
17403 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
17405 else
17407 $as_echo "#undef HAVE_DAYLIGHT" >>confdefs.h
17411 else
17412 if test "x$ac_cv_lib_c_daylight" = xyes; then
17414 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
17416 elif test "x$ac_cv_func_daylight" = xyes; then
17418 $as_echo "#define HAVE_DAYLIGHT 1" >>confdefs.h
17420 else
17422 $as_echo "#undef HAVE_DAYLIGHT" >>confdefs.h
17428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for dup" >&5
17429 $as_echo_n "checking m2 front end checking c library for dup... " >&6; }
17430 if test x$gcc_no_link != xyes; then
17431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dup in -lc" >&5
17432 $as_echo_n "checking for dup in -lc... " >&6; }
17433 if ${ac_cv_lib_c_dup+:} false; then :
17434 $as_echo_n "(cached) " >&6
17435 else
17436 ac_check_lib_save_LIBS=$LIBS
17437 LIBS="-lc $LIBS"
17438 if test x$gcc_no_link = xyes; then
17439 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17442 /* end confdefs.h. */
17444 /* Override any GCC internal prototype to avoid an error.
17445 Use char because int might match the return type of a GCC
17446 builtin and then its argument prototype would still apply. */
17447 #ifdef __cplusplus
17448 extern "C"
17449 #endif
17450 char dup ();
17452 main ()
17454 return dup ();
17456 return 0;
17458 _ACEOF
17459 if ac_fn_c_try_link "$LINENO"; then :
17460 ac_cv_lib_c_dup=yes
17461 else
17462 ac_cv_lib_c_dup=no
17464 rm -f core conftest.err conftest.$ac_objext \
17465 conftest$ac_exeext conftest.$ac_ext
17466 LIBS=$ac_check_lib_save_LIBS
17468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_dup" >&5
17469 $as_echo "$ac_cv_lib_c_dup" >&6; }
17470 if test "x$ac_cv_lib_c_dup" = xyes; then :
17472 $as_echo "#define HAVE_DUP 1" >>confdefs.h
17474 else
17476 $as_echo "#undef HAVE_DUP" >>confdefs.h
17480 else
17481 if test "x$ac_cv_lib_c_dup" = xyes; then
17483 $as_echo "#define HAVE_DUP 1" >>confdefs.h
17485 elif test "x$ac_cv_func_dup" = xyes; then
17487 $as_echo "#define HAVE_DUP 1" >>confdefs.h
17489 else
17491 $as_echo "#undef HAVE_DUP" >>confdefs.h
17497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for execve" >&5
17498 $as_echo_n "checking m2 front end checking c library for execve... " >&6; }
17499 if test x$gcc_no_link != xyes; then
17500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for execve in -lc" >&5
17501 $as_echo_n "checking for execve in -lc... " >&6; }
17502 if ${ac_cv_lib_c_execve+:} false; then :
17503 $as_echo_n "(cached) " >&6
17504 else
17505 ac_check_lib_save_LIBS=$LIBS
17506 LIBS="-lc $LIBS"
17507 if test x$gcc_no_link = xyes; then
17508 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17510 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17511 /* end confdefs.h. */
17513 /* Override any GCC internal prototype to avoid an error.
17514 Use char because int might match the return type of a GCC
17515 builtin and then its argument prototype would still apply. */
17516 #ifdef __cplusplus
17517 extern "C"
17518 #endif
17519 char execve ();
17521 main ()
17523 return execve ();
17525 return 0;
17527 _ACEOF
17528 if ac_fn_c_try_link "$LINENO"; then :
17529 ac_cv_lib_c_execve=yes
17530 else
17531 ac_cv_lib_c_execve=no
17533 rm -f core conftest.err conftest.$ac_objext \
17534 conftest$ac_exeext conftest.$ac_ext
17535 LIBS=$ac_check_lib_save_LIBS
17537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_execve" >&5
17538 $as_echo "$ac_cv_lib_c_execve" >&6; }
17539 if test "x$ac_cv_lib_c_execve" = xyes; then :
17541 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
17543 else
17545 $as_echo "#undef HAVE_EXECVE" >>confdefs.h
17549 else
17550 if test "x$ac_cv_lib_c_execve" = xyes; then
17552 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
17554 elif test "x$ac_cv_func_execve" = xyes; then
17556 $as_echo "#define HAVE_EXECVE 1" >>confdefs.h
17558 else
17560 $as_echo "#undef HAVE_EXECVE" >>confdefs.h
17566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for exit" >&5
17567 $as_echo_n "checking m2 front end checking c library for exit... " >&6; }
17568 if test x$gcc_no_link != xyes; then
17569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exit in -lc" >&5
17570 $as_echo_n "checking for exit in -lc... " >&6; }
17571 if ${ac_cv_lib_c_exit+:} false; then :
17572 $as_echo_n "(cached) " >&6
17573 else
17574 ac_check_lib_save_LIBS=$LIBS
17575 LIBS="-lc $LIBS"
17576 if test x$gcc_no_link = xyes; then
17577 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17580 /* end confdefs.h. */
17582 /* Override any GCC internal prototype to avoid an error.
17583 Use char because int might match the return type of a GCC
17584 builtin and then its argument prototype would still apply. */
17585 #ifdef __cplusplus
17586 extern "C"
17587 #endif
17588 char exit ();
17590 main ()
17592 return exit ();
17594 return 0;
17596 _ACEOF
17597 if ac_fn_c_try_link "$LINENO"; then :
17598 ac_cv_lib_c_exit=yes
17599 else
17600 ac_cv_lib_c_exit=no
17602 rm -f core conftest.err conftest.$ac_objext \
17603 conftest$ac_exeext conftest.$ac_ext
17604 LIBS=$ac_check_lib_save_LIBS
17606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_exit" >&5
17607 $as_echo "$ac_cv_lib_c_exit" >&6; }
17608 if test "x$ac_cv_lib_c_exit" = xyes; then :
17610 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
17612 else
17614 $as_echo "#undef HAVE_EXIT" >>confdefs.h
17618 else
17619 if test "x$ac_cv_lib_c_exit" = xyes; then
17621 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
17623 elif test "x$ac_cv_func_exit" = xyes; then
17625 $as_echo "#define HAVE_EXIT 1" >>confdefs.h
17627 else
17629 $as_echo "#undef HAVE_EXIT" >>confdefs.h
17635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for fcntl" >&5
17636 $as_echo_n "checking m2 front end checking c library for fcntl... " >&6; }
17637 if test x$gcc_no_link != xyes; then
17638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fcntl in -lc" >&5
17639 $as_echo_n "checking for fcntl in -lc... " >&6; }
17640 if ${ac_cv_lib_c_fcntl+:} false; then :
17641 $as_echo_n "(cached) " >&6
17642 else
17643 ac_check_lib_save_LIBS=$LIBS
17644 LIBS="-lc $LIBS"
17645 if test x$gcc_no_link = xyes; then
17646 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17649 /* end confdefs.h. */
17651 /* Override any GCC internal prototype to avoid an error.
17652 Use char because int might match the return type of a GCC
17653 builtin and then its argument prototype would still apply. */
17654 #ifdef __cplusplus
17655 extern "C"
17656 #endif
17657 char fcntl ();
17659 main ()
17661 return fcntl ();
17663 return 0;
17665 _ACEOF
17666 if ac_fn_c_try_link "$LINENO"; then :
17667 ac_cv_lib_c_fcntl=yes
17668 else
17669 ac_cv_lib_c_fcntl=no
17671 rm -f core conftest.err conftest.$ac_objext \
17672 conftest$ac_exeext conftest.$ac_ext
17673 LIBS=$ac_check_lib_save_LIBS
17675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_fcntl" >&5
17676 $as_echo "$ac_cv_lib_c_fcntl" >&6; }
17677 if test "x$ac_cv_lib_c_fcntl" = xyes; then :
17679 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
17681 else
17683 $as_echo "#undef HAVE_FCNTL" >>confdefs.h
17687 else
17688 if test "x$ac_cv_lib_c_fcntl" = xyes; then
17690 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
17692 elif test "x$ac_cv_func_fcntl" = xyes; then
17694 $as_echo "#define HAVE_FCNTL 1" >>confdefs.h
17696 else
17698 $as_echo "#undef HAVE_FCNTL" >>confdefs.h
17704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for fstat" >&5
17705 $as_echo_n "checking m2 front end checking c library for fstat... " >&6; }
17706 if test x$gcc_no_link != xyes; then
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fstat in -lc" >&5
17708 $as_echo_n "checking for fstat in -lc... " >&6; }
17709 if ${ac_cv_lib_c_fstat+:} false; then :
17710 $as_echo_n "(cached) " >&6
17711 else
17712 ac_check_lib_save_LIBS=$LIBS
17713 LIBS="-lc $LIBS"
17714 if test x$gcc_no_link = xyes; then
17715 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17718 /* end confdefs.h. */
17720 /* Override any GCC internal prototype to avoid an error.
17721 Use char because int might match the return type of a GCC
17722 builtin and then its argument prototype would still apply. */
17723 #ifdef __cplusplus
17724 extern "C"
17725 #endif
17726 char fstat ();
17728 main ()
17730 return fstat ();
17732 return 0;
17734 _ACEOF
17735 if ac_fn_c_try_link "$LINENO"; then :
17736 ac_cv_lib_c_fstat=yes
17737 else
17738 ac_cv_lib_c_fstat=no
17740 rm -f core conftest.err conftest.$ac_objext \
17741 conftest$ac_exeext conftest.$ac_ext
17742 LIBS=$ac_check_lib_save_LIBS
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_fstat" >&5
17745 $as_echo "$ac_cv_lib_c_fstat" >&6; }
17746 if test "x$ac_cv_lib_c_fstat" = xyes; then :
17748 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
17750 else
17752 $as_echo "#undef HAVE_FSTAT" >>confdefs.h
17756 else
17757 if test "x$ac_cv_lib_c_fstat" = xyes; then
17759 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
17761 elif test "x$ac_cv_func_fstat" = xyes; then
17763 $as_echo "#define HAVE_FSTAT 1" >>confdefs.h
17765 else
17767 $as_echo "#undef HAVE_FSTAT" >>confdefs.h
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getdents" >&5
17774 $as_echo_n "checking m2 front end checking c library for getdents... " >&6; }
17775 if test x$gcc_no_link != xyes; then
17776 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getdents in -lc" >&5
17777 $as_echo_n "checking for getdents in -lc... " >&6; }
17778 if ${ac_cv_lib_c_getdents+:} false; then :
17779 $as_echo_n "(cached) " >&6
17780 else
17781 ac_check_lib_save_LIBS=$LIBS
17782 LIBS="-lc $LIBS"
17783 if test x$gcc_no_link = xyes; then
17784 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17787 /* end confdefs.h. */
17789 /* Override any GCC internal prototype to avoid an error.
17790 Use char because int might match the return type of a GCC
17791 builtin and then its argument prototype would still apply. */
17792 #ifdef __cplusplus
17793 extern "C"
17794 #endif
17795 char getdents ();
17797 main ()
17799 return getdents ();
17801 return 0;
17803 _ACEOF
17804 if ac_fn_c_try_link "$LINENO"; then :
17805 ac_cv_lib_c_getdents=yes
17806 else
17807 ac_cv_lib_c_getdents=no
17809 rm -f core conftest.err conftest.$ac_objext \
17810 conftest$ac_exeext conftest.$ac_ext
17811 LIBS=$ac_check_lib_save_LIBS
17813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getdents" >&5
17814 $as_echo "$ac_cv_lib_c_getdents" >&6; }
17815 if test "x$ac_cv_lib_c_getdents" = xyes; then :
17817 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
17819 else
17821 $as_echo "#undef HAVE_GETDENTS" >>confdefs.h
17825 else
17826 if test "x$ac_cv_lib_c_getdents" = xyes; then
17828 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
17830 elif test "x$ac_cv_func_getdents" = xyes; then
17832 $as_echo "#define HAVE_GETDENTS 1" >>confdefs.h
17834 else
17836 $as_echo "#undef HAVE_GETDENTS" >>confdefs.h
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getgid" >&5
17843 $as_echo_n "checking m2 front end checking c library for getgid... " >&6; }
17844 if test x$gcc_no_link != xyes; then
17845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgid in -lc" >&5
17846 $as_echo_n "checking for getgid in -lc... " >&6; }
17847 if ${ac_cv_lib_c_getgid+:} false; then :
17848 $as_echo_n "(cached) " >&6
17849 else
17850 ac_check_lib_save_LIBS=$LIBS
17851 LIBS="-lc $LIBS"
17852 if test x$gcc_no_link = xyes; then
17853 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17856 /* end confdefs.h. */
17858 /* Override any GCC internal prototype to avoid an error.
17859 Use char because int might match the return type of a GCC
17860 builtin and then its argument prototype would still apply. */
17861 #ifdef __cplusplus
17862 extern "C"
17863 #endif
17864 char getgid ();
17866 main ()
17868 return getgid ();
17870 return 0;
17872 _ACEOF
17873 if ac_fn_c_try_link "$LINENO"; then :
17874 ac_cv_lib_c_getgid=yes
17875 else
17876 ac_cv_lib_c_getgid=no
17878 rm -f core conftest.err conftest.$ac_objext \
17879 conftest$ac_exeext conftest.$ac_ext
17880 LIBS=$ac_check_lib_save_LIBS
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getgid" >&5
17883 $as_echo "$ac_cv_lib_c_getgid" >&6; }
17884 if test "x$ac_cv_lib_c_getgid" = xyes; then :
17886 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
17888 else
17890 $as_echo "#undef HAVE_GETGID" >>confdefs.h
17894 else
17895 if test "x$ac_cv_lib_c_getgid" = xyes; then
17897 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
17899 elif test "x$ac_cv_func_getgid" = xyes; then
17901 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
17903 else
17905 $as_echo "#undef HAVE_GETGID" >>confdefs.h
17911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getpid" >&5
17912 $as_echo_n "checking m2 front end checking c library for getpid... " >&6; }
17913 if test x$gcc_no_link != xyes; then
17914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpid in -lc" >&5
17915 $as_echo_n "checking for getpid in -lc... " >&6; }
17916 if ${ac_cv_lib_c_getpid+:} false; then :
17917 $as_echo_n "(cached) " >&6
17918 else
17919 ac_check_lib_save_LIBS=$LIBS
17920 LIBS="-lc $LIBS"
17921 if test x$gcc_no_link = xyes; then
17922 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17925 /* end confdefs.h. */
17927 /* Override any GCC internal prototype to avoid an error.
17928 Use char because int might match the return type of a GCC
17929 builtin and then its argument prototype would still apply. */
17930 #ifdef __cplusplus
17931 extern "C"
17932 #endif
17933 char getpid ();
17935 main ()
17937 return getpid ();
17939 return 0;
17941 _ACEOF
17942 if ac_fn_c_try_link "$LINENO"; then :
17943 ac_cv_lib_c_getpid=yes
17944 else
17945 ac_cv_lib_c_getpid=no
17947 rm -f core conftest.err conftest.$ac_objext \
17948 conftest$ac_exeext conftest.$ac_ext
17949 LIBS=$ac_check_lib_save_LIBS
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpid" >&5
17952 $as_echo "$ac_cv_lib_c_getpid" >&6; }
17953 if test "x$ac_cv_lib_c_getpid" = xyes; then :
17955 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
17957 else
17959 $as_echo "#undef HAVE_GETPID" >>confdefs.h
17963 else
17964 if test "x$ac_cv_lib_c_getpid" = xyes; then
17966 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
17968 elif test "x$ac_cv_func_getpid" = xyes; then
17970 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
17972 else
17974 $as_echo "#undef HAVE_GETPID" >>confdefs.h
17980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for gettimeofday" >&5
17981 $as_echo_n "checking m2 front end checking c library for gettimeofday... " >&6; }
17982 if test x$gcc_no_link != xyes; then
17983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gettimeofday in -lc" >&5
17984 $as_echo_n "checking for gettimeofday in -lc... " >&6; }
17985 if ${ac_cv_lib_c_gettimeofday+:} false; then :
17986 $as_echo_n "(cached) " >&6
17987 else
17988 ac_check_lib_save_LIBS=$LIBS
17989 LIBS="-lc $LIBS"
17990 if test x$gcc_no_link = xyes; then
17991 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17994 /* end confdefs.h. */
17996 /* Override any GCC internal prototype to avoid an error.
17997 Use char because int might match the return type of a GCC
17998 builtin and then its argument prototype would still apply. */
17999 #ifdef __cplusplus
18000 extern "C"
18001 #endif
18002 char gettimeofday ();
18004 main ()
18006 return gettimeofday ();
18008 return 0;
18010 _ACEOF
18011 if ac_fn_c_try_link "$LINENO"; then :
18012 ac_cv_lib_c_gettimeofday=yes
18013 else
18014 ac_cv_lib_c_gettimeofday=no
18016 rm -f core conftest.err conftest.$ac_objext \
18017 conftest$ac_exeext conftest.$ac_ext
18018 LIBS=$ac_check_lib_save_LIBS
18020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_gettimeofday" >&5
18021 $as_echo "$ac_cv_lib_c_gettimeofday" >&6; }
18022 if test "x$ac_cv_lib_c_gettimeofday" = xyes; then :
18024 $as_echo "#define HAVE_GETTIMEOFD 1" >>confdefs.h
18026 else
18028 $as_echo "#undef HAVE_GETTIMEOFD" >>confdefs.h
18032 else
18033 if test "x$ac_cv_lib_c_gettimeofday" = xyes; then
18035 $as_echo "#define HAVE_GETTIMEOFD 1" >>confdefs.h
18037 elif test "x$ac_cv_func_gettimeofday" = xyes; then
18039 $as_echo "#define HAVE_GETTIMEOFD 1" >>confdefs.h
18041 else
18043 $as_echo "#undef HAVE_GETTIMEOFD" >>confdefs.h
18049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for getuid" >&5
18050 $as_echo_n "checking m2 front end checking c library for getuid... " >&6; }
18051 if test x$gcc_no_link != xyes; then
18052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getuid in -lc" >&5
18053 $as_echo_n "checking for getuid in -lc... " >&6; }
18054 if ${ac_cv_lib_c_getuid+:} false; then :
18055 $as_echo_n "(cached) " >&6
18056 else
18057 ac_check_lib_save_LIBS=$LIBS
18058 LIBS="-lc $LIBS"
18059 if test x$gcc_no_link = xyes; then
18060 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18063 /* end confdefs.h. */
18065 /* Override any GCC internal prototype to avoid an error.
18066 Use char because int might match the return type of a GCC
18067 builtin and then its argument prototype would still apply. */
18068 #ifdef __cplusplus
18069 extern "C"
18070 #endif
18071 char getuid ();
18073 main ()
18075 return getuid ();
18077 return 0;
18079 _ACEOF
18080 if ac_fn_c_try_link "$LINENO"; then :
18081 ac_cv_lib_c_getuid=yes
18082 else
18083 ac_cv_lib_c_getuid=no
18085 rm -f core conftest.err conftest.$ac_objext \
18086 conftest$ac_exeext conftest.$ac_ext
18087 LIBS=$ac_check_lib_save_LIBS
18089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getuid" >&5
18090 $as_echo "$ac_cv_lib_c_getuid" >&6; }
18091 if test "x$ac_cv_lib_c_getuid" = xyes; then :
18093 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
18095 else
18097 $as_echo "#undef HAVE_GETUID" >>confdefs.h
18101 else
18102 if test "x$ac_cv_lib_c_getuid" = xyes; then
18104 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
18106 elif test "x$ac_cv_func_getuid" = xyes; then
18108 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
18110 else
18112 $as_echo "#undef HAVE_GETUID" >>confdefs.h
18118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for ioctl" >&5
18119 $as_echo_n "checking m2 front end checking c library for ioctl... " >&6; }
18120 if test x$gcc_no_link != xyes; then
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ioctl in -lc" >&5
18122 $as_echo_n "checking for ioctl in -lc... " >&6; }
18123 if ${ac_cv_lib_c_ioctl+:} false; then :
18124 $as_echo_n "(cached) " >&6
18125 else
18126 ac_check_lib_save_LIBS=$LIBS
18127 LIBS="-lc $LIBS"
18128 if test x$gcc_no_link = xyes; then
18129 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18132 /* end confdefs.h. */
18134 /* Override any GCC internal prototype to avoid an error.
18135 Use char because int might match the return type of a GCC
18136 builtin and then its argument prototype would still apply. */
18137 #ifdef __cplusplus
18138 extern "C"
18139 #endif
18140 char ioctl ();
18142 main ()
18144 return ioctl ();
18146 return 0;
18148 _ACEOF
18149 if ac_fn_c_try_link "$LINENO"; then :
18150 ac_cv_lib_c_ioctl=yes
18151 else
18152 ac_cv_lib_c_ioctl=no
18154 rm -f core conftest.err conftest.$ac_objext \
18155 conftest$ac_exeext conftest.$ac_ext
18156 LIBS=$ac_check_lib_save_LIBS
18158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_ioctl" >&5
18159 $as_echo "$ac_cv_lib_c_ioctl" >&6; }
18160 if test "x$ac_cv_lib_c_ioctl" = xyes; then :
18162 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
18164 else
18166 $as_echo "#undef HAVE_IOCTL" >>confdefs.h
18170 else
18171 if test "x$ac_cv_lib_c_ioctl" = xyes; then
18173 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
18175 elif test "x$ac_cv_func_ioctl" = xyes; then
18177 $as_echo "#define HAVE_IOCTL 1" >>confdefs.h
18179 else
18181 $as_echo "#undef HAVE_IOCTL" >>confdefs.h
18187 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for kill" >&5
18188 $as_echo_n "checking m2 front end checking c library for kill... " >&6; }
18189 if test x$gcc_no_link != xyes; then
18190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kill in -lc" >&5
18191 $as_echo_n "checking for kill in -lc... " >&6; }
18192 if ${ac_cv_lib_c_kill+:} false; then :
18193 $as_echo_n "(cached) " >&6
18194 else
18195 ac_check_lib_save_LIBS=$LIBS
18196 LIBS="-lc $LIBS"
18197 if test x$gcc_no_link = xyes; then
18198 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18200 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18201 /* end confdefs.h. */
18203 /* Override any GCC internal prototype to avoid an error.
18204 Use char because int might match the return type of a GCC
18205 builtin and then its argument prototype would still apply. */
18206 #ifdef __cplusplus
18207 extern "C"
18208 #endif
18209 char kill ();
18211 main ()
18213 return kill ();
18215 return 0;
18217 _ACEOF
18218 if ac_fn_c_try_link "$LINENO"; then :
18219 ac_cv_lib_c_kill=yes
18220 else
18221 ac_cv_lib_c_kill=no
18223 rm -f core conftest.err conftest.$ac_objext \
18224 conftest$ac_exeext conftest.$ac_ext
18225 LIBS=$ac_check_lib_save_LIBS
18227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_kill" >&5
18228 $as_echo "$ac_cv_lib_c_kill" >&6; }
18229 if test "x$ac_cv_lib_c_kill" = xyes; then :
18231 $as_echo "#define HAVE_KILL 1" >>confdefs.h
18233 else
18235 $as_echo "#undef HAVE_KILL" >>confdefs.h
18239 else
18240 if test "x$ac_cv_lib_c_kill" = xyes; then
18242 $as_echo "#define HAVE_KILL 1" >>confdefs.h
18244 elif test "x$ac_cv_func_kill" = xyes; then
18246 $as_echo "#define HAVE_KILL 1" >>confdefs.h
18248 else
18250 $as_echo "#undef HAVE_KILL" >>confdefs.h
18256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for link" >&5
18257 $as_echo_n "checking m2 front end checking c library for link... " >&6; }
18258 if test x$gcc_no_link != xyes; then
18259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for link in -lc" >&5
18260 $as_echo_n "checking for link in -lc... " >&6; }
18261 if ${ac_cv_lib_c_link+:} false; then :
18262 $as_echo_n "(cached) " >&6
18263 else
18264 ac_check_lib_save_LIBS=$LIBS
18265 LIBS="-lc $LIBS"
18266 if test x$gcc_no_link = xyes; then
18267 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18270 /* end confdefs.h. */
18272 /* Override any GCC internal prototype to avoid an error.
18273 Use char because int might match the return type of a GCC
18274 builtin and then its argument prototype would still apply. */
18275 #ifdef __cplusplus
18276 extern "C"
18277 #endif
18278 char link ();
18280 main ()
18282 return link ();
18284 return 0;
18286 _ACEOF
18287 if ac_fn_c_try_link "$LINENO"; then :
18288 ac_cv_lib_c_link=yes
18289 else
18290 ac_cv_lib_c_link=no
18292 rm -f core conftest.err conftest.$ac_objext \
18293 conftest$ac_exeext conftest.$ac_ext
18294 LIBS=$ac_check_lib_save_LIBS
18296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_link" >&5
18297 $as_echo "$ac_cv_lib_c_link" >&6; }
18298 if test "x$ac_cv_lib_c_link" = xyes; then :
18300 $as_echo "#define HAVE_LINK 1" >>confdefs.h
18302 else
18304 $as_echo "#undef HAVE_LINK" >>confdefs.h
18308 else
18309 if test "x$ac_cv_lib_c_link" = xyes; then
18311 $as_echo "#define HAVE_LINK 1" >>confdefs.h
18313 elif test "x$ac_cv_func_link" = xyes; then
18315 $as_echo "#define HAVE_LINK 1" >>confdefs.h
18317 else
18319 $as_echo "#undef HAVE_LINK" >>confdefs.h
18325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for lseek" >&5
18326 $as_echo_n "checking m2 front end checking c library for lseek... " >&6; }
18327 if test x$gcc_no_link != xyes; then
18328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lseek in -lc" >&5
18329 $as_echo_n "checking for lseek in -lc... " >&6; }
18330 if ${ac_cv_lib_c_lseek+:} false; then :
18331 $as_echo_n "(cached) " >&6
18332 else
18333 ac_check_lib_save_LIBS=$LIBS
18334 LIBS="-lc $LIBS"
18335 if test x$gcc_no_link = xyes; then
18336 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18339 /* end confdefs.h. */
18341 /* Override any GCC internal prototype to avoid an error.
18342 Use char because int might match the return type of a GCC
18343 builtin and then its argument prototype would still apply. */
18344 #ifdef __cplusplus
18345 extern "C"
18346 #endif
18347 char lseek ();
18349 main ()
18351 return lseek ();
18353 return 0;
18355 _ACEOF
18356 if ac_fn_c_try_link "$LINENO"; then :
18357 ac_cv_lib_c_lseek=yes
18358 else
18359 ac_cv_lib_c_lseek=no
18361 rm -f core conftest.err conftest.$ac_objext \
18362 conftest$ac_exeext conftest.$ac_ext
18363 LIBS=$ac_check_lib_save_LIBS
18365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_lseek" >&5
18366 $as_echo "$ac_cv_lib_c_lseek" >&6; }
18367 if test "x$ac_cv_lib_c_lseek" = xyes; then :
18369 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
18371 else
18373 $as_echo "#undef HAVE_LSEEK" >>confdefs.h
18377 else
18378 if test "x$ac_cv_lib_c_lseek" = xyes; then
18380 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
18382 elif test "x$ac_cv_func_lseek" = xyes; then
18384 $as_echo "#define HAVE_LSEEK 1" >>confdefs.h
18386 else
18388 $as_echo "#undef HAVE_LSEEK" >>confdefs.h
18394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for open" >&5
18395 $as_echo_n "checking m2 front end checking c library for open... " >&6; }
18396 if test x$gcc_no_link != xyes; then
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for open in -lc" >&5
18398 $as_echo_n "checking for open in -lc... " >&6; }
18399 if ${ac_cv_lib_c_open+:} false; then :
18400 $as_echo_n "(cached) " >&6
18401 else
18402 ac_check_lib_save_LIBS=$LIBS
18403 LIBS="-lc $LIBS"
18404 if test x$gcc_no_link = xyes; then
18405 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18408 /* end confdefs.h. */
18410 /* Override any GCC internal prototype to avoid an error.
18411 Use char because int might match the return type of a GCC
18412 builtin and then its argument prototype would still apply. */
18413 #ifdef __cplusplus
18414 extern "C"
18415 #endif
18416 char open ();
18418 main ()
18420 return open ();
18422 return 0;
18424 _ACEOF
18425 if ac_fn_c_try_link "$LINENO"; then :
18426 ac_cv_lib_c_open=yes
18427 else
18428 ac_cv_lib_c_open=no
18430 rm -f core conftest.err conftest.$ac_objext \
18431 conftest$ac_exeext conftest.$ac_ext
18432 LIBS=$ac_check_lib_save_LIBS
18434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_open" >&5
18435 $as_echo "$ac_cv_lib_c_open" >&6; }
18436 if test "x$ac_cv_lib_c_open" = xyes; then :
18438 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
18440 else
18442 $as_echo "#undef HAVE_OPEN" >>confdefs.h
18446 else
18447 if test "x$ac_cv_lib_c_open" = xyes; then
18449 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
18451 elif test "x$ac_cv_func_open" = xyes; then
18453 $as_echo "#define HAVE_OPEN 1" >>confdefs.h
18455 else
18457 $as_echo "#undef HAVE_OPEN" >>confdefs.h
18463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for pause" >&5
18464 $as_echo_n "checking m2 front end checking c library for pause... " >&6; }
18465 if test x$gcc_no_link != xyes; then
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pause in -lc" >&5
18467 $as_echo_n "checking for pause in -lc... " >&6; }
18468 if ${ac_cv_lib_c_pause+:} false; then :
18469 $as_echo_n "(cached) " >&6
18470 else
18471 ac_check_lib_save_LIBS=$LIBS
18472 LIBS="-lc $LIBS"
18473 if test x$gcc_no_link = xyes; then
18474 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18477 /* end confdefs.h. */
18479 /* Override any GCC internal prototype to avoid an error.
18480 Use char because int might match the return type of a GCC
18481 builtin and then its argument prototype would still apply. */
18482 #ifdef __cplusplus
18483 extern "C"
18484 #endif
18485 char pause ();
18487 main ()
18489 return pause ();
18491 return 0;
18493 _ACEOF
18494 if ac_fn_c_try_link "$LINENO"; then :
18495 ac_cv_lib_c_pause=yes
18496 else
18497 ac_cv_lib_c_pause=no
18499 rm -f core conftest.err conftest.$ac_objext \
18500 conftest$ac_exeext conftest.$ac_ext
18501 LIBS=$ac_check_lib_save_LIBS
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pause" >&5
18504 $as_echo "$ac_cv_lib_c_pause" >&6; }
18505 if test "x$ac_cv_lib_c_pause" = xyes; then :
18507 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
18509 else
18511 $as_echo "#undef HAVE_PAUSE" >>confdefs.h
18515 else
18516 if test "x$ac_cv_lib_c_pause" = xyes; then
18518 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
18520 elif test "x$ac_cv_func_pause" = xyes; then
18522 $as_echo "#define HAVE_PAUSE 1" >>confdefs.h
18524 else
18526 $as_echo "#undef HAVE_PAUSE" >>confdefs.h
18532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for pipe" >&5
18533 $as_echo_n "checking m2 front end checking c library for pipe... " >&6; }
18534 if test x$gcc_no_link != xyes; then
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pipe in -lc" >&5
18536 $as_echo_n "checking for pipe in -lc... " >&6; }
18537 if ${ac_cv_lib_c_pipe+:} false; then :
18538 $as_echo_n "(cached) " >&6
18539 else
18540 ac_check_lib_save_LIBS=$LIBS
18541 LIBS="-lc $LIBS"
18542 if test x$gcc_no_link = xyes; then
18543 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18546 /* end confdefs.h. */
18548 /* Override any GCC internal prototype to avoid an error.
18549 Use char because int might match the return type of a GCC
18550 builtin and then its argument prototype would still apply. */
18551 #ifdef __cplusplus
18552 extern "C"
18553 #endif
18554 char pipe ();
18556 main ()
18558 return pipe ();
18560 return 0;
18562 _ACEOF
18563 if ac_fn_c_try_link "$LINENO"; then :
18564 ac_cv_lib_c_pipe=yes
18565 else
18566 ac_cv_lib_c_pipe=no
18568 rm -f core conftest.err conftest.$ac_objext \
18569 conftest$ac_exeext conftest.$ac_ext
18570 LIBS=$ac_check_lib_save_LIBS
18572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_pipe" >&5
18573 $as_echo "$ac_cv_lib_c_pipe" >&6; }
18574 if test "x$ac_cv_lib_c_pipe" = xyes; then :
18576 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
18578 else
18580 $as_echo "#undef HAVE_PIPE" >>confdefs.h
18584 else
18585 if test "x$ac_cv_lib_c_pipe" = xyes; then
18587 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
18589 elif test "x$ac_cv_func_pipe" = xyes; then
18591 $as_echo "#define HAVE_PIPE 1" >>confdefs.h
18593 else
18595 $as_echo "#undef HAVE_PIPE" >>confdefs.h
18601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for rand" >&5
18602 $as_echo_n "checking m2 front end checking c library for rand... " >&6; }
18603 if test x$gcc_no_link != xyes; then
18604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rand in -lc" >&5
18605 $as_echo_n "checking for rand in -lc... " >&6; }
18606 if ${ac_cv_lib_c_rand+:} false; then :
18607 $as_echo_n "(cached) " >&6
18608 else
18609 ac_check_lib_save_LIBS=$LIBS
18610 LIBS="-lc $LIBS"
18611 if test x$gcc_no_link = xyes; then
18612 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18614 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18615 /* end confdefs.h. */
18617 /* Override any GCC internal prototype to avoid an error.
18618 Use char because int might match the return type of a GCC
18619 builtin and then its argument prototype would still apply. */
18620 #ifdef __cplusplus
18621 extern "C"
18622 #endif
18623 char rand ();
18625 main ()
18627 return rand ();
18629 return 0;
18631 _ACEOF
18632 if ac_fn_c_try_link "$LINENO"; then :
18633 ac_cv_lib_c_rand=yes
18634 else
18635 ac_cv_lib_c_rand=no
18637 rm -f core conftest.err conftest.$ac_objext \
18638 conftest$ac_exeext conftest.$ac_ext
18639 LIBS=$ac_check_lib_save_LIBS
18641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_rand" >&5
18642 $as_echo "$ac_cv_lib_c_rand" >&6; }
18643 if test "x$ac_cv_lib_c_rand" = xyes; then :
18645 $as_echo "#define HAVE_RAND 1" >>confdefs.h
18647 else
18649 $as_echo "#undef HAVE_RAND" >>confdefs.h
18653 else
18654 if test "x$ac_cv_lib_c_rand" = xyes; then
18656 $as_echo "#define HAVE_RAND 1" >>confdefs.h
18658 elif test "x$ac_cv_func_rand" = xyes; then
18660 $as_echo "#define HAVE_RAND 1" >>confdefs.h
18662 else
18664 $as_echo "#undef HAVE_RAND" >>confdefs.h
18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for read" >&5
18671 $as_echo_n "checking m2 front end checking c library for read... " >&6; }
18672 if test x$gcc_no_link != xyes; then
18673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for read in -lc" >&5
18674 $as_echo_n "checking for read in -lc... " >&6; }
18675 if ${ac_cv_lib_c_read+:} false; then :
18676 $as_echo_n "(cached) " >&6
18677 else
18678 ac_check_lib_save_LIBS=$LIBS
18679 LIBS="-lc $LIBS"
18680 if test x$gcc_no_link = xyes; then
18681 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18684 /* end confdefs.h. */
18686 /* Override any GCC internal prototype to avoid an error.
18687 Use char because int might match the return type of a GCC
18688 builtin and then its argument prototype would still apply. */
18689 #ifdef __cplusplus
18690 extern "C"
18691 #endif
18692 char read ();
18694 main ()
18696 return read ();
18698 return 0;
18700 _ACEOF
18701 if ac_fn_c_try_link "$LINENO"; then :
18702 ac_cv_lib_c_read=yes
18703 else
18704 ac_cv_lib_c_read=no
18706 rm -f core conftest.err conftest.$ac_objext \
18707 conftest$ac_exeext conftest.$ac_ext
18708 LIBS=$ac_check_lib_save_LIBS
18710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_read" >&5
18711 $as_echo "$ac_cv_lib_c_read" >&6; }
18712 if test "x$ac_cv_lib_c_read" = xyes; then :
18714 $as_echo "#define HAVE_READ 1" >>confdefs.h
18716 else
18718 $as_echo "#undef HAVE_READ" >>confdefs.h
18722 else
18723 if test "x$ac_cv_lib_c_read" = xyes; then
18725 $as_echo "#define HAVE_READ 1" >>confdefs.h
18727 elif test "x$ac_cv_func_read" = xyes; then
18729 $as_echo "#define HAVE_READ 1" >>confdefs.h
18731 else
18733 $as_echo "#undef HAVE_READ" >>confdefs.h
18739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for select" >&5
18740 $as_echo_n "checking m2 front end checking c library for select... " >&6; }
18741 if test x$gcc_no_link != xyes; then
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for select in -lc" >&5
18743 $as_echo_n "checking for select in -lc... " >&6; }
18744 if ${ac_cv_lib_c_select+:} false; then :
18745 $as_echo_n "(cached) " >&6
18746 else
18747 ac_check_lib_save_LIBS=$LIBS
18748 LIBS="-lc $LIBS"
18749 if test x$gcc_no_link = xyes; then
18750 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18753 /* end confdefs.h. */
18755 /* Override any GCC internal prototype to avoid an error.
18756 Use char because int might match the return type of a GCC
18757 builtin and then its argument prototype would still apply. */
18758 #ifdef __cplusplus
18759 extern "C"
18760 #endif
18761 char select ();
18763 main ()
18765 return select ();
18767 return 0;
18769 _ACEOF
18770 if ac_fn_c_try_link "$LINENO"; then :
18771 ac_cv_lib_c_select=yes
18772 else
18773 ac_cv_lib_c_select=no
18775 rm -f core conftest.err conftest.$ac_objext \
18776 conftest$ac_exeext conftest.$ac_ext
18777 LIBS=$ac_check_lib_save_LIBS
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_select" >&5
18780 $as_echo "$ac_cv_lib_c_select" >&6; }
18781 if test "x$ac_cv_lib_c_select" = xyes; then :
18783 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
18785 else
18787 $as_echo "#undef HAVE_SELECT" >>confdefs.h
18791 else
18792 if test "x$ac_cv_lib_c_select" = xyes; then
18794 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
18796 elif test "x$ac_cv_func_select" = xyes; then
18798 $as_echo "#define HAVE_SELECT 1" >>confdefs.h
18800 else
18802 $as_echo "#undef HAVE_SELECT" >>confdefs.h
18808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setitimer" >&5
18809 $as_echo_n "checking m2 front end checking c library for setitimer... " >&6; }
18810 if test x$gcc_no_link != xyes; then
18811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setitimer in -lc" >&5
18812 $as_echo_n "checking for setitimer in -lc... " >&6; }
18813 if ${ac_cv_lib_c_setitimer+:} false; then :
18814 $as_echo_n "(cached) " >&6
18815 else
18816 ac_check_lib_save_LIBS=$LIBS
18817 LIBS="-lc $LIBS"
18818 if test x$gcc_no_link = xyes; then
18819 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18822 /* end confdefs.h. */
18824 /* Override any GCC internal prototype to avoid an error.
18825 Use char because int might match the return type of a GCC
18826 builtin and then its argument prototype would still apply. */
18827 #ifdef __cplusplus
18828 extern "C"
18829 #endif
18830 char setitimer ();
18832 main ()
18834 return setitimer ();
18836 return 0;
18838 _ACEOF
18839 if ac_fn_c_try_link "$LINENO"; then :
18840 ac_cv_lib_c_setitimer=yes
18841 else
18842 ac_cv_lib_c_setitimer=no
18844 rm -f core conftest.err conftest.$ac_objext \
18845 conftest$ac_exeext conftest.$ac_ext
18846 LIBS=$ac_check_lib_save_LIBS
18848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setitimer" >&5
18849 $as_echo "$ac_cv_lib_c_setitimer" >&6; }
18850 if test "x$ac_cv_lib_c_setitimer" = xyes; then :
18852 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
18854 else
18856 $as_echo "#undef HAVE_SETITIMER" >>confdefs.h
18860 else
18861 if test "x$ac_cv_lib_c_setitimer" = xyes; then
18863 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
18865 elif test "x$ac_cv_func_setitimer" = xyes; then
18867 $as_echo "#define HAVE_SETITIMER 1" >>confdefs.h
18869 else
18871 $as_echo "#undef HAVE_SETITIMER" >>confdefs.h
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setgid" >&5
18878 $as_echo_n "checking m2 front end checking c library for setgid... " >&6; }
18879 if test x$gcc_no_link != xyes; then
18880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setgid in -lc" >&5
18881 $as_echo_n "checking for setgid in -lc... " >&6; }
18882 if ${ac_cv_lib_c_setgid+:} false; then :
18883 $as_echo_n "(cached) " >&6
18884 else
18885 ac_check_lib_save_LIBS=$LIBS
18886 LIBS="-lc $LIBS"
18887 if test x$gcc_no_link = xyes; then
18888 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18891 /* end confdefs.h. */
18893 /* Override any GCC internal prototype to avoid an error.
18894 Use char because int might match the return type of a GCC
18895 builtin and then its argument prototype would still apply. */
18896 #ifdef __cplusplus
18897 extern "C"
18898 #endif
18899 char setgid ();
18901 main ()
18903 return setgid ();
18905 return 0;
18907 _ACEOF
18908 if ac_fn_c_try_link "$LINENO"; then :
18909 ac_cv_lib_c_setgid=yes
18910 else
18911 ac_cv_lib_c_setgid=no
18913 rm -f core conftest.err conftest.$ac_objext \
18914 conftest$ac_exeext conftest.$ac_ext
18915 LIBS=$ac_check_lib_save_LIBS
18917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setgid" >&5
18918 $as_echo "$ac_cv_lib_c_setgid" >&6; }
18919 if test "x$ac_cv_lib_c_setgid" = xyes; then :
18921 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
18923 else
18925 $as_echo "#undef HAVE_SETGID" >>confdefs.h
18929 else
18930 if test "x$ac_cv_lib_c_setgid" = xyes; then
18932 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
18934 elif test "x$ac_cv_func_setgid" = xyes; then
18936 $as_echo "#define HAVE_SETGID 1" >>confdefs.h
18938 else
18940 $as_echo "#undef HAVE_SETGID" >>confdefs.h
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for setuid" >&5
18947 $as_echo_n "checking m2 front end checking c library for setuid... " >&6; }
18948 if test x$gcc_no_link != xyes; then
18949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for setuid in -lc" >&5
18950 $as_echo_n "checking for setuid in -lc... " >&6; }
18951 if ${ac_cv_lib_c_setuid+:} false; then :
18952 $as_echo_n "(cached) " >&6
18953 else
18954 ac_check_lib_save_LIBS=$LIBS
18955 LIBS="-lc $LIBS"
18956 if test x$gcc_no_link = xyes; then
18957 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18960 /* end confdefs.h. */
18962 /* Override any GCC internal prototype to avoid an error.
18963 Use char because int might match the return type of a GCC
18964 builtin and then its argument prototype would still apply. */
18965 #ifdef __cplusplus
18966 extern "C"
18967 #endif
18968 char setuid ();
18970 main ()
18972 return setuid ();
18974 return 0;
18976 _ACEOF
18977 if ac_fn_c_try_link "$LINENO"; then :
18978 ac_cv_lib_c_setuid=yes
18979 else
18980 ac_cv_lib_c_setuid=no
18982 rm -f core conftest.err conftest.$ac_objext \
18983 conftest$ac_exeext conftest.$ac_ext
18984 LIBS=$ac_check_lib_save_LIBS
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_setuid" >&5
18987 $as_echo "$ac_cv_lib_c_setuid" >&6; }
18988 if test "x$ac_cv_lib_c_setuid" = xyes; then :
18990 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
18992 else
18994 $as_echo "#undef HAVE_SETUID" >>confdefs.h
18998 else
18999 if test "x$ac_cv_lib_c_setuid" = xyes; then
19001 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
19003 elif test "x$ac_cv_func_setuid" = xyes; then
19005 $as_echo "#define HAVE_SETUID 1" >>confdefs.h
19007 else
19009 $as_echo "#undef HAVE_SETUID" >>confdefs.h
19015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for stat" >&5
19016 $as_echo_n "checking m2 front end checking c library for stat... " >&6; }
19017 if test x$gcc_no_link != xyes; then
19018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stat in -lc" >&5
19019 $as_echo_n "checking for stat in -lc... " >&6; }
19020 if ${ac_cv_lib_c_stat+:} false; then :
19021 $as_echo_n "(cached) " >&6
19022 else
19023 ac_check_lib_save_LIBS=$LIBS
19024 LIBS="-lc $LIBS"
19025 if test x$gcc_no_link = xyes; then
19026 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19029 /* end confdefs.h. */
19031 /* Override any GCC internal prototype to avoid an error.
19032 Use char because int might match the return type of a GCC
19033 builtin and then its argument prototype would still apply. */
19034 #ifdef __cplusplus
19035 extern "C"
19036 #endif
19037 char stat ();
19039 main ()
19041 return stat ();
19043 return 0;
19045 _ACEOF
19046 if ac_fn_c_try_link "$LINENO"; then :
19047 ac_cv_lib_c_stat=yes
19048 else
19049 ac_cv_lib_c_stat=no
19051 rm -f core conftest.err conftest.$ac_objext \
19052 conftest$ac_exeext conftest.$ac_ext
19053 LIBS=$ac_check_lib_save_LIBS
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_stat" >&5
19056 $as_echo "$ac_cv_lib_c_stat" >&6; }
19057 if test "x$ac_cv_lib_c_stat" = xyes; then :
19059 $as_echo "#define HAVE_STAT 1" >>confdefs.h
19061 else
19063 $as_echo "#undef HAVE_STAT" >>confdefs.h
19067 else
19068 if test "x$ac_cv_lib_c_stat" = xyes; then
19070 $as_echo "#define HAVE_STAT 1" >>confdefs.h
19072 elif test "x$ac_cv_func_stat" = xyes; then
19074 $as_echo "#define HAVE_STAT 1" >>confdefs.h
19076 else
19078 $as_echo "#undef HAVE_STAT" >>confdefs.h
19084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strsignal" >&5
19085 $as_echo_n "checking m2 front end checking c library for strsignal... " >&6; }
19086 if test x$gcc_no_link != xyes; then
19087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strsignal in -lc" >&5
19088 $as_echo_n "checking for strsignal in -lc... " >&6; }
19089 if ${ac_cv_lib_c_strsignal+:} false; then :
19090 $as_echo_n "(cached) " >&6
19091 else
19092 ac_check_lib_save_LIBS=$LIBS
19093 LIBS="-lc $LIBS"
19094 if test x$gcc_no_link = xyes; then
19095 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19097 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19098 /* end confdefs.h. */
19100 /* Override any GCC internal prototype to avoid an error.
19101 Use char because int might match the return type of a GCC
19102 builtin and then its argument prototype would still apply. */
19103 #ifdef __cplusplus
19104 extern "C"
19105 #endif
19106 char strsignal ();
19108 main ()
19110 return strsignal ();
19112 return 0;
19114 _ACEOF
19115 if ac_fn_c_try_link "$LINENO"; then :
19116 ac_cv_lib_c_strsignal=yes
19117 else
19118 ac_cv_lib_c_strsignal=no
19120 rm -f core conftest.err conftest.$ac_objext \
19121 conftest$ac_exeext conftest.$ac_ext
19122 LIBS=$ac_check_lib_save_LIBS
19124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strsignal" >&5
19125 $as_echo "$ac_cv_lib_c_strsignal" >&6; }
19126 if test "x$ac_cv_lib_c_strsignal" = xyes; then :
19128 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
19130 else
19132 $as_echo "#undef HAVE_STRSIGNAL" >>confdefs.h
19136 else
19137 if test "x$ac_cv_lib_c_strsignal" = xyes; then
19139 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
19141 elif test "x$ac_cv_func_strsignal" = xyes; then
19143 $as_echo "#define HAVE_STRSIGNAL 1" >>confdefs.h
19145 else
19147 $as_echo "#undef HAVE_STRSIGNAL" >>confdefs.h
19153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strtod" >&5
19154 $as_echo_n "checking m2 front end checking c library for strtod... " >&6; }
19155 if test x$gcc_no_link != xyes; then
19156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtod in -lc" >&5
19157 $as_echo_n "checking for strtod in -lc... " >&6; }
19158 if ${ac_cv_lib_c_strtod+:} false; then :
19159 $as_echo_n "(cached) " >&6
19160 else
19161 ac_check_lib_save_LIBS=$LIBS
19162 LIBS="-lc $LIBS"
19163 if test x$gcc_no_link = xyes; then
19164 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19167 /* end confdefs.h. */
19169 /* Override any GCC internal prototype to avoid an error.
19170 Use char because int might match the return type of a GCC
19171 builtin and then its argument prototype would still apply. */
19172 #ifdef __cplusplus
19173 extern "C"
19174 #endif
19175 char strtod ();
19177 main ()
19179 return strtod ();
19181 return 0;
19183 _ACEOF
19184 if ac_fn_c_try_link "$LINENO"; then :
19185 ac_cv_lib_c_strtod=yes
19186 else
19187 ac_cv_lib_c_strtod=no
19189 rm -f core conftest.err conftest.$ac_objext \
19190 conftest$ac_exeext conftest.$ac_ext
19191 LIBS=$ac_check_lib_save_LIBS
19193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strtod" >&5
19194 $as_echo "$ac_cv_lib_c_strtod" >&6; }
19195 if test "x$ac_cv_lib_c_strtod" = xyes; then :
19197 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
19199 else
19201 $as_echo "#undef HAVE_STRTOD" >>confdefs.h
19205 else
19206 if test "x$ac_cv_lib_c_strtod" = xyes; then
19208 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
19210 elif test "x$ac_cv_func_strtod" = xyes; then
19212 $as_echo "#define HAVE_STRTOD 1" >>confdefs.h
19214 else
19216 $as_echo "#undef HAVE_STRTOD" >>confdefs.h
19222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for strtold" >&5
19223 $as_echo_n "checking m2 front end checking c library for strtold... " >&6; }
19224 if test x$gcc_no_link != xyes; then
19225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtold in -lc" >&5
19226 $as_echo_n "checking for strtold in -lc... " >&6; }
19227 if ${ac_cv_lib_c_strtold+:} false; then :
19228 $as_echo_n "(cached) " >&6
19229 else
19230 ac_check_lib_save_LIBS=$LIBS
19231 LIBS="-lc $LIBS"
19232 if test x$gcc_no_link = xyes; then
19233 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19236 /* end confdefs.h. */
19238 /* Override any GCC internal prototype to avoid an error.
19239 Use char because int might match the return type of a GCC
19240 builtin and then its argument prototype would still apply. */
19241 #ifdef __cplusplus
19242 extern "C"
19243 #endif
19244 char strtold ();
19246 main ()
19248 return strtold ();
19250 return 0;
19252 _ACEOF
19253 if ac_fn_c_try_link "$LINENO"; then :
19254 ac_cv_lib_c_strtold=yes
19255 else
19256 ac_cv_lib_c_strtold=no
19258 rm -f core conftest.err conftest.$ac_objext \
19259 conftest$ac_exeext conftest.$ac_ext
19260 LIBS=$ac_check_lib_save_LIBS
19262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_strtold" >&5
19263 $as_echo "$ac_cv_lib_c_strtold" >&6; }
19264 if test "x$ac_cv_lib_c_strtold" = xyes; then :
19266 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
19268 else
19270 $as_echo "#undef HAVE_STRTOLD" >>confdefs.h
19274 else
19275 if test "x$ac_cv_lib_c_strtold" = xyes; then
19277 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
19279 elif test "x$ac_cv_func_strtold" = xyes; then
19281 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
19283 else
19285 $as_echo "#undef HAVE_STRTOLD" >>confdefs.h
19291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for times" >&5
19292 $as_echo_n "checking m2 front end checking c library for times... " >&6; }
19293 if test x$gcc_no_link != xyes; then
19294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for times in -lc" >&5
19295 $as_echo_n "checking for times in -lc... " >&6; }
19296 if ${ac_cv_lib_c_times+:} false; then :
19297 $as_echo_n "(cached) " >&6
19298 else
19299 ac_check_lib_save_LIBS=$LIBS
19300 LIBS="-lc $LIBS"
19301 if test x$gcc_no_link = xyes; then
19302 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19305 /* end confdefs.h. */
19307 /* Override any GCC internal prototype to avoid an error.
19308 Use char because int might match the return type of a GCC
19309 builtin and then its argument prototype would still apply. */
19310 #ifdef __cplusplus
19311 extern "C"
19312 #endif
19313 char times ();
19315 main ()
19317 return times ();
19319 return 0;
19321 _ACEOF
19322 if ac_fn_c_try_link "$LINENO"; then :
19323 ac_cv_lib_c_times=yes
19324 else
19325 ac_cv_lib_c_times=no
19327 rm -f core conftest.err conftest.$ac_objext \
19328 conftest$ac_exeext conftest.$ac_ext
19329 LIBS=$ac_check_lib_save_LIBS
19331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_times" >&5
19332 $as_echo "$ac_cv_lib_c_times" >&6; }
19333 if test "x$ac_cv_lib_c_times" = xyes; then :
19335 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
19337 else
19339 $as_echo "#undef HAVE_TIMES" >>confdefs.h
19343 else
19344 if test "x$ac_cv_lib_c_times" = xyes; then
19346 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
19348 elif test "x$ac_cv_func_times" = xyes; then
19350 $as_echo "#define HAVE_TIMES 1" >>confdefs.h
19352 else
19354 $as_echo "#undef HAVE_TIMES" >>confdefs.h
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for timezone" >&5
19361 $as_echo_n "checking m2 front end checking c library for timezone... " >&6; }
19362 if test x$gcc_no_link != xyes; then
19363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for timezone in -lc" >&5
19364 $as_echo_n "checking for timezone in -lc... " >&6; }
19365 if ${ac_cv_lib_c_timezone+:} false; then :
19366 $as_echo_n "(cached) " >&6
19367 else
19368 ac_check_lib_save_LIBS=$LIBS
19369 LIBS="-lc $LIBS"
19370 if test x$gcc_no_link = xyes; then
19371 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19374 /* end confdefs.h. */
19376 /* Override any GCC internal prototype to avoid an error.
19377 Use char because int might match the return type of a GCC
19378 builtin and then its argument prototype would still apply. */
19379 #ifdef __cplusplus
19380 extern "C"
19381 #endif
19382 char timezone ();
19384 main ()
19386 return timezone ();
19388 return 0;
19390 _ACEOF
19391 if ac_fn_c_try_link "$LINENO"; then :
19392 ac_cv_lib_c_timezone=yes
19393 else
19394 ac_cv_lib_c_timezone=no
19396 rm -f core conftest.err conftest.$ac_objext \
19397 conftest$ac_exeext conftest.$ac_ext
19398 LIBS=$ac_check_lib_save_LIBS
19400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_timezone" >&5
19401 $as_echo "$ac_cv_lib_c_timezone" >&6; }
19402 if test "x$ac_cv_lib_c_timezone" = xyes; then :
19404 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
19406 else
19408 $as_echo "#undef HAVE_TIMEZONE" >>confdefs.h
19412 else
19413 if test "x$ac_cv_lib_c_timezone" = xyes; then
19415 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
19417 elif test "x$ac_cv_func_timezone" = xyes; then
19419 $as_echo "#define HAVE_TIMEZONE 1" >>confdefs.h
19421 else
19423 $as_echo "#undef HAVE_TIMEZONE" >>confdefs.h
19429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for tzname" >&5
19430 $as_echo_n "checking m2 front end checking c library for tzname... " >&6; }
19431 if test x$gcc_no_link != xyes; then
19432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tzname in -lc" >&5
19433 $as_echo_n "checking for tzname in -lc... " >&6; }
19434 if ${ac_cv_lib_c_tzname+:} false; then :
19435 $as_echo_n "(cached) " >&6
19436 else
19437 ac_check_lib_save_LIBS=$LIBS
19438 LIBS="-lc $LIBS"
19439 if test x$gcc_no_link = xyes; then
19440 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19443 /* end confdefs.h. */
19445 /* Override any GCC internal prototype to avoid an error.
19446 Use char because int might match the return type of a GCC
19447 builtin and then its argument prototype would still apply. */
19448 #ifdef __cplusplus
19449 extern "C"
19450 #endif
19451 char tzname ();
19453 main ()
19455 return tzname ();
19457 return 0;
19459 _ACEOF
19460 if ac_fn_c_try_link "$LINENO"; then :
19461 ac_cv_lib_c_tzname=yes
19462 else
19463 ac_cv_lib_c_tzname=no
19465 rm -f core conftest.err conftest.$ac_objext \
19466 conftest$ac_exeext conftest.$ac_ext
19467 LIBS=$ac_check_lib_save_LIBS
19469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_tzname" >&5
19470 $as_echo "$ac_cv_lib_c_tzname" >&6; }
19471 if test "x$ac_cv_lib_c_tzname" = xyes; then :
19473 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19475 else
19477 $as_echo "#undef HAVE_TZNAME" >>confdefs.h
19481 else
19482 if test "x$ac_cv_lib_c_tzname" = xyes; then
19484 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19486 elif test "x$ac_cv_func_tzname" = xyes; then
19488 $as_echo "#define HAVE_TZNAME 1" >>confdefs.h
19490 else
19492 $as_echo "#undef HAVE_TZNAME" >>confdefs.h
19498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for unlink" >&5
19499 $as_echo_n "checking m2 front end checking c library for unlink... " >&6; }
19500 if test x$gcc_no_link != xyes; then
19501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unlink in -lc" >&5
19502 $as_echo_n "checking for unlink in -lc... " >&6; }
19503 if ${ac_cv_lib_c_unlink+:} false; then :
19504 $as_echo_n "(cached) " >&6
19505 else
19506 ac_check_lib_save_LIBS=$LIBS
19507 LIBS="-lc $LIBS"
19508 if test x$gcc_no_link = xyes; then
19509 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19512 /* end confdefs.h. */
19514 /* Override any GCC internal prototype to avoid an error.
19515 Use char because int might match the return type of a GCC
19516 builtin and then its argument prototype would still apply. */
19517 #ifdef __cplusplus
19518 extern "C"
19519 #endif
19520 char unlink ();
19522 main ()
19524 return unlink ();
19526 return 0;
19528 _ACEOF
19529 if ac_fn_c_try_link "$LINENO"; then :
19530 ac_cv_lib_c_unlink=yes
19531 else
19532 ac_cv_lib_c_unlink=no
19534 rm -f core conftest.err conftest.$ac_objext \
19535 conftest$ac_exeext conftest.$ac_ext
19536 LIBS=$ac_check_lib_save_LIBS
19538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_unlink" >&5
19539 $as_echo "$ac_cv_lib_c_unlink" >&6; }
19540 if test "x$ac_cv_lib_c_unlink" = xyes; then :
19542 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
19544 else
19546 $as_echo "#undef HAVE_UNLINK" >>confdefs.h
19550 else
19551 if test "x$ac_cv_lib_c_unlink" = xyes; then
19553 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
19555 elif test "x$ac_cv_func_unlink" = xyes; then
19557 $as_echo "#define HAVE_UNLINK 1" >>confdefs.h
19559 else
19561 $as_echo "#undef HAVE_UNLINK" >>confdefs.h
19567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for wait" >&5
19568 $as_echo_n "checking m2 front end checking c library for wait... " >&6; }
19569 if test x$gcc_no_link != xyes; then
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait in -lc" >&5
19571 $as_echo_n "checking for wait in -lc... " >&6; }
19572 if ${ac_cv_lib_c_wait+:} false; then :
19573 $as_echo_n "(cached) " >&6
19574 else
19575 ac_check_lib_save_LIBS=$LIBS
19576 LIBS="-lc $LIBS"
19577 if test x$gcc_no_link = xyes; then
19578 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19581 /* end confdefs.h. */
19583 /* Override any GCC internal prototype to avoid an error.
19584 Use char because int might match the return type of a GCC
19585 builtin and then its argument prototype would still apply. */
19586 #ifdef __cplusplus
19587 extern "C"
19588 #endif
19589 char wait ();
19591 main ()
19593 return wait ();
19595 return 0;
19597 _ACEOF
19598 if ac_fn_c_try_link "$LINENO"; then :
19599 ac_cv_lib_c_wait=yes
19600 else
19601 ac_cv_lib_c_wait=no
19603 rm -f core conftest.err conftest.$ac_objext \
19604 conftest$ac_exeext conftest.$ac_ext
19605 LIBS=$ac_check_lib_save_LIBS
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_wait" >&5
19608 $as_echo "$ac_cv_lib_c_wait" >&6; }
19609 if test "x$ac_cv_lib_c_wait" = xyes; then :
19611 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
19613 else
19615 $as_echo "#undef HAVE_WAIT" >>confdefs.h
19619 else
19620 if test "x$ac_cv_lib_c_wait" = xyes; then
19622 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
19624 elif test "x$ac_cv_func_wait" = xyes; then
19626 $as_echo "#define HAVE_WAIT 1" >>confdefs.h
19628 else
19630 $as_echo "#undef HAVE_WAIT" >>confdefs.h
19636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking c library for write" >&5
19637 $as_echo_n "checking m2 front end checking c library for write... " >&6; }
19638 if test x$gcc_no_link != xyes; then
19639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for write in -lc" >&5
19640 $as_echo_n "checking for write in -lc... " >&6; }
19641 if ${ac_cv_lib_c_write+:} false; then :
19642 $as_echo_n "(cached) " >&6
19643 else
19644 ac_check_lib_save_LIBS=$LIBS
19645 LIBS="-lc $LIBS"
19646 if test x$gcc_no_link = xyes; then
19647 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19650 /* end confdefs.h. */
19652 /* Override any GCC internal prototype to avoid an error.
19653 Use char because int might match the return type of a GCC
19654 builtin and then its argument prototype would still apply. */
19655 #ifdef __cplusplus
19656 extern "C"
19657 #endif
19658 char write ();
19660 main ()
19662 return write ();
19664 return 0;
19666 _ACEOF
19667 if ac_fn_c_try_link "$LINENO"; then :
19668 ac_cv_lib_c_write=yes
19669 else
19670 ac_cv_lib_c_write=no
19672 rm -f core conftest.err conftest.$ac_objext \
19673 conftest$ac_exeext conftest.$ac_ext
19674 LIBS=$ac_check_lib_save_LIBS
19676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_write" >&5
19677 $as_echo "$ac_cv_lib_c_write" >&6; }
19678 if test "x$ac_cv_lib_c_write" = xyes; then :
19680 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
19682 else
19684 $as_echo "#undef HAVE_WRITE" >>confdefs.h
19688 else
19689 if test "x$ac_cv_lib_c_write" = xyes; then
19691 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
19693 elif test "x$ac_cv_func_write" = xyes; then
19695 $as_echo "#define HAVE_WRITE 1" >>confdefs.h
19697 else
19699 $as_echo "#undef HAVE_WRITE" >>confdefs.h
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbit" >&5
19707 $as_echo_n "checking m2 front end checking m library for signbit... " >&6; }
19708 if test x$gcc_no_link != xyes; then
19709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbit in -lm" >&5
19710 $as_echo_n "checking for signbit in -lm... " >&6; }
19711 if ${ac_cv_lib_m_signbit+:} false; then :
19712 $as_echo_n "(cached) " >&6
19713 else
19714 ac_check_lib_save_LIBS=$LIBS
19715 LIBS="-lm $LIBS"
19716 if test x$gcc_no_link = xyes; then
19717 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19720 /* end confdefs.h. */
19722 /* Override any GCC internal prototype to avoid an error.
19723 Use char because int might match the return type of a GCC
19724 builtin and then its argument prototype would still apply. */
19725 #ifdef __cplusplus
19726 extern "C"
19727 #endif
19728 char signbit ();
19730 main ()
19732 return signbit ();
19734 return 0;
19736 _ACEOF
19737 if ac_fn_c_try_link "$LINENO"; then :
19738 ac_cv_lib_m_signbit=yes
19739 else
19740 ac_cv_lib_m_signbit=no
19742 rm -f core conftest.err conftest.$ac_objext \
19743 conftest$ac_exeext conftest.$ac_ext
19744 LIBS=$ac_check_lib_save_LIBS
19746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbit" >&5
19747 $as_echo "$ac_cv_lib_m_signbit" >&6; }
19748 if test "x$ac_cv_lib_m_signbit" = xyes; then :
19750 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
19752 else
19754 $as_echo "#undef HAVE_SIGNBIT" >>confdefs.h
19758 else
19759 if test "x$ac_cv_lib_m_signbit" = xyes; then
19761 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
19763 elif test "x$ac_cv_func_signbit" = xyes; then
19765 $as_echo "#define HAVE_SIGNBIT 1" >>confdefs.h
19767 else
19769 $as_echo "#undef HAVE_SIGNBIT" >>confdefs.h
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbitf" >&5
19776 $as_echo_n "checking m2 front end checking m library for signbitf... " >&6; }
19777 if test x$gcc_no_link != xyes; then
19778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbitf in -lm" >&5
19779 $as_echo_n "checking for signbitf in -lm... " >&6; }
19780 if ${ac_cv_lib_m_signbitf+:} false; then :
19781 $as_echo_n "(cached) " >&6
19782 else
19783 ac_check_lib_save_LIBS=$LIBS
19784 LIBS="-lm $LIBS"
19785 if test x$gcc_no_link = xyes; then
19786 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19789 /* end confdefs.h. */
19791 /* Override any GCC internal prototype to avoid an error.
19792 Use char because int might match the return type of a GCC
19793 builtin and then its argument prototype would still apply. */
19794 #ifdef __cplusplus
19795 extern "C"
19796 #endif
19797 char signbitf ();
19799 main ()
19801 return signbitf ();
19803 return 0;
19805 _ACEOF
19806 if ac_fn_c_try_link "$LINENO"; then :
19807 ac_cv_lib_m_signbitf=yes
19808 else
19809 ac_cv_lib_m_signbitf=no
19811 rm -f core conftest.err conftest.$ac_objext \
19812 conftest$ac_exeext conftest.$ac_ext
19813 LIBS=$ac_check_lib_save_LIBS
19815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbitf" >&5
19816 $as_echo "$ac_cv_lib_m_signbitf" >&6; }
19817 if test "x$ac_cv_lib_m_signbitf" = xyes; then :
19819 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
19821 else
19823 $as_echo "#undef HAVE_SIGNBITF" >>confdefs.h
19827 else
19828 if test "x$ac_cv_lib_m_signbitf" = xyes; then
19830 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
19832 elif test "x$ac_cv_func_signbitf" = xyes; then
19834 $as_echo "#define HAVE_SIGNBITF 1" >>confdefs.h
19836 else
19838 $as_echo "#undef HAVE_SIGNBITF" >>confdefs.h
19844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end checking m library for signbitl" >&5
19845 $as_echo_n "checking m2 front end checking m library for signbitl... " >&6; }
19846 if test x$gcc_no_link != xyes; then
19847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for signbitl in -lm" >&5
19848 $as_echo_n "checking for signbitl in -lm... " >&6; }
19849 if ${ac_cv_lib_m_signbitl+:} false; then :
19850 $as_echo_n "(cached) " >&6
19851 else
19852 ac_check_lib_save_LIBS=$LIBS
19853 LIBS="-lm $LIBS"
19854 if test x$gcc_no_link = xyes; then
19855 as_fn_error $? "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19858 /* end confdefs.h. */
19860 /* Override any GCC internal prototype to avoid an error.
19861 Use char because int might match the return type of a GCC
19862 builtin and then its argument prototype would still apply. */
19863 #ifdef __cplusplus
19864 extern "C"
19865 #endif
19866 char signbitl ();
19868 main ()
19870 return signbitl ();
19872 return 0;
19874 _ACEOF
19875 if ac_fn_c_try_link "$LINENO"; then :
19876 ac_cv_lib_m_signbitl=yes
19877 else
19878 ac_cv_lib_m_signbitl=no
19880 rm -f core conftest.err conftest.$ac_objext \
19881 conftest$ac_exeext conftest.$ac_ext
19882 LIBS=$ac_check_lib_save_LIBS
19884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_signbitl" >&5
19885 $as_echo "$ac_cv_lib_m_signbitl" >&6; }
19886 if test "x$ac_cv_lib_m_signbitl" = xyes; then :
19888 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
19890 else
19892 $as_echo "#undef HAVE_SIGNBITL" >>confdefs.h
19896 else
19897 if test "x$ac_cv_lib_m_signbitl" = xyes; then
19899 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
19901 elif test "x$ac_cv_func_signbitl" = xyes; then
19903 $as_echo "#define HAVE_SIGNBITL 1" >>confdefs.h
19905 else
19907 $as_echo "#undef HAVE_SIGNBITL" >>confdefs.h
19913 { $as_echo "$as_me:${as_lineno-$LINENO}: libgm2 has finished checking target libc and libm contents." >&5
19914 $as_echo "$as_me: libgm2 has finished checking target libc and libm contents." >&6;}
19916 # We test the host here and later on check the target.
19918 # All known M2_HOST_OS values. This is the union of all host operating systems
19919 # supported by gm2.
19921 M2_SUPPORTED_HOST_OS="aix freebsd hurd linux netbsd openbsd solaris windows darwin"
19923 M2_HOST_OS=unknown
19925 case ${host} in
19926 *-*-darwin*) M2_HOST_OS=darwin ;;
19927 *-*-freebsd*) M2_HOST_OS=freebsd ;;
19928 *-*-linux*) M2_HOST_OS=linux ;;
19929 *-*-netbsd*) M2_HOST_OS=netbsd ;;
19930 *-*-openbsd*) M2_HOST_OS=openbsd ;;
19931 *-*-solaris2*) M2_HOST_OS=solaris ;;
19932 *-*-aix*) M2_HOST_OS=aix ;;
19933 *-*-gnu*) M2_HOST_OS=hurd ;;
19934 esac
19936 M2_TARGET_OS=unknown
19938 case ${target} in
19939 *-*-darwin*) M2_TARGET_OS=darwin ;;
19940 *-*-freebsd*) M2_TARGET_OS=freebsd ;;
19941 *-*-linux*) M2_TARGET_OS=linux ;;
19942 *-*-netbsd*) M2_TARGET_OS=netbsd ;;
19943 *-*-openbsd*) M2_TARGET_OS=openbsd ;;
19944 *-*-solaris2*) M2_TARGET_OS=solaris ;;
19945 *-*-aix*) M2_TARGET_OS=aix ;;
19946 *-*-gnu*) M2_TARGET_OS=hurd ;;
19947 esac
19949 # M2_HOST_OS=unknown
19950 if test x${M2_HOST_OS} = xunknown; then
19951 { $as_echo "$as_me:${as_lineno-$LINENO}: unsupported host, will build a minimal m2 library" >&5
19952 $as_echo "$as_me: unsupported host, will build a minimal m2 library" >&6;}
19953 BUILD_PIMLIB=false
19954 BUILD_ISOLIB=false
19955 BUILD_CORLIB=false
19956 BUILD_LOGLIB=false
19957 else
19958 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 library will be built on ${M2_HOST_OS}" >&5
19959 $as_echo "$as_me: m2 library will be built on ${M2_HOST_OS}" >&6;}
19960 BUILD_PIMLIB=true
19961 BUILD_ISOLIB=true
19962 BUILD_CORLIB=true
19963 BUILD_LOGLIB=true
19966 CC_FOR_BUILD=${CC_FOR_BUILD:-gcc}
19969 # Propagate GM2_FOR_TARGET into Makefiles
19970 GM2_FOR_TARGET=${GM2_FOR_TARGET:-gcc}
19973 # Now we check the target as long as it is a supported host.
19974 # For some embedded targets we choose minimal runtime system which is
19975 # just enough to satisfy the linker targetting raw metal.
19976 if test x${M2_HOST_OS} != xunknown; then
19977 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 library building for target ${target}" >&5
19978 $as_echo "$as_me: m2 library building for target ${target}" >&6;}
19979 case "$target" in
19981 avr25*-*-* | avr31*-*-* | avr35*-*-* | avr4*-*-* | avr5*-*-* | avr51*-*-* | avr6*-*-*)
19982 BUILD_PIMLIB=false
19983 BUILD_ISOLIB=false
19984 BUILD_CORLIB=false
19985 BUILD_LOGLIB=false
19988 avrxmega2*-*-* | avrxmega4*-*-* | avrxmega5*-*-* | avrxmega6*-*-* | avrxmega7*-*-*)
19989 BUILD_PIMLIB=false
19990 BUILD_ISOLIB=false
19991 BUILD_CORLIB=false
19992 BUILD_LOGLIB=false
19995 avr3-*-*)
19996 BUILD_PIMLIB=true
19997 BUILD_ISOLIB=true
19998 BUILD_CORLIB=true
19999 BUILD_LOGLIB=true
20001 esp32-*-*)
20002 BUILD_PIMLIB=false
20003 BUILD_ISOLIB=false
20004 BUILD_CORLIB=false
20005 BUILD_LOGLIB=false
20008 esac
20011 # GM2_MSG_RESULT issue a query message from the first parameter and a boolean result
20012 # in the second parameter is printed as a "yes" or "no".
20016 if test x${M2_HOST_OS} = xunknown; then
20017 { $as_echo "$as_me:${as_lineno-$LINENO}: m2 front end will only build minimal Modula-2 runtime library on this host" >&5
20018 $as_echo "$as_me: m2 front end will only build minimal Modula-2 runtime library on this host" >&6;}
20019 else
20021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build PIM libraries:" >&5
20022 $as_echo_n "checking m2 front end will build PIM libraries:... " >&6; }
20023 if test x${BUILD_PIMLIB} = xtrue; then
20024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20025 $as_echo "yes" >&6; }
20026 else
20027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20028 $as_echo "no" >&6; }
20032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build ISO libraries:" >&5
20033 $as_echo_n "checking m2 front end will build ISO libraries:... " >&6; }
20034 if test x${BUILD_ISOLIB} = xtrue; then
20035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20036 $as_echo "yes" >&6; }
20037 else
20038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20039 $as_echo "no" >&6; }
20043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build coroutine libraries:" >&5
20044 $as_echo_n "checking m2 front end will build coroutine libraries:... " >&6; }
20045 if test x${BUILD_CORLIB} = xtrue; then
20046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20047 $as_echo "yes" >&6; }
20048 else
20049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20050 $as_echo "no" >&6; }
20054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking m2 front end will build Logitech compatability libraries:" >&5
20055 $as_echo_n "checking m2 front end will build Logitech compatability libraries:... " >&6; }
20056 if test x${BUILD_LOGLIB} = xtrue; then
20057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20058 $as_echo "yes" >&6; }
20059 else
20060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20061 $as_echo "no" >&6; }
20066 if test x$BUILD_PIMLIB = xtrue; then
20067 BUILD_PIMLIB_TRUE=
20068 BUILD_PIMLIB_FALSE='#'
20069 else
20070 BUILD_PIMLIB_TRUE='#'
20071 BUILD_PIMLIB_FALSE=
20074 if test x$BUILD_ISOLIB = xtrue; then
20075 BUILD_ISOLIB_TRUE=
20076 BUILD_ISOLIB_FALSE='#'
20077 else
20078 BUILD_ISOLIB_TRUE='#'
20079 BUILD_ISOLIB_FALSE=
20082 if test x$BUILD_CORLIB = xtrue; then
20083 BUILD_CORLIB_TRUE=
20084 BUILD_CORLIB_FALSE='#'
20085 else
20086 BUILD_CORLIB_TRUE='#'
20087 BUILD_CORLIB_FALSE=
20090 if test x$BUILD_LOGLIB = xtrue; then
20091 BUILD_LOGLIB_TRUE=
20092 BUILD_LOGLIB_FALSE='#'
20093 else
20094 BUILD_LOGLIB_TRUE='#'
20095 BUILD_LOGLIB_FALSE=
20098 if test x$M2_TARGET_OS = xdarwin; then
20099 TARGET_DARWIN_TRUE=
20100 TARGET_DARWIN_FALSE='#'
20101 else
20102 TARGET_DARWIN_TRUE='#'
20103 TARGET_DARWIN_FALSE=
20107 # Determine what GCC version number to use in filesystem paths.
20109 get_gcc_base_ver="cat"
20111 # Check whether --with-gcc-major-version-only was given.
20112 if test "${with_gcc_major_version_only+set}" = set; then :
20113 withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
20114 get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
20123 ac_config_files="$ac_config_files Makefile"
20126 ac_config_files="$ac_config_files libm2min/Makefile libm2pim/Makefile libm2iso/Makefile libm2cor/Makefile libm2log/Makefile"
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: libgm2 has been configured." >&5
20130 $as_echo "$as_me: libgm2 has been configured." >&6;}
20132 cat >confcache <<\_ACEOF
20133 # This file is a shell script that caches the results of configure
20134 # tests run on this system so they can be shared between configure
20135 # scripts and configure runs, see configure's option --config-cache.
20136 # It is not useful on other systems. If it contains results you don't
20137 # want to keep, you may remove or edit it.
20139 # config.status only pays attention to the cache file if you give it
20140 # the --recheck option to rerun configure.
20142 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20143 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20144 # following values.
20146 _ACEOF
20148 # The following way of writing the cache mishandles newlines in values,
20149 # but we know of no workaround that is simple, portable, and efficient.
20150 # So, we kill variables containing newlines.
20151 # Ultrix sh set writes to stderr and can't be redirected directly,
20152 # and sets the high bit in the cache file unless we assign to the vars.
20154 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20155 eval ac_val=\$$ac_var
20156 case $ac_val in #(
20157 *${as_nl}*)
20158 case $ac_var in #(
20159 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20160 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20161 esac
20162 case $ac_var in #(
20163 _ | IFS | as_nl) ;; #(
20164 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20165 *) { eval $ac_var=; unset $ac_var;} ;;
20166 esac ;;
20167 esac
20168 done
20170 (set) 2>&1 |
20171 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20172 *${as_nl}ac_space=\ *)
20173 # `set' does not quote correctly, so add quotes: double-quote
20174 # substitution turns \\\\ into \\, and sed turns \\ into \.
20175 sed -n \
20176 "s/'/'\\\\''/g;
20177 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20178 ;; #(
20180 # `set' quotes correctly as required by POSIX, so do not add quotes.
20181 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20183 esac |
20184 sort
20186 sed '
20187 /^ac_cv_env_/b end
20188 t clear
20189 :clear
20190 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20191 t end
20192 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20193 :end' >>confcache
20194 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20195 if test -w "$cache_file"; then
20196 if test "x$cache_file" != "x/dev/null"; then
20197 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20198 $as_echo "$as_me: updating cache $cache_file" >&6;}
20199 if test ! -f "$cache_file" || test -h "$cache_file"; then
20200 cat confcache >"$cache_file"
20201 else
20202 case $cache_file in #(
20203 */* | ?:*)
20204 mv -f confcache "$cache_file"$$ &&
20205 mv -f "$cache_file"$$ "$cache_file" ;; #(
20207 mv -f confcache "$cache_file" ;;
20208 esac
20211 else
20212 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20213 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20216 rm -f confcache
20218 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20219 # Let make expand exec_prefix.
20220 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20222 DEFS=-DHAVE_CONFIG_H
20224 ac_libobjs=
20225 ac_ltlibobjs=
20227 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20228 # 1. Remove the extension, and $U if already installed.
20229 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20230 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20231 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20232 # will be set to the directory where LIBOBJS objects are built.
20233 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20234 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20235 done
20236 LIBOBJS=$ac_libobjs
20238 LTLIBOBJS=$ac_ltlibobjs
20241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
20242 $as_echo_n "checking that generated files are newer than configure... " >&6; }
20243 if test -n "$am_sleep_pid"; then
20244 # Hide warnings about reused PIDs.
20245 wait $am_sleep_pid 2>/dev/null
20247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
20248 $as_echo "done" >&6; }
20249 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
20250 as_fn_error $? "conditional \"AMDEP\" was never defined.
20251 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20253 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
20254 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
20255 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20257 if test -n "$EXEEXT"; then
20258 am__EXEEXT_TRUE=
20259 am__EXEEXT_FALSE='#'
20260 else
20261 am__EXEEXT_TRUE='#'
20262 am__EXEEXT_FALSE=
20265 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
20266 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
20267 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20269 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
20270 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
20271 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20273 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
20274 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
20275 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20277 if test -z "${BUILD_PIMLIB_TRUE}" && test -z "${BUILD_PIMLIB_FALSE}"; then
20278 as_fn_error $? "conditional \"BUILD_PIMLIB\" was never defined.
20279 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20281 if test -z "${BUILD_ISOLIB_TRUE}" && test -z "${BUILD_ISOLIB_FALSE}"; then
20282 as_fn_error $? "conditional \"BUILD_ISOLIB\" was never defined.
20283 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20285 if test -z "${BUILD_CORLIB_TRUE}" && test -z "${BUILD_CORLIB_FALSE}"; then
20286 as_fn_error $? "conditional \"BUILD_CORLIB\" was never defined.
20287 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20289 if test -z "${BUILD_LOGLIB_TRUE}" && test -z "${BUILD_LOGLIB_FALSE}"; then
20290 as_fn_error $? "conditional \"BUILD_LOGLIB\" was never defined.
20291 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20293 if test -z "${TARGET_DARWIN_TRUE}" && test -z "${TARGET_DARWIN_FALSE}"; then
20294 as_fn_error $? "conditional \"TARGET_DARWIN\" was never defined.
20295 Usually this means the macro was only invoked conditionally." "$LINENO" 5
20298 : "${CONFIG_STATUS=./config.status}"
20299 ac_write_fail=0
20300 ac_clean_files_save=$ac_clean_files
20301 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20302 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
20303 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
20304 as_write_fail=0
20305 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
20306 #! $SHELL
20307 # Generated by $as_me.
20308 # Run this file to recreate the current configuration.
20309 # Compiler output produced by configure, useful for debugging
20310 # configure, is in config.log if it exists.
20312 debug=false
20313 ac_cs_recheck=false
20314 ac_cs_silent=false
20316 SHELL=\${CONFIG_SHELL-$SHELL}
20317 export SHELL
20318 _ASEOF
20319 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
20320 ## -------------------- ##
20321 ## M4sh Initialization. ##
20322 ## -------------------- ##
20324 # Be more Bourne compatible
20325 DUALCASE=1; export DUALCASE # for MKS sh
20326 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20327 emulate sh
20328 NULLCMD=:
20329 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
20330 # is contrary to our usage. Disable this feature.
20331 alias -g '${1+"$@"}'='"$@"'
20332 setopt NO_GLOB_SUBST
20333 else
20334 case `(set -o) 2>/dev/null` in #(
20335 *posix*) :
20336 set -o posix ;; #(
20337 *) :
20339 esac
20343 as_nl='
20345 export as_nl
20346 # Printing a long string crashes Solaris 7 /usr/bin/printf.
20347 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
20348 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
20349 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
20350 # Prefer a ksh shell builtin over an external printf program on Solaris,
20351 # but without wasting forks for bash or zsh.
20352 if test -z "$BASH_VERSION$ZSH_VERSION" \
20353 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
20354 as_echo='print -r --'
20355 as_echo_n='print -rn --'
20356 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
20357 as_echo='printf %s\n'
20358 as_echo_n='printf %s'
20359 else
20360 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
20361 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
20362 as_echo_n='/usr/ucb/echo -n'
20363 else
20364 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
20365 as_echo_n_body='eval
20366 arg=$1;
20367 case $arg in #(
20368 *"$as_nl"*)
20369 expr "X$arg" : "X\\(.*\\)$as_nl";
20370 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
20371 esac;
20372 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
20374 export as_echo_n_body
20375 as_echo_n='sh -c $as_echo_n_body as_echo'
20377 export as_echo_body
20378 as_echo='sh -c $as_echo_body as_echo'
20381 # The user is always right.
20382 if test "${PATH_SEPARATOR+set}" != set; then
20383 PATH_SEPARATOR=:
20384 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
20385 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
20386 PATH_SEPARATOR=';'
20391 # IFS
20392 # We need space, tab and new line, in precisely that order. Quoting is
20393 # there to prevent editors from complaining about space-tab.
20394 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
20395 # splitting by setting IFS to empty value.)
20396 IFS=" "" $as_nl"
20398 # Find who we are. Look in the path if we contain no directory separator.
20399 as_myself=
20400 case $0 in #((
20401 *[\\/]* ) as_myself=$0 ;;
20402 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20403 for as_dir in $PATH
20405 IFS=$as_save_IFS
20406 test -z "$as_dir" && as_dir=.
20407 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
20408 done
20409 IFS=$as_save_IFS
20412 esac
20413 # We did not find ourselves, most probably we were run as `sh COMMAND'
20414 # in which case we are not to be found in the path.
20415 if test "x$as_myself" = x; then
20416 as_myself=$0
20418 if test ! -f "$as_myself"; then
20419 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
20420 exit 1
20423 # Unset variables that we do not need and which cause bugs (e.g. in
20424 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
20425 # suppresses any "Segmentation fault" message there. '((' could
20426 # trigger a bug in pdksh 5.2.14.
20427 for as_var in BASH_ENV ENV MAIL MAILPATH
20428 do eval test x\${$as_var+set} = xset \
20429 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
20430 done
20431 PS1='$ '
20432 PS2='> '
20433 PS4='+ '
20435 # NLS nuisances.
20436 LC_ALL=C
20437 export LC_ALL
20438 LANGUAGE=C
20439 export LANGUAGE
20441 # CDPATH.
20442 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20445 # as_fn_error STATUS ERROR [LINENO LOG_FD]
20446 # ----------------------------------------
20447 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
20448 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
20449 # script with STATUS, using 1 if that was 0.
20450 as_fn_error ()
20452 as_status=$1; test $as_status -eq 0 && as_status=1
20453 if test "$4"; then
20454 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
20455 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
20457 $as_echo "$as_me: error: $2" >&2
20458 as_fn_exit $as_status
20459 } # as_fn_error
20462 # as_fn_set_status STATUS
20463 # -----------------------
20464 # Set $? to STATUS, without forking.
20465 as_fn_set_status ()
20467 return $1
20468 } # as_fn_set_status
20470 # as_fn_exit STATUS
20471 # -----------------
20472 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
20473 as_fn_exit ()
20475 set +e
20476 as_fn_set_status $1
20477 exit $1
20478 } # as_fn_exit
20480 # as_fn_unset VAR
20481 # ---------------
20482 # Portably unset VAR.
20483 as_fn_unset ()
20485 { eval $1=; unset $1;}
20487 as_unset=as_fn_unset
20488 # as_fn_append VAR VALUE
20489 # ----------------------
20490 # Append the text in VALUE to the end of the definition contained in VAR. Take
20491 # advantage of any shell optimizations that allow amortized linear growth over
20492 # repeated appends, instead of the typical quadratic growth present in naive
20493 # implementations.
20494 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
20495 eval 'as_fn_append ()
20497 eval $1+=\$2
20499 else
20500 as_fn_append ()
20502 eval $1=\$$1\$2
20504 fi # as_fn_append
20506 # as_fn_arith ARG...
20507 # ------------------
20508 # Perform arithmetic evaluation on the ARGs, and store the result in the
20509 # global $as_val. Take advantage of shells that can avoid forks. The arguments
20510 # must be portable across $(()) and expr.
20511 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
20512 eval 'as_fn_arith ()
20514 as_val=$(( $* ))
20516 else
20517 as_fn_arith ()
20519 as_val=`expr "$@" || test $? -eq 1`
20521 fi # as_fn_arith
20524 if expr a : '\(a\)' >/dev/null 2>&1 &&
20525 test "X`expr 00001 : '.*\(...\)'`" = X001; then
20526 as_expr=expr
20527 else
20528 as_expr=false
20531 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
20532 as_basename=basename
20533 else
20534 as_basename=false
20537 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
20538 as_dirname=dirname
20539 else
20540 as_dirname=false
20543 as_me=`$as_basename -- "$0" ||
20544 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
20545 X"$0" : 'X\(//\)$' \| \
20546 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
20547 $as_echo X/"$0" |
20548 sed '/^.*\/\([^/][^/]*\)\/*$/{
20549 s//\1/
20552 /^X\/\(\/\/\)$/{
20553 s//\1/
20556 /^X\/\(\/\).*/{
20557 s//\1/
20560 s/.*/./; q'`
20562 # Avoid depending upon Character Ranges.
20563 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
20564 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
20565 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
20566 as_cr_digits='0123456789'
20567 as_cr_alnum=$as_cr_Letters$as_cr_digits
20569 ECHO_C= ECHO_N= ECHO_T=
20570 case `echo -n x` in #(((((
20571 -n*)
20572 case `echo 'xy\c'` in
20573 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
20574 xy) ECHO_C='\c';;
20575 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
20576 ECHO_T=' ';;
20577 esac;;
20579 ECHO_N='-n';;
20580 esac
20582 rm -f conf$$ conf$$.exe conf$$.file
20583 if test -d conf$$.dir; then
20584 rm -f conf$$.dir/conf$$.file
20585 else
20586 rm -f conf$$.dir
20587 mkdir conf$$.dir 2>/dev/null
20589 if (echo >conf$$.file) 2>/dev/null; then
20590 if ln -s conf$$.file conf$$ 2>/dev/null; then
20591 as_ln_s='ln -s'
20592 # ... but there are two gotchas:
20593 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
20594 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
20595 # In both cases, we have to default to `cp -pR'.
20596 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
20597 as_ln_s='cp -pR'
20598 elif ln conf$$.file conf$$ 2>/dev/null; then
20599 as_ln_s=ln
20600 else
20601 as_ln_s='cp -pR'
20603 else
20604 as_ln_s='cp -pR'
20606 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
20607 rmdir conf$$.dir 2>/dev/null
20610 # as_fn_mkdir_p
20611 # -------------
20612 # Create "$as_dir" as a directory, including parents if necessary.
20613 as_fn_mkdir_p ()
20616 case $as_dir in #(
20617 -*) as_dir=./$as_dir;;
20618 esac
20619 test -d "$as_dir" || eval $as_mkdir_p || {
20620 as_dirs=
20621 while :; do
20622 case $as_dir in #(
20623 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
20624 *) as_qdir=$as_dir;;
20625 esac
20626 as_dirs="'$as_qdir' $as_dirs"
20627 as_dir=`$as_dirname -- "$as_dir" ||
20628 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
20629 X"$as_dir" : 'X\(//\)[^/]' \| \
20630 X"$as_dir" : 'X\(//\)$' \| \
20631 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
20632 $as_echo X"$as_dir" |
20633 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
20634 s//\1/
20637 /^X\(\/\/\)[^/].*/{
20638 s//\1/
20641 /^X\(\/\/\)$/{
20642 s//\1/
20645 /^X\(\/\).*/{
20646 s//\1/
20649 s/.*/./; q'`
20650 test -d "$as_dir" && break
20651 done
20652 test -z "$as_dirs" || eval "mkdir $as_dirs"
20653 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
20656 } # as_fn_mkdir_p
20657 if mkdir -p . 2>/dev/null; then
20658 as_mkdir_p='mkdir -p "$as_dir"'
20659 else
20660 test -d ./-p && rmdir ./-p
20661 as_mkdir_p=false
20665 # as_fn_executable_p FILE
20666 # -----------------------
20667 # Test if FILE is an executable regular file.
20668 as_fn_executable_p ()
20670 test -f "$1" && test -x "$1"
20671 } # as_fn_executable_p
20672 as_test_x='test -x'
20673 as_executable_p=as_fn_executable_p
20675 # Sed expression to map a string onto a valid CPP name.
20676 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
20678 # Sed expression to map a string onto a valid variable name.
20679 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
20682 exec 6>&1
20683 ## ----------------------------------- ##
20684 ## Main body of $CONFIG_STATUS script. ##
20685 ## ----------------------------------- ##
20686 _ASEOF
20687 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
20689 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20690 # Save the log message, to keep $0 and so on meaningful, and to
20691 # report actual input values of CONFIG_FILES etc. instead of their
20692 # values after options handling.
20693 ac_log="
20694 This file was extended by package-unused $as_me version-unused, which was
20695 generated by GNU Autoconf 2.69. Invocation command line was
20697 CONFIG_FILES = $CONFIG_FILES
20698 CONFIG_HEADERS = $CONFIG_HEADERS
20699 CONFIG_LINKS = $CONFIG_LINKS
20700 CONFIG_COMMANDS = $CONFIG_COMMANDS
20701 $ $0 $@
20703 on `(hostname || uname -n) 2>/dev/null | sed 1q`
20706 _ACEOF
20708 case $ac_config_files in *"
20709 "*) set x $ac_config_files; shift; ac_config_files=$*;;
20710 esac
20712 case $ac_config_headers in *"
20713 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
20714 esac
20717 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20718 # Files that config.status was made for.
20719 config_files="$ac_config_files"
20720 config_headers="$ac_config_headers"
20721 config_commands="$ac_config_commands"
20723 _ACEOF
20725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20726 ac_cs_usage="\
20727 \`$as_me' instantiates files and other configuration actions
20728 from templates according to the current configuration. Unless the files
20729 and actions are specified as TAGs, all are instantiated by default.
20731 Usage: $0 [OPTION]... [TAG]...
20733 -h, --help print this help, then exit
20734 -V, --version print version number and configuration settings, then exit
20735 --config print configuration, then exit
20736 -q, --quiet, --silent
20737 do not print progress messages
20738 -d, --debug don't remove temporary files
20739 --recheck update $as_me by reconfiguring in the same conditions
20740 --file=FILE[:TEMPLATE]
20741 instantiate the configuration file FILE
20742 --header=FILE[:TEMPLATE]
20743 instantiate the configuration header FILE
20745 Configuration files:
20746 $config_files
20748 Configuration headers:
20749 $config_headers
20751 Configuration commands:
20752 $config_commands
20754 Report bugs to the package provider."
20756 _ACEOF
20757 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20758 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
20759 ac_cs_version="\\
20760 package-unused config.status version-unused
20761 configured by $0, generated by GNU Autoconf 2.69,
20762 with options \\"\$ac_cs_config\\"
20764 Copyright (C) 2012 Free Software Foundation, Inc.
20765 This config.status script is free software; the Free Software Foundation
20766 gives unlimited permission to copy, distribute and modify it."
20768 ac_pwd='$ac_pwd'
20769 srcdir='$srcdir'
20770 INSTALL='$INSTALL'
20771 MKDIR_P='$MKDIR_P'
20772 AWK='$AWK'
20773 test -n "\$AWK" || AWK=awk
20774 _ACEOF
20776 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20777 # The default lists apply if the user does not specify any file.
20778 ac_need_defaults=:
20779 while test $# != 0
20781 case $1 in
20782 --*=?*)
20783 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20784 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
20785 ac_shift=:
20787 --*=)
20788 ac_option=`expr "X$1" : 'X\([^=]*\)='`
20789 ac_optarg=
20790 ac_shift=:
20793 ac_option=$1
20794 ac_optarg=$2
20795 ac_shift=shift
20797 esac
20799 case $ac_option in
20800 # Handling of the options.
20801 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
20802 ac_cs_recheck=: ;;
20803 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
20804 $as_echo "$ac_cs_version"; exit ;;
20805 --config | --confi | --conf | --con | --co | --c )
20806 $as_echo "$ac_cs_config"; exit ;;
20807 --debug | --debu | --deb | --de | --d | -d )
20808 debug=: ;;
20809 --file | --fil | --fi | --f )
20810 $ac_shift
20811 case $ac_optarg in
20812 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20813 '') as_fn_error $? "missing file argument" ;;
20814 esac
20815 as_fn_append CONFIG_FILES " '$ac_optarg'"
20816 ac_need_defaults=false;;
20817 --header | --heade | --head | --hea )
20818 $ac_shift
20819 case $ac_optarg in
20820 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
20821 esac
20822 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
20823 ac_need_defaults=false;;
20824 --he | --h)
20825 # Conflict between --help and --header
20826 as_fn_error $? "ambiguous option: \`$1'
20827 Try \`$0 --help' for more information.";;
20828 --help | --hel | -h )
20829 $as_echo "$ac_cs_usage"; exit ;;
20830 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
20831 | -silent | --silent | --silen | --sile | --sil | --si | --s)
20832 ac_cs_silent=: ;;
20834 # This is an error.
20835 -*) as_fn_error $? "unrecognized option: \`$1'
20836 Try \`$0 --help' for more information." ;;
20838 *) as_fn_append ac_config_targets " $1"
20839 ac_need_defaults=false ;;
20841 esac
20842 shift
20843 done
20845 ac_configure_extra_args=
20847 if $ac_cs_silent; then
20848 exec 6>/dev/null
20849 ac_configure_extra_args="$ac_configure_extra_args --silent"
20852 _ACEOF
20853 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20854 if \$ac_cs_recheck; then
20855 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
20856 shift
20857 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
20858 CONFIG_SHELL='$SHELL'
20859 export CONFIG_SHELL
20860 exec "\$@"
20863 _ACEOF
20864 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
20865 exec 5>>config.log
20867 echo
20868 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
20869 ## Running $as_me. ##
20870 _ASBOX
20871 $as_echo "$ac_log"
20872 } >&5
20874 _ACEOF
20875 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
20877 # INIT-COMMANDS
20880 srcdir="$srcdir"
20881 host="$host"
20882 target="$target"
20883 with_multisubdir="$with_multisubdir"
20884 with_multisrctop="$with_multisrctop"
20885 with_target_subdir="$with_target_subdir"
20886 ac_configure_args="${multilib_arg} ${ac_configure_args}"
20887 multi_basedir="$multi_basedir"
20888 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
20889 CC="$CC"
20890 CXX="$CXX"
20891 GFORTRAN="$GFORTRAN"
20892 GDC="$GDC"
20893 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
20896 # The HP-UX ksh and POSIX shell print the target directory to stdout
20897 # if CDPATH is set.
20898 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
20900 sed_quote_subst='$sed_quote_subst'
20901 double_quote_subst='$double_quote_subst'
20902 delay_variable_subst='$delay_variable_subst'
20903 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
20904 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
20905 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
20906 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
20907 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
20908 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
20909 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
20910 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
20911 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
20912 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
20913 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
20914 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
20915 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
20916 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
20917 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
20918 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
20919 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
20920 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
20921 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
20922 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
20923 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
20924 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
20925 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
20926 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
20927 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
20928 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
20929 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
20930 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
20931 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
20932 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
20933 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
20934 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
20935 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
20936 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
20937 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
20938 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
20939 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
20940 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
20941 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
20942 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
20943 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
20944 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
20945 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
20946 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
20947 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
20948 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
20949 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
20950 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
20951 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"`'
20952 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
20953 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
20954 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
20955 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
20956 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
20957 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
20958 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
20959 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
20960 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
20961 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
20962 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
20963 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
20964 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
20965 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
20966 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
20967 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20968 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
20969 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
20970 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
20971 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
20972 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
20973 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
20974 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
20975 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
20976 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20977 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
20978 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
20979 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
20980 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
20981 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
20982 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
20983 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
20984 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
20985 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
20986 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
20987 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
20988 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
20989 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
20990 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
20991 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
20992 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
20993 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
20994 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
20995 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
20996 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
20997 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
20998 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
20999 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
21000 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
21001 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
21002 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
21003 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
21004 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
21005 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
21006 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
21007 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
21008 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
21009 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
21010 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
21011 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
21012 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
21013 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
21014 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
21015 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
21016 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
21017 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
21018 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
21019 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
21020 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
21021 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
21022 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
21023 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
21024 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
21025 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
21026 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
21027 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
21028 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
21029 LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
21030 reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
21031 reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21032 old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21033 compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
21034 GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
21035 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
21036 lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
21037 lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
21038 lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
21039 lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
21040 archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
21041 enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
21042 export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21043 whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21044 compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
21045 old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21046 old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21047 archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21048 archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21049 module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21050 module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21051 with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
21052 allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21053 no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
21054 hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
21055 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "$hardcode_libdir_flag_spec_ld_CXX" | $SED "$delay_single_quote_subst"`'
21056 hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
21057 hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
21058 hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
21059 hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
21060 hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
21061 hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
21062 inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
21063 link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
21064 fix_srcfile_path_CXX='`$ECHO "$fix_srcfile_path_CXX" | $SED "$delay_single_quote_subst"`'
21065 always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
21066 export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21067 exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21068 include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
21069 prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
21070 file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
21071 hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
21072 compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
21073 predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21074 postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
21075 predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
21076 postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
21077 compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
21079 LTCC='$LTCC'
21080 LTCFLAGS='$LTCFLAGS'
21081 compiler='$compiler_DEFAULT'
21083 # A function that is used when there is no print builtin or printf.
21084 func_fallback_echo ()
21086 eval 'cat <<_LTECHO_EOF
21088 _LTECHO_EOF'
21091 # Quote evaled strings.
21092 for var in SHELL \
21093 ECHO \
21094 SED \
21095 GREP \
21096 EGREP \
21097 FGREP \
21098 LD \
21099 NM \
21100 LN_S \
21101 lt_SP2NL \
21102 lt_NL2SP \
21103 reload_flag \
21104 OBJDUMP \
21105 deplibs_check_method \
21106 file_magic_cmd \
21107 AR \
21108 AR_FLAGS \
21109 STRIP \
21110 RANLIB \
21111 CC \
21112 CFLAGS \
21113 compiler \
21114 lt_cv_sys_global_symbol_pipe \
21115 lt_cv_sys_global_symbol_to_cdecl \
21116 lt_cv_sys_global_symbol_to_c_name_address \
21117 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21118 lt_prog_compiler_no_builtin_flag \
21119 lt_prog_compiler_wl \
21120 lt_prog_compiler_pic \
21121 lt_prog_compiler_static \
21122 lt_cv_prog_compiler_c_o \
21123 need_locks \
21124 DSYMUTIL \
21125 NMEDIT \
21126 LIPO \
21127 OTOOL \
21128 OTOOL64 \
21129 shrext_cmds \
21130 export_dynamic_flag_spec \
21131 whole_archive_flag_spec \
21132 compiler_needs_object \
21133 with_gnu_ld \
21134 allow_undefined_flag \
21135 no_undefined_flag \
21136 hardcode_libdir_flag_spec \
21137 hardcode_libdir_flag_spec_ld \
21138 hardcode_libdir_separator \
21139 fix_srcfile_path \
21140 exclude_expsyms \
21141 include_expsyms \
21142 file_list_spec \
21143 variables_saved_for_relink \
21144 libname_spec \
21145 library_names_spec \
21146 soname_spec \
21147 install_override_mode \
21148 finish_eval \
21149 old_striplib \
21150 striplib \
21151 compiler_lib_search_dirs \
21152 predep_objects \
21153 postdep_objects \
21154 predeps \
21155 postdeps \
21156 compiler_lib_search_path \
21157 LD_CXX \
21158 reload_flag_CXX \
21159 compiler_CXX \
21160 lt_prog_compiler_no_builtin_flag_CXX \
21161 lt_prog_compiler_wl_CXX \
21162 lt_prog_compiler_pic_CXX \
21163 lt_prog_compiler_static_CXX \
21164 lt_cv_prog_compiler_c_o_CXX \
21165 export_dynamic_flag_spec_CXX \
21166 whole_archive_flag_spec_CXX \
21167 compiler_needs_object_CXX \
21168 with_gnu_ld_CXX \
21169 allow_undefined_flag_CXX \
21170 no_undefined_flag_CXX \
21171 hardcode_libdir_flag_spec_CXX \
21172 hardcode_libdir_flag_spec_ld_CXX \
21173 hardcode_libdir_separator_CXX \
21174 fix_srcfile_path_CXX \
21175 exclude_expsyms_CXX \
21176 include_expsyms_CXX \
21177 file_list_spec_CXX \
21178 compiler_lib_search_dirs_CXX \
21179 predep_objects_CXX \
21180 postdep_objects_CXX \
21181 predeps_CXX \
21182 postdeps_CXX \
21183 compiler_lib_search_path_CXX; do
21184 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21185 *[\\\\\\\`\\"\\\$]*)
21186 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21189 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21191 esac
21192 done
21194 # Double-quote double-evaled strings.
21195 for var in reload_cmds \
21196 old_postinstall_cmds \
21197 old_postuninstall_cmds \
21198 old_archive_cmds \
21199 extract_expsyms_cmds \
21200 old_archive_from_new_cmds \
21201 old_archive_from_expsyms_cmds \
21202 archive_cmds \
21203 archive_expsym_cmds \
21204 module_cmds \
21205 module_expsym_cmds \
21206 export_symbols_cmds \
21207 prelink_cmds \
21208 postinstall_cmds \
21209 postuninstall_cmds \
21210 finish_cmds \
21211 sys_lib_search_path_spec \
21212 sys_lib_dlsearch_path_spec \
21213 reload_cmds_CXX \
21214 old_archive_cmds_CXX \
21215 old_archive_from_new_cmds_CXX \
21216 old_archive_from_expsyms_cmds_CXX \
21217 archive_cmds_CXX \
21218 archive_expsym_cmds_CXX \
21219 module_cmds_CXX \
21220 module_expsym_cmds_CXX \
21221 export_symbols_cmds_CXX \
21222 prelink_cmds_CXX; do
21223 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
21224 *[\\\\\\\`\\"\\\$]*)
21225 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21228 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21230 esac
21231 done
21233 ac_aux_dir='$ac_aux_dir'
21234 xsi_shell='$xsi_shell'
21235 lt_shell_append='$lt_shell_append'
21237 # See if we are running on zsh, and set the options which allow our
21238 # commands through without removal of \ escapes INIT.
21239 if test -n "\${ZSH_VERSION+set}" ; then
21240 setopt NO_GLOB_SUBST
21244 PACKAGE='$PACKAGE'
21245 VERSION='$VERSION'
21246 TIMESTAMP='$TIMESTAMP'
21247 RM='$RM'
21248 ofile='$ofile'
21255 _ACEOF
21257 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21259 # Handling of arguments.
21260 for ac_config_target in $ac_config_targets
21262 case $ac_config_target in
21263 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
21264 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
21265 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
21266 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
21267 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
21268 "libm2min/Makefile") CONFIG_FILES="$CONFIG_FILES libm2min/Makefile" ;;
21269 "libm2pim/Makefile") CONFIG_FILES="$CONFIG_FILES libm2pim/Makefile" ;;
21270 "libm2iso/Makefile") CONFIG_FILES="$CONFIG_FILES libm2iso/Makefile" ;;
21271 "libm2cor/Makefile") CONFIG_FILES="$CONFIG_FILES libm2cor/Makefile" ;;
21272 "libm2log/Makefile") CONFIG_FILES="$CONFIG_FILES libm2log/Makefile" ;;
21274 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
21275 esac
21276 done
21279 # If the user did not use the arguments to specify the items to instantiate,
21280 # then the envvar interface is used. Set only those that are not.
21281 # We use the long form for the default assignment because of an extremely
21282 # bizarre bug on SunOS 4.1.3.
21283 if $ac_need_defaults; then
21284 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21285 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21286 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21289 # Have a temporary directory for convenience. Make it in the build tree
21290 # simply because there is no reason against having it here, and in addition,
21291 # creating and moving files from /tmp can sometimes cause problems.
21292 # Hook for its removal unless debugging.
21293 # Note that there is a small window in which the directory will not be cleaned:
21294 # after its creation but before its name has been assigned to `$tmp'.
21295 $debug ||
21297 tmp= ac_tmp=
21298 trap 'exit_status=$?
21299 : "${ac_tmp:=$tmp}"
21300 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
21302 trap 'as_fn_exit 1' 1 2 13 15
21304 # Create a (secure) tmp directory for tmp files.
21307 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21308 test -d "$tmp"
21309 } ||
21311 tmp=./conf$$-$RANDOM
21312 (umask 077 && mkdir "$tmp")
21313 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
21314 ac_tmp=$tmp
21316 # Set up the scripts for CONFIG_FILES section.
21317 # No need to generate them if there are no CONFIG_FILES.
21318 # This happens for instance with `./config.status config.h'.
21319 if test -n "$CONFIG_FILES"; then
21322 ac_cr=`echo X | tr X '\015'`
21323 # On cygwin, bash can eat \r inside `` if the user requested igncr.
21324 # But we know of no other shell where ac_cr would be empty at this
21325 # point, so we can use a bashism as a fallback.
21326 if test "x$ac_cr" = x; then
21327 eval ac_cr=\$\'\\r\'
21329 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
21330 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
21331 ac_cs_awk_cr='\\r'
21332 else
21333 ac_cs_awk_cr=$ac_cr
21336 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
21337 _ACEOF
21341 echo "cat >conf$$subs.awk <<_ACEOF" &&
21342 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
21343 echo "_ACEOF"
21344 } >conf$$subs.sh ||
21345 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21346 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
21347 ac_delim='%!_!# '
21348 for ac_last_try in false false false false false :; do
21349 . ./conf$$subs.sh ||
21350 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21352 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
21353 if test $ac_delim_n = $ac_delim_num; then
21354 break
21355 elif $ac_last_try; then
21356 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
21357 else
21358 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21360 done
21361 rm -f conf$$subs.sh
21363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21364 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
21365 _ACEOF
21366 sed -n '
21368 s/^/S["/; s/!.*/"]=/
21371 s/^[^!]*!//
21372 :repl
21373 t repl
21374 s/'"$ac_delim"'$//
21375 t delim
21378 s/\(.\{148\}\)..*/\1/
21379 t more1
21380 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
21383 b repl
21384 :more1
21385 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21388 s/.\{148\}//
21389 t nl
21390 :delim
21392 s/\(.\{148\}\)..*/\1/
21393 t more2
21394 s/["\\]/\\&/g; s/^/"/; s/$/"/
21397 :more2
21398 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
21401 s/.\{148\}//
21402 t delim
21403 ' <conf$$subs.awk | sed '
21404 /^[^""]/{
21406 s/\n//
21408 ' >>$CONFIG_STATUS || ac_write_fail=1
21409 rm -f conf$$subs.awk
21410 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21411 _ACAWK
21412 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
21413 for (key in S) S_is_set[key] = 1
21414 FS = "\a"
21418 line = $ 0
21419 nfields = split(line, field, "@")
21420 substed = 0
21421 len = length(field[1])
21422 for (i = 2; i < nfields; i++) {
21423 key = field[i]
21424 keylen = length(key)
21425 if (S_is_set[key]) {
21426 value = S[key]
21427 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
21428 len += length(value) + length(field[++i])
21429 substed = 1
21430 } else
21431 len += 1 + keylen
21434 print line
21437 _ACAWK
21438 _ACEOF
21439 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21440 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
21441 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
21442 else
21444 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
21445 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
21446 _ACEOF
21448 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
21449 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
21450 # trailing colons and then remove the whole line if VPATH becomes empty
21451 # (actually we leave an empty line to preserve line numbers).
21452 if test "x$srcdir" = x.; then
21453 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
21455 s///
21456 s/^/:/
21457 s/[ ]*$/:/
21458 s/:\$(srcdir):/:/g
21459 s/:\${srcdir}:/:/g
21460 s/:@srcdir@:/:/g
21461 s/^:*//
21462 s/:*$//
21464 s/\(=[ ]*\).*/\1/
21466 s/\n//
21467 s/^[^=]*=[ ]*$//
21471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21472 fi # test -n "$CONFIG_FILES"
21474 # Set up the scripts for CONFIG_HEADERS section.
21475 # No need to generate them if there are no CONFIG_HEADERS.
21476 # This happens for instance with `./config.status Makefile'.
21477 if test -n "$CONFIG_HEADERS"; then
21478 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
21479 BEGIN {
21480 _ACEOF
21482 # Transform confdefs.h into an awk script `defines.awk', embedded as
21483 # here-document in config.status, that substitutes the proper values into
21484 # config.h.in to produce config.h.
21486 # Create a delimiter string that does not exist in confdefs.h, to ease
21487 # handling of long lines.
21488 ac_delim='%!_!# '
21489 for ac_last_try in false false :; do
21490 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
21491 if test -z "$ac_tt"; then
21492 break
21493 elif $ac_last_try; then
21494 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
21495 else
21496 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21498 done
21500 # For the awk script, D is an array of macro values keyed by name,
21501 # likewise P contains macro parameters if any. Preserve backslash
21502 # newline sequences.
21504 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
21505 sed -n '
21506 s/.\{148\}/&'"$ac_delim"'/g
21507 t rset
21508 :rset
21509 s/^[ ]*#[ ]*define[ ][ ]*/ /
21510 t def
21512 :def
21513 s/\\$//
21514 t bsnl
21515 s/["\\]/\\&/g
21516 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21517 D["\1"]=" \3"/p
21518 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
21520 :bsnl
21521 s/["\\]/\\&/g
21522 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
21523 D["\1"]=" \3\\\\\\n"\\/p
21524 t cont
21525 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
21526 t cont
21528 :cont
21530 s/.\{148\}/&'"$ac_delim"'/g
21531 t clear
21532 :clear
21533 s/\\$//
21534 t bsnlc
21535 s/["\\]/\\&/g; s/^/"/; s/$/"/p
21537 :bsnlc
21538 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
21539 b cont
21540 ' <confdefs.h | sed '
21541 s/'"$ac_delim"'/"\\\
21542 "/g' >>$CONFIG_STATUS || ac_write_fail=1
21544 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21545 for (key in D) D_is_set[key] = 1
21546 FS = "\a"
21548 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
21549 line = \$ 0
21550 split(line, arg, " ")
21551 if (arg[1] == "#") {
21552 defundef = arg[2]
21553 mac1 = arg[3]
21554 } else {
21555 defundef = substr(arg[1], 2)
21556 mac1 = arg[2]
21558 split(mac1, mac2, "(") #)
21559 macro = mac2[1]
21560 prefix = substr(line, 1, index(line, defundef) - 1)
21561 if (D_is_set[macro]) {
21562 # Preserve the white space surrounding the "#".
21563 print prefix "define", macro P[macro] D[macro]
21564 next
21565 } else {
21566 # Replace #undef with comments. This is necessary, for example,
21567 # in the case of _POSIX_SOURCE, which is predefined and required
21568 # on some systems where configure will not decide to define it.
21569 if (defundef == "undef") {
21570 print "/*", prefix defundef, macro, "*/"
21571 next
21575 { print }
21576 _ACAWK
21577 _ACEOF
21578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21579 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
21580 fi # test -n "$CONFIG_HEADERS"
21583 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
21584 shift
21585 for ac_tag
21587 case $ac_tag in
21588 :[FHLC]) ac_mode=$ac_tag; continue;;
21589 esac
21590 case $ac_mode$ac_tag in
21591 :[FHL]*:*);;
21592 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
21593 :[FH]-) ac_tag=-:-;;
21594 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21595 esac
21596 ac_save_IFS=$IFS
21597 IFS=:
21598 set x $ac_tag
21599 IFS=$ac_save_IFS
21600 shift
21601 ac_file=$1
21602 shift
21604 case $ac_mode in
21605 :L) ac_source=$1;;
21606 :[FH])
21607 ac_file_inputs=
21608 for ac_f
21610 case $ac_f in
21611 -) ac_f="$ac_tmp/stdin";;
21612 *) # Look for the file first in the build tree, then in the source tree
21613 # (if the path is not absolute). The absolute path cannot be DOS-style,
21614 # because $ac_f cannot contain `:'.
21615 test -f "$ac_f" ||
21616 case $ac_f in
21617 [\\/$]*) false;;
21618 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21619 esac ||
21620 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
21621 esac
21622 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
21623 as_fn_append ac_file_inputs " '$ac_f'"
21624 done
21626 # Let's still pretend it is `configure' which instantiates (i.e., don't
21627 # use $as_me), people would be surprised to read:
21628 # /* config.h. Generated by config.status. */
21629 configure_input='Generated from '`
21630 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
21631 `' by configure.'
21632 if test x"$ac_file" != x-; then
21633 configure_input="$ac_file. $configure_input"
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
21635 $as_echo "$as_me: creating $ac_file" >&6;}
21637 # Neutralize special characters interpreted by sed in replacement strings.
21638 case $configure_input in #(
21639 *\&* | *\|* | *\\* )
21640 ac_sed_conf_input=`$as_echo "$configure_input" |
21641 sed 's/[\\\\&|]/\\\\&/g'`;; #(
21642 *) ac_sed_conf_input=$configure_input;;
21643 esac
21645 case $ac_tag in
21646 *:-:* | *:-) cat >"$ac_tmp/stdin" \
21647 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
21648 esac
21650 esac
21652 ac_dir=`$as_dirname -- "$ac_file" ||
21653 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21654 X"$ac_file" : 'X\(//\)[^/]' \| \
21655 X"$ac_file" : 'X\(//\)$' \| \
21656 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21657 $as_echo X"$ac_file" |
21658 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21659 s//\1/
21662 /^X\(\/\/\)[^/].*/{
21663 s//\1/
21666 /^X\(\/\/\)$/{
21667 s//\1/
21670 /^X\(\/\).*/{
21671 s//\1/
21674 s/.*/./; q'`
21675 as_dir="$ac_dir"; as_fn_mkdir_p
21676 ac_builddir=.
21678 case "$ac_dir" in
21679 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21681 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
21682 # A ".." for each directory in $ac_dir_suffix.
21683 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
21684 case $ac_top_builddir_sub in
21685 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21686 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21687 esac ;;
21688 esac
21689 ac_abs_top_builddir=$ac_pwd
21690 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21691 # for backward compatibility:
21692 ac_top_builddir=$ac_top_build_prefix
21694 case $srcdir in
21695 .) # We are building in place.
21696 ac_srcdir=.
21697 ac_top_srcdir=$ac_top_builddir_sub
21698 ac_abs_top_srcdir=$ac_pwd ;;
21699 [\\/]* | ?:[\\/]* ) # Absolute name.
21700 ac_srcdir=$srcdir$ac_dir_suffix;
21701 ac_top_srcdir=$srcdir
21702 ac_abs_top_srcdir=$srcdir ;;
21703 *) # Relative name.
21704 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21705 ac_top_srcdir=$ac_top_build_prefix$srcdir
21706 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21707 esac
21708 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21711 case $ac_mode in
21714 # CONFIG_FILE
21717 case $INSTALL in
21718 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21719 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21720 esac
21721 ac_MKDIR_P=$MKDIR_P
21722 case $MKDIR_P in
21723 [\\/$]* | ?:[\\/]* ) ;;
21724 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
21725 esac
21726 _ACEOF
21728 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21729 # If the template does not know about datarootdir, expand it.
21730 # FIXME: This hack should be removed a few years after 2.60.
21731 ac_datarootdir_hack=; ac_datarootdir_seen=
21732 ac_sed_dataroot='
21733 /datarootdir/ {
21737 /@datadir@/p
21738 /@docdir@/p
21739 /@infodir@/p
21740 /@localedir@/p
21741 /@mandir@/p'
21742 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
21743 *datarootdir*) ac_datarootdir_seen=yes;;
21744 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
21745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
21746 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
21747 _ACEOF
21748 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21749 ac_datarootdir_hack='
21750 s&@datadir@&$datadir&g
21751 s&@docdir@&$docdir&g
21752 s&@infodir@&$infodir&g
21753 s&@localedir@&$localedir&g
21754 s&@mandir@&$mandir&g
21755 s&\\\${datarootdir}&$datarootdir&g' ;;
21756 esac
21757 _ACEOF
21759 # Neutralize VPATH when `$srcdir' = `.'.
21760 # Shell code in configure.ac might set extrasub.
21761 # FIXME: do we really want to maintain this feature?
21762 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21763 ac_sed_extra="$ac_vpsub
21764 $extrasub
21765 _ACEOF
21766 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21768 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21769 s|@configure_input@|$ac_sed_conf_input|;t t
21770 s&@top_builddir@&$ac_top_builddir_sub&;t t
21771 s&@top_build_prefix@&$ac_top_build_prefix&;t t
21772 s&@srcdir@&$ac_srcdir&;t t
21773 s&@abs_srcdir@&$ac_abs_srcdir&;t t
21774 s&@top_srcdir@&$ac_top_srcdir&;t t
21775 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
21776 s&@builddir@&$ac_builddir&;t t
21777 s&@abs_builddir@&$ac_abs_builddir&;t t
21778 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
21779 s&@INSTALL@&$ac_INSTALL&;t t
21780 s&@MKDIR_P@&$ac_MKDIR_P&;t t
21781 $ac_datarootdir_hack
21783 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
21784 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21786 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
21787 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
21788 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
21789 "$ac_tmp/out"`; test -z "$ac_out"; } &&
21790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21791 which seems to be undefined. Please make sure it is defined" >&5
21792 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
21793 which seems to be undefined. Please make sure it is defined" >&2;}
21795 rm -f "$ac_tmp/stdin"
21796 case $ac_file in
21797 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
21798 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
21799 esac \
21800 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21804 # CONFIG_HEADER
21806 if test x"$ac_file" != x-; then
21808 $as_echo "/* $configure_input */" \
21809 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
21810 } >"$ac_tmp/config.h" \
21811 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21812 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
21813 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
21814 $as_echo "$as_me: $ac_file is unchanged" >&6;}
21815 else
21816 rm -f "$ac_file"
21817 mv "$ac_tmp/config.h" "$ac_file" \
21818 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
21820 else
21821 $as_echo "/* $configure_input */" \
21822 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
21823 || as_fn_error $? "could not create -" "$LINENO" 5
21825 # Compute "$ac_file"'s index in $config_headers.
21826 _am_arg="$ac_file"
21827 _am_stamp_count=1
21828 for _am_header in $config_headers :; do
21829 case $_am_header in
21830 $_am_arg | $_am_arg:* )
21831 break ;;
21833 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
21834 esac
21835 done
21836 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
21837 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21838 X"$_am_arg" : 'X\(//\)[^/]' \| \
21839 X"$_am_arg" : 'X\(//\)$' \| \
21840 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
21841 $as_echo X"$_am_arg" |
21842 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21843 s//\1/
21846 /^X\(\/\/\)[^/].*/{
21847 s//\1/
21850 /^X\(\/\/\)$/{
21851 s//\1/
21854 /^X\(\/\).*/{
21855 s//\1/
21858 s/.*/./; q'`/stamp-h$_am_stamp_count
21861 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
21862 $as_echo "$as_me: executing $ac_file commands" >&6;}
21864 esac
21867 case $ac_file$ac_mode in
21868 "default-1":C)
21869 # Only add multilib support code if we just rebuilt the top-level
21870 # Makefile.
21871 case " $CONFIG_FILES " in
21872 *" Makefile "*)
21873 ac_file=Makefile . ${multi_basedir}/config-ml.in
21875 esac ;;
21876 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
21877 # Older Autoconf quotes --file arguments for eval, but not when files
21878 # are listed without --file. Let's play safe and only enable the eval
21879 # if we detect the quoting.
21880 case $CONFIG_FILES in
21881 *\'*) eval set x "$CONFIG_FILES" ;;
21882 *) set x $CONFIG_FILES ;;
21883 esac
21884 shift
21885 for mf
21887 # Strip MF so we end up with the name of the file.
21888 mf=`echo "$mf" | sed -e 's/:.*$//'`
21889 # Check whether this is an Automake generated Makefile or not.
21890 # We used to match only the files named 'Makefile.in', but
21891 # some people rename them; so instead we look at the file content.
21892 # Grep'ing the first line is not enough: some people post-process
21893 # each Makefile.in and add a new line on top of each file to say so.
21894 # Grep'ing the whole file is not good either: AIX grep has a line
21895 # limit of 2048, but all sed's we know have understand at least 4000.
21896 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
21897 dirpart=`$as_dirname -- "$mf" ||
21898 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21899 X"$mf" : 'X\(//\)[^/]' \| \
21900 X"$mf" : 'X\(//\)$' \| \
21901 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
21902 $as_echo X"$mf" |
21903 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21904 s//\1/
21907 /^X\(\/\/\)[^/].*/{
21908 s//\1/
21911 /^X\(\/\/\)$/{
21912 s//\1/
21915 /^X\(\/\).*/{
21916 s//\1/
21919 s/.*/./; q'`
21920 else
21921 continue
21923 # Extract the definition of DEPDIR, am__include, and am__quote
21924 # from the Makefile without running 'make'.
21925 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
21926 test -z "$DEPDIR" && continue
21927 am__include=`sed -n 's/^am__include = //p' < "$mf"`
21928 test -z "$am__include" && continue
21929 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
21930 # Find all dependency output files, they are included files with
21931 # $(DEPDIR) in their names. We invoke sed twice because it is the
21932 # simplest approach to changing $(DEPDIR) to its actual value in the
21933 # expansion.
21934 for file in `sed -n "
21935 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
21936 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
21937 # Make sure the directory exists.
21938 test -f "$dirpart/$file" && continue
21939 fdir=`$as_dirname -- "$file" ||
21940 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21941 X"$file" : 'X\(//\)[^/]' \| \
21942 X"$file" : 'X\(//\)$' \| \
21943 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
21944 $as_echo X"$file" |
21945 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21946 s//\1/
21949 /^X\(\/\/\)[^/].*/{
21950 s//\1/
21953 /^X\(\/\/\)$/{
21954 s//\1/
21957 /^X\(\/\).*/{
21958 s//\1/
21961 s/.*/./; q'`
21962 as_dir=$dirpart/$fdir; as_fn_mkdir_p
21963 # echo "creating $dirpart/$file"
21964 echo '# dummy' > "$dirpart/$file"
21965 done
21966 done
21969 "libtool":C)
21971 # See if we are running on zsh, and set the options which allow our
21972 # commands through without removal of \ escapes.
21973 if test -n "${ZSH_VERSION+set}" ; then
21974 setopt NO_GLOB_SUBST
21977 cfgfile="${ofile}T"
21978 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
21979 $RM "$cfgfile"
21981 cat <<_LT_EOF >> "$cfgfile"
21982 #! $SHELL
21984 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
21985 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
21986 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21987 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
21989 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
21990 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
21991 # Written by Gordon Matzigkeit, 1996
21993 # This file is part of GNU Libtool.
21995 # GNU Libtool is free software; you can redistribute it and/or
21996 # modify it under the terms of the GNU General Public License as
21997 # published by the Free Software Foundation; either version 2 of
21998 # the License, or (at your option) any later version.
22000 # As a special exception to the GNU General Public License,
22001 # if you distribute this file as part of a program or library that
22002 # is built using GNU Libtool, you may include this file under the
22003 # same distribution terms that you use for the rest of that program.
22005 # GNU Libtool is distributed in the hope that it will be useful,
22006 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22007 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22008 # GNU General Public License for more details.
22010 # You should have received a copy of the GNU General Public License
22011 # along with GNU Libtool; see the file COPYING. If not, a copy
22012 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22013 # obtained by writing to the Free Software Foundation, Inc.,
22014 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22017 # The names of the tagged configurations supported by this script.
22018 available_tags="CXX "
22020 # ### BEGIN LIBTOOL CONFIG
22022 # Which release of libtool.m4 was used?
22023 macro_version=$macro_version
22024 macro_revision=$macro_revision
22026 # Whether or not to build shared libraries.
22027 build_libtool_libs=$enable_shared
22029 # Whether or not to build static libraries.
22030 build_old_libs=$enable_static
22032 # What type of objects to build.
22033 pic_mode=$pic_mode
22035 # Whether or not to optimize for fast installation.
22036 fast_install=$enable_fast_install
22038 # Shell to use when invoking shell scripts.
22039 SHELL=$lt_SHELL
22041 # An echo program that protects backslashes.
22042 ECHO=$lt_ECHO
22044 # The host system.
22045 host_alias=$host_alias
22046 host=$host
22047 host_os=$host_os
22049 # The build system.
22050 build_alias=$build_alias
22051 build=$build
22052 build_os=$build_os
22054 # A sed program that does not truncate output.
22055 SED=$lt_SED
22057 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22058 Xsed="\$SED -e 1s/^X//"
22060 # A grep program that handles long lines.
22061 GREP=$lt_GREP
22063 # An ERE matcher.
22064 EGREP=$lt_EGREP
22066 # A literal string matcher.
22067 FGREP=$lt_FGREP
22069 # A BSD- or MS-compatible name lister.
22070 NM=$lt_NM
22072 # Whether we need soft or hard links.
22073 LN_S=$lt_LN_S
22075 # What is the maximum length of a command?
22076 max_cmd_len=$max_cmd_len
22078 # Object file suffix (normally "o").
22079 objext=$ac_objext
22081 # Executable file suffix (normally "").
22082 exeext=$exeext
22084 # whether the shell understands "unset".
22085 lt_unset=$lt_unset
22087 # turn spaces into newlines.
22088 SP2NL=$lt_lt_SP2NL
22090 # turn newlines into spaces.
22091 NL2SP=$lt_lt_NL2SP
22093 # An object symbol dumper.
22094 OBJDUMP=$lt_OBJDUMP
22096 # Method to check whether dependent libraries are shared objects.
22097 deplibs_check_method=$lt_deplibs_check_method
22099 # Command to use when deplibs_check_method == "file_magic".
22100 file_magic_cmd=$lt_file_magic_cmd
22102 # The archiver.
22103 AR=$lt_AR
22104 AR_FLAGS=$lt_AR_FLAGS
22106 # A symbol stripping program.
22107 STRIP=$lt_STRIP
22109 # Commands used to install an old-style archive.
22110 RANLIB=$lt_RANLIB
22111 old_postinstall_cmds=$lt_old_postinstall_cmds
22112 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22114 # Whether to use a lock for old archive extraction.
22115 lock_old_archive_extraction=$lock_old_archive_extraction
22117 # A C compiler.
22118 LTCC=$lt_CC
22120 # LTCC compiler flags.
22121 LTCFLAGS=$lt_CFLAGS
22123 # Take the output of nm and produce a listing of raw symbols and C names.
22124 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22126 # Transform the output of nm in a proper C declaration.
22127 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22129 # Transform the output of nm in a C name address pair.
22130 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22132 # Transform the output of nm in a C name address pair when lib prefix is needed.
22133 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22135 # The name of the directory that contains temporary libtool files.
22136 objdir=$objdir
22138 # Used to examine libraries when file_magic_cmd begins with "file".
22139 MAGIC_CMD=$MAGIC_CMD
22141 # Must we lock files when doing compilation?
22142 need_locks=$lt_need_locks
22144 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22145 DSYMUTIL=$lt_DSYMUTIL
22147 # Tool to change global to local symbols on Mac OS X.
22148 NMEDIT=$lt_NMEDIT
22150 # Tool to manipulate fat objects and archives on Mac OS X.
22151 LIPO=$lt_LIPO
22153 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22154 OTOOL=$lt_OTOOL
22156 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22157 OTOOL64=$lt_OTOOL64
22159 # Old archive suffix (normally "a").
22160 libext=$libext
22162 # Shared library suffix (normally ".so").
22163 shrext_cmds=$lt_shrext_cmds
22165 # The commands to extract the exported symbol list from a shared archive.
22166 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22168 # Variables whose values should be saved in libtool wrapper scripts and
22169 # restored at link time.
22170 variables_saved_for_relink=$lt_variables_saved_for_relink
22172 # Do we need the "lib" prefix for modules?
22173 need_lib_prefix=$need_lib_prefix
22175 # Do we need a version for libraries?
22176 need_version=$need_version
22178 # Library versioning type.
22179 version_type=$version_type
22181 # Shared library runtime path variable.
22182 runpath_var=$runpath_var
22184 # Shared library path variable.
22185 shlibpath_var=$shlibpath_var
22187 # Is shlibpath searched before the hard-coded library search path?
22188 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22190 # Format of library name prefix.
22191 libname_spec=$lt_libname_spec
22193 # List of archive names. First name is the real one, the rest are links.
22194 # The last name is the one that the linker finds with -lNAME
22195 library_names_spec=$lt_library_names_spec
22197 # The coded name of the library, if different from the real name.
22198 soname_spec=$lt_soname_spec
22200 # Permission mode override for installation of shared libraries.
22201 install_override_mode=$lt_install_override_mode
22203 # Command to use after installation of a shared archive.
22204 postinstall_cmds=$lt_postinstall_cmds
22206 # Command to use after uninstallation of a shared archive.
22207 postuninstall_cmds=$lt_postuninstall_cmds
22209 # Commands used to finish a libtool library installation in a directory.
22210 finish_cmds=$lt_finish_cmds
22212 # As "finish_cmds", except a single script fragment to be evaled but
22213 # not shown.
22214 finish_eval=$lt_finish_eval
22216 # Whether we should hardcode library paths into libraries.
22217 hardcode_into_libs=$hardcode_into_libs
22219 # Compile-time system search path for libraries.
22220 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22222 # Run-time system search path for libraries.
22223 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22225 # Whether dlopen is supported.
22226 dlopen_support=$enable_dlopen
22228 # Whether dlopen of programs is supported.
22229 dlopen_self=$enable_dlopen_self
22231 # Whether dlopen of statically linked programs is supported.
22232 dlopen_self_static=$enable_dlopen_self_static
22234 # Commands to strip libraries.
22235 old_striplib=$lt_old_striplib
22236 striplib=$lt_striplib
22239 # The linker used to build libraries.
22240 LD=$lt_LD
22242 # How to create reloadable object files.
22243 reload_flag=$lt_reload_flag
22244 reload_cmds=$lt_reload_cmds
22246 # Commands used to build an old-style archive.
22247 old_archive_cmds=$lt_old_archive_cmds
22249 # A language specific compiler.
22250 CC=$lt_compiler
22252 # Is the compiler the GNU compiler?
22253 with_gcc=$GCC
22255 # Compiler flag to turn off builtin functions.
22256 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22258 # How to pass a linker flag through the compiler.
22259 wl=$lt_lt_prog_compiler_wl
22261 # Additional compiler flags for building library objects.
22262 pic_flag=$lt_lt_prog_compiler_pic
22264 # Compiler flag to prevent dynamic linking.
22265 link_static_flag=$lt_lt_prog_compiler_static
22267 # Does compiler simultaneously support -c and -o options?
22268 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22270 # Whether or not to add -lc for building shared libraries.
22271 build_libtool_need_lc=$archive_cmds_need_lc
22273 # Whether or not to disallow shared libs when runtime libs are static.
22274 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22276 # Compiler flag to allow reflexive dlopens.
22277 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22279 # Compiler flag to generate shared objects directly from archives.
22280 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22282 # Whether the compiler copes with passing no objects directly.
22283 compiler_needs_object=$lt_compiler_needs_object
22285 # Create an old-style archive from a shared archive.
22286 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22288 # Create a temporary old-style archive to link instead of a shared archive.
22289 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22291 # Commands used to build a shared archive.
22292 archive_cmds=$lt_archive_cmds
22293 archive_expsym_cmds=$lt_archive_expsym_cmds
22295 # Commands used to build a loadable module if different from building
22296 # a shared archive.
22297 module_cmds=$lt_module_cmds
22298 module_expsym_cmds=$lt_module_expsym_cmds
22300 # Whether we are building with GNU ld or not.
22301 with_gnu_ld=$lt_with_gnu_ld
22303 # Flag that allows shared libraries with undefined symbols to be built.
22304 allow_undefined_flag=$lt_allow_undefined_flag
22306 # Flag that enforces no undefined symbols.
22307 no_undefined_flag=$lt_no_undefined_flag
22309 # Flag to hardcode \$libdir into a binary during linking.
22310 # This must work even if \$libdir does not exist
22311 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22313 # If ld is used when linking, flag to hardcode \$libdir into a binary
22314 # during linking. This must work even if \$libdir does not exist.
22315 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22317 # Whether we need a single "-rpath" flag with a separated argument.
22318 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22320 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22321 # DIR into the resulting binary.
22322 hardcode_direct=$hardcode_direct
22324 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22325 # DIR into the resulting binary and the resulting library dependency is
22326 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22327 # library is relocated.
22328 hardcode_direct_absolute=$hardcode_direct_absolute
22330 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22331 # into the resulting binary.
22332 hardcode_minus_L=$hardcode_minus_L
22334 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22335 # into the resulting binary.
22336 hardcode_shlibpath_var=$hardcode_shlibpath_var
22338 # Set to "yes" if building a shared library automatically hardcodes DIR
22339 # into the library and all subsequent libraries and executables linked
22340 # against it.
22341 hardcode_automatic=$hardcode_automatic
22343 # Set to yes if linker adds runtime paths of dependent libraries
22344 # to runtime path list.
22345 inherit_rpath=$inherit_rpath
22347 # Whether libtool must link a program against all its dependency libraries.
22348 link_all_deplibs=$link_all_deplibs
22350 # Fix the shell variable \$srcfile for the compiler.
22351 fix_srcfile_path=$lt_fix_srcfile_path
22353 # Set to "yes" if exported symbols are required.
22354 always_export_symbols=$always_export_symbols
22356 # The commands to list exported symbols.
22357 export_symbols_cmds=$lt_export_symbols_cmds
22359 # Symbols that should not be listed in the preloaded symbols.
22360 exclude_expsyms=$lt_exclude_expsyms
22362 # Symbols that must always be exported.
22363 include_expsyms=$lt_include_expsyms
22365 # Commands necessary for linking programs (against libraries) with templates.
22366 prelink_cmds=$lt_prelink_cmds
22368 # Specify filename containing input files.
22369 file_list_spec=$lt_file_list_spec
22371 # How to hardcode a shared library path into an executable.
22372 hardcode_action=$hardcode_action
22374 # The directories searched by this compiler when creating a shared library.
22375 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22377 # Dependencies to place before and after the objects being linked to
22378 # create a shared library.
22379 predep_objects=$lt_predep_objects
22380 postdep_objects=$lt_postdep_objects
22381 predeps=$lt_predeps
22382 postdeps=$lt_postdeps
22384 # The library search path used internally by the compiler when linking
22385 # a shared library.
22386 compiler_lib_search_path=$lt_compiler_lib_search_path
22388 # ### END LIBTOOL CONFIG
22390 _LT_EOF
22392 case $host_os in
22393 aix3*)
22394 cat <<\_LT_EOF >> "$cfgfile"
22395 # AIX sometimes has problems with the GCC collect2 program. For some
22396 # reason, if we set the COLLECT_NAMES environment variable, the problems
22397 # vanish in a puff of smoke.
22398 if test "X${COLLECT_NAMES+set}" != Xset; then
22399 COLLECT_NAMES=
22400 export COLLECT_NAMES
22402 _LT_EOF
22404 esac
22407 ltmain="$ac_aux_dir/ltmain.sh"
22410 # We use sed instead of cat because bash on DJGPP gets confused if
22411 # if finds mixed CR/LF and LF-only lines. Since sed operates in
22412 # text mode, it properly converts lines to CR/LF. This bash problem
22413 # is reportedly fixed, but why not run on old versions too?
22414 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
22415 || (rm -f "$cfgfile"; exit 1)
22417 case $xsi_shell in
22418 yes)
22419 cat << \_LT_EOF >> "$cfgfile"
22421 # func_dirname file append nondir_replacement
22422 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22423 # otherwise set result to NONDIR_REPLACEMENT.
22424 func_dirname ()
22426 case ${1} in
22427 */*) func_dirname_result="${1%/*}${2}" ;;
22428 * ) func_dirname_result="${3}" ;;
22429 esac
22432 # func_basename file
22433 func_basename ()
22435 func_basename_result="${1##*/}"
22438 # func_dirname_and_basename file append nondir_replacement
22439 # perform func_basename and func_dirname in a single function
22440 # call:
22441 # dirname: Compute the dirname of FILE. If nonempty,
22442 # add APPEND to the result, otherwise set result
22443 # to NONDIR_REPLACEMENT.
22444 # value returned in "$func_dirname_result"
22445 # basename: Compute filename of FILE.
22446 # value retuned in "$func_basename_result"
22447 # Implementation must be kept synchronized with func_dirname
22448 # and func_basename. For efficiency, we do not delegate to
22449 # those functions but instead duplicate the functionality here.
22450 func_dirname_and_basename ()
22452 case ${1} in
22453 */*) func_dirname_result="${1%/*}${2}" ;;
22454 * ) func_dirname_result="${3}" ;;
22455 esac
22456 func_basename_result="${1##*/}"
22459 # func_stripname prefix suffix name
22460 # strip PREFIX and SUFFIX off of NAME.
22461 # PREFIX and SUFFIX must not contain globbing or regex special
22462 # characters, hashes, percent signs, but SUFFIX may contain a leading
22463 # dot (in which case that matches only a dot).
22464 func_stripname ()
22466 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
22467 # positional parameters, so assign one to ordinary parameter first.
22468 func_stripname_result=${3}
22469 func_stripname_result=${func_stripname_result#"${1}"}
22470 func_stripname_result=${func_stripname_result%"${2}"}
22473 # func_opt_split
22474 func_opt_split ()
22476 func_opt_split_opt=${1%%=*}
22477 func_opt_split_arg=${1#*=}
22480 # func_lo2o object
22481 func_lo2o ()
22483 case ${1} in
22484 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
22485 *) func_lo2o_result=${1} ;;
22486 esac
22489 # func_xform libobj-or-source
22490 func_xform ()
22492 func_xform_result=${1%.*}.lo
22495 # func_arith arithmetic-term...
22496 func_arith ()
22498 func_arith_result=$(( $* ))
22501 # func_len string
22502 # STRING may not start with a hyphen.
22503 func_len ()
22505 func_len_result=${#1}
22508 _LT_EOF
22510 *) # Bourne compatible functions.
22511 cat << \_LT_EOF >> "$cfgfile"
22513 # func_dirname file append nondir_replacement
22514 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
22515 # otherwise set result to NONDIR_REPLACEMENT.
22516 func_dirname ()
22518 # Extract subdirectory from the argument.
22519 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
22520 if test "X$func_dirname_result" = "X${1}"; then
22521 func_dirname_result="${3}"
22522 else
22523 func_dirname_result="$func_dirname_result${2}"
22527 # func_basename file
22528 func_basename ()
22530 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
22534 # func_stripname prefix suffix name
22535 # strip PREFIX and SUFFIX off of NAME.
22536 # PREFIX and SUFFIX must not contain globbing or regex special
22537 # characters, hashes, percent signs, but SUFFIX may contain a leading
22538 # dot (in which case that matches only a dot).
22539 # func_strip_suffix prefix name
22540 func_stripname ()
22542 case ${2} in
22543 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
22544 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
22545 esac
22548 # sed scripts:
22549 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
22550 my_sed_long_arg='1s/^-[^=]*=//'
22552 # func_opt_split
22553 func_opt_split ()
22555 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
22556 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
22559 # func_lo2o object
22560 func_lo2o ()
22562 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
22565 # func_xform libobj-or-source
22566 func_xform ()
22568 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
22571 # func_arith arithmetic-term...
22572 func_arith ()
22574 func_arith_result=`expr "$@"`
22577 # func_len string
22578 # STRING may not start with a hyphen.
22579 func_len ()
22581 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
22584 _LT_EOF
22585 esac
22587 case $lt_shell_append in
22588 yes)
22589 cat << \_LT_EOF >> "$cfgfile"
22591 # func_append var value
22592 # Append VALUE to the end of shell variable VAR.
22593 func_append ()
22595 eval "$1+=\$2"
22597 _LT_EOF
22600 cat << \_LT_EOF >> "$cfgfile"
22602 # func_append var value
22603 # Append VALUE to the end of shell variable VAR.
22604 func_append ()
22606 eval "$1=\$$1\$2"
22609 _LT_EOF
22611 esac
22614 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
22615 || (rm -f "$cfgfile"; exit 1)
22617 mv -f "$cfgfile" "$ofile" ||
22618 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
22619 chmod +x "$ofile"
22622 cat <<_LT_EOF >> "$ofile"
22624 # ### BEGIN LIBTOOL TAG CONFIG: CXX
22626 # The linker used to build libraries.
22627 LD=$lt_LD_CXX
22629 # How to create reloadable object files.
22630 reload_flag=$lt_reload_flag_CXX
22631 reload_cmds=$lt_reload_cmds_CXX
22633 # Commands used to build an old-style archive.
22634 old_archive_cmds=$lt_old_archive_cmds_CXX
22636 # A language specific compiler.
22637 CC=$lt_compiler_CXX
22639 # Is the compiler the GNU compiler?
22640 with_gcc=$GCC_CXX
22642 # Compiler flag to turn off builtin functions.
22643 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
22645 # How to pass a linker flag through the compiler.
22646 wl=$lt_lt_prog_compiler_wl_CXX
22648 # Additional compiler flags for building library objects.
22649 pic_flag=$lt_lt_prog_compiler_pic_CXX
22651 # Compiler flag to prevent dynamic linking.
22652 link_static_flag=$lt_lt_prog_compiler_static_CXX
22654 # Does compiler simultaneously support -c and -o options?
22655 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
22657 # Whether or not to add -lc for building shared libraries.
22658 build_libtool_need_lc=$archive_cmds_need_lc_CXX
22660 # Whether or not to disallow shared libs when runtime libs are static.
22661 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
22663 # Compiler flag to allow reflexive dlopens.
22664 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
22666 # Compiler flag to generate shared objects directly from archives.
22667 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
22669 # Whether the compiler copes with passing no objects directly.
22670 compiler_needs_object=$lt_compiler_needs_object_CXX
22672 # Create an old-style archive from a shared archive.
22673 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
22675 # Create a temporary old-style archive to link instead of a shared archive.
22676 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
22678 # Commands used to build a shared archive.
22679 archive_cmds=$lt_archive_cmds_CXX
22680 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
22682 # Commands used to build a loadable module if different from building
22683 # a shared archive.
22684 module_cmds=$lt_module_cmds_CXX
22685 module_expsym_cmds=$lt_module_expsym_cmds_CXX
22687 # Whether we are building with GNU ld or not.
22688 with_gnu_ld=$lt_with_gnu_ld_CXX
22690 # Flag that allows shared libraries with undefined symbols to be built.
22691 allow_undefined_flag=$lt_allow_undefined_flag_CXX
22693 # Flag that enforces no undefined symbols.
22694 no_undefined_flag=$lt_no_undefined_flag_CXX
22696 # Flag to hardcode \$libdir into a binary during linking.
22697 # This must work even if \$libdir does not exist
22698 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
22700 # If ld is used when linking, flag to hardcode \$libdir into a binary
22701 # during linking. This must work even if \$libdir does not exist.
22702 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
22704 # Whether we need a single "-rpath" flag with a separated argument.
22705 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
22707 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22708 # DIR into the resulting binary.
22709 hardcode_direct=$hardcode_direct_CXX
22711 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22712 # DIR into the resulting binary and the resulting library dependency is
22713 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22714 # library is relocated.
22715 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
22717 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22718 # into the resulting binary.
22719 hardcode_minus_L=$hardcode_minus_L_CXX
22721 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22722 # into the resulting binary.
22723 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
22725 # Set to "yes" if building a shared library automatically hardcodes DIR
22726 # into the library and all subsequent libraries and executables linked
22727 # against it.
22728 hardcode_automatic=$hardcode_automatic_CXX
22730 # Set to yes if linker adds runtime paths of dependent libraries
22731 # to runtime path list.
22732 inherit_rpath=$inherit_rpath_CXX
22734 # Whether libtool must link a program against all its dependency libraries.
22735 link_all_deplibs=$link_all_deplibs_CXX
22737 # Fix the shell variable \$srcfile for the compiler.
22738 fix_srcfile_path=$lt_fix_srcfile_path_CXX
22740 # Set to "yes" if exported symbols are required.
22741 always_export_symbols=$always_export_symbols_CXX
22743 # The commands to list exported symbols.
22744 export_symbols_cmds=$lt_export_symbols_cmds_CXX
22746 # Symbols that should not be listed in the preloaded symbols.
22747 exclude_expsyms=$lt_exclude_expsyms_CXX
22749 # Symbols that must always be exported.
22750 include_expsyms=$lt_include_expsyms_CXX
22752 # Commands necessary for linking programs (against libraries) with templates.
22753 prelink_cmds=$lt_prelink_cmds_CXX
22755 # Specify filename containing input files.
22756 file_list_spec=$lt_file_list_spec_CXX
22758 # How to hardcode a shared library path into an executable.
22759 hardcode_action=$hardcode_action_CXX
22761 # The directories searched by this compiler when creating a shared library.
22762 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
22764 # Dependencies to place before and after the objects being linked to
22765 # create a shared library.
22766 predep_objects=$lt_predep_objects_CXX
22767 postdep_objects=$lt_postdep_objects_CXX
22768 predeps=$lt_predeps_CXX
22769 postdeps=$lt_postdeps_CXX
22771 # The library search path used internally by the compiler when linking
22772 # a shared library.
22773 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
22775 # ### END LIBTOOL TAG CONFIG: CXX
22776 _LT_EOF
22779 "libm2min/Makefile":F) cat > vpsed$$ << \_EOF
22780 s!`test -f '$<' || echo '$(srcdir)/'`!!
22781 _EOF
22782 sed -f vpsed$$ $ac_file > tmp$$
22783 mv tmp$$ $ac_file
22784 rm vpsed$$
22785 echo 'MULTISUBDIR =' >> $ac_file
22786 ml_norecursion=yes
22787 . ${multi_basedir}/config-ml.in
22788 { ml_norecursion=; unset ml_norecursion;}
22790 "libm2pim/Makefile":F) cat > vpsed$$ << \_EOF
22791 s!`test -f '$<' || echo '$(srcdir)/'`!!
22792 _EOF
22793 sed -f vpsed$$ $ac_file > tmp$$
22794 mv tmp$$ $ac_file
22795 rm vpsed$$
22796 echo 'MULTISUBDIR =' >> $ac_file
22797 ml_norecursion=yes
22798 . ${multi_basedir}/config-ml.in
22799 { ml_norecursion=; unset ml_norecursion;}
22801 "libm2iso/Makefile":F) cat > vpsed$$ << \_EOF
22802 s!`test -f '$<' || echo '$(srcdir)/'`!!
22803 _EOF
22804 sed -f vpsed$$ $ac_file > tmp$$
22805 mv tmp$$ $ac_file
22806 rm vpsed$$
22807 echo 'MULTISUBDIR =' >> $ac_file
22808 ml_norecursion=yes
22809 . ${multi_basedir}/config-ml.in
22810 { ml_norecursion=; unset ml_norecursion;}
22812 "libm2cor/Makefile":F) cat > vpsed$$ << \_EOF
22813 s!`test -f '$<' || echo '$(srcdir)/'`!!
22814 _EOF
22815 sed -f vpsed$$ $ac_file > tmp$$
22816 mv tmp$$ $ac_file
22817 rm vpsed$$
22818 echo 'MULTISUBDIR =' >> $ac_file
22819 ml_norecursion=yes
22820 . ${multi_basedir}/config-ml.in
22821 { ml_norecursion=; unset ml_norecursion;}
22823 "libm2log/Makefile":F) cat > vpsed$$ << \_EOF
22824 s!`test -f '$<' || echo '$(srcdir)/'`!!
22825 _EOF
22826 sed -f vpsed$$ $ac_file > tmp$$
22827 mv tmp$$ $ac_file
22828 rm vpsed$$
22829 echo 'MULTISUBDIR =' >> $ac_file
22830 ml_norecursion=yes
22831 . ${multi_basedir}/config-ml.in
22832 { ml_norecursion=; unset ml_norecursion;}
22835 esac
22836 done # for ac_tag
22839 as_fn_exit 0
22840 _ACEOF
22841 ac_clean_files=$ac_clean_files_save
22843 test $ac_write_fail = 0 ||
22844 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
22847 # configure is writing to config.log, and then calls config.status.
22848 # config.status does its own redirection, appending to config.log.
22849 # Unfortunately, on DOS this fails, as config.log is still kept open
22850 # by configure, so config.status won't be able to write to it; its
22851 # output is simply discarded. So we exec the FD to /dev/null,
22852 # effectively closing config.log, so it can be properly (re)opened and
22853 # appended to by config.status. When coming back to configure, we
22854 # need to make the FD available again.
22855 if test "$no_create" != yes; then
22856 ac_cs_success=:
22857 ac_config_status_args=
22858 test "$silent" = yes &&
22859 ac_config_status_args="$ac_config_status_args --quiet"
22860 exec 5>/dev/null
22861 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22862 exec 5>>config.log
22863 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22864 # would make configure fail if this is the last instruction.
22865 $ac_cs_success || as_fn_exit 1
22867 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
22868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
22869 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}